diff --git a/.fern/metadata.json b/.fern/metadata.json index 7e19d8c..726fbd0 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,10 +9,10 @@ "version": "1.21" } }, - "originGitCommit": "5f2d480665034420df58c19fd1328b0823104e0f", + "originGitCommit": "b7dddfba5011349a40db7878b5cbc8685b2d42cf", "originGitCommitIsDirty": false, "invokedBy": "ci", - "requestedVersion": "3.0.0-next.13", + "requestedVersion": "3.0.0-next.14", "ciProvider": "github", - "sdkVersion": "v3.0.0-next.13" + "sdkVersion": "v3.0.0-next.14" } \ No newline at end of file diff --git a/cloudpdf-generation.json b/cloudpdf-generation.json index e8bfbf0..fe0d469 100644 --- a/cloudpdf-generation.json +++ b/cloudpdf-generation.json @@ -1,12 +1,12 @@ { "language": "go", - "canonicalVersion": "3.0.0-next.13", - "sdkVersion": "3.0.0-next.13", + "canonicalVersion": "3.0.0-next.14", + "sdkVersion": "3.0.0-next.14", "source": { "repository": "embedpdf/embed-pdf-viewer", "openapi": "cloudpdf/contract/openapi.json", - "openapiSha256": "a472da9c7aed5db7f2b6b1f67f1b6268a9407afe9e7cf879ac04b878b4fc9dc7", - "gitCommit": "5f2d480665034420df58c19fd1328b0823104e0f", + "openapiSha256": "188ea071e3534971638ee3d1fb1f19c77f36e04b2a783f5eefdbe67326527ea6", + "gitCommit": "b7dddfba5011349a40db7878b5cbc8685b2d42cf", "gitCommitIsDirty": false }, "fern": { diff --git a/core/request_option.go b/core/request_option.go index 21c45fb..2b6c230 100644 --- a/core/request_option.go +++ b/core/request_option.go @@ -65,8 +65,8 @@ func (r *RequestOptions) cloneHeader() http.Header { headers := r.HTTPHeader.Clone() headers.Set("X-Fern-Language", "Go") headers.Set("X-Fern-SDK-Name", "github.com/embedpdf/cloudpdf-sdk-go/v3") - headers.Set("X-Fern-SDK-Version", "v3.0.0-next.13") - headers.Set("User-Agent", "github.com/embedpdf/cloudpdf-sdk-go/v3/3.0.0-next.13") + headers.Set("X-Fern-SDK-Version", "v3.0.0-next.14") + headers.Set("User-Agent", "github.com/embedpdf/cloudpdf-sdk-go/v3/3.0.0-next.14") return headers } diff --git a/doc/pages.go b/doc/pages.go index 4ea398d..4e64ffa 100644 --- a/doc/pages.go +++ b/doc/pages.go @@ -4,6 +4,7 @@ package doc import ( json "encoding/json" + fmt "fmt" v3 "github.com/embedpdf/cloudpdf-sdk-go/v3" internal "github.com/embedpdf/cloudpdf-sdk-go/v3/internal" io "io" @@ -539,3 +540,2154 @@ func (s *SetNamePagesRequest) UnmarshalJSON(data []byte) error { func (s *SetNamePagesRequest) MarshalJSON() ([]byte, error) { return json.Marshal(s.Body) } + +var ( + docPagesSetScaleRequestFieldDocumentPassword = big.NewInt(1 << 0) + docPagesSetScaleRequestFieldDocID = big.NewInt(1 << 1) + docPagesSetScaleRequestFieldLayerName = big.NewInt(1 << 2) + docPagesSetScaleRequestFieldPon = big.NewInt(1 << 3) + docPagesSetScaleRequestFieldMeasure = big.NewInt(1 << 4) +) + +type DocPagesSetScaleRequest struct { + // Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead. + DocumentPassword *string `json:"-" url:"-"` + DocID string `json:"-" url:"-"` + LayerName string `json:"-" url:"-"` + Pon int `json:"-" url:"-"` + Measure *DocPagesSetScaleRequestMeasure `json:"measure,omitempty" url:"-"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` +} + +func (d *DocPagesSetScaleRequest) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetDocumentPassword sets the DocumentPassword field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequest) SetDocumentPassword(documentPassword *string) { + d.DocumentPassword = documentPassword + d.require(docPagesSetScaleRequestFieldDocumentPassword) +} + +// SetDocID sets the DocID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequest) SetDocID(docID string) { + d.DocID = docID + d.require(docPagesSetScaleRequestFieldDocID) +} + +// SetLayerName sets the LayerName field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequest) SetLayerName(layerName string) { + d.LayerName = layerName + d.require(docPagesSetScaleRequestFieldLayerName) +} + +// SetPon sets the Pon field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequest) SetPon(pon int) { + d.Pon = pon + d.require(docPagesSetScaleRequestFieldPon) +} + +// SetMeasure sets the Measure field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequest) SetMeasure(measure *DocPagesSetScaleRequestMeasure) { + d.Measure = measure + d.require(docPagesSetScaleRequestFieldMeasure) +} + +func (d *DocPagesSetScaleRequest) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesSetScaleRequest + var body unmarshaler + if err := json.Unmarshal(data, &body); err != nil { + return err + } + *d = DocPagesSetScaleRequest(body) + return nil +} + +func (d *DocPagesSetScaleRequest) MarshalJSON() ([]byte, error) { + type embed DocPagesSetScaleRequest + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +var ( + docPagesSetScaleRequestMeasureFieldSubtype = big.NewInt(1 << 0) + docPagesSetScaleRequestMeasureFieldRatio = big.NewInt(1 << 1) + docPagesSetScaleRequestMeasureFieldX = big.NewInt(1 << 2) + docPagesSetScaleRequestMeasureFieldY = big.NewInt(1 << 3) + docPagesSetScaleRequestMeasureFieldDistance = big.NewInt(1 << 4) + docPagesSetScaleRequestMeasureFieldArea = big.NewInt(1 << 5) + docPagesSetScaleRequestMeasureFieldAngle = big.NewInt(1 << 6) + docPagesSetScaleRequestMeasureFieldSlope = big.NewInt(1 << 7) + docPagesSetScaleRequestMeasureFieldOrigin = big.NewInt(1 << 8) + docPagesSetScaleRequestMeasureFieldCyx = big.NewInt(1 << 9) +) + +type DocPagesSetScaleRequestMeasure struct { + Subtype DocPagesSetScaleRequestMeasureSubtype `json:"subtype" url:"subtype"` + Ratio *string `json:"ratio,omitempty" url:"ratio,omitempty"` + X []*DocPagesSetScaleRequestMeasureXItem `json:"x" url:"x"` + Y []*DocPagesSetScaleRequestMeasureYItem `json:"y,omitempty" url:"y,omitempty"` + Distance []*DocPagesSetScaleRequestMeasureDistanceItem `json:"distance" url:"distance"` + Area []*DocPagesSetScaleRequestMeasureAreaItem `json:"area" url:"area"` + Angle []*DocPagesSetScaleRequestMeasureAngleItem `json:"angle,omitempty" url:"angle,omitempty"` + Slope []*DocPagesSetScaleRequestMeasureSlopeItem `json:"slope,omitempty" url:"slope,omitempty"` + Origin *DocPagesSetScaleRequestMeasureOrigin `json:"origin,omitempty" url:"origin,omitempty"` + Cyx *float64 `json:"cyx,omitempty" url:"cyx,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocPagesSetScaleRequestMeasure) GetSubtype() DocPagesSetScaleRequestMeasureSubtype { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocPagesSetScaleRequestMeasure) GetRatio() *string { + if d == nil { + return nil + } + return d.Ratio +} + +func (d *DocPagesSetScaleRequestMeasure) GetX() []*DocPagesSetScaleRequestMeasureXItem { + if d == nil { + return nil + } + return d.X +} + +func (d *DocPagesSetScaleRequestMeasure) GetY() []*DocPagesSetScaleRequestMeasureYItem { + if d == nil { + return nil + } + return d.Y +} + +func (d *DocPagesSetScaleRequestMeasure) GetDistance() []*DocPagesSetScaleRequestMeasureDistanceItem { + if d == nil { + return nil + } + return d.Distance +} + +func (d *DocPagesSetScaleRequestMeasure) GetArea() []*DocPagesSetScaleRequestMeasureAreaItem { + if d == nil { + return nil + } + return d.Area +} + +func (d *DocPagesSetScaleRequestMeasure) GetAngle() []*DocPagesSetScaleRequestMeasureAngleItem { + if d == nil { + return nil + } + return d.Angle +} + +func (d *DocPagesSetScaleRequestMeasure) GetSlope() []*DocPagesSetScaleRequestMeasureSlopeItem { + if d == nil { + return nil + } + return d.Slope +} + +func (d *DocPagesSetScaleRequestMeasure) GetOrigin() *DocPagesSetScaleRequestMeasureOrigin { + if d == nil { + return nil + } + return d.Origin +} + +func (d *DocPagesSetScaleRequestMeasure) GetCyx() *float64 { + if d == nil { + return nil + } + return d.Cyx +} + +func (d *DocPagesSetScaleRequestMeasure) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocPagesSetScaleRequestMeasure) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetSubtype sets the Subtype field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasure) SetSubtype(subtype DocPagesSetScaleRequestMeasureSubtype) { + d.Subtype = subtype + d.require(docPagesSetScaleRequestMeasureFieldSubtype) +} + +// SetRatio sets the Ratio field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasure) SetRatio(ratio *string) { + d.Ratio = ratio + d.require(docPagesSetScaleRequestMeasureFieldRatio) +} + +// SetX sets the X field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasure) SetX(x []*DocPagesSetScaleRequestMeasureXItem) { + d.X = x + d.require(docPagesSetScaleRequestMeasureFieldX) +} + +// SetY sets the Y field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasure) SetY(y []*DocPagesSetScaleRequestMeasureYItem) { + d.Y = y + d.require(docPagesSetScaleRequestMeasureFieldY) +} + +// SetDistance sets the Distance field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasure) SetDistance(distance []*DocPagesSetScaleRequestMeasureDistanceItem) { + d.Distance = distance + d.require(docPagesSetScaleRequestMeasureFieldDistance) +} + +// SetArea sets the Area field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasure) SetArea(area []*DocPagesSetScaleRequestMeasureAreaItem) { + d.Area = area + d.require(docPagesSetScaleRequestMeasureFieldArea) +} + +// SetAngle sets the Angle field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasure) SetAngle(angle []*DocPagesSetScaleRequestMeasureAngleItem) { + d.Angle = angle + d.require(docPagesSetScaleRequestMeasureFieldAngle) +} + +// SetSlope sets the Slope field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasure) SetSlope(slope []*DocPagesSetScaleRequestMeasureSlopeItem) { + d.Slope = slope + d.require(docPagesSetScaleRequestMeasureFieldSlope) +} + +// SetOrigin sets the Origin field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasure) SetOrigin(origin *DocPagesSetScaleRequestMeasureOrigin) { + d.Origin = origin + d.require(docPagesSetScaleRequestMeasureFieldOrigin) +} + +// SetCyx sets the Cyx field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasure) SetCyx(cyx *float64) { + d.Cyx = cyx + d.require(docPagesSetScaleRequestMeasureFieldCyx) +} + +func (d *DocPagesSetScaleRequestMeasure) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesSetScaleRequestMeasure + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocPagesSetScaleRequestMeasure(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocPagesSetScaleRequestMeasure) MarshalJSON() ([]byte, error) { + type embed DocPagesSetScaleRequestMeasure + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocPagesSetScaleRequestMeasure) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docPagesSetScaleRequestMeasureAngleItemFieldUnit = big.NewInt(1 << 0) + docPagesSetScaleRequestMeasureAngleItemFieldConversion = big.NewInt(1 << 1) + docPagesSetScaleRequestMeasureAngleItemFieldFraction = big.NewInt(1 << 2) + docPagesSetScaleRequestMeasureAngleItemFieldPrecision = big.NewInt(1 << 3) + docPagesSetScaleRequestMeasureAngleItemFieldFixed = big.NewInt(1 << 4) + docPagesSetScaleRequestMeasureAngleItemFieldThousands = big.NewInt(1 << 5) + docPagesSetScaleRequestMeasureAngleItemFieldDecimal = big.NewInt(1 << 6) + docPagesSetScaleRequestMeasureAngleItemFieldPrefixSpacing = big.NewInt(1 << 7) + docPagesSetScaleRequestMeasureAngleItemFieldSuffixSpacing = big.NewInt(1 << 8) + docPagesSetScaleRequestMeasureAngleItemFieldLabelPosition = big.NewInt(1 << 9) +) + +type DocPagesSetScaleRequestMeasureAngleItem struct { + Unit string `json:"unit" url:"unit"` + Conversion float64 `json:"conversion" url:"conversion"` + Fraction *DocPagesSetScaleRequestMeasureAngleItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocPagesSetScaleRequestMeasureAngleItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocPagesSetScaleRequestMeasureAngleItem) GetUnit() string { + if d == nil { + return "" + } + return d.Unit +} + +func (d *DocPagesSetScaleRequestMeasureAngleItem) GetConversion() float64 { + if d == nil { + return 0 + } + return d.Conversion +} + +func (d *DocPagesSetScaleRequestMeasureAngleItem) GetFraction() *DocPagesSetScaleRequestMeasureAngleItemFraction { + if d == nil { + return nil + } + return d.Fraction +} + +func (d *DocPagesSetScaleRequestMeasureAngleItem) GetPrecision() *int { + if d == nil { + return nil + } + return d.Precision +} + +func (d *DocPagesSetScaleRequestMeasureAngleItem) GetFixed() *bool { + if d == nil { + return nil + } + return d.Fixed +} + +func (d *DocPagesSetScaleRequestMeasureAngleItem) GetThousands() *string { + if d == nil { + return nil + } + return d.Thousands +} + +func (d *DocPagesSetScaleRequestMeasureAngleItem) GetDecimal() *string { + if d == nil { + return nil + } + return d.Decimal +} + +func (d *DocPagesSetScaleRequestMeasureAngleItem) GetPrefixSpacing() *string { + if d == nil { + return nil + } + return d.PrefixSpacing +} + +func (d *DocPagesSetScaleRequestMeasureAngleItem) GetSuffixSpacing() *string { + if d == nil { + return nil + } + return d.SuffixSpacing +} + +func (d *DocPagesSetScaleRequestMeasureAngleItem) GetLabelPosition() *DocPagesSetScaleRequestMeasureAngleItemLabelPosition { + if d == nil { + return nil + } + return d.LabelPosition +} + +func (d *DocPagesSetScaleRequestMeasureAngleItem) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocPagesSetScaleRequestMeasureAngleItem) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetUnit sets the Unit field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureAngleItem) SetUnit(unit string) { + d.Unit = unit + d.require(docPagesSetScaleRequestMeasureAngleItemFieldUnit) +} + +// SetConversion sets the Conversion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureAngleItem) SetConversion(conversion float64) { + d.Conversion = conversion + d.require(docPagesSetScaleRequestMeasureAngleItemFieldConversion) +} + +// SetFraction sets the Fraction field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureAngleItem) SetFraction(fraction *DocPagesSetScaleRequestMeasureAngleItemFraction) { + d.Fraction = fraction + d.require(docPagesSetScaleRequestMeasureAngleItemFieldFraction) +} + +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureAngleItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docPagesSetScaleRequestMeasureAngleItemFieldPrecision) +} + +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureAngleItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docPagesSetScaleRequestMeasureAngleItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureAngleItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docPagesSetScaleRequestMeasureAngleItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureAngleItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docPagesSetScaleRequestMeasureAngleItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureAngleItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docPagesSetScaleRequestMeasureAngleItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureAngleItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docPagesSetScaleRequestMeasureAngleItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureAngleItem) SetLabelPosition(labelPosition *DocPagesSetScaleRequestMeasureAngleItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docPagesSetScaleRequestMeasureAngleItemFieldLabelPosition) +} + +func (d *DocPagesSetScaleRequestMeasureAngleItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesSetScaleRequestMeasureAngleItem + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocPagesSetScaleRequestMeasureAngleItem(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocPagesSetScaleRequestMeasureAngleItem) MarshalJSON() ([]byte, error) { + type embed DocPagesSetScaleRequestMeasureAngleItem + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocPagesSetScaleRequestMeasureAngleItem) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocPagesSetScaleRequestMeasureAngleItemFraction string + +const ( + DocPagesSetScaleRequestMeasureAngleItemFractionDecimal DocPagesSetScaleRequestMeasureAngleItemFraction = "decimal" + DocPagesSetScaleRequestMeasureAngleItemFractionFraction DocPagesSetScaleRequestMeasureAngleItemFraction = "fraction" + DocPagesSetScaleRequestMeasureAngleItemFractionRound DocPagesSetScaleRequestMeasureAngleItemFraction = "round" + DocPagesSetScaleRequestMeasureAngleItemFractionTruncate DocPagesSetScaleRequestMeasureAngleItemFraction = "truncate" +) + +func NewDocPagesSetScaleRequestMeasureAngleItemFractionFromString(s string) (DocPagesSetScaleRequestMeasureAngleItemFraction, error) { + switch s { + case "decimal": + return DocPagesSetScaleRequestMeasureAngleItemFractionDecimal, nil + case "fraction": + return DocPagesSetScaleRequestMeasureAngleItemFractionFraction, nil + case "round": + return DocPagesSetScaleRequestMeasureAngleItemFractionRound, nil + case "truncate": + return DocPagesSetScaleRequestMeasureAngleItemFractionTruncate, nil + } + var t DocPagesSetScaleRequestMeasureAngleItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesSetScaleRequestMeasureAngleItemFraction) Ptr() *DocPagesSetScaleRequestMeasureAngleItemFraction { + return &d +} + +type DocPagesSetScaleRequestMeasureAngleItemLabelPosition string + +const ( + DocPagesSetScaleRequestMeasureAngleItemLabelPositionSuffix DocPagesSetScaleRequestMeasureAngleItemLabelPosition = "suffix" + DocPagesSetScaleRequestMeasureAngleItemLabelPositionPrefix DocPagesSetScaleRequestMeasureAngleItemLabelPosition = "prefix" +) + +func NewDocPagesSetScaleRequestMeasureAngleItemLabelPositionFromString(s string) (DocPagesSetScaleRequestMeasureAngleItemLabelPosition, error) { + switch s { + case "suffix": + return DocPagesSetScaleRequestMeasureAngleItemLabelPositionSuffix, nil + case "prefix": + return DocPagesSetScaleRequestMeasureAngleItemLabelPositionPrefix, nil + } + var t DocPagesSetScaleRequestMeasureAngleItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesSetScaleRequestMeasureAngleItemLabelPosition) Ptr() *DocPagesSetScaleRequestMeasureAngleItemLabelPosition { + return &d +} + +var ( + docPagesSetScaleRequestMeasureAreaItemFieldUnit = big.NewInt(1 << 0) + docPagesSetScaleRequestMeasureAreaItemFieldConversion = big.NewInt(1 << 1) + docPagesSetScaleRequestMeasureAreaItemFieldFraction = big.NewInt(1 << 2) + docPagesSetScaleRequestMeasureAreaItemFieldPrecision = big.NewInt(1 << 3) + docPagesSetScaleRequestMeasureAreaItemFieldFixed = big.NewInt(1 << 4) + docPagesSetScaleRequestMeasureAreaItemFieldThousands = big.NewInt(1 << 5) + docPagesSetScaleRequestMeasureAreaItemFieldDecimal = big.NewInt(1 << 6) + docPagesSetScaleRequestMeasureAreaItemFieldPrefixSpacing = big.NewInt(1 << 7) + docPagesSetScaleRequestMeasureAreaItemFieldSuffixSpacing = big.NewInt(1 << 8) + docPagesSetScaleRequestMeasureAreaItemFieldLabelPosition = big.NewInt(1 << 9) +) + +type DocPagesSetScaleRequestMeasureAreaItem struct { + Unit string `json:"unit" url:"unit"` + Conversion float64 `json:"conversion" url:"conversion"` + Fraction *DocPagesSetScaleRequestMeasureAreaItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocPagesSetScaleRequestMeasureAreaItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocPagesSetScaleRequestMeasureAreaItem) GetUnit() string { + if d == nil { + return "" + } + return d.Unit +} + +func (d *DocPagesSetScaleRequestMeasureAreaItem) GetConversion() float64 { + if d == nil { + return 0 + } + return d.Conversion +} + +func (d *DocPagesSetScaleRequestMeasureAreaItem) GetFraction() *DocPagesSetScaleRequestMeasureAreaItemFraction { + if d == nil { + return nil + } + return d.Fraction +} + +func (d *DocPagesSetScaleRequestMeasureAreaItem) GetPrecision() *int { + if d == nil { + return nil + } + return d.Precision +} + +func (d *DocPagesSetScaleRequestMeasureAreaItem) GetFixed() *bool { + if d == nil { + return nil + } + return d.Fixed +} + +func (d *DocPagesSetScaleRequestMeasureAreaItem) GetThousands() *string { + if d == nil { + return nil + } + return d.Thousands +} + +func (d *DocPagesSetScaleRequestMeasureAreaItem) GetDecimal() *string { + if d == nil { + return nil + } + return d.Decimal +} + +func (d *DocPagesSetScaleRequestMeasureAreaItem) GetPrefixSpacing() *string { + if d == nil { + return nil + } + return d.PrefixSpacing +} + +func (d *DocPagesSetScaleRequestMeasureAreaItem) GetSuffixSpacing() *string { + if d == nil { + return nil + } + return d.SuffixSpacing +} + +func (d *DocPagesSetScaleRequestMeasureAreaItem) GetLabelPosition() *DocPagesSetScaleRequestMeasureAreaItemLabelPosition { + if d == nil { + return nil + } + return d.LabelPosition +} + +func (d *DocPagesSetScaleRequestMeasureAreaItem) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocPagesSetScaleRequestMeasureAreaItem) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetUnit sets the Unit field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureAreaItem) SetUnit(unit string) { + d.Unit = unit + d.require(docPagesSetScaleRequestMeasureAreaItemFieldUnit) +} + +// SetConversion sets the Conversion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureAreaItem) SetConversion(conversion float64) { + d.Conversion = conversion + d.require(docPagesSetScaleRequestMeasureAreaItemFieldConversion) +} + +// SetFraction sets the Fraction field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureAreaItem) SetFraction(fraction *DocPagesSetScaleRequestMeasureAreaItemFraction) { + d.Fraction = fraction + d.require(docPagesSetScaleRequestMeasureAreaItemFieldFraction) +} + +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureAreaItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docPagesSetScaleRequestMeasureAreaItemFieldPrecision) +} + +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureAreaItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docPagesSetScaleRequestMeasureAreaItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureAreaItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docPagesSetScaleRequestMeasureAreaItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureAreaItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docPagesSetScaleRequestMeasureAreaItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureAreaItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docPagesSetScaleRequestMeasureAreaItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureAreaItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docPagesSetScaleRequestMeasureAreaItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureAreaItem) SetLabelPosition(labelPosition *DocPagesSetScaleRequestMeasureAreaItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docPagesSetScaleRequestMeasureAreaItemFieldLabelPosition) +} + +func (d *DocPagesSetScaleRequestMeasureAreaItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesSetScaleRequestMeasureAreaItem + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocPagesSetScaleRequestMeasureAreaItem(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocPagesSetScaleRequestMeasureAreaItem) MarshalJSON() ([]byte, error) { + type embed DocPagesSetScaleRequestMeasureAreaItem + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocPagesSetScaleRequestMeasureAreaItem) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocPagesSetScaleRequestMeasureAreaItemFraction string + +const ( + DocPagesSetScaleRequestMeasureAreaItemFractionDecimal DocPagesSetScaleRequestMeasureAreaItemFraction = "decimal" + DocPagesSetScaleRequestMeasureAreaItemFractionFraction DocPagesSetScaleRequestMeasureAreaItemFraction = "fraction" + DocPagesSetScaleRequestMeasureAreaItemFractionRound DocPagesSetScaleRequestMeasureAreaItemFraction = "round" + DocPagesSetScaleRequestMeasureAreaItemFractionTruncate DocPagesSetScaleRequestMeasureAreaItemFraction = "truncate" +) + +func NewDocPagesSetScaleRequestMeasureAreaItemFractionFromString(s string) (DocPagesSetScaleRequestMeasureAreaItemFraction, error) { + switch s { + case "decimal": + return DocPagesSetScaleRequestMeasureAreaItemFractionDecimal, nil + case "fraction": + return DocPagesSetScaleRequestMeasureAreaItemFractionFraction, nil + case "round": + return DocPagesSetScaleRequestMeasureAreaItemFractionRound, nil + case "truncate": + return DocPagesSetScaleRequestMeasureAreaItemFractionTruncate, nil + } + var t DocPagesSetScaleRequestMeasureAreaItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesSetScaleRequestMeasureAreaItemFraction) Ptr() *DocPagesSetScaleRequestMeasureAreaItemFraction { + return &d +} + +type DocPagesSetScaleRequestMeasureAreaItemLabelPosition string + +const ( + DocPagesSetScaleRequestMeasureAreaItemLabelPositionSuffix DocPagesSetScaleRequestMeasureAreaItemLabelPosition = "suffix" + DocPagesSetScaleRequestMeasureAreaItemLabelPositionPrefix DocPagesSetScaleRequestMeasureAreaItemLabelPosition = "prefix" +) + +func NewDocPagesSetScaleRequestMeasureAreaItemLabelPositionFromString(s string) (DocPagesSetScaleRequestMeasureAreaItemLabelPosition, error) { + switch s { + case "suffix": + return DocPagesSetScaleRequestMeasureAreaItemLabelPositionSuffix, nil + case "prefix": + return DocPagesSetScaleRequestMeasureAreaItemLabelPositionPrefix, nil + } + var t DocPagesSetScaleRequestMeasureAreaItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesSetScaleRequestMeasureAreaItemLabelPosition) Ptr() *DocPagesSetScaleRequestMeasureAreaItemLabelPosition { + return &d +} + +var ( + docPagesSetScaleRequestMeasureDistanceItemFieldUnit = big.NewInt(1 << 0) + docPagesSetScaleRequestMeasureDistanceItemFieldConversion = big.NewInt(1 << 1) + docPagesSetScaleRequestMeasureDistanceItemFieldFraction = big.NewInt(1 << 2) + docPagesSetScaleRequestMeasureDistanceItemFieldPrecision = big.NewInt(1 << 3) + docPagesSetScaleRequestMeasureDistanceItemFieldFixed = big.NewInt(1 << 4) + docPagesSetScaleRequestMeasureDistanceItemFieldThousands = big.NewInt(1 << 5) + docPagesSetScaleRequestMeasureDistanceItemFieldDecimal = big.NewInt(1 << 6) + docPagesSetScaleRequestMeasureDistanceItemFieldPrefixSpacing = big.NewInt(1 << 7) + docPagesSetScaleRequestMeasureDistanceItemFieldSuffixSpacing = big.NewInt(1 << 8) + docPagesSetScaleRequestMeasureDistanceItemFieldLabelPosition = big.NewInt(1 << 9) +) + +type DocPagesSetScaleRequestMeasureDistanceItem struct { + Unit string `json:"unit" url:"unit"` + Conversion float64 `json:"conversion" url:"conversion"` + Fraction *DocPagesSetScaleRequestMeasureDistanceItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocPagesSetScaleRequestMeasureDistanceItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocPagesSetScaleRequestMeasureDistanceItem) GetUnit() string { + if d == nil { + return "" + } + return d.Unit +} + +func (d *DocPagesSetScaleRequestMeasureDistanceItem) GetConversion() float64 { + if d == nil { + return 0 + } + return d.Conversion +} + +func (d *DocPagesSetScaleRequestMeasureDistanceItem) GetFraction() *DocPagesSetScaleRequestMeasureDistanceItemFraction { + if d == nil { + return nil + } + return d.Fraction +} + +func (d *DocPagesSetScaleRequestMeasureDistanceItem) GetPrecision() *int { + if d == nil { + return nil + } + return d.Precision +} + +func (d *DocPagesSetScaleRequestMeasureDistanceItem) GetFixed() *bool { + if d == nil { + return nil + } + return d.Fixed +} + +func (d *DocPagesSetScaleRequestMeasureDistanceItem) GetThousands() *string { + if d == nil { + return nil + } + return d.Thousands +} + +func (d *DocPagesSetScaleRequestMeasureDistanceItem) GetDecimal() *string { + if d == nil { + return nil + } + return d.Decimal +} + +func (d *DocPagesSetScaleRequestMeasureDistanceItem) GetPrefixSpacing() *string { + if d == nil { + return nil + } + return d.PrefixSpacing +} + +func (d *DocPagesSetScaleRequestMeasureDistanceItem) GetSuffixSpacing() *string { + if d == nil { + return nil + } + return d.SuffixSpacing +} + +func (d *DocPagesSetScaleRequestMeasureDistanceItem) GetLabelPosition() *DocPagesSetScaleRequestMeasureDistanceItemLabelPosition { + if d == nil { + return nil + } + return d.LabelPosition +} + +func (d *DocPagesSetScaleRequestMeasureDistanceItem) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocPagesSetScaleRequestMeasureDistanceItem) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetUnit sets the Unit field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureDistanceItem) SetUnit(unit string) { + d.Unit = unit + d.require(docPagesSetScaleRequestMeasureDistanceItemFieldUnit) +} + +// SetConversion sets the Conversion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureDistanceItem) SetConversion(conversion float64) { + d.Conversion = conversion + d.require(docPagesSetScaleRequestMeasureDistanceItemFieldConversion) +} + +// SetFraction sets the Fraction field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureDistanceItem) SetFraction(fraction *DocPagesSetScaleRequestMeasureDistanceItemFraction) { + d.Fraction = fraction + d.require(docPagesSetScaleRequestMeasureDistanceItemFieldFraction) +} + +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureDistanceItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docPagesSetScaleRequestMeasureDistanceItemFieldPrecision) +} + +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureDistanceItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docPagesSetScaleRequestMeasureDistanceItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureDistanceItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docPagesSetScaleRequestMeasureDistanceItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureDistanceItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docPagesSetScaleRequestMeasureDistanceItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureDistanceItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docPagesSetScaleRequestMeasureDistanceItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureDistanceItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docPagesSetScaleRequestMeasureDistanceItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureDistanceItem) SetLabelPosition(labelPosition *DocPagesSetScaleRequestMeasureDistanceItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docPagesSetScaleRequestMeasureDistanceItemFieldLabelPosition) +} + +func (d *DocPagesSetScaleRequestMeasureDistanceItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesSetScaleRequestMeasureDistanceItem + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocPagesSetScaleRequestMeasureDistanceItem(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocPagesSetScaleRequestMeasureDistanceItem) MarshalJSON() ([]byte, error) { + type embed DocPagesSetScaleRequestMeasureDistanceItem + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocPagesSetScaleRequestMeasureDistanceItem) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocPagesSetScaleRequestMeasureDistanceItemFraction string + +const ( + DocPagesSetScaleRequestMeasureDistanceItemFractionDecimal DocPagesSetScaleRequestMeasureDistanceItemFraction = "decimal" + DocPagesSetScaleRequestMeasureDistanceItemFractionFraction DocPagesSetScaleRequestMeasureDistanceItemFraction = "fraction" + DocPagesSetScaleRequestMeasureDistanceItemFractionRound DocPagesSetScaleRequestMeasureDistanceItemFraction = "round" + DocPagesSetScaleRequestMeasureDistanceItemFractionTruncate DocPagesSetScaleRequestMeasureDistanceItemFraction = "truncate" +) + +func NewDocPagesSetScaleRequestMeasureDistanceItemFractionFromString(s string) (DocPagesSetScaleRequestMeasureDistanceItemFraction, error) { + switch s { + case "decimal": + return DocPagesSetScaleRequestMeasureDistanceItemFractionDecimal, nil + case "fraction": + return DocPagesSetScaleRequestMeasureDistanceItemFractionFraction, nil + case "round": + return DocPagesSetScaleRequestMeasureDistanceItemFractionRound, nil + case "truncate": + return DocPagesSetScaleRequestMeasureDistanceItemFractionTruncate, nil + } + var t DocPagesSetScaleRequestMeasureDistanceItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesSetScaleRequestMeasureDistanceItemFraction) Ptr() *DocPagesSetScaleRequestMeasureDistanceItemFraction { + return &d +} + +type DocPagesSetScaleRequestMeasureDistanceItemLabelPosition string + +const ( + DocPagesSetScaleRequestMeasureDistanceItemLabelPositionSuffix DocPagesSetScaleRequestMeasureDistanceItemLabelPosition = "suffix" + DocPagesSetScaleRequestMeasureDistanceItemLabelPositionPrefix DocPagesSetScaleRequestMeasureDistanceItemLabelPosition = "prefix" +) + +func NewDocPagesSetScaleRequestMeasureDistanceItemLabelPositionFromString(s string) (DocPagesSetScaleRequestMeasureDistanceItemLabelPosition, error) { + switch s { + case "suffix": + return DocPagesSetScaleRequestMeasureDistanceItemLabelPositionSuffix, nil + case "prefix": + return DocPagesSetScaleRequestMeasureDistanceItemLabelPositionPrefix, nil + } + var t DocPagesSetScaleRequestMeasureDistanceItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesSetScaleRequestMeasureDistanceItemLabelPosition) Ptr() *DocPagesSetScaleRequestMeasureDistanceItemLabelPosition { + return &d +} + +var ( + docPagesSetScaleRequestMeasureOriginFieldX = big.NewInt(1 << 0) + docPagesSetScaleRequestMeasureOriginFieldY = big.NewInt(1 << 1) +) + +type DocPagesSetScaleRequestMeasureOrigin struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocPagesSetScaleRequestMeasureOrigin) GetX() float64 { + if d == nil { + return 0 + } + return d.X +} + +func (d *DocPagesSetScaleRequestMeasureOrigin) GetY() float64 { + if d == nil { + return 0 + } + return d.Y +} + +func (d *DocPagesSetScaleRequestMeasureOrigin) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocPagesSetScaleRequestMeasureOrigin) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetX sets the X field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureOrigin) SetX(x float64) { + d.X = x + d.require(docPagesSetScaleRequestMeasureOriginFieldX) +} + +// SetY sets the Y field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureOrigin) SetY(y float64) { + d.Y = y + d.require(docPagesSetScaleRequestMeasureOriginFieldY) +} + +func (d *DocPagesSetScaleRequestMeasureOrigin) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesSetScaleRequestMeasureOrigin + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocPagesSetScaleRequestMeasureOrigin(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocPagesSetScaleRequestMeasureOrigin) MarshalJSON() ([]byte, error) { + type embed DocPagesSetScaleRequestMeasureOrigin + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocPagesSetScaleRequestMeasureOrigin) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docPagesSetScaleRequestMeasureSlopeItemFieldUnit = big.NewInt(1 << 0) + docPagesSetScaleRequestMeasureSlopeItemFieldConversion = big.NewInt(1 << 1) + docPagesSetScaleRequestMeasureSlopeItemFieldFraction = big.NewInt(1 << 2) + docPagesSetScaleRequestMeasureSlopeItemFieldPrecision = big.NewInt(1 << 3) + docPagesSetScaleRequestMeasureSlopeItemFieldFixed = big.NewInt(1 << 4) + docPagesSetScaleRequestMeasureSlopeItemFieldThousands = big.NewInt(1 << 5) + docPagesSetScaleRequestMeasureSlopeItemFieldDecimal = big.NewInt(1 << 6) + docPagesSetScaleRequestMeasureSlopeItemFieldPrefixSpacing = big.NewInt(1 << 7) + docPagesSetScaleRequestMeasureSlopeItemFieldSuffixSpacing = big.NewInt(1 << 8) + docPagesSetScaleRequestMeasureSlopeItemFieldLabelPosition = big.NewInt(1 << 9) +) + +type DocPagesSetScaleRequestMeasureSlopeItem struct { + Unit string `json:"unit" url:"unit"` + Conversion float64 `json:"conversion" url:"conversion"` + Fraction *DocPagesSetScaleRequestMeasureSlopeItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocPagesSetScaleRequestMeasureSlopeItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocPagesSetScaleRequestMeasureSlopeItem) GetUnit() string { + if d == nil { + return "" + } + return d.Unit +} + +func (d *DocPagesSetScaleRequestMeasureSlopeItem) GetConversion() float64 { + if d == nil { + return 0 + } + return d.Conversion +} + +func (d *DocPagesSetScaleRequestMeasureSlopeItem) GetFraction() *DocPagesSetScaleRequestMeasureSlopeItemFraction { + if d == nil { + return nil + } + return d.Fraction +} + +func (d *DocPagesSetScaleRequestMeasureSlopeItem) GetPrecision() *int { + if d == nil { + return nil + } + return d.Precision +} + +func (d *DocPagesSetScaleRequestMeasureSlopeItem) GetFixed() *bool { + if d == nil { + return nil + } + return d.Fixed +} + +func (d *DocPagesSetScaleRequestMeasureSlopeItem) GetThousands() *string { + if d == nil { + return nil + } + return d.Thousands +} + +func (d *DocPagesSetScaleRequestMeasureSlopeItem) GetDecimal() *string { + if d == nil { + return nil + } + return d.Decimal +} + +func (d *DocPagesSetScaleRequestMeasureSlopeItem) GetPrefixSpacing() *string { + if d == nil { + return nil + } + return d.PrefixSpacing +} + +func (d *DocPagesSetScaleRequestMeasureSlopeItem) GetSuffixSpacing() *string { + if d == nil { + return nil + } + return d.SuffixSpacing +} + +func (d *DocPagesSetScaleRequestMeasureSlopeItem) GetLabelPosition() *DocPagesSetScaleRequestMeasureSlopeItemLabelPosition { + if d == nil { + return nil + } + return d.LabelPosition +} + +func (d *DocPagesSetScaleRequestMeasureSlopeItem) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocPagesSetScaleRequestMeasureSlopeItem) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetUnit sets the Unit field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureSlopeItem) SetUnit(unit string) { + d.Unit = unit + d.require(docPagesSetScaleRequestMeasureSlopeItemFieldUnit) +} + +// SetConversion sets the Conversion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureSlopeItem) SetConversion(conversion float64) { + d.Conversion = conversion + d.require(docPagesSetScaleRequestMeasureSlopeItemFieldConversion) +} + +// SetFraction sets the Fraction field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureSlopeItem) SetFraction(fraction *DocPagesSetScaleRequestMeasureSlopeItemFraction) { + d.Fraction = fraction + d.require(docPagesSetScaleRequestMeasureSlopeItemFieldFraction) +} + +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureSlopeItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docPagesSetScaleRequestMeasureSlopeItemFieldPrecision) +} + +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureSlopeItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docPagesSetScaleRequestMeasureSlopeItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureSlopeItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docPagesSetScaleRequestMeasureSlopeItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureSlopeItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docPagesSetScaleRequestMeasureSlopeItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureSlopeItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docPagesSetScaleRequestMeasureSlopeItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureSlopeItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docPagesSetScaleRequestMeasureSlopeItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureSlopeItem) SetLabelPosition(labelPosition *DocPagesSetScaleRequestMeasureSlopeItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docPagesSetScaleRequestMeasureSlopeItemFieldLabelPosition) +} + +func (d *DocPagesSetScaleRequestMeasureSlopeItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesSetScaleRequestMeasureSlopeItem + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocPagesSetScaleRequestMeasureSlopeItem(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocPagesSetScaleRequestMeasureSlopeItem) MarshalJSON() ([]byte, error) { + type embed DocPagesSetScaleRequestMeasureSlopeItem + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocPagesSetScaleRequestMeasureSlopeItem) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocPagesSetScaleRequestMeasureSlopeItemFraction string + +const ( + DocPagesSetScaleRequestMeasureSlopeItemFractionDecimal DocPagesSetScaleRequestMeasureSlopeItemFraction = "decimal" + DocPagesSetScaleRequestMeasureSlopeItemFractionFraction DocPagesSetScaleRequestMeasureSlopeItemFraction = "fraction" + DocPagesSetScaleRequestMeasureSlopeItemFractionRound DocPagesSetScaleRequestMeasureSlopeItemFraction = "round" + DocPagesSetScaleRequestMeasureSlopeItemFractionTruncate DocPagesSetScaleRequestMeasureSlopeItemFraction = "truncate" +) + +func NewDocPagesSetScaleRequestMeasureSlopeItemFractionFromString(s string) (DocPagesSetScaleRequestMeasureSlopeItemFraction, error) { + switch s { + case "decimal": + return DocPagesSetScaleRequestMeasureSlopeItemFractionDecimal, nil + case "fraction": + return DocPagesSetScaleRequestMeasureSlopeItemFractionFraction, nil + case "round": + return DocPagesSetScaleRequestMeasureSlopeItemFractionRound, nil + case "truncate": + return DocPagesSetScaleRequestMeasureSlopeItemFractionTruncate, nil + } + var t DocPagesSetScaleRequestMeasureSlopeItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesSetScaleRequestMeasureSlopeItemFraction) Ptr() *DocPagesSetScaleRequestMeasureSlopeItemFraction { + return &d +} + +type DocPagesSetScaleRequestMeasureSlopeItemLabelPosition string + +const ( + DocPagesSetScaleRequestMeasureSlopeItemLabelPositionSuffix DocPagesSetScaleRequestMeasureSlopeItemLabelPosition = "suffix" + DocPagesSetScaleRequestMeasureSlopeItemLabelPositionPrefix DocPagesSetScaleRequestMeasureSlopeItemLabelPosition = "prefix" +) + +func NewDocPagesSetScaleRequestMeasureSlopeItemLabelPositionFromString(s string) (DocPagesSetScaleRequestMeasureSlopeItemLabelPosition, error) { + switch s { + case "suffix": + return DocPagesSetScaleRequestMeasureSlopeItemLabelPositionSuffix, nil + case "prefix": + return DocPagesSetScaleRequestMeasureSlopeItemLabelPositionPrefix, nil + } + var t DocPagesSetScaleRequestMeasureSlopeItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesSetScaleRequestMeasureSlopeItemLabelPosition) Ptr() *DocPagesSetScaleRequestMeasureSlopeItemLabelPosition { + return &d +} + +type DocPagesSetScaleRequestMeasureSubtype string + +const ( + DocPagesSetScaleRequestMeasureSubtypeRl DocPagesSetScaleRequestMeasureSubtype = "RL" +) + +func NewDocPagesSetScaleRequestMeasureSubtypeFromString(s string) (DocPagesSetScaleRequestMeasureSubtype, error) { + switch s { + case "RL": + return DocPagesSetScaleRequestMeasureSubtypeRl, nil + } + var t DocPagesSetScaleRequestMeasureSubtype + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesSetScaleRequestMeasureSubtype) Ptr() *DocPagesSetScaleRequestMeasureSubtype { + return &d +} + +var ( + docPagesSetScaleRequestMeasureXItemFieldUnit = big.NewInt(1 << 0) + docPagesSetScaleRequestMeasureXItemFieldConversion = big.NewInt(1 << 1) + docPagesSetScaleRequestMeasureXItemFieldFraction = big.NewInt(1 << 2) + docPagesSetScaleRequestMeasureXItemFieldPrecision = big.NewInt(1 << 3) + docPagesSetScaleRequestMeasureXItemFieldFixed = big.NewInt(1 << 4) + docPagesSetScaleRequestMeasureXItemFieldThousands = big.NewInt(1 << 5) + docPagesSetScaleRequestMeasureXItemFieldDecimal = big.NewInt(1 << 6) + docPagesSetScaleRequestMeasureXItemFieldPrefixSpacing = big.NewInt(1 << 7) + docPagesSetScaleRequestMeasureXItemFieldSuffixSpacing = big.NewInt(1 << 8) + docPagesSetScaleRequestMeasureXItemFieldLabelPosition = big.NewInt(1 << 9) +) + +type DocPagesSetScaleRequestMeasureXItem struct { + Unit string `json:"unit" url:"unit"` + Conversion float64 `json:"conversion" url:"conversion"` + Fraction *DocPagesSetScaleRequestMeasureXItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocPagesSetScaleRequestMeasureXItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocPagesSetScaleRequestMeasureXItem) GetUnit() string { + if d == nil { + return "" + } + return d.Unit +} + +func (d *DocPagesSetScaleRequestMeasureXItem) GetConversion() float64 { + if d == nil { + return 0 + } + return d.Conversion +} + +func (d *DocPagesSetScaleRequestMeasureXItem) GetFraction() *DocPagesSetScaleRequestMeasureXItemFraction { + if d == nil { + return nil + } + return d.Fraction +} + +func (d *DocPagesSetScaleRequestMeasureXItem) GetPrecision() *int { + if d == nil { + return nil + } + return d.Precision +} + +func (d *DocPagesSetScaleRequestMeasureXItem) GetFixed() *bool { + if d == nil { + return nil + } + return d.Fixed +} + +func (d *DocPagesSetScaleRequestMeasureXItem) GetThousands() *string { + if d == nil { + return nil + } + return d.Thousands +} + +func (d *DocPagesSetScaleRequestMeasureXItem) GetDecimal() *string { + if d == nil { + return nil + } + return d.Decimal +} + +func (d *DocPagesSetScaleRequestMeasureXItem) GetPrefixSpacing() *string { + if d == nil { + return nil + } + return d.PrefixSpacing +} + +func (d *DocPagesSetScaleRequestMeasureXItem) GetSuffixSpacing() *string { + if d == nil { + return nil + } + return d.SuffixSpacing +} + +func (d *DocPagesSetScaleRequestMeasureXItem) GetLabelPosition() *DocPagesSetScaleRequestMeasureXItemLabelPosition { + if d == nil { + return nil + } + return d.LabelPosition +} + +func (d *DocPagesSetScaleRequestMeasureXItem) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocPagesSetScaleRequestMeasureXItem) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetUnit sets the Unit field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureXItem) SetUnit(unit string) { + d.Unit = unit + d.require(docPagesSetScaleRequestMeasureXItemFieldUnit) +} + +// SetConversion sets the Conversion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureXItem) SetConversion(conversion float64) { + d.Conversion = conversion + d.require(docPagesSetScaleRequestMeasureXItemFieldConversion) +} + +// SetFraction sets the Fraction field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureXItem) SetFraction(fraction *DocPagesSetScaleRequestMeasureXItemFraction) { + d.Fraction = fraction + d.require(docPagesSetScaleRequestMeasureXItemFieldFraction) +} + +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureXItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docPagesSetScaleRequestMeasureXItemFieldPrecision) +} + +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureXItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docPagesSetScaleRequestMeasureXItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureXItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docPagesSetScaleRequestMeasureXItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureXItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docPagesSetScaleRequestMeasureXItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureXItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docPagesSetScaleRequestMeasureXItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureXItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docPagesSetScaleRequestMeasureXItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureXItem) SetLabelPosition(labelPosition *DocPagesSetScaleRequestMeasureXItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docPagesSetScaleRequestMeasureXItemFieldLabelPosition) +} + +func (d *DocPagesSetScaleRequestMeasureXItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesSetScaleRequestMeasureXItem + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocPagesSetScaleRequestMeasureXItem(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocPagesSetScaleRequestMeasureXItem) MarshalJSON() ([]byte, error) { + type embed DocPagesSetScaleRequestMeasureXItem + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocPagesSetScaleRequestMeasureXItem) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocPagesSetScaleRequestMeasureXItemFraction string + +const ( + DocPagesSetScaleRequestMeasureXItemFractionDecimal DocPagesSetScaleRequestMeasureXItemFraction = "decimal" + DocPagesSetScaleRequestMeasureXItemFractionFraction DocPagesSetScaleRequestMeasureXItemFraction = "fraction" + DocPagesSetScaleRequestMeasureXItemFractionRound DocPagesSetScaleRequestMeasureXItemFraction = "round" + DocPagesSetScaleRequestMeasureXItemFractionTruncate DocPagesSetScaleRequestMeasureXItemFraction = "truncate" +) + +func NewDocPagesSetScaleRequestMeasureXItemFractionFromString(s string) (DocPagesSetScaleRequestMeasureXItemFraction, error) { + switch s { + case "decimal": + return DocPagesSetScaleRequestMeasureXItemFractionDecimal, nil + case "fraction": + return DocPagesSetScaleRequestMeasureXItemFractionFraction, nil + case "round": + return DocPagesSetScaleRequestMeasureXItemFractionRound, nil + case "truncate": + return DocPagesSetScaleRequestMeasureXItemFractionTruncate, nil + } + var t DocPagesSetScaleRequestMeasureXItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesSetScaleRequestMeasureXItemFraction) Ptr() *DocPagesSetScaleRequestMeasureXItemFraction { + return &d +} + +type DocPagesSetScaleRequestMeasureXItemLabelPosition string + +const ( + DocPagesSetScaleRequestMeasureXItemLabelPositionSuffix DocPagesSetScaleRequestMeasureXItemLabelPosition = "suffix" + DocPagesSetScaleRequestMeasureXItemLabelPositionPrefix DocPagesSetScaleRequestMeasureXItemLabelPosition = "prefix" +) + +func NewDocPagesSetScaleRequestMeasureXItemLabelPositionFromString(s string) (DocPagesSetScaleRequestMeasureXItemLabelPosition, error) { + switch s { + case "suffix": + return DocPagesSetScaleRequestMeasureXItemLabelPositionSuffix, nil + case "prefix": + return DocPagesSetScaleRequestMeasureXItemLabelPositionPrefix, nil + } + var t DocPagesSetScaleRequestMeasureXItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesSetScaleRequestMeasureXItemLabelPosition) Ptr() *DocPagesSetScaleRequestMeasureXItemLabelPosition { + return &d +} + +var ( + docPagesSetScaleRequestMeasureYItemFieldUnit = big.NewInt(1 << 0) + docPagesSetScaleRequestMeasureYItemFieldConversion = big.NewInt(1 << 1) + docPagesSetScaleRequestMeasureYItemFieldFraction = big.NewInt(1 << 2) + docPagesSetScaleRequestMeasureYItemFieldPrecision = big.NewInt(1 << 3) + docPagesSetScaleRequestMeasureYItemFieldFixed = big.NewInt(1 << 4) + docPagesSetScaleRequestMeasureYItemFieldThousands = big.NewInt(1 << 5) + docPagesSetScaleRequestMeasureYItemFieldDecimal = big.NewInt(1 << 6) + docPagesSetScaleRequestMeasureYItemFieldPrefixSpacing = big.NewInt(1 << 7) + docPagesSetScaleRequestMeasureYItemFieldSuffixSpacing = big.NewInt(1 << 8) + docPagesSetScaleRequestMeasureYItemFieldLabelPosition = big.NewInt(1 << 9) +) + +type DocPagesSetScaleRequestMeasureYItem struct { + Unit string `json:"unit" url:"unit"` + Conversion float64 `json:"conversion" url:"conversion"` + Fraction *DocPagesSetScaleRequestMeasureYItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocPagesSetScaleRequestMeasureYItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocPagesSetScaleRequestMeasureYItem) GetUnit() string { + if d == nil { + return "" + } + return d.Unit +} + +func (d *DocPagesSetScaleRequestMeasureYItem) GetConversion() float64 { + if d == nil { + return 0 + } + return d.Conversion +} + +func (d *DocPagesSetScaleRequestMeasureYItem) GetFraction() *DocPagesSetScaleRequestMeasureYItemFraction { + if d == nil { + return nil + } + return d.Fraction +} + +func (d *DocPagesSetScaleRequestMeasureYItem) GetPrecision() *int { + if d == nil { + return nil + } + return d.Precision +} + +func (d *DocPagesSetScaleRequestMeasureYItem) GetFixed() *bool { + if d == nil { + return nil + } + return d.Fixed +} + +func (d *DocPagesSetScaleRequestMeasureYItem) GetThousands() *string { + if d == nil { + return nil + } + return d.Thousands +} + +func (d *DocPagesSetScaleRequestMeasureYItem) GetDecimal() *string { + if d == nil { + return nil + } + return d.Decimal +} + +func (d *DocPagesSetScaleRequestMeasureYItem) GetPrefixSpacing() *string { + if d == nil { + return nil + } + return d.PrefixSpacing +} + +func (d *DocPagesSetScaleRequestMeasureYItem) GetSuffixSpacing() *string { + if d == nil { + return nil + } + return d.SuffixSpacing +} + +func (d *DocPagesSetScaleRequestMeasureYItem) GetLabelPosition() *DocPagesSetScaleRequestMeasureYItemLabelPosition { + if d == nil { + return nil + } + return d.LabelPosition +} + +func (d *DocPagesSetScaleRequestMeasureYItem) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocPagesSetScaleRequestMeasureYItem) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetUnit sets the Unit field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureYItem) SetUnit(unit string) { + d.Unit = unit + d.require(docPagesSetScaleRequestMeasureYItemFieldUnit) +} + +// SetConversion sets the Conversion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureYItem) SetConversion(conversion float64) { + d.Conversion = conversion + d.require(docPagesSetScaleRequestMeasureYItemFieldConversion) +} + +// SetFraction sets the Fraction field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureYItem) SetFraction(fraction *DocPagesSetScaleRequestMeasureYItemFraction) { + d.Fraction = fraction + d.require(docPagesSetScaleRequestMeasureYItemFieldFraction) +} + +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureYItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docPagesSetScaleRequestMeasureYItemFieldPrecision) +} + +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureYItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docPagesSetScaleRequestMeasureYItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureYItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docPagesSetScaleRequestMeasureYItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureYItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docPagesSetScaleRequestMeasureYItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureYItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docPagesSetScaleRequestMeasureYItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureYItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docPagesSetScaleRequestMeasureYItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScaleRequestMeasureYItem) SetLabelPosition(labelPosition *DocPagesSetScaleRequestMeasureYItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docPagesSetScaleRequestMeasureYItemFieldLabelPosition) +} + +func (d *DocPagesSetScaleRequestMeasureYItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesSetScaleRequestMeasureYItem + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocPagesSetScaleRequestMeasureYItem(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocPagesSetScaleRequestMeasureYItem) MarshalJSON() ([]byte, error) { + type embed DocPagesSetScaleRequestMeasureYItem + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocPagesSetScaleRequestMeasureYItem) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocPagesSetScaleRequestMeasureYItemFraction string + +const ( + DocPagesSetScaleRequestMeasureYItemFractionDecimal DocPagesSetScaleRequestMeasureYItemFraction = "decimal" + DocPagesSetScaleRequestMeasureYItemFractionFraction DocPagesSetScaleRequestMeasureYItemFraction = "fraction" + DocPagesSetScaleRequestMeasureYItemFractionRound DocPagesSetScaleRequestMeasureYItemFraction = "round" + DocPagesSetScaleRequestMeasureYItemFractionTruncate DocPagesSetScaleRequestMeasureYItemFraction = "truncate" +) + +func NewDocPagesSetScaleRequestMeasureYItemFractionFromString(s string) (DocPagesSetScaleRequestMeasureYItemFraction, error) { + switch s { + case "decimal": + return DocPagesSetScaleRequestMeasureYItemFractionDecimal, nil + case "fraction": + return DocPagesSetScaleRequestMeasureYItemFractionFraction, nil + case "round": + return DocPagesSetScaleRequestMeasureYItemFractionRound, nil + case "truncate": + return DocPagesSetScaleRequestMeasureYItemFractionTruncate, nil + } + var t DocPagesSetScaleRequestMeasureYItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesSetScaleRequestMeasureYItemFraction) Ptr() *DocPagesSetScaleRequestMeasureYItemFraction { + return &d +} + +type DocPagesSetScaleRequestMeasureYItemLabelPosition string + +const ( + DocPagesSetScaleRequestMeasureYItemLabelPositionSuffix DocPagesSetScaleRequestMeasureYItemLabelPosition = "suffix" + DocPagesSetScaleRequestMeasureYItemLabelPositionPrefix DocPagesSetScaleRequestMeasureYItemLabelPosition = "prefix" +) + +func NewDocPagesSetScaleRequestMeasureYItemLabelPositionFromString(s string) (DocPagesSetScaleRequestMeasureYItemLabelPosition, error) { + switch s { + case "suffix": + return DocPagesSetScaleRequestMeasureYItemLabelPositionSuffix, nil + case "prefix": + return DocPagesSetScaleRequestMeasureYItemLabelPositionPrefix, nil + } + var t DocPagesSetScaleRequestMeasureYItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesSetScaleRequestMeasureYItemLabelPosition) Ptr() *DocPagesSetScaleRequestMeasureYItemLabelPosition { + return &d +} + +var ( + viewportsPagesRequestFieldDocumentPassword = big.NewInt(1 << 0) + viewportsPagesRequestFieldDocID = big.NewInt(1 << 1) + viewportsPagesRequestFieldLayerName = big.NewInt(1 << 2) + viewportsPagesRequestFieldPon = big.NewInt(1 << 3) +) + +type ViewportsPagesRequest struct { + // Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead. + DocumentPassword *string `json:"-" url:"-"` + DocID string `json:"-" url:"-"` + LayerName string `json:"-" url:"-"` + Pon int `json:"-" url:"-"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` +} + +func (v *ViewportsPagesRequest) require(field *big.Int) { + if v.explicitFields == nil { + v.explicitFields = big.NewInt(0) + } + v.explicitFields.Or(v.explicitFields, field) +} + +// SetDocumentPassword sets the DocumentPassword field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (v *ViewportsPagesRequest) SetDocumentPassword(documentPassword *string) { + v.DocumentPassword = documentPassword + v.require(viewportsPagesRequestFieldDocumentPassword) +} + +// SetDocID sets the DocID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (v *ViewportsPagesRequest) SetDocID(docID string) { + v.DocID = docID + v.require(viewportsPagesRequestFieldDocID) +} + +// SetLayerName sets the LayerName field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (v *ViewportsPagesRequest) SetLayerName(layerName string) { + v.LayerName = layerName + v.require(viewportsPagesRequestFieldLayerName) +} + +// SetPon sets the Pon field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (v *ViewportsPagesRequest) SetPon(pon int) { + v.Pon = pon + v.require(viewportsPagesRequestFieldPon) +} diff --git a/doc/pages/client.go b/doc/pages/client.go index 83dd563..204f225 100644 --- a/doc/pages/client.go +++ b/doc/pages/client.go @@ -36,6 +36,60 @@ func NewClient(options *core.RequestOptions) *Client { } } +// Example: +// +// request := &doc.DocPagesSetScaleRequest{ +// DocID: "docId", +// LayerName: "layerName", +// Pon: 1, +// } +// client.Doc.Pages.SetScale( +// context.TODO(), +// request, +// ) +func (c *Client) SetScale( + ctx context.Context, + request *doc.DocPagesSetScaleRequest, + opts ...option.RequestOption, +) (*cloudpdf.DocPagesSetScale200Response, error) { + response, err := c.WithRawResponse.SetScale( + ctx, + request, + opts..., + ) + if err != nil { + return nil, err + } + return response.Body, nil +} + +// Example: +// +// request := &doc.ViewportsPagesRequest{ +// DocID: "docId", +// LayerName: "layerName", +// Pon: 1, +// } +// client.Doc.Pages.Viewports( +// context.TODO(), +// request, +// ) +func (c *Client) Viewports( + ctx context.Context, + request *doc.ViewportsPagesRequest, + opts ...option.RequestOption, +) (cloudpdf.DocPagesViewports200Response, error) { + response, err := c.WithRawResponse.Viewports( + ctx, + request, + opts..., + ) + if err != nil { + return nil, err + } + return response.Body, nil +} + // Example: // // request := &doc.DeletePagesRequest{ diff --git a/doc/pages/doc_pages_test/doc_pages_test.go b/doc/pages/doc_pages_test/doc_pages_test.go index 1d885c2..00e64c8 100644 --- a/doc/pages/doc_pages_test/doc_pages_test.go +++ b/doc/pages/doc_pages_test/doc_pages_test.go @@ -78,6 +78,62 @@ func VerifyRequestCount( require.Equal(t, expected, len(result.Requests)) } +func TestDocPagesSetScaleWithWireMock( + t *testing.T, +) { + WireMockBaseURL := os.Getenv("WIREMOCK_URL") + if WireMockBaseURL == "" { + WireMockBaseURL = "http://localhost:8080" + } + client := client.NewClient( + option.WithBaseURL(WireMockBaseURL), + option.WithToken("test-token"), + ) + request := &doc.DocPagesSetScaleRequest{ + DocID: "docId", + LayerName: "layerName", + Pon: 1, + } + _, invocationErr := client.Doc.Pages.SetScale( + context.TODO(), + request, + option.WithHTTPHeader( + http.Header{"X-Test-Id": []string{"TestDocPagesSetScaleWithWireMock"}}, + ), + ) + + require.NoError(t, invocationErr, "Client method call should succeed") + VerifyRequestCount(t, "TestDocPagesSetScaleWithWireMock", "PUT", "/v1/docs/docId/layers/layerName/pages/1/scale", nil, 1) +} + +func TestDocPagesViewportsWithWireMock( + t *testing.T, +) { + WireMockBaseURL := os.Getenv("WIREMOCK_URL") + if WireMockBaseURL == "" { + WireMockBaseURL = "http://localhost:8080" + } + client := client.NewClient( + option.WithBaseURL(WireMockBaseURL), + option.WithToken("test-token"), + ) + request := &doc.ViewportsPagesRequest{ + DocID: "docId", + LayerName: "layerName", + Pon: 1, + } + _, invocationErr := client.Doc.Pages.Viewports( + context.TODO(), + request, + option.WithHTTPHeader( + http.Header{"X-Test-Id": []string{"TestDocPagesViewportsWithWireMock"}}, + ), + ) + + require.NoError(t, invocationErr, "Client method call should succeed") + VerifyRequestCount(t, "TestDocPagesViewportsWithWireMock", "GET", "/v1/docs/docId/layers/layerName/pages/1/viewports", nil, 1) +} + func TestDocPagesDeleteWithWireMock( t *testing.T, ) { diff --git a/doc/pages/raw_client.go b/doc/pages/raw_client.go index 7183cf4..7e78dab 100644 --- a/doc/pages/raw_client.go +++ b/doc/pages/raw_client.go @@ -35,6 +35,109 @@ func NewRawClient(options *core.RequestOptions) *RawClient { } } +func (r *RawClient) SetScale( + ctx context.Context, + request *doc.DocPagesSetScaleRequest, + opts ...option.RequestOption, +) (*core.Response[*cloudpdf.DocPagesSetScale200Response], error) { + options := core.NewRequestOptions(opts...) + baseURL := internal.ResolveBaseURL( + options.BaseURL, + r.baseURL, + "", + ) + endpointURL := internal.EncodeURL( + baseURL+"/v1/docs/%v/layers/%v/pages/%v/scale", + request.DocID, + request.LayerName, + request.Pon, + ) + headers := internal.MergeHeaders( + r.options.ToHeader(), + options.ToHeader(), + ) + if request.DocumentPassword != nil { + headers.Add("X-Document-Password", *request.DocumentPassword) + } + headers.Add("Content-Type", "application/json") + var response *cloudpdf.DocPagesSetScale200Response + raw, err := r.caller.Call( + ctx, + &internal.CallParams{ + URL: endpointURL, + Method: http.MethodPut, + Headers: headers, + MaxAttempts: options.MaxAttempts, + DisableRetries: options.DisableRetries, + BodyProperties: options.BodyProperties, + QueryParameters: options.QueryParameters, + Client: options.HTTPClient, + Request: request, + Response: &response, + ErrorDecoder: internal.NewErrorDecoder(doc.ErrorCodes), + }, + ) + if err != nil { + return nil, err + } + return &core.Response[*cloudpdf.DocPagesSetScale200Response]{ + StatusCode: raw.StatusCode, + Header: raw.Header, + Body: response, + }, nil +} + +func (r *RawClient) Viewports( + ctx context.Context, + request *doc.ViewportsPagesRequest, + opts ...option.RequestOption, +) (*core.Response[cloudpdf.DocPagesViewports200Response], error) { + options := core.NewRequestOptions(opts...) + baseURL := internal.ResolveBaseURL( + options.BaseURL, + r.baseURL, + "", + ) + endpointURL := internal.EncodeURL( + baseURL+"/v1/docs/%v/layers/%v/pages/%v/viewports", + request.DocID, + request.LayerName, + request.Pon, + ) + headers := internal.MergeHeaders( + r.options.ToHeader(), + options.ToHeader(), + ) + if request.DocumentPassword != nil { + headers.Add("X-Document-Password", *request.DocumentPassword) + } + + var response cloudpdf.DocPagesViewports200Response + raw, err := r.caller.Call( + ctx, + &internal.CallParams{ + URL: endpointURL, + Method: http.MethodGet, + Headers: headers, + MaxAttempts: options.MaxAttempts, + DisableRetries: options.DisableRetries, + BodyProperties: options.BodyProperties, + QueryParameters: options.QueryParameters, + Client: options.HTTPClient, + Response: &response, + ErrorDecoder: internal.NewErrorDecoder(doc.ErrorCodes), + }, + ) + if err != nil { + return nil, err + } + return &core.Response[cloudpdf.DocPagesViewports200Response]{ + StatusCode: raw.StatusCode, + Header: raw.Header, + Body: response, + }, nil +} + func (r *RawClient) Delete( ctx context.Context, request *doc.DeletePagesRequest, diff --git a/doc/pages_test.go b/doc/pages_test.go index e7973a8..4757bcc 100644 --- a/doc/pages_test.go +++ b/doc/pages_test.go @@ -1115,3 +1115,6502 @@ func TestSettersMarkExplicitSetNamePagesRequest(t *testing.T) { }) } + +func TestSettersDocPagesSetScaleRequest(t *testing.T) { + t.Run("SetDocumentPassword", func(t *testing.T) { + obj := &DocPagesSetScaleRequest{} + var fernTestValueDocumentPassword *string + obj.SetDocumentPassword(fernTestValueDocumentPassword) + assert.Equal(t, fernTestValueDocumentPassword, obj.DocumentPassword) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDocID", func(t *testing.T) { + obj := &DocPagesSetScaleRequest{} + var fernTestValueDocID string + obj.SetDocID(fernTestValueDocID) + assert.Equal(t, fernTestValueDocID, obj.DocID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLayerName", func(t *testing.T) { + obj := &DocPagesSetScaleRequest{} + var fernTestValueLayerName string + obj.SetLayerName(fernTestValueLayerName) + assert.Equal(t, fernTestValueLayerName, obj.LayerName) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPon", func(t *testing.T) { + obj := &DocPagesSetScaleRequest{} + var fernTestValuePon int + obj.SetPon(fernTestValuePon) + assert.Equal(t, fernTestValuePon, obj.Pon) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMeasure", func(t *testing.T) { + obj := &DocPagesSetScaleRequest{} + var fernTestValueMeasure *DocPagesSetScaleRequestMeasure + obj.SetMeasure(fernTestValueMeasure) + assert.Equal(t, fernTestValueMeasure, obj.Measure) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestSettersMarkExplicitDocPagesSetScaleRequest(t *testing.T) { + t.Run("SetDocumentPassword_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequest{} + var fernTestValueDocumentPassword *string + + // Act + obj.SetDocumentPassword(fernTestValueDocumentPassword) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDocID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequest{} + var fernTestValueDocID string + + // Act + obj.SetDocID(fernTestValueDocID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetLayerName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequest{} + var fernTestValueLayerName string + + // Act + obj.SetLayerName(fernTestValueLayerName) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPon_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequest{} + var fernTestValuePon int + + // Act + obj.SetPon(fernTestValuePon) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMeasure_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequest{} + var fernTestValueMeasure *DocPagesSetScaleRequestMeasure + + // Act + obj.SetMeasure(fernTestValueMeasure) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocPagesSetScaleRequestMeasure(t *testing.T) { + t.Run("SetSubtype", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasure{} + var fernTestValueSubtype DocPagesSetScaleRequestMeasureSubtype + obj.SetSubtype(fernTestValueSubtype) + assert.Equal(t, fernTestValueSubtype, obj.Subtype) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRatio", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasure{} + var fernTestValueRatio *string + obj.SetRatio(fernTestValueRatio) + assert.Equal(t, fernTestValueRatio, obj.Ratio) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetX", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasure{} + var fernTestValueX []*DocPagesSetScaleRequestMeasureXItem + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasure{} + var fernTestValueY []*DocPagesSetScaleRequestMeasureYItem + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDistance", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasure{} + var fernTestValueDistance []*DocPagesSetScaleRequestMeasureDistanceItem + obj.SetDistance(fernTestValueDistance) + assert.Equal(t, fernTestValueDistance, obj.Distance) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetArea", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasure{} + var fernTestValueArea []*DocPagesSetScaleRequestMeasureAreaItem + obj.SetArea(fernTestValueArea) + assert.Equal(t, fernTestValueArea, obj.Area) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAngle", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasure{} + var fernTestValueAngle []*DocPagesSetScaleRequestMeasureAngleItem + obj.SetAngle(fernTestValueAngle) + assert.Equal(t, fernTestValueAngle, obj.Angle) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSlope", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasure{} + var fernTestValueSlope []*DocPagesSetScaleRequestMeasureSlopeItem + obj.SetSlope(fernTestValueSlope) + assert.Equal(t, fernTestValueSlope, obj.Slope) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetOrigin", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasure{} + var fernTestValueOrigin *DocPagesSetScaleRequestMeasureOrigin + obj.SetOrigin(fernTestValueOrigin) + assert.Equal(t, fernTestValueOrigin, obj.Origin) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCyx", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasure{} + var fernTestValueCyx *float64 + obj.SetCyx(fernTestValueCyx) + assert.Equal(t, fernTestValueCyx, obj.Cyx) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesSetScaleRequestMeasure(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasure{} + var expected DocPagesSetScaleRequestMeasureSubtype + obj.Subtype = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") + }) + + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasure + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSubtype() // Should return zero value + }) + + t.Run("GetRatio", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasure{} + var expected *string + obj.Ratio = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRatio(), "getter should return the property value") + }) + + t.Run("GetRatio_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasure{} + obj.Ratio = nil + + // Act & Assert + assert.Nil(t, obj.GetRatio(), "getter should return nil when property is nil") + }) + + t.Run("GetRatio_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasure + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRatio() // Should return zero value + }) + + t.Run("GetX", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasure{} + var expected []*DocPagesSetScaleRequestMeasureXItem + obj.X = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) + + t.Run("GetX_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasure{} + obj.X = nil + + // Act & Assert + assert.Nil(t, obj.GetX(), "getter should return nil when property is nil") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasure + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasure{} + var expected []*DocPagesSetScaleRequestMeasureYItem + obj.Y = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + }) + + t.Run("GetY_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasure{} + obj.Y = nil + + // Act & Assert + assert.Nil(t, obj.GetY(), "getter should return nil when property is nil") + }) + + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasure + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + + t.Run("GetDistance", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasure{} + var expected []*DocPagesSetScaleRequestMeasureDistanceItem + obj.Distance = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDistance(), "getter should return the property value") + }) + + t.Run("GetDistance_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasure{} + obj.Distance = nil + + // Act & Assert + assert.Nil(t, obj.GetDistance(), "getter should return nil when property is nil") + }) + + t.Run("GetDistance_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasure + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDistance() // Should return zero value + }) + + t.Run("GetArea", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasure{} + var expected []*DocPagesSetScaleRequestMeasureAreaItem + obj.Area = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetArea(), "getter should return the property value") + }) + + t.Run("GetArea_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasure{} + obj.Area = nil + + // Act & Assert + assert.Nil(t, obj.GetArea(), "getter should return nil when property is nil") + }) + + t.Run("GetArea_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasure + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetArea() // Should return zero value + }) + + t.Run("GetAngle", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasure{} + var expected []*DocPagesSetScaleRequestMeasureAngleItem + obj.Angle = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAngle(), "getter should return the property value") + }) + + t.Run("GetAngle_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasure{} + obj.Angle = nil + + // Act & Assert + assert.Nil(t, obj.GetAngle(), "getter should return nil when property is nil") + }) + + t.Run("GetAngle_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasure + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAngle() // Should return zero value + }) + + t.Run("GetSlope", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasure{} + var expected []*DocPagesSetScaleRequestMeasureSlopeItem + obj.Slope = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSlope(), "getter should return the property value") + }) + + t.Run("GetSlope_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasure{} + obj.Slope = nil + + // Act & Assert + assert.Nil(t, obj.GetSlope(), "getter should return nil when property is nil") + }) + + t.Run("GetSlope_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasure + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSlope() // Should return zero value + }) + + t.Run("GetOrigin", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasure{} + var expected *DocPagesSetScaleRequestMeasureOrigin + obj.Origin = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetOrigin(), "getter should return the property value") + }) + + t.Run("GetOrigin_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasure{} + obj.Origin = nil + + // Act & Assert + assert.Nil(t, obj.GetOrigin(), "getter should return nil when property is nil") + }) + + t.Run("GetOrigin_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasure + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetOrigin() // Should return zero value + }) + + t.Run("GetCyx", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasure{} + var expected *float64 + obj.Cyx = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCyx(), "getter should return the property value") + }) + + t.Run("GetCyx_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasure{} + obj.Cyx = nil + + // Act & Assert + assert.Nil(t, obj.GetCyx(), "getter should return nil when property is nil") + }) + + t.Run("GetCyx_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasure + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCyx() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocPagesSetScaleRequestMeasure(t *testing.T) { + t.Run("SetSubtype_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasure{} + var fernTestValueSubtype DocPagesSetScaleRequestMeasureSubtype + + // Act + obj.SetSubtype(fernTestValueSubtype) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRatio_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasure{} + var fernTestValueRatio *string + + // Act + obj.SetRatio(fernTestValueRatio) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasure{} + var fernTestValueX []*DocPagesSetScaleRequestMeasureXItem + + // Act + obj.SetX(fernTestValueX) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasure{} + var fernTestValueY []*DocPagesSetScaleRequestMeasureYItem + + // Act + obj.SetY(fernTestValueY) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDistance_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasure{} + var fernTestValueDistance []*DocPagesSetScaleRequestMeasureDistanceItem + + // Act + obj.SetDistance(fernTestValueDistance) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetArea_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasure{} + var fernTestValueArea []*DocPagesSetScaleRequestMeasureAreaItem + + // Act + obj.SetArea(fernTestValueArea) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetAngle_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasure{} + var fernTestValueAngle []*DocPagesSetScaleRequestMeasureAngleItem + + // Act + obj.SetAngle(fernTestValueAngle) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSlope_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasure{} + var fernTestValueSlope []*DocPagesSetScaleRequestMeasureSlopeItem + + // Act + obj.SetSlope(fernTestValueSlope) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetOrigin_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasure{} + var fernTestValueOrigin *DocPagesSetScaleRequestMeasureOrigin + + // Act + obj.SetOrigin(fernTestValueOrigin) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCyx_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasure{} + var fernTestValueCyx *float64 + + // Act + obj.SetCyx(fernTestValueCyx) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocPagesSetScaleRequestMeasureAngleItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetConversion", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + var fernTestValueConversion float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFraction", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + var fernTestValueFraction *DocPagesSetScaleRequestMeasureAngleItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFixed", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + var fernTestValueLabelPosition *DocPagesSetScaleRequestMeasureAngleItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesSetScaleRequestMeasureAngleItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + var expected string + obj.Unit = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") + }) + + t.Run("GetUnit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureAngleItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnit() // Should return zero value + }) + + t.Run("GetConversion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + var expected float64 + obj.Conversion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") + }) + + t.Run("GetConversion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureAngleItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetConversion() // Should return zero value + }) + + t.Run("GetFraction", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + var expected *DocPagesSetScaleRequestMeasureAngleItemFraction + obj.Fraction = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") + }) + + t.Run("GetFraction_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + obj.Fraction = nil + + // Act & Assert + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") + }) + + t.Run("GetFraction_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureAngleItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFraction() // Should return zero value + }) + + t.Run("GetPrecision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + var expected *int + obj.Precision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") + }) + + t.Run("GetPrecision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + obj.Precision = nil + + // Act & Assert + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") + }) + + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureAngleItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrecision() // Should return zero value + }) + + t.Run("GetFixed", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + var expected *bool + obj.Fixed = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") + }) + + t.Run("GetFixed_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + obj.Fixed = nil + + // Act & Assert + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") + }) + + t.Run("GetFixed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureAngleItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFixed() // Should return zero value + }) + + t.Run("GetThousands", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + var expected *string + obj.Thousands = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") + }) + + t.Run("GetThousands_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + obj.Thousands = nil + + // Act & Assert + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") + }) + + t.Run("GetThousands_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureAngleItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetThousands() // Should return zero value + }) + + t.Run("GetDecimal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + var expected *string + obj.Decimal = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") + }) + + t.Run("GetDecimal_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + obj.Decimal = nil + + // Act & Assert + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") + }) + + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureAngleItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDecimal() // Should return zero value + }) + + t.Run("GetPrefixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + var expected *string + obj.PrefixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") + }) + + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + obj.PrefixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureAngleItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrefixSpacing() // Should return zero value + }) + + t.Run("GetSuffixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + var expected *string + obj.SuffixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") + }) + + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + obj.SuffixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureAngleItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSuffixSpacing() // Should return zero value + }) + + t.Run("GetLabelPosition", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + var expected *DocPagesSetScaleRequestMeasureAngleItemLabelPosition + obj.LabelPosition = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") + }) + + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + obj.LabelPosition = nil + + // Act & Assert + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") + }) + + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureAngleItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLabelPosition() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocPagesSetScaleRequestMeasureAngleItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + var fernTestValueUnit string + + // Act + obj.SetUnit(fernTestValueUnit) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + var fernTestValueConversion float64 + + // Act + obj.SetConversion(fernTestValueConversion) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + var fernTestValueFraction *DocPagesSetScaleRequestMeasureAngleItemFraction + + // Act + obj.SetFraction(fernTestValueFraction) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + var fernTestValuePrecision *int + + // Act + obj.SetPrecision(fernTestValuePrecision) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + var fernTestValueFixed *bool + + // Act + obj.SetFixed(fernTestValueFixed) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + var fernTestValueThousands *string + + // Act + obj.SetThousands(fernTestValueThousands) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + var fernTestValueDecimal *string + + // Act + obj.SetDecimal(fernTestValueDecimal) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + var fernTestValuePrefixSpacing *string + + // Act + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + var fernTestValueSuffixSpacing *string + + // Act + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + var fernTestValueLabelPosition *DocPagesSetScaleRequestMeasureAngleItemLabelPosition + + // Act + obj.SetLabelPosition(fernTestValueLabelPosition) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocPagesSetScaleRequestMeasureAreaItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetConversion", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + var fernTestValueConversion float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFraction", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + var fernTestValueFraction *DocPagesSetScaleRequestMeasureAreaItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFixed", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + var fernTestValueLabelPosition *DocPagesSetScaleRequestMeasureAreaItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesSetScaleRequestMeasureAreaItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + var expected string + obj.Unit = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") + }) + + t.Run("GetUnit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnit() // Should return zero value + }) + + t.Run("GetConversion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + var expected float64 + obj.Conversion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") + }) + + t.Run("GetConversion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetConversion() // Should return zero value + }) + + t.Run("GetFraction", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + var expected *DocPagesSetScaleRequestMeasureAreaItemFraction + obj.Fraction = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") + }) + + t.Run("GetFraction_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + obj.Fraction = nil + + // Act & Assert + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") + }) + + t.Run("GetFraction_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFraction() // Should return zero value + }) + + t.Run("GetPrecision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + var expected *int + obj.Precision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") + }) + + t.Run("GetPrecision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + obj.Precision = nil + + // Act & Assert + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") + }) + + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrecision() // Should return zero value + }) + + t.Run("GetFixed", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + var expected *bool + obj.Fixed = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") + }) + + t.Run("GetFixed_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + obj.Fixed = nil + + // Act & Assert + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") + }) + + t.Run("GetFixed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFixed() // Should return zero value + }) + + t.Run("GetThousands", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + var expected *string + obj.Thousands = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") + }) + + t.Run("GetThousands_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + obj.Thousands = nil + + // Act & Assert + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") + }) + + t.Run("GetThousands_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetThousands() // Should return zero value + }) + + t.Run("GetDecimal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + var expected *string + obj.Decimal = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") + }) + + t.Run("GetDecimal_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + obj.Decimal = nil + + // Act & Assert + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") + }) + + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDecimal() // Should return zero value + }) + + t.Run("GetPrefixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + var expected *string + obj.PrefixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") + }) + + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + obj.PrefixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrefixSpacing() // Should return zero value + }) + + t.Run("GetSuffixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + var expected *string + obj.SuffixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") + }) + + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + obj.SuffixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSuffixSpacing() // Should return zero value + }) + + t.Run("GetLabelPosition", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + var expected *DocPagesSetScaleRequestMeasureAreaItemLabelPosition + obj.LabelPosition = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") + }) + + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + obj.LabelPosition = nil + + // Act & Assert + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") + }) + + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLabelPosition() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocPagesSetScaleRequestMeasureAreaItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + var fernTestValueUnit string + + // Act + obj.SetUnit(fernTestValueUnit) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + var fernTestValueConversion float64 + + // Act + obj.SetConversion(fernTestValueConversion) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + var fernTestValueFraction *DocPagesSetScaleRequestMeasureAreaItemFraction + + // Act + obj.SetFraction(fernTestValueFraction) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + var fernTestValuePrecision *int + + // Act + obj.SetPrecision(fernTestValuePrecision) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + var fernTestValueFixed *bool + + // Act + obj.SetFixed(fernTestValueFixed) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + var fernTestValueThousands *string + + // Act + obj.SetThousands(fernTestValueThousands) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + var fernTestValueDecimal *string + + // Act + obj.SetDecimal(fernTestValueDecimal) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + var fernTestValuePrefixSpacing *string + + // Act + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + var fernTestValueSuffixSpacing *string + + // Act + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + var fernTestValueLabelPosition *DocPagesSetScaleRequestMeasureAreaItemLabelPosition + + // Act + obj.SetLabelPosition(fernTestValueLabelPosition) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocPagesSetScaleRequestMeasureDistanceItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetConversion", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + var fernTestValueConversion float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFraction", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + var fernTestValueFraction *DocPagesSetScaleRequestMeasureDistanceItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFixed", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + var fernTestValueLabelPosition *DocPagesSetScaleRequestMeasureDistanceItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesSetScaleRequestMeasureDistanceItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + var expected string + obj.Unit = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") + }) + + t.Run("GetUnit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnit() // Should return zero value + }) + + t.Run("GetConversion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + var expected float64 + obj.Conversion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") + }) + + t.Run("GetConversion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetConversion() // Should return zero value + }) + + t.Run("GetFraction", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + var expected *DocPagesSetScaleRequestMeasureDistanceItemFraction + obj.Fraction = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") + }) + + t.Run("GetFraction_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + obj.Fraction = nil + + // Act & Assert + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") + }) + + t.Run("GetFraction_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFraction() // Should return zero value + }) + + t.Run("GetPrecision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + var expected *int + obj.Precision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") + }) + + t.Run("GetPrecision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + obj.Precision = nil + + // Act & Assert + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") + }) + + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrecision() // Should return zero value + }) + + t.Run("GetFixed", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + var expected *bool + obj.Fixed = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") + }) + + t.Run("GetFixed_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + obj.Fixed = nil + + // Act & Assert + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") + }) + + t.Run("GetFixed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFixed() // Should return zero value + }) + + t.Run("GetThousands", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + var expected *string + obj.Thousands = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") + }) + + t.Run("GetThousands_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + obj.Thousands = nil + + // Act & Assert + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") + }) + + t.Run("GetThousands_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetThousands() // Should return zero value + }) + + t.Run("GetDecimal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + var expected *string + obj.Decimal = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") + }) + + t.Run("GetDecimal_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + obj.Decimal = nil + + // Act & Assert + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") + }) + + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDecimal() // Should return zero value + }) + + t.Run("GetPrefixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + var expected *string + obj.PrefixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") + }) + + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + obj.PrefixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrefixSpacing() // Should return zero value + }) + + t.Run("GetSuffixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + var expected *string + obj.SuffixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") + }) + + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + obj.SuffixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSuffixSpacing() // Should return zero value + }) + + t.Run("GetLabelPosition", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + var expected *DocPagesSetScaleRequestMeasureDistanceItemLabelPosition + obj.LabelPosition = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") + }) + + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + obj.LabelPosition = nil + + // Act & Assert + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") + }) + + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLabelPosition() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocPagesSetScaleRequestMeasureDistanceItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + var fernTestValueUnit string + + // Act + obj.SetUnit(fernTestValueUnit) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + var fernTestValueConversion float64 + + // Act + obj.SetConversion(fernTestValueConversion) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + var fernTestValueFraction *DocPagesSetScaleRequestMeasureDistanceItemFraction + + // Act + obj.SetFraction(fernTestValueFraction) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + var fernTestValuePrecision *int + + // Act + obj.SetPrecision(fernTestValuePrecision) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + var fernTestValueFixed *bool + + // Act + obj.SetFixed(fernTestValueFixed) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + var fernTestValueThousands *string + + // Act + obj.SetThousands(fernTestValueThousands) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + var fernTestValueDecimal *string + + // Act + obj.SetDecimal(fernTestValueDecimal) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + var fernTestValuePrefixSpacing *string + + // Act + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + var fernTestValueSuffixSpacing *string + + // Act + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + var fernTestValueLabelPosition *DocPagesSetScaleRequestMeasureDistanceItemLabelPosition + + // Act + obj.SetLabelPosition(fernTestValueLabelPosition) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocPagesSetScaleRequestMeasureOrigin(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureOrigin{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureOrigin{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesSetScaleRequestMeasureOrigin(t *testing.T) { + t.Run("GetX", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureOrigin{} + var expected float64 + obj.X = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureOrigin + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureOrigin{} + var expected float64 + obj.Y = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + }) + + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureOrigin + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocPagesSetScaleRequestMeasureOrigin(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureOrigin{} + var fernTestValueX float64 + + // Act + obj.SetX(fernTestValueX) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureOrigin{} + var fernTestValueY float64 + + // Act + obj.SetY(fernTestValueY) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocPagesSetScaleRequestMeasureSlopeItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetConversion", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + var fernTestValueConversion float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFraction", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + var fernTestValueFraction *DocPagesSetScaleRequestMeasureSlopeItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFixed", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + var fernTestValueLabelPosition *DocPagesSetScaleRequestMeasureSlopeItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesSetScaleRequestMeasureSlopeItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + var expected string + obj.Unit = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") + }) + + t.Run("GetUnit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnit() // Should return zero value + }) + + t.Run("GetConversion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + var expected float64 + obj.Conversion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") + }) + + t.Run("GetConversion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetConversion() // Should return zero value + }) + + t.Run("GetFraction", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + var expected *DocPagesSetScaleRequestMeasureSlopeItemFraction + obj.Fraction = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") + }) + + t.Run("GetFraction_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + obj.Fraction = nil + + // Act & Assert + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") + }) + + t.Run("GetFraction_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFraction() // Should return zero value + }) + + t.Run("GetPrecision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + var expected *int + obj.Precision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") + }) + + t.Run("GetPrecision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + obj.Precision = nil + + // Act & Assert + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") + }) + + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrecision() // Should return zero value + }) + + t.Run("GetFixed", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + var expected *bool + obj.Fixed = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") + }) + + t.Run("GetFixed_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + obj.Fixed = nil + + // Act & Assert + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") + }) + + t.Run("GetFixed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFixed() // Should return zero value + }) + + t.Run("GetThousands", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + var expected *string + obj.Thousands = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") + }) + + t.Run("GetThousands_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + obj.Thousands = nil + + // Act & Assert + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") + }) + + t.Run("GetThousands_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetThousands() // Should return zero value + }) + + t.Run("GetDecimal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + var expected *string + obj.Decimal = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") + }) + + t.Run("GetDecimal_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + obj.Decimal = nil + + // Act & Assert + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") + }) + + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDecimal() // Should return zero value + }) + + t.Run("GetPrefixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + var expected *string + obj.PrefixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") + }) + + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + obj.PrefixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrefixSpacing() // Should return zero value + }) + + t.Run("GetSuffixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + var expected *string + obj.SuffixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") + }) + + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + obj.SuffixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSuffixSpacing() // Should return zero value + }) + + t.Run("GetLabelPosition", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + var expected *DocPagesSetScaleRequestMeasureSlopeItemLabelPosition + obj.LabelPosition = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") + }) + + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + obj.LabelPosition = nil + + // Act & Assert + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") + }) + + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLabelPosition() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocPagesSetScaleRequestMeasureSlopeItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + var fernTestValueUnit string + + // Act + obj.SetUnit(fernTestValueUnit) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + var fernTestValueConversion float64 + + // Act + obj.SetConversion(fernTestValueConversion) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + var fernTestValueFraction *DocPagesSetScaleRequestMeasureSlopeItemFraction + + // Act + obj.SetFraction(fernTestValueFraction) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + var fernTestValuePrecision *int + + // Act + obj.SetPrecision(fernTestValuePrecision) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + var fernTestValueFixed *bool + + // Act + obj.SetFixed(fernTestValueFixed) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + var fernTestValueThousands *string + + // Act + obj.SetThousands(fernTestValueThousands) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + var fernTestValueDecimal *string + + // Act + obj.SetDecimal(fernTestValueDecimal) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + var fernTestValuePrefixSpacing *string + + // Act + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + var fernTestValueSuffixSpacing *string + + // Act + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + var fernTestValueLabelPosition *DocPagesSetScaleRequestMeasureSlopeItemLabelPosition + + // Act + obj.SetLabelPosition(fernTestValueLabelPosition) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocPagesSetScaleRequestMeasureXItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureXItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetConversion", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureXItem{} + var fernTestValueConversion float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFraction", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureXItem{} + var fernTestValueFraction *DocPagesSetScaleRequestMeasureXItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureXItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFixed", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureXItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureXItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureXItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureXItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureXItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureXItem{} + var fernTestValueLabelPosition *DocPagesSetScaleRequestMeasureXItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesSetScaleRequestMeasureXItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureXItem{} + var expected string + obj.Unit = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") + }) + + t.Run("GetUnit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnit() // Should return zero value + }) + + t.Run("GetConversion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureXItem{} + var expected float64 + obj.Conversion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") + }) + + t.Run("GetConversion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetConversion() // Should return zero value + }) + + t.Run("GetFraction", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureXItem{} + var expected *DocPagesSetScaleRequestMeasureXItemFraction + obj.Fraction = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") + }) + + t.Run("GetFraction_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureXItem{} + obj.Fraction = nil + + // Act & Assert + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") + }) + + t.Run("GetFraction_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFraction() // Should return zero value + }) + + t.Run("GetPrecision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureXItem{} + var expected *int + obj.Precision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") + }) + + t.Run("GetPrecision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureXItem{} + obj.Precision = nil + + // Act & Assert + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") + }) + + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrecision() // Should return zero value + }) + + t.Run("GetFixed", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureXItem{} + var expected *bool + obj.Fixed = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") + }) + + t.Run("GetFixed_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureXItem{} + obj.Fixed = nil + + // Act & Assert + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") + }) + + t.Run("GetFixed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFixed() // Should return zero value + }) + + t.Run("GetThousands", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureXItem{} + var expected *string + obj.Thousands = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") + }) + + t.Run("GetThousands_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureXItem{} + obj.Thousands = nil + + // Act & Assert + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") + }) + + t.Run("GetThousands_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetThousands() // Should return zero value + }) + + t.Run("GetDecimal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureXItem{} + var expected *string + obj.Decimal = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") + }) + + t.Run("GetDecimal_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureXItem{} + obj.Decimal = nil + + // Act & Assert + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") + }) + + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDecimal() // Should return zero value + }) + + t.Run("GetPrefixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureXItem{} + var expected *string + obj.PrefixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") + }) + + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureXItem{} + obj.PrefixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrefixSpacing() // Should return zero value + }) + + t.Run("GetSuffixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureXItem{} + var expected *string + obj.SuffixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") + }) + + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureXItem{} + obj.SuffixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSuffixSpacing() // Should return zero value + }) + + t.Run("GetLabelPosition", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureXItem{} + var expected *DocPagesSetScaleRequestMeasureXItemLabelPosition + obj.LabelPosition = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") + }) + + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureXItem{} + obj.LabelPosition = nil + + // Act & Assert + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") + }) + + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLabelPosition() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocPagesSetScaleRequestMeasureXItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureXItem{} + var fernTestValueUnit string + + // Act + obj.SetUnit(fernTestValueUnit) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureXItem{} + var fernTestValueConversion float64 + + // Act + obj.SetConversion(fernTestValueConversion) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureXItem{} + var fernTestValueFraction *DocPagesSetScaleRequestMeasureXItemFraction + + // Act + obj.SetFraction(fernTestValueFraction) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureXItem{} + var fernTestValuePrecision *int + + // Act + obj.SetPrecision(fernTestValuePrecision) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureXItem{} + var fernTestValueFixed *bool + + // Act + obj.SetFixed(fernTestValueFixed) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureXItem{} + var fernTestValueThousands *string + + // Act + obj.SetThousands(fernTestValueThousands) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureXItem{} + var fernTestValueDecimal *string + + // Act + obj.SetDecimal(fernTestValueDecimal) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureXItem{} + var fernTestValuePrefixSpacing *string + + // Act + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureXItem{} + var fernTestValueSuffixSpacing *string + + // Act + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureXItem{} + var fernTestValueLabelPosition *DocPagesSetScaleRequestMeasureXItemLabelPosition + + // Act + obj.SetLabelPosition(fernTestValueLabelPosition) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocPagesSetScaleRequestMeasureYItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureYItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetConversion", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureYItem{} + var fernTestValueConversion float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFraction", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureYItem{} + var fernTestValueFraction *DocPagesSetScaleRequestMeasureYItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureYItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFixed", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureYItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureYItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureYItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureYItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureYItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocPagesSetScaleRequestMeasureYItem{} + var fernTestValueLabelPosition *DocPagesSetScaleRequestMeasureYItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesSetScaleRequestMeasureYItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureYItem{} + var expected string + obj.Unit = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") + }) + + t.Run("GetUnit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureYItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnit() // Should return zero value + }) + + t.Run("GetConversion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureYItem{} + var expected float64 + obj.Conversion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") + }) + + t.Run("GetConversion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureYItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetConversion() // Should return zero value + }) + + t.Run("GetFraction", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureYItem{} + var expected *DocPagesSetScaleRequestMeasureYItemFraction + obj.Fraction = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") + }) + + t.Run("GetFraction_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureYItem{} + obj.Fraction = nil + + // Act & Assert + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") + }) + + t.Run("GetFraction_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureYItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFraction() // Should return zero value + }) + + t.Run("GetPrecision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureYItem{} + var expected *int + obj.Precision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") + }) + + t.Run("GetPrecision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureYItem{} + obj.Precision = nil + + // Act & Assert + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") + }) + + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureYItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrecision() // Should return zero value + }) + + t.Run("GetFixed", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureYItem{} + var expected *bool + obj.Fixed = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") + }) + + t.Run("GetFixed_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureYItem{} + obj.Fixed = nil + + // Act & Assert + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") + }) + + t.Run("GetFixed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureYItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFixed() // Should return zero value + }) + + t.Run("GetThousands", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureYItem{} + var expected *string + obj.Thousands = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") + }) + + t.Run("GetThousands_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureYItem{} + obj.Thousands = nil + + // Act & Assert + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") + }) + + t.Run("GetThousands_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureYItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetThousands() // Should return zero value + }) + + t.Run("GetDecimal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureYItem{} + var expected *string + obj.Decimal = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") + }) + + t.Run("GetDecimal_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureYItem{} + obj.Decimal = nil + + // Act & Assert + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") + }) + + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureYItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDecimal() // Should return zero value + }) + + t.Run("GetPrefixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureYItem{} + var expected *string + obj.PrefixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") + }) + + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureYItem{} + obj.PrefixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureYItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrefixSpacing() // Should return zero value + }) + + t.Run("GetSuffixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureYItem{} + var expected *string + obj.SuffixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") + }) + + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureYItem{} + obj.SuffixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureYItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSuffixSpacing() // Should return zero value + }) + + t.Run("GetLabelPosition", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureYItem{} + var expected *DocPagesSetScaleRequestMeasureYItemLabelPosition + obj.LabelPosition = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") + }) + + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureYItem{} + obj.LabelPosition = nil + + // Act & Assert + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") + }) + + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureYItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLabelPosition() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocPagesSetScaleRequestMeasureYItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureYItem{} + var fernTestValueUnit string + + // Act + obj.SetUnit(fernTestValueUnit) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureYItem{} + var fernTestValueConversion float64 + + // Act + obj.SetConversion(fernTestValueConversion) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureYItem{} + var fernTestValueFraction *DocPagesSetScaleRequestMeasureYItemFraction + + // Act + obj.SetFraction(fernTestValueFraction) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureYItem{} + var fernTestValuePrecision *int + + // Act + obj.SetPrecision(fernTestValuePrecision) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureYItem{} + var fernTestValueFixed *bool + + // Act + obj.SetFixed(fernTestValueFixed) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureYItem{} + var fernTestValueThousands *string + + // Act + obj.SetThousands(fernTestValueThousands) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureYItem{} + var fernTestValueDecimal *string + + // Act + obj.SetDecimal(fernTestValueDecimal) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureYItem{} + var fernTestValuePrefixSpacing *string + + // Act + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureYItem{} + var fernTestValueSuffixSpacing *string + + // Act + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureYItem{} + var fernTestValueLabelPosition *DocPagesSetScaleRequestMeasureYItemLabelPosition + + // Act + obj.SetLabelPosition(fernTestValueLabelPosition) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersViewportsPagesRequest(t *testing.T) { + t.Run("SetDocumentPassword", func(t *testing.T) { + obj := &ViewportsPagesRequest{} + var fernTestValueDocumentPassword *string + obj.SetDocumentPassword(fernTestValueDocumentPassword) + assert.Equal(t, fernTestValueDocumentPassword, obj.DocumentPassword) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDocID", func(t *testing.T) { + obj := &ViewportsPagesRequest{} + var fernTestValueDocID string + obj.SetDocID(fernTestValueDocID) + assert.Equal(t, fernTestValueDocID, obj.DocID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLayerName", func(t *testing.T) { + obj := &ViewportsPagesRequest{} + var fernTestValueLayerName string + obj.SetLayerName(fernTestValueLayerName) + assert.Equal(t, fernTestValueLayerName, obj.LayerName) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPon", func(t *testing.T) { + obj := &ViewportsPagesRequest{} + var fernTestValuePon int + obj.SetPon(fernTestValuePon) + assert.Equal(t, fernTestValuePon, obj.Pon) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestSettersMarkExplicitViewportsPagesRequest(t *testing.T) { + t.Run("SetDocumentPassword_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &ViewportsPagesRequest{} + var fernTestValueDocumentPassword *string + + // Act + obj.SetDocumentPassword(fernTestValueDocumentPassword) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDocID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &ViewportsPagesRequest{} + var fernTestValueDocID string + + // Act + obj.SetDocID(fernTestValueDocID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetLayerName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &ViewportsPagesRequest{} + var fernTestValueLayerName string + + // Act + obj.SetLayerName(fernTestValueLayerName) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPon_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &ViewportsPagesRequest{} + var fernTestValuePon int + + // Act + obj.SetPon(fernTestValuePon) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestJSONMarshalingDocPagesSetScaleRequestMeasure(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasure{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocPagesSetScaleRequestMeasure + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScaleRequestMeasure + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScaleRequestMeasure + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesSetScaleRequestMeasureAngleItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocPagesSetScaleRequestMeasureAngleItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScaleRequestMeasureAngleItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScaleRequestMeasureAngleItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesSetScaleRequestMeasureAreaItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocPagesSetScaleRequestMeasureAreaItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScaleRequestMeasureAreaItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScaleRequestMeasureAreaItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesSetScaleRequestMeasureDistanceItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocPagesSetScaleRequestMeasureDistanceItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScaleRequestMeasureDistanceItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScaleRequestMeasureDistanceItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesSetScaleRequestMeasureOrigin(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureOrigin{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocPagesSetScaleRequestMeasureOrigin + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScaleRequestMeasureOrigin + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScaleRequestMeasureOrigin + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesSetScaleRequestMeasureSlopeItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocPagesSetScaleRequestMeasureSlopeItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScaleRequestMeasureSlopeItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScaleRequestMeasureSlopeItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesSetScaleRequestMeasureXItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureXItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocPagesSetScaleRequestMeasureXItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScaleRequestMeasureXItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScaleRequestMeasureXItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesSetScaleRequestMeasureYItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScaleRequestMeasureYItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocPagesSetScaleRequestMeasureYItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScaleRequestMeasureYItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScaleRequestMeasureYItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestStringDocPagesSetScaleRequestMeasure(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScaleRequestMeasure{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasure + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesSetScaleRequestMeasureAngleItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureAngleItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesSetScaleRequestMeasureAreaItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureAreaItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesSetScaleRequestMeasureDistanceItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureDistanceItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesSetScaleRequestMeasureOrigin(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScaleRequestMeasureOrigin{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureOrigin + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesSetScaleRequestMeasureSlopeItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureSlopeItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesSetScaleRequestMeasureXItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScaleRequestMeasureXItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureXItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesSetScaleRequestMeasureYItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScaleRequestMeasureYItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureYItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestEnumDocPagesSetScaleRequestMeasureAngleItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureAngleItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureAngleItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureAngleItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureAngleItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureAngleItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureAngleItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureAngleItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureAngleItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocPagesSetScaleRequestMeasureAngleItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocPagesSetScaleRequestMeasureAngleItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocPagesSetScaleRequestMeasureAngleItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureAngleItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureAngleItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureAngleItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureAngleItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocPagesSetScaleRequestMeasureAngleItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocPagesSetScaleRequestMeasureAngleItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocPagesSetScaleRequestMeasureAreaItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureAreaItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureAreaItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureAreaItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureAreaItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureAreaItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureAreaItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureAreaItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureAreaItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocPagesSetScaleRequestMeasureAreaItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocPagesSetScaleRequestMeasureAreaItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocPagesSetScaleRequestMeasureAreaItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureAreaItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureAreaItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureAreaItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureAreaItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocPagesSetScaleRequestMeasureAreaItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocPagesSetScaleRequestMeasureAreaItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocPagesSetScaleRequestMeasureDistanceItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureDistanceItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureDistanceItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureDistanceItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureDistanceItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureDistanceItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureDistanceItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureDistanceItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureDistanceItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocPagesSetScaleRequestMeasureDistanceItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocPagesSetScaleRequestMeasureDistanceItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocPagesSetScaleRequestMeasureDistanceItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureDistanceItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureDistanceItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureDistanceItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureDistanceItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocPagesSetScaleRequestMeasureDistanceItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocPagesSetScaleRequestMeasureDistanceItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocPagesSetScaleRequestMeasureSlopeItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureSlopeItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureSlopeItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureSlopeItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureSlopeItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureSlopeItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureSlopeItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureSlopeItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureSlopeItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocPagesSetScaleRequestMeasureSlopeItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocPagesSetScaleRequestMeasureSlopeItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocPagesSetScaleRequestMeasureSlopeItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureSlopeItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureSlopeItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureSlopeItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureSlopeItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocPagesSetScaleRequestMeasureSlopeItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocPagesSetScaleRequestMeasureSlopeItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocPagesSetScaleRequestMeasureSubtype(t *testing.T) { + t.Run("NewFromString_RL", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureSubtypeFromString("RL") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureSubtype("RL"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocPagesSetScaleRequestMeasureSubtypeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocPagesSetScaleRequestMeasureSubtypeFromString("RL") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocPagesSetScaleRequestMeasureXItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureXItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureXItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureXItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureXItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureXItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureXItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureXItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureXItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocPagesSetScaleRequestMeasureXItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocPagesSetScaleRequestMeasureXItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocPagesSetScaleRequestMeasureXItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureXItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureXItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureXItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureXItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocPagesSetScaleRequestMeasureXItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocPagesSetScaleRequestMeasureXItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocPagesSetScaleRequestMeasureYItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureYItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureYItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureYItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureYItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureYItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureYItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureYItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureYItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocPagesSetScaleRequestMeasureYItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocPagesSetScaleRequestMeasureYItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocPagesSetScaleRequestMeasureYItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureYItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureYItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScaleRequestMeasureYItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScaleRequestMeasureYItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocPagesSetScaleRequestMeasureYItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocPagesSetScaleRequestMeasureYItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestExtraPropertiesDocPagesSetScaleRequestMeasure(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScaleRequestMeasure{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasure + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocPagesSetScaleRequestMeasureAngleItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScaleRequestMeasureAngleItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureAngleItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocPagesSetScaleRequestMeasureAreaItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScaleRequestMeasureAreaItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureAreaItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocPagesSetScaleRequestMeasureDistanceItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScaleRequestMeasureDistanceItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureDistanceItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocPagesSetScaleRequestMeasureOrigin(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScaleRequestMeasureOrigin{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureOrigin + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocPagesSetScaleRequestMeasureSlopeItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScaleRequestMeasureSlopeItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureSlopeItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocPagesSetScaleRequestMeasureXItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScaleRequestMeasureXItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureXItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocPagesSetScaleRequestMeasureYItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScaleRequestMeasureYItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScaleRequestMeasureYItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} diff --git a/reference.md b/reference.md index 73759cb..7b3c32f 100644 --- a/reference.md +++ b/reference.md @@ -3074,6 +3074,158 @@ client.Doc.Metadata.Get( ## Doc Pages +
client.Doc.Pages.SetScale(DocID, LayerName, Pon, request) -> *cloudpdf.DocPagesSetScale200Response +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```go +request := &doc.DocPagesSetScaleRequest{ + DocID: "docId", + LayerName: "layerName", + Pon: 1, +} +client.Doc.Pages.SetScale( + context.TODO(), + request, +) +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**docID:** `string` + +
+
+ +
+
+ +**layerName:** `string` + +
+
+ +
+
+ +**pon:** `int` + +
+
+ +
+
+ +**documentPassword:** `*string` — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead. + +
+
+ +
+
+ +**measure:** `*doc.DocPagesSetScaleRequestMeasure` + +
+
+
+
+ + +
+
+
+ +
client.Doc.Pages.Viewports(DocID, LayerName, Pon) -> cloudpdf.DocPagesViewports200Response +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```go +request := &doc.ViewportsPagesRequest{ + DocID: "docId", + LayerName: "layerName", + Pon: 1, +} +client.Doc.Pages.Viewports( + context.TODO(), + request, +) +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**docID:** `string` + +
+
+ +
+
+ +**layerName:** `string` + +
+
+ +
+
+ +**pon:** `int` + +
+
+ +
+
+ +**documentPassword:** `*string` — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead. + +
+
+
+
+ + +
+
+
+
client.Doc.Pages.Delete(DocID, LayerName, request) -> *cloudpdf.DocPagesDelete200Response
diff --git a/types.go b/types.go index 936be4a..52c9570 100644 --- a/types.go +++ b/types.go @@ -22924,38 +22924,46 @@ func (d DocAnnotationsList200ResponseAnnotationsItemInkReplyType) Ptr() *DocAnno } var ( - docAnnotationsList200ResponseAnnotationsItemLineFieldRef = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemLineFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemLineFieldIndex = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemLineFieldIdentityQuality = big.NewInt(1 << 3) - docAnnotationsList200ResponseAnnotationsItemLineFieldNm = big.NewInt(1 << 4) - docAnnotationsList200ResponseAnnotationsItemLineFieldFlags = big.NewInt(1 << 5) - docAnnotationsList200ResponseAnnotationsItemLineFieldRect = big.NewInt(1 << 6) - docAnnotationsList200ResponseAnnotationsItemLineFieldContents = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemLineFieldSubject = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemLineFieldAuthor = big.NewInt(1 << 9) - docAnnotationsList200ResponseAnnotationsItemLineFieldCreated = big.NewInt(1 << 10) - docAnnotationsList200ResponseAnnotationsItemLineFieldModified = big.NewInt(1 << 11) - docAnnotationsList200ResponseAnnotationsItemLineFieldBlendMode = big.NewInt(1 << 12) - docAnnotationsList200ResponseAnnotationsItemLineFieldInReplyTo = big.NewInt(1 << 13) - docAnnotationsList200ResponseAnnotationsItemLineFieldReplyType = big.NewInt(1 << 14) - docAnnotationsList200ResponseAnnotationsItemLineFieldUserID = big.NewInt(1 << 15) - docAnnotationsList200ResponseAnnotationsItemLineFieldGroupID = big.NewInt(1 << 16) - docAnnotationsList200ResponseAnnotationsItemLineFieldCreatedBy = big.NewInt(1 << 17) - docAnnotationsList200ResponseAnnotationsItemLineFieldUpdatedBy = big.NewInt(1 << 18) - docAnnotationsList200ResponseAnnotationsItemLineFieldActions = big.NewInt(1 << 19) - docAnnotationsList200ResponseAnnotationsItemLineFieldColor = big.NewInt(1 << 20) - docAnnotationsList200ResponseAnnotationsItemLineFieldOpacity = big.NewInt(1 << 21) - docAnnotationsList200ResponseAnnotationsItemLineFieldStrokeWidth = big.NewInt(1 << 22) - docAnnotationsList200ResponseAnnotationsItemLineFieldBorderStyle = big.NewInt(1 << 23) - docAnnotationsList200ResponseAnnotationsItemLineFieldDashArray = big.NewInt(1 << 24) - docAnnotationsList200ResponseAnnotationsItemLineFieldInteriorColor = big.NewInt(1 << 25) - docAnnotationsList200ResponseAnnotationsItemLineFieldLinePoints = big.NewInt(1 << 26) - docAnnotationsList200ResponseAnnotationsItemLineFieldLineEndings = big.NewInt(1 << 27) - docAnnotationsList200ResponseAnnotationsItemLineFieldRotation = big.NewInt(1 << 28) + docAnnotationsList200ResponseAnnotationsItemLineFieldIntent = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemLineFieldMeasure = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemLineFieldCaption = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemLineFieldLeader = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemLineFieldRef = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemLineFieldPageObjectNumber = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemLineFieldIndex = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemLineFieldIdentityQuality = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemLineFieldNm = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemLineFieldFlags = big.NewInt(1 << 9) + docAnnotationsList200ResponseAnnotationsItemLineFieldRect = big.NewInt(1 << 10) + docAnnotationsList200ResponseAnnotationsItemLineFieldContents = big.NewInt(1 << 11) + docAnnotationsList200ResponseAnnotationsItemLineFieldSubject = big.NewInt(1 << 12) + docAnnotationsList200ResponseAnnotationsItemLineFieldAuthor = big.NewInt(1 << 13) + docAnnotationsList200ResponseAnnotationsItemLineFieldCreated = big.NewInt(1 << 14) + docAnnotationsList200ResponseAnnotationsItemLineFieldModified = big.NewInt(1 << 15) + docAnnotationsList200ResponseAnnotationsItemLineFieldBlendMode = big.NewInt(1 << 16) + docAnnotationsList200ResponseAnnotationsItemLineFieldInReplyTo = big.NewInt(1 << 17) + docAnnotationsList200ResponseAnnotationsItemLineFieldReplyType = big.NewInt(1 << 18) + docAnnotationsList200ResponseAnnotationsItemLineFieldUserID = big.NewInt(1 << 19) + docAnnotationsList200ResponseAnnotationsItemLineFieldGroupID = big.NewInt(1 << 20) + docAnnotationsList200ResponseAnnotationsItemLineFieldCreatedBy = big.NewInt(1 << 21) + docAnnotationsList200ResponseAnnotationsItemLineFieldUpdatedBy = big.NewInt(1 << 22) + docAnnotationsList200ResponseAnnotationsItemLineFieldActions = big.NewInt(1 << 23) + docAnnotationsList200ResponseAnnotationsItemLineFieldColor = big.NewInt(1 << 24) + docAnnotationsList200ResponseAnnotationsItemLineFieldOpacity = big.NewInt(1 << 25) + docAnnotationsList200ResponseAnnotationsItemLineFieldStrokeWidth = big.NewInt(1 << 26) + docAnnotationsList200ResponseAnnotationsItemLineFieldBorderStyle = big.NewInt(1 << 27) + docAnnotationsList200ResponseAnnotationsItemLineFieldDashArray = big.NewInt(1 << 28) + docAnnotationsList200ResponseAnnotationsItemLineFieldInteriorColor = big.NewInt(1 << 29) + docAnnotationsList200ResponseAnnotationsItemLineFieldLinePoints = big.NewInt(1 << 30) + docAnnotationsList200ResponseAnnotationsItemLineFieldLineEndings = big.NewInt(1 << 31) + docAnnotationsList200ResponseAnnotationsItemLineFieldRotation = big.NewInt(1 << 32) ) type DocAnnotationsList200ResponseAnnotationsItemLine struct { + Intent *DocAnnotationsList200ResponseAnnotationsItemLineIntent `json:"intent,omitempty" url:"intent,omitempty"` + Measure *DocAnnotationsList200ResponseAnnotationsItemLineMeasure `json:"measure,omitempty" url:"measure,omitempty"` + Caption *DocAnnotationsList200ResponseAnnotationsItemLineCaption `json:"caption,omitempty" url:"caption,omitempty"` + Leader *DocAnnotationsList200ResponseAnnotationsItemLineLeader `json:"leader,omitempty" url:"leader,omitempty"` Ref *DocAnnotationsList200ResponseAnnotationsItemLineRef `json:"ref" url:"ref"` PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Index int `json:"index" url:"index"` @@ -22993,6 +23001,34 @@ type DocAnnotationsList200ResponseAnnotationsItemLine struct { rawJSON json.RawMessage } +func (d *DocAnnotationsList200ResponseAnnotationsItemLine) GetIntent() *DocAnnotationsList200ResponseAnnotationsItemLineIntent { + if d == nil { + return nil + } + return d.Intent +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLine) GetMeasure() *DocAnnotationsList200ResponseAnnotationsItemLineMeasure { + if d == nil { + return nil + } + return d.Measure +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLine) GetCaption() *DocAnnotationsList200ResponseAnnotationsItemLineCaption { + if d == nil { + return nil + } + return d.Caption +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLine) GetLeader() *DocAnnotationsList200ResponseAnnotationsItemLineLeader { + if d == nil { + return nil + } + return d.Leader +} + func (d *DocAnnotationsList200ResponseAnnotationsItemLine) GetRef() *DocAnnotationsList200ResponseAnnotationsItemLineRef { if d == nil { return nil @@ -23210,6 +23246,34 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLine) require(field *big.In d.explicitFields.Or(d.explicitFields, field) } +// SetIntent sets the Intent field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLine) SetIntent(intent *DocAnnotationsList200ResponseAnnotationsItemLineIntent) { + d.Intent = intent + d.require(docAnnotationsList200ResponseAnnotationsItemLineFieldIntent) +} + +// SetMeasure sets the Measure field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLine) SetMeasure(measure *DocAnnotationsList200ResponseAnnotationsItemLineMeasure) { + d.Measure = measure + d.require(docAnnotationsList200ResponseAnnotationsItemLineFieldMeasure) +} + +// SetCaption sets the Caption field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLine) SetCaption(caption *DocAnnotationsList200ResponseAnnotationsItemLineCaption) { + d.Caption = caption + d.require(docAnnotationsList200ResponseAnnotationsItemLineFieldCaption) +} + +// SetLeader sets the Leader field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLine) SetLeader(leader *DocAnnotationsList200ResponseAnnotationsItemLineLeader) { + d.Leader = leader + d.require(docAnnotationsList200ResponseAnnotationsItemLineFieldLeader) +} + // SetRef sets the Ref field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. func (d *DocAnnotationsList200ResponseAnnotationsItemLine) SetRef(ref *DocAnnotationsList200ResponseAnnotationsItemLineRef) { @@ -23559,6 +23623,244 @@ func (d DocAnnotationsList200ResponseAnnotationsItemLineBorderStyle) Ptr() *DocA return &d } +var ( + docAnnotationsList200ResponseAnnotationsItemLineCaptionFieldEnabled = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemLineCaptionFieldPosition = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemLineCaptionFieldOffset = big.NewInt(1 << 2) +) + +type DocAnnotationsList200ResponseAnnotationsItemLineCaption struct { + Enabled bool `json:"enabled" url:"enabled"` + Position *DocAnnotationsList200ResponseAnnotationsItemLineCaptionPosition `json:"position,omitempty" url:"position,omitempty"` + Offset *DocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset `json:"offset,omitempty" url:"offset,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineCaption) GetEnabled() bool { + if d == nil { + return false + } + return d.Enabled +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineCaption) GetPosition() *DocAnnotationsList200ResponseAnnotationsItemLineCaptionPosition { + if d == nil { + return nil + } + return d.Position +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineCaption) GetOffset() *DocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset { + if d == nil { + return nil + } + return d.Offset +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineCaption) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineCaption) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetEnabled sets the Enabled field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineCaption) SetEnabled(enabled bool) { + d.Enabled = enabled + d.require(docAnnotationsList200ResponseAnnotationsItemLineCaptionFieldEnabled) +} + +// SetPosition sets the Position field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineCaption) SetPosition(position *DocAnnotationsList200ResponseAnnotationsItemLineCaptionPosition) { + d.Position = position + d.require(docAnnotationsList200ResponseAnnotationsItemLineCaptionFieldPosition) +} + +// SetOffset sets the Offset field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineCaption) SetOffset(offset *DocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset) { + d.Offset = offset + d.require(docAnnotationsList200ResponseAnnotationsItemLineCaptionFieldOffset) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineCaption) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLineCaption + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemLineCaption(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineCaption) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLineCaption + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineCaption) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsList200ResponseAnnotationsItemLineCaptionOffsetFieldAlong = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemLineCaptionOffsetFieldPerpendicular = big.NewInt(1 << 1) +) + +type DocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset struct { + Along float64 `json:"along" url:"along"` + Perpendicular float64 `json:"perpendicular" url:"perpendicular"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset) GetAlong() float64 { + if d == nil { + return 0 + } + return d.Along +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset) GetPerpendicular() float64 { + if d == nil { + return 0 + } + return d.Perpendicular +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetAlong sets the Along field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset) SetAlong(along float64) { + d.Along = along + d.require(docAnnotationsList200ResponseAnnotationsItemLineCaptionOffsetFieldAlong) +} + +// SetPerpendicular sets the Perpendicular field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset) SetPerpendicular(perpendicular float64) { + d.Perpendicular = perpendicular + d.require(docAnnotationsList200ResponseAnnotationsItemLineCaptionOffsetFieldPerpendicular) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsList200ResponseAnnotationsItemLineCaptionPosition string + +const ( + DocAnnotationsList200ResponseAnnotationsItemLineCaptionPositionInline DocAnnotationsList200ResponseAnnotationsItemLineCaptionPosition = "inline" + DocAnnotationsList200ResponseAnnotationsItemLineCaptionPositionTop DocAnnotationsList200ResponseAnnotationsItemLineCaptionPosition = "top" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemLineCaptionPositionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemLineCaptionPosition, error) { + switch s { + case "inline": + return DocAnnotationsList200ResponseAnnotationsItemLineCaptionPositionInline, nil + case "top": + return DocAnnotationsList200ResponseAnnotationsItemLineCaptionPositionTop, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemLineCaptionPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemLineCaptionPosition) Ptr() *DocAnnotationsList200ResponseAnnotationsItemLineCaptionPosition { + return &d +} + var ( docAnnotationsList200ResponseAnnotationsItemLineColorFieldR = big.NewInt(1 << 0) docAnnotationsList200ResponseAnnotationsItemLineColorFieldG = big.NewInt(1 << 1) @@ -24507,6 +24809,28 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLineInReplyToObjectNumber) return fmt.Sprintf("%#v", d) } +type DocAnnotationsList200ResponseAnnotationsItemLineIntent string + +const ( + DocAnnotationsList200ResponseAnnotationsItemLineIntentLineArrow DocAnnotationsList200ResponseAnnotationsItemLineIntent = "LineArrow" + DocAnnotationsList200ResponseAnnotationsItemLineIntentLineDimension DocAnnotationsList200ResponseAnnotationsItemLineIntent = "LineDimension" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemLineIntentFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemLineIntent, error) { + switch s { + case "LineArrow": + return DocAnnotationsList200ResponseAnnotationsItemLineIntentLineArrow, nil + case "LineDimension": + return DocAnnotationsList200ResponseAnnotationsItemLineIntentLineDimension, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemLineIntent + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemLineIntent) Ptr() *DocAnnotationsList200ResponseAnnotationsItemLineIntent { + return &d +} + var ( docAnnotationsList200ResponseAnnotationsItemLineInteriorColorFieldR = big.NewInt(1 << 0) docAnnotationsList200ResponseAnnotationsItemLineInteriorColorFieldG = big.NewInt(1 << 1) @@ -24623,6 +24947,122 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLineInteriorColor) String() return fmt.Sprintf("%#v", d) } +var ( + docAnnotationsList200ResponseAnnotationsItemLineLeaderFieldLength = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemLineLeaderFieldExtension = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemLineLeaderFieldOffset = big.NewInt(1 << 2) +) + +type DocAnnotationsList200ResponseAnnotationsItemLineLeader struct { + Length float64 `json:"length" url:"length"` + Extension *float64 `json:"extension,omitempty" url:"extension,omitempty"` + Offset *float64 `json:"offset,omitempty" url:"offset,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineLeader) GetLength() float64 { + if d == nil { + return 0 + } + return d.Length +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineLeader) GetExtension() *float64 { + if d == nil { + return nil + } + return d.Extension +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineLeader) GetOffset() *float64 { + if d == nil { + return nil + } + return d.Offset +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineLeader) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineLeader) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetLength sets the Length field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineLeader) SetLength(length float64) { + d.Length = length + d.require(docAnnotationsList200ResponseAnnotationsItemLineLeaderFieldLength) +} + +// SetExtension sets the Extension field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineLeader) SetExtension(extension *float64) { + d.Extension = extension + d.require(docAnnotationsList200ResponseAnnotationsItemLineLeaderFieldExtension) +} + +// SetOffset sets the Offset field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineLeader) SetOffset(offset *float64) { + d.Offset = offset + d.require(docAnnotationsList200ResponseAnnotationsItemLineLeaderFieldOffset) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineLeader) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLineLeader + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemLineLeader(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineLeader) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLineLeader + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineLeader) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + var ( docAnnotationsList200ResponseAnnotationsItemLineLineEndingsFieldStart = big.NewInt(1 << 0) docAnnotationsList200ResponseAnnotationsItemLineLineEndingsFieldEnd = big.NewInt(1 << 1) @@ -25115,222 +25555,90 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart) String return fmt.Sprintf("%#v", d) } -var ( - docAnnotationsList200ResponseAnnotationsItemLineRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemLineRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemLineRectFieldRight = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemLineRectFieldTop = big.NewInt(1 << 3) -) - -type DocAnnotationsList200ResponseAnnotationsItemLineRect struct { - Left float64 `json:"left" url:"left"` - Bottom float64 `json:"bottom" url:"bottom"` - Right float64 `json:"right" url:"right"` - Top float64 `json:"top" url:"top"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRect) GetLeft() float64 { - if d == nil { - return 0 - } - return d.Left -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRect) GetBottom() float64 { - if d == nil { - return 0 - } - return d.Bottom -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRect) GetRight() float64 { - if d == nil { - return 0 - } - return d.Right -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRect) GetTop() float64 { - if d == nil { - return 0 - } - return d.Top -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRect) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRect) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetLeft sets the Left field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRect) SetLeft(left float64) { - d.Left = left - d.require(docAnnotationsList200ResponseAnnotationsItemLineRectFieldLeft) -} - -// SetBottom sets the Bottom field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRect) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsList200ResponseAnnotationsItemLineRectFieldBottom) -} - -// SetRight sets the Right field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRect) SetRight(right float64) { - d.Right = right - d.require(docAnnotationsList200ResponseAnnotationsItemLineRectFieldRight) -} - -// SetTop sets the Top field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRect) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsList200ResponseAnnotationsItemLineRectFieldTop) -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLineRect - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsList200ResponseAnnotationsItemLineRect(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemLineRect - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRect) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) -} - -type DocAnnotationsList200ResponseAnnotationsItemLineRef struct { - Kind string - ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber - Nm *DocAnnotationsList200ResponseAnnotationsItemLineRefNm - Index *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex +type DocAnnotationsList200ResponseAnnotationsItemLineMeasure struct { + Subtype string + Rl *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl + Geo *DocAnnotationsList200ResponseAnnotationsItemLineMeasureGeo + Unknown *DocAnnotationsList200ResponseAnnotationsItemLineMeasureUnknown rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRef) GetKind() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasure) GetSubtype() string { if d == nil { return "" } - return d.Kind + return d.Subtype } -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRef) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasure) GetRl() *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl { if d == nil { return nil } - return d.ObjectNumber + return d.Rl } -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRef) GetNm() *DocAnnotationsList200ResponseAnnotationsItemLineRefNm { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasure) GetGeo() *DocAnnotationsList200ResponseAnnotationsItemLineMeasureGeo { if d == nil { return nil } - return d.Nm + return d.Geo } -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRef) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasure) GetUnknown() *DocAnnotationsList200ResponseAnnotationsItemLineMeasureUnknown { if d == nil { return nil } - return d.Index + return d.Unknown } -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRef) UnmarshalJSON(data []byte) error { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasure) UnmarshalJSON(data []byte) error { var unmarshaler struct { - Kind string `json:"kind"` + Subtype string `json:"subtype"` } if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) + d.Subtype = unmarshaler.Subtype + if unmarshaler.Subtype == "" { + return fmt.Errorf("%T did not include discriminant subtype", d) } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber) + switch unmarshaler.Subtype { + case "RL": + value := new(DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl) if err := json.Unmarshal(data, &value); err != nil { return err } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsList200ResponseAnnotationsItemLineRefNm) + d.Rl = value + case "GEO": + value := new(DocAnnotationsList200ResponseAnnotationsItemLineMeasureGeo) if err := json.Unmarshal(data, &value); err != nil { return err } - d.Nm = value - case "index": - value := new(DocAnnotationsList200ResponseAnnotationsItemLineRefIndex) + d.Geo = value + case "unknown": + value := new(DocAnnotationsList200ResponseAnnotationsItemLineMeasureUnknown) if err := json.Unmarshal(data, &value); err != nil { return err } - d.Index = value + d.Unknown = value } d.rawJSON = json.RawMessage(data) return nil } -func (d DocAnnotationsList200ResponseAnnotationsItemLineRef) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsList200ResponseAnnotationsItemLineMeasure) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + if d.Rl != nil { + return internal.MarshalJSONWithExtraProperty(d.Rl, "subtype", "RL") } - if d.Nm != nil { - return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + if d.Geo != nil { + return internal.MarshalJSONWithExtraProperty(d.Geo, "subtype", "GEO") } - if d.Index != nil { - return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + if d.Unknown != nil { + return internal.MarshalJSONWithExtraProperty(d.Unknown, "subtype", "unknown") } if len(d.rawJSON) > 0 { return d.rawJSON, nil @@ -25338,58 +25646,58 @@ func (d DocAnnotationsList200ResponseAnnotationsItemLineRef) MarshalJSON() ([]by return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsList200ResponseAnnotationsItemLineRefVisitor interface { - VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber) error - VisitNm(*DocAnnotationsList200ResponseAnnotationsItemLineRefNm) error - VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemLineRefIndex) error +type DocAnnotationsList200ResponseAnnotationsItemLineMeasureVisitor interface { + VisitRl(*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl) error + VisitGeo(*DocAnnotationsList200ResponseAnnotationsItemLineMeasureGeo) error + VisitUnknown(*DocAnnotationsList200ResponseAnnotationsItemLineMeasureUnknown) error } -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRef) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemLineRefVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasure) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemLineMeasureVisitor) error { + if d.Rl != nil { + return visitor.VisitRl(d.Rl) } - if d.Nm != nil { - return visitor.VisitNm(d.Nm) + if d.Geo != nil { + return visitor.VisitGeo(d.Geo) } - if d.Index != nil { - return visitor.VisitIndex(d.Index) + if d.Unknown != nil { + return visitor.VisitUnknown(d.Unknown) } return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRef) validate() error { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasure) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") + if d.Rl != nil { + fields = append(fields, "RL") } - if d.Nm != nil { - fields = append(fields, "nm") + if d.Geo != nil { + fields = append(fields, "GEO") } - if d.Index != nil { - fields = append(fields, "index") + if d.Unknown != nil { + fields = append(fields, "unknown") } if len(fields) == 0 { - if d.Kind != "" { + if d.Subtype != "" { if len(d.rawJSON) > 0 { return nil } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Subtype) } return fmt.Errorf("type %T is empty", d) } if len(fields) > 1 { return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) } - if d.Kind != "" { + if d.Subtype != "" { field := fields[0] - if d.Kind != field { + if d.Subtype != field { return fmt.Errorf( "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", d, - d.Kind, + d.Subtype, d, ) } @@ -25397,16 +25705,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLineRef) validate() error { return nil } -var ( - docAnnotationsList200ResponseAnnotationsItemLineRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemLineRefIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemLineRefIndexFieldRevision = big.NewInt(1 << 2) -) - -type DocAnnotationsList200ResponseAnnotationsItemLineRefIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsList200ResponseAnnotationsItemLineMeasureGeo struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -25415,69 +25714,27 @@ type DocAnnotationsList200ResponseAnnotationsItemLineRefIndex struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex) GetIndex() int { - if d == nil { - return 0 - } - return d.Index -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision { - if d == nil { - return nil - } - return d.Revision -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureGeo) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureGeo) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemLineRefIndexFieldPageObjectNumber) -} - -// SetIndex sets the Index field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemLineRefIndexFieldIndex) -} - -// SetRevision sets the Revision field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision) { - d.Revision = revision - d.require(docAnnotationsList200ResponseAnnotationsItemLineRefIndexFieldRevision) -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLineRefIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureGeo) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLineMeasureGeo var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemLineRefIndex(value) + *d = DocAnnotationsList200ResponseAnnotationsItemLineMeasureGeo(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -25487,8 +25744,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex) UnmarshalJSON return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemLineRefIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureGeo) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLineMeasureGeo var marshaler = struct { embed }{ @@ -25498,7 +25755,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex) MarshalJSON() return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureGeo) String() string { if d == nil { return "" } @@ -25514,15 +25771,27 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex) String() stri } var ( - docAnnotationsList200ResponseAnnotationsItemLineRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemLineRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemLineRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlFieldRatio = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlFieldX = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlFieldY = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlFieldDistance = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlFieldArea = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlFieldAngle = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlFieldSlope = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlFieldOrigin = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlFieldCyx = big.NewInt(1 << 8) ) -type DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl struct { + Ratio *string `json:"ratio,omitempty" url:"ratio,omitempty"` + X []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem `json:"x" url:"x"` + Y []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem `json:"y,omitempty" url:"y,omitempty"` + Distance []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem `json:"distance" url:"distance"` + Area []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem `json:"area" url:"area"` + Angle []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem `json:"angle,omitempty" url:"angle,omitempty"` + Slope []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem `json:"slope,omitempty" url:"slope,omitempty"` + Origin *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin `json:"origin,omitempty" url:"origin,omitempty"` + Cyx *float64 `json:"cyx,omitempty" url:"cyx,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -25531,69 +25800,153 @@ type DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl) GetRatio() *string { if d == nil { - return "" + return nil } - return d.DocSessionID + return d.Ratio } -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl) GetX() []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem { if d == nil { - return 0 + return nil } - return d.PageObjectNumber + return d.X } -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision) GetGeneration() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl) GetY() []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem { if d == nil { - return 0 + return nil } - return d.Generation + return d.Y } -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl) GetDistance() []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem { + if d == nil { + return nil + } + return d.Distance +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl) GetArea() []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem { + if d == nil { + return nil + } + return d.Area +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl) GetAngle() []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem { + if d == nil { + return nil + } + return d.Angle +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl) GetSlope() []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem { + if d == nil { + return nil + } + return d.Slope +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl) GetOrigin() *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin { + if d == nil { + return nil + } + return d.Origin +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl) GetCyx() *float64 { + if d == nil { + return nil + } + return d.Cyx +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// SetRatio sets the Ratio field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsList200ResponseAnnotationsItemLineRefIndexRevisionFieldDocSessionID) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl) SetRatio(ratio *string) { + d.Ratio = ratio + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlFieldRatio) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemLineRefIndexRevisionFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl) SetX(x []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem) { + d.X = x + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlFieldX) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsList200ResponseAnnotationsItemLineRefIndexRevisionFieldGeneration) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl) SetY(y []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem) { + d.Y = y + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlFieldY) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision +// SetDistance sets the Distance field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl) SetDistance(distance []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem) { + d.Distance = distance + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlFieldDistance) +} + +// SetArea sets the Area field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl) SetArea(area []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem) { + d.Area = area + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlFieldArea) +} + +// SetAngle sets the Angle field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl) SetAngle(angle []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem) { + d.Angle = angle + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlFieldAngle) +} + +// SetSlope sets the Slope field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl) SetSlope(slope []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem) { + d.Slope = slope + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlFieldSlope) +} + +// SetOrigin sets the Origin field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl) SetOrigin(origin *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin) { + d.Origin = origin + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlFieldOrigin) +} + +// SetCyx sets the Cyx field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl) SetCyx(cyx *float64) { + d.Cyx = cyx + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlFieldCyx) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision(value) + *d = DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -25603,8 +25956,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision) Unmar return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl var marshaler = struct { embed }{ @@ -25614,7 +25967,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision) Marsh return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl) String() string { if d == nil { return "" } @@ -25630,13 +25983,29 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision) Strin } var ( - docAnnotationsList200ResponseAnnotationsItemLineRefNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemLineRefNmFieldNm = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFieldLabelPosition = big.NewInt(1 << 9) ) -type DocAnnotationsList200ResponseAnnotationsItemLineRefNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` +type DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -25645,155 +26014,167 @@ type DocAnnotationsList200ResponseAnnotationsItemLineRefNm struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefNm) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem) GetUnit() string { if d == nil { - return 0 + return "" } - return d.PageObjectNumber + return d.Unit } -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefNm) GetNm() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem) GetConversion() *float64 { if d == nil { - return "" + return nil } - return d.Nm + return d.Conversion } -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem) GetFraction() *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFraction { if d == nil { return nil } - return d.extraProperties + return d.Fraction } -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefNm) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem) GetPrecision() *int { + if d == nil { + return nil } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefNm) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemLineRefNmFieldPageObjectNumber) -} - -// SetNm sets the Nm field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemLineRefNmFieldNm) + return d.Precision } -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLineRefNm - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsList200ResponseAnnotationsItemLineRefNm(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem) GetFixed() *bool { + if d == nil { + return nil } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil + return d.Fixed } -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemLineRefNm - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem) GetThousands() *string { + if d == nil { + return nil } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return d.Thousands } -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefNm) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem) GetDecimal() *string { if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value + return nil } - return fmt.Sprintf("%#v", d) + return d.Decimal } -var ( - docAnnotationsList200ResponseAnnotationsItemLineRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemLineRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) -) - -type DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem) GetPrefixSpacing() *string { + if d == nil { + return nil + } + return d.PrefixSpacing } -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem) GetSuffixSpacing() *string { if d == nil { - return 0 + return nil } - return d.PageObjectNumber + return d.SuffixSpacing } -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem) GetLabelPosition() *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemLabelPosition { if d == nil { - return 0 + return nil } - return d.AnnotObjectNumber + return d.LabelPosition } -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemLineRefObjectNumberFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFieldUnit) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemLineRefObjectNumberFieldAnnotObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFieldConversion) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber +// SetFraction sets the Fraction field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem) SetFraction(fraction *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFieldFraction) +} + +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFieldPrecision) +} + +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem) SetLabelPosition(labelPosition *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFieldLabelPosition) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber(value) + *d = DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -25803,8 +26184,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber) Unmars return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem var marshaler = struct { embed }{ @@ -25814,7 +26195,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber) Marsha return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem) String() string { if d == nil { return "" } @@ -25829,405 +26210,249 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber) String return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemLineReplyType string +type DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFraction string const ( - DocAnnotationsList200ResponseAnnotationsItemLineReplyTypeReply DocAnnotationsList200ResponseAnnotationsItemLineReplyType = "reply" - DocAnnotationsList200ResponseAnnotationsItemLineReplyTypeGroup DocAnnotationsList200ResponseAnnotationsItemLineReplyType = "group" + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFractionDecimal DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFraction = "decimal" + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFractionFraction DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFraction = "fraction" + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFractionRound DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFraction = "round" + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFractionTruncate DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFraction = "truncate" ) -func NewDocAnnotationsList200ResponseAnnotationsItemLineReplyTypeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemLineReplyType, error) { +func NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFractionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFraction, error) { switch s { - case "reply": - return DocAnnotationsList200ResponseAnnotationsItemLineReplyTypeReply, nil - case "group": - return DocAnnotationsList200ResponseAnnotationsItemLineReplyTypeGroup, nil - } - var t DocAnnotationsList200ResponseAnnotationsItemLineReplyType + case "decimal": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFractionDecimal, nil + case "fraction": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFractionFraction, nil + case "round": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFractionRound, nil + case "truncate": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFractionTruncate, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFraction return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsList200ResponseAnnotationsItemLineReplyType) Ptr() *DocAnnotationsList200ResponseAnnotationsItemLineReplyType { +func (d DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFraction) Ptr() *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFraction { return &d } -var ( - docAnnotationsList200ResponseAnnotationsItemLinkFieldRef = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemLinkFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemLinkFieldIndex = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemLinkFieldIdentityQuality = big.NewInt(1 << 3) - docAnnotationsList200ResponseAnnotationsItemLinkFieldNm = big.NewInt(1 << 4) - docAnnotationsList200ResponseAnnotationsItemLinkFieldFlags = big.NewInt(1 << 5) - docAnnotationsList200ResponseAnnotationsItemLinkFieldRect = big.NewInt(1 << 6) - docAnnotationsList200ResponseAnnotationsItemLinkFieldContents = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemLinkFieldSubject = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemLinkFieldAuthor = big.NewInt(1 << 9) - docAnnotationsList200ResponseAnnotationsItemLinkFieldCreated = big.NewInt(1 << 10) - docAnnotationsList200ResponseAnnotationsItemLinkFieldModified = big.NewInt(1 << 11) - docAnnotationsList200ResponseAnnotationsItemLinkFieldBlendMode = big.NewInt(1 << 12) - docAnnotationsList200ResponseAnnotationsItemLinkFieldInReplyTo = big.NewInt(1 << 13) - docAnnotationsList200ResponseAnnotationsItemLinkFieldReplyType = big.NewInt(1 << 14) - docAnnotationsList200ResponseAnnotationsItemLinkFieldUserID = big.NewInt(1 << 15) - docAnnotationsList200ResponseAnnotationsItemLinkFieldGroupID = big.NewInt(1 << 16) - docAnnotationsList200ResponseAnnotationsItemLinkFieldCreatedBy = big.NewInt(1 << 17) - docAnnotationsList200ResponseAnnotationsItemLinkFieldUpdatedBy = big.NewInt(1 << 18) - docAnnotationsList200ResponseAnnotationsItemLinkFieldActions = big.NewInt(1 << 19) - docAnnotationsList200ResponseAnnotationsItemLinkFieldTarget = big.NewInt(1 << 20) -) - -type DocAnnotationsList200ResponseAnnotationsItemLink struct { - Ref *DocAnnotationsList200ResponseAnnotationsItemLinkRef `json:"ref" url:"ref"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - IdentityQuality DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQuality `json:"identityQuality" url:"identityQuality"` - Nm *string `json:"nm,omitempty" url:"nm,omitempty"` - Flags *DocAnnotationsList200ResponseAnnotationsItemLinkFlags `json:"flags" url:"flags"` - Rect *DocAnnotationsList200ResponseAnnotationsItemLinkRect `json:"rect" url:"rect"` - Contents *string `json:"contents,omitempty" url:"contents,omitempty"` - Subject *string `json:"subject,omitempty" url:"subject,omitempty"` - Author *string `json:"author,omitempty" url:"author,omitempty"` - Created *time.Time `json:"created,omitempty" url:"created,omitempty"` - Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` - BlendMode DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode `json:"blendMode" url:"blendMode"` - InReplyTo *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` - ReplyType *DocAnnotationsList200ResponseAnnotationsItemLinkReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` - UserID *string `json:"userId,omitempty" url:"userId,omitempty"` - GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` - CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` - Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` - Target *DocAnnotationsList200ResponseAnnotationsItemLinkTarget `json:"target,omitempty" url:"target,omitempty"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetRef() *DocAnnotationsList200ResponseAnnotationsItemLinkRef { - if d == nil { - return nil - } - return d.Ref -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetIndex() int { - if d == nil { - return 0 - } - return d.Index -} +type DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemLabelPosition string -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetIdentityQuality() DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQuality { - if d == nil { - return "" - } - return d.IdentityQuality -} +const ( + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemLabelPositionSuffix DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemLabelPosition = "suffix" + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemLabelPositionPrefix DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemLabelPosition = "prefix" +) -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetNm() *string { - if d == nil { - return nil +func NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemLabelPositionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemLabelPosition, error) { + switch s { + case "suffix": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemLabelPositionPrefix, nil } - return d.Nm + var t DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetFlags() *DocAnnotationsList200ResponseAnnotationsItemLinkFlags { - if d == nil { - return nil - } - return d.Flags +func (d DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemLabelPosition) Ptr() *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemLabelPosition { + return &d } -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetRect() *DocAnnotationsList200ResponseAnnotationsItemLinkRect { - if d == nil { - return nil - } - return d.Rect -} +var ( + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFieldLabelPosition = big.NewInt(1 << 9) +) -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetContents() *string { - if d == nil { - return nil - } - return d.Contents -} +type DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetSubject() *string { - if d == nil { - return nil - } - return d.Subject -} + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetAuthor() *string { - if d == nil { - return nil - } - return d.Author + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetCreated() *time.Time { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem) GetUnit() string { if d == nil { - return nil + return "" } - return d.Created + return d.Unit } -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetModified() *time.Time { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem) GetConversion() *float64 { if d == nil { return nil } - return d.Modified -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetBlendMode() DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode { - if d == nil { - return "" - } - return d.BlendMode + return d.Conversion } -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetInReplyTo() *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem) GetFraction() *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFraction { if d == nil { return nil } - return d.InReplyTo + return d.Fraction } -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetReplyType() *DocAnnotationsList200ResponseAnnotationsItemLinkReplyType { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem) GetPrecision() *int { if d == nil { return nil } - return d.ReplyType + return d.Precision } -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetUserID() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem) GetFixed() *bool { if d == nil { return nil } - return d.UserID + return d.Fixed } -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetGroupID() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem) GetThousands() *string { if d == nil { return nil } - return d.GroupID + return d.Thousands } -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetCreatedBy() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem) GetDecimal() *string { if d == nil { return nil } - return d.CreatedBy + return d.Decimal } -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetUpdatedBy() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem) GetPrefixSpacing() *string { if d == nil { return nil } - return d.UpdatedBy + return d.PrefixSpacing } -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetActions() *PdfAnnotationActions { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem) GetSuffixSpacing() *string { if d == nil { return nil } - return d.Actions + return d.SuffixSpacing } -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetTarget() *DocAnnotationsList200ResponseAnnotationsItemLinkTarget { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem) GetLabelPosition() *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemLabelPosition { if d == nil { return nil } - return d.Target + return d.LabelPosition } -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetRef sets the Ref field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetRef(ref *DocAnnotationsList200ResponseAnnotationsItemLinkRef) { - d.Ref = ref - d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldRef) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldPageObjectNumber) -} - -// SetIndex sets the Index field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldIndex) -} - -// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetIdentityQuality(identityQuality DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQuality) { - d.IdentityQuality = identityQuality - d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldIdentityQuality) -} - -// SetNm sets the Nm field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetNm(nm *string) { - d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldNm) -} - -// SetFlags sets the Flags field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetFlags(flags *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) { - d.Flags = flags - d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldFlags) -} - -// SetRect sets the Rect field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetRect(rect *DocAnnotationsList200ResponseAnnotationsItemLinkRect) { - d.Rect = rect - d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldRect) -} - -// SetContents sets the Contents field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetContents(contents *string) { - d.Contents = contents - d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldContents) -} - -// SetSubject sets the Subject field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetSubject(subject *string) { - d.Subject = subject - d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldSubject) -} - -// SetAuthor sets the Author field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetAuthor(author *string) { - d.Author = author - d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldAuthor) -} - -// SetCreated sets the Created field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetCreated(created *time.Time) { - d.Created = created - d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldCreated) -} - -// SetModified sets the Modified field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetModified(modified *time.Time) { - d.Modified = modified - d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldModified) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFieldUnit) } -// SetBlendMode sets the BlendMode field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetBlendMode(blendMode DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode) { - d.BlendMode = blendMode - d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldBlendMode) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFieldConversion) } -// SetInReplyTo sets the InReplyTo field and marks it as non-optional; +// SetFraction sets the Fraction field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetInReplyTo(inReplyTo *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo) { - d.InReplyTo = inReplyTo - d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldInReplyTo) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem) SetFraction(fraction *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFieldFraction) } -// SetReplyType sets the ReplyType field and marks it as non-optional; +// SetPrecision sets the Precision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetReplyType(replyType *DocAnnotationsList200ResponseAnnotationsItemLinkReplyType) { - d.ReplyType = replyType - d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldReplyType) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFieldPrecision) } -// SetUserID sets the UserID field and marks it as non-optional; +// SetFixed sets the Fixed field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetUserID(userID *string) { - d.UserID = userID - d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldUserID) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFieldFixed) } -// SetGroupID sets the GroupID field and marks it as non-optional; +// SetThousands sets the Thousands field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetGroupID(groupID *string) { - d.GroupID = groupID - d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldGroupID) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFieldThousands) } -// SetCreatedBy sets the CreatedBy field and marks it as non-optional; +// SetDecimal sets the Decimal field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetCreatedBy(createdBy *string) { - d.CreatedBy = createdBy - d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldCreatedBy) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFieldDecimal) } -// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetUpdatedBy(updatedBy *string) { - d.UpdatedBy = updatedBy - d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldUpdatedBy) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFieldPrefixSpacing) } -// SetActions sets the Actions field and marks it as non-optional; +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetActions(actions *PdfAnnotationActions) { - d.Actions = actions - d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldActions) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFieldSuffixSpacing) } -// SetTarget sets the Target field and marks it as non-optional; +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetTarget(target *DocAnnotationsList200ResponseAnnotationsItemLinkTarget) { - d.Target = target - d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldTarget) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem) SetLabelPosition(labelPosition *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFieldLabelPosition) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) UnmarshalJSON(data []byte) error { - type embed DocAnnotationsList200ResponseAnnotationsItemLink - var unmarshaler = struct { - embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` - }{ - embed: embed(*d), - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemLink(unmarshaler.embed) - d.Created = unmarshaler.Created.TimePtr() - d.Modified = unmarshaler.Modified.TimePtr() + *d = DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -26237,22 +26462,18 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLink) UnmarshalJSON(data [] return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemLink +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem var marshaler = struct { embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), - Created: internal.NewOptionalDateTime(d.Created), - Modified: internal.NewOptionalDateTime(d.Modified), + embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLink) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem) String() string { if d == nil { return "" } @@ -26267,94 +26488,80 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLink) String() string { return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode string +type DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFraction string const ( - DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeNormal DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode = "normal" - DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeMultiply DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode = "multiply" - DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeScreen DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode = "screen" - DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeOverlay DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode = "overlay" - DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeDarken DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode = "darken" - DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeLighten DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode = "lighten" - DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeColorDodge DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode = "color-dodge" - DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeColorBurn DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode = "color-burn" - DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeHardLight DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode = "hard-light" - DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeSoftLight DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode = "soft-light" - DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeDifference DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode = "difference" - DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeExclusion DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode = "exclusion" - DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeHue DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode = "hue" - DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeSaturation DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode = "saturation" - DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeColor DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode = "color" - DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeLuminosity DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode = "luminosity" + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFractionDecimal DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFraction = "decimal" + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFractionFraction DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFraction = "fraction" + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFractionRound DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFraction = "round" + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFractionTruncate DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFraction = "truncate" ) -func NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode, error) { +func NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFractionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFraction, error) { switch s { - case "normal": - return DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeNormal, nil - case "multiply": - return DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeMultiply, nil - case "screen": - return DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeScreen, nil - case "overlay": - return DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeOverlay, nil - case "darken": - return DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeDarken, nil - case "lighten": - return DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeLighten, nil - case "color-dodge": - return DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeColorDodge, nil - case "color-burn": - return DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeColorBurn, nil - case "hard-light": - return DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeHardLight, nil - case "soft-light": - return DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeSoftLight, nil - case "difference": - return DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeDifference, nil - case "exclusion": - return DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeExclusion, nil - case "hue": - return DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeHue, nil - case "saturation": - return DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeSaturation, nil - case "color": - return DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeColor, nil - case "luminosity": - return DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeLuminosity, nil + case "decimal": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFractionDecimal, nil + case "fraction": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFractionFraction, nil + case "round": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFractionRound, nil + case "truncate": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFractionTruncate, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFraction) Ptr() *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFraction { + return &d +} + +type DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemLabelPosition string + +const ( + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemLabelPositionSuffix DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemLabelPosition = "suffix" + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemLabelPositionPrefix DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemLabelPosition = "prefix" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemLabelPositionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemLabelPosition, error) { + switch s { + case "suffix": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemLabelPositionPrefix, nil } - var t DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode + var t DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemLabelPosition return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode) Ptr() *DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode { +func (d DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemLabelPosition) Ptr() *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemLabelPosition { return &d } var ( - docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldInvisible = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldHidden = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldPrint = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldNoZoom = big.NewInt(1 << 3) - docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldNoRotate = big.NewInt(1 << 4) - docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldNoView = big.NewInt(1 << 5) - docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldReadOnly = big.NewInt(1 << 6) - docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldLocked = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldToggleNoView = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldLockedContents = big.NewInt(1 << 9) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFieldLabelPosition = big.NewInt(1 << 9) ) -type DocAnnotationsList200ResponseAnnotationsItemLinkFlags struct { - Invisible bool `json:"invisible" url:"invisible"` - Hidden bool `json:"hidden" url:"hidden"` - Print bool `json:"print" url:"print"` - NoZoom bool `json:"noZoom" url:"noZoom"` - NoRotate bool `json:"noRotate" url:"noRotate"` - NoView bool `json:"noView" url:"noView"` - ReadOnly bool `json:"readOnly" url:"readOnly"` - Locked bool `json:"locked" url:"locked"` - ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` - LockedContents bool `json:"lockedContents" url:"lockedContents"` +type DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -26363,167 +26570,167 @@ type DocAnnotationsList200ResponseAnnotationsItemLinkFlags struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) GetInvisible() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem) GetUnit() string { if d == nil { - return false + return "" } - return d.Invisible + return d.Unit } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) GetHidden() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem) GetConversion() *float64 { if d == nil { - return false + return nil } - return d.Hidden + return d.Conversion } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) GetPrint() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem) GetFraction() *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFraction { if d == nil { - return false + return nil } - return d.Print + return d.Fraction } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) GetNoZoom() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem) GetPrecision() *int { if d == nil { - return false + return nil } - return d.NoZoom + return d.Precision } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) GetNoRotate() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem) GetFixed() *bool { if d == nil { - return false + return nil } - return d.NoRotate + return d.Fixed } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) GetNoView() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem) GetThousands() *string { if d == nil { - return false + return nil } - return d.NoView + return d.Thousands } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) GetReadOnly() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem) GetDecimal() *string { if d == nil { - return false + return nil } - return d.ReadOnly + return d.Decimal } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) GetLocked() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem) GetPrefixSpacing() *string { if d == nil { - return false + return nil } - return d.Locked + return d.PrefixSpacing } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) GetToggleNoView() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem) GetSuffixSpacing() *string { if d == nil { - return false + return nil } - return d.ToggleNoView + return d.SuffixSpacing } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) GetLockedContents() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem) GetLabelPosition() *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemLabelPosition { if d == nil { - return false + return nil } - return d.LockedContents + return d.LabelPosition } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetInvisible sets the Invisible field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) SetInvisible(invisible bool) { - d.Invisible = invisible - d.require(docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldInvisible) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFieldUnit) } -// SetHidden sets the Hidden field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) SetHidden(hidden bool) { - d.Hidden = hidden - d.require(docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldHidden) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFieldConversion) } -// SetPrint sets the Print field and marks it as non-optional; +// SetFraction sets the Fraction field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) SetPrint(print bool) { - d.Print = print - d.require(docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldPrint) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem) SetFraction(fraction *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFieldFraction) } -// SetNoZoom sets the NoZoom field and marks it as non-optional; +// SetPrecision sets the Precision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) SetNoZoom(noZoom bool) { - d.NoZoom = noZoom - d.require(docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldNoZoom) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFieldPrecision) } -// SetNoRotate sets the NoRotate field and marks it as non-optional; +// SetFixed sets the Fixed field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) SetNoRotate(noRotate bool) { - d.NoRotate = noRotate - d.require(docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldNoRotate) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFieldFixed) } -// SetNoView sets the NoView field and marks it as non-optional; +// SetThousands sets the Thousands field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) SetNoView(noView bool) { - d.NoView = noView - d.require(docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldNoView) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFieldThousands) } -// SetReadOnly sets the ReadOnly field and marks it as non-optional; +// SetDecimal sets the Decimal field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) SetReadOnly(readOnly bool) { - d.ReadOnly = readOnly - d.require(docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldReadOnly) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFieldDecimal) } -// SetLocked sets the Locked field and marks it as non-optional; +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) SetLocked(locked bool) { - d.Locked = locked - d.require(docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldLocked) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFieldPrefixSpacing) } -// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) SetToggleNoView(toggleNoView bool) { - d.ToggleNoView = toggleNoView - d.require(docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldToggleNoView) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFieldSuffixSpacing) } -// SetLockedContents sets the LockedContents field and marks it as non-optional; +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) SetLockedContents(lockedContents bool) { - d.LockedContents = lockedContents - d.require(docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldLockedContents) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem) SetLabelPosition(labelPosition *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFieldLabelPosition) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLinkFlags +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemLinkFlags(value) + *d = DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -26533,8 +26740,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) UnmarshalJSON(da return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemLinkFlags +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem var marshaler = struct { embed }{ @@ -26544,7 +26751,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) MarshalJSON() ([ return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem) String() string { if d == nil { return "" } @@ -26559,188 +26766,180 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) String() string return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQuality string +type DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFraction string const ( - DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQualityDurable DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQuality = "durable" - DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQualityWeak DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQuality = "weak" + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFractionDecimal DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFraction = "decimal" + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFractionFraction DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFraction = "fraction" + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFractionRound DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFraction = "round" + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFractionTruncate DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFraction = "truncate" ) -func NewDocAnnotationsList200ResponseAnnotationsItemLinkIdentityQualityFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQuality, error) { +func NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFractionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFraction, error) { switch s { - case "durable": - return DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQualityDurable, nil - case "weak": - return DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQualityWeak, nil + case "decimal": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFractionDecimal, nil + case "fraction": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFractionFraction, nil + case "round": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFractionRound, nil + case "truncate": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFractionTruncate, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFraction) Ptr() *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFraction { + return &d +} + +type DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemLabelPosition string + +const ( + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemLabelPositionSuffix DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemLabelPosition = "suffix" + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemLabelPositionPrefix DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemLabelPosition = "prefix" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemLabelPositionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemLabelPosition, error) { + switch s { + case "suffix": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemLabelPositionPrefix, nil } - var t DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQuality + var t DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemLabelPosition return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQuality) Ptr() *DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQuality { +func (d DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemLabelPosition) Ptr() *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemLabelPosition { return &d } -type DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo struct { - Kind string - ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber - Nm *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm - Index *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex +var ( + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlOriginFieldX = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlOriginFieldY = big.NewInt(1 << 1) +) - rawJSON json.RawMessage +type DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo) GetKind() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin) GetX() float64 { if d == nil { - return "" + return 0 } - return d.Kind + return d.X } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin) GetY() float64 { if d == nil { - return nil + return 0 } - return d.ObjectNumber + return d.Y } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo) GetNm() *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.Nm + return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.Index + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +// SetX sets the X field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin) SetX(x float64) { + d.X = x + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlOriginFieldX) +} + +// SetY sets the Y field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin) SetY(y float64) { + d.Y = y + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlOriginFieldY) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Nm = value - case "index": - value := new(DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Index = value + *d = DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err } + d.extraProperties = extraProperties d.rawJSON = json.RawMessage(data) return nil } -func (d DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Nm != nil { - return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") - } - if d.Index != nil { - return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil - } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) -} - -type DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToVisitor interface { - VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber) error - VisitNm(*DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm) error - VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex) error -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) - } - if d.Nm != nil { - return visitor.VisitNm(d.Nm) - } - if d.Index != nil { - return visitor.VisitIndex(d.Index) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return fmt.Errorf("type %T does not define a non-empty union type", d) + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo) validate() error { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin) String() string { if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Nm != nil { - fields = append(fields, "nm") - } - if d.Index != nil { - fields = append(fields, "index") + return "" } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } + if value, err := internal.StringifyJSON(d); err == nil { + return value } - return nil + return fmt.Sprintf("%#v", d) } var ( - docAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFieldLabelPosition = big.NewInt(1 << 9) ) -type DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -26749,69 +26948,167 @@ type DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem) GetUnit() string { if d == nil { - return 0 + return "" } - return d.PageObjectNumber + return d.Unit } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex) GetIndex() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem) GetConversion() *float64 { if d == nil { - return 0 + return nil } - return d.Index + return d.Conversion } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem) GetFraction() *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFraction { if d == nil { return nil } - return d.Revision + return d.Fraction } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem) GetPrecision() *int { + if d == nil { + return nil + } + return d.Precision +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem) GetFixed() *bool { + if d == nil { + return nil + } + return d.Fixed +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem) GetThousands() *string { + if d == nil { + return nil + } + return d.Thousands +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem) GetDecimal() *string { + if d == nil { + return nil + } + return d.Decimal +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem) GetPrefixSpacing() *string { + if d == nil { + return nil + } + return d.PrefixSpacing +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem) GetSuffixSpacing() *string { + if d == nil { + return nil + } + return d.SuffixSpacing +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem) GetLabelPosition() *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemLabelPosition { + if d == nil { + return nil + } + return d.LabelPosition +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFieldUnit) } -// SetIndex sets the Index field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexFieldIndex) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFieldConversion) } -// SetRevision sets the Revision field and marks it as non-optional; +// SetFraction sets the Fraction field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision) { - d.Revision = revision - d.require(docAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexFieldRevision) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem) SetFraction(fraction *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFieldFraction) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFieldPrecision) +} + +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem) SetLabelPosition(labelPosition *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFieldLabelPosition) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex(value) + *d = DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -26821,8 +27118,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex) Unmarsh return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem var marshaler = struct { embed }{ @@ -26832,7 +27129,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex) Marshal return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem) String() string { if d == nil { return "" } @@ -26847,16 +27144,80 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex) String( return fmt.Sprintf("%#v", d) } +type DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFraction string + +const ( + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFractionDecimal DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFraction = "decimal" + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFractionFraction DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFraction = "fraction" + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFractionRound DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFraction = "round" + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFractionTruncate DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFraction = "truncate" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFractionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFraction, error) { + switch s { + case "decimal": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFractionDecimal, nil + case "fraction": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFractionFraction, nil + case "round": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFractionRound, nil + case "truncate": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFractionTruncate, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFraction) Ptr() *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFraction { + return &d +} + +type DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemLabelPosition string + +const ( + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemLabelPositionSuffix DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemLabelPosition = "suffix" + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemLabelPositionPrefix DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemLabelPosition = "prefix" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemLabelPositionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemLabelPosition, error) { + switch s { + case "suffix": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemLabelPositionPrefix, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemLabelPosition) Ptr() *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemLabelPosition { + return &d +} + var ( - docAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFieldLabelPosition = big.NewInt(1 << 9) ) -type DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -26865,69 +27226,167 @@ type DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision stru rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem) GetUnit() string { if d == nil { return "" } - return d.DocSessionID + return d.Unit } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem) GetConversion() *float64 { if d == nil { - return 0 + return nil } - return d.PageObjectNumber + return d.Conversion } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision) GetGeneration() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem) GetFraction() *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFraction { if d == nil { - return 0 + return nil } - return d.Generation + return d.Fraction } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem) GetPrecision() *int { + if d == nil { + return nil + } + return d.Precision +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem) GetFixed() *bool { + if d == nil { + return nil + } + return d.Fixed +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem) GetThousands() *string { + if d == nil { + return nil + } + return d.Thousands +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem) GetDecimal() *string { + if d == nil { + return nil + } + return d.Decimal +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem) GetPrefixSpacing() *string { + if d == nil { + return nil + } + return d.PrefixSpacing +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem) GetSuffixSpacing() *string { + if d == nil { + return nil + } + return d.SuffixSpacing +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem) GetLabelPosition() *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemLabelPosition { + if d == nil { + return nil + } + return d.LabelPosition +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevisionFieldDocSessionID) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFieldUnit) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevisionFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFieldConversion) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetFraction sets the Fraction field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevisionFieldGeneration) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem) SetFraction(fraction *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFieldFraction) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFieldPrecision) +} + +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem) SetLabelPosition(labelPosition *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFieldLabelPosition) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision(value) + *d = DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -26937,8 +27396,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision) return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem var marshaler = struct { embed }{ @@ -26948,7 +27407,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem) String() string { if d == nil { return "" } @@ -26963,14 +27422,80 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision) return fmt.Sprintf("%#v", d) } +type DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFraction string + +const ( + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFractionDecimal DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFraction = "decimal" + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFractionFraction DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFraction = "fraction" + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFractionRound DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFraction = "round" + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFractionTruncate DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFraction = "truncate" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFractionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFraction, error) { + switch s { + case "decimal": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFractionDecimal, nil + case "fraction": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFractionFraction, nil + case "round": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFractionRound, nil + case "truncate": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFractionTruncate, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFraction) Ptr() *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFraction { + return &d +} + +type DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemLabelPosition string + +const ( + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemLabelPositionSuffix DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemLabelPosition = "suffix" + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemLabelPositionPrefix DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemLabelPosition = "prefix" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemLabelPositionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemLabelPosition, error) { + switch s { + case "suffix": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemLabelPositionPrefix, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemLabelPosition) Ptr() *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemLabelPosition { + return &d +} + var ( - docAnnotationsList200ResponseAnnotationsItemLinkInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemLinkInReplyToNmFieldNm = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFieldLabelPosition = big.NewInt(1 << 9) ) -type DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` +type DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -26979,155 +27504,167 @@ type DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem) GetUnit() string { if d == nil { - return 0 + return "" } - return d.PageObjectNumber + return d.Unit } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm) GetNm() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem) GetConversion() *float64 { if d == nil { - return "" + return nil } - return d.Nm + return d.Conversion } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem) GetFraction() *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFraction { if d == nil { return nil } - return d.extraProperties + return d.Fraction } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem) GetPrecision() *int { + if d == nil { + return nil } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemLinkInReplyToNmFieldPageObjectNumber) -} - -// SetNm sets the Nm field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemLinkInReplyToNmFieldNm) + return d.Precision } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem) GetFixed() *bool { + if d == nil { + return nil } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil + return d.Fixed } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem) GetThousands() *string { + if d == nil { + return nil } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return d.Thousands } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem) GetDecimal() *string { if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value + return nil } - return fmt.Sprintf("%#v", d) + return d.Decimal } -var ( - docAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) -) - -type DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem) GetPrefixSpacing() *string { + if d == nil { + return nil + } + return d.PrefixSpacing } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem) GetSuffixSpacing() *string { if d == nil { - return 0 + return nil } - return d.PageObjectNumber + return d.SuffixSpacing } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem) GetLabelPosition() *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemLabelPosition { if d == nil { - return 0 + return nil } - return d.AnnotObjectNumber + return d.LabelPosition } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumberFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFieldUnit) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumberFieldAnnotObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFieldConversion) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber +// SetFraction sets the Fraction field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem) SetFraction(fraction *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFieldFraction) +} + +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFieldPrecision) +} + +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem) SetLabelPosition(labelPosition *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFieldLabelPosition) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber(value) + *d = DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -27137,8 +27674,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber) return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem var marshaler = struct { embed }{ @@ -27148,7 +27685,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem) String() string { if d == nil { return "" } @@ -27163,14 +27700,129 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber) return fmt.Sprintf("%#v", d) } -var ( - docAnnotationsList200ResponseAnnotationsItemLinkRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemLinkRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemLinkRectFieldRight = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemLinkRectFieldTop = big.NewInt(1 << 3) +type DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFraction string + +const ( + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFractionDecimal DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFraction = "decimal" + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFractionFraction DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFraction = "fraction" + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFractionRound DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFraction = "round" + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFractionTruncate DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFraction = "truncate" ) -type DocAnnotationsList200ResponseAnnotationsItemLinkRect struct { +func NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFractionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFraction, error) { + switch s { + case "decimal": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFractionDecimal, nil + case "fraction": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFractionFraction, nil + case "round": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFractionRound, nil + case "truncate": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFractionTruncate, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFraction) Ptr() *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFraction { + return &d +} + +type DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemLabelPosition string + +const ( + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemLabelPositionSuffix DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemLabelPosition = "suffix" + DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemLabelPositionPrefix DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemLabelPosition = "prefix" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemLabelPositionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemLabelPosition, error) { + switch s { + case "suffix": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemLabelPositionPrefix, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemLabelPosition) Ptr() *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemLabelPosition { + return &d +} + +type DocAnnotationsList200ResponseAnnotationsItemLineMeasureUnknown struct { + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureUnknown) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureUnknown) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureUnknown) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLineMeasureUnknown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemLineMeasureUnknown(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureUnknown) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLineMeasureUnknown + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLineMeasureUnknown) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsList200ResponseAnnotationsItemLineRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemLineRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemLineRectFieldRight = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemLineRectFieldTop = big.NewInt(1 << 3) +) + +type DocAnnotationsList200ResponseAnnotationsItemLineRect struct { Left float64 `json:"left" url:"left"` Bottom float64 `json:"bottom" url:"bottom"` Right float64 `json:"right" url:"right"` @@ -27183,42 +27835,42 @@ type DocAnnotationsList200ResponseAnnotationsItemLinkRect struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRect) GetLeft() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRect) GetLeft() float64 { if d == nil { return 0 } return d.Left } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRect) GetBottom() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRect) GetBottom() float64 { if d == nil { return 0 } return d.Bottom } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRect) GetRight() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRect) GetRight() float64 { if d == nil { return 0 } return d.Right } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRect) GetTop() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRect) GetTop() float64 { if d == nil { return 0 } return d.Top } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRect) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRect) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRect) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRect) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -27227,39 +27879,39 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRect) require(field *bi // SetLeft sets the Left field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRect) SetLeft(left float64) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRect) SetLeft(left float64) { d.Left = left - d.require(docAnnotationsList200ResponseAnnotationsItemLinkRectFieldLeft) + d.require(docAnnotationsList200ResponseAnnotationsItemLineRectFieldLeft) } // SetBottom sets the Bottom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRect) SetBottom(bottom float64) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRect) SetBottom(bottom float64) { d.Bottom = bottom - d.require(docAnnotationsList200ResponseAnnotationsItemLinkRectFieldBottom) + d.require(docAnnotationsList200ResponseAnnotationsItemLineRectFieldBottom) } // SetRight sets the Right field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRect) SetRight(right float64) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRect) SetRight(right float64) { d.Right = right - d.require(docAnnotationsList200ResponseAnnotationsItemLinkRectFieldRight) + d.require(docAnnotationsList200ResponseAnnotationsItemLineRectFieldRight) } // SetTop sets the Top field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRect) SetTop(top float64) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRect) SetTop(top float64) { d.Top = top - d.require(docAnnotationsList200ResponseAnnotationsItemLinkRectFieldTop) + d.require(docAnnotationsList200ResponseAnnotationsItemLineRectFieldTop) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLinkRect +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLineRect var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemLinkRect(value) + *d = DocAnnotationsList200ResponseAnnotationsItemLineRect(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -27269,8 +27921,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRect) UnmarshalJSON(dat return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemLinkRect +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLineRect var marshaler = struct { embed }{ @@ -27280,7 +27932,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRect) MarshalJSON() ([] return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRect) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRect) String() string { if d == nil { return "" } @@ -27295,44 +27947,44 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRect) String() string { return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemLinkRef struct { +type DocAnnotationsList200ResponseAnnotationsItemLineRef struct { Kind string - ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber - Nm *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm - Index *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex + ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber + Nm *DocAnnotationsList200ResponseAnnotationsItemLineRefNm + Index *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRef) GetKind() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRef) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRef) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRef) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber { if d == nil { return nil } return d.ObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRef) GetNm() *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRef) GetNm() *DocAnnotationsList200ResponseAnnotationsItemLineRefNm { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRef) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRef) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex { if d == nil { return nil } return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRef) UnmarshalJSON(data []byte) error { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRef) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -27345,19 +27997,19 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRef) UnmarshalJSON(data } switch unmarshaler.Kind { case "objectNumber": - value := new(DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber) + value := new(DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber) if err := json.Unmarshal(data, &value); err != nil { return err } d.ObjectNumber = value case "nm": - value := new(DocAnnotationsList200ResponseAnnotationsItemLinkRefNm) + value := new(DocAnnotationsList200ResponseAnnotationsItemLineRefNm) if err := json.Unmarshal(data, &value); err != nil { return err } d.Nm = value case "index": - value := new(DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex) + value := new(DocAnnotationsList200ResponseAnnotationsItemLineRefIndex) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -27367,7 +28019,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRef) UnmarshalJSON(data return nil } -func (d DocAnnotationsList200ResponseAnnotationsItemLinkRef) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsList200ResponseAnnotationsItemLineRef) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -27386,13 +28038,13 @@ func (d DocAnnotationsList200ResponseAnnotationsItemLinkRef) MarshalJSON() ([]by return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsList200ResponseAnnotationsItemLinkRefVisitor interface { - VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber) error - VisitNm(*DocAnnotationsList200ResponseAnnotationsItemLinkRefNm) error - VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex) error +type DocAnnotationsList200ResponseAnnotationsItemLineRefVisitor interface { + VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber) error + VisitNm(*DocAnnotationsList200ResponseAnnotationsItemLineRefNm) error + VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemLineRefIndex) error } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRef) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemLinkRefVisitor) error { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRef) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemLineRefVisitor) error { if d.ObjectNumber != nil { return visitor.VisitObjectNumber(d.ObjectNumber) } @@ -27405,7 +28057,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRef) Accept(visitor Doc return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRef) validate() error { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRef) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -27446,15 +28098,15 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRef) validate() error { } var ( - docAnnotationsList200ResponseAnnotationsItemLinkRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemLinkRefIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemLinkRefIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemLineRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemLineRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemLineRefIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex struct { +type DocAnnotationsList200ResponseAnnotationsItemLineRefIndex struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Index int `json:"index" url:"index"` - Revision *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision `json:"revision" url:"revision"` + Revision *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -27463,35 +28115,35 @@ type DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex) GetIndex() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision { if d == nil { return nil } return d.Revision } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -27500,32 +28152,32 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex) require(field // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemLinkRefIndexFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemLineRefIndexFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex) SetIndex(index int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex) SetIndex(index int) { d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemLinkRefIndexFieldIndex) + d.require(docAnnotationsList200ResponseAnnotationsItemLineRefIndexFieldIndex) } // SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision) { d.Revision = revision - d.require(docAnnotationsList200ResponseAnnotationsItemLinkRefIndexFieldRevision) + d.require(docAnnotationsList200ResponseAnnotationsItemLineRefIndexFieldRevision) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLineRefIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex(value) + *d = DocAnnotationsList200ResponseAnnotationsItemLineRefIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -27535,8 +28187,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex) UnmarshalJSON return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLineRefIndex var marshaler = struct { embed }{ @@ -27546,7 +28198,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex) MarshalJSON() return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex) String() string { if d == nil { return "" } @@ -27562,12 +28214,12 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex) String() stri } var ( - docAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemLineRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemLineRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemLineRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision struct { +type DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision struct { DocSessionID string `json:"docSessionId" url:"docSessionId"` PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Generation int `json:"generation" url:"generation"` @@ -27579,35 +28231,35 @@ type DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision) GetDocSessionID() string { if d == nil { return "" } return d.DocSessionID } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision) GetGeneration() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision) GetGeneration() int { if d == nil { return 0 } return d.Generation } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -27616,32 +28268,32 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision) requi // SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision) SetDocSessionID(docSessionID string) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision) SetDocSessionID(docSessionID string) { d.DocSessionID = docSessionID - d.require(docAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevisionFieldDocSessionID) + d.require(docAnnotationsList200ResponseAnnotationsItemLineRefIndexRevisionFieldDocSessionID) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevisionFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemLineRefIndexRevisionFieldPageObjectNumber) } // SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision) SetGeneration(generation int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision) SetGeneration(generation int) { d.Generation = generation - d.require(docAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevisionFieldGeneration) + d.require(docAnnotationsList200ResponseAnnotationsItemLineRefIndexRevisionFieldGeneration) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision(value) + *d = DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -27651,8 +28303,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision) Unmar return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision var marshaler = struct { embed }{ @@ -27662,7 +28314,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision) Marsh return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision) String() string { if d == nil { return "" } @@ -27678,11 +28330,11 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision) Strin } var ( - docAnnotationsList200ResponseAnnotationsItemLinkRefNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemLinkRefNmFieldNm = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemLineRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemLineRefNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemLinkRefNm struct { +type DocAnnotationsList200ResponseAnnotationsItemLineRefNm struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Nm string `json:"nm" url:"nm"` @@ -27693,28 +28345,28 @@ type DocAnnotationsList200ResponseAnnotationsItemLinkRefNm struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefNm) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm) GetNm() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefNm) GetNm() string { if d == nil { return "" } return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -27723,25 +28375,25 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm) require(field *b // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefNm) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemLinkRefNmFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemLineRefNmFieldPageObjectNumber) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm) SetNm(nm string) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefNm) SetNm(nm string) { d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemLinkRefNmFieldNm) + d.require(docAnnotationsList200ResponseAnnotationsItemLineRefNmFieldNm) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLinkRefNm +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLineRefNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemLinkRefNm(value) + *d = DocAnnotationsList200ResponseAnnotationsItemLineRefNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -27751,8 +28403,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm) UnmarshalJSON(da return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemLinkRefNm +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLineRefNm var marshaler = struct { embed }{ @@ -27762,7 +28414,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm) MarshalJSON() ([ return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefNm) String() string { if d == nil { return "" } @@ -27778,11 +28430,11 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm) String() string } var ( - docAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemLineRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemLineRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber struct { +type DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` @@ -27793,28 +28445,28 @@ type DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } return d.AnnotObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -27823,25 +28475,25 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber) requir // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumberFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemLineRefObjectNumberFieldPageObjectNumber) } // SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumberFieldAnnotObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemLineRefObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber(value) + *d = DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -27851,8 +28503,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber) Unmars return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber var marshaler = struct { embed }{ @@ -27862,7 +28514,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber) Marsha return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber) String() string { if d == nil { return "" } @@ -27877,472 +28529,405 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber) String return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemLinkReplyType string +type DocAnnotationsList200ResponseAnnotationsItemLineReplyType string const ( - DocAnnotationsList200ResponseAnnotationsItemLinkReplyTypeReply DocAnnotationsList200ResponseAnnotationsItemLinkReplyType = "reply" - DocAnnotationsList200ResponseAnnotationsItemLinkReplyTypeGroup DocAnnotationsList200ResponseAnnotationsItemLinkReplyType = "group" + DocAnnotationsList200ResponseAnnotationsItemLineReplyTypeReply DocAnnotationsList200ResponseAnnotationsItemLineReplyType = "reply" + DocAnnotationsList200ResponseAnnotationsItemLineReplyTypeGroup DocAnnotationsList200ResponseAnnotationsItemLineReplyType = "group" ) -func NewDocAnnotationsList200ResponseAnnotationsItemLinkReplyTypeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemLinkReplyType, error) { +func NewDocAnnotationsList200ResponseAnnotationsItemLineReplyTypeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemLineReplyType, error) { switch s { case "reply": - return DocAnnotationsList200ResponseAnnotationsItemLinkReplyTypeReply, nil + return DocAnnotationsList200ResponseAnnotationsItemLineReplyTypeReply, nil case "group": - return DocAnnotationsList200ResponseAnnotationsItemLinkReplyTypeGroup, nil + return DocAnnotationsList200ResponseAnnotationsItemLineReplyTypeGroup, nil } - var t DocAnnotationsList200ResponseAnnotationsItemLinkReplyType + var t DocAnnotationsList200ResponseAnnotationsItemLineReplyType return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsList200ResponseAnnotationsItemLinkReplyType) Ptr() *DocAnnotationsList200ResponseAnnotationsItemLinkReplyType { +func (d DocAnnotationsList200ResponseAnnotationsItemLineReplyType) Ptr() *DocAnnotationsList200ResponseAnnotationsItemLineReplyType { return &d } -type DocAnnotationsList200ResponseAnnotationsItemLinkTarget struct { - Kind string - Goto *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto - URI *DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI - GotoRemote *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote - Launch *DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch - Javascript *DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript - Named *DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed - Unsupported *DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported +var ( + docAnnotationsList200ResponseAnnotationsItemLinkFieldRef = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemLinkFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemLinkFieldIndex = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemLinkFieldIdentityQuality = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemLinkFieldNm = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemLinkFieldFlags = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemLinkFieldRect = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemLinkFieldContents = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemLinkFieldSubject = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemLinkFieldAuthor = big.NewInt(1 << 9) + docAnnotationsList200ResponseAnnotationsItemLinkFieldCreated = big.NewInt(1 << 10) + docAnnotationsList200ResponseAnnotationsItemLinkFieldModified = big.NewInt(1 << 11) + docAnnotationsList200ResponseAnnotationsItemLinkFieldBlendMode = big.NewInt(1 << 12) + docAnnotationsList200ResponseAnnotationsItemLinkFieldInReplyTo = big.NewInt(1 << 13) + docAnnotationsList200ResponseAnnotationsItemLinkFieldReplyType = big.NewInt(1 << 14) + docAnnotationsList200ResponseAnnotationsItemLinkFieldUserID = big.NewInt(1 << 15) + docAnnotationsList200ResponseAnnotationsItemLinkFieldGroupID = big.NewInt(1 << 16) + docAnnotationsList200ResponseAnnotationsItemLinkFieldCreatedBy = big.NewInt(1 << 17) + docAnnotationsList200ResponseAnnotationsItemLinkFieldUpdatedBy = big.NewInt(1 << 18) + docAnnotationsList200ResponseAnnotationsItemLinkFieldActions = big.NewInt(1 << 19) + docAnnotationsList200ResponseAnnotationsItemLinkFieldTarget = big.NewInt(1 << 20) +) - rawJSON json.RawMessage +type DocAnnotationsList200ResponseAnnotationsItemLink struct { + Ref *DocAnnotationsList200ResponseAnnotationsItemLinkRef `json:"ref" url:"ref"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + IdentityQuality DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQuality `json:"identityQuality" url:"identityQuality"` + Nm *string `json:"nm,omitempty" url:"nm,omitempty"` + Flags *DocAnnotationsList200ResponseAnnotationsItemLinkFlags `json:"flags" url:"flags"` + Rect *DocAnnotationsList200ResponseAnnotationsItemLinkRect `json:"rect" url:"rect"` + Contents *string `json:"contents,omitempty" url:"contents,omitempty"` + Subject *string `json:"subject,omitempty" url:"subject,omitempty"` + Author *string `json:"author,omitempty" url:"author,omitempty"` + Created *time.Time `json:"created,omitempty" url:"created,omitempty"` + Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` + BlendMode DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode `json:"blendMode" url:"blendMode"` + InReplyTo *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` + ReplyType *DocAnnotationsList200ResponseAnnotationsItemLinkReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` + UserID *string `json:"userId,omitempty" url:"userId,omitempty"` + GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` + CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` + Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` + Target *DocAnnotationsList200ResponseAnnotationsItemLinkTarget `json:"target,omitempty" url:"target,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTarget) GetKind() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetRef() *DocAnnotationsList200ResponseAnnotationsItemLinkRef { + if d == nil { + return nil + } + return d.Ref +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetIdentityQuality() DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQuality { if d == nil { return "" } - return d.Kind + return d.IdentityQuality } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTarget) GetGoto() *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto { +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetNm() *string { if d == nil { return nil } - return d.Goto + return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTarget) GetURI() *DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI { +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetFlags() *DocAnnotationsList200ResponseAnnotationsItemLinkFlags { if d == nil { return nil } - return d.URI + return d.Flags } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTarget) GetGotoRemote() *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote { +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetRect() *DocAnnotationsList200ResponseAnnotationsItemLinkRect { if d == nil { return nil } - return d.GotoRemote + return d.Rect } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTarget) GetLaunch() *DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch { +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetContents() *string { if d == nil { return nil } - return d.Launch + return d.Contents } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTarget) GetJavascript() *DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript { +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetSubject() *string { if d == nil { return nil } - return d.Javascript + return d.Subject } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTarget) GetNamed() *DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed { +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetAuthor() *string { if d == nil { return nil } - return d.Named + return d.Author } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTarget) GetUnsupported() *DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported { +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetCreated() *time.Time { if d == nil { return nil } - return d.Unsupported + return d.Created } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTarget) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "goto": - value := new(DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Goto = value - case "uri": - value := new(DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.URI = value - case "goto-remote": - value := new(DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.GotoRemote = value - case "launch": - value := new(DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Launch = value - case "javascript": - value := new(DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Javascript = value - case "named": - value := new(DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Named = value - case "unsupported": - value := new(DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Unsupported = value +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetModified() *time.Time { + if d == nil { + return nil } - d.rawJSON = json.RawMessage(data) - return nil + return d.Modified } -func (d DocAnnotationsList200ResponseAnnotationsItemLinkTarget) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.Goto != nil { - return internal.MarshalJSONWithExtraProperty(d.Goto, "kind", "goto") - } - if d.URI != nil { - return internal.MarshalJSONWithExtraProperty(d.URI, "kind", "uri") - } - if d.GotoRemote != nil { - return internal.MarshalJSONWithExtraProperty(d.GotoRemote, "kind", "goto-remote") - } - if d.Launch != nil { - return internal.MarshalJSONWithExtraProperty(d.Launch, "kind", "launch") - } - if d.Javascript != nil { - return internal.MarshalJSONWithExtraProperty(d.Javascript, "kind", "javascript") - } - if d.Named != nil { - return internal.MarshalJSONWithExtraProperty(d.Named, "kind", "named") - } - if d.Unsupported != nil { - return internal.MarshalJSONWithExtraProperty(d.Unsupported, "kind", "unsupported") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetBlendMode() DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode { + if d == nil { + return "" } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) + return d.BlendMode } -type DocAnnotationsList200ResponseAnnotationsItemLinkTargetVisitor interface { - VisitGoto(*DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto) error - VisitURI(*DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI) error - VisitGotoRemote(*DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote) error - VisitLaunch(*DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch) error - VisitJavascript(*DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript) error - VisitNamed(*DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed) error - VisitUnsupported(*DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported) error +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetInReplyTo() *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo { + if d == nil { + return nil + } + return d.InReplyTo } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTarget) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemLinkTargetVisitor) error { - if d.Goto != nil { - return visitor.VisitGoto(d.Goto) - } - if d.URI != nil { - return visitor.VisitURI(d.URI) - } - if d.GotoRemote != nil { - return visitor.VisitGotoRemote(d.GotoRemote) - } - if d.Launch != nil { - return visitor.VisitLaunch(d.Launch) - } - if d.Javascript != nil { - return visitor.VisitJavascript(d.Javascript) - } - if d.Named != nil { - return visitor.VisitNamed(d.Named) - } - if d.Unsupported != nil { - return visitor.VisitUnsupported(d.Unsupported) +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetReplyType() *DocAnnotationsList200ResponseAnnotationsItemLinkReplyType { + if d == nil { + return nil } - return fmt.Errorf("type %T does not define a non-empty union type", d) + return d.ReplyType } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTarget) validate() error { +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetUserID() *string { if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.Goto != nil { - fields = append(fields, "goto") - } - if d.URI != nil { - fields = append(fields, "uri") - } - if d.GotoRemote != nil { - fields = append(fields, "goto-remote") - } - if d.Launch != nil { - fields = append(fields, "launch") - } - if d.Javascript != nil { - fields = append(fields, "javascript") - } - if d.Named != nil { - fields = append(fields, "named") - } - if d.Unsupported != nil { - fields = append(fields, "unsupported") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } + return nil } - return nil + return d.UserID } -var ( - docAnnotationsList200ResponseAnnotationsItemLinkTargetGotoFieldDestination = big.NewInt(1 << 0) -) +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetGroupID() *string { + if d == nil { + return nil + } + return d.GroupID +} -type DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto struct { - Destination *PdfDestination `json:"destination" url:"destination"` +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetCreatedBy() *string { + if d == nil { + return nil + } + return d.CreatedBy +} - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetUpdatedBy() *string { + if d == nil { + return nil + } + return d.UpdatedBy +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetActions() *PdfAnnotationActions { + if d == nil { + return nil + } + return d.Actions } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto) GetDestination() *PdfDestination { +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetTarget() *DocAnnotationsList200ResponseAnnotationsItemLinkTarget { if d == nil { return nil } - return d.Destination + return d.Target } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDestination sets the Destination field and marks it as non-optional; +// SetRef sets the Ref field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto) SetDestination(destination *PdfDestination) { - d.Destination = destination - d.require(docAnnotationsList200ResponseAnnotationsItemLinkTargetGotoFieldDestination) +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetRef(ref *DocAnnotationsList200ResponseAnnotationsItemLinkRef) { + d.Ref = ref + d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldRef) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldPageObjectNumber) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) +// SetIndex sets the Index field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldIndex) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) +// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetIdentityQuality(identityQuality DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQuality) { + d.IdentityQuality = identityQuality + d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldIdentityQuality) } -var ( - docAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemoteFieldFile = big.NewInt(1 << 0) -) +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetNm(nm *string) { + d.Nm = nm + d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldNm) +} -type DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote struct { - File string `json:"file" url:"file"` +// SetFlags sets the Flags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetFlags(flags *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) { + d.Flags = flags + d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldFlags) +} - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +// SetRect sets the Rect field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetRect(rect *DocAnnotationsList200ResponseAnnotationsItemLinkRect) { + d.Rect = rect + d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldRect) +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +// SetContents sets the Contents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetContents(contents *string) { + d.Contents = contents + d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldContents) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote) GetFile() string { - if d == nil { - return "" - } - return d.File +// SetSubject sets the Subject field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetSubject(subject *string) { + d.Subject = subject + d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldSubject) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties +// SetAuthor sets the Author field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetAuthor(author *string) { + d.Author = author + d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldAuthor) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) +// SetCreated sets the Created field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetCreated(created *time.Time) { + d.Created = created + d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldCreated) } -// SetFile sets the File field and marks it as non-optional; +// SetModified sets the Modified field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote) SetFile(file string) { - d.File = file - d.require(docAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemoteFieldFile) +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetModified(modified *time.Time) { + d.Modified = modified + d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldModified) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil +// SetBlendMode sets the BlendMode field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetBlendMode(blendMode DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode) { + d.BlendMode = blendMode + d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldBlendMode) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) +// SetInReplyTo sets the InReplyTo field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetInReplyTo(inReplyTo *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo) { + d.InReplyTo = inReplyTo + d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldInReplyTo) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) +// SetReplyType sets the ReplyType field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetReplyType(replyType *DocAnnotationsList200ResponseAnnotationsItemLinkReplyType) { + d.ReplyType = replyType + d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldReplyType) } -type DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript struct { +// SetUserID sets the UserID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetUserID(userID *string) { + d.UserID = userID + d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldUserID) +} - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +// SetGroupID sets the GroupID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetGroupID(groupID *string) { + d.GroupID = groupID + d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldGroupID) +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +// SetCreatedBy sets the CreatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetCreatedBy(createdBy *string) { + d.CreatedBy = createdBy + d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldCreatedBy) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties +// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetUpdatedBy(updatedBy *string) { + d.UpdatedBy = updatedBy + d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldUpdatedBy) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) +// SetActions sets the Actions field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetActions(actions *PdfAnnotationActions) { + d.Actions = actions + d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldActions) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { +// SetTarget sets the Target field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) SetTarget(target *DocAnnotationsList200ResponseAnnotationsItemLinkTarget) { + d.Target = target + d.require(docAnnotationsList200ResponseAnnotationsItemLinkFieldTarget) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) UnmarshalJSON(data []byte) error { + type embed DocAnnotationsList200ResponseAnnotationsItemLink + var unmarshaler = struct { + embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript(value) + *d = DocAnnotationsList200ResponseAnnotationsItemLink(unmarshaler.embed) + d.Created = unmarshaler.Created.TimePtr() + d.Modified = unmarshaler.Modified.TimePtr() extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -28352,18 +28937,22 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript) Unmar return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLink var marshaler = struct { embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), + embed: embed(*d), + Created: internal.NewOptionalDateTime(d.Created), + Modified: internal.NewOptionalDateTime(d.Modified), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLink) String() string { if d == nil { return "" } @@ -28378,12 +28967,94 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript) Strin return fmt.Sprintf("%#v", d) } +type DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode string + +const ( + DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeNormal DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode = "normal" + DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeMultiply DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode = "multiply" + DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeScreen DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode = "screen" + DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeOverlay DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode = "overlay" + DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeDarken DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode = "darken" + DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeLighten DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode = "lighten" + DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeColorDodge DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode = "color-dodge" + DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeColorBurn DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode = "color-burn" + DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeHardLight DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode = "hard-light" + DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeSoftLight DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode = "soft-light" + DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeDifference DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode = "difference" + DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeExclusion DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode = "exclusion" + DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeHue DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode = "hue" + DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeSaturation DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode = "saturation" + DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeColor DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode = "color" + DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeLuminosity DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode = "luminosity" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemLinkBlendModeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode, error) { + switch s { + case "normal": + return DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeNormal, nil + case "multiply": + return DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeMultiply, nil + case "screen": + return DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeScreen, nil + case "overlay": + return DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeOverlay, nil + case "darken": + return DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeDarken, nil + case "lighten": + return DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeLighten, nil + case "color-dodge": + return DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeColorDodge, nil + case "color-burn": + return DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeColorBurn, nil + case "hard-light": + return DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeHardLight, nil + case "soft-light": + return DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeSoftLight, nil + case "difference": + return DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeDifference, nil + case "exclusion": + return DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeExclusion, nil + case "hue": + return DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeHue, nil + case "saturation": + return DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeSaturation, nil + case "color": + return DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeColor, nil + case "luminosity": + return DocAnnotationsList200ResponseAnnotationsItemLinkBlendModeLuminosity, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode) Ptr() *DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode { + return &d +} + var ( - docAnnotationsList200ResponseAnnotationsItemLinkTargetLaunchFieldPath = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldInvisible = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldHidden = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldPrint = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldNoZoom = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldNoRotate = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldNoView = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldReadOnly = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldLocked = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldToggleNoView = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldLockedContents = big.NewInt(1 << 9) ) -type DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch struct { - Path string `json:"path" url:"path"` +type DocAnnotationsList200ResponseAnnotationsItemLinkFlags struct { + Invisible bool `json:"invisible" url:"invisible"` + Hidden bool `json:"hidden" url:"hidden"` + Print bool `json:"print" url:"print"` + NoZoom bool `json:"noZoom" url:"noZoom"` + NoRotate bool `json:"noRotate" url:"noRotate"` + NoView bool `json:"noView" url:"noView"` + ReadOnly bool `json:"readOnly" url:"readOnly"` + Locked bool `json:"locked" url:"locked"` + ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` + LockedContents bool `json:"lockedContents" url:"lockedContents"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -28392,41 +29063,167 @@ type DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch) GetPath() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) GetInvisible() bool { if d == nil { - return "" + return false } - return d.Path + return d.Invisible } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) GetHidden() bool { + if d == nil { + return false + } + return d.Hidden +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) GetPrint() bool { + if d == nil { + return false + } + return d.Print +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) GetNoZoom() bool { + if d == nil { + return false + } + return d.NoZoom +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) GetNoRotate() bool { + if d == nil { + return false + } + return d.NoRotate +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) GetNoView() bool { + if d == nil { + return false + } + return d.NoView +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) GetReadOnly() bool { + if d == nil { + return false + } + return d.ReadOnly +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) GetLocked() bool { + if d == nil { + return false + } + return d.Locked +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) GetToggleNoView() bool { + if d == nil { + return false + } + return d.ToggleNoView +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) GetLockedContents() bool { + if d == nil { + return false + } + return d.LockedContents +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPath sets the Path field and marks it as non-optional; +// SetInvisible sets the Invisible field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch) SetPath(path string) { - d.Path = path - d.require(docAnnotationsList200ResponseAnnotationsItemLinkTargetLaunchFieldPath) +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) SetInvisible(invisible bool) { + d.Invisible = invisible + d.require(docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldInvisible) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch +// SetHidden sets the Hidden field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) SetHidden(hidden bool) { + d.Hidden = hidden + d.require(docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldHidden) +} + +// SetPrint sets the Print field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) SetPrint(print bool) { + d.Print = print + d.require(docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldPrint) +} + +// SetNoZoom sets the NoZoom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) SetNoZoom(noZoom bool) { + d.NoZoom = noZoom + d.require(docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldNoZoom) +} + +// SetNoRotate sets the NoRotate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) SetNoRotate(noRotate bool) { + d.NoRotate = noRotate + d.require(docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldNoRotate) +} + +// SetNoView sets the NoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) SetNoView(noView bool) { + d.NoView = noView + d.require(docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldNoView) +} + +// SetReadOnly sets the ReadOnly field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + d.require(docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldReadOnly) +} + +// SetLocked sets the Locked field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) SetLocked(locked bool) { + d.Locked = locked + d.require(docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldLocked) +} + +// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) SetToggleNoView(toggleNoView bool) { + d.ToggleNoView = toggleNoView + d.require(docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldToggleNoView) +} + +// SetLockedContents sets the LockedContents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) SetLockedContents(lockedContents bool) { + d.LockedContents = lockedContents + d.require(docAnnotationsList200ResponseAnnotationsItemLinkFlagsFieldLockedContents) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLinkFlags var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch(value) + *d = DocAnnotationsList200ResponseAnnotationsItemLinkFlags(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -28436,8 +29233,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch) Unmarshal return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLinkFlags var marshaler = struct { embed }{ @@ -28447,7 +29244,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch) MarshalJS return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkFlags) String() string { if d == nil { return "" } @@ -28462,12 +29259,188 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch) String() return fmt.Sprintf("%#v", d) } +type DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQuality string + +const ( + DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQualityDurable DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQuality = "durable" + DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQualityWeak DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQuality = "weak" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemLinkIdentityQualityFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQuality, error) { + switch s { + case "durable": + return DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQualityDurable, nil + case "weak": + return DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQualityWeak, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQuality + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQuality) Ptr() *DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQuality { + return &d +} + +type DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo struct { + Kind string + ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber + Nm *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm + Index *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo) GetNm() *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex { + if d == nil { + return nil + } + return d.Index +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value + } + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err + } + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Nm != nil { + return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + } + if d.Index != nil { + return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +} + +type DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber) error + VisitNm(*DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm) error + VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex) error +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) + } + if d.Nm != nil { + return visitor.VisitNm(d.Nm) + } + if d.Index != nil { + return visitor.VisitIndex(d.Index) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Nm != nil { + fields = append(fields, "nm") + } + if d.Index != nil { + fields = append(fields, "index") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil +} + var ( - docAnnotationsList200ResponseAnnotationsItemLinkTargetNamedFieldName = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed struct { - Name string `json:"name" url:"name"` +type DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -28476,41 +29449,69 @@ type DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed) GetName() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex) GetPageObjectNumber() int { if d == nil { - return "" + return 0 } - return d.Name + return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetName sets the Name field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed) SetName(name string) { - d.Name = name - d.require(docAnnotationsList200ResponseAnnotationsItemLinkTargetNamedFieldName) +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexFieldPageObjectNumber) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed +// SetIndex sets the Index field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexFieldIndex) +} + +// SetRevision sets the Revision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision) { + d.Revision = revision + d.require(docAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexFieldRevision) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed(value) + *d = DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -28520,8 +29521,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed) UnmarshalJ return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex var marshaler = struct { embed }{ @@ -28531,7 +29532,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed) MarshalJSO return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex) String() string { if d == nil { return "" } @@ -28546,7 +29547,16 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed) String() s return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported struct { +var ( + docAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +type DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -28555,27 +29565,69 @@ type DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevisionFieldDocSessionID) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevisionFieldPageObjectNumber) +} + +// SetGeneration sets the Generation field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported(value) + *d = DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -28585,8 +29637,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported) Unma return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision var marshaler = struct { embed }{ @@ -28596,7 +29648,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported) Mars return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision) String() string { if d == nil { return "" } @@ -28612,11 +29664,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported) Stri } var ( - docAnnotationsList200ResponseAnnotationsItemLinkTargetURIFieldURI = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemLinkInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemLinkInReplyToNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI struct { - URI string `json:"uri" url:"uri"` +type DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -28625,41 +29679,55 @@ type DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI) GetURI() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm) GetNm() string { if d == nil { return "" } - return d.URI + return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetURI sets the URI field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI) SetURI(uri string) { - d.URI = uri - d.require(docAnnotationsList200ResponseAnnotationsItemLinkTargetURIFieldURI) +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemLinkInReplyToNmFieldPageObjectNumber) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsList200ResponseAnnotationsItemLinkInReplyToNmFieldNm) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI(value) + *d = DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -28669,8 +29737,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI) UnmarshalJSO return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm var marshaler = struct { embed }{ @@ -28680,7 +29748,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI) MarshalJSON( return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm) String() string { if d == nil { return "" } @@ -28696,67 +29764,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI) String() str } var ( - docAnnotationsList200ResponseAnnotationsItemPolygonFieldRef = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldIndex = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldIdentityQuality = big.NewInt(1 << 3) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldNm = big.NewInt(1 << 4) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldFlags = big.NewInt(1 << 5) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldRect = big.NewInt(1 << 6) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldContents = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldSubject = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldAuthor = big.NewInt(1 << 9) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldCreated = big.NewInt(1 << 10) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldModified = big.NewInt(1 << 11) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldBlendMode = big.NewInt(1 << 12) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldInReplyTo = big.NewInt(1 << 13) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldReplyType = big.NewInt(1 << 14) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldUserID = big.NewInt(1 << 15) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldGroupID = big.NewInt(1 << 16) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldCreatedBy = big.NewInt(1 << 17) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldUpdatedBy = big.NewInt(1 << 18) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldActions = big.NewInt(1 << 19) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldColor = big.NewInt(1 << 20) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldOpacity = big.NewInt(1 << 21) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldStrokeWidth = big.NewInt(1 << 22) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldBorderStyle = big.NewInt(1 << 23) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldDashArray = big.NewInt(1 << 24) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldInteriorColor = big.NewInt(1 << 25) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldVertices = big.NewInt(1 << 26) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldRotation = big.NewInt(1 << 27) - docAnnotationsList200ResponseAnnotationsItemPolygonFieldCloudyIntensity = big.NewInt(1 << 28) + docAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemPolygon struct { - Ref *DocAnnotationsList200ResponseAnnotationsItemPolygonRef `json:"ref" url:"ref"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - IdentityQuality DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQuality `json:"identityQuality" url:"identityQuality"` - Nm *string `json:"nm,omitempty" url:"nm,omitempty"` - Flags *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags `json:"flags" url:"flags"` - Rect *DocAnnotationsList200ResponseAnnotationsItemPolygonRect `json:"rect" url:"rect"` - Contents *string `json:"contents,omitempty" url:"contents,omitempty"` - Subject *string `json:"subject,omitempty" url:"subject,omitempty"` - Author *string `json:"author,omitempty" url:"author,omitempty"` - Created *time.Time `json:"created,omitempty" url:"created,omitempty"` - Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` - BlendMode DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode `json:"blendMode" url:"blendMode"` - InReplyTo *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` - ReplyType *DocAnnotationsList200ResponseAnnotationsItemPolygonReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` - UserID *string `json:"userId,omitempty" url:"userId,omitempty"` - GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` - CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` - Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` - Color *DocAnnotationsList200ResponseAnnotationsItemPolygonColor `json:"color" url:"color"` - Opacity float64 `json:"opacity" url:"opacity"` - StrokeWidth float64 `json:"strokeWidth" url:"strokeWidth"` - BorderStyle DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle `json:"borderStyle" url:"borderStyle"` - DashArray []float64 `json:"dashArray,omitempty" url:"dashArray,omitempty"` - InteriorColor *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor `json:"interiorColor,omitempty" url:"interiorColor,omitempty"` - Vertices []*DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem `json:"vertices" url:"vertices"` - Rotation *float64 `json:"rotation,omitempty" url:"rotation,omitempty"` - CloudyIntensity *float64 `json:"cloudyIntensity,omitempty" url:"cloudyIntensity,omitempty"` +type DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -28765,441 +29779,669 @@ type DocAnnotationsList200ResponseAnnotationsItemPolygon struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetRef() *DocAnnotationsList200ResponseAnnotationsItemPolygonRef { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber) GetPageObjectNumber() int { if d == nil { - return nil + return 0 } - return d.Ref + return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } - return d.PageObjectNumber + return d.AnnotObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetIndex() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { - return 0 + return nil } - return d.Index + return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetIdentityQuality() DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQuality { - if d == nil { - return "" +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.IdentityQuality + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetNm() *string { - if d == nil { - return nil +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumberFieldPageObjectNumber) +} + +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - return d.Nm + *d = DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetFlags() *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return d.Flags + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetRect() *DocAnnotationsList200ResponseAnnotationsItemPolygonRect { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber) String() string { if d == nil { - return nil + return "" } - return d.Rect + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetContents() *string { +var ( + docAnnotationsList200ResponseAnnotationsItemLinkRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemLinkRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemLinkRectFieldRight = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemLinkRectFieldTop = big.NewInt(1 << 3) +) + +type DocAnnotationsList200ResponseAnnotationsItemLinkRect struct { + Left float64 `json:"left" url:"left"` + Bottom float64 `json:"bottom" url:"bottom"` + Right float64 `json:"right" url:"right"` + Top float64 `json:"top" url:"top"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRect) GetLeft() float64 { if d == nil { - return nil + return 0 } - return d.Contents + return d.Left } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetSubject() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRect) GetBottom() float64 { if d == nil { - return nil + return 0 } - return d.Subject + return d.Bottom } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetAuthor() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRect) GetRight() float64 { if d == nil { - return nil + return 0 } - return d.Author + return d.Right } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetCreated() *time.Time { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRect) GetTop() float64 { if d == nil { - return nil + return 0 } - return d.Created + return d.Top } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetModified() *time.Time { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRect) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.Modified + return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetBlendMode() DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode { - if d == nil { - return "" +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRect) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.BlendMode + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetInReplyTo() *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo { - if d == nil { - return nil - } - return d.InReplyTo +// SetLeft sets the Left field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRect) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsList200ResponseAnnotationsItemLinkRectFieldLeft) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetReplyType() *DocAnnotationsList200ResponseAnnotationsItemPolygonReplyType { - if d == nil { - return nil +// SetBottom sets the Bottom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRect) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsList200ResponseAnnotationsItemLinkRectFieldBottom) +} + +// SetRight sets the Right field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRect) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsList200ResponseAnnotationsItemLinkRectFieldRight) +} + +// SetTop sets the Top field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsList200ResponseAnnotationsItemLinkRectFieldTop) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLinkRect + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - return d.ReplyType + *d = DocAnnotationsList200ResponseAnnotationsItemLinkRect(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetUserID() *string { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLinkRect + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return d.UserID + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetGroupID() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRect) String() string { if d == nil { - return nil + return "" } - return d.GroupID + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetCreatedBy() *string { +type DocAnnotationsList200ResponseAnnotationsItemLinkRef struct { + Kind string + ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber + Nm *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm + Index *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRef) GetKind() string { if d == nil { - return nil + return "" } - return d.CreatedBy + return d.Kind } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetUpdatedBy() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRef) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber { if d == nil { return nil } - return d.UpdatedBy + return d.ObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetActions() *PdfAnnotationActions { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRef) GetNm() *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm { if d == nil { return nil } - return d.Actions + return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetColor() *DocAnnotationsList200ResponseAnnotationsItemPolygonColor { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRef) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex { if d == nil { return nil } - return d.Color + return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetOpacity() float64 { - if d == nil { - return 0 +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRef) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` } - return d.Opacity + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsList200ResponseAnnotationsItemLinkRefNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value + } + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetStrokeWidth() float64 { - if d == nil { - return 0 +func (d DocAnnotationsList200ResponseAnnotationsItemLinkRef) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err } - return d.StrokeWidth + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Nm != nil { + return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + } + if d.Index != nil { + return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetBorderStyle() DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle { - if d == nil { - return "" - } - return d.BorderStyle +type DocAnnotationsList200ResponseAnnotationsItemLinkRefVisitor interface { + VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber) error + VisitNm(*DocAnnotationsList200ResponseAnnotationsItemLinkRefNm) error + VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex) error } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetDashArray() []float64 { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRef) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemLinkRefVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) } - return d.DashArray + if d.Nm != nil { + return visitor.VisitNm(d.Nm) + } + if d.Index != nil { + return visitor.VisitIndex(d.Index) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetInteriorColor() *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRef) validate() error { if d == nil { - return nil + return fmt.Errorf("type %T is nil", d) } - return d.InteriorColor + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Nm != nil { + fields = append(fields, "nm") + } + if d.Index != nil { + fields = append(fields, "index") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetVertices() []*DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem { +var ( + docAnnotationsList200ResponseAnnotationsItemLinkRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemLinkRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemLinkRefIndexFieldRevision = big.NewInt(1 << 2) +) + +type DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision `json:"revision" url:"revision"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex) GetPageObjectNumber() int { if d == nil { - return nil + return 0 } - return d.Vertices + return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetRotation() *float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex) GetIndex() int { if d == nil { - return nil + return 0 } - return d.Rotation + return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetCloudyIntensity() *float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision { if d == nil { return nil } - return d.CloudyIntensity + return d.Revision } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetRef sets the Ref field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetRef(ref *DocAnnotationsList200ResponseAnnotationsItemPolygonRef) { - d.Ref = ref - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldRef) -} - // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemLinkRefIndexFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetIndex(index int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex) SetIndex(index int) { d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldIndex) + d.require(docAnnotationsList200ResponseAnnotationsItemLinkRefIndexFieldIndex) } -// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; +// SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetIdentityQuality(identityQuality DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQuality) { - d.IdentityQuality = identityQuality - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldIdentityQuality) +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision) { + d.Revision = revision + d.require(docAnnotationsList200ResponseAnnotationsItemLinkRefIndexFieldRevision) } -// SetNm sets the Nm field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetNm(nm *string) { - d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldNm) +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -// SetFlags sets the Flags field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetFlags(flags *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) { - d.Flags = flags - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldFlags) +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -// SetRect sets the Rect field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetRect(rect *DocAnnotationsList200ResponseAnnotationsItemPolygonRect) { - d.Rect = rect - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldRect) +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -// SetContents sets the Contents field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetContents(contents *string) { - d.Contents = contents - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldContents) -} +var ( + docAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) -// SetSubject sets the Subject field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetSubject(subject *string) { - d.Subject = subject - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldSubject) -} +type DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` -// SetAuthor sets the Author field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetAuthor(author *string) { - d.Author = author - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldAuthor) -} + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` -// SetCreated sets the Created field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetCreated(created *time.Time) { - d.Created = created - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldCreated) + extraProperties map[string]interface{} + rawJSON json.RawMessage } -// SetModified sets the Modified field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetModified(modified *time.Time) { - d.Modified = modified - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldModified) +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID } -// SetBlendMode sets the BlendMode field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetBlendMode(blendMode DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode) { - d.BlendMode = blendMode - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldBlendMode) +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber } -// SetInReplyTo sets the InReplyTo field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetInReplyTo(inReplyTo *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo) { - d.InReplyTo = inReplyTo - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldInReplyTo) +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation } -// SetReplyType sets the ReplyType field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetReplyType(replyType *DocAnnotationsList200ResponseAnnotationsItemPolygonReplyType) { - d.ReplyType = replyType - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldReplyType) +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties } -// SetUserID sets the UserID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetUserID(userID *string) { - d.UserID = userID - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldUserID) +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) } -// SetGroupID sets the GroupID field and marks it as non-optional; +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetGroupID(groupID *string) { - d.GroupID = groupID - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldGroupID) +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevisionFieldDocSessionID) } -// SetCreatedBy sets the CreatedBy field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetCreatedBy(createdBy *string) { - d.CreatedBy = createdBy - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldCreatedBy) +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevisionFieldPageObjectNumber) } -// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; +// SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetUpdatedBy(updatedBy *string) { - d.UpdatedBy = updatedBy - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldUpdatedBy) +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevisionFieldGeneration) } -// SetActions sets the Actions field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetActions(actions *PdfAnnotationActions) { - d.Actions = actions - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldActions) +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -// SetColor sets the Color field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetColor(color *DocAnnotationsList200ResponseAnnotationsItemPolygonColor) { - d.Color = color - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldColor) +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -// SetOpacity sets the Opacity field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetOpacity(opacity float64) { - d.Opacity = opacity - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldOpacity) +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -// SetStrokeWidth sets the StrokeWidth field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetStrokeWidth(strokeWidth float64) { - d.StrokeWidth = strokeWidth - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldStrokeWidth) +var ( + docAnnotationsList200ResponseAnnotationsItemLinkRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemLinkRefNmFieldNm = big.NewInt(1 << 1) +) + +type DocAnnotationsList200ResponseAnnotationsItemLinkRefNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -// SetBorderStyle sets the BorderStyle field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetBorderStyle(borderStyle DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle) { - d.BorderStyle = borderStyle - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldBorderStyle) +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber } -// SetDashArray sets the DashArray field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetDashArray(dashArray []float64) { - d.DashArray = dashArray - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldDashArray) +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm } -// SetInteriorColor sets the InteriorColor field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetInteriorColor(interiorColor *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor) { - d.InteriorColor = interiorColor - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldInteriorColor) +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties } -// SetVertices sets the Vertices field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetVertices(vertices []*DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem) { - d.Vertices = vertices - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldVertices) +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) } -// SetRotation sets the Rotation field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetRotation(rotation *float64) { - d.Rotation = rotation - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldRotation) +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemLinkRefNmFieldPageObjectNumber) } -// SetCloudyIntensity sets the CloudyIntensity field and marks it as non-optional; +// SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetCloudyIntensity(cloudyIntensity *float64) { - d.CloudyIntensity = cloudyIntensity - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldCloudyIntensity) +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsList200ResponseAnnotationsItemLinkRefNmFieldNm) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) UnmarshalJSON(data []byte) error { - type embed DocAnnotationsList200ResponseAnnotationsItemPolygon - var unmarshaler = struct { - embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` - }{ - embed: embed(*d), - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLinkRefNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemPolygon(unmarshaler.embed) - d.Created = unmarshaler.Created.TimePtr() - d.Modified = unmarshaler.Modified.TimePtr() + *d = DocAnnotationsList200ResponseAnnotationsItemLinkRefNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -29209,22 +30451,18 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) UnmarshalJSON(data return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemPolygon +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLinkRefNm var marshaler = struct { embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), - Created: internal.NewOptionalDateTime(d.Created), - Modified: internal.NewOptionalDateTime(d.Modified), + embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm) String() string { if d == nil { return "" } @@ -29239,108 +30477,14 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) String() string { return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode string - -const ( - DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeNormal DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode = "normal" - DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeMultiply DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode = "multiply" - DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeScreen DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode = "screen" - DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeOverlay DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode = "overlay" - DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeDarken DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode = "darken" - DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeLighten DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode = "lighten" - DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeColorDodge DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode = "color-dodge" - DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeColorBurn DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode = "color-burn" - DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeHardLight DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode = "hard-light" - DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeSoftLight DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode = "soft-light" - DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeDifference DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode = "difference" - DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeExclusion DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode = "exclusion" - DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeHue DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode = "hue" - DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeSaturation DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode = "saturation" - DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeColor DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode = "color" - DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeLuminosity DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode = "luminosity" -) - -func NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode, error) { - switch s { - case "normal": - return DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeNormal, nil - case "multiply": - return DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeMultiply, nil - case "screen": - return DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeScreen, nil - case "overlay": - return DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeOverlay, nil - case "darken": - return DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeDarken, nil - case "lighten": - return DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeLighten, nil - case "color-dodge": - return DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeColorDodge, nil - case "color-burn": - return DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeColorBurn, nil - case "hard-light": - return DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeHardLight, nil - case "soft-light": - return DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeSoftLight, nil - case "difference": - return DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeDifference, nil - case "exclusion": - return DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeExclusion, nil - case "hue": - return DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeHue, nil - case "saturation": - return DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeSaturation, nil - case "color": - return DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeColor, nil - case "luminosity": - return DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeLuminosity, nil - } - var t DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode { - return &d -} - -type DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle string - -const ( - DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyleSolid DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle = "solid" - DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyleDashed DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle = "dashed" - DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyleBeveled DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle = "beveled" - DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyleInset DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle = "inset" -) - -func NewDocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyleFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle, error) { - switch s { - case "solid": - return DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyleSolid, nil - case "dashed": - return DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyleDashed, nil - case "beveled": - return DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyleBeveled, nil - case "inset": - return DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyleInset, nil - } - var t DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle { - return &d -} - var ( - docAnnotationsList200ResponseAnnotationsItemPolygonColorFieldR = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemPolygonColorFieldG = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemPolygonColorFieldB = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemPolygonColor struct { - R int `json:"r" url:"r"` - G int `json:"g" url:"g"` - B int `json:"b" url:"b"` +type DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -29349,69 +30493,55 @@ type DocAnnotationsList200ResponseAnnotationsItemPolygonColor struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonColor) GetR() int { - if d == nil { - return 0 - } - return d.R -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonColor) GetG() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } - return d.G + return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonColor) GetB() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } - return d.B + return d.AnnotObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonColor) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetR sets the R field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonColor) SetR(r int) { - d.R = r - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonColorFieldR) -} - -// SetG sets the G field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonColor) SetG(g int) { - d.G = g - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonColorFieldG) +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumberFieldPageObjectNumber) } -// SetB sets the B field and marks it as non-optional; +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonColor) SetB(b int) { - d.B = b - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonColorFieldB) +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonColor +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemPolygonColor(value) + *d = DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -29421,8 +30551,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonColor) UnmarshalJSON return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemPolygonColor +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber var marshaler = struct { embed }{ @@ -29432,7 +30562,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonColor) MarshalJSON() return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonColor) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber) String() string { if d == nil { return "" } @@ -29447,294 +30577,98 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonColor) String() stri return fmt.Sprintf("%#v", d) } -var ( - docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldInvisible = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldHidden = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldPrint = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldNoZoom = big.NewInt(1 << 3) - docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldNoRotate = big.NewInt(1 << 4) - docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldNoView = big.NewInt(1 << 5) - docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldReadOnly = big.NewInt(1 << 6) - docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldLocked = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldToggleNoView = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldLockedContents = big.NewInt(1 << 9) +type DocAnnotationsList200ResponseAnnotationsItemLinkReplyType string + +const ( + DocAnnotationsList200ResponseAnnotationsItemLinkReplyTypeReply DocAnnotationsList200ResponseAnnotationsItemLinkReplyType = "reply" + DocAnnotationsList200ResponseAnnotationsItemLinkReplyTypeGroup DocAnnotationsList200ResponseAnnotationsItemLinkReplyType = "group" ) -type DocAnnotationsList200ResponseAnnotationsItemPolygonFlags struct { - Invisible bool `json:"invisible" url:"invisible"` - Hidden bool `json:"hidden" url:"hidden"` - Print bool `json:"print" url:"print"` - NoZoom bool `json:"noZoom" url:"noZoom"` - NoRotate bool `json:"noRotate" url:"noRotate"` - NoView bool `json:"noView" url:"noView"` - ReadOnly bool `json:"readOnly" url:"readOnly"` - Locked bool `json:"locked" url:"locked"` - ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` - LockedContents bool `json:"lockedContents" url:"lockedContents"` +func NewDocAnnotationsList200ResponseAnnotationsItemLinkReplyTypeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemLinkReplyType, error) { + switch s { + case "reply": + return DocAnnotationsList200ResponseAnnotationsItemLinkReplyTypeReply, nil + case "group": + return DocAnnotationsList200ResponseAnnotationsItemLinkReplyTypeGroup, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemLinkReplyType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +func (d DocAnnotationsList200ResponseAnnotationsItemLinkReplyType) Ptr() *DocAnnotationsList200ResponseAnnotationsItemLinkReplyType { + return &d +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +type DocAnnotationsList200ResponseAnnotationsItemLinkTarget struct { + Kind string + Goto *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto + URI *DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI + GotoRemote *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote + Launch *DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch + Javascript *DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript + Named *DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed + Unsupported *DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported + + rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) GetInvisible() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTarget) GetKind() string { if d == nil { - return false + return "" } - return d.Invisible + return d.Kind } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) GetHidden() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTarget) GetGoto() *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto { if d == nil { - return false + return nil } - return d.Hidden + return d.Goto } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) GetPrint() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTarget) GetURI() *DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI { if d == nil { - return false + return nil } - return d.Print + return d.URI } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) GetNoZoom() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTarget) GetGotoRemote() *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote { if d == nil { - return false + return nil } - return d.NoZoom + return d.GotoRemote } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) GetNoRotate() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTarget) GetLaunch() *DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch { if d == nil { - return false + return nil } - return d.NoRotate + return d.Launch } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) GetNoView() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTarget) GetJavascript() *DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript { if d == nil { - return false + return nil } - return d.NoView + return d.Javascript } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) GetReadOnly() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTarget) GetNamed() *DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed { if d == nil { - return false + return nil } - return d.ReadOnly + return d.Named } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) GetLocked() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTarget) GetUnsupported() *DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported { if d == nil { - return false + return nil } - return d.Locked -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) GetToggleNoView() bool { - if d == nil { - return false - } - return d.ToggleNoView -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) GetLockedContents() bool { - if d == nil { - return false - } - return d.LockedContents -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetInvisible sets the Invisible field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) SetInvisible(invisible bool) { - d.Invisible = invisible - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldInvisible) -} - -// SetHidden sets the Hidden field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) SetHidden(hidden bool) { - d.Hidden = hidden - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldHidden) -} - -// SetPrint sets the Print field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) SetPrint(print bool) { - d.Print = print - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldPrint) -} - -// SetNoZoom sets the NoZoom field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) SetNoZoom(noZoom bool) { - d.NoZoom = noZoom - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldNoZoom) -} - -// SetNoRotate sets the NoRotate field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) SetNoRotate(noRotate bool) { - d.NoRotate = noRotate - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldNoRotate) -} - -// SetNoView sets the NoView field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) SetNoView(noView bool) { - d.NoView = noView - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldNoView) -} - -// SetReadOnly sets the ReadOnly field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) SetReadOnly(readOnly bool) { - d.ReadOnly = readOnly - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldReadOnly) -} - -// SetLocked sets the Locked field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) SetLocked(locked bool) { - d.Locked = locked - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldLocked) -} - -// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) SetToggleNoView(toggleNoView bool) { - d.ToggleNoView = toggleNoView - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldToggleNoView) -} - -// SetLockedContents sets the LockedContents field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) SetLockedContents(lockedContents bool) { - d.LockedContents = lockedContents - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldLockedContents) -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonFlags - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsList200ResponseAnnotationsItemPolygonFlags(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemPolygonFlags - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) -} - -type DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQuality string - -const ( - DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQualityDurable DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQuality = "durable" - DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQualityWeak DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQuality = "weak" -) - -func NewDocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQualityFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQuality, error) { - switch s { - case "durable": - return DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQualityDurable, nil - case "weak": - return DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQualityWeak, nil - } - var t DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQuality - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQuality) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQuality { - return &d -} - -type DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo struct { - Kind string - ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber - Nm *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm - Index *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex - - rawJSON json.RawMessage -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo) GetKind() string { - if d == nil { - return "" - } - return d.Kind -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber { - if d == nil { - return nil - } - return d.ObjectNumber -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo) GetNm() *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm { - if d == nil { - return nil - } - return d.Nm -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex { - if d == nil { - return nil - } - return d.Index + return d.Unsupported } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo) UnmarshalJSON(data []byte) error { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTarget) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -29746,41 +30680,77 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo) Unmarshal return fmt.Errorf("%T did not include discriminant kind", d) } switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber) + case "goto": + value := new(DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto) if err := json.Unmarshal(data, &value); err != nil { return err } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm) + d.Goto = value + case "uri": + value := new(DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI) if err := json.Unmarshal(data, &value); err != nil { return err } - d.Nm = value - case "index": - value := new(DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex) + d.URI = value + case "goto-remote": + value := new(DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote) if err := json.Unmarshal(data, &value); err != nil { return err } - d.Index = value + d.GotoRemote = value + case "launch": + value := new(DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Launch = value + case "javascript": + value := new(DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Javascript = value + case "named": + value := new(DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Named = value + case "unsupported": + value := new(DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Unsupported = value } d.rawJSON = json.RawMessage(data) return nil } -func (d DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsList200ResponseAnnotationsItemLinkTarget) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + if d.Goto != nil { + return internal.MarshalJSONWithExtraProperty(d.Goto, "kind", "goto") } - if d.Nm != nil { - return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + if d.URI != nil { + return internal.MarshalJSONWithExtraProperty(d.URI, "kind", "uri") } - if d.Index != nil { - return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + if d.GotoRemote != nil { + return internal.MarshalJSONWithExtraProperty(d.GotoRemote, "kind", "goto-remote") + } + if d.Launch != nil { + return internal.MarshalJSONWithExtraProperty(d.Launch, "kind", "launch") + } + if d.Javascript != nil { + return internal.MarshalJSONWithExtraProperty(d.Javascript, "kind", "javascript") + } + if d.Named != nil { + return internal.MarshalJSONWithExtraProperty(d.Named, "kind", "named") + } + if d.Unsupported != nil { + return internal.MarshalJSONWithExtraProperty(d.Unsupported, "kind", "unsupported") } if len(d.rawJSON) > 0 { return d.rawJSON, nil @@ -29788,38 +30758,66 @@ func (d DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo) MarshalJSO return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToVisitor interface { - VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber) error - VisitNm(*DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm) error - VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex) error +type DocAnnotationsList200ResponseAnnotationsItemLinkTargetVisitor interface { + VisitGoto(*DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto) error + VisitURI(*DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI) error + VisitGotoRemote(*DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote) error + VisitLaunch(*DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch) error + VisitJavascript(*DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript) error + VisitNamed(*DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed) error + VisitUnsupported(*DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported) error } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTarget) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemLinkTargetVisitor) error { + if d.Goto != nil { + return visitor.VisitGoto(d.Goto) } - if d.Nm != nil { - return visitor.VisitNm(d.Nm) + if d.URI != nil { + return visitor.VisitURI(d.URI) } - if d.Index != nil { - return visitor.VisitIndex(d.Index) + if d.GotoRemote != nil { + return visitor.VisitGotoRemote(d.GotoRemote) + } + if d.Launch != nil { + return visitor.VisitLaunch(d.Launch) + } + if d.Javascript != nil { + return visitor.VisitJavascript(d.Javascript) + } + if d.Named != nil { + return visitor.VisitNamed(d.Named) + } + if d.Unsupported != nil { + return visitor.VisitUnsupported(d.Unsupported) } return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo) validate() error { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTarget) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") + if d.Goto != nil { + fields = append(fields, "goto") } - if d.Nm != nil { - fields = append(fields, "nm") + if d.URI != nil { + fields = append(fields, "uri") } - if d.Index != nil { - fields = append(fields, "index") + if d.GotoRemote != nil { + fields = append(fields, "goto-remote") + } + if d.Launch != nil { + fields = append(fields, "launch") + } + if d.Javascript != nil { + fields = append(fields, "javascript") + } + if d.Named != nil { + fields = append(fields, "named") + } + if d.Unsupported != nil { + fields = append(fields, "unsupported") } if len(fields) == 0 { if d.Kind != "" { @@ -29848,15 +30846,11 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo) validate( } var ( - docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemLinkTargetGotoFieldDestination = big.NewInt(1 << 0) ) -type DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto struct { + Destination *PdfDestination `json:"destination" url:"destination"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -29865,69 +30859,41 @@ type DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex) GetIndex() int { - if d == nil { - return 0 - } - return d.Index -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto) GetDestination() *PdfDestination { if d == nil { return nil } - return d.Revision + return d.Destination } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexFieldPageObjectNumber) -} - -// SetIndex sets the Index field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexFieldIndex) -} - -// SetRevision sets the Revision field and marks it as non-optional; +// SetDestination sets the Destination field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision) { - d.Revision = revision - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexFieldRevision) +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto) SetDestination(destination *PdfDestination) { + d.Destination = destination + d.require(docAnnotationsList200ResponseAnnotationsItemLinkTargetGotoFieldDestination) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex(value) + *d = DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -29937,8 +30903,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex) Unma return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto var marshaler = struct { embed }{ @@ -29948,7 +30914,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex) Mars return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto) String() string { if d == nil { return "" } @@ -29964,15 +30930,11 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex) Stri } var ( - docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemoteFieldFile = big.NewInt(1 << 0) ) -type DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote struct { + File string `json:"file" url:"file"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -29981,69 +30943,41 @@ type DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision s rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote) GetFile() string { if d == nil { return "" } - return d.DocSessionID -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision) GetGeneration() int { - if d == nil { - return 0 - } - return d.Generation + return d.File } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevisionFieldDocSessionID) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevisionFieldPageObjectNumber) -} - -// SetGeneration sets the Generation field and marks it as non-optional; +// SetFile sets the File field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevisionFieldGeneration) +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote) SetFile(file string) { + d.File = file + d.require(docAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemoteFieldFile) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision(value) + *d = DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -30053,8 +30987,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevisi return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote var marshaler = struct { embed }{ @@ -30064,7 +30998,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevisi return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote) String() string { if d == nil { return "" } @@ -30079,14 +31013,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevisi return fmt.Sprintf("%#v", d) } -var ( - docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNmFieldNm = big.NewInt(1 << 1) -) - -type DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` +type DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -30095,55 +31022,27 @@ type DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm) GetNm() string { - if d == nil { - return "" - } - return d.Nm -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNmFieldPageObjectNumber) -} - -// SetNm sets the Nm field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNmFieldNm) -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm(value) + *d = DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -30153,8 +31052,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm) Unmarsh return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript var marshaler = struct { embed }{ @@ -30164,7 +31063,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm) Marshal return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript) String() string { if d == nil { return "" } @@ -30180,13 +31079,11 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm) String( } var ( - docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemLinkTargetLaunchFieldPath = big.NewInt(1 << 0) ) -type DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` +type DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch struct { + Path string `json:"path" url:"path"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -30195,55 +31092,41 @@ type DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber st rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch) GetPath() string { if d == nil { - return 0 + return "" } - return d.AnnotObjectNumber + return d.Path } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumberFieldPageObjectNumber) -} - -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetPath sets the Path field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumberFieldAnnotObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch) SetPath(path string) { + d.Path = path + d.require(docAnnotationsList200ResponseAnnotationsItemLinkTargetLaunchFieldPath) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber(value) + *d = DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -30253,8 +31136,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumbe return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch var marshaler = struct { embed }{ @@ -30264,7 +31147,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumbe return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch) String() string { if d == nil { return "" } @@ -30280,15 +31163,11 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumbe } var ( - docAnnotationsList200ResponseAnnotationsItemPolygonInteriorColorFieldR = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemPolygonInteriorColorFieldG = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemPolygonInteriorColorFieldB = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemLinkTargetNamedFieldName = big.NewInt(1 << 0) ) -type DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor struct { - R int `json:"r" url:"r"` - G int `json:"g" url:"g"` - B int `json:"b" url:"b"` +type DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed struct { + Name string `json:"name" url:"name"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -30297,69 +31176,41 @@ type DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor) GetR() int { - if d == nil { - return 0 - } - return d.R -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor) GetG() int { - if d == nil { - return 0 - } - return d.G -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor) GetB() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed) GetName() string { if d == nil { - return 0 + return "" } - return d.B + return d.Name } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetR sets the R field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor) SetR(r int) { - d.R = r - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonInteriorColorFieldR) -} - -// SetG sets the G field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor) SetG(g int) { - d.G = g - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonInteriorColorFieldG) -} - -// SetB sets the B field and marks it as non-optional; +// SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor) SetB(b int) { - d.B = b - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonInteriorColorFieldB) +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed) SetName(name string) { + d.Name = name + d.require(docAnnotationsList200ResponseAnnotationsItemLinkTargetNamedFieldName) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor(value) + *d = DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -30369,8 +31220,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor) Unmar return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed var marshaler = struct { embed }{ @@ -30380,7 +31231,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor) Marsh return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed) String() string { if d == nil { return "" } @@ -30395,18 +31246,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor) Strin return fmt.Sprintf("%#v", d) } -var ( - docAnnotationsList200ResponseAnnotationsItemPolygonRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemPolygonRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemPolygonRectFieldRight = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemPolygonRectFieldTop = big.NewInt(1 << 3) -) - -type DocAnnotationsList200ResponseAnnotationsItemPolygonRect struct { - Left float64 `json:"left" url:"left"` - Bottom float64 `json:"bottom" url:"bottom"` - Right float64 `json:"right" url:"right"` - Top float64 `json:"top" url:"top"` +type DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -30415,83 +31255,27 @@ type DocAnnotationsList200ResponseAnnotationsItemPolygonRect struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRect) GetLeft() float64 { - if d == nil { - return 0 - } - return d.Left -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRect) GetBottom() float64 { - if d == nil { - return 0 - } - return d.Bottom -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRect) GetRight() float64 { - if d == nil { - return 0 - } - return d.Right -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRect) GetTop() float64 { - if d == nil { - return 0 - } - return d.Top -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRect) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRect) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetLeft sets the Left field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRect) SetLeft(left float64) { - d.Left = left - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonRectFieldLeft) -} - -// SetBottom sets the Bottom field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRect) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonRectFieldBottom) -} - -// SetRight sets the Right field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRect) SetRight(right float64) { - d.Right = right - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonRectFieldRight) -} - -// SetTop sets the Top field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRect) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonRectFieldTop) -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonRect +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemPolygonRect(value) + *d = DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -30501,8 +31285,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRect) UnmarshalJSON( return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemPolygonRect +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported var marshaler = struct { embed }{ @@ -30512,7 +31296,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRect) MarshalJSON() return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRect) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported) String() string { if d == nil { return "" } @@ -30527,166 +31311,12 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRect) String() strin return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemPolygonRef struct { - Kind string - ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber - Nm *DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm - Index *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex - - rawJSON json.RawMessage -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRef) GetKind() string { - if d == nil { - return "" - } - return d.Kind -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRef) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber { - if d == nil { - return nil - } - return d.ObjectNumber -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRef) GetNm() *DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm { - if d == nil { - return nil - } - return d.Nm -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRef) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex { - if d == nil { - return nil - } - return d.Index -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRef) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Nm = value - case "index": - value := new(DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Index = value - } - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d DocAnnotationsList200ResponseAnnotationsItemPolygonRef) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Nm != nil { - return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") - } - if d.Index != nil { - return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil - } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) -} - -type DocAnnotationsList200ResponseAnnotationsItemPolygonRefVisitor interface { - VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber) error - VisitNm(*DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm) error - VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex) error -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRef) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemPolygonRefVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) - } - if d.Nm != nil { - return visitor.VisitNm(d.Nm) - } - if d.Index != nil { - return visitor.VisitIndex(d.Index) - } - return fmt.Errorf("type %T does not define a non-empty union type", d) -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRef) validate() error { - if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Nm != nil { - fields = append(fields, "nm") - } - if d.Index != nil { - fields = append(fields, "index") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } - } - return nil -} - var ( - docAnnotationsList200ResponseAnnotationsItemPolygonRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemPolygonRefIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemPolygonRefIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemLinkTargetURIFieldURI = big.NewInt(1 << 0) ) -type DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI struct { + URI string `json:"uri" url:"uri"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -30695,69 +31325,41 @@ type DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex) GetIndex() int { - if d == nil { - return 0 - } - return d.Index -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI) GetURI() string { if d == nil { - return nil + return "" } - return d.Revision + return d.URI } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonRefIndexFieldPageObjectNumber) -} - -// SetIndex sets the Index field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonRefIndexFieldIndex) -} - -// SetRevision sets the Revision field and marks it as non-optional; +// SetURI sets the URI field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision) { - d.Revision = revision - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonRefIndexFieldRevision) +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI) SetURI(uri string) { + d.URI = uri + d.require(docAnnotationsList200ResponseAnnotationsItemLinkTargetURIFieldURI) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex(value) + *d = DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -30767,8 +31369,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex) UnmarshalJ return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI var marshaler = struct { embed }{ @@ -30778,7 +31380,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex) MarshalJSO return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI) String() string { if d == nil { return "" } @@ -30794,15 +31396,73 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex) String() s } var ( - docAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolygonFieldIntent = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolygonFieldMeasure = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolygonFieldCaption = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolygonFieldRef = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemPolygonFieldPageObjectNumber = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemPolygonFieldIndex = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemPolygonFieldIdentityQuality = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemPolygonFieldNm = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemPolygonFieldFlags = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemPolygonFieldRect = big.NewInt(1 << 9) + docAnnotationsList200ResponseAnnotationsItemPolygonFieldContents = big.NewInt(1 << 10) + docAnnotationsList200ResponseAnnotationsItemPolygonFieldSubject = big.NewInt(1 << 11) + docAnnotationsList200ResponseAnnotationsItemPolygonFieldAuthor = big.NewInt(1 << 12) + docAnnotationsList200ResponseAnnotationsItemPolygonFieldCreated = big.NewInt(1 << 13) + docAnnotationsList200ResponseAnnotationsItemPolygonFieldModified = big.NewInt(1 << 14) + docAnnotationsList200ResponseAnnotationsItemPolygonFieldBlendMode = big.NewInt(1 << 15) + docAnnotationsList200ResponseAnnotationsItemPolygonFieldInReplyTo = big.NewInt(1 << 16) + docAnnotationsList200ResponseAnnotationsItemPolygonFieldReplyType = big.NewInt(1 << 17) + docAnnotationsList200ResponseAnnotationsItemPolygonFieldUserID = big.NewInt(1 << 18) + docAnnotationsList200ResponseAnnotationsItemPolygonFieldGroupID = big.NewInt(1 << 19) + docAnnotationsList200ResponseAnnotationsItemPolygonFieldCreatedBy = big.NewInt(1 << 20) + docAnnotationsList200ResponseAnnotationsItemPolygonFieldUpdatedBy = big.NewInt(1 << 21) + docAnnotationsList200ResponseAnnotationsItemPolygonFieldActions = big.NewInt(1 << 22) + docAnnotationsList200ResponseAnnotationsItemPolygonFieldColor = big.NewInt(1 << 23) + docAnnotationsList200ResponseAnnotationsItemPolygonFieldOpacity = big.NewInt(1 << 24) + docAnnotationsList200ResponseAnnotationsItemPolygonFieldStrokeWidth = big.NewInt(1 << 25) + docAnnotationsList200ResponseAnnotationsItemPolygonFieldBorderStyle = big.NewInt(1 << 26) + docAnnotationsList200ResponseAnnotationsItemPolygonFieldDashArray = big.NewInt(1 << 27) + docAnnotationsList200ResponseAnnotationsItemPolygonFieldInteriorColor = big.NewInt(1 << 28) + docAnnotationsList200ResponseAnnotationsItemPolygonFieldVertices = big.NewInt(1 << 29) + docAnnotationsList200ResponseAnnotationsItemPolygonFieldRotation = big.NewInt(1 << 30) + docAnnotationsList200ResponseAnnotationsItemPolygonFieldCloudyIntensity = big.NewInt(1 << 31) ) -type DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocAnnotationsList200ResponseAnnotationsItemPolygon struct { + Intent *DocAnnotationsList200ResponseAnnotationsItemPolygonIntent `json:"intent,omitempty" url:"intent,omitempty"` + Measure *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasure `json:"measure,omitempty" url:"measure,omitempty"` + Caption *DocAnnotationsList200ResponseAnnotationsItemPolygonCaption `json:"caption,omitempty" url:"caption,omitempty"` + Ref *DocAnnotationsList200ResponseAnnotationsItemPolygonRef `json:"ref" url:"ref"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + IdentityQuality DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQuality `json:"identityQuality" url:"identityQuality"` + Nm *string `json:"nm,omitempty" url:"nm,omitempty"` + Flags *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags `json:"flags" url:"flags"` + Rect *DocAnnotationsList200ResponseAnnotationsItemPolygonRect `json:"rect" url:"rect"` + Contents *string `json:"contents,omitempty" url:"contents,omitempty"` + Subject *string `json:"subject,omitempty" url:"subject,omitempty"` + Author *string `json:"author,omitempty" url:"author,omitempty"` + Created *time.Time `json:"created,omitempty" url:"created,omitempty"` + Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` + BlendMode DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode `json:"blendMode" url:"blendMode"` + InReplyTo *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` + ReplyType *DocAnnotationsList200ResponseAnnotationsItemPolygonReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` + UserID *string `json:"userId,omitempty" url:"userId,omitempty"` + GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` + CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` + Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` + Color *DocAnnotationsList200ResponseAnnotationsItemPolygonColor `json:"color" url:"color"` + Opacity float64 `json:"opacity" url:"opacity"` + StrokeWidth float64 `json:"strokeWidth" url:"strokeWidth"` + BorderStyle DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle `json:"borderStyle" url:"borderStyle"` + DashArray []float64 `json:"dashArray,omitempty" url:"dashArray,omitempty"` + InteriorColor *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor `json:"interiorColor,omitempty" url:"interiorColor,omitempty"` + Vertices []*DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem `json:"vertices" url:"vertices"` + Rotation *float64 `json:"rotation,omitempty" url:"rotation,omitempty"` + CloudyIntensity *float64 `json:"cloudyIntensity,omitempty" url:"cloudyIntensity,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -30811,918 +31471,470 @@ type DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision struct rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetIntent() *DocAnnotationsList200ResponseAnnotationsItemPolygonIntent { if d == nil { - return "" + return nil } - return d.DocSessionID + return d.Intent } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetMeasure() *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasure { if d == nil { - return 0 + return nil } - return d.PageObjectNumber + return d.Measure } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision) GetGeneration() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetCaption() *DocAnnotationsList200ResponseAnnotationsItemPolygonCaption { if d == nil { - return 0 + return nil } - return d.Generation + return d.Caption } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetRef() *DocAnnotationsList200ResponseAnnotationsItemPolygonRef { if d == nil { return nil } - return d.extraProperties + return d.Ref } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetPageObjectNumber() int { + if d == nil { + return 0 } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevisionFieldDocSessionID) + return d.PageObjectNumber } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevisionFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetIndex() int { + if d == nil { + return 0 + } + return d.Index } -// SetGeneration sets the Generation field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevisionFieldGeneration) -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) -} - -var ( - docAnnotationsList200ResponseAnnotationsItemPolygonRefNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemPolygonRefNmFieldNm = big.NewInt(1 << 1) -) - -type DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm) GetNm() string { - if d == nil { - return "" - } - return d.Nm -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonRefNmFieldPageObjectNumber) -} - -// SetNm sets the Nm field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonRefNmFieldNm) -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) -} - -var ( - docAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) -) - -type DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber) GetAnnotObjectNumber() int { - if d == nil { - return 0 - } - return d.AnnotObjectNumber -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumberFieldPageObjectNumber) -} - -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumberFieldAnnotObjectNumber) -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) -} - -type DocAnnotationsList200ResponseAnnotationsItemPolygonReplyType string - -const ( - DocAnnotationsList200ResponseAnnotationsItemPolygonReplyTypeReply DocAnnotationsList200ResponseAnnotationsItemPolygonReplyType = "reply" - DocAnnotationsList200ResponseAnnotationsItemPolygonReplyTypeGroup DocAnnotationsList200ResponseAnnotationsItemPolygonReplyType = "group" -) - -func NewDocAnnotationsList200ResponseAnnotationsItemPolygonReplyTypeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolygonReplyType, error) { - switch s { - case "reply": - return DocAnnotationsList200ResponseAnnotationsItemPolygonReplyTypeReply, nil - case "group": - return DocAnnotationsList200ResponseAnnotationsItemPolygonReplyTypeGroup, nil - } - var t DocAnnotationsList200ResponseAnnotationsItemPolygonReplyType - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsList200ResponseAnnotationsItemPolygonReplyType) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolygonReplyType { - return &d -} - -var ( - docAnnotationsList200ResponseAnnotationsItemPolygonVerticesItemFieldX = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemPolygonVerticesItemFieldY = big.NewInt(1 << 1) -) - -type DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem) GetX() float64 { - if d == nil { - return 0 - } - return d.X -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem) GetY() float64 { - if d == nil { - return 0 - } - return d.Y -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetX sets the X field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem) SetX(x float64) { - d.X = x - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonVerticesItemFieldX) -} - -// SetY sets the Y field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem) SetY(y float64) { - d.Y = y - d.require(docAnnotationsList200ResponseAnnotationsItemPolygonVerticesItemFieldY) -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) -} - -var ( - docAnnotationsList200ResponseAnnotationsItemPolylineFieldRef = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldIndex = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldIdentityQuality = big.NewInt(1 << 3) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldNm = big.NewInt(1 << 4) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldFlags = big.NewInt(1 << 5) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldRect = big.NewInt(1 << 6) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldContents = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldSubject = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldAuthor = big.NewInt(1 << 9) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldCreated = big.NewInt(1 << 10) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldModified = big.NewInt(1 << 11) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldBlendMode = big.NewInt(1 << 12) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldInReplyTo = big.NewInt(1 << 13) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldReplyType = big.NewInt(1 << 14) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldUserID = big.NewInt(1 << 15) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldGroupID = big.NewInt(1 << 16) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldCreatedBy = big.NewInt(1 << 17) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldUpdatedBy = big.NewInt(1 << 18) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldActions = big.NewInt(1 << 19) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldColor = big.NewInt(1 << 20) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldOpacity = big.NewInt(1 << 21) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldStrokeWidth = big.NewInt(1 << 22) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldBorderStyle = big.NewInt(1 << 23) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldDashArray = big.NewInt(1 << 24) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldInteriorColor = big.NewInt(1 << 25) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldVertices = big.NewInt(1 << 26) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldRotation = big.NewInt(1 << 27) - docAnnotationsList200ResponseAnnotationsItemPolylineFieldLineEndings = big.NewInt(1 << 28) -) - -type DocAnnotationsList200ResponseAnnotationsItemPolyline struct { - Ref *DocAnnotationsList200ResponseAnnotationsItemPolylineRef `json:"ref" url:"ref"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - IdentityQuality DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQuality `json:"identityQuality" url:"identityQuality"` - Nm *string `json:"nm,omitempty" url:"nm,omitempty"` - Flags *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags `json:"flags" url:"flags"` - Rect *DocAnnotationsList200ResponseAnnotationsItemPolylineRect `json:"rect" url:"rect"` - Contents *string `json:"contents,omitempty" url:"contents,omitempty"` - Subject *string `json:"subject,omitempty" url:"subject,omitempty"` - Author *string `json:"author,omitempty" url:"author,omitempty"` - Created *time.Time `json:"created,omitempty" url:"created,omitempty"` - Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` - BlendMode DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode `json:"blendMode" url:"blendMode"` - InReplyTo *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` - ReplyType *DocAnnotationsList200ResponseAnnotationsItemPolylineReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` - UserID *string `json:"userId,omitempty" url:"userId,omitempty"` - GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` - CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` - Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` - Color *DocAnnotationsList200ResponseAnnotationsItemPolylineColor `json:"color" url:"color"` - Opacity float64 `json:"opacity" url:"opacity"` - StrokeWidth float64 `json:"strokeWidth" url:"strokeWidth"` - BorderStyle DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle `json:"borderStyle" url:"borderStyle"` - DashArray []float64 `json:"dashArray,omitempty" url:"dashArray,omitempty"` - InteriorColor *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor `json:"interiorColor,omitempty" url:"interiorColor,omitempty"` - Vertices []*DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem `json:"vertices" url:"vertices"` - Rotation *float64 `json:"rotation,omitempty" url:"rotation,omitempty"` - LineEndings *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings `json:"lineEndings" url:"lineEndings"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetRef() *DocAnnotationsList200ResponseAnnotationsItemPolylineRef { - if d == nil { - return nil - } - return d.Ref -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetIndex() int { - if d == nil { - return 0 - } - return d.Index -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetIdentityQuality() DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQuality { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetIdentityQuality() DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQuality { if d == nil { return "" } return d.IdentityQuality } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetNm() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetNm() *string { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetFlags() *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetFlags() *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags { if d == nil { return nil } return d.Flags } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetRect() *DocAnnotationsList200ResponseAnnotationsItemPolylineRect { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetRect() *DocAnnotationsList200ResponseAnnotationsItemPolygonRect { if d == nil { return nil } return d.Rect } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetContents() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetContents() *string { if d == nil { return nil } return d.Contents } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetSubject() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetSubject() *string { if d == nil { return nil } return d.Subject } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetAuthor() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetAuthor() *string { if d == nil { return nil } return d.Author } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetCreated() *time.Time { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetCreated() *time.Time { if d == nil { return nil } return d.Created } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetModified() *time.Time { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetModified() *time.Time { if d == nil { return nil } return d.Modified } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetBlendMode() DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetBlendMode() DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode { if d == nil { return "" } return d.BlendMode } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetInReplyTo() *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetInReplyTo() *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo { if d == nil { return nil } return d.InReplyTo } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetReplyType() *DocAnnotationsList200ResponseAnnotationsItemPolylineReplyType { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetReplyType() *DocAnnotationsList200ResponseAnnotationsItemPolygonReplyType { if d == nil { return nil } return d.ReplyType } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetUserID() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetUserID() *string { if d == nil { return nil } return d.UserID } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetGroupID() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetGroupID() *string { if d == nil { return nil } return d.GroupID } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetCreatedBy() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetCreatedBy() *string { if d == nil { return nil } return d.CreatedBy } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetUpdatedBy() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetUpdatedBy() *string { if d == nil { return nil } return d.UpdatedBy } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetActions() *PdfAnnotationActions { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetActions() *PdfAnnotationActions { if d == nil { return nil } return d.Actions } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetColor() *DocAnnotationsList200ResponseAnnotationsItemPolylineColor { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetColor() *DocAnnotationsList200ResponseAnnotationsItemPolygonColor { if d == nil { return nil } return d.Color } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetOpacity() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetOpacity() float64 { if d == nil { return 0 } return d.Opacity } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetStrokeWidth() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetStrokeWidth() float64 { if d == nil { return 0 } return d.StrokeWidth } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetBorderStyle() DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetBorderStyle() DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle { if d == nil { return "" } return d.BorderStyle } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetDashArray() []float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetDashArray() []float64 { if d == nil { return nil } return d.DashArray } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetInteriorColor() *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetInteriorColor() *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor { if d == nil { return nil } return d.InteriorColor } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetVertices() []*DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetVertices() []*DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem { if d == nil { return nil } return d.Vertices } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetRotation() *float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetRotation() *float64 { if d == nil { return nil } return d.Rotation } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetLineEndings() *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetCloudyIntensity() *float64 { if d == nil { return nil } - return d.LineEndings + return d.CloudyIntensity } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } +// SetIntent sets the Intent field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetIntent(intent *DocAnnotationsList200ResponseAnnotationsItemPolygonIntent) { + d.Intent = intent + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldIntent) +} + +// SetMeasure sets the Measure field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetMeasure(measure *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasure) { + d.Measure = measure + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldMeasure) +} + +// SetCaption sets the Caption field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetCaption(caption *DocAnnotationsList200ResponseAnnotationsItemPolygonCaption) { + d.Caption = caption + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldCaption) +} + // SetRef sets the Ref field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetRef(ref *DocAnnotationsList200ResponseAnnotationsItemPolylineRef) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetRef(ref *DocAnnotationsList200ResponseAnnotationsItemPolygonRef) { d.Ref = ref - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldRef) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldRef) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetIndex(index int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetIndex(index int) { d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldIndex) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldIndex) } // SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetIdentityQuality(identityQuality DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQuality) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetIdentityQuality(identityQuality DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQuality) { d.IdentityQuality = identityQuality - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldIdentityQuality) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldIdentityQuality) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetNm(nm *string) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetNm(nm *string) { d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldNm) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldNm) } // SetFlags sets the Flags field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetFlags(flags *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetFlags(flags *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) { d.Flags = flags - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldFlags) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldFlags) } // SetRect sets the Rect field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetRect(rect *DocAnnotationsList200ResponseAnnotationsItemPolylineRect) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetRect(rect *DocAnnotationsList200ResponseAnnotationsItemPolygonRect) { d.Rect = rect - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldRect) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldRect) } // SetContents sets the Contents field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetContents(contents *string) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetContents(contents *string) { d.Contents = contents - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldContents) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldContents) } // SetSubject sets the Subject field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetSubject(subject *string) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetSubject(subject *string) { d.Subject = subject - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldSubject) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldSubject) } // SetAuthor sets the Author field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetAuthor(author *string) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetAuthor(author *string) { d.Author = author - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldAuthor) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldAuthor) } // SetCreated sets the Created field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetCreated(created *time.Time) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetCreated(created *time.Time) { d.Created = created - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldCreated) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldCreated) } // SetModified sets the Modified field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetModified(modified *time.Time) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetModified(modified *time.Time) { d.Modified = modified - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldModified) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldModified) } // SetBlendMode sets the BlendMode field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetBlendMode(blendMode DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetBlendMode(blendMode DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode) { d.BlendMode = blendMode - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldBlendMode) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldBlendMode) } // SetInReplyTo sets the InReplyTo field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetInReplyTo(inReplyTo *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetInReplyTo(inReplyTo *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo) { d.InReplyTo = inReplyTo - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldInReplyTo) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldInReplyTo) } // SetReplyType sets the ReplyType field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetReplyType(replyType *DocAnnotationsList200ResponseAnnotationsItemPolylineReplyType) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetReplyType(replyType *DocAnnotationsList200ResponseAnnotationsItemPolygonReplyType) { d.ReplyType = replyType - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldReplyType) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldReplyType) } // SetUserID sets the UserID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetUserID(userID *string) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetUserID(userID *string) { d.UserID = userID - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldUserID) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldUserID) } // SetGroupID sets the GroupID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetGroupID(groupID *string) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetGroupID(groupID *string) { d.GroupID = groupID - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldGroupID) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldGroupID) } // SetCreatedBy sets the CreatedBy field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetCreatedBy(createdBy *string) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetCreatedBy(createdBy *string) { d.CreatedBy = createdBy - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldCreatedBy) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldCreatedBy) } // SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetUpdatedBy(updatedBy *string) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetUpdatedBy(updatedBy *string) { d.UpdatedBy = updatedBy - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldUpdatedBy) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldUpdatedBy) } // SetActions sets the Actions field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetActions(actions *PdfAnnotationActions) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetActions(actions *PdfAnnotationActions) { d.Actions = actions - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldActions) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldActions) } // SetColor sets the Color field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetColor(color *DocAnnotationsList200ResponseAnnotationsItemPolylineColor) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetColor(color *DocAnnotationsList200ResponseAnnotationsItemPolygonColor) { d.Color = color - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldColor) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldColor) } // SetOpacity sets the Opacity field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetOpacity(opacity float64) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetOpacity(opacity float64) { d.Opacity = opacity - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldOpacity) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldOpacity) } // SetStrokeWidth sets the StrokeWidth field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetStrokeWidth(strokeWidth float64) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetStrokeWidth(strokeWidth float64) { d.StrokeWidth = strokeWidth - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldStrokeWidth) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldStrokeWidth) } // SetBorderStyle sets the BorderStyle field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetBorderStyle(borderStyle DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetBorderStyle(borderStyle DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle) { d.BorderStyle = borderStyle - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldBorderStyle) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldBorderStyle) } // SetDashArray sets the DashArray field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetDashArray(dashArray []float64) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetDashArray(dashArray []float64) { d.DashArray = dashArray - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldDashArray) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldDashArray) } // SetInteriorColor sets the InteriorColor field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetInteriorColor(interiorColor *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetInteriorColor(interiorColor *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor) { d.InteriorColor = interiorColor - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldInteriorColor) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldInteriorColor) } // SetVertices sets the Vertices field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetVertices(vertices []*DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetVertices(vertices []*DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem) { d.Vertices = vertices - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldVertices) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldVertices) } // SetRotation sets the Rotation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetRotation(rotation *float64) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetRotation(rotation *float64) { d.Rotation = rotation - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldRotation) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldRotation) } -// SetLineEndings sets the LineEndings field and marks it as non-optional; +// SetCloudyIntensity sets the CloudyIntensity field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetLineEndings(lineEndings *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings) { - d.LineEndings = lineEndings - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldLineEndings) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) SetCloudyIntensity(cloudyIntensity *float64) { + d.CloudyIntensity = cloudyIntensity + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFieldCloudyIntensity) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) UnmarshalJSON(data []byte) error { - type embed DocAnnotationsList200ResponseAnnotationsItemPolyline +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) UnmarshalJSON(data []byte) error { + type embed DocAnnotationsList200ResponseAnnotationsItemPolygon var unmarshaler = struct { embed Created *internal.DateTime `json:"created,omitempty"` @@ -31733,7 +31945,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) UnmarshalJSON(dat if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemPolyline(unmarshaler.embed) + *d = DocAnnotationsList200ResponseAnnotationsItemPolygon(unmarshaler.embed) d.Created = unmarshaler.Created.TimePtr() d.Modified = unmarshaler.Modified.TimePtr() extraProperties, err := internal.ExtractExtraProperties(data, *d) @@ -31745,8 +31957,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) UnmarshalJSON(dat return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemPolyline +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolygon var marshaler = struct { embed Created *internal.DateTime `json:"created,omitempty"` @@ -31760,7 +31972,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) MarshalJSON() ([] return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygon) String() string { if d == nil { return "" } @@ -31775,105 +31987,305 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) String() string { return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode string +type DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode string const ( - DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeNormal DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode = "normal" - DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeMultiply DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode = "multiply" - DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeScreen DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode = "screen" - DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeOverlay DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode = "overlay" - DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeDarken DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode = "darken" - DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeLighten DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode = "lighten" - DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeColorDodge DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode = "color-dodge" - DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeColorBurn DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode = "color-burn" - DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeHardLight DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode = "hard-light" - DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeSoftLight DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode = "soft-light" - DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeDifference DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode = "difference" - DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeExclusion DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode = "exclusion" - DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeHue DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode = "hue" - DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeSaturation DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode = "saturation" - DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeColor DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode = "color" - DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeLuminosity DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode = "luminosity" + DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeNormal DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode = "normal" + DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeMultiply DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode = "multiply" + DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeScreen DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode = "screen" + DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeOverlay DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode = "overlay" + DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeDarken DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode = "darken" + DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeLighten DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode = "lighten" + DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeColorDodge DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode = "color-dodge" + DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeColorBurn DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode = "color-burn" + DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeHardLight DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode = "hard-light" + DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeSoftLight DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode = "soft-light" + DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeDifference DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode = "difference" + DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeExclusion DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode = "exclusion" + DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeHue DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode = "hue" + DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeSaturation DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode = "saturation" + DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeColor DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode = "color" + DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeLuminosity DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode = "luminosity" ) -func NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode, error) { +func NewDocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode, error) { switch s { case "normal": - return DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeNormal, nil + return DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeNormal, nil case "multiply": - return DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeMultiply, nil + return DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeMultiply, nil case "screen": - return DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeScreen, nil + return DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeScreen, nil case "overlay": - return DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeOverlay, nil + return DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeOverlay, nil case "darken": - return DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeDarken, nil + return DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeDarken, nil case "lighten": - return DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeLighten, nil + return DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeLighten, nil case "color-dodge": - return DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeColorDodge, nil + return DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeColorDodge, nil case "color-burn": - return DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeColorBurn, nil + return DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeColorBurn, nil case "hard-light": - return DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeHardLight, nil + return DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeHardLight, nil case "soft-light": - return DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeSoftLight, nil + return DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeSoftLight, nil case "difference": - return DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeDifference, nil + return DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeDifference, nil case "exclusion": - return DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeExclusion, nil + return DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeExclusion, nil case "hue": - return DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeHue, nil + return DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeHue, nil case "saturation": - return DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeSaturation, nil + return DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeSaturation, nil case "color": - return DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeColor, nil + return DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeColor, nil case "luminosity": - return DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeLuminosity, nil + return DocAnnotationsList200ResponseAnnotationsItemPolygonBlendModeLuminosity, nil } - var t DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode + var t DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode { +func (d DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode { return &d } -type DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle string +type DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle string const ( - DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyleSolid DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle = "solid" - DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyleDashed DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle = "dashed" - DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyleBeveled DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle = "beveled" - DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyleInset DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle = "inset" + DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyleSolid DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle = "solid" + DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyleDashed DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle = "dashed" + DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyleBeveled DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle = "beveled" + DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyleInset DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle = "inset" ) -func NewDocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyleFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle, error) { +func NewDocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyleFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle, error) { switch s { case "solid": - return DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyleSolid, nil + return DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyleSolid, nil case "dashed": - return DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyleDashed, nil + return DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyleDashed, nil case "beveled": - return DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyleBeveled, nil + return DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyleBeveled, nil case "inset": - return DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyleInset, nil + return DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyleInset, nil } - var t DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle + var t DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle { +func (d DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle { return &d } var ( - docAnnotationsList200ResponseAnnotationsItemPolylineColorFieldR = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemPolylineColorFieldG = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemPolylineColorFieldB = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolygonCaptionFieldEnabled = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolygonCaptionFieldCenter = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemPolylineColor struct { +type DocAnnotationsList200ResponseAnnotationsItemPolygonCaption struct { + Enabled bool `json:"enabled" url:"enabled"` + Center *DocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter `json:"center,omitempty" url:"center,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonCaption) GetEnabled() bool { + if d == nil { + return false + } + return d.Enabled +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonCaption) GetCenter() *DocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter { + if d == nil { + return nil + } + return d.Center +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonCaption) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonCaption) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetEnabled sets the Enabled field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonCaption) SetEnabled(enabled bool) { + d.Enabled = enabled + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonCaptionFieldEnabled) +} + +// SetCenter sets the Center field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonCaption) SetCenter(center *DocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter) { + d.Center = center + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonCaptionFieldCenter) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonCaption) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonCaption + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemPolygonCaption(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonCaption) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolygonCaption + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonCaption) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenterFieldX = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenterFieldY = big.NewInt(1 << 1) +) + +type DocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter) GetX() float64 { + if d == nil { + return 0 + } + return d.X +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter) GetY() float64 { + if d == nil { + return 0 + } + return d.Y +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetX sets the X field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter) SetX(x float64) { + d.X = x + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenterFieldX) +} + +// SetY sets the Y field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter) SetY(y float64) { + d.Y = y + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenterFieldY) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsList200ResponseAnnotationsItemPolygonColorFieldR = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolygonColorFieldG = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolygonColorFieldB = big.NewInt(1 << 2) +) + +type DocAnnotationsList200ResponseAnnotationsItemPolygonColor struct { R int `json:"r" url:"r"` G int `json:"g" url:"g"` B int `json:"b" url:"b"` @@ -31885,35 +32297,35 @@ type DocAnnotationsList200ResponseAnnotationsItemPolylineColor struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineColor) GetR() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonColor) GetR() int { if d == nil { return 0 } return d.R } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineColor) GetG() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonColor) GetG() int { if d == nil { return 0 } return d.G } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineColor) GetB() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonColor) GetB() int { if d == nil { return 0 } return d.B } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonColor) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineColor) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonColor) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -31922,32 +32334,32 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineColor) require(fiel // SetR sets the R field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineColor) SetR(r int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonColor) SetR(r int) { d.R = r - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineColorFieldR) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonColorFieldR) } // SetG sets the G field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineColor) SetG(g int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonColor) SetG(g int) { d.G = g - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineColorFieldG) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonColorFieldG) } // SetB sets the B field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineColor) SetB(b int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonColor) SetB(b int) { d.B = b - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineColorFieldB) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonColorFieldB) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineColor +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonColor var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemPolylineColor(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolygonColor(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -31957,8 +32369,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineColor) UnmarshalJSO return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemPolylineColor +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolygonColor var marshaler = struct { embed }{ @@ -31968,7 +32380,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineColor) MarshalJSON( return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineColor) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonColor) String() string { if d == nil { return "" } @@ -31984,19 +32396,19 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineColor) String() str } var ( - docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldInvisible = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldHidden = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldPrint = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldNoZoom = big.NewInt(1 << 3) - docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldNoRotate = big.NewInt(1 << 4) - docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldNoView = big.NewInt(1 << 5) - docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldReadOnly = big.NewInt(1 << 6) - docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldLocked = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldToggleNoView = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldLockedContents = big.NewInt(1 << 9) + docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldInvisible = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldHidden = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldPrint = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldNoZoom = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldNoRotate = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldNoView = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldReadOnly = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldLocked = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldToggleNoView = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldLockedContents = big.NewInt(1 << 9) ) -type DocAnnotationsList200ResponseAnnotationsItemPolylineFlags struct { +type DocAnnotationsList200ResponseAnnotationsItemPolygonFlags struct { Invisible bool `json:"invisible" url:"invisible"` Hidden bool `json:"hidden" url:"hidden"` Print bool `json:"print" url:"print"` @@ -32015,84 +32427,84 @@ type DocAnnotationsList200ResponseAnnotationsItemPolylineFlags struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) GetInvisible() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) GetInvisible() bool { if d == nil { return false } return d.Invisible } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) GetHidden() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) GetHidden() bool { if d == nil { return false } return d.Hidden } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) GetPrint() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) GetPrint() bool { if d == nil { return false } return d.Print } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) GetNoZoom() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) GetNoZoom() bool { if d == nil { return false } return d.NoZoom } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) GetNoRotate() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) GetNoRotate() bool { if d == nil { return false } return d.NoRotate } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) GetNoView() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) GetNoView() bool { if d == nil { return false } return d.NoView } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) GetReadOnly() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) GetReadOnly() bool { if d == nil { return false } return d.ReadOnly } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) GetLocked() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) GetLocked() bool { if d == nil { return false } return d.Locked } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) GetToggleNoView() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) GetToggleNoView() bool { if d == nil { return false } return d.ToggleNoView } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) GetLockedContents() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) GetLockedContents() bool { if d == nil { return false } return d.LockedContents } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -32101,81 +32513,81 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) require(fiel // SetInvisible sets the Invisible field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) SetInvisible(invisible bool) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) SetInvisible(invisible bool) { d.Invisible = invisible - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldInvisible) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldInvisible) } // SetHidden sets the Hidden field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) SetHidden(hidden bool) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) SetHidden(hidden bool) { d.Hidden = hidden - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldHidden) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldHidden) } // SetPrint sets the Print field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) SetPrint(print bool) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) SetPrint(print bool) { d.Print = print - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldPrint) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldPrint) } // SetNoZoom sets the NoZoom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) SetNoZoom(noZoom bool) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) SetNoZoom(noZoom bool) { d.NoZoom = noZoom - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldNoZoom) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldNoZoom) } // SetNoRotate sets the NoRotate field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) SetNoRotate(noRotate bool) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) SetNoRotate(noRotate bool) { d.NoRotate = noRotate - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldNoRotate) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldNoRotate) } // SetNoView sets the NoView field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) SetNoView(noView bool) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) SetNoView(noView bool) { d.NoView = noView - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldNoView) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldNoView) } // SetReadOnly sets the ReadOnly field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) SetReadOnly(readOnly bool) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) SetReadOnly(readOnly bool) { d.ReadOnly = readOnly - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldReadOnly) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldReadOnly) } // SetLocked sets the Locked field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) SetLocked(locked bool) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) SetLocked(locked bool) { d.Locked = locked - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldLocked) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldLocked) } // SetToggleNoView sets the ToggleNoView field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) SetToggleNoView(toggleNoView bool) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) SetToggleNoView(toggleNoView bool) { d.ToggleNoView = toggleNoView - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldToggleNoView) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldToggleNoView) } // SetLockedContents sets the LockedContents field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) SetLockedContents(lockedContents bool) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) SetLockedContents(lockedContents bool) { d.LockedContents = lockedContents - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldLockedContents) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonFlagsFieldLockedContents) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineFlags +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonFlags var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemPolylineFlags(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolygonFlags(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -32185,8 +32597,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) UnmarshalJSO return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemPolylineFlags +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolygonFlags var marshaler = struct { embed }{ @@ -32196,7 +32608,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) MarshalJSON( return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags) String() string { if d == nil { return "" } @@ -32211,66 +32623,66 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) String() str return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQuality string +type DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQuality string const ( - DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQualityDurable DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQuality = "durable" - DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQualityWeak DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQuality = "weak" + DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQualityDurable DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQuality = "durable" + DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQualityWeak DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQuality = "weak" ) -func NewDocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQualityFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQuality, error) { +func NewDocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQualityFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQuality, error) { switch s { case "durable": - return DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQualityDurable, nil + return DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQualityDurable, nil case "weak": - return DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQualityWeak, nil + return DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQualityWeak, nil } - var t DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQuality + var t DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQuality return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQuality) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQuality { +func (d DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQuality) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQuality { return &d } -type DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo struct { +type DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo struct { Kind string - ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber - Nm *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm - Index *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex + ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber + Nm *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm + Index *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo) GetKind() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber { if d == nil { return nil } return d.ObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo) GetNm() *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo) GetNm() *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex { if d == nil { return nil } return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo) UnmarshalJSON(data []byte) error { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -32283,19 +32695,19 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo) Unmarsha } switch unmarshaler.Kind { case "objectNumber": - value := new(DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber) + value := new(DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber) if err := json.Unmarshal(data, &value); err != nil { return err } d.ObjectNumber = value case "nm": - value := new(DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm) + value := new(DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm) if err := json.Unmarshal(data, &value); err != nil { return err } d.Nm = value case "index": - value := new(DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex) + value := new(DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -32305,7 +32717,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo) Unmarsha return nil } -func (d DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -32324,13 +32736,13 @@ func (d DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo) MarshalJS return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToVisitor interface { - VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber) error - VisitNm(*DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm) error - VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex) error +type DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber) error + VisitNm(*DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm) error + VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex) error } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToVisitor) error { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToVisitor) error { if d.ObjectNumber != nil { return visitor.VisitObjectNumber(d.ObjectNumber) } @@ -32343,7 +32755,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo) Accept(v return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo) validate() error { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -32384,15 +32796,15 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo) validate } var ( - docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -32401,35 +32813,35 @@ type DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex) GetIndex() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision { if d == nil { return nil } return d.Revision } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -32438,32 +32850,32 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex) req // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex) SetIndex(index int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex) SetIndex(index int) { d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexFieldIndex) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexFieldIndex) } // SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision) { d.Revision = revision - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexFieldRevision) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexFieldRevision) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -32473,8 +32885,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex) Unm return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex var marshaler = struct { embed }{ @@ -32484,7 +32896,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex) Mar return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex) String() string { if d == nil { return "" } @@ -32500,12 +32912,12 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex) Str } var ( - docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision struct { +type DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision struct { DocSessionID string `json:"docSessionId" url:"docSessionId"` PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Generation int `json:"generation" url:"generation"` @@ -32517,35 +32929,35 @@ type DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision) GetDocSessionID() string { if d == nil { return "" } return d.DocSessionID } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision) GetGeneration() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision) GetGeneration() int { if d == nil { return 0 } return d.Generation } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -32554,32 +32966,32 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevis // SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision) SetDocSessionID(docSessionID string) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision) SetDocSessionID(docSessionID string) { d.DocSessionID = docSessionID - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevisionFieldDocSessionID) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevisionFieldDocSessionID) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevisionFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevisionFieldPageObjectNumber) } // SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision) SetGeneration(generation int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision) SetGeneration(generation int) { d.Generation = generation - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevisionFieldGeneration) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevisionFieldGeneration) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -32589,8 +33001,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevis return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision var marshaler = struct { embed }{ @@ -32600,7 +33012,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevis return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision) String() string { if d == nil { return "" } @@ -32616,11 +33028,11 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevis } var ( - docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNmFieldNm = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm struct { +type DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Nm string `json:"nm" url:"nm"` @@ -32631,28 +33043,28 @@ type DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm) GetNm() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm) GetNm() string { if d == nil { return "" } return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -32661,25 +33073,25 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm) requir // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNmFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNmFieldPageObjectNumber) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm) SetNm(nm string) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm) SetNm(nm string) { d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNmFieldNm) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNmFieldNm) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -32689,8 +33101,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm) Unmars return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm var marshaler = struct { embed }{ @@ -32700,7 +33112,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm) Marsha return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm) String() string { if d == nil { return "" } @@ -32716,11 +33128,11 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm) String } var ( - docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber struct { +type DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` @@ -32731,28 +33143,28 @@ type DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber s rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } return d.AnnotObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -32761,25 +33173,25 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumb // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumberFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumberFieldPageObjectNumber) } // SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumberFieldAnnotObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -32789,8 +33201,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumb return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber var marshaler = struct { embed }{ @@ -32800,7 +33212,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumb return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber) String() string { if d == nil { return "" } @@ -32815,13 +33227,35 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumb return fmt.Sprintf("%#v", d) } +type DocAnnotationsList200ResponseAnnotationsItemPolygonIntent string + +const ( + DocAnnotationsList200ResponseAnnotationsItemPolygonIntentPolygonCloud DocAnnotationsList200ResponseAnnotationsItemPolygonIntent = "PolygonCloud" + DocAnnotationsList200ResponseAnnotationsItemPolygonIntentPolygonDimension DocAnnotationsList200ResponseAnnotationsItemPolygonIntent = "PolygonDimension" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemPolygonIntentFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolygonIntent, error) { + switch s { + case "PolygonCloud": + return DocAnnotationsList200ResponseAnnotationsItemPolygonIntentPolygonCloud, nil + case "PolygonDimension": + return DocAnnotationsList200ResponseAnnotationsItemPolygonIntentPolygonDimension, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemPolygonIntent + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemPolygonIntent) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolygonIntent { + return &d +} + var ( - docAnnotationsList200ResponseAnnotationsItemPolylineInteriorColorFieldR = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemPolylineInteriorColorFieldG = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemPolylineInteriorColorFieldB = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolygonInteriorColorFieldR = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolygonInteriorColorFieldG = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolygonInteriorColorFieldB = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor struct { +type DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor struct { R int `json:"r" url:"r"` G int `json:"g" url:"g"` B int `json:"b" url:"b"` @@ -32833,35 +33267,35 @@ type DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor) GetR() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor) GetR() int { if d == nil { return 0 } return d.R } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor) GetG() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor) GetG() int { if d == nil { return 0 } return d.G } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor) GetB() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor) GetB() int { if d == nil { return 0 } return d.B } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -32870,32 +33304,32 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor) requ // SetR sets the R field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor) SetR(r int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor) SetR(r int) { d.R = r - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineInteriorColorFieldR) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonInteriorColorFieldR) } // SetG sets the G field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor) SetG(g int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor) SetG(g int) { d.G = g - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineInteriorColorFieldG) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonInteriorColorFieldG) } // SetB sets the B field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor) SetB(b int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor) SetB(b int) { d.B = b - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineInteriorColorFieldB) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonInteriorColorFieldB) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -32905,8 +33339,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor) Unma return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor var marshaler = struct { embed }{ @@ -32916,7 +33350,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor) Mars return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor) String() string { if d == nil { return "" } @@ -32931,71 +33365,186 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor) Stri return fmt.Sprintf("%#v", d) } -var ( - docAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsFieldStart = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsFieldEnd = big.NewInt(1 << 1) -) +type DocAnnotationsList200ResponseAnnotationsItemPolygonMeasure struct { + Subtype string + Rl *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl + Geo *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureGeo + Unknown *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureUnknown -type DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings struct { - Start DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart `json:"start" url:"start"` - End DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd `json:"end" url:"end"` + rawJSON json.RawMessage +} - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasure) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasure) GetRl() *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl { + if d == nil { + return nil + } + return d.Rl } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings) GetStart() DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasure) GetGeo() *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureGeo { if d == nil { - return "" + return nil } - return d.Start + return d.Geo } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings) GetEnd() DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasure) GetUnknown() *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureUnknown { if d == nil { - return "" + return nil } - return d.End + return d.Unknown } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasure) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Subtype string `json:"subtype"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Subtype = unmarshaler.Subtype + if unmarshaler.Subtype == "" { + return fmt.Errorf("%T did not include discriminant subtype", d) + } + switch unmarshaler.Subtype { + case "RL": + value := new(DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Rl = value + case "GEO": + value := new(DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureGeo) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Geo = value + case "unknown": + value := new(DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureUnknown) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Unknown = value + } + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d DocAnnotationsList200ResponseAnnotationsItemPolygonMeasure) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err + } + if d.Rl != nil { + return internal.MarshalJSONWithExtraProperty(d.Rl, "subtype", "RL") + } + if d.Geo != nil { + return internal.MarshalJSONWithExtraProperty(d.Geo, "subtype", "GEO") + } + if d.Unknown != nil { + return internal.MarshalJSONWithExtraProperty(d.Unknown, "subtype", "unknown") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +} + +type DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureVisitor interface { + VisitRl(*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl) error + VisitGeo(*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureGeo) error + VisitUnknown(*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureUnknown) error +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasure) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureVisitor) error { + if d.Rl != nil { + return visitor.VisitRl(d.Rl) + } + if d.Geo != nil { + return visitor.VisitGeo(d.Geo) + } + if d.Unknown != nil { + return visitor.VisitUnknown(d.Unknown) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasure) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.Rl != nil { + fields = append(fields, "RL") + } + if d.Geo != nil { + fields = append(fields, "GEO") + } + if d.Unknown != nil { + fields = append(fields, "unknown") + } + if len(fields) == 0 { + if d.Subtype != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Subtype) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Subtype != "" { + field := fields[0] + if d.Subtype != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Subtype, + d, + ) + } + } + return nil +} + +type DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureGeo struct { + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureGeo) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureGeo) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetStart sets the Start field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings) SetStart(start DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart) { - d.Start = start - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsFieldStart) -} - -// SetEnd sets the End field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings) SetEnd(end DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd) { - d.End = end - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsFieldEnd) -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureGeo) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureGeo var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureGeo(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -33005,8 +33554,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings) Unmars return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureGeo) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureGeo var marshaler = struct { embed }{ @@ -33016,7 +33565,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings) Marsha return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureGeo) String() string { if d == nil { return "" } @@ -33031,195 +33580,183 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings) String return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd string - -const ( - DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndNone DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd = "none" - DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndSquare DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd = "square" - DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndCircle DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd = "circle" - DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndDiamond DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd = "diamond" - DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndOpenArrow DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd = "open-arrow" - DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndClosedArrow DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd = "closed-arrow" - DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndButt DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd = "butt" - DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndROpenArrow DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd = "r-open-arrow" - DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndRClosedArrow DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd = "r-closed-arrow" - DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndSlash DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd = "slash" +var ( + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlFieldRatio = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlFieldX = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlFieldY = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlFieldDistance = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlFieldArea = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlFieldAngle = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlFieldSlope = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlFieldOrigin = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlFieldCyx = big.NewInt(1 << 8) ) -func NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd, error) { - switch s { - case "none": - return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndNone, nil - case "square": - return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndSquare, nil - case "circle": - return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndCircle, nil - case "diamond": - return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndDiamond, nil - case "open-arrow": - return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndOpenArrow, nil - case "closed-arrow": - return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndClosedArrow, nil - case "butt": - return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndButt, nil - case "r-open-arrow": - return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndROpenArrow, nil - case "r-closed-arrow": - return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndRClosedArrow, nil - case "slash": - return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndSlash, nil - } - var t DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd - return "", fmt.Errorf("%s is not a valid %T", s, t) -} +type DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl struct { + Ratio *string `json:"ratio,omitempty" url:"ratio,omitempty"` + X []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem `json:"x" url:"x"` + Y []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem `json:"y,omitempty" url:"y,omitempty"` + Distance []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem `json:"distance" url:"distance"` + Area []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem `json:"area" url:"area"` + Angle []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem `json:"angle,omitempty" url:"angle,omitempty"` + Slope []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem `json:"slope,omitempty" url:"slope,omitempty"` + Origin *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin `json:"origin,omitempty" url:"origin,omitempty"` + Cyx *float64 `json:"cyx,omitempty" url:"cyx,omitempty"` -func (d DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd { - return &d -} + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` -type DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart string + extraProperties map[string]interface{} + rawJSON json.RawMessage +} -const ( - DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartNone DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart = "none" - DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartSquare DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart = "square" - DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartCircle DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart = "circle" - DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartDiamond DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart = "diamond" - DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartOpenArrow DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart = "open-arrow" - DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartClosedArrow DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart = "closed-arrow" - DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartButt DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart = "butt" - DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartROpenArrow DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart = "r-open-arrow" - DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartRClosedArrow DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart = "r-closed-arrow" - DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartSlash DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart = "slash" -) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl) GetRatio() *string { + if d == nil { + return nil + } + return d.Ratio +} -func NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart, error) { - switch s { - case "none": - return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartNone, nil - case "square": - return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartSquare, nil - case "circle": - return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartCircle, nil - case "diamond": - return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartDiamond, nil - case "open-arrow": - return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartOpenArrow, nil - case "closed-arrow": - return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartClosedArrow, nil - case "butt": - return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartButt, nil - case "r-open-arrow": - return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartROpenArrow, nil - case "r-closed-arrow": - return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartRClosedArrow, nil - case "slash": - return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartSlash, nil +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl) GetX() []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem { + if d == nil { + return nil } - var t DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart - return "", fmt.Errorf("%s is not a valid %T", s, t) + return d.X } -func (d DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart { - return &d +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl) GetY() []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem { + if d == nil { + return nil + } + return d.Y } -var ( - docAnnotationsList200ResponseAnnotationsItemPolylineRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemPolylineRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemPolylineRectFieldRight = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemPolylineRectFieldTop = big.NewInt(1 << 3) -) - -type DocAnnotationsList200ResponseAnnotationsItemPolylineRect struct { - Left float64 `json:"left" url:"left"` - Bottom float64 `json:"bottom" url:"bottom"` - Right float64 `json:"right" url:"right"` - Top float64 `json:"top" url:"top"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl) GetDistance() []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem { + if d == nil { + return nil + } + return d.Distance +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl) GetArea() []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem { + if d == nil { + return nil + } + return d.Area } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRect) GetLeft() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl) GetAngle() []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem { if d == nil { - return 0 + return nil } - return d.Left + return d.Angle } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRect) GetBottom() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl) GetSlope() []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem { if d == nil { - return 0 + return nil } - return d.Bottom + return d.Slope } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRect) GetRight() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl) GetOrigin() *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin { if d == nil { - return 0 + return nil } - return d.Right + return d.Origin } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRect) GetTop() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl) GetCyx() *float64 { if d == nil { - return 0 + return nil } - return d.Top + return d.Cyx } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRect) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRect) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetLeft sets the Left field and marks it as non-optional; +// SetRatio sets the Ratio field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRect) SetLeft(left float64) { - d.Left = left - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineRectFieldLeft) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl) SetRatio(ratio *string) { + d.Ratio = ratio + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlFieldRatio) } -// SetBottom sets the Bottom field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRect) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineRectFieldBottom) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl) SetX(x []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem) { + d.X = x + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlFieldX) } -// SetRight sets the Right field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRect) SetRight(right float64) { - d.Right = right - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineRectFieldRight) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl) SetY(y []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem) { + d.Y = y + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlFieldY) } -// SetTop sets the Top field and marks it as non-optional; +// SetDistance sets the Distance field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRect) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineRectFieldTop) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl) SetDistance(distance []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem) { + d.Distance = distance + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlFieldDistance) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineRect +// SetArea sets the Area field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl) SetArea(area []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem) { + d.Area = area + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlFieldArea) +} + +// SetAngle sets the Angle field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl) SetAngle(angle []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem) { + d.Angle = angle + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlFieldAngle) +} + +// SetSlope sets the Slope field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl) SetSlope(slope []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem) { + d.Slope = slope + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlFieldSlope) +} + +// SetOrigin sets the Origin field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl) SetOrigin(origin *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin) { + d.Origin = origin + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlFieldOrigin) +} + +// SetCyx sets the Cyx field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl) SetCyx(cyx *float64) { + d.Cyx = cyx + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlFieldCyx) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemPolylineRect(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -33229,8 +33766,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRect) UnmarshalJSON return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemPolylineRect +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl var marshaler = struct { embed }{ @@ -33240,7 +33777,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRect) MarshalJSON() return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRect) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl) String() string { if d == nil { return "" } @@ -33255,237 +33792,199 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRect) String() stri return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemPolylineRef struct { - Kind string - ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber - Nm *DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm - Index *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex +var ( + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFieldLabelPosition = big.NewInt(1 << 9) +) - rawJSON json.RawMessage +type DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRef) GetKind() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem) GetUnit() string { if d == nil { return "" } - return d.Kind + return d.Unit } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRef) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem) GetConversion() *float64 { if d == nil { return nil } - return d.ObjectNumber + return d.Conversion } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRef) GetNm() *DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem) GetFraction() *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFraction { if d == nil { return nil } - return d.Nm + return d.Fraction } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRef) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem) GetPrecision() *int { if d == nil { return nil } - return d.Index -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRef) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Nm = value - case "index": - value := new(DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Index = value - } - d.rawJSON = json.RawMessage(data) - return nil + return d.Precision } -func (d DocAnnotationsList200ResponseAnnotationsItemPolylineRef) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Nm != nil { - return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") - } - if d.Index != nil { - return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem) GetFixed() *bool { + if d == nil { + return nil } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) + return d.Fixed } -type DocAnnotationsList200ResponseAnnotationsItemPolylineRefVisitor interface { - VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber) error - VisitNm(*DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm) error - VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex) error -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRef) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemPolylineRefVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) - } - if d.Nm != nil { - return visitor.VisitNm(d.Nm) - } - if d.Index != nil { - return visitor.VisitIndex(d.Index) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem) GetThousands() *string { + if d == nil { + return nil } - return fmt.Errorf("type %T does not define a non-empty union type", d) + return d.Thousands } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRef) validate() error { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem) GetDecimal() *string { if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Nm != nil { - fields = append(fields, "nm") - } - if d.Index != nil { - fields = append(fields, "index") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } + return nil } - return nil -} - -var ( - docAnnotationsList200ResponseAnnotationsItemPolylineRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemPolylineRefIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemPolylineRefIndexFieldRevision = big.NewInt(1 << 2) -) - -type DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision `json:"revision" url:"revision"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage + return d.Decimal } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem) GetPrefixSpacing() *string { if d == nil { - return 0 + return nil } - return d.PageObjectNumber + return d.PrefixSpacing } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex) GetIndex() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem) GetSuffixSpacing() *string { if d == nil { - return 0 + return nil } - return d.Index + return d.SuffixSpacing } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem) GetLabelPosition() *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemLabelPosition { if d == nil { return nil } - return d.Revision + return d.LabelPosition } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineRefIndexFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFieldUnit) } -// SetIndex sets the Index field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineRefIndexFieldIndex) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFieldConversion) } -// SetRevision sets the Revision field and marks it as non-optional; +// SetFraction sets the Fraction field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision) { - d.Revision = revision - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineRefIndexFieldRevision) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem) SetFraction(fraction *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFieldFraction) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFieldPrecision) +} + +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem) SetLabelPosition(labelPosition *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFieldLabelPosition) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -33495,8 +33994,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex) Unmarshal return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem var marshaler = struct { embed }{ @@ -33506,7 +34005,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex) MarshalJS return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem) String() string { if d == nil { return "" } @@ -33521,16 +34020,80 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex) String() return fmt.Sprintf("%#v", d) } +type DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFraction string + +const ( + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFractionDecimal DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFraction = "decimal" + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFractionFraction DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFraction = "fraction" + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFractionRound DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFraction = "round" + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFractionTruncate DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFraction = "truncate" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFractionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFraction, error) { + switch s { + case "decimal": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFractionDecimal, nil + case "fraction": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFractionFraction, nil + case "round": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFractionRound, nil + case "truncate": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFractionTruncate, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFraction) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFraction { + return &d +} + +type DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemLabelPosition string + +const ( + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemLabelPositionSuffix DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemLabelPosition = "suffix" + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemLabelPositionPrefix DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemLabelPosition = "prefix" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemLabelPositionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemLabelPosition, error) { + switch s { + case "suffix": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemLabelPositionPrefix, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemLabelPosition) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemLabelPosition { + return &d +} + var ( - docAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFieldLabelPosition = big.NewInt(1 << 9) ) -type DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -33539,169 +34102,167 @@ type DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision struct rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem) GetUnit() string { if d == nil { return "" } - return d.DocSessionID + return d.Unit } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem) GetConversion() *float64 { if d == nil { - return 0 + return nil } - return d.PageObjectNumber + return d.Conversion } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision) GetGeneration() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem) GetFraction() *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFraction { if d == nil { - return 0 + return nil } - return d.Generation + return d.Fraction } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem) GetPrecision() *int { if d == nil { return nil } - return d.extraProperties + return d.Precision } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem) GetFixed() *bool { + if d == nil { + return nil } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevisionFieldDocSessionID) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevisionFieldPageObjectNumber) -} - -// SetGeneration sets the Generation field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevisionFieldGeneration) + return d.Fixed } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem) GetThousands() *string { + if d == nil { + return nil } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil + return d.Thousands } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem) GetDecimal() *string { + if d == nil { + return nil } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return d.Decimal } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem) GetPrefixSpacing() *string { if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value + return nil } - return fmt.Sprintf("%#v", d) -} - -var ( - docAnnotationsList200ResponseAnnotationsItemPolylineRefNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemPolylineRefNmFieldNm = big.NewInt(1 << 1) -) - -type DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage + return d.PrefixSpacing } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem) GetSuffixSpacing() *string { if d == nil { - return 0 + return nil } - return d.PageObjectNumber + return d.SuffixSpacing } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm) GetNm() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem) GetLabelPosition() *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemLabelPosition { if d == nil { - return "" + return nil } - return d.Nm + return d.LabelPosition } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineRefNmFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFieldUnit) } -// SetNm sets the Nm field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineRefNmFieldNm) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFieldConversion) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm +// SetFraction sets the Fraction field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem) SetFraction(fraction *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFieldFraction) +} + +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFieldPrecision) +} + +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem) SetLabelPosition(labelPosition *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFieldLabelPosition) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -33711,8 +34272,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm) UnmarshalJSO return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem var marshaler = struct { embed }{ @@ -33722,7 +34283,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm) MarshalJSON( return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem) String() string { if d == nil { return "" } @@ -33737,14 +34298,80 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm) String() str return fmt.Sprintf("%#v", d) } +type DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFraction string + +const ( + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFractionDecimal DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFraction = "decimal" + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFractionFraction DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFraction = "fraction" + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFractionRound DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFraction = "round" + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFractionTruncate DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFraction = "truncate" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFractionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFraction, error) { + switch s { + case "decimal": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFractionDecimal, nil + case "fraction": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFractionFraction, nil + case "round": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFractionRound, nil + case "truncate": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFractionTruncate, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFraction) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFraction { + return &d +} + +type DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemLabelPosition string + +const ( + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemLabelPositionSuffix DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemLabelPosition = "suffix" + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemLabelPositionPrefix DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemLabelPosition = "prefix" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemLabelPositionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemLabelPosition, error) { + switch s { + case "suffix": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemLabelPositionPrefix, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemLabelPosition) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemLabelPosition { + return &d +} + var ( - docAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFieldLabelPosition = big.NewInt(1 << 9) ) -type DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` +type DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -33753,55 +34380,167 @@ type DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber struct rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem) GetUnit() string { if d == nil { - return 0 + return "" } - return d.PageObjectNumber + return d.Unit } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem) GetConversion() *float64 { if d == nil { - return 0 + return nil } - return d.AnnotObjectNumber + return d.Conversion } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem) GetFraction() *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFraction { if d == nil { return nil } - return d.extraProperties + return d.Fraction } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem) GetPrecision() *int { + if d == nil { + return nil } - d.explicitFields.Or(d.explicitFields, field) + return d.Precision } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumberFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem) GetFixed() *bool { + if d == nil { + return nil + } + return d.Fixed } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumberFieldAnnotObjectNumber) -} +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem) GetThousands() *string { + if d == nil { + return nil + } + return d.Thousands +} -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem) GetDecimal() *string { + if d == nil { + return nil + } + return d.Decimal +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem) GetPrefixSpacing() *string { + if d == nil { + return nil + } + return d.PrefixSpacing +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem) GetSuffixSpacing() *string { + if d == nil { + return nil + } + return d.SuffixSpacing +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem) GetLabelPosition() *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemLabelPosition { + if d == nil { + return nil + } + return d.LabelPosition +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetUnit sets the Unit field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFieldUnit) +} + +// SetConversion sets the Conversion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFieldConversion) +} + +// SetFraction sets the Fraction field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem) SetFraction(fraction *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFieldFraction) +} + +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFieldPrecision) +} + +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem) SetLabelPosition(labelPosition *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFieldLabelPosition) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -33811,8 +34550,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber) Un return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem var marshaler = struct { embed }{ @@ -33822,7 +34561,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber) Ma return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem) String() string { if d == nil { return "" } @@ -33837,34 +34576,62 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber) St return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemPolylineReplyType string +type DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFraction string const ( - DocAnnotationsList200ResponseAnnotationsItemPolylineReplyTypeReply DocAnnotationsList200ResponseAnnotationsItemPolylineReplyType = "reply" - DocAnnotationsList200ResponseAnnotationsItemPolylineReplyTypeGroup DocAnnotationsList200ResponseAnnotationsItemPolylineReplyType = "group" + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFractionDecimal DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFraction = "decimal" + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFractionFraction DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFraction = "fraction" + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFractionRound DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFraction = "round" + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFractionTruncate DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFraction = "truncate" ) -func NewDocAnnotationsList200ResponseAnnotationsItemPolylineReplyTypeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolylineReplyType, error) { +func NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFractionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFraction, error) { switch s { - case "reply": - return DocAnnotationsList200ResponseAnnotationsItemPolylineReplyTypeReply, nil - case "group": - return DocAnnotationsList200ResponseAnnotationsItemPolylineReplyTypeGroup, nil + case "decimal": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFractionDecimal, nil + case "fraction": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFractionFraction, nil + case "round": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFractionRound, nil + case "truncate": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFractionTruncate, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFraction) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFraction { + return &d +} + +type DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemLabelPosition string + +const ( + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemLabelPositionSuffix DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemLabelPosition = "suffix" + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemLabelPositionPrefix DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemLabelPosition = "prefix" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemLabelPositionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemLabelPosition, error) { + switch s { + case "suffix": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemLabelPositionPrefix, nil } - var t DocAnnotationsList200ResponseAnnotationsItemPolylineReplyType + var t DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemLabelPosition return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsList200ResponseAnnotationsItemPolylineReplyType) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolylineReplyType { +func (d DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemLabelPosition) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemLabelPosition { return &d } var ( - docAnnotationsList200ResponseAnnotationsItemPolylineVerticesItemFieldX = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemPolylineVerticesItemFieldY = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOriginFieldX = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOriginFieldY = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem struct { +type DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin struct { X float64 `json:"x" url:"x"` Y float64 `json:"y" url:"y"` @@ -33875,28 +34642,28 @@ type DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem) GetX() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin) GetX() float64 { if d == nil { return 0 } return d.X } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem) GetY() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin) GetY() float64 { if d == nil { return 0 } return d.Y } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -33905,25 +34672,25 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem) requi // SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem) SetX(x float64) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin) SetX(x float64) { d.X = x - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineVerticesItemFieldX) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOriginFieldX) } // SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem) SetY(y float64) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin) SetY(y float64) { d.Y = y - d.require(docAnnotationsList200ResponseAnnotationsItemPolylineVerticesItemFieldY) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOriginFieldY) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -33933,8 +34700,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem) Unmar return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin var marshaler = struct { embed }{ @@ -33944,7 +34711,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem) Marsh return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin) String() string { if d == nil { return "" } @@ -33960,69 +34727,29 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem) Strin } var ( - docAnnotationsList200ResponseAnnotationsItemRedactFieldRef = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemRedactFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemRedactFieldIndex = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemRedactFieldIdentityQuality = big.NewInt(1 << 3) - docAnnotationsList200ResponseAnnotationsItemRedactFieldNm = big.NewInt(1 << 4) - docAnnotationsList200ResponseAnnotationsItemRedactFieldFlags = big.NewInt(1 << 5) - docAnnotationsList200ResponseAnnotationsItemRedactFieldRect = big.NewInt(1 << 6) - docAnnotationsList200ResponseAnnotationsItemRedactFieldContents = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemRedactFieldSubject = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemRedactFieldAuthor = big.NewInt(1 << 9) - docAnnotationsList200ResponseAnnotationsItemRedactFieldCreated = big.NewInt(1 << 10) - docAnnotationsList200ResponseAnnotationsItemRedactFieldModified = big.NewInt(1 << 11) - docAnnotationsList200ResponseAnnotationsItemRedactFieldBlendMode = big.NewInt(1 << 12) - docAnnotationsList200ResponseAnnotationsItemRedactFieldInReplyTo = big.NewInt(1 << 13) - docAnnotationsList200ResponseAnnotationsItemRedactFieldReplyType = big.NewInt(1 << 14) - docAnnotationsList200ResponseAnnotationsItemRedactFieldUserID = big.NewInt(1 << 15) - docAnnotationsList200ResponseAnnotationsItemRedactFieldGroupID = big.NewInt(1 << 16) - docAnnotationsList200ResponseAnnotationsItemRedactFieldCreatedBy = big.NewInt(1 << 17) - docAnnotationsList200ResponseAnnotationsItemRedactFieldUpdatedBy = big.NewInt(1 << 18) - docAnnotationsList200ResponseAnnotationsItemRedactFieldActions = big.NewInt(1 << 19) - docAnnotationsList200ResponseAnnotationsItemRedactFieldQuadPoints = big.NewInt(1 << 20) - docAnnotationsList200ResponseAnnotationsItemRedactFieldColor = big.NewInt(1 << 21) - docAnnotationsList200ResponseAnnotationsItemRedactFieldOpacity = big.NewInt(1 << 22) - docAnnotationsList200ResponseAnnotationsItemRedactFieldInteriorColor = big.NewInt(1 << 23) - docAnnotationsList200ResponseAnnotationsItemRedactFieldOverlayText = big.NewInt(1 << 24) - docAnnotationsList200ResponseAnnotationsItemRedactFieldRepeat = big.NewInt(1 << 25) - docAnnotationsList200ResponseAnnotationsItemRedactFieldFontFamily = big.NewInt(1 << 26) - docAnnotationsList200ResponseAnnotationsItemRedactFieldFontSize = big.NewInt(1 << 27) - docAnnotationsList200ResponseAnnotationsItemRedactFieldFontColor = big.NewInt(1 << 28) - docAnnotationsList200ResponseAnnotationsItemRedactFieldTextAlign = big.NewInt(1 << 29) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFieldLabelPosition = big.NewInt(1 << 9) ) -type DocAnnotationsList200ResponseAnnotationsItemRedact struct { - Ref *DocAnnotationsList200ResponseAnnotationsItemRedactRef `json:"ref" url:"ref"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - IdentityQuality DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQuality `json:"identityQuality" url:"identityQuality"` - Nm *string `json:"nm,omitempty" url:"nm,omitempty"` - Flags *DocAnnotationsList200ResponseAnnotationsItemRedactFlags `json:"flags" url:"flags"` - Rect *DocAnnotationsList200ResponseAnnotationsItemRedactRect `json:"rect" url:"rect"` - Contents *string `json:"contents,omitempty" url:"contents,omitempty"` - Subject *string `json:"subject,omitempty" url:"subject,omitempty"` - Author *string `json:"author,omitempty" url:"author,omitempty"` - Created *time.Time `json:"created,omitempty" url:"created,omitempty"` - Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` - BlendMode DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode `json:"blendMode" url:"blendMode"` - InReplyTo *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` - ReplyType *DocAnnotationsList200ResponseAnnotationsItemRedactReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` - UserID *string `json:"userId,omitempty" url:"userId,omitempty"` - GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` - CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` - Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` - QuadPoints []*DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem `json:"quadPoints" url:"quadPoints"` - Color *DocAnnotationsList200ResponseAnnotationsItemRedactColor `json:"color" url:"color"` - Opacity float64 `json:"opacity" url:"opacity"` - InteriorColor *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor `json:"interiorColor,omitempty" url:"interiorColor,omitempty"` - OverlayText *string `json:"overlayText,omitempty" url:"overlayText,omitempty"` - Repeat bool `json:"repeat" url:"repeat"` - FontFamily DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily `json:"fontFamily" url:"fontFamily"` - FontSize float64 `json:"fontSize" url:"fontSize"` - FontColor *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor `json:"fontColor" url:"fontColor"` - TextAlign DocAnnotationsList200ResponseAnnotationsItemRedactTextAlign `json:"textAlign" url:"textAlign"` +type DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -34031,455 +34758,723 @@ type DocAnnotationsList200ResponseAnnotationsItemRedact struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetRef() *DocAnnotationsList200ResponseAnnotationsItemRedactRef { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem) GetUnit() string { if d == nil { - return nil + return "" } - return d.Ref + return d.Unit } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem) GetConversion() *float64 { if d == nil { - return 0 + return nil } - return d.PageObjectNumber + return d.Conversion } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetIndex() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem) GetFraction() *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFraction { if d == nil { - return 0 + return nil } - return d.Index + return d.Fraction } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetIdentityQuality() DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQuality { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem) GetPrecision() *int { if d == nil { - return "" + return nil } - return d.IdentityQuality + return d.Precision } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetNm() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem) GetFixed() *bool { if d == nil { return nil } - return d.Nm + return d.Fixed } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetFlags() *DocAnnotationsList200ResponseAnnotationsItemRedactFlags { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem) GetThousands() *string { if d == nil { return nil } - return d.Flags + return d.Thousands } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetRect() *DocAnnotationsList200ResponseAnnotationsItemRedactRect { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem) GetDecimal() *string { if d == nil { return nil } - return d.Rect + return d.Decimal } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetContents() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem) GetPrefixSpacing() *string { if d == nil { return nil } - return d.Contents + return d.PrefixSpacing } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetSubject() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem) GetSuffixSpacing() *string { if d == nil { return nil } - return d.Subject + return d.SuffixSpacing } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetAuthor() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem) GetLabelPosition() *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemLabelPosition { if d == nil { return nil } - return d.Author + return d.LabelPosition } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetCreated() *time.Time { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.Created + return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetModified() *time.Time { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.Modified + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetBlendMode() DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode { - if d == nil { - return "" - } - return d.BlendMode +// SetUnit sets the Unit field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFieldUnit) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetInReplyTo() *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo { - if d == nil { - return nil - } - return d.InReplyTo +// SetConversion sets the Conversion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFieldConversion) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetReplyType() *DocAnnotationsList200ResponseAnnotationsItemRedactReplyType { - if d == nil { - return nil - } - return d.ReplyType +// SetFraction sets the Fraction field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem) SetFraction(fraction *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFieldFraction) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetUserID() *string { - if d == nil { - return nil - } - return d.UserID +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFieldPrecision) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetGroupID() *string { - if d == nil { - return nil +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem) SetLabelPosition(labelPosition *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFieldLabelPosition) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - return d.GroupID + *d = DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetCreatedBy() *string { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return d.CreatedBy + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetUpdatedBy() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem) String() string { if d == nil { - return nil + return "" } - return d.UpdatedBy + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetActions() *PdfAnnotationActions { - if d == nil { - return nil +type DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFraction string + +const ( + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFractionDecimal DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFraction = "decimal" + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFractionFraction DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFraction = "fraction" + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFractionRound DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFraction = "round" + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFractionTruncate DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFraction = "truncate" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFractionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFraction, error) { + switch s { + case "decimal": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFractionDecimal, nil + case "fraction": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFractionFraction, nil + case "round": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFractionRound, nil + case "truncate": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFractionTruncate, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFraction) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFraction { + return &d +} + +type DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemLabelPosition string + +const ( + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemLabelPositionSuffix DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemLabelPosition = "suffix" + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemLabelPositionPrefix DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemLabelPosition = "prefix" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemLabelPositionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemLabelPosition, error) { + switch s { + case "suffix": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemLabelPositionPrefix, nil } - return d.Actions + var t DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetQuadPoints() []*DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem { +func (d DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemLabelPosition) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemLabelPosition { + return &d +} + +var ( + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFieldLabelPosition = big.NewInt(1 << 9) +) + +type DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem) GetUnit() string { if d == nil { - return nil + return "" } - return d.QuadPoints + return d.Unit } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetColor() *DocAnnotationsList200ResponseAnnotationsItemRedactColor { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem) GetConversion() *float64 { if d == nil { return nil } - return d.Color + return d.Conversion } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetOpacity() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem) GetFraction() *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFraction { if d == nil { - return 0 + return nil } - return d.Opacity + return d.Fraction } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetInteriorColor() *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem) GetPrecision() *int { if d == nil { return nil } - return d.InteriorColor + return d.Precision } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetOverlayText() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem) GetFixed() *bool { if d == nil { return nil } - return d.OverlayText + return d.Fixed } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetRepeat() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem) GetThousands() *string { if d == nil { - return false + return nil } - return d.Repeat + return d.Thousands } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetFontFamily() DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem) GetDecimal() *string { if d == nil { - return "" + return nil } - return d.FontFamily + return d.Decimal } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetFontSize() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem) GetPrefixSpacing() *string { if d == nil { - return 0 + return nil } - return d.FontSize + return d.PrefixSpacing } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetFontColor() *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem) GetSuffixSpacing() *string { if d == nil { return nil } - return d.FontColor + return d.SuffixSpacing } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetTextAlign() DocAnnotationsList200ResponseAnnotationsItemRedactTextAlign { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem) GetLabelPosition() *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemLabelPosition { if d == nil { - return "" + return nil } - return d.TextAlign + return d.LabelPosition } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetRef sets the Ref field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetRef(ref *DocAnnotationsList200ResponseAnnotationsItemRedactRef) { - d.Ref = ref - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldRef) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFieldUnit) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFieldConversion) } -// SetIndex sets the Index field and marks it as non-optional; +// SetFraction sets the Fraction field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldIndex) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem) SetFraction(fraction *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFieldFraction) } -// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; +// SetPrecision sets the Precision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetIdentityQuality(identityQuality DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQuality) { - d.IdentityQuality = identityQuality - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldIdentityQuality) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFieldPrecision) } -// SetNm sets the Nm field and marks it as non-optional; +// SetFixed sets the Fixed field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetNm(nm *string) { - d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldNm) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFieldFixed) } -// SetFlags sets the Flags field and marks it as non-optional; +// SetThousands sets the Thousands field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetFlags(flags *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) { - d.Flags = flags - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldFlags) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFieldThousands) } -// SetRect sets the Rect field and marks it as non-optional; +// SetDecimal sets the Decimal field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetRect(rect *DocAnnotationsList200ResponseAnnotationsItemRedactRect) { - d.Rect = rect - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldRect) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFieldDecimal) } -// SetContents sets the Contents field and marks it as non-optional; +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetContents(contents *string) { - d.Contents = contents - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldContents) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFieldPrefixSpacing) } -// SetSubject sets the Subject field and marks it as non-optional; +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetSubject(subject *string) { - d.Subject = subject - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldSubject) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFieldSuffixSpacing) } -// SetAuthor sets the Author field and marks it as non-optional; +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetAuthor(author *string) { - d.Author = author - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldAuthor) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem) SetLabelPosition(labelPosition *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFieldLabelPosition) } -// SetCreated sets the Created field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetCreated(created *time.Time) { - d.Created = created - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldCreated) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -// SetModified sets the Modified field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetModified(modified *time.Time) { - d.Modified = modified - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldModified) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -// SetBlendMode sets the BlendMode field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetBlendMode(blendMode DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode) { - d.BlendMode = blendMode - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldBlendMode) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -// SetInReplyTo sets the InReplyTo field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetInReplyTo(inReplyTo *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo) { - d.InReplyTo = inReplyTo - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldInReplyTo) -} +type DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFraction string -// SetReplyType sets the ReplyType field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetReplyType(replyType *DocAnnotationsList200ResponseAnnotationsItemRedactReplyType) { - d.ReplyType = replyType - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldReplyType) +const ( + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFractionDecimal DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFraction = "decimal" + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFractionFraction DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFraction = "fraction" + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFractionRound DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFraction = "round" + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFractionTruncate DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFraction = "truncate" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFractionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFraction, error) { + switch s { + case "decimal": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFractionDecimal, nil + case "fraction": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFractionFraction, nil + case "round": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFractionRound, nil + case "truncate": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFractionTruncate, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) } -// SetUserID sets the UserID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetUserID(userID *string) { - d.UserID = userID - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldUserID) +func (d DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFraction) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFraction { + return &d } -// SetGroupID sets the GroupID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetGroupID(groupID *string) { - d.GroupID = groupID - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldGroupID) +type DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemLabelPosition string + +const ( + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemLabelPositionSuffix DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemLabelPosition = "suffix" + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemLabelPositionPrefix DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemLabelPosition = "prefix" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemLabelPositionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemLabelPosition, error) { + switch s { + case "suffix": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemLabelPositionPrefix, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) } -// SetCreatedBy sets the CreatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetCreatedBy(createdBy *string) { - d.CreatedBy = createdBy - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldCreatedBy) +func (d DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemLabelPosition) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemLabelPosition { + return &d } -// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetUpdatedBy(updatedBy *string) { - d.UpdatedBy = updatedBy - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldUpdatedBy) +var ( + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFieldLabelPosition = big.NewInt(1 << 9) +) + +type DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -// SetActions sets the Actions field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetActions(actions *PdfAnnotationActions) { - d.Actions = actions - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldActions) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem) GetUnit() string { + if d == nil { + return "" + } + return d.Unit } -// SetQuadPoints sets the QuadPoints field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetQuadPoints(quadPoints []*DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem) { - d.QuadPoints = quadPoints - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldQuadPoints) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem) GetConversion() *float64 { + if d == nil { + return nil + } + return d.Conversion } -// SetColor sets the Color field and marks it as non-optional; +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem) GetFraction() *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFraction { + if d == nil { + return nil + } + return d.Fraction +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem) GetPrecision() *int { + if d == nil { + return nil + } + return d.Precision +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem) GetFixed() *bool { + if d == nil { + return nil + } + return d.Fixed +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem) GetThousands() *string { + if d == nil { + return nil + } + return d.Thousands +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem) GetDecimal() *string { + if d == nil { + return nil + } + return d.Decimal +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem) GetPrefixSpacing() *string { + if d == nil { + return nil + } + return d.PrefixSpacing +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem) GetSuffixSpacing() *string { + if d == nil { + return nil + } + return d.SuffixSpacing +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem) GetLabelPosition() *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemLabelPosition { + if d == nil { + return nil + } + return d.LabelPosition +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetColor(color *DocAnnotationsList200ResponseAnnotationsItemRedactColor) { - d.Color = color - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldColor) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFieldUnit) } -// SetOpacity sets the Opacity field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetOpacity(opacity float64) { - d.Opacity = opacity - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldOpacity) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFieldConversion) } -// SetInteriorColor sets the InteriorColor field and marks it as non-optional; +// SetFraction sets the Fraction field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetInteriorColor(interiorColor *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor) { - d.InteriorColor = interiorColor - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldInteriorColor) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem) SetFraction(fraction *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFieldFraction) } -// SetOverlayText sets the OverlayText field and marks it as non-optional; +// SetPrecision sets the Precision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetOverlayText(overlayText *string) { - d.OverlayText = overlayText - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldOverlayText) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFieldPrecision) } -// SetRepeat sets the Repeat field and marks it as non-optional; +// SetFixed sets the Fixed field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetRepeat(repeat bool) { - d.Repeat = repeat - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldRepeat) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFieldFixed) } -// SetFontFamily sets the FontFamily field and marks it as non-optional; +// SetThousands sets the Thousands field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetFontFamily(fontFamily DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily) { - d.FontFamily = fontFamily - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldFontFamily) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFieldThousands) } -// SetFontSize sets the FontSize field and marks it as non-optional; +// SetDecimal sets the Decimal field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetFontSize(fontSize float64) { - d.FontSize = fontSize - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldFontSize) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFieldDecimal) } -// SetFontColor sets the FontColor field and marks it as non-optional; +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetFontColor(fontColor *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor) { - d.FontColor = fontColor - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldFontColor) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFieldPrefixSpacing) } -// SetTextAlign sets the TextAlign field and marks it as non-optional; +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetTextAlign(textAlign DocAnnotationsList200ResponseAnnotationsItemRedactTextAlign) { - d.TextAlign = textAlign - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldTextAlign) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFieldSuffixSpacing) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) UnmarshalJSON(data []byte) error { - type embed DocAnnotationsList200ResponseAnnotationsItemRedact - var unmarshaler = struct { - embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` - }{ - embed: embed(*d), - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem) SetLabelPosition(labelPosition *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFieldLabelPosition) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemRedact(unmarshaler.embed) - d.Created = unmarshaler.Created.TimePtr() - d.Modified = unmarshaler.Modified.TimePtr() + *d = DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -34489,22 +35484,18 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) UnmarshalJSON(data return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemRedact +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem var marshaler = struct { embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), - Created: internal.NewOptionalDateTime(d.Created), - Modified: internal.NewOptionalDateTime(d.Modified), + embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem) String() string { if d == nil { return "" } @@ -34519,80 +35510,57 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) String() string { return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode string +type DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFraction string const ( - DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeNormal DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode = "normal" - DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeMultiply DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode = "multiply" - DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeScreen DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode = "screen" - DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeOverlay DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode = "overlay" - DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeDarken DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode = "darken" - DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeLighten DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode = "lighten" - DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeColorDodge DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode = "color-dodge" - DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeColorBurn DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode = "color-burn" - DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeHardLight DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode = "hard-light" - DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeSoftLight DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode = "soft-light" - DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeDifference DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode = "difference" - DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeExclusion DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode = "exclusion" - DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeHue DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode = "hue" - DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeSaturation DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode = "saturation" - DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeColor DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode = "color" - DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeLuminosity DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode = "luminosity" + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFractionDecimal DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFraction = "decimal" + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFractionFraction DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFraction = "fraction" + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFractionRound DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFraction = "round" + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFractionTruncate DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFraction = "truncate" ) -func NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode, error) { +func NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFractionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFraction, error) { switch s { - case "normal": - return DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeNormal, nil - case "multiply": - return DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeMultiply, nil - case "screen": - return DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeScreen, nil - case "overlay": - return DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeOverlay, nil - case "darken": - return DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeDarken, nil - case "lighten": - return DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeLighten, nil - case "color-dodge": - return DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeColorDodge, nil - case "color-burn": - return DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeColorBurn, nil - case "hard-light": - return DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeHardLight, nil - case "soft-light": - return DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeSoftLight, nil - case "difference": - return DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeDifference, nil - case "exclusion": - return DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeExclusion, nil - case "hue": - return DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeHue, nil - case "saturation": - return DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeSaturation, nil - case "color": - return DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeColor, nil - case "luminosity": - return DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeLuminosity, nil - } - var t DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode + case "decimal": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFractionDecimal, nil + case "fraction": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFractionFraction, nil + case "round": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFractionRound, nil + case "truncate": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFractionTruncate, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFraction return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode) Ptr() *DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode { +func (d DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFraction) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFraction { return &d } -var ( - docAnnotationsList200ResponseAnnotationsItemRedactColorFieldR = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemRedactColorFieldG = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemRedactColorFieldB = big.NewInt(1 << 2) +type DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemLabelPosition string + +const ( + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemLabelPositionSuffix DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemLabelPosition = "suffix" + DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemLabelPositionPrefix DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemLabelPosition = "prefix" ) -type DocAnnotationsList200ResponseAnnotationsItemRedactColor struct { - R int `json:"r" url:"r"` - G int `json:"g" url:"g"` - B int `json:"b" url:"b"` +func NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemLabelPositionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemLabelPosition, error) { + switch s { + case "suffix": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemLabelPositionPrefix, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemLabelPosition) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemLabelPosition { + return &d +} + +type DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureUnknown struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -34601,69 +35569,27 @@ type DocAnnotationsList200ResponseAnnotationsItemRedactColor struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactColor) GetR() int { - if d == nil { - return 0 - } - return d.R -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactColor) GetG() int { - if d == nil { - return 0 - } - return d.G -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactColor) GetB() int { - if d == nil { - return 0 - } - return d.B -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureUnknown) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactColor) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureUnknown) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetR sets the R field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactColor) SetR(r int) { - d.R = r - d.require(docAnnotationsList200ResponseAnnotationsItemRedactColorFieldR) -} - -// SetG sets the G field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactColor) SetG(g int) { - d.G = g - d.require(docAnnotationsList200ResponseAnnotationsItemRedactColorFieldG) -} - -// SetB sets the B field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactColor) SetB(b int) { - d.B = b - d.require(docAnnotationsList200ResponseAnnotationsItemRedactColorFieldB) -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactColor +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureUnknown) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureUnknown var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemRedactColor(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureUnknown(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -34673,8 +35599,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactColor) UnmarshalJSON( return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemRedactColor +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureUnknown) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureUnknown var marshaler = struct { embed }{ @@ -34684,7 +35610,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactColor) MarshalJSON() return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactColor) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureUnknown) String() string { if d == nil { return "" } @@ -34700,29 +35626,17 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactColor) String() strin } var ( - docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldInvisible = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldHidden = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldPrint = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldNoZoom = big.NewInt(1 << 3) - docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldNoRotate = big.NewInt(1 << 4) - docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldNoView = big.NewInt(1 << 5) - docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldReadOnly = big.NewInt(1 << 6) - docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldLocked = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldToggleNoView = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldLockedContents = big.NewInt(1 << 9) + docAnnotationsList200ResponseAnnotationsItemPolygonRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolygonRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolygonRectFieldRight = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolygonRectFieldTop = big.NewInt(1 << 3) ) -type DocAnnotationsList200ResponseAnnotationsItemRedactFlags struct { - Invisible bool `json:"invisible" url:"invisible"` - Hidden bool `json:"hidden" url:"hidden"` - Print bool `json:"print" url:"print"` - NoZoom bool `json:"noZoom" url:"noZoom"` - NoRotate bool `json:"noRotate" url:"noRotate"` - NoView bool `json:"noView" url:"noView"` - ReadOnly bool `json:"readOnly" url:"readOnly"` - Locked bool `json:"locked" url:"locked"` - ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` - LockedContents bool `json:"lockedContents" url:"lockedContents"` +type DocAnnotationsList200ResponseAnnotationsItemPolygonRect struct { + Left float64 `json:"left" url:"left"` + Bottom float64 `json:"bottom" url:"bottom"` + Right float64 `json:"right" url:"right"` + Top float64 `json:"top" url:"top"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -34731,167 +35645,83 @@ type DocAnnotationsList200ResponseAnnotationsItemRedactFlags struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) GetInvisible() bool { - if d == nil { - return false - } - return d.Invisible -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) GetHidden() bool { - if d == nil { - return false - } - return d.Hidden -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) GetPrint() bool { - if d == nil { - return false - } - return d.Print -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) GetNoZoom() bool { - if d == nil { - return false - } - return d.NoZoom -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) GetNoRotate() bool { - if d == nil { - return false - } - return d.NoRotate -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) GetNoView() bool { - if d == nil { - return false - } - return d.NoView -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) GetReadOnly() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRect) GetLeft() float64 { if d == nil { - return false + return 0 } - return d.ReadOnly + return d.Left } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) GetLocked() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRect) GetBottom() float64 { if d == nil { - return false + return 0 } - return d.Locked + return d.Bottom } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) GetToggleNoView() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRect) GetRight() float64 { if d == nil { - return false + return 0 } - return d.ToggleNoView + return d.Right } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) GetLockedContents() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRect) GetTop() float64 { if d == nil { - return false + return 0 } - return d.LockedContents + return d.Top } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRect) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRect) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetInvisible sets the Invisible field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) SetInvisible(invisible bool) { - d.Invisible = invisible - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldInvisible) -} - -// SetHidden sets the Hidden field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) SetHidden(hidden bool) { - d.Hidden = hidden - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldHidden) -} - -// SetPrint sets the Print field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) SetPrint(print bool) { - d.Print = print - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldPrint) -} - -// SetNoZoom sets the NoZoom field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) SetNoZoom(noZoom bool) { - d.NoZoom = noZoom - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldNoZoom) -} - -// SetNoRotate sets the NoRotate field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) SetNoRotate(noRotate bool) { - d.NoRotate = noRotate - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldNoRotate) -} - -// SetNoView sets the NoView field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) SetNoView(noView bool) { - d.NoView = noView - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldNoView) -} - -// SetReadOnly sets the ReadOnly field and marks it as non-optional; +// SetLeft sets the Left field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) SetReadOnly(readOnly bool) { - d.ReadOnly = readOnly - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldReadOnly) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRect) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonRectFieldLeft) } -// SetLocked sets the Locked field and marks it as non-optional; +// SetBottom sets the Bottom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) SetLocked(locked bool) { - d.Locked = locked - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldLocked) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRect) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonRectFieldBottom) } -// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// SetRight sets the Right field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) SetToggleNoView(toggleNoView bool) { - d.ToggleNoView = toggleNoView - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldToggleNoView) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRect) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonRectFieldRight) } -// SetLockedContents sets the LockedContents field and marks it as non-optional; +// SetTop sets the Top field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) SetLockedContents(lockedContents bool) { - d.LockedContents = lockedContents - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldLockedContents) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonRectFieldTop) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactFlags +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonRect var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemRedactFlags(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolygonRect(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -34901,8 +35731,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) UnmarshalJSON( return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemRedactFlags +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolygonRect var marshaler = struct { embed }{ @@ -34912,7 +35742,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) MarshalJSON() return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRect) String() string { if d == nil { return "" } @@ -34927,265 +35757,69 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) String() strin return fmt.Sprintf("%#v", d) } -var ( - docAnnotationsList200ResponseAnnotationsItemRedactFontColorFieldR = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemRedactFontColorFieldG = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemRedactFontColorFieldB = big.NewInt(1 << 2) -) - -type DocAnnotationsList200ResponseAnnotationsItemRedactFontColor struct { - R int `json:"r" url:"r"` - G int `json:"g" url:"g"` - B int `json:"b" url:"b"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +type DocAnnotationsList200ResponseAnnotationsItemPolygonRef struct { + Kind string + ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber + Nm *DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm + Index *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex - extraProperties map[string]interface{} - rawJSON json.RawMessage + rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor) GetR() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRef) GetKind() string { if d == nil { - return 0 + return "" } - return d.R + return d.Kind } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor) GetG() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRef) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber { if d == nil { - return 0 + return nil } - return d.G + return d.ObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor) GetB() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRef) GetNm() *DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm { if d == nil { - return 0 + return nil } - return d.B + return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRef) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex { if d == nil { return nil } - return d.extraProperties + return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRef) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetR sets the R field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor) SetR(r int) { - d.R = r - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFontColorFieldR) -} - -// SetG sets the G field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor) SetG(g int) { - d.G = g - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFontColorFieldG) -} - -// SetB sets the B field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor) SetB(b int) { - d.B = b - d.require(docAnnotationsList200ResponseAnnotationsItemRedactFontColorFieldB) -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactFontColor - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { + if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemRedactFontColor(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemRedactFontColor - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) -} - -type DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily string - -const ( - DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyCourier DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily = "courier" - DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyCourierBold DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily = "courier-bold" - DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyCourierBoldOblique DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily = "courier-bold-oblique" - DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyCourierOblique DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily = "courier-oblique" - DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyHelvetica DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily = "helvetica" - DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyHelveticaBold DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily = "helvetica-bold" - DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyHelveticaBoldOblique DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily = "helvetica-bold-oblique" - DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyHelveticaOblique DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily = "helvetica-oblique" - DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyTimesRoman DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily = "times-roman" - DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyTimesBold DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily = "times-bold" - DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyTimesBoldItalic DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily = "times-bold-italic" - DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyTimesItalic DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily = "times-italic" - DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilySymbol DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily = "symbol" - DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyZapfDingbats DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily = "zapf-dingbats" -) - -func NewDocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily, error) { - switch s { - case "courier": - return DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyCourier, nil - case "courier-bold": - return DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyCourierBold, nil - case "courier-bold-oblique": - return DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyCourierBoldOblique, nil - case "courier-oblique": - return DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyCourierOblique, nil - case "helvetica": - return DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyHelvetica, nil - case "helvetica-bold": - return DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyHelveticaBold, nil - case "helvetica-bold-oblique": - return DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyHelveticaBoldOblique, nil - case "helvetica-oblique": - return DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyHelveticaOblique, nil - case "times-roman": - return DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyTimesRoman, nil - case "times-bold": - return DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyTimesBold, nil - case "times-bold-italic": - return DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyTimesBoldItalic, nil - case "times-italic": - return DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyTimesItalic, nil - case "symbol": - return DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilySymbol, nil - case "zapf-dingbats": - return DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyZapfDingbats, nil - } - var t DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily) Ptr() *DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily { - return &d -} - -type DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQuality string - -const ( - DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQualityDurable DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQuality = "durable" - DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQualityWeak DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQuality = "weak" -) - -func NewDocAnnotationsList200ResponseAnnotationsItemRedactIdentityQualityFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQuality, error) { - switch s { - case "durable": - return DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQualityDurable, nil - case "weak": - return DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQualityWeak, nil - } - var t DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQuality - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQuality) Ptr() *DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQuality { - return &d -} - -type DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo struct { - Kind string - ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber - Nm *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm - Index *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex - - rawJSON json.RawMessage -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo) GetKind() string { - if d == nil { - return "" - } - return d.Kind -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber { - if d == nil { - return nil - } - return d.ObjectNumber -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo) GetNm() *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm { - if d == nil { - return nil - } - return d.Nm -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex { - if d == nil { - return nil - } - return d.Index -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) } switch unmarshaler.Kind { case "objectNumber": - value := new(DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber) + value := new(DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber) if err := json.Unmarshal(data, &value); err != nil { return err } d.ObjectNumber = value case "nm": - value := new(DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm) + value := new(DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm) if err := json.Unmarshal(data, &value); err != nil { return err } d.Nm = value case "index": - value := new(DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex) + value := new(DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -35195,7 +35829,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo) UnmarshalJ return nil } -func (d DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsList200ResponseAnnotationsItemPolygonRef) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -35214,13 +35848,13 @@ func (d DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo) MarshalJSON return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToVisitor interface { - VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber) error - VisitNm(*DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm) error - VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex) error +type DocAnnotationsList200ResponseAnnotationsItemPolygonRefVisitor interface { + VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber) error + VisitNm(*DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm) error + VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex) error } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToVisitor) error { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRef) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemPolygonRefVisitor) error { if d.ObjectNumber != nil { return visitor.VisitObjectNumber(d.ObjectNumber) } @@ -35233,7 +35867,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo) Accept(vis return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo) validate() error { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRef) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -35274,15 +35908,15 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo) validate() } var ( - docAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolygonRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolygonRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolygonRefIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -35291,35 +35925,35 @@ type DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex) GetIndex() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision { if d == nil { return nil } return d.Revision } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -35328,32 +35962,32 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex) requi // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonRefIndexFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex) SetIndex(index int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex) SetIndex(index int) { d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexFieldIndex) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonRefIndexFieldIndex) } // SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision) { d.Revision = revision - d.require(docAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexFieldRevision) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonRefIndexFieldRevision) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -35363,8 +35997,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex) Unmar return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex var marshaler = struct { embed }{ @@ -35374,7 +36008,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex) Marsh return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex) String() string { if d == nil { return "" } @@ -35390,12 +36024,12 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex) Strin } var ( - docAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision struct { +type DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision struct { DocSessionID string `json:"docSessionId" url:"docSessionId"` PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Generation int `json:"generation" url:"generation"` @@ -35407,35 +36041,35 @@ type DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision st rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision) GetDocSessionID() string { if d == nil { return "" } return d.DocSessionID } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision) GetGeneration() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision) GetGeneration() int { if d == nil { return 0 } return d.Generation } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -35444,32 +36078,32 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevisio // SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision) SetDocSessionID(docSessionID string) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision) SetDocSessionID(docSessionID string) { d.DocSessionID = docSessionID - d.require(docAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevisionFieldDocSessionID) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevisionFieldDocSessionID) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevisionFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevisionFieldPageObjectNumber) } // SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision) SetGeneration(generation int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision) SetGeneration(generation int) { d.Generation = generation - d.require(docAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevisionFieldGeneration) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevisionFieldGeneration) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -35479,8 +36113,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevisio return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision var marshaler = struct { embed }{ @@ -35490,7 +36124,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevisio return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision) String() string { if d == nil { return "" } @@ -35506,11 +36140,11 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevisio } var ( - docAnnotationsList200ResponseAnnotationsItemRedactInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemRedactInReplyToNmFieldNm = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolygonRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolygonRefNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm struct { +type DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Nm string `json:"nm" url:"nm"` @@ -35521,28 +36155,28 @@ type DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm) GetNm() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm) GetNm() string { if d == nil { return "" } return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -35551,25 +36185,25 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm) require( // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemRedactInReplyToNmFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonRefNmFieldPageObjectNumber) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm) SetNm(nm string) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm) SetNm(nm string) { d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemRedactInReplyToNmFieldNm) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonRefNmFieldNm) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -35579,8 +36213,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm) Unmarsha return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm var marshaler = struct { embed }{ @@ -35590,7 +36224,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm) MarshalJ return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm) String() string { if d == nil { return "" } @@ -35606,11 +36240,11 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm) String() } var ( - docAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber struct { +type DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` @@ -35621,28 +36255,28 @@ type DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber str rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } return d.AnnotObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -35651,25 +36285,25 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumberFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumberFieldPageObjectNumber) } // SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumberFieldAnnotObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -35679,8 +36313,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber var marshaler = struct { embed }{ @@ -35690,7 +36324,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber) String() string { if d == nil { return "" } @@ -35705,16 +36339,36 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber return fmt.Sprintf("%#v", d) } +type DocAnnotationsList200ResponseAnnotationsItemPolygonReplyType string + +const ( + DocAnnotationsList200ResponseAnnotationsItemPolygonReplyTypeReply DocAnnotationsList200ResponseAnnotationsItemPolygonReplyType = "reply" + DocAnnotationsList200ResponseAnnotationsItemPolygonReplyTypeGroup DocAnnotationsList200ResponseAnnotationsItemPolygonReplyType = "group" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemPolygonReplyTypeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolygonReplyType, error) { + switch s { + case "reply": + return DocAnnotationsList200ResponseAnnotationsItemPolygonReplyTypeReply, nil + case "group": + return DocAnnotationsList200ResponseAnnotationsItemPolygonReplyTypeGroup, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemPolygonReplyType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemPolygonReplyType) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolygonReplyType { + return &d +} + var ( - docAnnotationsList200ResponseAnnotationsItemRedactInteriorColorFieldR = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemRedactInteriorColorFieldG = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemRedactInteriorColorFieldB = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolygonVerticesItemFieldX = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolygonVerticesItemFieldY = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor struct { - R int `json:"r" url:"r"` - G int `json:"g" url:"g"` - B int `json:"b" url:"b"` +type DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -35723,69 +36377,55 @@ type DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor) GetR() int { - if d == nil { - return 0 - } - return d.R -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor) GetG() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem) GetX() float64 { if d == nil { return 0 } - return d.G + return d.X } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor) GetB() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem) GetY() float64 { if d == nil { return 0 } - return d.B + return d.Y } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetR sets the R field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor) SetR(r int) { - d.R = r - d.require(docAnnotationsList200ResponseAnnotationsItemRedactInteriorColorFieldR) -} - -// SetG sets the G field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor) SetG(g int) { - d.G = g - d.require(docAnnotationsList200ResponseAnnotationsItemRedactInteriorColorFieldG) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem) SetX(x float64) { + d.X = x + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonVerticesItemFieldX) } -// SetB sets the B field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor) SetB(b int) { - d.B = b - d.require(docAnnotationsList200ResponseAnnotationsItemRedactInteriorColorFieldB) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem) SetY(y float64) { + d.Y = y + d.require(docAnnotationsList200ResponseAnnotationsItemPolygonVerticesItemFieldY) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -35795,8 +36435,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor) Unmars return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem var marshaler = struct { embed }{ @@ -35806,7 +36446,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor) Marsha return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem) String() string { if d == nil { return "" } @@ -35822,17 +36462,73 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor) String } var ( - docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemFieldP1 = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemFieldP2 = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemFieldP3 = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemFieldP4 = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemPolylineFieldIntent = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolylineFieldMeasure = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolylineFieldCaption = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolylineFieldRef = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemPolylineFieldPageObjectNumber = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemPolylineFieldIndex = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemPolylineFieldIdentityQuality = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemPolylineFieldNm = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemPolylineFieldFlags = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemPolylineFieldRect = big.NewInt(1 << 9) + docAnnotationsList200ResponseAnnotationsItemPolylineFieldContents = big.NewInt(1 << 10) + docAnnotationsList200ResponseAnnotationsItemPolylineFieldSubject = big.NewInt(1 << 11) + docAnnotationsList200ResponseAnnotationsItemPolylineFieldAuthor = big.NewInt(1 << 12) + docAnnotationsList200ResponseAnnotationsItemPolylineFieldCreated = big.NewInt(1 << 13) + docAnnotationsList200ResponseAnnotationsItemPolylineFieldModified = big.NewInt(1 << 14) + docAnnotationsList200ResponseAnnotationsItemPolylineFieldBlendMode = big.NewInt(1 << 15) + docAnnotationsList200ResponseAnnotationsItemPolylineFieldInReplyTo = big.NewInt(1 << 16) + docAnnotationsList200ResponseAnnotationsItemPolylineFieldReplyType = big.NewInt(1 << 17) + docAnnotationsList200ResponseAnnotationsItemPolylineFieldUserID = big.NewInt(1 << 18) + docAnnotationsList200ResponseAnnotationsItemPolylineFieldGroupID = big.NewInt(1 << 19) + docAnnotationsList200ResponseAnnotationsItemPolylineFieldCreatedBy = big.NewInt(1 << 20) + docAnnotationsList200ResponseAnnotationsItemPolylineFieldUpdatedBy = big.NewInt(1 << 21) + docAnnotationsList200ResponseAnnotationsItemPolylineFieldActions = big.NewInt(1 << 22) + docAnnotationsList200ResponseAnnotationsItemPolylineFieldColor = big.NewInt(1 << 23) + docAnnotationsList200ResponseAnnotationsItemPolylineFieldOpacity = big.NewInt(1 << 24) + docAnnotationsList200ResponseAnnotationsItemPolylineFieldStrokeWidth = big.NewInt(1 << 25) + docAnnotationsList200ResponseAnnotationsItemPolylineFieldBorderStyle = big.NewInt(1 << 26) + docAnnotationsList200ResponseAnnotationsItemPolylineFieldDashArray = big.NewInt(1 << 27) + docAnnotationsList200ResponseAnnotationsItemPolylineFieldInteriorColor = big.NewInt(1 << 28) + docAnnotationsList200ResponseAnnotationsItemPolylineFieldVertices = big.NewInt(1 << 29) + docAnnotationsList200ResponseAnnotationsItemPolylineFieldRotation = big.NewInt(1 << 30) + docAnnotationsList200ResponseAnnotationsItemPolylineFieldLineEndings = big.NewInt(1 << 31) ) -type DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem struct { - P1 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1 `json:"p1" url:"p1"` - P2 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2 `json:"p2" url:"p2"` - P3 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3 `json:"p3" url:"p3"` - P4 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4 `json:"p4" url:"p4"` +type DocAnnotationsList200ResponseAnnotationsItemPolyline struct { + Intent *DocAnnotationsList200ResponseAnnotationsItemPolylineIntent `json:"intent,omitempty" url:"intent,omitempty"` + Measure *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasure `json:"measure,omitempty" url:"measure,omitempty"` + Caption *DocAnnotationsList200ResponseAnnotationsItemPolylineCaption `json:"caption,omitempty" url:"caption,omitempty"` + Ref *DocAnnotationsList200ResponseAnnotationsItemPolylineRef `json:"ref" url:"ref"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + IdentityQuality DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQuality `json:"identityQuality" url:"identityQuality"` + Nm *string `json:"nm,omitempty" url:"nm,omitempty"` + Flags *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags `json:"flags" url:"flags"` + Rect *DocAnnotationsList200ResponseAnnotationsItemPolylineRect `json:"rect" url:"rect"` + Contents *string `json:"contents,omitempty" url:"contents,omitempty"` + Subject *string `json:"subject,omitempty" url:"subject,omitempty"` + Author *string `json:"author,omitempty" url:"author,omitempty"` + Created *time.Time `json:"created,omitempty" url:"created,omitempty"` + Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` + BlendMode DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode `json:"blendMode" url:"blendMode"` + InReplyTo *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` + ReplyType *DocAnnotationsList200ResponseAnnotationsItemPolylineReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` + UserID *string `json:"userId,omitempty" url:"userId,omitempty"` + GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` + CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` + Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` + Color *DocAnnotationsList200ResponseAnnotationsItemPolylineColor `json:"color" url:"color"` + Opacity float64 `json:"opacity" url:"opacity"` + StrokeWidth float64 `json:"strokeWidth" url:"strokeWidth"` + BorderStyle DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle `json:"borderStyle" url:"borderStyle"` + DashArray []float64 `json:"dashArray,omitempty" url:"dashArray,omitempty"` + InteriorColor *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor `json:"interiorColor,omitempty" url:"interiorColor,omitempty"` + Vertices []*DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem `json:"vertices" url:"vertices"` + Rotation *float64 `json:"rotation,omitempty" url:"rotation,omitempty"` + LineEndings *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings `json:"lineEndings" url:"lineEndings"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -35841,615 +36537,483 @@ type DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem) GetP1() *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1 { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetIntent() *DocAnnotationsList200ResponseAnnotationsItemPolylineIntent { if d == nil { return nil } - return d.P1 + return d.Intent } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem) GetP2() *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2 { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetMeasure() *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasure { if d == nil { return nil } - return d.P2 + return d.Measure } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem) GetP3() *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3 { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetCaption() *DocAnnotationsList200ResponseAnnotationsItemPolylineCaption { if d == nil { return nil } - return d.P3 + return d.Caption } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem) GetP4() *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4 { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetRef() *DocAnnotationsList200ResponseAnnotationsItemPolylineRef { if d == nil { return nil } - return d.P4 + return d.Ref } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetPageObjectNumber() int { if d == nil { - return nil + return 0 } - return d.extraProperties + return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetIndex() int { + if d == nil { + return 0 } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetP1 sets the P1 field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem) SetP1(p1 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1) { - d.P1 = p1 - d.require(docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemFieldP1) + return d.Index } -// SetP2 sets the P2 field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem) SetP2(p2 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2) { - d.P2 = p2 - d.require(docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemFieldP2) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetIdentityQuality() DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQuality { + if d == nil { + return "" + } + return d.IdentityQuality } -// SetP3 sets the P3 field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem) SetP3(p3 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3) { - d.P3 = p3 - d.require(docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemFieldP3) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetNm() *string { + if d == nil { + return nil + } + return d.Nm } -// SetP4 sets the P4 field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem) SetP4(p4 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4) { - d.P4 = p4 - d.require(docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemFieldP4) -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetFlags() *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags { + if d == nil { + return nil } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil + return d.Flags } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetRect() *DocAnnotationsList200ResponseAnnotationsItemPolylineRect { + if d == nil { + return nil } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return d.Rect } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetContents() *string { if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value + return nil } - return fmt.Sprintf("%#v", d) -} - -var ( - docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1FieldX = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1FieldY = big.NewInt(1 << 1) -) - -type DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage + return d.Contents } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1) GetX() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetSubject() *string { if d == nil { - return 0 + return nil } - return d.X + return d.Subject } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1) GetY() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetAuthor() *string { if d == nil { - return 0 + return nil } - return d.Y + return d.Author } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetCreated() *time.Time { if d == nil { return nil } - return d.extraProperties + return d.Created } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetModified() *time.Time { + if d == nil { + return nil } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetX sets the X field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1) SetX(x float64) { - d.X = x - d.require(docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1FieldX) + return d.Modified } -// SetY sets the Y field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1) SetY(y float64) { - d.Y = y - d.require(docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1FieldY) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetBlendMode() DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode { + if d == nil { + return "" + } + return d.BlendMode } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1 - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetInReplyTo() *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo { + if d == nil { + return nil } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil + return d.InReplyTo } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1 - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetReplyType() *DocAnnotationsList200ResponseAnnotationsItemPolylineReplyType { + if d == nil { + return nil } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return d.ReplyType } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetUserID() *string { if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value + return nil } - return fmt.Sprintf("%#v", d) + return d.UserID } -var ( - docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2FieldX = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2FieldY = big.NewInt(1 << 1) -) - -type DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetGroupID() *string { + if d == nil { + return nil + } + return d.GroupID } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2) GetX() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetCreatedBy() *string { if d == nil { - return 0 + return nil } - return d.X + return d.CreatedBy } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2) GetY() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetUpdatedBy() *string { if d == nil { - return 0 + return nil } - return d.Y + return d.UpdatedBy } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetActions() *PdfAnnotationActions { if d == nil { return nil } - return d.extraProperties + return d.Actions } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetColor() *DocAnnotationsList200ResponseAnnotationsItemPolylineColor { + if d == nil { + return nil } - d.explicitFields.Or(d.explicitFields, field) + return d.Color } -// SetX sets the X field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2) SetX(x float64) { - d.X = x - d.require(docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2FieldX) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetOpacity() float64 { + if d == nil { + return 0 + } + return d.Opacity } -// SetY sets the Y field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2) SetY(y float64) { - d.Y = y - d.require(docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2FieldY) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetStrokeWidth() float64 { + if d == nil { + return 0 + } + return d.StrokeWidth } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2 - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetBorderStyle() DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle { + if d == nil { + return "" } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil + return d.BorderStyle } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2 - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetDashArray() []float64 { + if d == nil { + return nil } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return d.DashArray } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetInteriorColor() *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor { if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value + return nil } - return fmt.Sprintf("%#v", d) + return d.InteriorColor } -var ( - docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3FieldX = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3FieldY = big.NewInt(1 << 1) -) - -type DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetVertices() []*DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem { + if d == nil { + return nil + } + return d.Vertices } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3) GetX() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetRotation() *float64 { if d == nil { - return 0 + return nil } - return d.X + return d.Rotation } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3) GetY() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetLineEndings() *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings { if d == nil { - return 0 + return nil } - return d.Y + return d.LineEndings } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetX sets the X field and marks it as non-optional; +// SetIntent sets the Intent field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3) SetX(x float64) { - d.X = x - d.require(docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3FieldX) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetIntent(intent *DocAnnotationsList200ResponseAnnotationsItemPolylineIntent) { + d.Intent = intent + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldIntent) } -// SetY sets the Y field and marks it as non-optional; +// SetMeasure sets the Measure field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3) SetY(y float64) { - d.Y = y - d.require(docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3FieldY) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetMeasure(measure *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasure) { + d.Measure = measure + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldMeasure) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3 - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil +// SetCaption sets the Caption field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetCaption(caption *DocAnnotationsList200ResponseAnnotationsItemPolylineCaption) { + d.Caption = caption + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldCaption) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3 - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) +// SetRef sets the Ref field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetRef(ref *DocAnnotationsList200ResponseAnnotationsItemPolylineRef) { + d.Ref = ref + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldRef) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldPageObjectNumber) } -var ( - docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4FieldX = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4FieldY = big.NewInt(1 << 1) -) - -type DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage +// SetIndex sets the Index field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldIndex) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4) GetX() float64 { - if d == nil { - return 0 - } - return d.X +// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetIdentityQuality(identityQuality DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQuality) { + d.IdentityQuality = identityQuality + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldIdentityQuality) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4) GetY() float64 { - if d == nil { - return 0 - } - return d.Y +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetNm(nm *string) { + d.Nm = nm + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldNm) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties +// SetFlags sets the Flags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetFlags(flags *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) { + d.Flags = flags + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldFlags) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) +// SetRect sets the Rect field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetRect(rect *DocAnnotationsList200ResponseAnnotationsItemPolylineRect) { + d.Rect = rect + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldRect) } -// SetX sets the X field and marks it as non-optional; +// SetContents sets the Contents field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4) SetX(x float64) { - d.X = x - d.require(docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4FieldX) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetContents(contents *string) { + d.Contents = contents + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldContents) } -// SetY sets the Y field and marks it as non-optional; +// SetSubject sets the Subject field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4) SetY(y float64) { - d.Y = y - d.require(docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4FieldY) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetSubject(subject *string) { + d.Subject = subject + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldSubject) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4 - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil +// SetAuthor sets the Author field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetAuthor(author *string) { + d.Author = author + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldAuthor) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4 - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) +// SetCreated sets the Created field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetCreated(created *time.Time) { + d.Created = created + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldCreated) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) +// SetModified sets the Modified field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetModified(modified *time.Time) { + d.Modified = modified + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldModified) } -var ( - docAnnotationsList200ResponseAnnotationsItemRedactRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemRedactRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemRedactRectFieldRight = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemRedactRectFieldTop = big.NewInt(1 << 3) -) - -type DocAnnotationsList200ResponseAnnotationsItemRedactRect struct { - Left float64 `json:"left" url:"left"` - Bottom float64 `json:"bottom" url:"bottom"` - Right float64 `json:"right" url:"right"` - Top float64 `json:"top" url:"top"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +// SetBlendMode sets the BlendMode field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetBlendMode(blendMode DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode) { + d.BlendMode = blendMode + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldBlendMode) +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +// SetInReplyTo sets the InReplyTo field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetInReplyTo(inReplyTo *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo) { + d.InReplyTo = inReplyTo + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldInReplyTo) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRect) GetLeft() float64 { - if d == nil { - return 0 - } - return d.Left +// SetReplyType sets the ReplyType field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetReplyType(replyType *DocAnnotationsList200ResponseAnnotationsItemPolylineReplyType) { + d.ReplyType = replyType + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldReplyType) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRect) GetBottom() float64 { - if d == nil { - return 0 - } - return d.Bottom +// SetUserID sets the UserID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetUserID(userID *string) { + d.UserID = userID + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldUserID) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRect) GetRight() float64 { - if d == nil { - return 0 - } - return d.Right +// SetGroupID sets the GroupID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetGroupID(groupID *string) { + d.GroupID = groupID + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldGroupID) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRect) GetTop() float64 { - if d == nil { - return 0 - } - return d.Top +// SetCreatedBy sets the CreatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetCreatedBy(createdBy *string) { + d.CreatedBy = createdBy + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldCreatedBy) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRect) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties +// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetUpdatedBy(updatedBy *string) { + d.UpdatedBy = updatedBy + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldUpdatedBy) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRect) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) +// SetActions sets the Actions field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetActions(actions *PdfAnnotationActions) { + d.Actions = actions + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldActions) } -// SetLeft sets the Left field and marks it as non-optional; +// SetColor sets the Color field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRect) SetLeft(left float64) { - d.Left = left - d.require(docAnnotationsList200ResponseAnnotationsItemRedactRectFieldLeft) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetColor(color *DocAnnotationsList200ResponseAnnotationsItemPolylineColor) { + d.Color = color + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldColor) } -// SetBottom sets the Bottom field and marks it as non-optional; +// SetOpacity sets the Opacity field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRect) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsList200ResponseAnnotationsItemRedactRectFieldBottom) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetOpacity(opacity float64) { + d.Opacity = opacity + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldOpacity) } -// SetRight sets the Right field and marks it as non-optional; +// SetStrokeWidth sets the StrokeWidth field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRect) SetRight(right float64) { - d.Right = right - d.require(docAnnotationsList200ResponseAnnotationsItemRedactRectFieldRight) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetStrokeWidth(strokeWidth float64) { + d.StrokeWidth = strokeWidth + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldStrokeWidth) } -// SetTop sets the Top field and marks it as non-optional; +// SetBorderStyle sets the BorderStyle field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRect) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsList200ResponseAnnotationsItemRedactRectFieldTop) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetBorderStyle(borderStyle DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle) { + d.BorderStyle = borderStyle + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldBorderStyle) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactRect - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { +// SetDashArray sets the DashArray field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetDashArray(dashArray []float64) { + d.DashArray = dashArray + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldDashArray) +} + +// SetInteriorColor sets the InteriorColor field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetInteriorColor(interiorColor *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor) { + d.InteriorColor = interiorColor + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldInteriorColor) +} + +// SetVertices sets the Vertices field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetVertices(vertices []*DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem) { + d.Vertices = vertices + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldVertices) +} + +// SetRotation sets the Rotation field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetRotation(rotation *float64) { + d.Rotation = rotation + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldRotation) +} + +// SetLineEndings sets the LineEndings field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) SetLineEndings(lineEndings *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings) { + d.LineEndings = lineEndings + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFieldLineEndings) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) UnmarshalJSON(data []byte) error { + type embed DocAnnotationsList200ResponseAnnotationsItemPolyline + var unmarshaler = struct { + embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemRedactRect(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolyline(unmarshaler.embed) + d.Created = unmarshaler.Created.TimePtr() + d.Modified = unmarshaler.Modified.TimePtr() extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -36459,18 +37023,22 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRect) UnmarshalJSON(d return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemRedactRect +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolyline var marshaler = struct { embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), + embed: embed(*d), + Created: internal.NewOptionalDateTime(d.Created), + Modified: internal.NewOptionalDateTime(d.Modified), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRect) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolyline) String() string { if d == nil { return "" } @@ -36485,166 +37053,106 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRect) String() string return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemRedactRef struct { - Kind string - ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber - Nm *DocAnnotationsList200ResponseAnnotationsItemRedactRefNm - Index *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex - - rawJSON json.RawMessage -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRef) GetKind() string { - if d == nil { - return "" - } - return d.Kind -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRef) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber { - if d == nil { - return nil - } - return d.ObjectNumber -} +type DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode string -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRef) GetNm() *DocAnnotationsList200ResponseAnnotationsItemRedactRefNm { - if d == nil { - return nil - } - return d.Nm -} +const ( + DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeNormal DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode = "normal" + DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeMultiply DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode = "multiply" + DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeScreen DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode = "screen" + DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeOverlay DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode = "overlay" + DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeDarken DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode = "darken" + DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeLighten DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode = "lighten" + DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeColorDodge DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode = "color-dodge" + DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeColorBurn DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode = "color-burn" + DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeHardLight DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode = "hard-light" + DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeSoftLight DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode = "soft-light" + DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeDifference DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode = "difference" + DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeExclusion DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode = "exclusion" + DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeHue DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode = "hue" + DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeSaturation DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode = "saturation" + DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeColor DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode = "color" + DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeLuminosity DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode = "luminosity" +) -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRef) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex { - if d == nil { - return nil +func NewDocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode, error) { + switch s { + case "normal": + return DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeNormal, nil + case "multiply": + return DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeMultiply, nil + case "screen": + return DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeScreen, nil + case "overlay": + return DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeOverlay, nil + case "darken": + return DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeDarken, nil + case "lighten": + return DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeLighten, nil + case "color-dodge": + return DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeColorDodge, nil + case "color-burn": + return DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeColorBurn, nil + case "hard-light": + return DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeHardLight, nil + case "soft-light": + return DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeSoftLight, nil + case "difference": + return DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeDifference, nil + case "exclusion": + return DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeExclusion, nil + case "hue": + return DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeHue, nil + case "saturation": + return DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeSaturation, nil + case "color": + return DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeColor, nil + case "luminosity": + return DocAnnotationsList200ResponseAnnotationsItemPolylineBlendModeLuminosity, nil } - return d.Index + var t DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRef) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsList200ResponseAnnotationsItemRedactRefNm) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Nm = value - case "index": - value := new(DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Index = value - } - d.rawJSON = json.RawMessage(data) - return nil +func (d DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode { + return &d } -func (d DocAnnotationsList200ResponseAnnotationsItemRedactRef) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Nm != nil { - return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") - } - if d.Index != nil { - return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil - } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) -} +type DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle string -type DocAnnotationsList200ResponseAnnotationsItemRedactRefVisitor interface { - VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber) error - VisitNm(*DocAnnotationsList200ResponseAnnotationsItemRedactRefNm) error - VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex) error -} +const ( + DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyleSolid DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle = "solid" + DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyleDashed DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle = "dashed" + DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyleBeveled DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle = "beveled" + DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyleInset DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle = "inset" +) -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRef) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemRedactRefVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) - } - if d.Nm != nil { - return visitor.VisitNm(d.Nm) - } - if d.Index != nil { - return visitor.VisitIndex(d.Index) +func NewDocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyleFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle, error) { + switch s { + case "solid": + return DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyleSolid, nil + case "dashed": + return DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyleDashed, nil + case "beveled": + return DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyleBeveled, nil + case "inset": + return DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyleInset, nil } - return fmt.Errorf("type %T does not define a non-empty union type", d) + var t DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRef) validate() error { - if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Nm != nil { - fields = append(fields, "nm") - } - if d.Index != nil { - fields = append(fields, "index") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } - } - return nil +func (d DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle { + return &d } var ( - docAnnotationsList200ResponseAnnotationsItemRedactRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemRedactRefIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemRedactRefIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolylineCaptionFieldEnabled = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolylineCaptionFieldCenter = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsList200ResponseAnnotationsItemPolylineCaption struct { + Enabled bool `json:"enabled" url:"enabled"` + Center *DocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter `json:"center,omitempty" url:"center,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -36653,69 +37161,55 @@ type DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex) GetIndex() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineCaption) GetEnabled() bool { if d == nil { - return 0 + return false } - return d.Index + return d.Enabled } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineCaption) GetCenter() *DocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter { if d == nil { return nil } - return d.Revision + return d.Center } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineCaption) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineCaption) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemRedactRefIndexFieldPageObjectNumber) -} - -// SetIndex sets the Index field and marks it as non-optional; +// SetEnabled sets the Enabled field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemRedactRefIndexFieldIndex) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineCaption) SetEnabled(enabled bool) { + d.Enabled = enabled + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineCaptionFieldEnabled) } -// SetRevision sets the Revision field and marks it as non-optional; +// SetCenter sets the Center field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision) { - d.Revision = revision - d.require(docAnnotationsList200ResponseAnnotationsItemRedactRefIndexFieldRevision) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineCaption) SetCenter(center *DocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter) { + d.Center = center + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineCaptionFieldCenter) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineCaption) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineCaption var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolylineCaption(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -36725,8 +37219,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex) UnmarshalJS return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineCaption) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolylineCaption var marshaler = struct { embed }{ @@ -36736,7 +37230,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex) MarshalJSON return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineCaption) String() string { if d == nil { return "" } @@ -36752,15 +37246,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex) String() st } var ( - docAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenterFieldX = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenterFieldY = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -36769,69 +37261,55 @@ type DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision) GetDocSessionID() string { - if d == nil { - return "" - } - return d.DocSessionID -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter) GetX() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.X } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision) GetGeneration() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter) GetY() float64 { if d == nil { return 0 } - return d.Generation + return d.Y } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevisionFieldDocSessionID) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevisionFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter) SetX(x float64) { + d.X = x + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenterFieldX) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevisionFieldGeneration) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter) SetY(y float64) { + d.Y = y + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenterFieldY) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -36841,8 +37319,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision) Unm return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter var marshaler = struct { embed }{ @@ -36852,7 +37330,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision) Mar return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter) String() string { if d == nil { return "" } @@ -36868,13 +37346,15 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision) Str } var ( - docAnnotationsList200ResponseAnnotationsItemRedactRefNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemRedactRefNmFieldNm = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolylineColorFieldR = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolylineColorFieldG = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolylineColorFieldB = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemRedactRefNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` +type DocAnnotationsList200ResponseAnnotationsItemPolylineColor struct { + R int `json:"r" url:"r"` + G int `json:"g" url:"g"` + B int `json:"b" url:"b"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -36883,55 +37363,69 @@ type DocAnnotationsList200ResponseAnnotationsItemRedactRefNm struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefNm) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineColor) GetR() int { if d == nil { return 0 } - return d.PageObjectNumber + return d.R } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefNm) GetNm() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineColor) GetG() int { if d == nil { - return "" + return 0 } - return d.Nm + return d.G } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineColor) GetB() int { + if d == nil { + return 0 + } + return d.B +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineColor) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefNm) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineColor) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetR sets the R field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefNm) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemRedactRefNmFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineColor) SetR(r int) { + d.R = r + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineColorFieldR) } -// SetNm sets the Nm field and marks it as non-optional; +// SetG sets the G field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemRedactRefNmFieldNm) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineColor) SetG(g int) { + d.G = g + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineColorFieldG) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactRefNm +// SetB sets the B field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineColor) SetB(b int) { + d.B = b + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineColorFieldB) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineColor var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemRedactRefNm(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolylineColor(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -36941,8 +37435,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefNm) UnmarshalJSON( return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemRedactRefNm +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolylineColor var marshaler = struct { embed }{ @@ -36952,7 +37446,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefNm) MarshalJSON() return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefNm) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineColor) String() string { if d == nil { return "" } @@ -36968,13 +37462,29 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefNm) String() strin } var ( - docAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldInvisible = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldHidden = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldPrint = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldNoZoom = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldNoRotate = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldNoView = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldReadOnly = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldLocked = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldToggleNoView = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldLockedContents = big.NewInt(1 << 9) ) -type DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` +type DocAnnotationsList200ResponseAnnotationsItemPolylineFlags struct { + Invisible bool `json:"invisible" url:"invisible"` + Hidden bool `json:"hidden" url:"hidden"` + Print bool `json:"print" url:"print"` + NoZoom bool `json:"noZoom" url:"noZoom"` + NoRotate bool `json:"noRotate" url:"noRotate"` + NoView bool `json:"noView" url:"noView"` + ReadOnly bool `json:"readOnly" url:"readOnly"` + Locked bool `json:"locked" url:"locked"` + ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` + LockedContents bool `json:"lockedContents" url:"lockedContents"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -36983,55 +37493,167 @@ type DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) GetInvisible() bool { if d == nil { - return 0 + return false } - return d.PageObjectNumber + return d.Invisible } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) GetHidden() bool { if d == nil { - return 0 + return false } - return d.AnnotObjectNumber + return d.Hidden } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) GetPrint() bool { + if d == nil { + return false + } + return d.Print +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) GetNoZoom() bool { + if d == nil { + return false + } + return d.NoZoom +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) GetNoRotate() bool { + if d == nil { + return false + } + return d.NoRotate +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) GetNoView() bool { + if d == nil { + return false + } + return d.NoView +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) GetReadOnly() bool { + if d == nil { + return false + } + return d.ReadOnly +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) GetLocked() bool { + if d == nil { + return false + } + return d.Locked +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) GetToggleNoView() bool { + if d == nil { + return false + } + return d.ToggleNoView +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) GetLockedContents() bool { + if d == nil { + return false + } + return d.LockedContents +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetInvisible sets the Invisible field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumberFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) SetInvisible(invisible bool) { + d.Invisible = invisible + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldInvisible) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetHidden sets the Hidden field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumberFieldAnnotObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) SetHidden(hidden bool) { + d.Hidden = hidden + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldHidden) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber +// SetPrint sets the Print field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) SetPrint(print bool) { + d.Print = print + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldPrint) +} + +// SetNoZoom sets the NoZoom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) SetNoZoom(noZoom bool) { + d.NoZoom = noZoom + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldNoZoom) +} + +// SetNoRotate sets the NoRotate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) SetNoRotate(noRotate bool) { + d.NoRotate = noRotate + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldNoRotate) +} + +// SetNoView sets the NoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) SetNoView(noView bool) { + d.NoView = noView + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldNoView) +} + +// SetReadOnly sets the ReadOnly field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldReadOnly) +} + +// SetLocked sets the Locked field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) SetLocked(locked bool) { + d.Locked = locked + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldLocked) +} + +// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) SetToggleNoView(toggleNoView bool) { + d.ToggleNoView = toggleNoView + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldToggleNoView) +} + +// SetLockedContents sets the LockedContents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) SetLockedContents(lockedContents bool) { + d.LockedContents = lockedContents + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineFlagsFieldLockedContents) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineFlags var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolylineFlags(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -37041,8 +37663,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber) Unma return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolylineFlags var marshaler = struct { embed }{ @@ -37052,7 +37674,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber) Mars return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags) String() string { if d == nil { return "" } @@ -37067,574 +37689,575 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber) Stri return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemRedactReplyType string - -const ( - DocAnnotationsList200ResponseAnnotationsItemRedactReplyTypeReply DocAnnotationsList200ResponseAnnotationsItemRedactReplyType = "reply" - DocAnnotationsList200ResponseAnnotationsItemRedactReplyTypeGroup DocAnnotationsList200ResponseAnnotationsItemRedactReplyType = "group" -) - -func NewDocAnnotationsList200ResponseAnnotationsItemRedactReplyTypeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemRedactReplyType, error) { - switch s { - case "reply": - return DocAnnotationsList200ResponseAnnotationsItemRedactReplyTypeReply, nil - case "group": - return DocAnnotationsList200ResponseAnnotationsItemRedactReplyTypeGroup, nil - } - var t DocAnnotationsList200ResponseAnnotationsItemRedactReplyType - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsList200ResponseAnnotationsItemRedactReplyType) Ptr() *DocAnnotationsList200ResponseAnnotationsItemRedactReplyType { - return &d -} - -type DocAnnotationsList200ResponseAnnotationsItemRedactTextAlign string +type DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQuality string const ( - DocAnnotationsList200ResponseAnnotationsItemRedactTextAlignLeft DocAnnotationsList200ResponseAnnotationsItemRedactTextAlign = "left" - DocAnnotationsList200ResponseAnnotationsItemRedactTextAlignCenter DocAnnotationsList200ResponseAnnotationsItemRedactTextAlign = "center" - DocAnnotationsList200ResponseAnnotationsItemRedactTextAlignRight DocAnnotationsList200ResponseAnnotationsItemRedactTextAlign = "right" + DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQualityDurable DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQuality = "durable" + DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQualityWeak DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQuality = "weak" ) -func NewDocAnnotationsList200ResponseAnnotationsItemRedactTextAlignFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemRedactTextAlign, error) { +func NewDocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQualityFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQuality, error) { switch s { - case "left": - return DocAnnotationsList200ResponseAnnotationsItemRedactTextAlignLeft, nil - case "center": - return DocAnnotationsList200ResponseAnnotationsItemRedactTextAlignCenter, nil - case "right": - return DocAnnotationsList200ResponseAnnotationsItemRedactTextAlignRight, nil + case "durable": + return DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQualityDurable, nil + case "weak": + return DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQualityWeak, nil } - var t DocAnnotationsList200ResponseAnnotationsItemRedactTextAlign + var t DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQuality return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsList200ResponseAnnotationsItemRedactTextAlign) Ptr() *DocAnnotationsList200ResponseAnnotationsItemRedactTextAlign { +func (d DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQuality) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQuality { return &d } -var ( - docAnnotationsList200ResponseAnnotationsItemSquareFieldRef = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemSquareFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemSquareFieldIndex = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemSquareFieldIdentityQuality = big.NewInt(1 << 3) - docAnnotationsList200ResponseAnnotationsItemSquareFieldNm = big.NewInt(1 << 4) - docAnnotationsList200ResponseAnnotationsItemSquareFieldFlags = big.NewInt(1 << 5) - docAnnotationsList200ResponseAnnotationsItemSquareFieldRect = big.NewInt(1 << 6) - docAnnotationsList200ResponseAnnotationsItemSquareFieldContents = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemSquareFieldSubject = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemSquareFieldAuthor = big.NewInt(1 << 9) - docAnnotationsList200ResponseAnnotationsItemSquareFieldCreated = big.NewInt(1 << 10) - docAnnotationsList200ResponseAnnotationsItemSquareFieldModified = big.NewInt(1 << 11) - docAnnotationsList200ResponseAnnotationsItemSquareFieldBlendMode = big.NewInt(1 << 12) - docAnnotationsList200ResponseAnnotationsItemSquareFieldInReplyTo = big.NewInt(1 << 13) - docAnnotationsList200ResponseAnnotationsItemSquareFieldReplyType = big.NewInt(1 << 14) - docAnnotationsList200ResponseAnnotationsItemSquareFieldUserID = big.NewInt(1 << 15) - docAnnotationsList200ResponseAnnotationsItemSquareFieldGroupID = big.NewInt(1 << 16) - docAnnotationsList200ResponseAnnotationsItemSquareFieldCreatedBy = big.NewInt(1 << 17) - docAnnotationsList200ResponseAnnotationsItemSquareFieldUpdatedBy = big.NewInt(1 << 18) - docAnnotationsList200ResponseAnnotationsItemSquareFieldActions = big.NewInt(1 << 19) - docAnnotationsList200ResponseAnnotationsItemSquareFieldColor = big.NewInt(1 << 20) - docAnnotationsList200ResponseAnnotationsItemSquareFieldOpacity = big.NewInt(1 << 21) - docAnnotationsList200ResponseAnnotationsItemSquareFieldStrokeWidth = big.NewInt(1 << 22) - docAnnotationsList200ResponseAnnotationsItemSquareFieldBorderStyle = big.NewInt(1 << 23) - docAnnotationsList200ResponseAnnotationsItemSquareFieldDashArray = big.NewInt(1 << 24) - docAnnotationsList200ResponseAnnotationsItemSquareFieldInteriorColor = big.NewInt(1 << 25) - docAnnotationsList200ResponseAnnotationsItemSquareFieldCloudyIntensity = big.NewInt(1 << 26) - docAnnotationsList200ResponseAnnotationsItemSquareFieldRectDifferences = big.NewInt(1 << 27) - docAnnotationsList200ResponseAnnotationsItemSquareFieldRotation = big.NewInt(1 << 28) - docAnnotationsList200ResponseAnnotationsItemSquareFieldUnrotatedRect = big.NewInt(1 << 29) -) - -type DocAnnotationsList200ResponseAnnotationsItemSquare struct { - Ref *DocAnnotationsList200ResponseAnnotationsItemSquareRef `json:"ref" url:"ref"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - IdentityQuality DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQuality `json:"identityQuality" url:"identityQuality"` - Nm *string `json:"nm,omitempty" url:"nm,omitempty"` - Flags *DocAnnotationsList200ResponseAnnotationsItemSquareFlags `json:"flags" url:"flags"` - Rect *DocAnnotationsList200ResponseAnnotationsItemSquareRect `json:"rect" url:"rect"` - Contents *string `json:"contents,omitempty" url:"contents,omitempty"` - Subject *string `json:"subject,omitempty" url:"subject,omitempty"` - Author *string `json:"author,omitempty" url:"author,omitempty"` - Created *time.Time `json:"created,omitempty" url:"created,omitempty"` - Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` - BlendMode DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode `json:"blendMode" url:"blendMode"` - InReplyTo *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` - ReplyType *DocAnnotationsList200ResponseAnnotationsItemSquareReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` - UserID *string `json:"userId,omitempty" url:"userId,omitempty"` - GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` - CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` - Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` - Color *DocAnnotationsList200ResponseAnnotationsItemSquareColor `json:"color" url:"color"` - Opacity float64 `json:"opacity" url:"opacity"` - StrokeWidth float64 `json:"strokeWidth" url:"strokeWidth"` - BorderStyle DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle `json:"borderStyle" url:"borderStyle"` - DashArray []float64 `json:"dashArray,omitempty" url:"dashArray,omitempty"` - InteriorColor *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor `json:"interiorColor,omitempty" url:"interiorColor,omitempty"` - CloudyIntensity *float64 `json:"cloudyIntensity,omitempty" url:"cloudyIntensity,omitempty"` - RectDifferences *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences `json:"rectDifferences,omitempty" url:"rectDifferences,omitempty"` - Rotation *float64 `json:"rotation,omitempty" url:"rotation,omitempty"` - UnrotatedRect *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect `json:"unrotatedRect,omitempty" url:"unrotatedRect,omitempty"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetRef() *DocAnnotationsList200ResponseAnnotationsItemSquareRef { - if d == nil { - return nil - } - return d.Ref -} +type DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo struct { + Kind string + ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber + Nm *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm + Index *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber + rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetIndex() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo) GetKind() string { if d == nil { - return 0 + return "" } - return d.Index + return d.Kind } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetIdentityQuality() DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQuality { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber { if d == nil { - return "" + return nil } - return d.IdentityQuality + return d.ObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetNm() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo) GetNm() *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetFlags() *DocAnnotationsList200ResponseAnnotationsItemSquareFlags { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex { if d == nil { return nil } - return d.Flags + return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetRect() *DocAnnotationsList200ResponseAnnotationsItemSquareRect { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` } - return d.Rect + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value + } + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetContents() *string { - if d == nil { - return nil +func (d DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err } - return d.Contents + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Nm != nil { + return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + } + if d.Index != nil { + return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetSubject() *string { - if d == nil { - return nil - } - return d.Subject +type DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber) error + VisitNm(*DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm) error + VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex) error } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetAuthor() *string { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) } - return d.Author + if d.Nm != nil { + return visitor.VisitNm(d.Nm) + } + if d.Index != nil { + return visitor.VisitIndex(d.Index) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetCreated() *time.Time { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo) validate() error { if d == nil { - return nil + return fmt.Errorf("type %T is nil", d) } - return d.Created + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Nm != nil { + fields = append(fields, "nm") + } + if d.Index != nil { + fields = append(fields, "index") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetModified() *time.Time { - if d == nil { - return nil - } - return d.Modified +var ( + docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexFieldRevision = big.NewInt(1 << 2) +) + +type DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision `json:"revision" url:"revision"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetBlendMode() DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex) GetPageObjectNumber() int { if d == nil { - return "" + return 0 } - return d.BlendMode + return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetInReplyTo() *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex) GetIndex() int { if d == nil { - return nil + return 0 } - return d.InReplyTo + return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetReplyType() *DocAnnotationsList200ResponseAnnotationsItemSquareReplyType { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision { if d == nil { return nil } - return d.ReplyType + return d.Revision } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetUserID() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.UserID + return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetGroupID() *string { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.GroupID + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetCreatedBy() *string { - if d == nil { - return nil - } - return d.CreatedBy +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexFieldPageObjectNumber) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetUpdatedBy() *string { - if d == nil { - return nil - } - return d.UpdatedBy +// SetIndex sets the Index field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexFieldIndex) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetActions() *PdfAnnotationActions { - if d == nil { - return nil - } - return d.Actions +// SetRevision sets the Revision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision) { + d.Revision = revision + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexFieldRevision) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetColor() *DocAnnotationsList200ResponseAnnotationsItemSquareColor { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - return d.Color -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetOpacity() float64 { - if d == nil { - return 0 + *d = DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err } - return d.Opacity + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetStrokeWidth() float64 { - if d == nil { - return 0 +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return d.StrokeWidth + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetBorderStyle() DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex) String() string { if d == nil { - return "" + return "" } - return d.BorderStyle -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetDashArray() []float64 { - if d == nil { - return nil + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } } - return d.DashArray -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetInteriorColor() *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor { - if d == nil { - return nil + if value, err := internal.StringifyJSON(d); err == nil { + return value } - return d.InteriorColor + return fmt.Sprintf("%#v", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetCloudyIntensity() *float64 { - if d == nil { - return nil - } - return d.CloudyIntensity +var ( + docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +type DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetRectDifferences() *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision) GetDocSessionID() string { if d == nil { - return nil + return "" } - return d.RectDifferences + return d.DocSessionID } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetRotation() *float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision) GetPageObjectNumber() int { if d == nil { - return nil + return 0 } - return d.Rotation + return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetUnrotatedRect() *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision) GetGeneration() int { if d == nil { - return nil + return 0 } - return d.UnrotatedRect + return d.Generation } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetRef sets the Ref field and marks it as non-optional; +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetRef(ref *DocAnnotationsList200ResponseAnnotationsItemSquareRef) { - d.Ref = ref - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldRef) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevisionFieldDocSessionID) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldPageObjectNumber) -} - -// SetIndex sets the Index field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldIndex) + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevisionFieldPageObjectNumber) } -// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; +// SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetIdentityQuality(identityQuality DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQuality) { - d.IdentityQuality = identityQuality - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldIdentityQuality) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevisionFieldGeneration) } -// SetNm sets the Nm field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetNm(nm *string) { - d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldNm) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -// SetFlags sets the Flags field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetFlags(flags *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) { - d.Flags = flags - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldFlags) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -// SetRect sets the Rect field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetRect(rect *DocAnnotationsList200ResponseAnnotationsItemSquareRect) { - d.Rect = rect - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldRect) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -// SetContents sets the Contents field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetContents(contents *string) { - d.Contents = contents - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldContents) -} +var ( + docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNmFieldNm = big.NewInt(1 << 1) +) -// SetSubject sets the Subject field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetSubject(subject *string) { - d.Subject = subject - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldSubject) -} +type DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` -// SetAuthor sets the Author field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetAuthor(author *string) { - d.Author = author - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldAuthor) -} + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` -// SetCreated sets the Created field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetCreated(created *time.Time) { - d.Created = created - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldCreated) + extraProperties map[string]interface{} + rawJSON json.RawMessage } -// SetModified sets the Modified field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetModified(modified *time.Time) { - d.Modified = modified - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldModified) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber } -// SetBlendMode sets the BlendMode field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetBlendMode(blendMode DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode) { - d.BlendMode = blendMode - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldBlendMode) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm } -// SetInReplyTo sets the InReplyTo field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetInReplyTo(inReplyTo *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo) { - d.InReplyTo = inReplyTo - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldInReplyTo) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties } -// SetReplyType sets the ReplyType field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetReplyType(replyType *DocAnnotationsList200ResponseAnnotationsItemSquareReplyType) { - d.ReplyType = replyType - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldReplyType) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) } -// SetUserID sets the UserID field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetUserID(userID *string) { - d.UserID = userID - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldUserID) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNmFieldPageObjectNumber) } -// SetGroupID sets the GroupID field and marks it as non-optional; +// SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetGroupID(groupID *string) { - d.GroupID = groupID - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldGroupID) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNmFieldNm) } -// SetCreatedBy sets the CreatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetCreatedBy(createdBy *string) { - d.CreatedBy = createdBy - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldCreatedBy) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetUpdatedBy(updatedBy *string) { - d.UpdatedBy = updatedBy - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldUpdatedBy) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -// SetActions sets the Actions field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetActions(actions *PdfAnnotationActions) { - d.Actions = actions - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldActions) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -// SetColor sets the Color field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetColor(color *DocAnnotationsList200ResponseAnnotationsItemSquareColor) { - d.Color = color - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldColor) -} +var ( + docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) -// SetOpacity sets the Opacity field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetOpacity(opacity float64) { - d.Opacity = opacity - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldOpacity) -} +type DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` -// SetStrokeWidth sets the StrokeWidth field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetStrokeWidth(strokeWidth float64) { - d.StrokeWidth = strokeWidth - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldStrokeWidth) -} + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` -// SetBorderStyle sets the BorderStyle field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetBorderStyle(borderStyle DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle) { - d.BorderStyle = borderStyle - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldBorderStyle) + extraProperties map[string]interface{} + rawJSON json.RawMessage } -// SetDashArray sets the DashArray field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetDashArray(dashArray []float64) { - d.DashArray = dashArray - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldDashArray) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber } -// SetInteriorColor sets the InteriorColor field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetInteriorColor(interiorColor *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor) { - d.InteriorColor = interiorColor - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldInteriorColor) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber } -// SetCloudyIntensity sets the CloudyIntensity field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetCloudyIntensity(cloudyIntensity *float64) { - d.CloudyIntensity = cloudyIntensity - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldCloudyIntensity) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties } -// SetRectDifferences sets the RectDifferences field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetRectDifferences(rectDifferences *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences) { - d.RectDifferences = rectDifferences - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldRectDifferences) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) } -// SetRotation sets the Rotation field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetRotation(rotation *float64) { - d.Rotation = rotation - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldRotation) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumberFieldPageObjectNumber) } -// SetUnrotatedRect sets the UnrotatedRect field and marks it as non-optional; +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetUnrotatedRect(unrotatedRect *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect) { - d.UnrotatedRect = unrotatedRect - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldUnrotatedRect) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) UnmarshalJSON(data []byte) error { - type embed DocAnnotationsList200ResponseAnnotationsItemSquare - var unmarshaler = struct { - embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` - }{ - embed: embed(*d), - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemSquare(unmarshaler.embed) - d.Created = unmarshaler.Created.TimePtr() - d.Modified = unmarshaler.Modified.TimePtr() + *d = DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -37644,22 +38267,18 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) UnmarshalJSON(data return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemSquare +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber var marshaler = struct { embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), - Created: internal.NewOptionalDateTime(d.Created), - Modified: internal.NewOptionalDateTime(d.Modified), + embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber) String() string { if d == nil { return "" } @@ -37674,105 +38293,32 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) String() string { return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode string +type DocAnnotationsList200ResponseAnnotationsItemPolylineIntent string const ( - DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeNormal DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode = "normal" - DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeMultiply DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode = "multiply" - DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeScreen DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode = "screen" - DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeOverlay DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode = "overlay" - DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeDarken DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode = "darken" - DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeLighten DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode = "lighten" - DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeColorDodge DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode = "color-dodge" - DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeColorBurn DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode = "color-burn" - DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeHardLight DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode = "hard-light" - DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeSoftLight DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode = "soft-light" - DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeDifference DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode = "difference" - DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeExclusion DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode = "exclusion" - DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeHue DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode = "hue" - DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeSaturation DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode = "saturation" - DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeColor DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode = "color" - DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeLuminosity DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode = "luminosity" + DocAnnotationsList200ResponseAnnotationsItemPolylineIntentPolyLineDimension DocAnnotationsList200ResponseAnnotationsItemPolylineIntent = "PolyLineDimension" ) -func NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode, error) { +func NewDocAnnotationsList200ResponseAnnotationsItemPolylineIntentFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolylineIntent, error) { switch s { - case "normal": - return DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeNormal, nil - case "multiply": - return DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeMultiply, nil - case "screen": - return DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeScreen, nil - case "overlay": - return DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeOverlay, nil - case "darken": - return DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeDarken, nil - case "lighten": - return DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeLighten, nil - case "color-dodge": - return DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeColorDodge, nil - case "color-burn": - return DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeColorBurn, nil - case "hard-light": - return DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeHardLight, nil - case "soft-light": - return DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeSoftLight, nil - case "difference": - return DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeDifference, nil - case "exclusion": - return DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeExclusion, nil - case "hue": - return DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeHue, nil - case "saturation": - return DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeSaturation, nil - case "color": - return DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeColor, nil - case "luminosity": - return DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeLuminosity, nil - } - var t DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode) Ptr() *DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode { - return &d -} - -type DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle string - -const ( - DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyleSolid DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle = "solid" - DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyleDashed DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle = "dashed" - DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyleBeveled DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle = "beveled" - DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyleInset DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle = "inset" -) - -func NewDocAnnotationsList200ResponseAnnotationsItemSquareBorderStyleFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle, error) { - switch s { - case "solid": - return DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyleSolid, nil - case "dashed": - return DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyleDashed, nil - case "beveled": - return DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyleBeveled, nil - case "inset": - return DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyleInset, nil + case "PolyLineDimension": + return DocAnnotationsList200ResponseAnnotationsItemPolylineIntentPolyLineDimension, nil } - var t DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle + var t DocAnnotationsList200ResponseAnnotationsItemPolylineIntent return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle) Ptr() *DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle { +func (d DocAnnotationsList200ResponseAnnotationsItemPolylineIntent) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolylineIntent { return &d } var ( - docAnnotationsList200ResponseAnnotationsItemSquareColorFieldR = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemSquareColorFieldG = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemSquareColorFieldB = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolylineInteriorColorFieldR = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolylineInteriorColorFieldG = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolylineInteriorColorFieldB = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemSquareColor struct { +type DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor struct { R int `json:"r" url:"r"` G int `json:"g" url:"g"` B int `json:"b" url:"b"` @@ -37784,35 +38330,35 @@ type DocAnnotationsList200ResponseAnnotationsItemSquareColor struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareColor) GetR() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor) GetR() int { if d == nil { return 0 } return d.R } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareColor) GetG() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor) GetG() int { if d == nil { return 0 } return d.G } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareColor) GetB() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor) GetB() int { if d == nil { return 0 } return d.B } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareColor) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -37821,32 +38367,32 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareColor) require(field // SetR sets the R field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareColor) SetR(r int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor) SetR(r int) { d.R = r - d.require(docAnnotationsList200ResponseAnnotationsItemSquareColorFieldR) + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineInteriorColorFieldR) } // SetG sets the G field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareColor) SetG(g int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor) SetG(g int) { d.G = g - d.require(docAnnotationsList200ResponseAnnotationsItemSquareColorFieldG) + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineInteriorColorFieldG) } // SetB sets the B field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareColor) SetB(b int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor) SetB(b int) { d.B = b - d.require(docAnnotationsList200ResponseAnnotationsItemSquareColorFieldB) + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineInteriorColorFieldB) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquareColor +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemSquareColor(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -37856,8 +38402,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareColor) UnmarshalJSON( return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemSquareColor +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor var marshaler = struct { embed }{ @@ -37867,7 +38413,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareColor) MarshalJSON() return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareColor) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor) String() string { if d == nil { return "" } @@ -37883,29 +38429,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareColor) String() strin } var ( - docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldInvisible = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldHidden = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldPrint = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldNoZoom = big.NewInt(1 << 3) - docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldNoRotate = big.NewInt(1 << 4) - docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldNoView = big.NewInt(1 << 5) - docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldReadOnly = big.NewInt(1 << 6) - docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldLocked = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldToggleNoView = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldLockedContents = big.NewInt(1 << 9) + docAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsFieldStart = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsFieldEnd = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemSquareFlags struct { - Invisible bool `json:"invisible" url:"invisible"` - Hidden bool `json:"hidden" url:"hidden"` - Print bool `json:"print" url:"print"` - NoZoom bool `json:"noZoom" url:"noZoom"` - NoRotate bool `json:"noRotate" url:"noRotate"` - NoView bool `json:"noView" url:"noView"` - ReadOnly bool `json:"readOnly" url:"readOnly"` - Locked bool `json:"locked" url:"locked"` - ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` - LockedContents bool `json:"lockedContents" url:"lockedContents"` +type DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings struct { + Start DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart `json:"start" url:"start"` + End DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd `json:"end" url:"end"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -37914,167 +38444,55 @@ type DocAnnotationsList200ResponseAnnotationsItemSquareFlags struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) GetInvisible() bool { - if d == nil { - return false - } - return d.Invisible -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) GetHidden() bool { - if d == nil { - return false - } - return d.Hidden -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) GetPrint() bool { - if d == nil { - return false - } - return d.Print -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) GetNoZoom() bool { - if d == nil { - return false - } - return d.NoZoom -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) GetNoRotate() bool { - if d == nil { - return false - } - return d.NoRotate -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) GetNoView() bool { - if d == nil { - return false - } - return d.NoView -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) GetReadOnly() bool { - if d == nil { - return false - } - return d.ReadOnly -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) GetLocked() bool { - if d == nil { - return false - } - return d.Locked -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) GetToggleNoView() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings) GetStart() DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart { if d == nil { - return false + return "" } - return d.ToggleNoView + return d.Start } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) GetLockedContents() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings) GetEnd() DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd { if d == nil { - return false + return "" } - return d.LockedContents + return d.End } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetInvisible sets the Invisible field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) SetInvisible(invisible bool) { - d.Invisible = invisible - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldInvisible) -} - -// SetHidden sets the Hidden field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) SetHidden(hidden bool) { - d.Hidden = hidden - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldHidden) -} - -// SetPrint sets the Print field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) SetPrint(print bool) { - d.Print = print - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldPrint) -} - -// SetNoZoom sets the NoZoom field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) SetNoZoom(noZoom bool) { - d.NoZoom = noZoom - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldNoZoom) -} - -// SetNoRotate sets the NoRotate field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) SetNoRotate(noRotate bool) { - d.NoRotate = noRotate - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldNoRotate) -} - -// SetNoView sets the NoView field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) SetNoView(noView bool) { - d.NoView = noView - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldNoView) -} - -// SetReadOnly sets the ReadOnly field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) SetReadOnly(readOnly bool) { - d.ReadOnly = readOnly - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldReadOnly) -} - -// SetLocked sets the Locked field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) SetLocked(locked bool) { - d.Locked = locked - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldLocked) -} - -// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// SetStart sets the Start field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) SetToggleNoView(toggleNoView bool) { - d.ToggleNoView = toggleNoView - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldToggleNoView) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings) SetStart(start DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart) { + d.Start = start + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsFieldStart) } -// SetLockedContents sets the LockedContents field and marks it as non-optional; +// SetEnd sets the End field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) SetLockedContents(lockedContents bool) { - d.LockedContents = lockedContents - d.require(docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldLockedContents) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings) SetEnd(end DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd) { + d.End = end + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsFieldEnd) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquareFlags +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemSquareFlags(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -38084,8 +38502,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) UnmarshalJSON( return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemSquareFlags +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings var marshaler = struct { embed }{ @@ -38095,7 +38513,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) MarshalJSON() return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings) String() string { if d == nil { return "" } @@ -38110,112 +38528,182 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) String() strin return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQuality string +type DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd string const ( - DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQualityDurable DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQuality = "durable" - DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQualityWeak DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQuality = "weak" + DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndNone DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd = "none" + DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndSquare DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd = "square" + DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndCircle DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd = "circle" + DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndDiamond DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd = "diamond" + DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndOpenArrow DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd = "open-arrow" + DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndClosedArrow DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd = "closed-arrow" + DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndButt DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd = "butt" + DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndROpenArrow DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd = "r-open-arrow" + DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndRClosedArrow DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd = "r-closed-arrow" + DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndSlash DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd = "slash" ) -func NewDocAnnotationsList200ResponseAnnotationsItemSquareIdentityQualityFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQuality, error) { +func NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd, error) { switch s { - case "durable": - return DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQualityDurable, nil - case "weak": - return DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQualityWeak, nil + case "none": + return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndNone, nil + case "square": + return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndSquare, nil + case "circle": + return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndCircle, nil + case "diamond": + return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndDiamond, nil + case "open-arrow": + return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndOpenArrow, nil + case "closed-arrow": + return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndClosedArrow, nil + case "butt": + return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndButt, nil + case "r-open-arrow": + return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndROpenArrow, nil + case "r-closed-arrow": + return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndRClosedArrow, nil + case "slash": + return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEndSlash, nil } - var t DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQuality + var t DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQuality) Ptr() *DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQuality { +func (d DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd { return &d } -type DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo struct { - Kind string - ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber - Nm *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm - Index *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex +type DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart string + +const ( + DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartNone DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart = "none" + DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartSquare DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart = "square" + DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartCircle DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart = "circle" + DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartDiamond DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart = "diamond" + DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartOpenArrow DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart = "open-arrow" + DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartClosedArrow DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart = "closed-arrow" + DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartButt DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart = "butt" + DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartROpenArrow DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart = "r-open-arrow" + DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartRClosedArrow DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart = "r-closed-arrow" + DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartSlash DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart = "slash" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart, error) { + switch s { + case "none": + return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartNone, nil + case "square": + return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartSquare, nil + case "circle": + return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartCircle, nil + case "diamond": + return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartDiamond, nil + case "open-arrow": + return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartOpenArrow, nil + case "closed-arrow": + return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartClosedArrow, nil + case "butt": + return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartButt, nil + case "r-open-arrow": + return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartROpenArrow, nil + case "r-closed-arrow": + return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartRClosedArrow, nil + case "slash": + return DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStartSlash, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart { + return &d +} + +type DocAnnotationsList200ResponseAnnotationsItemPolylineMeasure struct { + Subtype string + Rl *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl + Geo *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureGeo + Unknown *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureUnknown rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo) GetKind() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasure) GetSubtype() string { if d == nil { return "" } - return d.Kind + return d.Subtype } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasure) GetRl() *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl { if d == nil { return nil } - return d.ObjectNumber + return d.Rl } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo) GetNm() *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasure) GetGeo() *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureGeo { if d == nil { return nil } - return d.Nm + return d.Geo } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasure) GetUnknown() *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureUnknown { if d == nil { return nil } - return d.Index + return d.Unknown } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo) UnmarshalJSON(data []byte) error { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasure) UnmarshalJSON(data []byte) error { var unmarshaler struct { - Kind string `json:"kind"` + Subtype string `json:"subtype"` } if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) + d.Subtype = unmarshaler.Subtype + if unmarshaler.Subtype == "" { + return fmt.Errorf("%T did not include discriminant subtype", d) } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber) + switch unmarshaler.Subtype { + case "RL": + value := new(DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl) if err := json.Unmarshal(data, &value); err != nil { return err } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm) + d.Rl = value + case "GEO": + value := new(DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureGeo) if err := json.Unmarshal(data, &value); err != nil { return err } - d.Nm = value - case "index": - value := new(DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex) + d.Geo = value + case "unknown": + value := new(DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureUnknown) if err := json.Unmarshal(data, &value); err != nil { return err } - d.Index = value + d.Unknown = value } d.rawJSON = json.RawMessage(data) return nil } -func (d DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsList200ResponseAnnotationsItemPolylineMeasure) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + if d.Rl != nil { + return internal.MarshalJSONWithExtraProperty(d.Rl, "subtype", "RL") } - if d.Nm != nil { - return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + if d.Geo != nil { + return internal.MarshalJSONWithExtraProperty(d.Geo, "subtype", "GEO") } - if d.Index != nil { - return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + if d.Unknown != nil { + return internal.MarshalJSONWithExtraProperty(d.Unknown, "subtype", "unknown") } if len(d.rawJSON) > 0 { return d.rawJSON, nil @@ -38223,58 +38711,58 @@ func (d DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo) MarshalJSON return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToVisitor interface { - VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber) error - VisitNm(*DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm) error - VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex) error +type DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureVisitor interface { + VisitRl(*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl) error + VisitGeo(*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureGeo) error + VisitUnknown(*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureUnknown) error } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasure) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureVisitor) error { + if d.Rl != nil { + return visitor.VisitRl(d.Rl) } - if d.Nm != nil { - return visitor.VisitNm(d.Nm) + if d.Geo != nil { + return visitor.VisitGeo(d.Geo) } - if d.Index != nil { - return visitor.VisitIndex(d.Index) + if d.Unknown != nil { + return visitor.VisitUnknown(d.Unknown) } return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo) validate() error { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasure) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") + if d.Rl != nil { + fields = append(fields, "RL") } - if d.Nm != nil { - fields = append(fields, "nm") + if d.Geo != nil { + fields = append(fields, "GEO") } - if d.Index != nil { - fields = append(fields, "index") + if d.Unknown != nil { + fields = append(fields, "unknown") } if len(fields) == 0 { - if d.Kind != "" { + if d.Subtype != "" { if len(d.rawJSON) > 0 { return nil } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Subtype) } return fmt.Errorf("type %T is empty", d) } if len(fields) > 1 { return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) } - if d.Kind != "" { + if d.Subtype != "" { field := fields[0] - if d.Kind != field { + if d.Subtype != field { return fmt.Errorf( "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", d, - d.Kind, + d.Subtype, d, ) } @@ -38282,16 +38770,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo) validate() return nil } -var ( - docAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexFieldRevision = big.NewInt(1 << 2) -) - -type DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureGeo struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -38300,69 +38779,27 @@ type DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex) GetIndex() int { - if d == nil { - return 0 - } - return d.Index -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision { - if d == nil { - return nil - } - return d.Revision -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureGeo) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureGeo) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexFieldPageObjectNumber) -} - -// SetIndex sets the Index field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexFieldIndex) -} - -// SetRevision sets the Revision field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision) { - d.Revision = revision - d.require(docAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexFieldRevision) -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureGeo) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureGeo var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureGeo(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -38372,8 +38809,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex) Unmar return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureGeo) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureGeo var marshaler = struct { embed }{ @@ -38383,7 +38820,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex) Marsh return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureGeo) String() string { if d == nil { return "" } @@ -38399,15 +38836,27 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex) Strin } var ( - docAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlFieldRatio = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlFieldX = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlFieldY = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlFieldDistance = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlFieldArea = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlFieldAngle = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlFieldSlope = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlFieldOrigin = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlFieldCyx = big.NewInt(1 << 8) ) -type DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl struct { + Ratio *string `json:"ratio,omitempty" url:"ratio,omitempty"` + X []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem `json:"x" url:"x"` + Y []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem `json:"y,omitempty" url:"y,omitempty"` + Distance []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem `json:"distance" url:"distance"` + Area []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem `json:"area" url:"area"` + Angle []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem `json:"angle,omitempty" url:"angle,omitempty"` + Slope []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem `json:"slope,omitempty" url:"slope,omitempty"` + Origin *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin `json:"origin,omitempty" url:"origin,omitempty"` + Cyx *float64 `json:"cyx,omitempty" url:"cyx,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -38416,69 +38865,153 @@ type DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision st rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl) GetRatio() *string { if d == nil { - return "" + return nil } - return d.DocSessionID + return d.Ratio } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl) GetX() []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem { if d == nil { - return 0 + return nil } - return d.PageObjectNumber + return d.X } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision) GetGeneration() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl) GetY() []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem { if d == nil { - return 0 + return nil } - return d.Generation + return d.Y } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl) GetDistance() []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem { if d == nil { return nil } - return d.extraProperties + return d.Distance } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl) GetArea() []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem { + if d == nil { + return nil + } + return d.Area +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl) GetAngle() []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem { + if d == nil { + return nil + } + return d.Angle +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl) GetSlope() []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem { + if d == nil { + return nil + } + return d.Slope +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl) GetOrigin() *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin { + if d == nil { + return nil + } + return d.Origin +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl) GetCyx() *float64 { + if d == nil { + return nil + } + return d.Cyx +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// SetRatio sets the Ratio field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevisionFieldDocSessionID) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl) SetRatio(ratio *string) { + d.Ratio = ratio + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlFieldRatio) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevisionFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl) SetX(x []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem) { + d.X = x + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlFieldX) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevisionFieldGeneration) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl) SetY(y []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem) { + d.Y = y + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlFieldY) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision +// SetDistance sets the Distance field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl) SetDistance(distance []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem) { + d.Distance = distance + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlFieldDistance) +} + +// SetArea sets the Area field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl) SetArea(area []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem) { + d.Area = area + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlFieldArea) +} + +// SetAngle sets the Angle field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl) SetAngle(angle []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem) { + d.Angle = angle + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlFieldAngle) +} + +// SetSlope sets the Slope field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl) SetSlope(slope []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem) { + d.Slope = slope + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlFieldSlope) +} + +// SetOrigin sets the Origin field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl) SetOrigin(origin *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin) { + d.Origin = origin + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlFieldOrigin) +} + +// SetCyx sets the Cyx field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl) SetCyx(cyx *float64) { + d.Cyx = cyx + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlFieldCyx) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -38488,8 +39021,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevisio return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl var marshaler = struct { embed }{ @@ -38499,7 +39032,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevisio return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl) String() string { if d == nil { return "" } @@ -38515,13 +39048,29 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevisio } var ( - docAnnotationsList200ResponseAnnotationsItemSquareInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemSquareInReplyToNmFieldNm = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFieldLabelPosition = big.NewInt(1 << 9) ) -type DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` +type DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -38530,55 +39079,167 @@ type DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem) GetUnit() string { if d == nil { - return 0 + return "" } - return d.PageObjectNumber + return d.Unit } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm) GetNm() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem) GetConversion() *float64 { if d == nil { - return "" + return nil } - return d.Nm + return d.Conversion } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem) GetFraction() *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFraction { + if d == nil { + return nil + } + return d.Fraction +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem) GetPrecision() *int { + if d == nil { + return nil + } + return d.Precision +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem) GetFixed() *bool { + if d == nil { + return nil + } + return d.Fixed +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem) GetThousands() *string { + if d == nil { + return nil + } + return d.Thousands +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem) GetDecimal() *string { + if d == nil { + return nil + } + return d.Decimal +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem) GetPrefixSpacing() *string { + if d == nil { + return nil + } + return d.PrefixSpacing +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem) GetSuffixSpacing() *string { + if d == nil { + return nil + } + return d.SuffixSpacing +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem) GetLabelPosition() *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemLabelPosition { + if d == nil { + return nil + } + return d.LabelPosition +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemSquareInReplyToNmFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFieldUnit) } -// SetNm sets the Nm field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemSquareInReplyToNmFieldNm) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFieldConversion) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm +// SetFraction sets the Fraction field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem) SetFraction(fraction *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFieldFraction) +} + +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFieldPrecision) +} + +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem) SetLabelPosition(labelPosition *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFieldLabelPosition) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -38588,8 +39249,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm) Unmarsha return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem var marshaler = struct { embed }{ @@ -38599,7 +39260,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm) MarshalJ return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem) String() string { if d == nil { return "" } @@ -38614,14 +39275,80 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm) String() return fmt.Sprintf("%#v", d) } +type DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFraction string + +const ( + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFractionDecimal DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFraction = "decimal" + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFractionFraction DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFraction = "fraction" + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFractionRound DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFraction = "round" + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFractionTruncate DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFraction = "truncate" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFractionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFraction, error) { + switch s { + case "decimal": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFractionDecimal, nil + case "fraction": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFractionFraction, nil + case "round": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFractionRound, nil + case "truncate": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFractionTruncate, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFraction) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFraction { + return &d +} + +type DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemLabelPosition string + +const ( + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemLabelPositionSuffix DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemLabelPosition = "suffix" + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemLabelPositionPrefix DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemLabelPosition = "prefix" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemLabelPositionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemLabelPosition, error) { + switch s { + case "suffix": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemLabelPositionPrefix, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemLabelPosition) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemLabelPosition { + return &d +} + var ( - docAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFieldLabelPosition = big.NewInt(1 << 9) ) -type DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` +type DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -38630,55 +39357,167 @@ type DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber str rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem) GetUnit() string { if d == nil { - return 0 + return "" } - return d.PageObjectNumber + return d.Unit } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem) GetConversion() *float64 { if d == nil { - return 0 + return nil } - return d.AnnotObjectNumber + return d.Conversion } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem) GetFraction() *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFraction { + if d == nil { + return nil + } + return d.Fraction +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem) GetPrecision() *int { + if d == nil { + return nil + } + return d.Precision +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem) GetFixed() *bool { + if d == nil { + return nil + } + return d.Fixed +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem) GetThousands() *string { + if d == nil { + return nil + } + return d.Thousands +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem) GetDecimal() *string { + if d == nil { + return nil + } + return d.Decimal +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem) GetPrefixSpacing() *string { + if d == nil { + return nil + } + return d.PrefixSpacing +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem) GetSuffixSpacing() *string { + if d == nil { + return nil + } + return d.SuffixSpacing +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem) GetLabelPosition() *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemLabelPosition { + if d == nil { + return nil + } + return d.LabelPosition +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumberFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFieldUnit) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumberFieldAnnotObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFieldConversion) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber +// SetFraction sets the Fraction field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem) SetFraction(fraction *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFieldFraction) +} + +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFieldPrecision) +} + +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem) SetLabelPosition(labelPosition *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFieldLabelPosition) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -38688,8 +39527,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem var marshaler = struct { embed }{ @@ -38699,7 +39538,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem) String() string { if d == nil { return "" } @@ -38714,16 +39553,80 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber return fmt.Sprintf("%#v", d) } +type DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFraction string + +const ( + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFractionDecimal DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFraction = "decimal" + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFractionFraction DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFraction = "fraction" + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFractionRound DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFraction = "round" + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFractionTruncate DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFraction = "truncate" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFractionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFraction, error) { + switch s { + case "decimal": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFractionDecimal, nil + case "fraction": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFractionFraction, nil + case "round": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFractionRound, nil + case "truncate": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFractionTruncate, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFraction) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFraction { + return &d +} + +type DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemLabelPosition string + +const ( + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemLabelPositionSuffix DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemLabelPosition = "suffix" + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemLabelPositionPrefix DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemLabelPosition = "prefix" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemLabelPositionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemLabelPosition, error) { + switch s { + case "suffix": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemLabelPositionPrefix, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemLabelPosition) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemLabelPosition { + return &d +} + var ( - docAnnotationsList200ResponseAnnotationsItemSquareInteriorColorFieldR = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemSquareInteriorColorFieldG = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemSquareInteriorColorFieldB = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFieldLabelPosition = big.NewInt(1 << 9) ) -type DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor struct { - R int `json:"r" url:"r"` - G int `json:"g" url:"g"` - B int `json:"b" url:"b"` +type DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -38732,69 +39635,167 @@ type DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor) GetR() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem) GetUnit() string { if d == nil { - return 0 + return "" } - return d.R + return d.Unit } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor) GetG() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem) GetConversion() *float64 { if d == nil { - return 0 + return nil } - return d.G + return d.Conversion } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor) GetB() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem) GetFraction() *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFraction { if d == nil { - return 0 + return nil } - return d.B + return d.Fraction } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem) GetPrecision() *int { + if d == nil { + return nil + } + return d.Precision +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem) GetFixed() *bool { + if d == nil { + return nil + } + return d.Fixed +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem) GetThousands() *string { + if d == nil { + return nil + } + return d.Thousands +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem) GetDecimal() *string { + if d == nil { + return nil + } + return d.Decimal +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem) GetPrefixSpacing() *string { + if d == nil { + return nil + } + return d.PrefixSpacing +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem) GetSuffixSpacing() *string { + if d == nil { + return nil + } + return d.SuffixSpacing +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem) GetLabelPosition() *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemLabelPosition { + if d == nil { + return nil + } + return d.LabelPosition +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetR sets the R field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor) SetR(r int) { - d.R = r - d.require(docAnnotationsList200ResponseAnnotationsItemSquareInteriorColorFieldR) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFieldUnit) } -// SetG sets the G field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor) SetG(g int) { - d.G = g - d.require(docAnnotationsList200ResponseAnnotationsItemSquareInteriorColorFieldG) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFieldConversion) } -// SetB sets the B field and marks it as non-optional; +// SetFraction sets the Fraction field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor) SetB(b int) { - d.B = b - d.require(docAnnotationsList200ResponseAnnotationsItemSquareInteriorColorFieldB) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem) SetFraction(fraction *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFieldFraction) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFieldPrecision) +} + +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem) SetLabelPosition(labelPosition *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFieldLabelPosition) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -38804,8 +39805,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor) Unmars return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem var marshaler = struct { embed }{ @@ -38815,7 +39816,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor) Marsha return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem) String() string { if d == nil { return "" } @@ -38830,18 +39831,64 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor) String return fmt.Sprintf("%#v", d) } +type DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFraction string + +const ( + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFractionDecimal DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFraction = "decimal" + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFractionFraction DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFraction = "fraction" + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFractionRound DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFraction = "round" + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFractionTruncate DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFraction = "truncate" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFractionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFraction, error) { + switch s { + case "decimal": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFractionDecimal, nil + case "fraction": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFractionFraction, nil + case "round": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFractionRound, nil + case "truncate": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFractionTruncate, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFraction) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFraction { + return &d +} + +type DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemLabelPosition string + +const ( + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemLabelPositionSuffix DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemLabelPosition = "suffix" + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemLabelPositionPrefix DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemLabelPosition = "prefix" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemLabelPositionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemLabelPosition, error) { + switch s { + case "suffix": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemLabelPositionPrefix, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemLabelPosition) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemLabelPosition { + return &d +} + var ( - docAnnotationsList200ResponseAnnotationsItemSquareRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemSquareRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemSquareRectFieldRight = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemSquareRectFieldTop = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOriginFieldX = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOriginFieldY = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemSquareRect struct { - Left float64 `json:"left" url:"left"` - Bottom float64 `json:"bottom" url:"bottom"` - Right float64 `json:"right" url:"right"` - Top float64 `json:"top" url:"top"` +type DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -38850,83 +39897,55 @@ type DocAnnotationsList200ResponseAnnotationsItemSquareRect struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRect) GetLeft() float64 { - if d == nil { - return 0 - } - return d.Left -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRect) GetBottom() float64 { - if d == nil { - return 0 - } - return d.Bottom -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRect) GetRight() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin) GetX() float64 { if d == nil { return 0 } - return d.Right + return d.X } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRect) GetTop() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin) GetY() float64 { if d == nil { return 0 } - return d.Top + return d.Y } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRect) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRect) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetLeft sets the Left field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRect) SetLeft(left float64) { - d.Left = left - d.require(docAnnotationsList200ResponseAnnotationsItemSquareRectFieldLeft) -} - -// SetBottom sets the Bottom field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRect) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsList200ResponseAnnotationsItemSquareRectFieldBottom) -} - -// SetRight sets the Right field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRect) SetRight(right float64) { - d.Right = right - d.require(docAnnotationsList200ResponseAnnotationsItemSquareRectFieldRight) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin) SetX(x float64) { + d.X = x + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOriginFieldX) } -// SetTop sets the Top field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRect) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsList200ResponseAnnotationsItemSquareRectFieldTop) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin) SetY(y float64) { + d.Y = y + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOriginFieldY) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquareRect +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemSquareRect(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -38936,8 +39955,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRect) UnmarshalJSON(d return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemSquareRect +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin var marshaler = struct { embed }{ @@ -38947,7 +39966,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRect) MarshalJSON() ( return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRect) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin) String() string { if d == nil { return "" } @@ -38963,17 +39982,29 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRect) String() string } var ( - docAnnotationsList200ResponseAnnotationsItemSquareRectDifferencesFieldLeft = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemSquareRectDifferencesFieldTop = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemSquareRectDifferencesFieldRight = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemSquareRectDifferencesFieldBottom = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFieldLabelPosition = big.NewInt(1 << 9) ) -type DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences struct { - Left float64 `json:"left" url:"left"` - Top float64 `json:"top" url:"top"` - Right float64 `json:"right" url:"right"` - Bottom float64 `json:"bottom" url:"bottom"` +type DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -38982,83 +40013,167 @@ type DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences) GetLeft() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem) GetUnit() string { if d == nil { - return 0 + return "" } - return d.Left + return d.Unit } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences) GetTop() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem) GetConversion() *float64 { if d == nil { - return 0 + return nil } - return d.Top + return d.Conversion } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences) GetRight() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem) GetFraction() *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFraction { if d == nil { - return 0 + return nil } - return d.Right + return d.Fraction } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences) GetBottom() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem) GetPrecision() *int { if d == nil { - return 0 + return nil } - return d.Bottom + return d.Precision } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem) GetFixed() *bool { + if d == nil { + return nil + } + return d.Fixed +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem) GetThousands() *string { + if d == nil { + return nil + } + return d.Thousands +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem) GetDecimal() *string { + if d == nil { + return nil + } + return d.Decimal +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem) GetPrefixSpacing() *string { + if d == nil { + return nil + } + return d.PrefixSpacing +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem) GetSuffixSpacing() *string { + if d == nil { + return nil + } + return d.SuffixSpacing +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem) GetLabelPosition() *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemLabelPosition { + if d == nil { + return nil + } + return d.LabelPosition +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetLeft sets the Left field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences) SetLeft(left float64) { - d.Left = left - d.require(docAnnotationsList200ResponseAnnotationsItemSquareRectDifferencesFieldLeft) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFieldUnit) } -// SetTop sets the Top field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsList200ResponseAnnotationsItemSquareRectDifferencesFieldTop) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFieldConversion) } -// SetRight sets the Right field and marks it as non-optional; +// SetFraction sets the Fraction field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences) SetRight(right float64) { - d.Right = right - d.require(docAnnotationsList200ResponseAnnotationsItemSquareRectDifferencesFieldRight) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem) SetFraction(fraction *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFieldFraction) } -// SetBottom sets the Bottom field and marks it as non-optional; +// SetPrecision sets the Precision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsList200ResponseAnnotationsItemSquareRectDifferencesFieldBottom) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFieldPrecision) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem) SetLabelPosition(labelPosition *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFieldLabelPosition) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -39068,8 +40183,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences) Unma return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem var marshaler = struct { embed }{ @@ -39079,7 +40194,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences) Mars return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem) String() string { if d == nil { return "" } @@ -39094,237 +40209,249 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences) Stri return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemSquareRef struct { - Kind string - ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber - Nm *DocAnnotationsList200ResponseAnnotationsItemSquareRefNm - Index *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex +type DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFraction string - rawJSON json.RawMessage +const ( + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFractionDecimal DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFraction = "decimal" + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFractionFraction DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFraction = "fraction" + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFractionRound DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFraction = "round" + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFractionTruncate DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFraction = "truncate" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFractionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFraction, error) { + switch s { + case "decimal": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFractionDecimal, nil + case "fraction": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFractionFraction, nil + case "round": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFractionRound, nil + case "truncate": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFractionTruncate, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRef) GetKind() string { - if d == nil { - return "" +func (d DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFraction) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFraction { + return &d +} + +type DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemLabelPosition string + +const ( + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemLabelPositionSuffix DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemLabelPosition = "suffix" + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemLabelPositionPrefix DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemLabelPosition = "prefix" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemLabelPositionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemLabelPosition, error) { + switch s { + case "suffix": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemLabelPositionPrefix, nil } - return d.Kind + var t DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRef) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber { +func (d DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemLabelPosition) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemLabelPosition { + return &d +} + +var ( + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFieldLabelPosition = big.NewInt(1 << 9) +) + +type DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem) GetUnit() string { if d == nil { - return nil + return "" } - return d.ObjectNumber + return d.Unit } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRef) GetNm() *DocAnnotationsList200ResponseAnnotationsItemSquareRefNm { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem) GetConversion() *float64 { if d == nil { return nil } - return d.Nm + return d.Conversion } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRef) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem) GetFraction() *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFraction { if d == nil { return nil } - return d.Index + return d.Fraction } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRef) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsList200ResponseAnnotationsItemSquareRefNm) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Nm = value - case "index": - value := new(DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Index = value +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem) GetPrecision() *int { + if d == nil { + return nil } - d.rawJSON = json.RawMessage(data) - return nil + return d.Precision } -func (d DocAnnotationsList200ResponseAnnotationsItemSquareRef) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Nm != nil { - return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") - } - if d.Index != nil { - return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem) GetFixed() *bool { + if d == nil { + return nil } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) -} - -type DocAnnotationsList200ResponseAnnotationsItemSquareRefVisitor interface { - VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber) error - VisitNm(*DocAnnotationsList200ResponseAnnotationsItemSquareRefNm) error - VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex) error + return d.Fixed } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRef) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemSquareRefVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) - } - if d.Nm != nil { - return visitor.VisitNm(d.Nm) - } - if d.Index != nil { - return visitor.VisitIndex(d.Index) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem) GetThousands() *string { + if d == nil { + return nil } - return fmt.Errorf("type %T does not define a non-empty union type", d) + return d.Thousands } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRef) validate() error { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem) GetDecimal() *string { if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Nm != nil { - fields = append(fields, "nm") - } - if d.Index != nil { - fields = append(fields, "index") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } + return nil } - return nil -} - -var ( - docAnnotationsList200ResponseAnnotationsItemSquareRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemSquareRefIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemSquareRefIndexFieldRevision = big.NewInt(1 << 2) -) - -type DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision `json:"revision" url:"revision"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage + return d.Decimal } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem) GetPrefixSpacing() *string { if d == nil { - return 0 + return nil } - return d.PageObjectNumber + return d.PrefixSpacing } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex) GetIndex() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem) GetSuffixSpacing() *string { if d == nil { - return 0 + return nil } - return d.Index + return d.SuffixSpacing } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem) GetLabelPosition() *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemLabelPosition { if d == nil { return nil } - return d.Revision + return d.LabelPosition } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemSquareRefIndexFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFieldUnit) } -// SetIndex sets the Index field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemSquareRefIndexFieldIndex) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFieldConversion) } -// SetRevision sets the Revision field and marks it as non-optional; +// SetFraction sets the Fraction field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision) { - d.Revision = revision - d.require(docAnnotationsList200ResponseAnnotationsItemSquareRefIndexFieldRevision) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem) SetFraction(fraction *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFieldFraction) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFieldPrecision) +} + +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem) SetLabelPosition(labelPosition *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFieldLabelPosition) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -39334,8 +40461,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex) UnmarshalJS return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem var marshaler = struct { embed }{ @@ -39345,7 +40472,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex) MarshalJSON return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem) String() string { if d == nil { return "" } @@ -39360,16 +40487,80 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex) String() st return fmt.Sprintf("%#v", d) } +type DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFraction string + +const ( + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFractionDecimal DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFraction = "decimal" + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFractionFraction DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFraction = "fraction" + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFractionRound DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFraction = "round" + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFractionTruncate DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFraction = "truncate" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFractionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFraction, error) { + switch s { + case "decimal": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFractionDecimal, nil + case "fraction": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFractionFraction, nil + case "round": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFractionRound, nil + case "truncate": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFractionTruncate, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFraction) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFraction { + return &d +} + +type DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemLabelPosition string + +const ( + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemLabelPositionSuffix DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemLabelPosition = "suffix" + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemLabelPositionPrefix DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemLabelPosition = "prefix" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemLabelPositionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemLabelPosition, error) { + switch s { + case "suffix": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemLabelPositionPrefix, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemLabelPosition) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemLabelPosition { + return &d +} + var ( - docAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFieldLabelPosition = big.NewInt(1 << 9) ) -type DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -39378,69 +40569,167 @@ type DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem) GetUnit() string { if d == nil { return "" } - return d.DocSessionID + return d.Unit } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem) GetConversion() *float64 { if d == nil { - return 0 + return nil } - return d.PageObjectNumber + return d.Conversion } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision) GetGeneration() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem) GetFraction() *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFraction { if d == nil { - return 0 + return nil } - return d.Generation + return d.Fraction } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem) GetPrecision() *int { + if d == nil { + return nil + } + return d.Precision +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem) GetFixed() *bool { + if d == nil { + return nil + } + return d.Fixed +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem) GetThousands() *string { + if d == nil { + return nil + } + return d.Thousands +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem) GetDecimal() *string { + if d == nil { + return nil + } + return d.Decimal +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem) GetPrefixSpacing() *string { + if d == nil { + return nil + } + return d.PrefixSpacing +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem) GetSuffixSpacing() *string { + if d == nil { + return nil + } + return d.SuffixSpacing +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem) GetLabelPosition() *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemLabelPosition { + if d == nil { + return nil + } + return d.LabelPosition +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevisionFieldDocSessionID) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFieldUnit) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevisionFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFieldConversion) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetFraction sets the Fraction field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevisionFieldGeneration) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem) SetFraction(fraction *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFieldFraction) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFieldPrecision) +} + +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem) SetLabelPosition(labelPosition *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFieldLabelPosition) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -39450,8 +40739,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision) Unm return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem var marshaler = struct { embed }{ @@ -39461,7 +40750,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision) Mar return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem) String() string { if d == nil { return "" } @@ -39476,71 +40765,86 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision) Str return fmt.Sprintf("%#v", d) } -var ( - docAnnotationsList200ResponseAnnotationsItemSquareRefNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemSquareRefNmFieldNm = big.NewInt(1 << 1) -) +type DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFraction string -type DocAnnotationsList200ResponseAnnotationsItemSquareRefNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` +const ( + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFractionDecimal DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFraction = "decimal" + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFractionFraction DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFraction = "fraction" + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFractionRound DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFraction = "round" + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFractionTruncate DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFraction = "truncate" +) - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +func NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFractionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFraction, error) { + switch s { + case "decimal": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFractionDecimal, nil + case "fraction": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFractionFraction, nil + case "round": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFractionRound, nil + case "truncate": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFractionTruncate, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFraction) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFraction { + return &d } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefNm) GetPageObjectNumber() int { - if d == nil { - return 0 +type DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemLabelPosition string + +const ( + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemLabelPositionSuffix DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemLabelPosition = "suffix" + DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemLabelPositionPrefix DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemLabelPosition = "prefix" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemLabelPositionFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemLabelPosition, error) { + switch s { + case "suffix": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemLabelPositionPrefix, nil } - return d.PageObjectNumber + var t DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefNm) GetNm() string { - if d == nil { - return "" - } - return d.Nm +func (d DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemLabelPosition) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemLabelPosition { + return &d } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefNm) GetExtraProperties() map[string]interface{} { +type DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureUnknown struct { + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureUnknown) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefNm) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureUnknown) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefNm) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemSquareRefNmFieldPageObjectNumber) -} - -// SetNm sets the Nm field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemSquareRefNmFieldNm) -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquareRefNm +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureUnknown) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureUnknown var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemSquareRefNm(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureUnknown(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -39550,8 +40854,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefNm) UnmarshalJSON( return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemSquareRefNm +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureUnknown) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureUnknown var marshaler = struct { embed }{ @@ -39561,7 +40865,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefNm) MarshalJSON() return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefNm) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureUnknown) String() string { if d == nil { return "" } @@ -39577,13 +40881,17 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefNm) String() strin } var ( - docAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolylineRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolylineRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolylineRectFieldRight = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolylineRectFieldTop = big.NewInt(1 << 3) ) -type DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` +type DocAnnotationsList200ResponseAnnotationsItemPolylineRect struct { + Left float64 `json:"left" url:"left"` + Bottom float64 `json:"bottom" url:"bottom"` + Right float64 `json:"right" url:"right"` + Top float64 `json:"top" url:"top"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -39592,55 +40900,83 @@ type DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRect) GetLeft() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.Left } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRect) GetBottom() float64 { if d == nil { return 0 } - return d.AnnotObjectNumber + return d.Bottom } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRect) GetRight() float64 { if d == nil { - return nil + return 0 } - return d.extraProperties + return d.Right } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRect) GetTop() float64 { + if d == nil { + return 0 } - d.explicitFields.Or(d.explicitFields, field) + return d.Top } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRect) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRect) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetLeft sets the Left field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumberFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRect) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineRectFieldLeft) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetBottom sets the Bottom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumberFieldAnnotObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRect) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineRectFieldBottom) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber +// SetRight sets the Right field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRect) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineRectFieldRight) +} + +// SetTop sets the Top field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineRectFieldTop) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineRect var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolylineRect(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -39650,8 +40986,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber) Unma return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolylineRect var marshaler = struct { embed }{ @@ -39661,7 +40997,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber) Mars return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRect) String() string { if d == nil { return "" } @@ -39676,40 +41012,166 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber) Stri return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemSquareReplyType string +type DocAnnotationsList200ResponseAnnotationsItemPolylineRef struct { + Kind string + ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber + Nm *DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm + Index *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex -const ( - DocAnnotationsList200ResponseAnnotationsItemSquareReplyTypeReply DocAnnotationsList200ResponseAnnotationsItemSquareReplyType = "reply" - DocAnnotationsList200ResponseAnnotationsItemSquareReplyTypeGroup DocAnnotationsList200ResponseAnnotationsItemSquareReplyType = "group" -) + rawJSON json.RawMessage +} -func NewDocAnnotationsList200ResponseAnnotationsItemSquareReplyTypeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemSquareReplyType, error) { - switch s { - case "reply": - return DocAnnotationsList200ResponseAnnotationsItemSquareReplyTypeReply, nil - case "group": - return DocAnnotationsList200ResponseAnnotationsItemSquareReplyTypeGroup, nil +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRef) GetKind() string { + if d == nil { + return "" } - var t DocAnnotationsList200ResponseAnnotationsItemSquareReplyType - return "", fmt.Errorf("%s is not a valid %T", s, t) + return d.Kind } -func (d DocAnnotationsList200ResponseAnnotationsItemSquareReplyType) Ptr() *DocAnnotationsList200ResponseAnnotationsItemSquareReplyType { - return &d +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRef) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRef) GetNm() *DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRef) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex { + if d == nil { + return nil + } + return d.Index +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRef) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value + } + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d DocAnnotationsList200ResponseAnnotationsItemPolylineRef) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err + } + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Nm != nil { + return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + } + if d.Index != nil { + return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +} + +type DocAnnotationsList200ResponseAnnotationsItemPolylineRefVisitor interface { + VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber) error + VisitNm(*DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm) error + VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex) error +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRef) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemPolylineRefVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) + } + if d.Nm != nil { + return visitor.VisitNm(d.Nm) + } + if d.Index != nil { + return visitor.VisitIndex(d.Index) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRef) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Nm != nil { + fields = append(fields, "nm") + } + if d.Index != nil { + fields = append(fields, "index") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil } var ( - docAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRectFieldRight = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRectFieldTop = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemPolylineRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolylineRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolylineRefIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect struct { - Left float64 `json:"left" url:"left"` - Bottom float64 `json:"bottom" url:"bottom"` - Right float64 `json:"right" url:"right"` - Top float64 `json:"top" url:"top"` +type DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -39718,83 +41180,69 @@ type DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect) GetLeft() float64 { - if d == nil { - return 0 - } - return d.Left -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect) GetBottom() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex) GetPageObjectNumber() int { if d == nil { return 0 } - return d.Bottom + return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect) GetRight() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex) GetIndex() int { if d == nil { return 0 } - return d.Right + return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect) GetTop() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision { if d == nil { - return 0 + return nil } - return d.Top + return d.Revision } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetLeft sets the Left field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect) SetLeft(left float64) { - d.Left = left - d.require(docAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRectFieldLeft) -} - -// SetBottom sets the Bottom field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRectFieldBottom) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineRefIndexFieldPageObjectNumber) } -// SetRight sets the Right field and marks it as non-optional; +// SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect) SetRight(right float64) { - d.Right = right - d.require(docAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRectFieldRight) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineRefIndexFieldIndex) } -// SetTop sets the Top field and marks it as non-optional; +// SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRectFieldTop) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision) { + d.Revision = revision + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineRefIndexFieldRevision) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -39804,8 +41252,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect) Unmars return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex var marshaler = struct { embed }{ @@ -39815,7 +41263,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect) Marsha return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex) String() string { if d == nil { return "" } @@ -39831,55 +41279,15 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect) String } var ( - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldRef = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldIndex = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldIdentityQuality = big.NewInt(1 << 3) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldNm = big.NewInt(1 << 4) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldFlags = big.NewInt(1 << 5) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldRect = big.NewInt(1 << 6) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldContents = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldSubject = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldAuthor = big.NewInt(1 << 9) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldCreated = big.NewInt(1 << 10) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldModified = big.NewInt(1 << 11) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldBlendMode = big.NewInt(1 << 12) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldInReplyTo = big.NewInt(1 << 13) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldReplyType = big.NewInt(1 << 14) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldUserID = big.NewInt(1 << 15) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldGroupID = big.NewInt(1 << 16) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldCreatedBy = big.NewInt(1 << 17) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldUpdatedBy = big.NewInt(1 << 18) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldActions = big.NewInt(1 << 19) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldColor = big.NewInt(1 << 20) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldOpacity = big.NewInt(1 << 21) - docAnnotationsList200ResponseAnnotationsItemSquigglyFieldQuadPoints = big.NewInt(1 << 22) + docAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemSquiggly struct { - Ref *DocAnnotationsList200ResponseAnnotationsItemSquigglyRef `json:"ref" url:"ref"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - IdentityQuality DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQuality `json:"identityQuality" url:"identityQuality"` - Nm *string `json:"nm,omitempty" url:"nm,omitempty"` - Flags *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags `json:"flags" url:"flags"` - Rect *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect `json:"rect" url:"rect"` - Contents *string `json:"contents,omitempty" url:"contents,omitempty"` - Subject *string `json:"subject,omitempty" url:"subject,omitempty"` - Author *string `json:"author,omitempty" url:"author,omitempty"` - Created *time.Time `json:"created,omitempty" url:"created,omitempty"` - Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` - BlendMode DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode `json:"blendMode" url:"blendMode"` - InReplyTo *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` - ReplyType *DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` - UserID *string `json:"userId,omitempty" url:"userId,omitempty"` - GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` - CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` - Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` - Color *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor `json:"color" url:"color"` - Opacity float64 `json:"opacity" url:"opacity"` - QuadPoints []*DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem `json:"quadPoints" url:"quadPoints"` +type DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -39888,357 +41296,269 @@ type DocAnnotationsList200ResponseAnnotationsItemSquiggly struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetRef() *DocAnnotationsList200ResponseAnnotationsItemSquigglyRef { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision) GetDocSessionID() string { if d == nil { - return nil + return "" } - return d.Ref + return d.DocSessionID } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetIndex() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision) GetGeneration() int { if d == nil { return 0 } - return d.Index -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetIdentityQuality() DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQuality { - if d == nil { - return "" - } - return d.IdentityQuality + return d.Generation } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetNm() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.Nm + return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetFlags() *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.Flags + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetRect() *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect { - if d == nil { - return nil - } - return d.Rect +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevisionFieldDocSessionID) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetContents() *string { - if d == nil { - return nil - } - return d.Contents +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevisionFieldPageObjectNumber) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetSubject() *string { - if d == nil { - return nil - } - return d.Subject +// SetGeneration sets the Generation field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevisionFieldGeneration) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetAuthor() *string { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - return d.Author -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetCreated() *time.Time { - if d == nil { - return nil + *d = DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err } - return d.Created + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetModified() *time.Time { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return d.Modified + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetBlendMode() DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision) String() string { if d == nil { - return "" + return "" } - return d.BlendMode -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetInReplyTo() *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo { - if d == nil { - return nil + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } } - return d.InReplyTo + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetReplyType() *DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyType { - if d == nil { - return nil - } - return d.ReplyType +var ( + docAnnotationsList200ResponseAnnotationsItemPolylineRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolylineRefNmFieldNm = big.NewInt(1 << 1) +) + +type DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetUserID() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm) GetPageObjectNumber() int { if d == nil { - return nil + return 0 } - return d.UserID + return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetGroupID() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm) GetNm() string { if d == nil { - return nil + return "" } - return d.GroupID + return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetCreatedBy() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.CreatedBy + return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetUpdatedBy() *string { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.UpdatedBy + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetActions() *PdfAnnotationActions { - if d == nil { - return nil +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineRefNmFieldPageObjectNumber) +} + +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineRefNmFieldNm) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - return d.Actions + *d = DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetColor() *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm) String() string { if d == nil { - return nil + return "" } - return d.Color + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetOpacity() float64 { +var ( + docAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +type DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } - return d.Opacity + return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetQuadPoints() []*DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber) GetAnnotObjectNumber() int { if d == nil { - return nil + return 0 } - return d.QuadPoints + return d.AnnotObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetRef sets the Ref field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetRef(ref *DocAnnotationsList200ResponseAnnotationsItemSquigglyRef) { - d.Ref = ref - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldRef) -} - // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldPageObjectNumber) -} - -// SetIndex sets the Index field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldIndex) -} - -// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetIdentityQuality(identityQuality DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQuality) { - d.IdentityQuality = identityQuality - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldIdentityQuality) -} - -// SetNm sets the Nm field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetNm(nm *string) { - d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldNm) -} - -// SetFlags sets the Flags field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetFlags(flags *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) { - d.Flags = flags - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldFlags) -} - -// SetRect sets the Rect field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetRect(rect *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect) { - d.Rect = rect - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldRect) -} - -// SetContents sets the Contents field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetContents(contents *string) { - d.Contents = contents - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldContents) -} - -// SetSubject sets the Subject field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetSubject(subject *string) { - d.Subject = subject - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldSubject) -} - -// SetAuthor sets the Author field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetAuthor(author *string) { - d.Author = author - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldAuthor) -} - -// SetCreated sets the Created field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetCreated(created *time.Time) { - d.Created = created - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldCreated) -} - -// SetModified sets the Modified field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetModified(modified *time.Time) { - d.Modified = modified - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldModified) -} - -// SetBlendMode sets the BlendMode field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetBlendMode(blendMode DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode) { - d.BlendMode = blendMode - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldBlendMode) -} - -// SetInReplyTo sets the InReplyTo field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetInReplyTo(inReplyTo *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo) { - d.InReplyTo = inReplyTo - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldInReplyTo) -} - -// SetReplyType sets the ReplyType field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetReplyType(replyType *DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyType) { - d.ReplyType = replyType - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldReplyType) -} - -// SetUserID sets the UserID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetUserID(userID *string) { - d.UserID = userID - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldUserID) -} - -// SetGroupID sets the GroupID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetGroupID(groupID *string) { - d.GroupID = groupID - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldGroupID) -} - -// SetCreatedBy sets the CreatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetCreatedBy(createdBy *string) { - d.CreatedBy = createdBy - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldCreatedBy) -} - -// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetUpdatedBy(updatedBy *string) { - d.UpdatedBy = updatedBy - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldUpdatedBy) -} - -// SetActions sets the Actions field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetActions(actions *PdfAnnotationActions) { - d.Actions = actions - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldActions) -} - -// SetColor sets the Color field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetColor(color *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor) { - d.Color = color - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldColor) -} - -// SetOpacity sets the Opacity field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetOpacity(opacity float64) { - d.Opacity = opacity - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldOpacity) + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumberFieldPageObjectNumber) } -// SetQuadPoints sets the QuadPoints field and marks it as non-optional; +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetQuadPoints(quadPoints []*DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem) { - d.QuadPoints = quadPoints - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldQuadPoints) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) UnmarshalJSON(data []byte) error { - type embed DocAnnotationsList200ResponseAnnotationsItemSquiggly - var unmarshaler = struct { - embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` - }{ - embed: embed(*d), - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemSquiggly(unmarshaler.embed) - d.Created = unmarshaler.Created.TimePtr() - d.Modified = unmarshaler.Modified.TimePtr() + *d = DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -40248,22 +41568,18 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) UnmarshalJSON(dat return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemSquiggly +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber var marshaler = struct { embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), - Created: internal.NewOptionalDateTime(d.Created), - Modified: internal.NewOptionalDateTime(d.Modified), + embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber) String() string { if d == nil { return "" } @@ -40278,80 +41594,36 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) String() string { return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode string +type DocAnnotationsList200ResponseAnnotationsItemPolylineReplyType string const ( - DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeNormal DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode = "normal" - DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeMultiply DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode = "multiply" - DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeScreen DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode = "screen" - DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeOverlay DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode = "overlay" - DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeDarken DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode = "darken" - DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeLighten DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode = "lighten" - DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeColorDodge DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode = "color-dodge" - DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeColorBurn DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode = "color-burn" - DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeHardLight DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode = "hard-light" - DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeSoftLight DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode = "soft-light" - DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeDifference DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode = "difference" - DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeExclusion DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode = "exclusion" - DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeHue DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode = "hue" - DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeSaturation DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode = "saturation" - DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeColor DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode = "color" - DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeLuminosity DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode = "luminosity" + DocAnnotationsList200ResponseAnnotationsItemPolylineReplyTypeReply DocAnnotationsList200ResponseAnnotationsItemPolylineReplyType = "reply" + DocAnnotationsList200ResponseAnnotationsItemPolylineReplyTypeGroup DocAnnotationsList200ResponseAnnotationsItemPolylineReplyType = "group" ) -func NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode, error) { +func NewDocAnnotationsList200ResponseAnnotationsItemPolylineReplyTypeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemPolylineReplyType, error) { switch s { - case "normal": - return DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeNormal, nil - case "multiply": - return DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeMultiply, nil - case "screen": - return DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeScreen, nil - case "overlay": - return DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeOverlay, nil - case "darken": - return DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeDarken, nil - case "lighten": - return DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeLighten, nil - case "color-dodge": - return DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeColorDodge, nil - case "color-burn": - return DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeColorBurn, nil - case "hard-light": - return DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeHardLight, nil - case "soft-light": - return DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeSoftLight, nil - case "difference": - return DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeDifference, nil - case "exclusion": - return DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeExclusion, nil - case "hue": - return DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeHue, nil - case "saturation": - return DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeSaturation, nil - case "color": - return DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeColor, nil - case "luminosity": - return DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeLuminosity, nil + case "reply": + return DocAnnotationsList200ResponseAnnotationsItemPolylineReplyTypeReply, nil + case "group": + return DocAnnotationsList200ResponseAnnotationsItemPolylineReplyTypeGroup, nil } - var t DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode + var t DocAnnotationsList200ResponseAnnotationsItemPolylineReplyType return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode) Ptr() *DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode { +func (d DocAnnotationsList200ResponseAnnotationsItemPolylineReplyType) Ptr() *DocAnnotationsList200ResponseAnnotationsItemPolylineReplyType { return &d } var ( - docAnnotationsList200ResponseAnnotationsItemSquigglyColorFieldR = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemSquigglyColorFieldG = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemSquigglyColorFieldB = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemPolylineVerticesItemFieldX = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemPolylineVerticesItemFieldY = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemSquigglyColor struct { - R int `json:"r" url:"r"` - G int `json:"g" url:"g"` - B int `json:"b" url:"b"` +type DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -40360,69 +41632,55 @@ type DocAnnotationsList200ResponseAnnotationsItemSquigglyColor struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor) GetR() int { - if d == nil { - return 0 - } - return d.R -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor) GetG() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem) GetX() float64 { if d == nil { return 0 } - return d.G + return d.X } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor) GetB() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem) GetY() float64 { if d == nil { return 0 } - return d.B + return d.Y } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetR sets the R field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor) SetR(r int) { - d.R = r - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyColorFieldR) -} - -// SetG sets the G field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor) SetG(g int) { - d.G = g - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyColorFieldG) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem) SetX(x float64) { + d.X = x + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineVerticesItemFieldX) } -// SetB sets the B field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor) SetB(b int) { - d.B = b - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyColorFieldB) +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem) SetY(y float64) { + d.Y = y + d.require(docAnnotationsList200ResponseAnnotationsItemPolylineVerticesItemFieldY) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquigglyColor +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemSquigglyColor(value) + *d = DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -40432,8 +41690,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor) UnmarshalJSO return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemSquigglyColor +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem var marshaler = struct { embed }{ @@ -40443,7 +41701,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor) MarshalJSON( return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem) String() string { if d == nil { return "" } @@ -40459,29 +41717,69 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor) String() str } var ( - docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldInvisible = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldHidden = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldPrint = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldNoZoom = big.NewInt(1 << 3) - docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldNoRotate = big.NewInt(1 << 4) - docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldNoView = big.NewInt(1 << 5) - docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldReadOnly = big.NewInt(1 << 6) - docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldLocked = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldToggleNoView = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldLockedContents = big.NewInt(1 << 9) + docAnnotationsList200ResponseAnnotationsItemRedactFieldRef = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemRedactFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemRedactFieldIndex = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemRedactFieldIdentityQuality = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemRedactFieldNm = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemRedactFieldFlags = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemRedactFieldRect = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemRedactFieldContents = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemRedactFieldSubject = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemRedactFieldAuthor = big.NewInt(1 << 9) + docAnnotationsList200ResponseAnnotationsItemRedactFieldCreated = big.NewInt(1 << 10) + docAnnotationsList200ResponseAnnotationsItemRedactFieldModified = big.NewInt(1 << 11) + docAnnotationsList200ResponseAnnotationsItemRedactFieldBlendMode = big.NewInt(1 << 12) + docAnnotationsList200ResponseAnnotationsItemRedactFieldInReplyTo = big.NewInt(1 << 13) + docAnnotationsList200ResponseAnnotationsItemRedactFieldReplyType = big.NewInt(1 << 14) + docAnnotationsList200ResponseAnnotationsItemRedactFieldUserID = big.NewInt(1 << 15) + docAnnotationsList200ResponseAnnotationsItemRedactFieldGroupID = big.NewInt(1 << 16) + docAnnotationsList200ResponseAnnotationsItemRedactFieldCreatedBy = big.NewInt(1 << 17) + docAnnotationsList200ResponseAnnotationsItemRedactFieldUpdatedBy = big.NewInt(1 << 18) + docAnnotationsList200ResponseAnnotationsItemRedactFieldActions = big.NewInt(1 << 19) + docAnnotationsList200ResponseAnnotationsItemRedactFieldQuadPoints = big.NewInt(1 << 20) + docAnnotationsList200ResponseAnnotationsItemRedactFieldColor = big.NewInt(1 << 21) + docAnnotationsList200ResponseAnnotationsItemRedactFieldOpacity = big.NewInt(1 << 22) + docAnnotationsList200ResponseAnnotationsItemRedactFieldInteriorColor = big.NewInt(1 << 23) + docAnnotationsList200ResponseAnnotationsItemRedactFieldOverlayText = big.NewInt(1 << 24) + docAnnotationsList200ResponseAnnotationsItemRedactFieldRepeat = big.NewInt(1 << 25) + docAnnotationsList200ResponseAnnotationsItemRedactFieldFontFamily = big.NewInt(1 << 26) + docAnnotationsList200ResponseAnnotationsItemRedactFieldFontSize = big.NewInt(1 << 27) + docAnnotationsList200ResponseAnnotationsItemRedactFieldFontColor = big.NewInt(1 << 28) + docAnnotationsList200ResponseAnnotationsItemRedactFieldTextAlign = big.NewInt(1 << 29) ) -type DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags struct { - Invisible bool `json:"invisible" url:"invisible"` - Hidden bool `json:"hidden" url:"hidden"` - Print bool `json:"print" url:"print"` - NoZoom bool `json:"noZoom" url:"noZoom"` - NoRotate bool `json:"noRotate" url:"noRotate"` - NoView bool `json:"noView" url:"noView"` - ReadOnly bool `json:"readOnly" url:"readOnly"` - Locked bool `json:"locked" url:"locked"` - ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` - LockedContents bool `json:"lockedContents" url:"lockedContents"` +type DocAnnotationsList200ResponseAnnotationsItemRedact struct { + Ref *DocAnnotationsList200ResponseAnnotationsItemRedactRef `json:"ref" url:"ref"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + IdentityQuality DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQuality `json:"identityQuality" url:"identityQuality"` + Nm *string `json:"nm,omitempty" url:"nm,omitempty"` + Flags *DocAnnotationsList200ResponseAnnotationsItemRedactFlags `json:"flags" url:"flags"` + Rect *DocAnnotationsList200ResponseAnnotationsItemRedactRect `json:"rect" url:"rect"` + Contents *string `json:"contents,omitempty" url:"contents,omitempty"` + Subject *string `json:"subject,omitempty" url:"subject,omitempty"` + Author *string `json:"author,omitempty" url:"author,omitempty"` + Created *time.Time `json:"created,omitempty" url:"created,omitempty"` + Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` + BlendMode DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode `json:"blendMode" url:"blendMode"` + InReplyTo *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` + ReplyType *DocAnnotationsList200ResponseAnnotationsItemRedactReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` + UserID *string `json:"userId,omitempty" url:"userId,omitempty"` + GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` + CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` + Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` + QuadPoints []*DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem `json:"quadPoints" url:"quadPoints"` + Color *DocAnnotationsList200ResponseAnnotationsItemRedactColor `json:"color" url:"color"` + Opacity float64 `json:"opacity" url:"opacity"` + InteriorColor *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor `json:"interiorColor,omitempty" url:"interiorColor,omitempty"` + OverlayText *string `json:"overlayText,omitempty" url:"overlayText,omitempty"` + Repeat bool `json:"repeat" url:"repeat"` + FontFamily DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily `json:"fontFamily" url:"fontFamily"` + FontSize float64 `json:"fontSize" url:"fontSize"` + FontColor *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor `json:"fontColor" url:"fontColor"` + TextAlign DocAnnotationsList200ResponseAnnotationsItemRedactTextAlign `json:"textAlign" url:"textAlign"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -40490,571 +41788,455 @@ type DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) GetInvisible() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetRef() *DocAnnotationsList200ResponseAnnotationsItemRedactRef { if d == nil { - return false + return nil } - return d.Invisible + return d.Ref } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) GetHidden() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetPageObjectNumber() int { if d == nil { - return false + return 0 } - return d.Hidden + return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) GetPrint() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetIndex() int { if d == nil { - return false + return 0 } - return d.Print + return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) GetNoZoom() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetIdentityQuality() DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQuality { if d == nil { - return false + return "" } - return d.NoZoom + return d.IdentityQuality } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) GetNoRotate() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetNm() *string { if d == nil { - return false + return nil } - return d.NoRotate + return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) GetNoView() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetFlags() *DocAnnotationsList200ResponseAnnotationsItemRedactFlags { if d == nil { - return false + return nil } - return d.NoView + return d.Flags } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) GetReadOnly() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetRect() *DocAnnotationsList200ResponseAnnotationsItemRedactRect { if d == nil { - return false + return nil } - return d.ReadOnly + return d.Rect } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) GetLocked() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetContents() *string { if d == nil { - return false + return nil } - return d.Locked + return d.Contents } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) GetToggleNoView() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetSubject() *string { if d == nil { - return false + return nil } - return d.ToggleNoView + return d.Subject } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) GetLockedContents() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetAuthor() *string { if d == nil { - return false + return nil } - return d.LockedContents + return d.Author } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetCreated() *time.Time { if d == nil { return nil } - return d.extraProperties + return d.Created } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetModified() *time.Time { + if d == nil { + return nil } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetInvisible sets the Invisible field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) SetInvisible(invisible bool) { - d.Invisible = invisible - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldInvisible) -} - -// SetHidden sets the Hidden field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) SetHidden(hidden bool) { - d.Hidden = hidden - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldHidden) -} - -// SetPrint sets the Print field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) SetPrint(print bool) { - d.Print = print - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldPrint) -} - -// SetNoZoom sets the NoZoom field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) SetNoZoom(noZoom bool) { - d.NoZoom = noZoom - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldNoZoom) -} - -// SetNoRotate sets the NoRotate field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) SetNoRotate(noRotate bool) { - d.NoRotate = noRotate - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldNoRotate) -} - -// SetNoView sets the NoView field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) SetNoView(noView bool) { - d.NoView = noView - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldNoView) -} - -// SetReadOnly sets the ReadOnly field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) SetReadOnly(readOnly bool) { - d.ReadOnly = readOnly - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldReadOnly) -} - -// SetLocked sets the Locked field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) SetLocked(locked bool) { - d.Locked = locked - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldLocked) -} - -// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) SetToggleNoView(toggleNoView bool) { - d.ToggleNoView = toggleNoView - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldToggleNoView) -} - -// SetLockedContents sets the LockedContents field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) SetLockedContents(lockedContents bool) { - d.LockedContents = lockedContents - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldLockedContents) + return d.Modified } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetBlendMode() DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode { + if d == nil { + return "" } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil + return d.BlendMode } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetInReplyTo() *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo { + if d == nil { + return nil } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return d.InReplyTo } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetReplyType() *DocAnnotationsList200ResponseAnnotationsItemRedactReplyType { if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value + return nil } - return fmt.Sprintf("%#v", d) + return d.ReplyType } -type DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQuality string - -const ( - DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQualityDurable DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQuality = "durable" - DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQualityWeak DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQuality = "weak" -) - -func NewDocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQualityFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQuality, error) { - switch s { - case "durable": - return DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQualityDurable, nil - case "weak": - return DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQualityWeak, nil +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetUserID() *string { + if d == nil { + return nil } - var t DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQuality - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQuality) Ptr() *DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQuality { - return &d + return d.UserID } -type DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo struct { - Kind string - ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber - Nm *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm - Index *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex - - rawJSON json.RawMessage +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetGroupID() *string { + if d == nil { + return nil + } + return d.GroupID } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo) GetKind() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetCreatedBy() *string { if d == nil { - return "" + return nil } - return d.Kind + return d.CreatedBy } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetUpdatedBy() *string { if d == nil { return nil } - return d.ObjectNumber + return d.UpdatedBy } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo) GetNm() *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetActions() *PdfAnnotationActions { if d == nil { return nil } - return d.Nm + return d.Actions } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetQuadPoints() []*DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem { if d == nil { return nil } - return d.Index + return d.QuadPoints } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Nm = value - case "index": - value := new(DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Index = value +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetColor() *DocAnnotationsList200ResponseAnnotationsItemRedactColor { + if d == nil { + return nil } - d.rawJSON = json.RawMessage(data) - return nil + return d.Color } -func (d DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Nm != nil { - return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") - } - if d.Index != nil { - return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetOpacity() float64 { + if d == nil { + return 0 } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) + return d.Opacity } -type DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToVisitor interface { - VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber) error - VisitNm(*DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm) error - VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex) error +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetInteriorColor() *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor { + if d == nil { + return nil + } + return d.InteriorColor } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) - } - if d.Nm != nil { - return visitor.VisitNm(d.Nm) - } - if d.Index != nil { - return visitor.VisitIndex(d.Index) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetOverlayText() *string { + if d == nil { + return nil } - return fmt.Errorf("type %T does not define a non-empty union type", d) + return d.OverlayText } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo) validate() error { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetRepeat() bool { if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Nm != nil { - fields = append(fields, "nm") - } - if d.Index != nil { - fields = append(fields, "index") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } + return false } - return nil + return d.Repeat } -var ( - docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexFieldRevision = big.NewInt(1 << 2) -) - -type DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision `json:"revision" url:"revision"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetFontFamily() DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily { + if d == nil { + return "" + } + return d.FontFamily } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetFontSize() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.FontSize } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex) GetIndex() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetFontColor() *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor { if d == nil { - return 0 + return nil } - return d.Index + return d.FontColor } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetTextAlign() DocAnnotationsList200ResponseAnnotationsItemRedactTextAlign { if d == nil { - return nil + return "" } - return d.Revision + return d.TextAlign } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } +// SetRef sets the Ref field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetRef(ref *DocAnnotationsList200ResponseAnnotationsItemRedactRef) { + d.Ref = ref + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldRef) +} + // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex) SetIndex(index int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetIndex(index int) { d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexFieldIndex) + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldIndex) } -// SetRevision sets the Revision field and marks it as non-optional; +// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision) { - d.Revision = revision - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexFieldRevision) -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetIdentityQuality(identityQuality DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQuality) { + d.IdentityQuality = identityQuality + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldIdentityQuality) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetNm(nm *string) { + d.Nm = nm + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldNm) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) +// SetFlags sets the Flags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetFlags(flags *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) { + d.Flags = flags + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldFlags) } -var ( - docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) -) - -type DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage +// SetRect sets the Rect field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetRect(rect *DocAnnotationsList200ResponseAnnotationsItemRedactRect) { + d.Rect = rect + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldRect) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision) GetDocSessionID() string { - if d == nil { - return "" - } - return d.DocSessionID +// SetContents sets the Contents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetContents(contents *string) { + d.Contents = contents + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldContents) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber +// SetSubject sets the Subject field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetSubject(subject *string) { + d.Subject = subject + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldSubject) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision) GetGeneration() int { - if d == nil { - return 0 - } - return d.Generation +// SetAuthor sets the Author field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetAuthor(author *string) { + d.Author = author + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldAuthor) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties +// SetCreated sets the Created field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetCreated(created *time.Time) { + d.Created = created + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldCreated) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) +// SetModified sets the Modified field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetModified(modified *time.Time) { + d.Modified = modified + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldModified) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// SetBlendMode sets the BlendMode field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevisionFieldDocSessionID) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetBlendMode(blendMode DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode) { + d.BlendMode = blendMode + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldBlendMode) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetInReplyTo sets the InReplyTo field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevisionFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetInReplyTo(inReplyTo *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo) { + d.InReplyTo = inReplyTo + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldInReplyTo) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetReplyType sets the ReplyType field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevisionFieldGeneration) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetReplyType(replyType *DocAnnotationsList200ResponseAnnotationsItemRedactReplyType) { + d.ReplyType = replyType + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldReplyType) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { +// SetUserID sets the UserID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetUserID(userID *string) { + d.UserID = userID + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldUserID) +} + +// SetGroupID sets the GroupID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetGroupID(groupID *string) { + d.GroupID = groupID + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldGroupID) +} + +// SetCreatedBy sets the CreatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetCreatedBy(createdBy *string) { + d.CreatedBy = createdBy + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldCreatedBy) +} + +// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetUpdatedBy(updatedBy *string) { + d.UpdatedBy = updatedBy + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldUpdatedBy) +} + +// SetActions sets the Actions field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetActions(actions *PdfAnnotationActions) { + d.Actions = actions + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldActions) +} + +// SetQuadPoints sets the QuadPoints field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetQuadPoints(quadPoints []*DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem) { + d.QuadPoints = quadPoints + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldQuadPoints) +} + +// SetColor sets the Color field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetColor(color *DocAnnotationsList200ResponseAnnotationsItemRedactColor) { + d.Color = color + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldColor) +} + +// SetOpacity sets the Opacity field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetOpacity(opacity float64) { + d.Opacity = opacity + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldOpacity) +} + +// SetInteriorColor sets the InteriorColor field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetInteriorColor(interiorColor *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor) { + d.InteriorColor = interiorColor + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldInteriorColor) +} + +// SetOverlayText sets the OverlayText field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetOverlayText(overlayText *string) { + d.OverlayText = overlayText + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldOverlayText) +} + +// SetRepeat sets the Repeat field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetRepeat(repeat bool) { + d.Repeat = repeat + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldRepeat) +} + +// SetFontFamily sets the FontFamily field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetFontFamily(fontFamily DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily) { + d.FontFamily = fontFamily + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldFontFamily) +} + +// SetFontSize sets the FontSize field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetFontSize(fontSize float64) { + d.FontSize = fontSize + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldFontSize) +} + +// SetFontColor sets the FontColor field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetFontColor(fontColor *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor) { + d.FontColor = fontColor + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldFontColor) +} + +// SetTextAlign sets the TextAlign field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) SetTextAlign(textAlign DocAnnotationsList200ResponseAnnotationsItemRedactTextAlign) { + d.TextAlign = textAlign + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFieldTextAlign) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) UnmarshalJSON(data []byte) error { + type embed DocAnnotationsList200ResponseAnnotationsItemRedact + var unmarshaler = struct { + embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision(value) + *d = DocAnnotationsList200ResponseAnnotationsItemRedact(unmarshaler.embed) + d.Created = unmarshaler.Created.TimePtr() + d.Modified = unmarshaler.Modified.TimePtr() extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -41064,18 +42246,22 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevis return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemRedact var marshaler = struct { embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), + embed: embed(*d), + Created: internal.NewOptionalDateTime(d.Created), + Modified: internal.NewOptionalDateTime(d.Modified), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedact) String() string { if d == nil { return "" } @@ -41090,14 +42276,80 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevis return fmt.Sprintf("%#v", d) } +type DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode string + +const ( + DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeNormal DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode = "normal" + DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeMultiply DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode = "multiply" + DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeScreen DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode = "screen" + DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeOverlay DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode = "overlay" + DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeDarken DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode = "darken" + DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeLighten DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode = "lighten" + DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeColorDodge DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode = "color-dodge" + DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeColorBurn DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode = "color-burn" + DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeHardLight DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode = "hard-light" + DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeSoftLight DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode = "soft-light" + DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeDifference DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode = "difference" + DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeExclusion DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode = "exclusion" + DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeHue DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode = "hue" + DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeSaturation DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode = "saturation" + DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeColor DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode = "color" + DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeLuminosity DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode = "luminosity" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemRedactBlendModeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode, error) { + switch s { + case "normal": + return DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeNormal, nil + case "multiply": + return DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeMultiply, nil + case "screen": + return DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeScreen, nil + case "overlay": + return DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeOverlay, nil + case "darken": + return DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeDarken, nil + case "lighten": + return DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeLighten, nil + case "color-dodge": + return DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeColorDodge, nil + case "color-burn": + return DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeColorBurn, nil + case "hard-light": + return DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeHardLight, nil + case "soft-light": + return DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeSoftLight, nil + case "difference": + return DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeDifference, nil + case "exclusion": + return DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeExclusion, nil + case "hue": + return DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeHue, nil + case "saturation": + return DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeSaturation, nil + case "color": + return DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeColor, nil + case "luminosity": + return DocAnnotationsList200ResponseAnnotationsItemRedactBlendModeLuminosity, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode) Ptr() *DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode { + return &d +} + var ( - docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNmFieldNm = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemRedactColorFieldR = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemRedactColorFieldG = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemRedactColorFieldB = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` +type DocAnnotationsList200ResponseAnnotationsItemRedactColor struct { + R int `json:"r" url:"r"` + G int `json:"g" url:"g"` + B int `json:"b" url:"b"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -41106,55 +42358,69 @@ type DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactColor) GetR() int { if d == nil { return 0 } - return d.PageObjectNumber + return d.R } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm) GetNm() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactColor) GetG() int { if d == nil { - return "" + return 0 } - return d.Nm + return d.G } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactColor) GetB() int { + if d == nil { + return 0 + } + return d.B +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactColor) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactColor) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetR sets the R field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNmFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactColor) SetR(r int) { + d.R = r + d.require(docAnnotationsList200ResponseAnnotationsItemRedactColorFieldR) } -// SetNm sets the Nm field and marks it as non-optional; +// SetG sets the G field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNmFieldNm) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactColor) SetG(g int) { + d.G = g + d.require(docAnnotationsList200ResponseAnnotationsItemRedactColorFieldG) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm +// SetB sets the B field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactColor) SetB(b int) { + d.B = b + d.require(docAnnotationsList200ResponseAnnotationsItemRedactColorFieldB) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactColor var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm(value) + *d = DocAnnotationsList200ResponseAnnotationsItemRedactColor(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -41164,8 +42430,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm) Unmars return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemRedactColor var marshaler = struct { embed }{ @@ -41175,7 +42441,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm) Marsha return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactColor) String() string { if d == nil { return "" } @@ -41191,13 +42457,29 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm) String } var ( - docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldInvisible = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldHidden = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldPrint = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldNoZoom = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldNoRotate = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldNoView = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldReadOnly = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldLocked = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldToggleNoView = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldLockedContents = big.NewInt(1 << 9) ) -type DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` +type DocAnnotationsList200ResponseAnnotationsItemRedactFlags struct { + Invisible bool `json:"invisible" url:"invisible"` + Hidden bool `json:"hidden" url:"hidden"` + Print bool `json:"print" url:"print"` + NoZoom bool `json:"noZoom" url:"noZoom"` + NoRotate bool `json:"noRotate" url:"noRotate"` + NoView bool `json:"noView" url:"noView"` + ReadOnly bool `json:"readOnly" url:"readOnly"` + Locked bool `json:"locked" url:"locked"` + ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` + LockedContents bool `json:"lockedContents" url:"lockedContents"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -41206,55 +42488,167 @@ type DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber s rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) GetInvisible() bool { if d == nil { - return 0 + return false } - return d.PageObjectNumber + return d.Invisible } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) GetHidden() bool { if d == nil { - return 0 + return false } - return d.AnnotObjectNumber + return d.Hidden } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) GetPrint() bool { + if d == nil { + return false + } + return d.Print +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) GetNoZoom() bool { + if d == nil { + return false + } + return d.NoZoom +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) GetNoRotate() bool { + if d == nil { + return false + } + return d.NoRotate +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) GetNoView() bool { + if d == nil { + return false + } + return d.NoView +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) GetReadOnly() bool { + if d == nil { + return false + } + return d.ReadOnly +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) GetLocked() bool { + if d == nil { + return false + } + return d.Locked +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) GetToggleNoView() bool { + if d == nil { + return false + } + return d.ToggleNoView +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) GetLockedContents() bool { + if d == nil { + return false + } + return d.LockedContents +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetInvisible sets the Invisible field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumberFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) SetInvisible(invisible bool) { + d.Invisible = invisible + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldInvisible) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetHidden sets the Hidden field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumberFieldAnnotObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) SetHidden(hidden bool) { + d.Hidden = hidden + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldHidden) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber +// SetPrint sets the Print field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) SetPrint(print bool) { + d.Print = print + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldPrint) +} + +// SetNoZoom sets the NoZoom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) SetNoZoom(noZoom bool) { + d.NoZoom = noZoom + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldNoZoom) +} + +// SetNoRotate sets the NoRotate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) SetNoRotate(noRotate bool) { + d.NoRotate = noRotate + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldNoRotate) +} + +// SetNoView sets the NoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) SetNoView(noView bool) { + d.NoView = noView + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldNoView) +} + +// SetReadOnly sets the ReadOnly field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldReadOnly) +} + +// SetLocked sets the Locked field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) SetLocked(locked bool) { + d.Locked = locked + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldLocked) +} + +// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) SetToggleNoView(toggleNoView bool) { + d.ToggleNoView = toggleNoView + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldToggleNoView) +} + +// SetLockedContents sets the LockedContents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) SetLockedContents(lockedContents bool) { + d.LockedContents = lockedContents + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFlagsFieldLockedContents) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactFlags var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber(value) + *d = DocAnnotationsList200ResponseAnnotationsItemRedactFlags(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -41264,8 +42658,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumb return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemRedactFlags var marshaler = struct { embed }{ @@ -41275,7 +42669,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumb return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFlags) String() string { if d == nil { return "" } @@ -41291,17 +42685,15 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumb } var ( - docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemFieldP1 = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemFieldP2 = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemFieldP3 = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemFieldP4 = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemRedactFontColorFieldR = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemRedactFontColorFieldG = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemRedactFontColorFieldB = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem struct { - P1 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1 `json:"p1" url:"p1"` - P2 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2 `json:"p2" url:"p2"` - P3 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3 `json:"p3" url:"p3"` - P4 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4 `json:"p4" url:"p4"` +type DocAnnotationsList200ResponseAnnotationsItemRedactFontColor struct { + R int `json:"r" url:"r"` + G int `json:"g" url:"g"` + B int `json:"b" url:"b"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -41310,83 +42702,69 @@ type DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem) GetP1() *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1 { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor) GetR() int { if d == nil { - return nil + return 0 } - return d.P1 + return d.R } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem) GetP2() *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2 { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor) GetG() int { if d == nil { - return nil + return 0 } - return d.P2 + return d.G } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem) GetP3() *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3 { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor) GetB() int { if d == nil { - return nil + return 0 } - return d.P3 + return d.B } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem) GetP4() *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4 { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.P4 + return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetP1 sets the P1 field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem) SetP1(p1 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1) { - d.P1 = p1 - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemFieldP1) -} - -// SetP2 sets the P2 field and marks it as non-optional; +// SetR sets the R field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem) SetP2(p2 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2) { - d.P2 = p2 - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemFieldP2) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor) SetR(r int) { + d.R = r + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFontColorFieldR) } -// SetP3 sets the P3 field and marks it as non-optional; +// SetG sets the G field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem) SetP3(p3 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3) { - d.P3 = p3 - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemFieldP3) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor) SetG(g int) { + d.G = g + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFontColorFieldG) } -// SetP4 sets the P4 field and marks it as non-optional; +// SetB sets the B field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem) SetP4(p4 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4) { - d.P4 = p4 - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemFieldP4) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor) SetB(b int) { + d.B = b + d.require(docAnnotationsList200ResponseAnnotationsItemRedactFontColorFieldB) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactFontColor var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem(value) + *d = DocAnnotationsList200ResponseAnnotationsItemRedactFontColor(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -41396,8 +42774,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem) Unm return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemRedactFontColor var marshaler = struct { embed }{ @@ -41407,7 +42785,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem) Mar return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor) String() string { if d == nil { return "" } @@ -41422,114 +42800,246 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem) Str return fmt.Sprintf("%#v", d) } -var ( - docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1FieldX = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1FieldY = big.NewInt(1 << 1) -) +type DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily string -type DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` +const ( + DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyCourier DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily = "courier" + DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyCourierBold DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily = "courier-bold" + DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyCourierBoldOblique DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily = "courier-bold-oblique" + DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyCourierOblique DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily = "courier-oblique" + DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyHelvetica DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily = "helvetica" + DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyHelveticaBold DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily = "helvetica-bold" + DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyHelveticaBoldOblique DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily = "helvetica-bold-oblique" + DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyHelveticaOblique DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily = "helvetica-oblique" + DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyTimesRoman DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily = "times-roman" + DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyTimesBold DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily = "times-bold" + DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyTimesBoldItalic DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily = "times-bold-italic" + DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyTimesItalic DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily = "times-italic" + DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilySymbol DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily = "symbol" + DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyZapfDingbats DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily = "zapf-dingbats" +) - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +func NewDocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily, error) { + switch s { + case "courier": + return DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyCourier, nil + case "courier-bold": + return DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyCourierBold, nil + case "courier-bold-oblique": + return DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyCourierBoldOblique, nil + case "courier-oblique": + return DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyCourierOblique, nil + case "helvetica": + return DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyHelvetica, nil + case "helvetica-bold": + return DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyHelveticaBold, nil + case "helvetica-bold-oblique": + return DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyHelveticaBoldOblique, nil + case "helvetica-oblique": + return DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyHelveticaOblique, nil + case "times-roman": + return DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyTimesRoman, nil + case "times-bold": + return DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyTimesBold, nil + case "times-bold-italic": + return DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyTimesBoldItalic, nil + case "times-italic": + return DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyTimesItalic, nil + case "symbol": + return DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilySymbol, nil + case "zapf-dingbats": + return DocAnnotationsList200ResponseAnnotationsItemRedactFontFamilyZapfDingbats, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily + return "", fmt.Errorf("%s is not a valid %T", s, t) +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily) Ptr() *DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily { + return &d } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1) GetX() float64 { - if d == nil { - return 0 +type DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQuality string + +const ( + DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQualityDurable DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQuality = "durable" + DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQualityWeak DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQuality = "weak" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemRedactIdentityQualityFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQuality, error) { + switch s { + case "durable": + return DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQualityDurable, nil + case "weak": + return DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQualityWeak, nil } - return d.X + var t DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQuality + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1) GetY() float64 { +func (d DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQuality) Ptr() *DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQuality { + return &d +} + +type DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo struct { + Kind string + ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber + Nm *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm + Index *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo) GetKind() string { if d == nil { - return 0 + return "" } - return d.Y + return d.Kind } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber { if d == nil { return nil } - return d.extraProperties + return d.ObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo) GetNm() *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm { + if d == nil { + return nil } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetX sets the X field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1) SetX(x float64) { - d.X = x - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1FieldX) + return d.Nm } -// SetY sets the Y field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1) SetY(y float64) { - d.Y = y - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1FieldY) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex { + if d == nil { + return nil + } + return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1 - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` } - *d = DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { + if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - d.extraProperties = extraProperties + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value + } d.rawJSON = json.RawMessage(data) return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1 - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Nm != nil { + return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + } + if d.Index != nil { + return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1) String() string { +type DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber) error + VisitNm(*DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm) error + VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex) error +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) + } + if d.Nm != nil { + return visitor.VisitNm(d.Nm) + } + if d.Index != nil { + return visitor.VisitIndex(d.Index) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo) validate() error { if d == nil { - return "" + return fmt.Errorf("type %T is nil", d) } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Nm != nil { + fields = append(fields, "nm") + } + if d.Index != nil { + fields = append(fields, "index") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) } + return fmt.Errorf("type %T is empty", d) } - if value, err := internal.StringifyJSON(d); err == nil { - return value + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) } - return fmt.Sprintf("%#v", d) + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil } var ( - docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2FieldX = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2FieldY = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` +type DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -41538,55 +43048,69 @@ type DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2 struct rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2) GetX() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex) GetPageObjectNumber() int { if d == nil { return 0 } - return d.X + return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2) GetY() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex) GetIndex() int { if d == nil { return 0 } - return d.Y + return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetX sets the X field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2) SetX(x float64) { - d.X = x - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2FieldX) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexFieldPageObjectNumber) } -// SetY sets the Y field and marks it as non-optional; +// SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2) SetY(y float64) { - d.Y = y - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2FieldY) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexFieldIndex) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2 +// SetRevision sets the Revision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision) { + d.Revision = revision + d.require(docAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexFieldRevision) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2(value) + *d = DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -41596,8 +43120,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2) U return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2 +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex var marshaler = struct { embed }{ @@ -41607,7 +43131,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2) M return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex) String() string { if d == nil { return "" } @@ -41623,13 +43147,15 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2) S } var ( - docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3FieldX = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3FieldY = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` +type DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -41638,55 +43164,69 @@ type DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3 struct rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3) GetX() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } - return d.X + return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3) GetY() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision) GetGeneration() int { if d == nil { return 0 } - return d.Y + return d.Generation } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetX sets the X field and marks it as non-optional; +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3) SetX(x float64) { - d.X = x - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3FieldX) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevisionFieldDocSessionID) } -// SetY sets the Y field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3) SetY(y float64) { - d.Y = y - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3FieldY) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevisionFieldPageObjectNumber) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3 +// SetGeneration sets the Generation field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3(value) + *d = DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -41696,8 +43236,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3) U return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3 +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision var marshaler = struct { embed }{ @@ -41707,7 +43247,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3) M return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision) String() string { if d == nil { return "" } @@ -41723,13 +43263,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3) S } var ( - docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4FieldX = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4FieldY = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemRedactInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemRedactInReplyToNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` +type DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -41738,55 +43278,55 @@ type DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4 struct rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4) GetX() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm) GetPageObjectNumber() int { if d == nil { return 0 } - return d.X + return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4) GetY() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm) GetNm() string { if d == nil { - return 0 + return "" } - return d.Y + return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetX sets the X field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4) SetX(x float64) { - d.X = x - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4FieldX) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemRedactInReplyToNmFieldPageObjectNumber) } -// SetY sets the Y field and marks it as non-optional; +// SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4) SetY(y float64) { - d.Y = y - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4FieldY) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsList200ResponseAnnotationsItemRedactInReplyToNmFieldNm) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4 +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4(value) + *d = DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -41796,8 +43336,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4) U return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4 +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm var marshaler = struct { embed }{ @@ -41807,7 +43347,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4) M return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm) String() string { if d == nil { return "" } @@ -41823,17 +43363,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4) S } var ( - docAnnotationsList200ResponseAnnotationsItemSquigglyRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemSquigglyRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemSquigglyRectFieldRight = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemSquigglyRectFieldTop = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemSquigglyRect struct { - Left float64 `json:"left" url:"left"` - Bottom float64 `json:"bottom" url:"bottom"` - Right float64 `json:"right" url:"right"` - Top float64 `json:"top" url:"top"` +type DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -41842,83 +43378,55 @@ type DocAnnotationsList200ResponseAnnotationsItemSquigglyRect struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect) GetLeft() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } - return d.Left + return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect) GetBottom() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } - return d.Bottom + return d.AnnotObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect) GetRight() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { - return 0 - } - return d.Right -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect) GetTop() float64 { - if d == nil { - return 0 - } - return d.Top -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil + return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetLeft sets the Left field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect) SetLeft(left float64) { - d.Left = left - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyRectFieldLeft) -} - -// SetBottom sets the Bottom field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyRectFieldBottom) -} - -// SetRight sets the Right field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect) SetRight(right float64) { - d.Right = right - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyRectFieldRight) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumberFieldPageObjectNumber) } -// SetTop sets the Top field and marks it as non-optional; +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyRectFieldTop) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquigglyRect +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemSquigglyRect(value) + *d = DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -41928,8 +43436,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect) UnmarshalJSON return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemSquigglyRect +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber var marshaler = struct { embed }{ @@ -41939,7 +43447,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect) MarshalJSON() return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber) String() string { if d == nil { return "" } @@ -41954,166 +43462,134 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect) String() stri return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemSquigglyRef struct { - Kind string - ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber - Nm *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm - Index *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex +var ( + docAnnotationsList200ResponseAnnotationsItemRedactInteriorColorFieldR = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemRedactInteriorColorFieldG = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemRedactInteriorColorFieldB = big.NewInt(1 << 2) +) - rawJSON json.RawMessage +type DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor struct { + R int `json:"r" url:"r"` + G int `json:"g" url:"g"` + B int `json:"b" url:"b"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRef) GetKind() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor) GetR() int { if d == nil { - return "" + return 0 } - return d.Kind + return d.R } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRef) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor) GetG() int { if d == nil { - return nil + return 0 } - return d.ObjectNumber + return d.G } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRef) GetNm() *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor) GetB() int { if d == nil { - return nil + return 0 } - return d.Nm + return d.B } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRef) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.Index + return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRef) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Nm = value - case "index": - value := new(DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Index = value +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - d.rawJSON = json.RawMessage(data) - return nil + d.explicitFields.Or(d.explicitFields, field) } -func (d DocAnnotationsList200ResponseAnnotationsItemSquigglyRef) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Nm != nil { - return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") - } - if d.Index != nil { - return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil - } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +// SetR sets the R field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor) SetR(r int) { + d.R = r + d.require(docAnnotationsList200ResponseAnnotationsItemRedactInteriorColorFieldR) } -type DocAnnotationsList200ResponseAnnotationsItemSquigglyRefVisitor interface { - VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber) error - VisitNm(*DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm) error - VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex) error +// SetG sets the G field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor) SetG(g int) { + d.G = g + d.require(docAnnotationsList200ResponseAnnotationsItemRedactInteriorColorFieldG) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRef) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemSquigglyRefVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) +// SetB sets the B field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor) SetB(b int) { + d.B = b + d.require(docAnnotationsList200ResponseAnnotationsItemRedactInteriorColorFieldB) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - if d.Nm != nil { - return visitor.VisitNm(d.Nm) + *d = DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err } - if d.Index != nil { - return visitor.VisitIndex(d.Index) + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return fmt.Errorf("type %T does not define a non-empty union type", d) + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRef) validate() error { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor) String() string { if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Nm != nil { - fields = append(fields, "nm") - } - if d.Index != nil { - fields = append(fields, "index") + return "" } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value } - return fmt.Errorf("type %T is empty", d) } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } + if value, err := internal.StringifyJSON(d); err == nil { + return value } - return nil + return fmt.Sprintf("%#v", d) } var ( - docAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemFieldP1 = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemFieldP2 = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemFieldP3 = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemFieldP4 = big.NewInt(1 << 3) ) -type DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem struct { + P1 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1 `json:"p1" url:"p1"` + P2 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2 `json:"p2" url:"p2"` + P3 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3 `json:"p3" url:"p3"` + P4 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4 `json:"p4" url:"p4"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -42122,69 +43598,83 @@ type DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem) GetP1() *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1 { if d == nil { - return 0 + return nil } - return d.PageObjectNumber + return d.P1 } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex) GetIndex() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem) GetP2() *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2 { if d == nil { - return 0 + return nil } - return d.Index + return d.P2 } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem) GetP3() *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3 { if d == nil { return nil } - return d.Revision + return d.P3 } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem) GetP4() *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4 { + if d == nil { + return nil + } + return d.P4 +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetP1 sets the P1 field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem) SetP1(p1 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1) { + d.P1 = p1 + d.require(docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemFieldP1) } -// SetIndex sets the Index field and marks it as non-optional; +// SetP2 sets the P2 field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexFieldIndex) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem) SetP2(p2 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2) { + d.P2 = p2 + d.require(docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemFieldP2) } -// SetRevision sets the Revision field and marks it as non-optional; +// SetP3 sets the P3 field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision) { - d.Revision = revision - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexFieldRevision) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem) SetP3(p3 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3) { + d.P3 = p3 + d.require(docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemFieldP3) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex +// SetP4 sets the P4 field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem) SetP4(p4 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4) { + d.P4 = p4 + d.require(docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemFieldP4) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex(value) + *d = DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -42194,8 +43684,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex) Unmarshal return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem var marshaler = struct { embed }{ @@ -42205,7 +43695,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex) MarshalJS return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem) String() string { if d == nil { return "" } @@ -42221,15 +43711,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex) String() } var ( - docAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1FieldX = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1FieldY = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -42238,69 +43726,55 @@ type DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision struct rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision) GetDocSessionID() string { - if d == nil { - return "" - } - return d.DocSessionID -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1) GetX() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.X } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision) GetGeneration() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1) GetY() float64 { if d == nil { return 0 } - return d.Generation + return d.Y } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevisionFieldDocSessionID) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevisionFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1) SetX(x float64) { + d.X = x + d.require(docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1FieldX) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevisionFieldGeneration) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1) SetY(y float64) { + d.Y = y + d.require(docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1FieldY) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1 var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision(value) + *d = DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -42310,8 +43784,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision) U return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1 var marshaler = struct { embed }{ @@ -42321,7 +43795,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision) M return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1) String() string { if d == nil { return "" } @@ -42337,13 +43811,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision) S } var ( - docAnnotationsList200ResponseAnnotationsItemSquigglyRefNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemSquigglyRefNmFieldNm = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2FieldX = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2FieldY = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` +type DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -42352,55 +43826,55 @@ type DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2) GetX() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.X } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm) GetNm() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2) GetY() float64 { if d == nil { - return "" + return 0 } - return d.Nm + return d.Y } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyRefNmFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2) SetX(x float64) { + d.X = x + d.require(docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2FieldX) } -// SetNm sets the Nm field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyRefNmFieldNm) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2) SetY(y float64) { + d.Y = y + d.require(docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2FieldY) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2 var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm(value) + *d = DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -42410,8 +43884,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm) UnmarshalJSO return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2 var marshaler = struct { embed }{ @@ -42421,7 +43895,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm) MarshalJSON( return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2) String() string { if d == nil { return "" } @@ -42437,13 +43911,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm) String() str } var ( - docAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3FieldX = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3FieldY = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` +type DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -42452,55 +43926,55 @@ type DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber struct rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3) GetX() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.X } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3) GetY() float64 { if d == nil { return 0 } - return d.AnnotObjectNumber + return d.Y } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumberFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3) SetX(x float64) { + d.X = x + d.require(docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3FieldX) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumberFieldAnnotObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3) SetY(y float64) { + d.Y = y + d.require(docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3FieldY) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3 var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber(value) + *d = DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -42510,8 +43984,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber) Un return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3 var marshaler = struct { embed }{ @@ -42521,7 +43995,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber) Ma return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3) String() string { if d == nil { return "" } @@ -42536,78 +44010,118 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber) St return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyType string - -const ( - DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyTypeReply DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyType = "reply" - DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyTypeGroup DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyType = "group" +var ( + docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4FieldX = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4FieldY = big.NewInt(1 << 1) ) -func NewDocAnnotationsList200ResponseAnnotationsItemSquigglyReplyTypeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyType, error) { - switch s { - case "reply": - return DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyTypeReply, nil - case "group": - return DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyTypeGroup, nil +type DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4) GetX() float64 { + if d == nil { + return 0 } - var t DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyType - return "", fmt.Errorf("%s is not a valid %T", s, t) + return d.X } -func (d DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyType) Ptr() *DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyType { - return &d +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4) GetY() float64 { + if d == nil { + return 0 + } + return d.Y +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetX sets the X field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4) SetX(x float64) { + d.X = x + d.require(docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4FieldX) +} + +// SetY sets the Y field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4) SetY(y float64) { + d.Y = y + d.require(docAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4FieldY) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4 + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4 + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } var ( - docAnnotationsList200ResponseAnnotationsItemStampFieldRef = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemStampFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemStampFieldIndex = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemStampFieldIdentityQuality = big.NewInt(1 << 3) - docAnnotationsList200ResponseAnnotationsItemStampFieldNm = big.NewInt(1 << 4) - docAnnotationsList200ResponseAnnotationsItemStampFieldFlags = big.NewInt(1 << 5) - docAnnotationsList200ResponseAnnotationsItemStampFieldRect = big.NewInt(1 << 6) - docAnnotationsList200ResponseAnnotationsItemStampFieldContents = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemStampFieldSubject = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemStampFieldAuthor = big.NewInt(1 << 9) - docAnnotationsList200ResponseAnnotationsItemStampFieldCreated = big.NewInt(1 << 10) - docAnnotationsList200ResponseAnnotationsItemStampFieldModified = big.NewInt(1 << 11) - docAnnotationsList200ResponseAnnotationsItemStampFieldBlendMode = big.NewInt(1 << 12) - docAnnotationsList200ResponseAnnotationsItemStampFieldInReplyTo = big.NewInt(1 << 13) - docAnnotationsList200ResponseAnnotationsItemStampFieldReplyType = big.NewInt(1 << 14) - docAnnotationsList200ResponseAnnotationsItemStampFieldUserID = big.NewInt(1 << 15) - docAnnotationsList200ResponseAnnotationsItemStampFieldGroupID = big.NewInt(1 << 16) - docAnnotationsList200ResponseAnnotationsItemStampFieldCreatedBy = big.NewInt(1 << 17) - docAnnotationsList200ResponseAnnotationsItemStampFieldUpdatedBy = big.NewInt(1 << 18) - docAnnotationsList200ResponseAnnotationsItemStampFieldActions = big.NewInt(1 << 19) - docAnnotationsList200ResponseAnnotationsItemStampFieldName = big.NewInt(1 << 20) - docAnnotationsList200ResponseAnnotationsItemStampFieldRotation = big.NewInt(1 << 21) - docAnnotationsList200ResponseAnnotationsItemStampFieldUnrotatedRect = big.NewInt(1 << 22) + docAnnotationsList200ResponseAnnotationsItemRedactRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemRedactRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemRedactRectFieldRight = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemRedactRectFieldTop = big.NewInt(1 << 3) ) -type DocAnnotationsList200ResponseAnnotationsItemStamp struct { - Ref *DocAnnotationsList200ResponseAnnotationsItemStampRef `json:"ref" url:"ref"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - IdentityQuality DocAnnotationsList200ResponseAnnotationsItemStampIdentityQuality `json:"identityQuality" url:"identityQuality"` - Nm *string `json:"nm,omitempty" url:"nm,omitempty"` - Flags *DocAnnotationsList200ResponseAnnotationsItemStampFlags `json:"flags" url:"flags"` - Rect *DocAnnotationsList200ResponseAnnotationsItemStampRect `json:"rect" url:"rect"` - Contents *string `json:"contents,omitempty" url:"contents,omitempty"` - Subject *string `json:"subject,omitempty" url:"subject,omitempty"` - Author *string `json:"author,omitempty" url:"author,omitempty"` - Created *time.Time `json:"created,omitempty" url:"created,omitempty"` - Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` - BlendMode DocAnnotationsList200ResponseAnnotationsItemStampBlendMode `json:"blendMode" url:"blendMode"` - InReplyTo *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` - ReplyType *DocAnnotationsList200ResponseAnnotationsItemStampReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` - UserID *string `json:"userId,omitempty" url:"userId,omitempty"` - GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` - CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` - Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` - Name *string `json:"name,omitempty" url:"name,omitempty"` - Rotation *float64 `json:"rotation,omitempty" url:"rotation,omitempty"` - UnrotatedRect *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect `json:"unrotatedRect,omitempty" url:"unrotatedRect,omitempty"` +type DocAnnotationsList200ResponseAnnotationsItemRedactRect struct { + Left float64 `json:"left" url:"left"` + Bottom float64 `json:"bottom" url:"bottom"` + Right float64 `json:"right" url:"right"` + Top float64 `json:"top" url:"top"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -42616,357 +44130,465 @@ type DocAnnotationsList200ResponseAnnotationsItemStamp struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetRef() *DocAnnotationsList200ResponseAnnotationsItemStampRef { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRect) GetLeft() float64 { if d == nil { - return nil + return 0 } - return d.Ref + return d.Left } -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRect) GetBottom() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.Bottom } -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetIndex() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRect) GetRight() float64 { if d == nil { return 0 } - return d.Index + return d.Right } -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetIdentityQuality() DocAnnotationsList200ResponseAnnotationsItemStampIdentityQuality { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRect) GetTop() float64 { if d == nil { - return "" + return 0 } - return d.IdentityQuality + return d.Top } -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetNm() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRect) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.Nm + return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetFlags() *DocAnnotationsList200ResponseAnnotationsItemStampFlags { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRect) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.Flags + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetRect() *DocAnnotationsList200ResponseAnnotationsItemStampRect { - if d == nil { - return nil - } - return d.Rect +// SetLeft sets the Left field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRect) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsList200ResponseAnnotationsItemRedactRectFieldLeft) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetContents() *string { - if d == nil { - return nil - } - return d.Contents +// SetBottom sets the Bottom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRect) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsList200ResponseAnnotationsItemRedactRectFieldBottom) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetSubject() *string { - if d == nil { - return nil - } - return d.Subject +// SetRight sets the Right field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRect) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsList200ResponseAnnotationsItemRedactRectFieldRight) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetAuthor() *string { - if d == nil { - return nil +// SetTop sets the Top field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsList200ResponseAnnotationsItemRedactRectFieldTop) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactRect + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - return d.Author + *d = DocAnnotationsList200ResponseAnnotationsItemRedactRect(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetCreated() *time.Time { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemRedactRect + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return d.Created + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetModified() *time.Time { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRect) String() string { if d == nil { - return nil + return "" } - return d.Modified + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetBlendMode() DocAnnotationsList200ResponseAnnotationsItemStampBlendMode { +type DocAnnotationsList200ResponseAnnotationsItemRedactRef struct { + Kind string + ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber + Nm *DocAnnotationsList200ResponseAnnotationsItemRedactRefNm + Index *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRef) GetKind() string { if d == nil { return "" } - return d.BlendMode + return d.Kind } -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetInReplyTo() *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRef) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber { if d == nil { return nil } - return d.InReplyTo + return d.ObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetReplyType() *DocAnnotationsList200ResponseAnnotationsItemStampReplyType { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRef) GetNm() *DocAnnotationsList200ResponseAnnotationsItemRedactRefNm { if d == nil { return nil } - return d.ReplyType + return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetUserID() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRef) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex { if d == nil { return nil } - return d.UserID + return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetGroupID() *string { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRef) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` } - return d.GroupID + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsList200ResponseAnnotationsItemRedactRefNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value + } + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetCreatedBy() *string { - if d == nil { - return nil +func (d DocAnnotationsList200ResponseAnnotationsItemRedactRef) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err } - return d.CreatedBy + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Nm != nil { + return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + } + if d.Index != nil { + return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetUpdatedBy() *string { - if d == nil { - return nil +type DocAnnotationsList200ResponseAnnotationsItemRedactRefVisitor interface { + VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber) error + VisitNm(*DocAnnotationsList200ResponseAnnotationsItemRedactRefNm) error + VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex) error +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRef) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemRedactRefVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) } - return d.UpdatedBy + if d.Nm != nil { + return visitor.VisitNm(d.Nm) + } + if d.Index != nil { + return visitor.VisitIndex(d.Index) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetActions() *PdfAnnotationActions { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRef) validate() error { if d == nil { - return nil + return fmt.Errorf("type %T is nil", d) } - return d.Actions + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Nm != nil { + fields = append(fields, "nm") + } + if d.Index != nil { + fields = append(fields, "index") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetName() *string { +var ( + docAnnotationsList200ResponseAnnotationsItemRedactRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemRedactRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemRedactRefIndexFieldRevision = big.NewInt(1 << 2) +) + +type DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision `json:"revision" url:"revision"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex) GetPageObjectNumber() int { if d == nil { - return nil + return 0 } - return d.Name + return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetRotation() *float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex) GetIndex() int { if d == nil { - return nil + return 0 } - return d.Rotation + return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetUnrotatedRect() *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision { if d == nil { return nil } - return d.UnrotatedRect + return d.Revision } -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetRef sets the Ref field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetRef(ref *DocAnnotationsList200ResponseAnnotationsItemStampRef) { - d.Ref = ref - d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldRef) -} - // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemRedactRefIndexFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetIndex(index int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex) SetIndex(index int) { d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldIndex) -} - -// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetIdentityQuality(identityQuality DocAnnotationsList200ResponseAnnotationsItemStampIdentityQuality) { - d.IdentityQuality = identityQuality - d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldIdentityQuality) -} - -// SetNm sets the Nm field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetNm(nm *string) { - d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldNm) + d.require(docAnnotationsList200ResponseAnnotationsItemRedactRefIndexFieldIndex) } -// SetFlags sets the Flags field and marks it as non-optional; +// SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetFlags(flags *DocAnnotationsList200ResponseAnnotationsItemStampFlags) { - d.Flags = flags - d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldFlags) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision) { + d.Revision = revision + d.require(docAnnotationsList200ResponseAnnotationsItemRedactRefIndexFieldRevision) } -// SetRect sets the Rect field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetRect(rect *DocAnnotationsList200ResponseAnnotationsItemStampRect) { - d.Rect = rect - d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldRect) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -// SetContents sets the Contents field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetContents(contents *string) { - d.Contents = contents - d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldContents) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -// SetSubject sets the Subject field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetSubject(subject *string) { - d.Subject = subject - d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldSubject) -} - -// SetAuthor sets the Author field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetAuthor(author *string) { - d.Author = author - d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldAuthor) -} - -// SetCreated sets the Created field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetCreated(created *time.Time) { - d.Created = created - d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldCreated) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -// SetModified sets the Modified field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetModified(modified *time.Time) { - d.Modified = modified - d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldModified) -} +var ( + docAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) -// SetBlendMode sets the BlendMode field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetBlendMode(blendMode DocAnnotationsList200ResponseAnnotationsItemStampBlendMode) { - d.BlendMode = blendMode - d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldBlendMode) -} +type DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` -// SetInReplyTo sets the InReplyTo field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetInReplyTo(inReplyTo *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo) { - d.InReplyTo = inReplyTo - d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldInReplyTo) -} + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` -// SetReplyType sets the ReplyType field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetReplyType(replyType *DocAnnotationsList200ResponseAnnotationsItemStampReplyType) { - d.ReplyType = replyType - d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldReplyType) + extraProperties map[string]interface{} + rawJSON json.RawMessage } -// SetUserID sets the UserID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetUserID(userID *string) { - d.UserID = userID - d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldUserID) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID } -// SetGroupID sets the GroupID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetGroupID(groupID *string) { - d.GroupID = groupID - d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldGroupID) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber } -// SetCreatedBy sets the CreatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetCreatedBy(createdBy *string) { - d.CreatedBy = createdBy - d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldCreatedBy) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation } -// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetUpdatedBy(updatedBy *string) { - d.UpdatedBy = updatedBy - d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldUpdatedBy) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties } -// SetActions sets the Actions field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetActions(actions *PdfAnnotationActions) { - d.Actions = actions - d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldActions) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) } -// SetName sets the Name field and marks it as non-optional; +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetName(name *string) { - d.Name = name - d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldName) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevisionFieldDocSessionID) } -// SetRotation sets the Rotation field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetRotation(rotation *float64) { - d.Rotation = rotation - d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldRotation) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevisionFieldPageObjectNumber) } -// SetUnrotatedRect sets the UnrotatedRect field and marks it as non-optional; +// SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetUnrotatedRect(unrotatedRect *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect) { - d.UnrotatedRect = unrotatedRect - d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldUnrotatedRect) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevisionFieldGeneration) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) UnmarshalJSON(data []byte) error { - type embed DocAnnotationsList200ResponseAnnotationsItemStamp - var unmarshaler = struct { - embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` - }{ - embed: embed(*d), - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemStamp(unmarshaler.embed) - d.Created = unmarshaler.Created.TimePtr() - d.Modified = unmarshaler.Modified.TimePtr() + *d = DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -42976,22 +44598,18 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) UnmarshalJSON(data [ return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemStamp +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision var marshaler = struct { embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), - Created: internal.NewOptionalDateTime(d.Created), - Modified: internal.NewOptionalDateTime(d.Modified), + embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision) String() string { if d == nil { return "" } @@ -43006,94 +44624,14 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) String() string { return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemStampBlendMode string - -const ( - DocAnnotationsList200ResponseAnnotationsItemStampBlendModeNormal DocAnnotationsList200ResponseAnnotationsItemStampBlendMode = "normal" - DocAnnotationsList200ResponseAnnotationsItemStampBlendModeMultiply DocAnnotationsList200ResponseAnnotationsItemStampBlendMode = "multiply" - DocAnnotationsList200ResponseAnnotationsItemStampBlendModeScreen DocAnnotationsList200ResponseAnnotationsItemStampBlendMode = "screen" - DocAnnotationsList200ResponseAnnotationsItemStampBlendModeOverlay DocAnnotationsList200ResponseAnnotationsItemStampBlendMode = "overlay" - DocAnnotationsList200ResponseAnnotationsItemStampBlendModeDarken DocAnnotationsList200ResponseAnnotationsItemStampBlendMode = "darken" - DocAnnotationsList200ResponseAnnotationsItemStampBlendModeLighten DocAnnotationsList200ResponseAnnotationsItemStampBlendMode = "lighten" - DocAnnotationsList200ResponseAnnotationsItemStampBlendModeColorDodge DocAnnotationsList200ResponseAnnotationsItemStampBlendMode = "color-dodge" - DocAnnotationsList200ResponseAnnotationsItemStampBlendModeColorBurn DocAnnotationsList200ResponseAnnotationsItemStampBlendMode = "color-burn" - DocAnnotationsList200ResponseAnnotationsItemStampBlendModeHardLight DocAnnotationsList200ResponseAnnotationsItemStampBlendMode = "hard-light" - DocAnnotationsList200ResponseAnnotationsItemStampBlendModeSoftLight DocAnnotationsList200ResponseAnnotationsItemStampBlendMode = "soft-light" - DocAnnotationsList200ResponseAnnotationsItemStampBlendModeDifference DocAnnotationsList200ResponseAnnotationsItemStampBlendMode = "difference" - DocAnnotationsList200ResponseAnnotationsItemStampBlendModeExclusion DocAnnotationsList200ResponseAnnotationsItemStampBlendMode = "exclusion" - DocAnnotationsList200ResponseAnnotationsItemStampBlendModeHue DocAnnotationsList200ResponseAnnotationsItemStampBlendMode = "hue" - DocAnnotationsList200ResponseAnnotationsItemStampBlendModeSaturation DocAnnotationsList200ResponseAnnotationsItemStampBlendMode = "saturation" - DocAnnotationsList200ResponseAnnotationsItemStampBlendModeColor DocAnnotationsList200ResponseAnnotationsItemStampBlendMode = "color" - DocAnnotationsList200ResponseAnnotationsItemStampBlendModeLuminosity DocAnnotationsList200ResponseAnnotationsItemStampBlendMode = "luminosity" -) - -func NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemStampBlendMode, error) { - switch s { - case "normal": - return DocAnnotationsList200ResponseAnnotationsItemStampBlendModeNormal, nil - case "multiply": - return DocAnnotationsList200ResponseAnnotationsItemStampBlendModeMultiply, nil - case "screen": - return DocAnnotationsList200ResponseAnnotationsItemStampBlendModeScreen, nil - case "overlay": - return DocAnnotationsList200ResponseAnnotationsItemStampBlendModeOverlay, nil - case "darken": - return DocAnnotationsList200ResponseAnnotationsItemStampBlendModeDarken, nil - case "lighten": - return DocAnnotationsList200ResponseAnnotationsItemStampBlendModeLighten, nil - case "color-dodge": - return DocAnnotationsList200ResponseAnnotationsItemStampBlendModeColorDodge, nil - case "color-burn": - return DocAnnotationsList200ResponseAnnotationsItemStampBlendModeColorBurn, nil - case "hard-light": - return DocAnnotationsList200ResponseAnnotationsItemStampBlendModeHardLight, nil - case "soft-light": - return DocAnnotationsList200ResponseAnnotationsItemStampBlendModeSoftLight, nil - case "difference": - return DocAnnotationsList200ResponseAnnotationsItemStampBlendModeDifference, nil - case "exclusion": - return DocAnnotationsList200ResponseAnnotationsItemStampBlendModeExclusion, nil - case "hue": - return DocAnnotationsList200ResponseAnnotationsItemStampBlendModeHue, nil - case "saturation": - return DocAnnotationsList200ResponseAnnotationsItemStampBlendModeSaturation, nil - case "color": - return DocAnnotationsList200ResponseAnnotationsItemStampBlendModeColor, nil - case "luminosity": - return DocAnnotationsList200ResponseAnnotationsItemStampBlendModeLuminosity, nil - } - var t DocAnnotationsList200ResponseAnnotationsItemStampBlendMode - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsList200ResponseAnnotationsItemStampBlendMode) Ptr() *DocAnnotationsList200ResponseAnnotationsItemStampBlendMode { - return &d -} - var ( - docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldInvisible = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldHidden = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldPrint = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldNoZoom = big.NewInt(1 << 3) - docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldNoRotate = big.NewInt(1 << 4) - docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldNoView = big.NewInt(1 << 5) - docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldReadOnly = big.NewInt(1 << 6) - docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldLocked = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldToggleNoView = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldLockedContents = big.NewInt(1 << 9) + docAnnotationsList200ResponseAnnotationsItemRedactRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemRedactRefNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemStampFlags struct { - Invisible bool `json:"invisible" url:"invisible"` - Hidden bool `json:"hidden" url:"hidden"` - Print bool `json:"print" url:"print"` - NoZoom bool `json:"noZoom" url:"noZoom"` - NoRotate bool `json:"noRotate" url:"noRotate"` - NoView bool `json:"noView" url:"noView"` - ReadOnly bool `json:"readOnly" url:"readOnly"` - Locked bool `json:"locked" url:"locked"` - ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` - LockedContents bool `json:"lockedContents" url:"lockedContents"` +type DocAnnotationsList200ResponseAnnotationsItemRedactRefNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -43102,167 +44640,155 @@ type DocAnnotationsList200ResponseAnnotationsItemStampFlags struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) GetInvisible() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefNm) GetPageObjectNumber() int { if d == nil { - return false + return 0 } - return d.Invisible + return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) GetHidden() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefNm) GetNm() string { if d == nil { - return false + return "" } - return d.Hidden + return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) GetPrint() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefNm) GetExtraProperties() map[string]interface{} { if d == nil { - return false + return nil } - return d.Print + return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) GetNoZoom() bool { - if d == nil { - return false +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefNm) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.NoZoom + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) GetNoRotate() bool { - if d == nil { - return false - } - return d.NoRotate +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemRedactRefNmFieldPageObjectNumber) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) GetNoView() bool { - if d == nil { - return false +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsList200ResponseAnnotationsItemRedactRefNmFieldNm) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactRefNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - return d.NoView + *d = DocAnnotationsList200ResponseAnnotationsItemRedactRefNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) GetReadOnly() bool { - if d == nil { - return false +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemRedactRefNm + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return d.ReadOnly + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) GetLocked() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefNm) String() string { if d == nil { - return false + return "" } - return d.Locked + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) GetToggleNoView() bool { +var ( + docAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +type DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber) GetPageObjectNumber() int { if d == nil { - return false + return 0 } - return d.ToggleNoView + return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) GetLockedContents() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber) GetAnnotObjectNumber() int { if d == nil { - return false + return 0 } - return d.LockedContents + return d.AnnotObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetInvisible sets the Invisible field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) SetInvisible(invisible bool) { - d.Invisible = invisible - d.require(docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldInvisible) -} - -// SetHidden sets the Hidden field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) SetHidden(hidden bool) { - d.Hidden = hidden - d.require(docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldHidden) -} - -// SetPrint sets the Print field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) SetPrint(print bool) { - d.Print = print - d.require(docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldPrint) -} - -// SetNoZoom sets the NoZoom field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) SetNoZoom(noZoom bool) { - d.NoZoom = noZoom - d.require(docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldNoZoom) -} - -// SetNoRotate sets the NoRotate field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) SetNoRotate(noRotate bool) { - d.NoRotate = noRotate - d.require(docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldNoRotate) -} - -// SetNoView sets the NoView field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) SetNoView(noView bool) { - d.NoView = noView - d.require(docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldNoView) -} - -// SetReadOnly sets the ReadOnly field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) SetReadOnly(readOnly bool) { - d.ReadOnly = readOnly - d.require(docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldReadOnly) -} - -// SetLocked sets the Locked field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) SetLocked(locked bool) { - d.Locked = locked - d.require(docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldLocked) -} - -// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) SetToggleNoView(toggleNoView bool) { - d.ToggleNoView = toggleNoView - d.require(docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldToggleNoView) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumberFieldPageObjectNumber) } -// SetLockedContents sets the LockedContents field and marks it as non-optional; +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) SetLockedContents(lockedContents bool) { - d.LockedContents = lockedContents - d.require(docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldLockedContents) +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStampFlags +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemStampFlags(value) + *d = DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -43272,8 +44798,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) UnmarshalJSON(d return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemStampFlags +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber var marshaler = struct { embed }{ @@ -43283,7 +44809,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) MarshalJSON() ( return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber) String() string { if d == nil { return "" } @@ -43298,575 +44824,574 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) String() string return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemStampIdentityQuality string +type DocAnnotationsList200ResponseAnnotationsItemRedactReplyType string const ( - DocAnnotationsList200ResponseAnnotationsItemStampIdentityQualityDurable DocAnnotationsList200ResponseAnnotationsItemStampIdentityQuality = "durable" - DocAnnotationsList200ResponseAnnotationsItemStampIdentityQualityWeak DocAnnotationsList200ResponseAnnotationsItemStampIdentityQuality = "weak" + DocAnnotationsList200ResponseAnnotationsItemRedactReplyTypeReply DocAnnotationsList200ResponseAnnotationsItemRedactReplyType = "reply" + DocAnnotationsList200ResponseAnnotationsItemRedactReplyTypeGroup DocAnnotationsList200ResponseAnnotationsItemRedactReplyType = "group" ) -func NewDocAnnotationsList200ResponseAnnotationsItemStampIdentityQualityFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemStampIdentityQuality, error) { +func NewDocAnnotationsList200ResponseAnnotationsItemRedactReplyTypeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemRedactReplyType, error) { switch s { - case "durable": - return DocAnnotationsList200ResponseAnnotationsItemStampIdentityQualityDurable, nil - case "weak": - return DocAnnotationsList200ResponseAnnotationsItemStampIdentityQualityWeak, nil + case "reply": + return DocAnnotationsList200ResponseAnnotationsItemRedactReplyTypeReply, nil + case "group": + return DocAnnotationsList200ResponseAnnotationsItemRedactReplyTypeGroup, nil } - var t DocAnnotationsList200ResponseAnnotationsItemStampIdentityQuality + var t DocAnnotationsList200ResponseAnnotationsItemRedactReplyType return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsList200ResponseAnnotationsItemStampIdentityQuality) Ptr() *DocAnnotationsList200ResponseAnnotationsItemStampIdentityQuality { +func (d DocAnnotationsList200ResponseAnnotationsItemRedactReplyType) Ptr() *DocAnnotationsList200ResponseAnnotationsItemRedactReplyType { return &d } -type DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo struct { - Kind string - ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber - Nm *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm - Index *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex +type DocAnnotationsList200ResponseAnnotationsItemRedactTextAlign string - rawJSON json.RawMessage -} +const ( + DocAnnotationsList200ResponseAnnotationsItemRedactTextAlignLeft DocAnnotationsList200ResponseAnnotationsItemRedactTextAlign = "left" + DocAnnotationsList200ResponseAnnotationsItemRedactTextAlignCenter DocAnnotationsList200ResponseAnnotationsItemRedactTextAlign = "center" + DocAnnotationsList200ResponseAnnotationsItemRedactTextAlignRight DocAnnotationsList200ResponseAnnotationsItemRedactTextAlign = "right" +) -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo) GetKind() string { - if d == nil { - return "" +func NewDocAnnotationsList200ResponseAnnotationsItemRedactTextAlignFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemRedactTextAlign, error) { + switch s { + case "left": + return DocAnnotationsList200ResponseAnnotationsItemRedactTextAlignLeft, nil + case "center": + return DocAnnotationsList200ResponseAnnotationsItemRedactTextAlignCenter, nil + case "right": + return DocAnnotationsList200ResponseAnnotationsItemRedactTextAlignRight, nil } - return d.Kind + var t DocAnnotationsList200ResponseAnnotationsItemRedactTextAlign + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber { - if d == nil { - return nil - } - return d.ObjectNumber +func (d DocAnnotationsList200ResponseAnnotationsItemRedactTextAlign) Ptr() *DocAnnotationsList200ResponseAnnotationsItemRedactTextAlign { + return &d } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo) GetNm() *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm { +var ( + docAnnotationsList200ResponseAnnotationsItemSquareFieldRef = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemSquareFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemSquareFieldIndex = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemSquareFieldIdentityQuality = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemSquareFieldNm = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemSquareFieldFlags = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemSquareFieldRect = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemSquareFieldContents = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemSquareFieldSubject = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemSquareFieldAuthor = big.NewInt(1 << 9) + docAnnotationsList200ResponseAnnotationsItemSquareFieldCreated = big.NewInt(1 << 10) + docAnnotationsList200ResponseAnnotationsItemSquareFieldModified = big.NewInt(1 << 11) + docAnnotationsList200ResponseAnnotationsItemSquareFieldBlendMode = big.NewInt(1 << 12) + docAnnotationsList200ResponseAnnotationsItemSquareFieldInReplyTo = big.NewInt(1 << 13) + docAnnotationsList200ResponseAnnotationsItemSquareFieldReplyType = big.NewInt(1 << 14) + docAnnotationsList200ResponseAnnotationsItemSquareFieldUserID = big.NewInt(1 << 15) + docAnnotationsList200ResponseAnnotationsItemSquareFieldGroupID = big.NewInt(1 << 16) + docAnnotationsList200ResponseAnnotationsItemSquareFieldCreatedBy = big.NewInt(1 << 17) + docAnnotationsList200ResponseAnnotationsItemSquareFieldUpdatedBy = big.NewInt(1 << 18) + docAnnotationsList200ResponseAnnotationsItemSquareFieldActions = big.NewInt(1 << 19) + docAnnotationsList200ResponseAnnotationsItemSquareFieldColor = big.NewInt(1 << 20) + docAnnotationsList200ResponseAnnotationsItemSquareFieldOpacity = big.NewInt(1 << 21) + docAnnotationsList200ResponseAnnotationsItemSquareFieldStrokeWidth = big.NewInt(1 << 22) + docAnnotationsList200ResponseAnnotationsItemSquareFieldBorderStyle = big.NewInt(1 << 23) + docAnnotationsList200ResponseAnnotationsItemSquareFieldDashArray = big.NewInt(1 << 24) + docAnnotationsList200ResponseAnnotationsItemSquareFieldInteriorColor = big.NewInt(1 << 25) + docAnnotationsList200ResponseAnnotationsItemSquareFieldCloudyIntensity = big.NewInt(1 << 26) + docAnnotationsList200ResponseAnnotationsItemSquareFieldRectDifferences = big.NewInt(1 << 27) + docAnnotationsList200ResponseAnnotationsItemSquareFieldRotation = big.NewInt(1 << 28) + docAnnotationsList200ResponseAnnotationsItemSquareFieldUnrotatedRect = big.NewInt(1 << 29) +) + +type DocAnnotationsList200ResponseAnnotationsItemSquare struct { + Ref *DocAnnotationsList200ResponseAnnotationsItemSquareRef `json:"ref" url:"ref"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + IdentityQuality DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQuality `json:"identityQuality" url:"identityQuality"` + Nm *string `json:"nm,omitempty" url:"nm,omitempty"` + Flags *DocAnnotationsList200ResponseAnnotationsItemSquareFlags `json:"flags" url:"flags"` + Rect *DocAnnotationsList200ResponseAnnotationsItemSquareRect `json:"rect" url:"rect"` + Contents *string `json:"contents,omitempty" url:"contents,omitempty"` + Subject *string `json:"subject,omitempty" url:"subject,omitempty"` + Author *string `json:"author,omitempty" url:"author,omitempty"` + Created *time.Time `json:"created,omitempty" url:"created,omitempty"` + Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` + BlendMode DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode `json:"blendMode" url:"blendMode"` + InReplyTo *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` + ReplyType *DocAnnotationsList200ResponseAnnotationsItemSquareReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` + UserID *string `json:"userId,omitempty" url:"userId,omitempty"` + GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` + CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` + Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` + Color *DocAnnotationsList200ResponseAnnotationsItemSquareColor `json:"color" url:"color"` + Opacity float64 `json:"opacity" url:"opacity"` + StrokeWidth float64 `json:"strokeWidth" url:"strokeWidth"` + BorderStyle DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle `json:"borderStyle" url:"borderStyle"` + DashArray []float64 `json:"dashArray,omitempty" url:"dashArray,omitempty"` + InteriorColor *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor `json:"interiorColor,omitempty" url:"interiorColor,omitempty"` + CloudyIntensity *float64 `json:"cloudyIntensity,omitempty" url:"cloudyIntensity,omitempty"` + RectDifferences *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences `json:"rectDifferences,omitempty" url:"rectDifferences,omitempty"` + Rotation *float64 `json:"rotation,omitempty" url:"rotation,omitempty"` + UnrotatedRect *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect `json:"unrotatedRect,omitempty" url:"unrotatedRect,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetRef() *DocAnnotationsList200ResponseAnnotationsItemSquareRef { if d == nil { return nil } - return d.Nm + return d.Ref } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetPageObjectNumber() int { if d == nil { - return nil + return 0 } - return d.Index + return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Nm = value - case "index": - value := new(DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Index = value +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetIndex() int { + if d == nil { + return 0 } - d.rawJSON = json.RawMessage(data) - return nil + return d.Index } -func (d DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Nm != nil { - return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") - } - if d.Index != nil { - return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetIdentityQuality() DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQuality { + if d == nil { + return "" } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) + return d.IdentityQuality } -type DocAnnotationsList200ResponseAnnotationsItemStampInReplyToVisitor interface { - VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber) error - VisitNm(*DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm) error - VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex) error +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetNm() *string { + if d == nil { + return nil + } + return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemStampInReplyToVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) - } - if d.Nm != nil { - return visitor.VisitNm(d.Nm) - } - if d.Index != nil { - return visitor.VisitIndex(d.Index) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetFlags() *DocAnnotationsList200ResponseAnnotationsItemSquareFlags { + if d == nil { + return nil } - return fmt.Errorf("type %T does not define a non-empty union type", d) + return d.Flags } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo) validate() error { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetRect() *DocAnnotationsList200ResponseAnnotationsItemSquareRect { if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Nm != nil { - fields = append(fields, "nm") - } - if d.Index != nil { - fields = append(fields, "index") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } + return nil } - return nil + return d.Rect } -var ( - docAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexFieldRevision = big.NewInt(1 << 2) -) - -type DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision `json:"revision" url:"revision"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetContents() *string { + if d == nil { + return nil + } + return d.Contents } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetSubject() *string { if d == nil { - return 0 + return nil } - return d.PageObjectNumber + return d.Subject } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex) GetIndex() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetAuthor() *string { if d == nil { - return 0 + return nil } - return d.Index + return d.Author } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetCreated() *time.Time { if d == nil { return nil } - return d.Revision + return d.Created } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetModified() *time.Time { if d == nil { return nil } - return d.extraProperties + return d.Modified } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetBlendMode() DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode { + if d == nil { + return "" } - d.explicitFields.Or(d.explicitFields, field) + return d.BlendMode } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetInReplyTo() *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo { + if d == nil { + return nil + } + return d.InReplyTo } -// SetIndex sets the Index field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexFieldIndex) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetReplyType() *DocAnnotationsList200ResponseAnnotationsItemSquareReplyType { + if d == nil { + return nil + } + return d.ReplyType } -// SetRevision sets the Revision field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision) { - d.Revision = revision - d.require(docAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexFieldRevision) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetUserID() *string { + if d == nil { + return nil + } + return d.UserID } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetGroupID() *string { + if d == nil { + return nil } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil + return d.GroupID } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetCreatedBy() *string { + if d == nil { + return nil } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return d.CreatedBy } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetUpdatedBy() *string { if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value + return nil } - return fmt.Sprintf("%#v", d) + return d.UpdatedBy } -var ( - docAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) -) - -type DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetActions() *PdfAnnotationActions { + if d == nil { + return nil + } + return d.Actions } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetColor() *DocAnnotationsList200ResponseAnnotationsItemSquareColor { if d == nil { - return "" + return nil } - return d.DocSessionID + return d.Color } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetOpacity() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.Opacity } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision) GetGeneration() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetStrokeWidth() float64 { if d == nil { return 0 } - return d.Generation + return d.StrokeWidth } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetBorderStyle() DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle { if d == nil { - return nil + return "" } - return d.extraProperties + return d.BorderStyle } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetDashArray() []float64 { + if d == nil { + return nil } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevisionFieldDocSessionID) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevisionFieldPageObjectNumber) -} - -// SetGeneration sets the Generation field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevisionFieldGeneration) + return d.DashArray } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetInteriorColor() *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor { + if d == nil { + return nil } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil + return d.InteriorColor } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetCloudyIntensity() *float64 { + if d == nil { + return nil } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return d.CloudyIntensity } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetRectDifferences() *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences { if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value + return nil } - return fmt.Sprintf("%#v", d) -} - -var ( - docAnnotationsList200ResponseAnnotationsItemStampInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemStampInReplyToNmFieldNm = big.NewInt(1 << 1) -) - -type DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage + return d.RectDifferences } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetRotation() *float64 { if d == nil { - return 0 + return nil } - return d.PageObjectNumber + return d.Rotation } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm) GetNm() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetUnrotatedRect() *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect { if d == nil { - return "" + return nil } - return d.Nm + return d.UnrotatedRect } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } +// SetRef sets the Ref field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetRef(ref *DocAnnotationsList200ResponseAnnotationsItemSquareRef) { + d.Ref = ref + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldRef) +} + // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemStampInReplyToNmFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldPageObjectNumber) } -// SetNm sets the Nm field and marks it as non-optional; +// SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemStampInReplyToNmFieldNm) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldIndex) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil +// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetIdentityQuality(identityQuality DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQuality) { + d.IdentityQuality = identityQuality + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldIdentityQuality) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetNm(nm *string) { + d.Nm = nm + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldNm) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) +// SetFlags sets the Flags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetFlags(flags *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) { + d.Flags = flags + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldFlags) } -var ( - docAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) -) +// SetRect sets the Rect field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetRect(rect *DocAnnotationsList200ResponseAnnotationsItemSquareRect) { + d.Rect = rect + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldRect) +} -type DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` +// SetContents sets the Contents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetContents(contents *string) { + d.Contents = contents + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldContents) +} - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +// SetSubject sets the Subject field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetSubject(subject *string) { + d.Subject = subject + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldSubject) +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +// SetAuthor sets the Author field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetAuthor(author *string) { + d.Author = author + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldAuthor) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber +// SetCreated sets the Created field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetCreated(created *time.Time) { + d.Created = created + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldCreated) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber) GetAnnotObjectNumber() int { - if d == nil { - return 0 - } - return d.AnnotObjectNumber +// SetModified sets the Modified field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetModified(modified *time.Time) { + d.Modified = modified + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldModified) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties +// SetBlendMode sets the BlendMode field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetBlendMode(blendMode DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode) { + d.BlendMode = blendMode + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldBlendMode) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) +// SetInReplyTo sets the InReplyTo field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetInReplyTo(inReplyTo *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo) { + d.InReplyTo = inReplyTo + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldInReplyTo) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetReplyType sets the ReplyType field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumberFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetReplyType(replyType *DocAnnotationsList200ResponseAnnotationsItemSquareReplyType) { + d.ReplyType = replyType + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldReplyType) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetUserID sets the UserID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumberFieldAnnotObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetUserID(userID *string) { + d.UserID = userID + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldUserID) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { +// SetGroupID sets the GroupID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetGroupID(groupID *string) { + d.GroupID = groupID + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldGroupID) +} + +// SetCreatedBy sets the CreatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetCreatedBy(createdBy *string) { + d.CreatedBy = createdBy + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldCreatedBy) +} + +// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetUpdatedBy(updatedBy *string) { + d.UpdatedBy = updatedBy + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldUpdatedBy) +} + +// SetActions sets the Actions field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetActions(actions *PdfAnnotationActions) { + d.Actions = actions + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldActions) +} + +// SetColor sets the Color field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetColor(color *DocAnnotationsList200ResponseAnnotationsItemSquareColor) { + d.Color = color + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldColor) +} + +// SetOpacity sets the Opacity field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetOpacity(opacity float64) { + d.Opacity = opacity + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldOpacity) +} + +// SetStrokeWidth sets the StrokeWidth field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetStrokeWidth(strokeWidth float64) { + d.StrokeWidth = strokeWidth + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldStrokeWidth) +} + +// SetBorderStyle sets the BorderStyle field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetBorderStyle(borderStyle DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle) { + d.BorderStyle = borderStyle + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldBorderStyle) +} + +// SetDashArray sets the DashArray field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetDashArray(dashArray []float64) { + d.DashArray = dashArray + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldDashArray) +} + +// SetInteriorColor sets the InteriorColor field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetInteriorColor(interiorColor *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor) { + d.InteriorColor = interiorColor + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldInteriorColor) +} + +// SetCloudyIntensity sets the CloudyIntensity field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetCloudyIntensity(cloudyIntensity *float64) { + d.CloudyIntensity = cloudyIntensity + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldCloudyIntensity) +} + +// SetRectDifferences sets the RectDifferences field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetRectDifferences(rectDifferences *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences) { + d.RectDifferences = rectDifferences + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldRectDifferences) +} + +// SetRotation sets the Rotation field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetRotation(rotation *float64) { + d.Rotation = rotation + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldRotation) +} + +// SetUnrotatedRect sets the UnrotatedRect field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) SetUnrotatedRect(unrotatedRect *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect) { + d.UnrotatedRect = unrotatedRect + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFieldUnrotatedRect) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) UnmarshalJSON(data []byte) error { + type embed DocAnnotationsList200ResponseAnnotationsItemSquare + var unmarshaler = struct { + embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber(value) + *d = DocAnnotationsList200ResponseAnnotationsItemSquare(unmarshaler.embed) + d.Created = unmarshaler.Created.TimePtr() + d.Modified = unmarshaler.Modified.TimePtr() extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -43876,18 +45401,22 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber) return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemSquare var marshaler = struct { embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), + embed: embed(*d), + Created: internal.NewOptionalDateTime(d.Created), + Modified: internal.NewOptionalDateTime(d.Modified), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquare) String() string { if d == nil { return "" } @@ -43902,18 +45431,108 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber) return fmt.Sprintf("%#v", d) } +type DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode string + +const ( + DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeNormal DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode = "normal" + DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeMultiply DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode = "multiply" + DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeScreen DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode = "screen" + DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeOverlay DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode = "overlay" + DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeDarken DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode = "darken" + DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeLighten DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode = "lighten" + DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeColorDodge DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode = "color-dodge" + DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeColorBurn DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode = "color-burn" + DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeHardLight DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode = "hard-light" + DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeSoftLight DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode = "soft-light" + DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeDifference DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode = "difference" + DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeExclusion DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode = "exclusion" + DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeHue DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode = "hue" + DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeSaturation DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode = "saturation" + DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeColor DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode = "color" + DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeLuminosity DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode = "luminosity" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemSquareBlendModeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode, error) { + switch s { + case "normal": + return DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeNormal, nil + case "multiply": + return DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeMultiply, nil + case "screen": + return DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeScreen, nil + case "overlay": + return DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeOverlay, nil + case "darken": + return DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeDarken, nil + case "lighten": + return DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeLighten, nil + case "color-dodge": + return DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeColorDodge, nil + case "color-burn": + return DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeColorBurn, nil + case "hard-light": + return DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeHardLight, nil + case "soft-light": + return DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeSoftLight, nil + case "difference": + return DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeDifference, nil + case "exclusion": + return DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeExclusion, nil + case "hue": + return DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeHue, nil + case "saturation": + return DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeSaturation, nil + case "color": + return DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeColor, nil + case "luminosity": + return DocAnnotationsList200ResponseAnnotationsItemSquareBlendModeLuminosity, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode) Ptr() *DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode { + return &d +} + +type DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle string + +const ( + DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyleSolid DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle = "solid" + DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyleDashed DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle = "dashed" + DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyleBeveled DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle = "beveled" + DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyleInset DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle = "inset" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemSquareBorderStyleFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle, error) { + switch s { + case "solid": + return DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyleSolid, nil + case "dashed": + return DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyleDashed, nil + case "beveled": + return DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyleBeveled, nil + case "inset": + return DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyleInset, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle) Ptr() *DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle { + return &d +} + var ( - docAnnotationsList200ResponseAnnotationsItemStampRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemStampRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemStampRectFieldRight = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemStampRectFieldTop = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemSquareColorFieldR = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemSquareColorFieldG = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemSquareColorFieldB = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemStampRect struct { - Left float64 `json:"left" url:"left"` - Bottom float64 `json:"bottom" url:"bottom"` - Right float64 `json:"right" url:"right"` - Top float64 `json:"top" url:"top"` +type DocAnnotationsList200ResponseAnnotationsItemSquareColor struct { + R int `json:"r" url:"r"` + G int `json:"g" url:"g"` + B int `json:"b" url:"b"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -43922,83 +45541,69 @@ type DocAnnotationsList200ResponseAnnotationsItemStampRect struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRect) GetLeft() float64 { - if d == nil { - return 0 - } - return d.Left -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRect) GetBottom() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareColor) GetR() int { if d == nil { return 0 } - return d.Bottom + return d.R } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRect) GetRight() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareColor) GetG() int { if d == nil { return 0 } - return d.Right + return d.G } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRect) GetTop() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareColor) GetB() int { if d == nil { return 0 } - return d.Top + return d.B } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRect) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareColor) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRect) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareColor) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetLeft sets the Left field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRect) SetLeft(left float64) { - d.Left = left - d.require(docAnnotationsList200ResponseAnnotationsItemStampRectFieldLeft) -} - -// SetBottom sets the Bottom field and marks it as non-optional; +// SetR sets the R field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRect) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsList200ResponseAnnotationsItemStampRectFieldBottom) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareColor) SetR(r int) { + d.R = r + d.require(docAnnotationsList200ResponseAnnotationsItemSquareColorFieldR) } -// SetRight sets the Right field and marks it as non-optional; +// SetG sets the G field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRect) SetRight(right float64) { - d.Right = right - d.require(docAnnotationsList200ResponseAnnotationsItemStampRectFieldRight) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareColor) SetG(g int) { + d.G = g + d.require(docAnnotationsList200ResponseAnnotationsItemSquareColorFieldG) } -// SetTop sets the Top field and marks it as non-optional; +// SetB sets the B field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRect) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsList200ResponseAnnotationsItemStampRectFieldTop) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareColor) SetB(b int) { + d.B = b + d.require(docAnnotationsList200ResponseAnnotationsItemSquareColorFieldB) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStampRect +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquareColor var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemStampRect(value) + *d = DocAnnotationsList200ResponseAnnotationsItemSquareColor(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -44008,8 +45613,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStampRect) UnmarshalJSON(da return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemStampRect +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemSquareColor var marshaler = struct { embed }{ @@ -44019,7 +45624,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStampRect) MarshalJSON() ([ return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRect) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareColor) String() string { if d == nil { return "" } @@ -44034,69 +45639,319 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStampRect) String() string return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemStampRef struct { - Kind string - ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber - Nm *DocAnnotationsList200ResponseAnnotationsItemStampRefNm - Index *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex +var ( + docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldInvisible = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldHidden = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldPrint = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldNoZoom = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldNoRotate = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldNoView = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldReadOnly = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldLocked = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldToggleNoView = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldLockedContents = big.NewInt(1 << 9) +) - rawJSON json.RawMessage +type DocAnnotationsList200ResponseAnnotationsItemSquareFlags struct { + Invisible bool `json:"invisible" url:"invisible"` + Hidden bool `json:"hidden" url:"hidden"` + Print bool `json:"print" url:"print"` + NoZoom bool `json:"noZoom" url:"noZoom"` + NoRotate bool `json:"noRotate" url:"noRotate"` + NoView bool `json:"noView" url:"noView"` + ReadOnly bool `json:"readOnly" url:"readOnly"` + Locked bool `json:"locked" url:"locked"` + ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` + LockedContents bool `json:"lockedContents" url:"lockedContents"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRef) GetKind() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) GetInvisible() bool { if d == nil { - return "" + return false } - return d.Kind + return d.Invisible } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRef) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) GetHidden() bool { if d == nil { - return nil + return false } - return d.ObjectNumber + return d.Hidden } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRef) GetNm() *DocAnnotationsList200ResponseAnnotationsItemStampRefNm { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) GetPrint() bool { if d == nil { - return nil + return false } - return d.Nm + return d.Print } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRef) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) GetNoZoom() bool { if d == nil { - return nil + return false } - return d.Index + return d.NoZoom } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRef) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) GetNoRotate() bool { + if d == nil { + return false } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err + return d.NoRotate +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) GetNoView() bool { + if d == nil { + return false } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) + return d.NoView +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) GetReadOnly() bool { + if d == nil { + return false } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsList200ResponseAnnotationsItemStampRefNm) + return d.ReadOnly +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) GetLocked() bool { + if d == nil { + return false + } + return d.Locked +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) GetToggleNoView() bool { + if d == nil { + return false + } + return d.ToggleNoView +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) GetLockedContents() bool { + if d == nil { + return false + } + return d.LockedContents +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetInvisible sets the Invisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) SetInvisible(invisible bool) { + d.Invisible = invisible + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldInvisible) +} + +// SetHidden sets the Hidden field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) SetHidden(hidden bool) { + d.Hidden = hidden + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldHidden) +} + +// SetPrint sets the Print field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) SetPrint(print bool) { + d.Print = print + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldPrint) +} + +// SetNoZoom sets the NoZoom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) SetNoZoom(noZoom bool) { + d.NoZoom = noZoom + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldNoZoom) +} + +// SetNoRotate sets the NoRotate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) SetNoRotate(noRotate bool) { + d.NoRotate = noRotate + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldNoRotate) +} + +// SetNoView sets the NoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) SetNoView(noView bool) { + d.NoView = noView + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldNoView) +} + +// SetReadOnly sets the ReadOnly field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldReadOnly) +} + +// SetLocked sets the Locked field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) SetLocked(locked bool) { + d.Locked = locked + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldLocked) +} + +// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) SetToggleNoView(toggleNoView bool) { + d.ToggleNoView = toggleNoView + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldToggleNoView) +} + +// SetLockedContents sets the LockedContents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) SetLockedContents(lockedContents bool) { + d.LockedContents = lockedContents + d.require(docAnnotationsList200ResponseAnnotationsItemSquareFlagsFieldLockedContents) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquareFlags + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemSquareFlags(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemSquareFlags + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareFlags) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQuality string + +const ( + DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQualityDurable DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQuality = "durable" + DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQualityWeak DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQuality = "weak" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemSquareIdentityQualityFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQuality, error) { + switch s { + case "durable": + return DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQualityDurable, nil + case "weak": + return DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQualityWeak, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQuality + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQuality) Ptr() *DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQuality { + return &d +} + +type DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo struct { + Kind string + ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber + Nm *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm + Index *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo) GetNm() *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex { + if d == nil { + return nil + } + return d.Index +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm) if err := json.Unmarshal(data, &value); err != nil { return err } d.Nm = value case "index": - value := new(DocAnnotationsList200ResponseAnnotationsItemStampRefIndex) + value := new(DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -44106,7 +45961,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStampRef) UnmarshalJSON(dat return nil } -func (d DocAnnotationsList200ResponseAnnotationsItemStampRef) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -44125,13 +45980,13 @@ func (d DocAnnotationsList200ResponseAnnotationsItemStampRef) MarshalJSON() ([]b return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsList200ResponseAnnotationsItemStampRefVisitor interface { - VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber) error - VisitNm(*DocAnnotationsList200ResponseAnnotationsItemStampRefNm) error - VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemStampRefIndex) error +type DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber) error + VisitNm(*DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm) error + VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex) error } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRef) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemStampRefVisitor) error { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToVisitor) error { if d.ObjectNumber != nil { return visitor.VisitObjectNumber(d.ObjectNumber) } @@ -44144,7 +45999,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStampRef) Accept(visitor Do return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRef) validate() error { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -44185,15 +46040,15 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStampRef) validate() error } var ( - docAnnotationsList200ResponseAnnotationsItemStampRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemStampRefIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemStampRefIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemStampRefIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -44202,35 +46057,35 @@ type DocAnnotationsList200ResponseAnnotationsItemStampRefIndex struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex) GetIndex() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision { if d == nil { return nil } return d.Revision } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -44239,32 +46094,32 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex) require(fiel // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemStampRefIndexFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex) SetIndex(index int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex) SetIndex(index int) { d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemStampRefIndexFieldIndex) + d.require(docAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexFieldIndex) } // SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision) { d.Revision = revision - d.require(docAnnotationsList200ResponseAnnotationsItemStampRefIndexFieldRevision) + d.require(docAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexFieldRevision) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStampRefIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemStampRefIndex(value) + *d = DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -44274,8 +46129,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex) UnmarshalJSO return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemStampRefIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex var marshaler = struct { embed }{ @@ -44285,7 +46140,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex) MarshalJSON( return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex) String() string { if d == nil { return "" } @@ -44301,12 +46156,12 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex) String() str } var ( - docAnnotationsList200ResponseAnnotationsItemStampRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemStampRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemStampRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision struct { +type DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision struct { DocSessionID string `json:"docSessionId" url:"docSessionId"` PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Generation int `json:"generation" url:"generation"` @@ -44318,35 +46173,35 @@ type DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision) GetDocSessionID() string { if d == nil { return "" } return d.DocSessionID } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision) GetGeneration() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision) GetGeneration() int { if d == nil { return 0 } return d.Generation } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -44355,32 +46210,32 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision) requ // SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision) SetDocSessionID(docSessionID string) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision) SetDocSessionID(docSessionID string) { d.DocSessionID = docSessionID - d.require(docAnnotationsList200ResponseAnnotationsItemStampRefIndexRevisionFieldDocSessionID) + d.require(docAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevisionFieldDocSessionID) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemStampRefIndexRevisionFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevisionFieldPageObjectNumber) } // SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision) SetGeneration(generation int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision) SetGeneration(generation int) { d.Generation = generation - d.require(docAnnotationsList200ResponseAnnotationsItemStampRefIndexRevisionFieldGeneration) + d.require(docAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevisionFieldGeneration) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision(value) + *d = DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -44390,8 +46245,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision) Unma return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision var marshaler = struct { embed }{ @@ -44401,7 +46256,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision) Mars return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision) String() string { if d == nil { return "" } @@ -44417,11 +46272,11 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision) Stri } var ( - docAnnotationsList200ResponseAnnotationsItemStampRefNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemStampRefNmFieldNm = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemSquareInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemSquareInReplyToNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemStampRefNm struct { +type DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Nm string `json:"nm" url:"nm"` @@ -44432,28 +46287,28 @@ type DocAnnotationsList200ResponseAnnotationsItemStampRefNm struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefNm) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefNm) GetNm() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm) GetNm() string { if d == nil { return "" } return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefNm) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -44462,25 +46317,25 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefNm) require(field * // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefNm) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemStampRefNmFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemSquareInReplyToNmFieldPageObjectNumber) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefNm) SetNm(nm string) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm) SetNm(nm string) { d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemStampRefNmFieldNm) + d.require(docAnnotationsList200ResponseAnnotationsItemSquareInReplyToNmFieldNm) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStampRefNm +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemStampRefNm(value) + *d = DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -44490,8 +46345,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefNm) UnmarshalJSON(d return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemStampRefNm +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm var marshaler = struct { embed }{ @@ -44501,7 +46356,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefNm) MarshalJSON() ( return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefNm) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm) String() string { if d == nil { return "" } @@ -44517,11 +46372,11 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefNm) String() string } var ( - docAnnotationsList200ResponseAnnotationsItemStampRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemStampRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber struct { +type DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` @@ -44532,28 +46387,28 @@ type DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } return d.AnnotObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -44562,25 +46417,25 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber) requi // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemStampRefObjectNumberFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumberFieldPageObjectNumber) } // SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemStampRefObjectNumberFieldAnnotObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber(value) + *d = DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -44590,8 +46445,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber) Unmar return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber var marshaler = struct { embed }{ @@ -44601,7 +46456,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber) Marsh return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber) String() string { if d == nil { return "" } @@ -44616,40 +46471,16 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber) Strin return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemStampReplyType string - -const ( - DocAnnotationsList200ResponseAnnotationsItemStampReplyTypeReply DocAnnotationsList200ResponseAnnotationsItemStampReplyType = "reply" - DocAnnotationsList200ResponseAnnotationsItemStampReplyTypeGroup DocAnnotationsList200ResponseAnnotationsItemStampReplyType = "group" -) - -func NewDocAnnotationsList200ResponseAnnotationsItemStampReplyTypeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemStampReplyType, error) { - switch s { - case "reply": - return DocAnnotationsList200ResponseAnnotationsItemStampReplyTypeReply, nil - case "group": - return DocAnnotationsList200ResponseAnnotationsItemStampReplyTypeGroup, nil - } - var t DocAnnotationsList200ResponseAnnotationsItemStampReplyType - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsList200ResponseAnnotationsItemStampReplyType) Ptr() *DocAnnotationsList200ResponseAnnotationsItemStampReplyType { - return &d -} - var ( - docAnnotationsList200ResponseAnnotationsItemStampUnrotatedRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemStampUnrotatedRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemStampUnrotatedRectFieldRight = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemStampUnrotatedRectFieldTop = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemSquareInteriorColorFieldR = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemSquareInteriorColorFieldG = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemSquareInteriorColorFieldB = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect struct { - Left float64 `json:"left" url:"left"` - Bottom float64 `json:"bottom" url:"bottom"` - Right float64 `json:"right" url:"right"` - Top float64 `json:"top" url:"top"` +type DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor struct { + R int `json:"r" url:"r"` + G int `json:"g" url:"g"` + B int `json:"b" url:"b"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -44658,83 +46489,69 @@ type DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect) GetLeft() float64 { - if d == nil { - return 0 - } - return d.Left -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect) GetBottom() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor) GetR() int { if d == nil { return 0 } - return d.Bottom + return d.R } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect) GetRight() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor) GetG() int { if d == nil { return 0 } - return d.Right + return d.G } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect) GetTop() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor) GetB() int { if d == nil { return 0 } - return d.Top + return d.B } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetLeft sets the Left field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect) SetLeft(left float64) { - d.Left = left - d.require(docAnnotationsList200ResponseAnnotationsItemStampUnrotatedRectFieldLeft) -} - -// SetBottom sets the Bottom field and marks it as non-optional; +// SetR sets the R field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsList200ResponseAnnotationsItemStampUnrotatedRectFieldBottom) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor) SetR(r int) { + d.R = r + d.require(docAnnotationsList200ResponseAnnotationsItemSquareInteriorColorFieldR) } -// SetRight sets the Right field and marks it as non-optional; +// SetG sets the G field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect) SetRight(right float64) { - d.Right = right - d.require(docAnnotationsList200ResponseAnnotationsItemStampUnrotatedRectFieldRight) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor) SetG(g int) { + d.G = g + d.require(docAnnotationsList200ResponseAnnotationsItemSquareInteriorColorFieldG) } -// SetTop sets the Top field and marks it as non-optional; +// SetB sets the B field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsList200ResponseAnnotationsItemStampUnrotatedRectFieldTop) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor) SetB(b int) { + d.B = b + d.require(docAnnotationsList200ResponseAnnotationsItemSquareInteriorColorFieldB) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect(value) + *d = DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -44744,8 +46561,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect) Unmarsh return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor var marshaler = struct { embed }{ @@ -44755,7 +46572,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect) Marshal return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor) String() string { if d == nil { return "" } @@ -44771,57 +46588,17 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect) String( } var ( - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldRef = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldIndex = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldIdentityQuality = big.NewInt(1 << 3) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldNm = big.NewInt(1 << 4) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldFlags = big.NewInt(1 << 5) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldRect = big.NewInt(1 << 6) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldContents = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldSubject = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldAuthor = big.NewInt(1 << 9) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldCreated = big.NewInt(1 << 10) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldModified = big.NewInt(1 << 11) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldBlendMode = big.NewInt(1 << 12) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldInReplyTo = big.NewInt(1 << 13) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldReplyType = big.NewInt(1 << 14) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldUserID = big.NewInt(1 << 15) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldGroupID = big.NewInt(1 << 16) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldCreatedBy = big.NewInt(1 << 17) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldUpdatedBy = big.NewInt(1 << 18) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldActions = big.NewInt(1 << 19) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldColor = big.NewInt(1 << 20) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldOpacity = big.NewInt(1 << 21) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldQuadPoints = big.NewInt(1 << 22) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldIntent = big.NewInt(1 << 23) + docAnnotationsList200ResponseAnnotationsItemSquareRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemSquareRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemSquareRectFieldRight = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemSquareRectFieldTop = big.NewInt(1 << 3) ) -type DocAnnotationsList200ResponseAnnotationsItemStrikeout struct { - Ref *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef `json:"ref" url:"ref"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - IdentityQuality DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQuality `json:"identityQuality" url:"identityQuality"` - Nm *string `json:"nm,omitempty" url:"nm,omitempty"` - Flags *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags `json:"flags" url:"flags"` - Rect *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect `json:"rect" url:"rect"` - Contents *string `json:"contents,omitempty" url:"contents,omitempty"` - Subject *string `json:"subject,omitempty" url:"subject,omitempty"` - Author *string `json:"author,omitempty" url:"author,omitempty"` - Created *time.Time `json:"created,omitempty" url:"created,omitempty"` - Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` - BlendMode DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode `json:"blendMode" url:"blendMode"` - InReplyTo *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` - ReplyType *DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` - UserID *string `json:"userId,omitempty" url:"userId,omitempty"` - GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` - CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` - Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` - Color *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor `json:"color" url:"color"` - Opacity float64 `json:"opacity" url:"opacity"` - QuadPoints []*DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem `json:"quadPoints" url:"quadPoints"` - Intent *DocAnnotationsList200ResponseAnnotationsItemStrikeoutIntent `json:"intent,omitempty" url:"intent,omitempty"` +type DocAnnotationsList200ResponseAnnotationsItemSquareRect struct { + Left float64 `json:"left" url:"left"` + Bottom float64 `json:"bottom" url:"bottom"` + Right float64 `json:"right" url:"right"` + Top float64 `json:"top" url:"top"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -44830,371 +46607,215 @@ type DocAnnotationsList200ResponseAnnotationsItemStrikeout struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetRef() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRect) GetLeft() float64 { if d == nil { - return nil + return 0 } - return d.Ref + return d.Left } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRect) GetBottom() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.Bottom } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetIndex() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRect) GetRight() float64 { if d == nil { return 0 } - return d.Index + return d.Right } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetIdentityQuality() DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQuality { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRect) GetTop() float64 { if d == nil { - return "" + return 0 } - return d.IdentityQuality + return d.Top } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetNm() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRect) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.Nm + return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetFlags() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRect) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.Flags + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetRect() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect { - if d == nil { - return nil - } - return d.Rect +// SetLeft sets the Left field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRect) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsList200ResponseAnnotationsItemSquareRectFieldLeft) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetContents() *string { - if d == nil { - return nil - } - return d.Contents +// SetBottom sets the Bottom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRect) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsList200ResponseAnnotationsItemSquareRectFieldBottom) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetSubject() *string { - if d == nil { - return nil - } - return d.Subject +// SetRight sets the Right field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRect) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsList200ResponseAnnotationsItemSquareRectFieldRight) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetAuthor() *string { - if d == nil { - return nil - } - return d.Author +// SetTop sets the Top field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsList200ResponseAnnotationsItemSquareRectFieldTop) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetCreated() *time.Time { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquareRect + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - return d.Created -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetModified() *time.Time { - if d == nil { - return nil + *d = DocAnnotationsList200ResponseAnnotationsItemSquareRect(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err } - return d.Modified + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetBlendMode() DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode { - if d == nil { - return "" +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemSquareRect + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return d.BlendMode + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetInReplyTo() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRect) String() string { if d == nil { - return nil + return "" } - return d.InReplyTo -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetReplyType() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyType { - if d == nil { - return nil + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } } - return d.ReplyType -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetUserID() *string { - if d == nil { - return nil + if value, err := internal.StringifyJSON(d); err == nil { + return value } - return d.UserID + return fmt.Sprintf("%#v", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetGroupID() *string { - if d == nil { - return nil - } - return d.GroupID -} +var ( + docAnnotationsList200ResponseAnnotationsItemSquareRectDifferencesFieldLeft = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemSquareRectDifferencesFieldTop = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemSquareRectDifferencesFieldRight = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemSquareRectDifferencesFieldBottom = big.NewInt(1 << 3) +) -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetCreatedBy() *string { - if d == nil { - return nil - } - return d.CreatedBy -} +type DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences struct { + Left float64 `json:"left" url:"left"` + Top float64 `json:"top" url:"top"` + Right float64 `json:"right" url:"right"` + Bottom float64 `json:"bottom" url:"bottom"` -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetUpdatedBy() *string { - if d == nil { - return nil - } - return d.UpdatedBy -} + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetActions() *PdfAnnotationActions { - if d == nil { - return nil - } - return d.Actions + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetColor() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences) GetLeft() float64 { if d == nil { - return nil + return 0 } - return d.Color + return d.Left } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetOpacity() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences) GetTop() float64 { if d == nil { return 0 } - return d.Opacity + return d.Top } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetQuadPoints() []*DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences) GetRight() float64 { if d == nil { - return nil + return 0 } - return d.QuadPoints + return d.Right } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetIntent() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutIntent { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences) GetBottom() float64 { if d == nil { - return nil + return 0 } - return d.Intent + return d.Bottom } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetRef sets the Ref field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetRef(ref *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef) { - d.Ref = ref - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldRef) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldPageObjectNumber) -} - -// SetIndex sets the Index field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldIndex) -} - -// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetIdentityQuality(identityQuality DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQuality) { - d.IdentityQuality = identityQuality - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldIdentityQuality) -} - -// SetNm sets the Nm field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetNm(nm *string) { - d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldNm) -} - -// SetFlags sets the Flags field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetFlags(flags *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) { - d.Flags = flags - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldFlags) -} - -// SetRect sets the Rect field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetRect(rect *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect) { - d.Rect = rect - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldRect) -} - -// SetContents sets the Contents field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetContents(contents *string) { - d.Contents = contents - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldContents) -} - -// SetSubject sets the Subject field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetSubject(subject *string) { - d.Subject = subject - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldSubject) -} - -// SetAuthor sets the Author field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetAuthor(author *string) { - d.Author = author - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldAuthor) -} - -// SetCreated sets the Created field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetCreated(created *time.Time) { - d.Created = created - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldCreated) -} - -// SetModified sets the Modified field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetModified(modified *time.Time) { - d.Modified = modified - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldModified) -} - -// SetBlendMode sets the BlendMode field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetBlendMode(blendMode DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode) { - d.BlendMode = blendMode - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldBlendMode) -} - -// SetInReplyTo sets the InReplyTo field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetInReplyTo(inReplyTo *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo) { - d.InReplyTo = inReplyTo - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldInReplyTo) -} - -// SetReplyType sets the ReplyType field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetReplyType(replyType *DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyType) { - d.ReplyType = replyType - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldReplyType) -} - -// SetUserID sets the UserID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetUserID(userID *string) { - d.UserID = userID - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldUserID) -} - -// SetGroupID sets the GroupID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetGroupID(groupID *string) { - d.GroupID = groupID - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldGroupID) -} - -// SetCreatedBy sets the CreatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetCreatedBy(createdBy *string) { - d.CreatedBy = createdBy - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldCreatedBy) -} - -// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetUpdatedBy(updatedBy *string) { - d.UpdatedBy = updatedBy - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldUpdatedBy) -} - -// SetActions sets the Actions field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetActions(actions *PdfAnnotationActions) { - d.Actions = actions - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldActions) -} - -// SetColor sets the Color field and marks it as non-optional; +// SetLeft sets the Left field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetColor(color *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor) { - d.Color = color - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldColor) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsList200ResponseAnnotationsItemSquareRectDifferencesFieldLeft) } -// SetOpacity sets the Opacity field and marks it as non-optional; +// SetTop sets the Top field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetOpacity(opacity float64) { - d.Opacity = opacity - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldOpacity) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsList200ResponseAnnotationsItemSquareRectDifferencesFieldTop) } -// SetQuadPoints sets the QuadPoints field and marks it as non-optional; +// SetRight sets the Right field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetQuadPoints(quadPoints []*DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem) { - d.QuadPoints = quadPoints - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldQuadPoints) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsList200ResponseAnnotationsItemSquareRectDifferencesFieldRight) } -// SetIntent sets the Intent field and marks it as non-optional; +// SetBottom sets the Bottom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetIntent(intent *DocAnnotationsList200ResponseAnnotationsItemStrikeoutIntent) { - d.Intent = intent - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldIntent) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsList200ResponseAnnotationsItemSquareRectDifferencesFieldBottom) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) UnmarshalJSON(data []byte) error { - type embed DocAnnotationsList200ResponseAnnotationsItemStrikeout - var unmarshaler = struct { - embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` - }{ - embed: embed(*d), - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemStrikeout(unmarshaler.embed) - d.Created = unmarshaler.Created.TimePtr() - d.Modified = unmarshaler.Modified.TimePtr() + *d = DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -45204,22 +46825,18 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) UnmarshalJSON(da return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemStrikeout +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences var marshaler = struct { embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), - Created: internal.NewOptionalDateTime(d.Created), - Modified: internal.NewOptionalDateTime(d.Modified), + embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences) String() string { if d == nil { return "" } @@ -45234,474 +46851,44 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) String() string return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode string +type DocAnnotationsList200ResponseAnnotationsItemSquareRef struct { + Kind string + ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber + Nm *DocAnnotationsList200ResponseAnnotationsItemSquareRefNm + Index *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex -const ( - DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeNormal DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode = "normal" - DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeMultiply DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode = "multiply" - DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeScreen DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode = "screen" - DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeOverlay DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode = "overlay" - DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeDarken DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode = "darken" - DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeLighten DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode = "lighten" - DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeColorDodge DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode = "color-dodge" - DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeColorBurn DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode = "color-burn" - DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeHardLight DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode = "hard-light" - DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeSoftLight DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode = "soft-light" - DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeDifference DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode = "difference" - DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeExclusion DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode = "exclusion" - DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeHue DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode = "hue" - DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeSaturation DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode = "saturation" - DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeColor DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode = "color" - DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeLuminosity DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode = "luminosity" -) + rawJSON json.RawMessage +} -func NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode, error) { - switch s { - case "normal": - return DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeNormal, nil - case "multiply": - return DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeMultiply, nil - case "screen": - return DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeScreen, nil - case "overlay": - return DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeOverlay, nil - case "darken": - return DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeDarken, nil - case "lighten": - return DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeLighten, nil - case "color-dodge": - return DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeColorDodge, nil - case "color-burn": - return DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeColorBurn, nil - case "hard-light": - return DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeHardLight, nil - case "soft-light": - return DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeSoftLight, nil - case "difference": - return DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeDifference, nil - case "exclusion": - return DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeExclusion, nil - case "hue": - return DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeHue, nil - case "saturation": - return DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeSaturation, nil - case "color": - return DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeColor, nil - case "luminosity": - return DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeLuminosity, nil - } - var t DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode) Ptr() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode { - return &d -} - -var ( - docAnnotationsList200ResponseAnnotationsItemStrikeoutColorFieldR = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemStrikeoutColorFieldG = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemStrikeoutColorFieldB = big.NewInt(1 << 2) -) - -type DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor struct { - R int `json:"r" url:"r"` - G int `json:"g" url:"g"` - B int `json:"b" url:"b"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor) GetR() int { - if d == nil { - return 0 - } - return d.R -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor) GetG() int { - if d == nil { - return 0 - } - return d.G -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor) GetB() int { - if d == nil { - return 0 - } - return d.B -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetR sets the R field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor) SetR(r int) { - d.R = r - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutColorFieldR) -} - -// SetG sets the G field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor) SetG(g int) { - d.G = g - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutColorFieldG) -} - -// SetB sets the B field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor) SetB(b int) { - d.B = b - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutColorFieldB) -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) -} - -var ( - docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldInvisible = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldHidden = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldPrint = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldNoZoom = big.NewInt(1 << 3) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldNoRotate = big.NewInt(1 << 4) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldNoView = big.NewInt(1 << 5) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldReadOnly = big.NewInt(1 << 6) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldLocked = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldToggleNoView = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldLockedContents = big.NewInt(1 << 9) -) - -type DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags struct { - Invisible bool `json:"invisible" url:"invisible"` - Hidden bool `json:"hidden" url:"hidden"` - Print bool `json:"print" url:"print"` - NoZoom bool `json:"noZoom" url:"noZoom"` - NoRotate bool `json:"noRotate" url:"noRotate"` - NoView bool `json:"noView" url:"noView"` - ReadOnly bool `json:"readOnly" url:"readOnly"` - Locked bool `json:"locked" url:"locked"` - ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` - LockedContents bool `json:"lockedContents" url:"lockedContents"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) GetInvisible() bool { - if d == nil { - return false - } - return d.Invisible -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) GetHidden() bool { - if d == nil { - return false - } - return d.Hidden -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) GetPrint() bool { - if d == nil { - return false - } - return d.Print -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) GetNoZoom() bool { - if d == nil { - return false - } - return d.NoZoom -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) GetNoRotate() bool { - if d == nil { - return false - } - return d.NoRotate -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) GetNoView() bool { - if d == nil { - return false - } - return d.NoView -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) GetReadOnly() bool { - if d == nil { - return false - } - return d.ReadOnly -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) GetLocked() bool { - if d == nil { - return false - } - return d.Locked -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) GetToggleNoView() bool { - if d == nil { - return false - } - return d.ToggleNoView -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) GetLockedContents() bool { - if d == nil { - return false - } - return d.LockedContents -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetInvisible sets the Invisible field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) SetInvisible(invisible bool) { - d.Invisible = invisible - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldInvisible) -} - -// SetHidden sets the Hidden field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) SetHidden(hidden bool) { - d.Hidden = hidden - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldHidden) -} - -// SetPrint sets the Print field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) SetPrint(print bool) { - d.Print = print - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldPrint) -} - -// SetNoZoom sets the NoZoom field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) SetNoZoom(noZoom bool) { - d.NoZoom = noZoom - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldNoZoom) -} - -// SetNoRotate sets the NoRotate field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) SetNoRotate(noRotate bool) { - d.NoRotate = noRotate - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldNoRotate) -} - -// SetNoView sets the NoView field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) SetNoView(noView bool) { - d.NoView = noView - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldNoView) -} - -// SetReadOnly sets the ReadOnly field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) SetReadOnly(readOnly bool) { - d.ReadOnly = readOnly - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldReadOnly) -} - -// SetLocked sets the Locked field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) SetLocked(locked bool) { - d.Locked = locked - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldLocked) -} - -// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) SetToggleNoView(toggleNoView bool) { - d.ToggleNoView = toggleNoView - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldToggleNoView) -} - -// SetLockedContents sets the LockedContents field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) SetLockedContents(lockedContents bool) { - d.LockedContents = lockedContents - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldLockedContents) -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) -} - -type DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQuality string - -const ( - DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQualityDurable DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQuality = "durable" - DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQualityWeak DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQuality = "weak" -) - -func NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQualityFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQuality, error) { - switch s { - case "durable": - return DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQualityDurable, nil - case "weak": - return DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQualityWeak, nil - } - var t DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQuality - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQuality) Ptr() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQuality { - return &d -} - -type DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo struct { - Kind string - ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber - Nm *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm - Index *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex - - rawJSON json.RawMessage -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo) GetKind() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRef) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRef) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber { if d == nil { return nil } return d.ObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo) GetNm() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRef) GetNm() *DocAnnotationsList200ResponseAnnotationsItemSquareRefNm { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRef) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex { if d == nil { return nil } return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo) UnmarshalJSON(data []byte) error { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRef) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -45714,19 +46901,19 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo) Unmarsh } switch unmarshaler.Kind { case "objectNumber": - value := new(DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber) + value := new(DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber) if err := json.Unmarshal(data, &value); err != nil { return err } d.ObjectNumber = value case "nm": - value := new(DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm) + value := new(DocAnnotationsList200ResponseAnnotationsItemSquareRefNm) if err := json.Unmarshal(data, &value); err != nil { return err } d.Nm = value case "index": - value := new(DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex) + value := new(DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -45736,7 +46923,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo) Unmarsh return nil } -func (d DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsList200ResponseAnnotationsItemSquareRef) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -45755,13 +46942,13 @@ func (d DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo) MarshalJ return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToVisitor interface { - VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber) error - VisitNm(*DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm) error - VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex) error +type DocAnnotationsList200ResponseAnnotationsItemSquareRefVisitor interface { + VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber) error + VisitNm(*DocAnnotationsList200ResponseAnnotationsItemSquareRefNm) error + VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex) error } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToVisitor) error { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRef) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemSquareRefVisitor) error { if d.ObjectNumber != nil { return visitor.VisitObjectNumber(d.ObjectNumber) } @@ -45774,7 +46961,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo) Accept( return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo) validate() error { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRef) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -45815,15 +47002,15 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo) validat } var ( - docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemSquareRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemSquareRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemSquareRefIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -45832,35 +47019,35 @@ type DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex struct rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex) GetIndex() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision { if d == nil { return nil } return d.Revision } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -45869,32 +47056,32 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex) re // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemSquareRefIndexFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex) SetIndex(index int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex) SetIndex(index int) { d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexFieldIndex) + d.require(docAnnotationsList200ResponseAnnotationsItemSquareRefIndexFieldIndex) } // SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision) { d.Revision = revision - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexFieldRevision) + d.require(docAnnotationsList200ResponseAnnotationsItemSquareRefIndexFieldRevision) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex(value) + *d = DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -45904,8 +47091,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex) Un return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex var marshaler = struct { embed }{ @@ -45915,7 +47102,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex) Ma return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex) String() string { if d == nil { return "" } @@ -45931,12 +47118,12 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex) St } var ( - docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision struct { +type DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision struct { DocSessionID string `json:"docSessionId" url:"docSessionId"` PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Generation int `json:"generation" url:"generation"` @@ -45948,35 +47135,35 @@ type DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision) GetDocSessionID() string { if d == nil { return "" } return d.DocSessionID } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision) GetGeneration() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision) GetGeneration() int { if d == nil { return 0 } return d.Generation } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -45985,32 +47172,32 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevi // SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision) SetDocSessionID(docSessionID string) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision) SetDocSessionID(docSessionID string) { d.DocSessionID = docSessionID - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevisionFieldDocSessionID) + d.require(docAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevisionFieldDocSessionID) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevisionFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevisionFieldPageObjectNumber) } // SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision) SetGeneration(generation int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision) SetGeneration(generation int) { d.Generation = generation - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevisionFieldGeneration) + d.require(docAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevisionFieldGeneration) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision(value) + *d = DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -46020,8 +47207,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevi return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision var marshaler = struct { embed }{ @@ -46031,7 +47218,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevi return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision) String() string { if d == nil { return "" } @@ -46047,11 +47234,11 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevi } var ( - docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNmFieldNm = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemSquareRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemSquareRefNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm struct { +type DocAnnotationsList200ResponseAnnotationsItemSquareRefNm struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Nm string `json:"nm" url:"nm"` @@ -46062,28 +47249,28 @@ type DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefNm) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm) GetNm() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefNm) GetNm() string { if d == nil { return "" } return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -46092,25 +47279,25 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm) requi // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefNm) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNmFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemSquareRefNmFieldPageObjectNumber) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm) SetNm(nm string) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefNm) SetNm(nm string) { d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNmFieldNm) + d.require(docAnnotationsList200ResponseAnnotationsItemSquareRefNmFieldNm) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquareRefNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm(value) + *d = DocAnnotationsList200ResponseAnnotationsItemSquareRefNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -46120,8 +47307,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm) Unmar return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemSquareRefNm var marshaler = struct { embed }{ @@ -46131,7 +47318,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm) Marsh return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefNm) String() string { if d == nil { return "" } @@ -46147,11 +47334,11 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm) Strin } var ( - docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber struct { +type DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` @@ -46162,28 +47349,28 @@ type DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } return d.AnnotObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -46192,25 +47379,25 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNum // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumberFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumberFieldPageObjectNumber) } // SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumberFieldAnnotObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber(value) + *d = DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -46220,8 +47407,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNum return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber var marshaler = struct { embed }{ @@ -46231,7 +47418,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNum return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber) String() string { if d == nil { return "" } @@ -46246,37 +47433,40 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNum return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemStrikeoutIntent string +type DocAnnotationsList200ResponseAnnotationsItemSquareReplyType string const ( - DocAnnotationsList200ResponseAnnotationsItemStrikeoutIntentStrikeoutTextEdit DocAnnotationsList200ResponseAnnotationsItemStrikeoutIntent = "strikeout-text-edit" + DocAnnotationsList200ResponseAnnotationsItemSquareReplyTypeReply DocAnnotationsList200ResponseAnnotationsItemSquareReplyType = "reply" + DocAnnotationsList200ResponseAnnotationsItemSquareReplyTypeGroup DocAnnotationsList200ResponseAnnotationsItemSquareReplyType = "group" ) -func NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutIntentFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemStrikeoutIntent, error) { +func NewDocAnnotationsList200ResponseAnnotationsItemSquareReplyTypeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemSquareReplyType, error) { switch s { - case "strikeout-text-edit": - return DocAnnotationsList200ResponseAnnotationsItemStrikeoutIntentStrikeoutTextEdit, nil + case "reply": + return DocAnnotationsList200ResponseAnnotationsItemSquareReplyTypeReply, nil + case "group": + return DocAnnotationsList200ResponseAnnotationsItemSquareReplyTypeGroup, nil } - var t DocAnnotationsList200ResponseAnnotationsItemStrikeoutIntent + var t DocAnnotationsList200ResponseAnnotationsItemSquareReplyType return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsList200ResponseAnnotationsItemStrikeoutIntent) Ptr() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutIntent { +func (d DocAnnotationsList200ResponseAnnotationsItemSquareReplyType) Ptr() *DocAnnotationsList200ResponseAnnotationsItemSquareReplyType { return &d } var ( - docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemFieldP1 = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemFieldP2 = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemFieldP3 = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemFieldP4 = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRectFieldRight = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRectFieldTop = big.NewInt(1 << 3) ) -type DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem struct { - P1 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1 `json:"p1" url:"p1"` - P2 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2 `json:"p2" url:"p2"` - P3 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3 `json:"p3" url:"p3"` - P4 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4 `json:"p4" url:"p4"` +type DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect struct { + Left float64 `json:"left" url:"left"` + Bottom float64 `json:"bottom" url:"bottom"` + Right float64 `json:"right" url:"right"` + Top float64 `json:"top" url:"top"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -46285,83 +47475,83 @@ type DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem struct rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem) GetP1() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1 { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect) GetLeft() float64 { if d == nil { - return nil + return 0 } - return d.P1 + return d.Left } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem) GetP2() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2 { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect) GetBottom() float64 { if d == nil { - return nil + return 0 } - return d.P2 + return d.Bottom } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem) GetP3() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3 { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect) GetRight() float64 { if d == nil { - return nil + return 0 } - return d.P3 + return d.Right } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem) GetP4() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4 { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect) GetTop() float64 { if d == nil { - return nil + return 0 } - return d.P4 + return d.Top } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetP1 sets the P1 field and marks it as non-optional; +// SetLeft sets the Left field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem) SetP1(p1 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1) { - d.P1 = p1 - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemFieldP1) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRectFieldLeft) } -// SetP2 sets the P2 field and marks it as non-optional; +// SetBottom sets the Bottom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem) SetP2(p2 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2) { - d.P2 = p2 - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemFieldP2) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRectFieldBottom) } -// SetP3 sets the P3 field and marks it as non-optional; +// SetRight sets the Right field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem) SetP3(p3 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3) { - d.P3 = p3 - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemFieldP3) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRectFieldRight) } -// SetP4 sets the P4 field and marks it as non-optional; +// SetTop sets the Top field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem) SetP4(p4 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4) { - d.P4 = p4 - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemFieldP4) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRectFieldTop) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem(value) + *d = DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -46371,8 +47561,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem) Un return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect var marshaler = struct { embed }{ @@ -46382,7 +47572,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem) Ma return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect) String() string { if d == nil { return "" } @@ -46398,13 +47588,55 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem) St } var ( - docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1FieldX = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1FieldY = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemSquigglyFieldRef = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemSquigglyFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemSquigglyFieldIndex = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemSquigglyFieldIdentityQuality = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemSquigglyFieldNm = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemSquigglyFieldFlags = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemSquigglyFieldRect = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemSquigglyFieldContents = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemSquigglyFieldSubject = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemSquigglyFieldAuthor = big.NewInt(1 << 9) + docAnnotationsList200ResponseAnnotationsItemSquigglyFieldCreated = big.NewInt(1 << 10) + docAnnotationsList200ResponseAnnotationsItemSquigglyFieldModified = big.NewInt(1 << 11) + docAnnotationsList200ResponseAnnotationsItemSquigglyFieldBlendMode = big.NewInt(1 << 12) + docAnnotationsList200ResponseAnnotationsItemSquigglyFieldInReplyTo = big.NewInt(1 << 13) + docAnnotationsList200ResponseAnnotationsItemSquigglyFieldReplyType = big.NewInt(1 << 14) + docAnnotationsList200ResponseAnnotationsItemSquigglyFieldUserID = big.NewInt(1 << 15) + docAnnotationsList200ResponseAnnotationsItemSquigglyFieldGroupID = big.NewInt(1 << 16) + docAnnotationsList200ResponseAnnotationsItemSquigglyFieldCreatedBy = big.NewInt(1 << 17) + docAnnotationsList200ResponseAnnotationsItemSquigglyFieldUpdatedBy = big.NewInt(1 << 18) + docAnnotationsList200ResponseAnnotationsItemSquigglyFieldActions = big.NewInt(1 << 19) + docAnnotationsList200ResponseAnnotationsItemSquigglyFieldColor = big.NewInt(1 << 20) + docAnnotationsList200ResponseAnnotationsItemSquigglyFieldOpacity = big.NewInt(1 << 21) + docAnnotationsList200ResponseAnnotationsItemSquigglyFieldQuadPoints = big.NewInt(1 << 22) ) -type DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` +type DocAnnotationsList200ResponseAnnotationsItemSquiggly struct { + Ref *DocAnnotationsList200ResponseAnnotationsItemSquigglyRef `json:"ref" url:"ref"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + IdentityQuality DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQuality `json:"identityQuality" url:"identityQuality"` + Nm *string `json:"nm,omitempty" url:"nm,omitempty"` + Flags *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags `json:"flags" url:"flags"` + Rect *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect `json:"rect" url:"rect"` + Contents *string `json:"contents,omitempty" url:"contents,omitempty"` + Subject *string `json:"subject,omitempty" url:"subject,omitempty"` + Author *string `json:"author,omitempty" url:"author,omitempty"` + Created *time.Time `json:"created,omitempty" url:"created,omitempty"` + Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` + BlendMode DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode `json:"blendMode" url:"blendMode"` + InReplyTo *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` + ReplyType *DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` + UserID *string `json:"userId,omitempty" url:"userId,omitempty"` + GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` + CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` + Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` + Color *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor `json:"color" url:"color"` + Opacity float64 `json:"opacity" url:"opacity"` + QuadPoints []*DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem `json:"quadPoints" url:"quadPoints"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -46413,355 +47645,357 @@ type DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1 struc rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1) GetX() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetRef() *DocAnnotationsList200ResponseAnnotationsItemSquigglyRef { if d == nil { - return 0 + return nil } - return d.X + return d.Ref } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1) GetY() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetPageObjectNumber() int { if d == nil { return 0 } - return d.Y + return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetIndex() int { if d == nil { - return nil + return 0 } - return d.extraProperties + return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetIdentityQuality() DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQuality { + if d == nil { + return "" } - d.explicitFields.Or(d.explicitFields, field) + return d.IdentityQuality } -// SetX sets the X field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1) SetX(x float64) { - d.X = x - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1FieldX) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetNm() *string { + if d == nil { + return nil + } + return d.Nm } -// SetY sets the Y field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1) SetY(y float64) { - d.Y = y - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1FieldY) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetFlags() *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags { + if d == nil { + return nil + } + return d.Flags } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1 - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetRect() *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect { + if d == nil { + return nil } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil + return d.Rect } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1 - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetContents() *string { + if d == nil { + return nil } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return d.Contents } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetSubject() *string { if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value + return nil } - return fmt.Sprintf("%#v", d) + return d.Subject } -var ( - docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2FieldX = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2FieldY = big.NewInt(1 << 1) -) - -type DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetAuthor() *string { + if d == nil { + return nil + } + return d.Author +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetCreated() *time.Time { + if d == nil { + return nil + } + return d.Created } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2) GetX() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetModified() *time.Time { if d == nil { - return 0 + return nil } - return d.X + return d.Modified } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2) GetY() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetBlendMode() DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode { if d == nil { - return 0 + return "" } - return d.Y + return d.BlendMode } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetInReplyTo() *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo { if d == nil { return nil } - return d.extraProperties + return d.InReplyTo } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetReplyType() *DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyType { + if d == nil { + return nil } - d.explicitFields.Or(d.explicitFields, field) + return d.ReplyType } -// SetX sets the X field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2) SetX(x float64) { - d.X = x - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2FieldX) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetUserID() *string { + if d == nil { + return nil + } + return d.UserID } -// SetY sets the Y field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2) SetY(y float64) { - d.Y = y - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2FieldY) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetGroupID() *string { + if d == nil { + return nil + } + return d.GroupID } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2 - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetCreatedBy() *string { + if d == nil { + return nil } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil + return d.CreatedBy } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2 - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetUpdatedBy() *string { + if d == nil { + return nil } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return d.UpdatedBy } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetActions() *PdfAnnotationActions { if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value + return nil } - return fmt.Sprintf("%#v", d) + return d.Actions } -var ( - docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3FieldX = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3FieldY = big.NewInt(1 << 1) -) - -type DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetColor() *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor { + if d == nil { + return nil + } + return d.Color } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3) GetX() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetOpacity() float64 { if d == nil { return 0 } - return d.X + return d.Opacity } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3) GetY() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetQuadPoints() []*DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem { if d == nil { - return 0 + return nil } - return d.Y + return d.QuadPoints } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetX sets the X field and marks it as non-optional; +// SetRef sets the Ref field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3) SetX(x float64) { - d.X = x - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3FieldX) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetRef(ref *DocAnnotationsList200ResponseAnnotationsItemSquigglyRef) { + d.Ref = ref + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldRef) } -// SetY sets the Y field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3) SetY(y float64) { - d.Y = y - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3FieldY) -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3 - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldPageObjectNumber) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3 - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) +// SetIndex sets the Index field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldIndex) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) +// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetIdentityQuality(identityQuality DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQuality) { + d.IdentityQuality = identityQuality + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldIdentityQuality) } -var ( - docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4FieldX = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4FieldY = big.NewInt(1 << 1) -) +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetNm(nm *string) { + d.Nm = nm + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldNm) +} -type DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` +// SetFlags sets the Flags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetFlags(flags *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) { + d.Flags = flags + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldFlags) +} - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +// SetRect sets the Rect field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetRect(rect *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect) { + d.Rect = rect + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldRect) +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +// SetContents sets the Contents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetContents(contents *string) { + d.Contents = contents + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldContents) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4) GetX() float64 { - if d == nil { - return 0 - } - return d.X +// SetSubject sets the Subject field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetSubject(subject *string) { + d.Subject = subject + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldSubject) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4) GetY() float64 { - if d == nil { - return 0 - } - return d.Y +// SetAuthor sets the Author field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetAuthor(author *string) { + d.Author = author + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldAuthor) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties +// SetCreated sets the Created field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetCreated(created *time.Time) { + d.Created = created + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldCreated) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) +// SetModified sets the Modified field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetModified(modified *time.Time) { + d.Modified = modified + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldModified) } -// SetX sets the X field and marks it as non-optional; +// SetBlendMode sets the BlendMode field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4) SetX(x float64) { - d.X = x - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4FieldX) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetBlendMode(blendMode DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode) { + d.BlendMode = blendMode + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldBlendMode) } -// SetY sets the Y field and marks it as non-optional; +// SetInReplyTo sets the InReplyTo field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4) SetY(y float64) { - d.Y = y - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4FieldY) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetInReplyTo(inReplyTo *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo) { + d.InReplyTo = inReplyTo + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldInReplyTo) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4 - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { +// SetReplyType sets the ReplyType field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetReplyType(replyType *DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyType) { + d.ReplyType = replyType + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldReplyType) +} + +// SetUserID sets the UserID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetUserID(userID *string) { + d.UserID = userID + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldUserID) +} + +// SetGroupID sets the GroupID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetGroupID(groupID *string) { + d.GroupID = groupID + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldGroupID) +} + +// SetCreatedBy sets the CreatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetCreatedBy(createdBy *string) { + d.CreatedBy = createdBy + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldCreatedBy) +} + +// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetUpdatedBy(updatedBy *string) { + d.UpdatedBy = updatedBy + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldUpdatedBy) +} + +// SetActions sets the Actions field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetActions(actions *PdfAnnotationActions) { + d.Actions = actions + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldActions) +} + +// SetColor sets the Color field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetColor(color *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor) { + d.Color = color + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldColor) +} + +// SetOpacity sets the Opacity field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetOpacity(opacity float64) { + d.Opacity = opacity + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldOpacity) +} + +// SetQuadPoints sets the QuadPoints field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) SetQuadPoints(quadPoints []*DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem) { + d.QuadPoints = quadPoints + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFieldQuadPoints) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) UnmarshalJSON(data []byte) error { + type embed DocAnnotationsList200ResponseAnnotationsItemSquiggly + var unmarshaler = struct { + embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4(value) + *d = DocAnnotationsList200ResponseAnnotationsItemSquiggly(unmarshaler.embed) + d.Created = unmarshaler.Created.TimePtr() + d.Modified = unmarshaler.Modified.TimePtr() extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -46771,18 +48005,22 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4) return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4 +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemSquiggly var marshaler = struct { embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), + embed: embed(*d), + Created: internal.NewOptionalDateTime(d.Created), + Modified: internal.NewOptionalDateTime(d.Modified), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquiggly) String() string { if d == nil { return "" } @@ -46797,18 +48035,80 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4) return fmt.Sprintf("%#v", d) } +type DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode string + +const ( + DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeNormal DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode = "normal" + DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeMultiply DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode = "multiply" + DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeScreen DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode = "screen" + DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeOverlay DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode = "overlay" + DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeDarken DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode = "darken" + DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeLighten DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode = "lighten" + DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeColorDodge DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode = "color-dodge" + DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeColorBurn DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode = "color-burn" + DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeHardLight DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode = "hard-light" + DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeSoftLight DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode = "soft-light" + DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeDifference DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode = "difference" + DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeExclusion DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode = "exclusion" + DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeHue DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode = "hue" + DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeSaturation DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode = "saturation" + DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeColor DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode = "color" + DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeLuminosity DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode = "luminosity" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode, error) { + switch s { + case "normal": + return DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeNormal, nil + case "multiply": + return DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeMultiply, nil + case "screen": + return DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeScreen, nil + case "overlay": + return DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeOverlay, nil + case "darken": + return DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeDarken, nil + case "lighten": + return DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeLighten, nil + case "color-dodge": + return DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeColorDodge, nil + case "color-burn": + return DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeColorBurn, nil + case "hard-light": + return DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeHardLight, nil + case "soft-light": + return DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeSoftLight, nil + case "difference": + return DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeDifference, nil + case "exclusion": + return DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeExclusion, nil + case "hue": + return DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeHue, nil + case "saturation": + return DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeSaturation, nil + case "color": + return DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeColor, nil + case "luminosity": + return DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendModeLuminosity, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode) Ptr() *DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode { + return &d +} + var ( - docAnnotationsList200ResponseAnnotationsItemStrikeoutRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemStrikeoutRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemStrikeoutRectFieldRight = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemStrikeoutRectFieldTop = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemSquigglyColorFieldR = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemSquigglyColorFieldG = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemSquigglyColorFieldB = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect struct { - Left float64 `json:"left" url:"left"` - Bottom float64 `json:"bottom" url:"bottom"` - Right float64 `json:"right" url:"right"` - Top float64 `json:"top" url:"top"` +type DocAnnotationsList200ResponseAnnotationsItemSquigglyColor struct { + R int `json:"r" url:"r"` + G int `json:"g" url:"g"` + B int `json:"b" url:"b"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -46817,83 +48117,69 @@ type DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect) GetLeft() float64 { - if d == nil { - return 0 - } - return d.Left -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect) GetBottom() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor) GetR() int { if d == nil { return 0 } - return d.Bottom + return d.R } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect) GetRight() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor) GetG() int { if d == nil { return 0 } - return d.Right + return d.G } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect) GetTop() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor) GetB() int { if d == nil { return 0 } - return d.Top + return d.B } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetLeft sets the Left field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect) SetLeft(left float64) { - d.Left = left - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutRectFieldLeft) -} - -// SetBottom sets the Bottom field and marks it as non-optional; +// SetR sets the R field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutRectFieldBottom) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor) SetR(r int) { + d.R = r + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyColorFieldR) } -// SetRight sets the Right field and marks it as non-optional; +// SetG sets the G field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect) SetRight(right float64) { - d.Right = right - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutRectFieldRight) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor) SetG(g int) { + d.G = g + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyColorFieldG) } -// SetTop sets the Top field and marks it as non-optional; +// SetB sets the B field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutRectFieldTop) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor) SetB(b int) { + d.B = b + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyColorFieldB) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquigglyColor var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect(value) + *d = DocAnnotationsList200ResponseAnnotationsItemSquigglyColor(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -46903,8 +48189,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect) UnmarshalJSO return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemSquigglyColor var marshaler = struct { embed }{ @@ -46914,7 +48200,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect) MarshalJSON( return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor) String() string { if d == nil { return "" } @@ -46929,166 +48215,416 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect) String() str return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef struct { - Kind string - ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber - Nm *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm - Index *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex +var ( + docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldInvisible = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldHidden = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldPrint = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldNoZoom = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldNoRotate = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldNoView = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldReadOnly = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldLocked = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldToggleNoView = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldLockedContents = big.NewInt(1 << 9) +) - rawJSON json.RawMessage +type DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags struct { + Invisible bool `json:"invisible" url:"invisible"` + Hidden bool `json:"hidden" url:"hidden"` + Print bool `json:"print" url:"print"` + NoZoom bool `json:"noZoom" url:"noZoom"` + NoRotate bool `json:"noRotate" url:"noRotate"` + NoView bool `json:"noView" url:"noView"` + ReadOnly bool `json:"readOnly" url:"readOnly"` + Locked bool `json:"locked" url:"locked"` + ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` + LockedContents bool `json:"lockedContents" url:"lockedContents"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef) GetKind() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) GetInvisible() bool { if d == nil { - return "" + return false } - return d.Kind + return d.Invisible } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) GetHidden() bool { if d == nil { - return nil + return false } - return d.ObjectNumber + return d.Hidden } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef) GetNm() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) GetPrint() bool { if d == nil { - return nil + return false } - return d.Nm + return d.Print } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) GetNoZoom() bool { if d == nil { - return nil + return false } - return d.Index + return d.NoZoom } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Nm = value - case "index": - value := new(DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Index = value +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) GetNoRotate() bool { + if d == nil { + return false } - d.rawJSON = json.RawMessage(data) - return nil + return d.NoRotate } -func (d DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Nm != nil { - return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") - } - if d.Index != nil { - return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) GetNoView() bool { + if d == nil { + return false } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) + return d.NoView } -type DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefVisitor interface { - VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber) error - VisitNm(*DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm) error - VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex) error +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) GetReadOnly() bool { + if d == nil { + return false + } + return d.ReadOnly } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) - } - if d.Nm != nil { - return visitor.VisitNm(d.Nm) - } - if d.Index != nil { - return visitor.VisitIndex(d.Index) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) GetLocked() bool { + if d == nil { + return false } - return fmt.Errorf("type %T does not define a non-empty union type", d) + return d.Locked } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef) validate() error { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) GetToggleNoView() bool { if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Nm != nil { - fields = append(fields, "nm") - } - if d.Index != nil { - fields = append(fields, "index") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + return false } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } + return d.ToggleNoView +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) GetLockedContents() bool { + if d == nil { + return false } - return nil + return d.LockedContents } -var ( - docAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexFieldRevision = big.NewInt(1 << 2) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetInvisible sets the Invisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) SetInvisible(invisible bool) { + d.Invisible = invisible + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldInvisible) +} + +// SetHidden sets the Hidden field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) SetHidden(hidden bool) { + d.Hidden = hidden + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldHidden) +} + +// SetPrint sets the Print field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) SetPrint(print bool) { + d.Print = print + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldPrint) +} + +// SetNoZoom sets the NoZoom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) SetNoZoom(noZoom bool) { + d.NoZoom = noZoom + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldNoZoom) +} + +// SetNoRotate sets the NoRotate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) SetNoRotate(noRotate bool) { + d.NoRotate = noRotate + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldNoRotate) +} + +// SetNoView sets the NoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) SetNoView(noView bool) { + d.NoView = noView + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldNoView) +} + +// SetReadOnly sets the ReadOnly field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldReadOnly) +} + +// SetLocked sets the Locked field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) SetLocked(locked bool) { + d.Locked = locked + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldLocked) +} + +// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) SetToggleNoView(toggleNoView bool) { + d.ToggleNoView = toggleNoView + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldToggleNoView) +} + +// SetLockedContents sets the LockedContents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) SetLockedContents(lockedContents bool) { + d.LockedContents = lockedContents + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyFlagsFieldLockedContents) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQuality string + +const ( + DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQualityDurable DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQuality = "durable" + DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQualityWeak DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQuality = "weak" ) -type DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision `json:"revision" url:"revision"` +func NewDocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQualityFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQuality, error) { + switch s { + case "durable": + return DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQualityDurable, nil + case "weak": + return DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQualityWeak, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQuality + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQuality) Ptr() *DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQuality { + return &d +} + +type DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo struct { + Kind string + ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber + Nm *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm + Index *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo) GetNm() *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex { + if d == nil { + return nil + } + return d.Index +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value + } + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err + } + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Nm != nil { + return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + } + if d.Index != nil { + return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +} + +type DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber) error + VisitNm(*DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm) error + VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex) error +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) + } + if d.Nm != nil { + return visitor.VisitNm(d.Nm) + } + if d.Index != nil { + return visitor.VisitIndex(d.Index) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Nm != nil { + fields = append(fields, "nm") + } + if d.Index != nil { + fields = append(fields, "index") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil +} + +var ( + docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexFieldRevision = big.NewInt(1 << 2) +) + +type DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -47097,35 +48633,35 @@ type DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex) GetIndex() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision { if d == nil { return nil } return d.Revision } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -47134,32 +48670,32 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex) require( // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex) SetIndex(index int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex) SetIndex(index int) { d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexFieldIndex) + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexFieldIndex) } // SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision) { d.Revision = revision - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexFieldRevision) + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexFieldRevision) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex(value) + *d = DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -47169,8 +48705,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex) Unmarsha return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex var marshaler = struct { embed }{ @@ -47180,7 +48716,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex) MarshalJ return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex) String() string { if d == nil { return "" } @@ -47196,12 +48732,12 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex) String() } var ( - docAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision struct { +type DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision struct { DocSessionID string `json:"docSessionId" url:"docSessionId"` PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Generation int `json:"generation" url:"generation"` @@ -47213,35 +48749,35 @@ type DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision struc rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision) GetDocSessionID() string { if d == nil { return "" } return d.DocSessionID } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision) GetGeneration() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision) GetGeneration() int { if d == nil { return 0 } return d.Generation } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -47250,32 +48786,32 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision) // SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision) SetDocSessionID(docSessionID string) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision) SetDocSessionID(docSessionID string) { d.DocSessionID = docSessionID - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevisionFieldDocSessionID) + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevisionFieldDocSessionID) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevisionFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevisionFieldPageObjectNumber) } // SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision) SetGeneration(generation int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision) SetGeneration(generation int) { d.Generation = generation - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevisionFieldGeneration) + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevisionFieldGeneration) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision(value) + *d = DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -47285,8 +48821,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision) return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision var marshaler = struct { embed }{ @@ -47296,7 +48832,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision) String() string { if d == nil { return "" } @@ -47312,11 +48848,11 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision) } var ( - docAnnotationsList200ResponseAnnotationsItemStrikeoutRefNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemStrikeoutRefNmFieldNm = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm struct { +type DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Nm string `json:"nm" url:"nm"` @@ -47327,28 +48863,28 @@ type DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm) GetNm() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm) GetNm() string { if d == nil { return "" } return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -47357,25 +48893,25 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm) require(fie // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutRefNmFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNmFieldPageObjectNumber) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm) SetNm(nm string) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm) SetNm(nm string) { d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutRefNmFieldNm) + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNmFieldNm) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm(value) + *d = DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -47385,8 +48921,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm) UnmarshalJS return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm var marshaler = struct { embed }{ @@ -47396,7 +48932,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm) MarshalJSON return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm) String() string { if d == nil { return "" } @@ -47412,11 +48948,11 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm) String() st } var ( - docAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber struct { +type DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` @@ -47427,28 +48963,28 @@ type DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber struct rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } return d.AnnotObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -47457,25 +48993,25 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber) r // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumberFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumberFieldPageObjectNumber) } // SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumberFieldAnnotObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber(value) + *d = DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -47485,8 +49021,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber) U return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber var marshaler = struct { embed }{ @@ -47496,7 +49032,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber) M return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber) String() string { if d == nil { return "" } @@ -47511,469 +49047,303 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber) S return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyType string - -const ( - DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyTypeReply DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyType = "reply" - DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyTypeGroup DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyType = "group" +var ( + docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemFieldP1 = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemFieldP2 = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemFieldP3 = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemFieldP4 = big.NewInt(1 << 3) ) -func NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyTypeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyType, error) { - switch s { - case "reply": - return DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyTypeReply, nil - case "group": - return DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyTypeGroup, nil +type DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem struct { + P1 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1 `json:"p1" url:"p1"` + P2 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2 `json:"p2" url:"p2"` + P3 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3 `json:"p3" url:"p3"` + P4 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4 `json:"p4" url:"p4"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem) GetP1() *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1 { + if d == nil { + return nil } - var t DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyType - return "", fmt.Errorf("%s is not a valid %T", s, t) + return d.P1 } -func (d DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyType) Ptr() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyType { - return &d +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem) GetP2() *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2 { + if d == nil { + return nil + } + return d.P2 } -var ( - docAnnotationsList200ResponseAnnotationsItemTextFieldRef = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemTextFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemTextFieldIndex = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemTextFieldIdentityQuality = big.NewInt(1 << 3) - docAnnotationsList200ResponseAnnotationsItemTextFieldNm = big.NewInt(1 << 4) - docAnnotationsList200ResponseAnnotationsItemTextFieldFlags = big.NewInt(1 << 5) - docAnnotationsList200ResponseAnnotationsItemTextFieldRect = big.NewInt(1 << 6) - docAnnotationsList200ResponseAnnotationsItemTextFieldContents = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemTextFieldSubject = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemTextFieldAuthor = big.NewInt(1 << 9) - docAnnotationsList200ResponseAnnotationsItemTextFieldCreated = big.NewInt(1 << 10) - docAnnotationsList200ResponseAnnotationsItemTextFieldModified = big.NewInt(1 << 11) - docAnnotationsList200ResponseAnnotationsItemTextFieldBlendMode = big.NewInt(1 << 12) - docAnnotationsList200ResponseAnnotationsItemTextFieldInReplyTo = big.NewInt(1 << 13) - docAnnotationsList200ResponseAnnotationsItemTextFieldReplyType = big.NewInt(1 << 14) - docAnnotationsList200ResponseAnnotationsItemTextFieldUserID = big.NewInt(1 << 15) - docAnnotationsList200ResponseAnnotationsItemTextFieldGroupID = big.NewInt(1 << 16) - docAnnotationsList200ResponseAnnotationsItemTextFieldCreatedBy = big.NewInt(1 << 17) - docAnnotationsList200ResponseAnnotationsItemTextFieldUpdatedBy = big.NewInt(1 << 18) - docAnnotationsList200ResponseAnnotationsItemTextFieldActions = big.NewInt(1 << 19) - docAnnotationsList200ResponseAnnotationsItemTextFieldColor = big.NewInt(1 << 20) - docAnnotationsList200ResponseAnnotationsItemTextFieldOpacity = big.NewInt(1 << 21) - docAnnotationsList200ResponseAnnotationsItemTextFieldIcon = big.NewInt(1 << 22) - docAnnotationsList200ResponseAnnotationsItemTextFieldState = big.NewInt(1 << 23) - docAnnotationsList200ResponseAnnotationsItemTextFieldStateModel = big.NewInt(1 << 24) -) - -type DocAnnotationsList200ResponseAnnotationsItemText struct { - Ref *DocAnnotationsList200ResponseAnnotationsItemTextRef `json:"ref" url:"ref"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - IdentityQuality DocAnnotationsList200ResponseAnnotationsItemTextIdentityQuality `json:"identityQuality" url:"identityQuality"` - Nm *string `json:"nm,omitempty" url:"nm,omitempty"` - Flags *DocAnnotationsList200ResponseAnnotationsItemTextFlags `json:"flags" url:"flags"` - Rect *DocAnnotationsList200ResponseAnnotationsItemTextRect `json:"rect" url:"rect"` - Contents *string `json:"contents,omitempty" url:"contents,omitempty"` - Subject *string `json:"subject,omitempty" url:"subject,omitempty"` - Author *string `json:"author,omitempty" url:"author,omitempty"` - Created *time.Time `json:"created,omitempty" url:"created,omitempty"` - Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` - BlendMode DocAnnotationsList200ResponseAnnotationsItemTextBlendMode `json:"blendMode" url:"blendMode"` - InReplyTo *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` - ReplyType *DocAnnotationsList200ResponseAnnotationsItemTextReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` - UserID *string `json:"userId,omitempty" url:"userId,omitempty"` - GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` - CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` - Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` - Color *DocAnnotationsList200ResponseAnnotationsItemTextColor `json:"color" url:"color"` - Opacity float64 `json:"opacity" url:"opacity"` - Icon DocAnnotationsList200ResponseAnnotationsItemTextIcon `json:"icon" url:"icon"` - State *string `json:"state,omitempty" url:"state,omitempty"` - StateModel *string `json:"stateModel,omitempty" url:"stateModel,omitempty"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetRef() *DocAnnotationsList200ResponseAnnotationsItemTextRef { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem) GetP3() *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3 { if d == nil { return nil } - return d.Ref -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetIndex() int { - if d == nil { - return 0 - } - return d.Index -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetIdentityQuality() DocAnnotationsList200ResponseAnnotationsItemTextIdentityQuality { - if d == nil { - return "" - } - return d.IdentityQuality + return d.P3 } -func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetNm() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem) GetP4() *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4 { if d == nil { return nil } - return d.Nm + return d.P4 } -func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetFlags() *DocAnnotationsList200ResponseAnnotationsItemTextFlags { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.Flags + return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetRect() *DocAnnotationsList200ResponseAnnotationsItemTextRect { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.Rect + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetContents() *string { - if d == nil { - return nil - } - return d.Contents +// SetP1 sets the P1 field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem) SetP1(p1 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1) { + d.P1 = p1 + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemFieldP1) } -func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetSubject() *string { - if d == nil { - return nil - } - return d.Subject +// SetP2 sets the P2 field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem) SetP2(p2 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2) { + d.P2 = p2 + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemFieldP2) } -func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetAuthor() *string { - if d == nil { - return nil - } - return d.Author +// SetP3 sets the P3 field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem) SetP3(p3 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3) { + d.P3 = p3 + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemFieldP3) } -func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetCreated() *time.Time { - if d == nil { - return nil - } - return d.Created +// SetP4 sets the P4 field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem) SetP4(p4 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4) { + d.P4 = p4 + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemFieldP4) } -func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetModified() *time.Time { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - return d.Modified -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetBlendMode() DocAnnotationsList200ResponseAnnotationsItemTextBlendMode { - if d == nil { - return "" + *d = DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err } - return d.BlendMode + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetInReplyTo() *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return d.InReplyTo + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetReplyType() *DocAnnotationsList200ResponseAnnotationsItemTextReplyType { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem) String() string { if d == nil { - return nil + return "" } - return d.ReplyType -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetUserID() *string { - if d == nil { - return nil + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } } - return d.UserID -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetGroupID() *string { - if d == nil { - return nil + if value, err := internal.StringifyJSON(d); err == nil { + return value } - return d.GroupID + return fmt.Sprintf("%#v", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetCreatedBy() *string { - if d == nil { - return nil - } - return d.CreatedBy -} +var ( + docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1FieldX = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1FieldY = big.NewInt(1 << 1) +) -func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetUpdatedBy() *string { - if d == nil { - return nil - } - return d.UpdatedBy -} +type DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` -func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetActions() *PdfAnnotationActions { - if d == nil { - return nil - } - return d.Actions -} + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` -func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetColor() *DocAnnotationsList200ResponseAnnotationsItemTextColor { - if d == nil { - return nil - } - return d.Color + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetOpacity() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1) GetX() float64 { if d == nil { return 0 } - return d.Opacity -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetIcon() DocAnnotationsList200ResponseAnnotationsItemTextIcon { - if d == nil { - return "" - } - return d.Icon -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetState() *string { - if d == nil { - return nil - } - return d.State + return d.X } -func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetStateModel() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1) GetY() float64 { if d == nil { - return nil + return 0 } - return d.StateModel + return d.Y } -func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemText) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetRef sets the Ref field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetRef(ref *DocAnnotationsList200ResponseAnnotationsItemTextRef) { - d.Ref = ref - d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldRef) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldPageObjectNumber) -} - -// SetIndex sets the Index field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldIndex) -} - -// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetIdentityQuality(identityQuality DocAnnotationsList200ResponseAnnotationsItemTextIdentityQuality) { - d.IdentityQuality = identityQuality - d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldIdentityQuality) -} - -// SetNm sets the Nm field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetNm(nm *string) { - d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldNm) -} - -// SetFlags sets the Flags field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetFlags(flags *DocAnnotationsList200ResponseAnnotationsItemTextFlags) { - d.Flags = flags - d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldFlags) -} - -// SetRect sets the Rect field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetRect(rect *DocAnnotationsList200ResponseAnnotationsItemTextRect) { - d.Rect = rect - d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldRect) -} - -// SetContents sets the Contents field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetContents(contents *string) { - d.Contents = contents - d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldContents) -} - -// SetSubject sets the Subject field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetSubject(subject *string) { - d.Subject = subject - d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldSubject) -} - -// SetAuthor sets the Author field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetAuthor(author *string) { - d.Author = author - d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldAuthor) -} - -// SetCreated sets the Created field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetCreated(created *time.Time) { - d.Created = created - d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldCreated) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1) SetX(x float64) { + d.X = x + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1FieldX) } -// SetModified sets the Modified field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetModified(modified *time.Time) { - d.Modified = modified - d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldModified) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1) SetY(y float64) { + d.Y = y + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1FieldY) } -// SetBlendMode sets the BlendMode field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetBlendMode(blendMode DocAnnotationsList200ResponseAnnotationsItemTextBlendMode) { - d.BlendMode = blendMode - d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldBlendMode) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1 + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -// SetInReplyTo sets the InReplyTo field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetInReplyTo(inReplyTo *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo) { - d.InReplyTo = inReplyTo - d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldInReplyTo) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1 + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -// SetReplyType sets the ReplyType field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetReplyType(replyType *DocAnnotationsList200ResponseAnnotationsItemTextReplyType) { - d.ReplyType = replyType - d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldReplyType) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -// SetUserID sets the UserID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetUserID(userID *string) { - d.UserID = userID - d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldUserID) -} +var ( + docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2FieldX = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2FieldY = big.NewInt(1 << 1) +) -// SetGroupID sets the GroupID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetGroupID(groupID *string) { - d.GroupID = groupID - d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldGroupID) -} +type DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` -// SetCreatedBy sets the CreatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetCreatedBy(createdBy *string) { - d.CreatedBy = createdBy - d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldCreatedBy) -} + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` -// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetUpdatedBy(updatedBy *string) { - d.UpdatedBy = updatedBy - d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldUpdatedBy) + extraProperties map[string]interface{} + rawJSON json.RawMessage } -// SetActions sets the Actions field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetActions(actions *PdfAnnotationActions) { - d.Actions = actions - d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldActions) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2) GetX() float64 { + if d == nil { + return 0 + } + return d.X } -// SetColor sets the Color field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetColor(color *DocAnnotationsList200ResponseAnnotationsItemTextColor) { - d.Color = color - d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldColor) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2) GetY() float64 { + if d == nil { + return 0 + } + return d.Y } -// SetOpacity sets the Opacity field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetOpacity(opacity float64) { - d.Opacity = opacity - d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldOpacity) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties } -// SetIcon sets the Icon field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetIcon(icon DocAnnotationsList200ResponseAnnotationsItemTextIcon) { - d.Icon = icon - d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldIcon) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) } -// SetState sets the State field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetState(state *string) { - d.State = state - d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldState) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2) SetX(x float64) { + d.X = x + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2FieldX) } -// SetStateModel sets the StateModel field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetStateModel(stateModel *string) { - d.StateModel = stateModel - d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldStateModel) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2) SetY(y float64) { + d.Y = y + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2FieldY) } -func (d *DocAnnotationsList200ResponseAnnotationsItemText) UnmarshalJSON(data []byte) error { - type embed DocAnnotationsList200ResponseAnnotationsItemText - var unmarshaler = struct { - embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` - }{ - embed: embed(*d), - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2 + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemText(unmarshaler.embed) - d.Created = unmarshaler.Created.TimePtr() - d.Modified = unmarshaler.Modified.TimePtr() + *d = DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -47983,22 +49353,18 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemText) UnmarshalJSON(data [] return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemText) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemText +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2 var marshaler = struct { embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), - Created: internal.NewOptionalDateTime(d.Created), - Modified: internal.NewOptionalDateTime(d.Modified), + embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemText) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2) String() string { if d == nil { return "" } @@ -48013,80 +49379,14 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemText) String() string { return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemTextBlendMode string +var ( + docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3FieldX = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3FieldY = big.NewInt(1 << 1) +) -const ( - DocAnnotationsList200ResponseAnnotationsItemTextBlendModeNormal DocAnnotationsList200ResponseAnnotationsItemTextBlendMode = "normal" - DocAnnotationsList200ResponseAnnotationsItemTextBlendModeMultiply DocAnnotationsList200ResponseAnnotationsItemTextBlendMode = "multiply" - DocAnnotationsList200ResponseAnnotationsItemTextBlendModeScreen DocAnnotationsList200ResponseAnnotationsItemTextBlendMode = "screen" - DocAnnotationsList200ResponseAnnotationsItemTextBlendModeOverlay DocAnnotationsList200ResponseAnnotationsItemTextBlendMode = "overlay" - DocAnnotationsList200ResponseAnnotationsItemTextBlendModeDarken DocAnnotationsList200ResponseAnnotationsItemTextBlendMode = "darken" - DocAnnotationsList200ResponseAnnotationsItemTextBlendModeLighten DocAnnotationsList200ResponseAnnotationsItemTextBlendMode = "lighten" - DocAnnotationsList200ResponseAnnotationsItemTextBlendModeColorDodge DocAnnotationsList200ResponseAnnotationsItemTextBlendMode = "color-dodge" - DocAnnotationsList200ResponseAnnotationsItemTextBlendModeColorBurn DocAnnotationsList200ResponseAnnotationsItemTextBlendMode = "color-burn" - DocAnnotationsList200ResponseAnnotationsItemTextBlendModeHardLight DocAnnotationsList200ResponseAnnotationsItemTextBlendMode = "hard-light" - DocAnnotationsList200ResponseAnnotationsItemTextBlendModeSoftLight DocAnnotationsList200ResponseAnnotationsItemTextBlendMode = "soft-light" - DocAnnotationsList200ResponseAnnotationsItemTextBlendModeDifference DocAnnotationsList200ResponseAnnotationsItemTextBlendMode = "difference" - DocAnnotationsList200ResponseAnnotationsItemTextBlendModeExclusion DocAnnotationsList200ResponseAnnotationsItemTextBlendMode = "exclusion" - DocAnnotationsList200ResponseAnnotationsItemTextBlendModeHue DocAnnotationsList200ResponseAnnotationsItemTextBlendMode = "hue" - DocAnnotationsList200ResponseAnnotationsItemTextBlendModeSaturation DocAnnotationsList200ResponseAnnotationsItemTextBlendMode = "saturation" - DocAnnotationsList200ResponseAnnotationsItemTextBlendModeColor DocAnnotationsList200ResponseAnnotationsItemTextBlendMode = "color" - DocAnnotationsList200ResponseAnnotationsItemTextBlendModeLuminosity DocAnnotationsList200ResponseAnnotationsItemTextBlendMode = "luminosity" -) - -func NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemTextBlendMode, error) { - switch s { - case "normal": - return DocAnnotationsList200ResponseAnnotationsItemTextBlendModeNormal, nil - case "multiply": - return DocAnnotationsList200ResponseAnnotationsItemTextBlendModeMultiply, nil - case "screen": - return DocAnnotationsList200ResponseAnnotationsItemTextBlendModeScreen, nil - case "overlay": - return DocAnnotationsList200ResponseAnnotationsItemTextBlendModeOverlay, nil - case "darken": - return DocAnnotationsList200ResponseAnnotationsItemTextBlendModeDarken, nil - case "lighten": - return DocAnnotationsList200ResponseAnnotationsItemTextBlendModeLighten, nil - case "color-dodge": - return DocAnnotationsList200ResponseAnnotationsItemTextBlendModeColorDodge, nil - case "color-burn": - return DocAnnotationsList200ResponseAnnotationsItemTextBlendModeColorBurn, nil - case "hard-light": - return DocAnnotationsList200ResponseAnnotationsItemTextBlendModeHardLight, nil - case "soft-light": - return DocAnnotationsList200ResponseAnnotationsItemTextBlendModeSoftLight, nil - case "difference": - return DocAnnotationsList200ResponseAnnotationsItemTextBlendModeDifference, nil - case "exclusion": - return DocAnnotationsList200ResponseAnnotationsItemTextBlendModeExclusion, nil - case "hue": - return DocAnnotationsList200ResponseAnnotationsItemTextBlendModeHue, nil - case "saturation": - return DocAnnotationsList200ResponseAnnotationsItemTextBlendModeSaturation, nil - case "color": - return DocAnnotationsList200ResponseAnnotationsItemTextBlendModeColor, nil - case "luminosity": - return DocAnnotationsList200ResponseAnnotationsItemTextBlendModeLuminosity, nil - } - var t DocAnnotationsList200ResponseAnnotationsItemTextBlendMode - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsList200ResponseAnnotationsItemTextBlendMode) Ptr() *DocAnnotationsList200ResponseAnnotationsItemTextBlendMode { - return &d -} - -var ( - docAnnotationsList200ResponseAnnotationsItemTextColorFieldR = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemTextColorFieldG = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemTextColorFieldB = big.NewInt(1 << 2) -) - -type DocAnnotationsList200ResponseAnnotationsItemTextColor struct { - R int `json:"r" url:"r"` - G int `json:"g" url:"g"` - B int `json:"b" url:"b"` +type DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -48095,69 +49395,55 @@ type DocAnnotationsList200ResponseAnnotationsItemTextColor struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextColor) GetR() int { - if d == nil { - return 0 - } - return d.R -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemTextColor) GetG() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3) GetX() float64 { if d == nil { return 0 } - return d.G + return d.X } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextColor) GetB() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3) GetY() float64 { if d == nil { return 0 } - return d.B + return d.Y } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextColor) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetR sets the R field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextColor) SetR(r int) { - d.R = r - d.require(docAnnotationsList200ResponseAnnotationsItemTextColorFieldR) -} - -// SetG sets the G field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextColor) SetG(g int) { - d.G = g - d.require(docAnnotationsList200ResponseAnnotationsItemTextColorFieldG) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3) SetX(x float64) { + d.X = x + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3FieldX) } -// SetB sets the B field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextColor) SetB(b int) { - d.B = b - d.require(docAnnotationsList200ResponseAnnotationsItemTextColorFieldB) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3) SetY(y float64) { + d.Y = y + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3FieldY) } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemTextColor +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3 var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemTextColor(value) + *d = DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -48167,8 +49453,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemTextColor) UnmarshalJSON(da return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemTextColor +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3 var marshaler = struct { embed }{ @@ -48178,7 +49464,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemTextColor) MarshalJSON() ([ return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextColor) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3) String() string { if d == nil { return "" } @@ -48194,29 +49480,13 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemTextColor) String() string } var ( - docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldInvisible = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldHidden = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldPrint = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldNoZoom = big.NewInt(1 << 3) - docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldNoRotate = big.NewInt(1 << 4) - docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldNoView = big.NewInt(1 << 5) - docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldReadOnly = big.NewInt(1 << 6) - docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldLocked = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldToggleNoView = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldLockedContents = big.NewInt(1 << 9) + docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4FieldX = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4FieldY = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemTextFlags struct { - Invisible bool `json:"invisible" url:"invisible"` - Hidden bool `json:"hidden" url:"hidden"` - Print bool `json:"print" url:"print"` - NoZoom bool `json:"noZoom" url:"noZoom"` - NoRotate bool `json:"noRotate" url:"noRotate"` - NoView bool `json:"noView" url:"noView"` - ReadOnly bool `json:"readOnly" url:"readOnly"` - Locked bool `json:"locked" url:"locked"` - ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` - LockedContents bool `json:"lockedContents" url:"lockedContents"` +type DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -48225,167 +49495,187 @@ type DocAnnotationsList200ResponseAnnotationsItemTextFlags struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) GetInvisible() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4) GetX() float64 { if d == nil { - return false + return 0 } - return d.Invisible + return d.X } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) GetHidden() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4) GetY() float64 { if d == nil { - return false + return 0 } - return d.Hidden + return d.Y } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) GetPrint() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4) GetExtraProperties() map[string]interface{} { if d == nil { - return false + return nil } - return d.Print + return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) GetNoZoom() bool { - if d == nil { - return false +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.NoZoom + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) GetNoRotate() bool { - if d == nil { - return false +// SetX sets the X field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4) SetX(x float64) { + d.X = x + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4FieldX) +} + +// SetY sets the Y field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4) SetY(y float64) { + d.Y = y + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4FieldY) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4 + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - return d.NoRotate + *d = DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) GetNoView() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4 + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4) String() string { if d == nil { - return false + return "" } - return d.NoView + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) GetReadOnly() bool { +var ( + docAnnotationsList200ResponseAnnotationsItemSquigglyRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemSquigglyRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemSquigglyRectFieldRight = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemSquigglyRectFieldTop = big.NewInt(1 << 3) +) + +type DocAnnotationsList200ResponseAnnotationsItemSquigglyRect struct { + Left float64 `json:"left" url:"left"` + Bottom float64 `json:"bottom" url:"bottom"` + Right float64 `json:"right" url:"right"` + Top float64 `json:"top" url:"top"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect) GetLeft() float64 { if d == nil { - return false + return 0 } - return d.ReadOnly + return d.Left } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) GetLocked() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect) GetBottom() float64 { if d == nil { - return false + return 0 } - return d.Locked + return d.Bottom } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) GetToggleNoView() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect) GetRight() float64 { if d == nil { - return false + return 0 } - return d.ToggleNoView + return d.Right } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) GetLockedContents() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect) GetTop() float64 { if d == nil { - return false + return 0 } - return d.LockedContents + return d.Top } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetInvisible sets the Invisible field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) SetInvisible(invisible bool) { - d.Invisible = invisible - d.require(docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldInvisible) -} - -// SetHidden sets the Hidden field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) SetHidden(hidden bool) { - d.Hidden = hidden - d.require(docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldHidden) -} - -// SetPrint sets the Print field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) SetPrint(print bool) { - d.Print = print - d.require(docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldPrint) -} - -// SetNoZoom sets the NoZoom field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) SetNoZoom(noZoom bool) { - d.NoZoom = noZoom - d.require(docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldNoZoom) -} - -// SetNoRotate sets the NoRotate field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) SetNoRotate(noRotate bool) { - d.NoRotate = noRotate - d.require(docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldNoRotate) -} - -// SetNoView sets the NoView field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) SetNoView(noView bool) { - d.NoView = noView - d.require(docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldNoView) -} - -// SetReadOnly sets the ReadOnly field and marks it as non-optional; +// SetLeft sets the Left field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) SetReadOnly(readOnly bool) { - d.ReadOnly = readOnly - d.require(docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldReadOnly) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyRectFieldLeft) } -// SetLocked sets the Locked field and marks it as non-optional; +// SetBottom sets the Bottom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) SetLocked(locked bool) { - d.Locked = locked - d.require(docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldLocked) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyRectFieldBottom) } -// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// SetRight sets the Right field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) SetToggleNoView(toggleNoView bool) { - d.ToggleNoView = toggleNoView - d.require(docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldToggleNoView) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyRectFieldRight) } -// SetLockedContents sets the LockedContents field and marks it as non-optional; +// SetTop sets the Top field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) SetLockedContents(lockedContents bool) { - d.LockedContents = lockedContents - d.require(docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldLockedContents) +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyRectFieldTop) } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemTextFlags +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquigglyRect var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemTextFlags(value) + *d = DocAnnotationsList200ResponseAnnotationsItemSquigglyRect(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -48395,8 +49685,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) UnmarshalJSON(da return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemTextFlags +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemSquigglyRect var marshaler = struct { embed }{ @@ -48406,7 +49696,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) MarshalJSON() ([ return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect) String() string { if d == nil { return "" } @@ -48421,103 +49711,44 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) String() string return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemTextIcon string - -const ( - DocAnnotationsList200ResponseAnnotationsItemTextIconComment DocAnnotationsList200ResponseAnnotationsItemTextIcon = "comment" - DocAnnotationsList200ResponseAnnotationsItemTextIconKey DocAnnotationsList200ResponseAnnotationsItemTextIcon = "key" - DocAnnotationsList200ResponseAnnotationsItemTextIconNote DocAnnotationsList200ResponseAnnotationsItemTextIcon = "note" - DocAnnotationsList200ResponseAnnotationsItemTextIconHelp DocAnnotationsList200ResponseAnnotationsItemTextIcon = "help" - DocAnnotationsList200ResponseAnnotationsItemTextIconNewParagraph DocAnnotationsList200ResponseAnnotationsItemTextIcon = "new-paragraph" - DocAnnotationsList200ResponseAnnotationsItemTextIconParagraph DocAnnotationsList200ResponseAnnotationsItemTextIcon = "paragraph" - DocAnnotationsList200ResponseAnnotationsItemTextIconInsert DocAnnotationsList200ResponseAnnotationsItemTextIcon = "insert" -) - -func NewDocAnnotationsList200ResponseAnnotationsItemTextIconFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemTextIcon, error) { - switch s { - case "comment": - return DocAnnotationsList200ResponseAnnotationsItemTextIconComment, nil - case "key": - return DocAnnotationsList200ResponseAnnotationsItemTextIconKey, nil - case "note": - return DocAnnotationsList200ResponseAnnotationsItemTextIconNote, nil - case "help": - return DocAnnotationsList200ResponseAnnotationsItemTextIconHelp, nil - case "new-paragraph": - return DocAnnotationsList200ResponseAnnotationsItemTextIconNewParagraph, nil - case "paragraph": - return DocAnnotationsList200ResponseAnnotationsItemTextIconParagraph, nil - case "insert": - return DocAnnotationsList200ResponseAnnotationsItemTextIconInsert, nil - } - var t DocAnnotationsList200ResponseAnnotationsItemTextIcon - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsList200ResponseAnnotationsItemTextIcon) Ptr() *DocAnnotationsList200ResponseAnnotationsItemTextIcon { - return &d -} - -type DocAnnotationsList200ResponseAnnotationsItemTextIdentityQuality string - -const ( - DocAnnotationsList200ResponseAnnotationsItemTextIdentityQualityDurable DocAnnotationsList200ResponseAnnotationsItemTextIdentityQuality = "durable" - DocAnnotationsList200ResponseAnnotationsItemTextIdentityQualityWeak DocAnnotationsList200ResponseAnnotationsItemTextIdentityQuality = "weak" -) - -func NewDocAnnotationsList200ResponseAnnotationsItemTextIdentityQualityFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemTextIdentityQuality, error) { - switch s { - case "durable": - return DocAnnotationsList200ResponseAnnotationsItemTextIdentityQualityDurable, nil - case "weak": - return DocAnnotationsList200ResponseAnnotationsItemTextIdentityQualityWeak, nil - } - var t DocAnnotationsList200ResponseAnnotationsItemTextIdentityQuality - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsList200ResponseAnnotationsItemTextIdentityQuality) Ptr() *DocAnnotationsList200ResponseAnnotationsItemTextIdentityQuality { - return &d -} - -type DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo struct { +type DocAnnotationsList200ResponseAnnotationsItemSquigglyRef struct { Kind string - ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber - Nm *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm - Index *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex + ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber + Nm *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm + Index *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo) GetKind() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRef) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRef) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber { if d == nil { return nil } return d.ObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo) GetNm() *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRef) GetNm() *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRef) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex { if d == nil { return nil } return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo) UnmarshalJSON(data []byte) error { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRef) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -48530,19 +49761,19 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo) UnmarshalJSO } switch unmarshaler.Kind { case "objectNumber": - value := new(DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber) + value := new(DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber) if err := json.Unmarshal(data, &value); err != nil { return err } d.ObjectNumber = value case "nm": - value := new(DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm) + value := new(DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm) if err := json.Unmarshal(data, &value); err != nil { return err } d.Nm = value case "index": - value := new(DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex) + value := new(DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -48552,7 +49783,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo) UnmarshalJSO return nil } -func (d DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsList200ResponseAnnotationsItemSquigglyRef) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -48571,13 +49802,13 @@ func (d DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo) MarshalJSON() return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsList200ResponseAnnotationsItemTextInReplyToVisitor interface { - VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber) error - VisitNm(*DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm) error - VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex) error +type DocAnnotationsList200ResponseAnnotationsItemSquigglyRefVisitor interface { + VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber) error + VisitNm(*DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm) error + VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex) error } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemTextInReplyToVisitor) error { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRef) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemSquigglyRefVisitor) error { if d.ObjectNumber != nil { return visitor.VisitObjectNumber(d.ObjectNumber) } @@ -48590,7 +49821,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo) Accept(visit return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo) validate() error { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRef) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -48631,15 +49862,15 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo) validate() e } var ( - docAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -48648,35 +49879,35 @@ type DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex) GetIndex() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision { if d == nil { return nil } return d.Revision } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -48685,32 +49916,32 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex) require // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex) SetIndex(index int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex) SetIndex(index int) { d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexFieldIndex) + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexFieldIndex) } // SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision) { d.Revision = revision - d.require(docAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexFieldRevision) + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexFieldRevision) } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex(value) + *d = DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -48720,8 +49951,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex) Unmarsh return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex var marshaler = struct { embed }{ @@ -48731,7 +49962,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex) Marshal return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex) String() string { if d == nil { return "" } @@ -48747,12 +49978,12 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex) String( } var ( - docAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision struct { +type DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision struct { DocSessionID string `json:"docSessionId" url:"docSessionId"` PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Generation int `json:"generation" url:"generation"` @@ -48764,35 +49995,35 @@ type DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision stru rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision) GetDocSessionID() string { if d == nil { return "" } return d.DocSessionID } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision) GetGeneration() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision) GetGeneration() int { if d == nil { return 0 } return d.Generation } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -48801,32 +50032,32 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision) // SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision) SetDocSessionID(docSessionID string) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision) SetDocSessionID(docSessionID string) { d.DocSessionID = docSessionID - d.require(docAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevisionFieldDocSessionID) + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevisionFieldDocSessionID) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevisionFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevisionFieldPageObjectNumber) } // SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision) SetGeneration(generation int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision) SetGeneration(generation int) { d.Generation = generation - d.require(docAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevisionFieldGeneration) + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevisionFieldGeneration) } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision(value) + *d = DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -48836,8 +50067,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision) return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision var marshaler = struct { embed }{ @@ -48847,7 +50078,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision) String() string { if d == nil { return "" } @@ -48863,11 +50094,11 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision) } var ( - docAnnotationsList200ResponseAnnotationsItemTextInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemTextInReplyToNmFieldNm = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemSquigglyRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemSquigglyRefNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm struct { +type DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Nm string `json:"nm" url:"nm"` @@ -48878,28 +50109,28 @@ type DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm) GetNm() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm) GetNm() string { if d == nil { return "" } return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -48908,25 +50139,25 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm) require(fi // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemTextInReplyToNmFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyRefNmFieldPageObjectNumber) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm) SetNm(nm string) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm) SetNm(nm string) { d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemTextInReplyToNmFieldNm) + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyRefNmFieldNm) } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm(value) + *d = DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -48936,8 +50167,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm) UnmarshalJ return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm var marshaler = struct { embed }{ @@ -48947,7 +50178,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm) MarshalJSO return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm) String() string { if d == nil { return "" } @@ -48963,11 +50194,11 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm) String() s } var ( - docAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber struct { +type DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` @@ -48978,28 +50209,28 @@ type DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber struc rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } return d.AnnotObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -49008,25 +50239,25 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber) // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumberFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumberFieldPageObjectNumber) } // SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumberFieldAnnotObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber(value) + *d = DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -49036,8 +50267,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber) return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber var marshaler = struct { embed }{ @@ -49047,7 +50278,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber) String() string { if d == nil { return "" } @@ -49062,18 +50293,78 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber) return fmt.Sprintf("%#v", d) } +type DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyType string + +const ( + DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyTypeReply DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyType = "reply" + DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyTypeGroup DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyType = "group" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemSquigglyReplyTypeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyType, error) { + switch s { + case "reply": + return DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyTypeReply, nil + case "group": + return DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyTypeGroup, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyType) Ptr() *DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyType { + return &d +} + var ( - docAnnotationsList200ResponseAnnotationsItemTextRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemTextRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemTextRectFieldRight = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemTextRectFieldTop = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemStampFieldRef = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemStampFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemStampFieldIndex = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemStampFieldIdentityQuality = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemStampFieldNm = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemStampFieldFlags = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemStampFieldRect = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemStampFieldContents = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemStampFieldSubject = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemStampFieldAuthor = big.NewInt(1 << 9) + docAnnotationsList200ResponseAnnotationsItemStampFieldCreated = big.NewInt(1 << 10) + docAnnotationsList200ResponseAnnotationsItemStampFieldModified = big.NewInt(1 << 11) + docAnnotationsList200ResponseAnnotationsItemStampFieldBlendMode = big.NewInt(1 << 12) + docAnnotationsList200ResponseAnnotationsItemStampFieldInReplyTo = big.NewInt(1 << 13) + docAnnotationsList200ResponseAnnotationsItemStampFieldReplyType = big.NewInt(1 << 14) + docAnnotationsList200ResponseAnnotationsItemStampFieldUserID = big.NewInt(1 << 15) + docAnnotationsList200ResponseAnnotationsItemStampFieldGroupID = big.NewInt(1 << 16) + docAnnotationsList200ResponseAnnotationsItemStampFieldCreatedBy = big.NewInt(1 << 17) + docAnnotationsList200ResponseAnnotationsItemStampFieldUpdatedBy = big.NewInt(1 << 18) + docAnnotationsList200ResponseAnnotationsItemStampFieldActions = big.NewInt(1 << 19) + docAnnotationsList200ResponseAnnotationsItemStampFieldName = big.NewInt(1 << 20) + docAnnotationsList200ResponseAnnotationsItemStampFieldRotation = big.NewInt(1 << 21) + docAnnotationsList200ResponseAnnotationsItemStampFieldUnrotatedRect = big.NewInt(1 << 22) ) -type DocAnnotationsList200ResponseAnnotationsItemTextRect struct { - Left float64 `json:"left" url:"left"` - Bottom float64 `json:"bottom" url:"bottom"` - Right float64 `json:"right" url:"right"` - Top float64 `json:"top" url:"top"` +type DocAnnotationsList200ResponseAnnotationsItemStamp struct { + Ref *DocAnnotationsList200ResponseAnnotationsItemStampRef `json:"ref" url:"ref"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + IdentityQuality DocAnnotationsList200ResponseAnnotationsItemStampIdentityQuality `json:"identityQuality" url:"identityQuality"` + Nm *string `json:"nm,omitempty" url:"nm,omitempty"` + Flags *DocAnnotationsList200ResponseAnnotationsItemStampFlags `json:"flags" url:"flags"` + Rect *DocAnnotationsList200ResponseAnnotationsItemStampRect `json:"rect" url:"rect"` + Contents *string `json:"contents,omitempty" url:"contents,omitempty"` + Subject *string `json:"subject,omitempty" url:"subject,omitempty"` + Author *string `json:"author,omitempty" url:"author,omitempty"` + Created *time.Time `json:"created,omitempty" url:"created,omitempty"` + Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` + BlendMode DocAnnotationsList200ResponseAnnotationsItemStampBlendMode `json:"blendMode" url:"blendMode"` + InReplyTo *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` + ReplyType *DocAnnotationsList200ResponseAnnotationsItemStampReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` + UserID *string `json:"userId,omitempty" url:"userId,omitempty"` + GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` + CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` + Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` + Name *string `json:"name,omitempty" url:"name,omitempty"` + Rotation *float64 `json:"rotation,omitempty" url:"rotation,omitempty"` + UnrotatedRect *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect `json:"unrotatedRect,omitempty" url:"unrotatedRect,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -49082,465 +50373,357 @@ type DocAnnotationsList200ResponseAnnotationsItemTextRect struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRect) GetLeft() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetRef() *DocAnnotationsList200ResponseAnnotationsItemStampRef { if d == nil { - return 0 + return nil } - return d.Left + return d.Ref } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRect) GetBottom() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetPageObjectNumber() int { if d == nil { return 0 } - return d.Bottom + return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRect) GetRight() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetIndex() int { if d == nil { return 0 } - return d.Right + return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRect) GetTop() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetIdentityQuality() DocAnnotationsList200ResponseAnnotationsItemStampIdentityQuality { if d == nil { - return 0 + return "" } - return d.Top + return d.IdentityQuality } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRect) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetNm() *string { if d == nil { return nil } - return d.extraProperties + return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRect) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetFlags() *DocAnnotationsList200ResponseAnnotationsItemStampFlags { + if d == nil { + return nil } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetLeft sets the Left field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRect) SetLeft(left float64) { - d.Left = left - d.require(docAnnotationsList200ResponseAnnotationsItemTextRectFieldLeft) -} - -// SetBottom sets the Bottom field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRect) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsList200ResponseAnnotationsItemTextRectFieldBottom) + return d.Flags } -// SetRight sets the Right field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRect) SetRight(right float64) { - d.Right = right - d.require(docAnnotationsList200ResponseAnnotationsItemTextRectFieldRight) +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetRect() *DocAnnotationsList200ResponseAnnotationsItemStampRect { + if d == nil { + return nil + } + return d.Rect } -// SetTop sets the Top field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRect) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsList200ResponseAnnotationsItemTextRectFieldTop) +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetContents() *string { + if d == nil { + return nil + } + return d.Contents } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemTextRect - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsList200ResponseAnnotationsItemTextRect(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetSubject() *string { + if d == nil { + return nil } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil + return d.Subject } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemTextRect - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetAuthor() *string { + if d == nil { + return nil } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return d.Author } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRect) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetCreated() *time.Time { if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value + return nil } - return fmt.Sprintf("%#v", d) + return d.Created } -type DocAnnotationsList200ResponseAnnotationsItemTextRef struct { - Kind string - ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber - Nm *DocAnnotationsList200ResponseAnnotationsItemTextRefNm - Index *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex - - rawJSON json.RawMessage +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetModified() *time.Time { + if d == nil { + return nil + } + return d.Modified } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRef) GetKind() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetBlendMode() DocAnnotationsList200ResponseAnnotationsItemStampBlendMode { if d == nil { return "" } - return d.Kind + return d.BlendMode } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRef) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber { +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetInReplyTo() *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo { if d == nil { return nil } - return d.ObjectNumber + return d.InReplyTo } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRef) GetNm() *DocAnnotationsList200ResponseAnnotationsItemTextRefNm { +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetReplyType() *DocAnnotationsList200ResponseAnnotationsItemStampReplyType { if d == nil { return nil } - return d.Nm + return d.ReplyType } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRef) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex { +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetUserID() *string { if d == nil { return nil } - return d.Index + return d.UserID } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRef) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsList200ResponseAnnotationsItemTextRefNm) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Nm = value - case "index": - value := new(DocAnnotationsList200ResponseAnnotationsItemTextRefIndex) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Index = value +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetGroupID() *string { + if d == nil { + return nil } - d.rawJSON = json.RawMessage(data) - return nil + return d.GroupID } -func (d DocAnnotationsList200ResponseAnnotationsItemTextRef) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Nm != nil { - return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") - } - if d.Index != nil { - return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetCreatedBy() *string { + if d == nil { + return nil } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) -} - -type DocAnnotationsList200ResponseAnnotationsItemTextRefVisitor interface { - VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber) error - VisitNm(*DocAnnotationsList200ResponseAnnotationsItemTextRefNm) error - VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemTextRefIndex) error + return d.CreatedBy } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRef) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemTextRefVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) - } - if d.Nm != nil { - return visitor.VisitNm(d.Nm) - } - if d.Index != nil { - return visitor.VisitIndex(d.Index) +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetUpdatedBy() *string { + if d == nil { + return nil } - return fmt.Errorf("type %T does not define a non-empty union type", d) + return d.UpdatedBy } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRef) validate() error { +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetActions() *PdfAnnotationActions { if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Nm != nil { - fields = append(fields, "nm") - } - if d.Index != nil { - fields = append(fields, "index") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } + return nil } - return nil -} - -var ( - docAnnotationsList200ResponseAnnotationsItemTextRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemTextRefIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemTextRefIndexFieldRevision = big.NewInt(1 << 2) -) - -type DocAnnotationsList200ResponseAnnotationsItemTextRefIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision `json:"revision" url:"revision"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage + return d.Actions } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetName() *string { if d == nil { - return 0 + return nil } - return d.PageObjectNumber + return d.Name } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex) GetIndex() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetRotation() *float64 { if d == nil { - return 0 + return nil } - return d.Index + return d.Rotation } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision { +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetUnrotatedRect() *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect { if d == nil { return nil } - return d.Revision + return d.UnrotatedRect } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } +// SetRef sets the Ref field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetRef(ref *DocAnnotationsList200ResponseAnnotationsItemStampRef) { + d.Ref = ref + d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldRef) +} + // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemTextRefIndexFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex) SetIndex(index int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetIndex(index int) { d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemTextRefIndexFieldIndex) + d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldIndex) } -// SetRevision sets the Revision field and marks it as non-optional; +// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision) { - d.Revision = revision - d.require(docAnnotationsList200ResponseAnnotationsItemTextRefIndexFieldRevision) +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetIdentityQuality(identityQuality DocAnnotationsList200ResponseAnnotationsItemStampIdentityQuality) { + d.IdentityQuality = identityQuality + d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldIdentityQuality) } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemTextRefIndex - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsList200ResponseAnnotationsItemTextRefIndex(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetNm(nm *string) { + d.Nm = nm + d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldNm) } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemTextRefIndex - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) +// SetFlags sets the Flags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetFlags(flags *DocAnnotationsList200ResponseAnnotationsItemStampFlags) { + d.Flags = flags + d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldFlags) } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) +// SetRect sets the Rect field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetRect(rect *DocAnnotationsList200ResponseAnnotationsItemStampRect) { + d.Rect = rect + d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldRect) } -var ( - docAnnotationsList200ResponseAnnotationsItemTextRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemTextRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemTextRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) -) +// SetContents sets the Contents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetContents(contents *string) { + d.Contents = contents + d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldContents) +} -type DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +// SetSubject sets the Subject field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetSubject(subject *string) { + d.Subject = subject + d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldSubject) +} - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +// SetAuthor sets the Author field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetAuthor(author *string) { + d.Author = author + d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldAuthor) +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +// SetCreated sets the Created field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetCreated(created *time.Time) { + d.Created = created + d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldCreated) } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision) GetDocSessionID() string { - if d == nil { - return "" - } - return d.DocSessionID +// SetModified sets the Modified field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetModified(modified *time.Time) { + d.Modified = modified + d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldModified) } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber +// SetBlendMode sets the BlendMode field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetBlendMode(blendMode DocAnnotationsList200ResponseAnnotationsItemStampBlendMode) { + d.BlendMode = blendMode + d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldBlendMode) } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision) GetGeneration() int { - if d == nil { - return 0 - } - return d.Generation +// SetInReplyTo sets the InReplyTo field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetInReplyTo(inReplyTo *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo) { + d.InReplyTo = inReplyTo + d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldInReplyTo) } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties +// SetReplyType sets the ReplyType field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetReplyType(replyType *DocAnnotationsList200ResponseAnnotationsItemStampReplyType) { + d.ReplyType = replyType + d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldReplyType) } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) +// SetUserID sets the UserID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetUserID(userID *string) { + d.UserID = userID + d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldUserID) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// SetGroupID sets the GroupID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsList200ResponseAnnotationsItemTextRefIndexRevisionFieldDocSessionID) +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetGroupID(groupID *string) { + d.GroupID = groupID + d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldGroupID) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetCreatedBy sets the CreatedBy field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemTextRefIndexRevisionFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetCreatedBy(createdBy *string) { + d.CreatedBy = createdBy + d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldCreatedBy) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsList200ResponseAnnotationsItemTextRefIndexRevisionFieldGeneration) +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetUpdatedBy(updatedBy *string) { + d.UpdatedBy = updatedBy + d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldUpdatedBy) } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { +// SetActions sets the Actions field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetActions(actions *PdfAnnotationActions) { + d.Actions = actions + d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldActions) +} + +// SetName sets the Name field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetName(name *string) { + d.Name = name + d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldName) +} + +// SetRotation sets the Rotation field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetRotation(rotation *float64) { + d.Rotation = rotation + d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldRotation) +} + +// SetUnrotatedRect sets the UnrotatedRect field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) SetUnrotatedRect(unrotatedRect *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect) { + d.UnrotatedRect = unrotatedRect + d.require(docAnnotationsList200ResponseAnnotationsItemStampFieldUnrotatedRect) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) UnmarshalJSON(data []byte) error { + type embed DocAnnotationsList200ResponseAnnotationsItemStamp + var unmarshaler = struct { + embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision(value) + *d = DocAnnotationsList200ResponseAnnotationsItemStamp(unmarshaler.embed) + d.Created = unmarshaler.Created.TimePtr() + d.Modified = unmarshaler.Modified.TimePtr() extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -49550,18 +50733,22 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision) Unmar return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemStamp var marshaler = struct { embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), + embed: embed(*d), + Created: internal.NewOptionalDateTime(d.Created), + Modified: internal.NewOptionalDateTime(d.Modified), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStamp) String() string { if d == nil { return "" } @@ -49576,14 +50763,94 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision) Strin return fmt.Sprintf("%#v", d) } +type DocAnnotationsList200ResponseAnnotationsItemStampBlendMode string + +const ( + DocAnnotationsList200ResponseAnnotationsItemStampBlendModeNormal DocAnnotationsList200ResponseAnnotationsItemStampBlendMode = "normal" + DocAnnotationsList200ResponseAnnotationsItemStampBlendModeMultiply DocAnnotationsList200ResponseAnnotationsItemStampBlendMode = "multiply" + DocAnnotationsList200ResponseAnnotationsItemStampBlendModeScreen DocAnnotationsList200ResponseAnnotationsItemStampBlendMode = "screen" + DocAnnotationsList200ResponseAnnotationsItemStampBlendModeOverlay DocAnnotationsList200ResponseAnnotationsItemStampBlendMode = "overlay" + DocAnnotationsList200ResponseAnnotationsItemStampBlendModeDarken DocAnnotationsList200ResponseAnnotationsItemStampBlendMode = "darken" + DocAnnotationsList200ResponseAnnotationsItemStampBlendModeLighten DocAnnotationsList200ResponseAnnotationsItemStampBlendMode = "lighten" + DocAnnotationsList200ResponseAnnotationsItemStampBlendModeColorDodge DocAnnotationsList200ResponseAnnotationsItemStampBlendMode = "color-dodge" + DocAnnotationsList200ResponseAnnotationsItemStampBlendModeColorBurn DocAnnotationsList200ResponseAnnotationsItemStampBlendMode = "color-burn" + DocAnnotationsList200ResponseAnnotationsItemStampBlendModeHardLight DocAnnotationsList200ResponseAnnotationsItemStampBlendMode = "hard-light" + DocAnnotationsList200ResponseAnnotationsItemStampBlendModeSoftLight DocAnnotationsList200ResponseAnnotationsItemStampBlendMode = "soft-light" + DocAnnotationsList200ResponseAnnotationsItemStampBlendModeDifference DocAnnotationsList200ResponseAnnotationsItemStampBlendMode = "difference" + DocAnnotationsList200ResponseAnnotationsItemStampBlendModeExclusion DocAnnotationsList200ResponseAnnotationsItemStampBlendMode = "exclusion" + DocAnnotationsList200ResponseAnnotationsItemStampBlendModeHue DocAnnotationsList200ResponseAnnotationsItemStampBlendMode = "hue" + DocAnnotationsList200ResponseAnnotationsItemStampBlendModeSaturation DocAnnotationsList200ResponseAnnotationsItemStampBlendMode = "saturation" + DocAnnotationsList200ResponseAnnotationsItemStampBlendModeColor DocAnnotationsList200ResponseAnnotationsItemStampBlendMode = "color" + DocAnnotationsList200ResponseAnnotationsItemStampBlendModeLuminosity DocAnnotationsList200ResponseAnnotationsItemStampBlendMode = "luminosity" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemStampBlendModeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemStampBlendMode, error) { + switch s { + case "normal": + return DocAnnotationsList200ResponseAnnotationsItemStampBlendModeNormal, nil + case "multiply": + return DocAnnotationsList200ResponseAnnotationsItemStampBlendModeMultiply, nil + case "screen": + return DocAnnotationsList200ResponseAnnotationsItemStampBlendModeScreen, nil + case "overlay": + return DocAnnotationsList200ResponseAnnotationsItemStampBlendModeOverlay, nil + case "darken": + return DocAnnotationsList200ResponseAnnotationsItemStampBlendModeDarken, nil + case "lighten": + return DocAnnotationsList200ResponseAnnotationsItemStampBlendModeLighten, nil + case "color-dodge": + return DocAnnotationsList200ResponseAnnotationsItemStampBlendModeColorDodge, nil + case "color-burn": + return DocAnnotationsList200ResponseAnnotationsItemStampBlendModeColorBurn, nil + case "hard-light": + return DocAnnotationsList200ResponseAnnotationsItemStampBlendModeHardLight, nil + case "soft-light": + return DocAnnotationsList200ResponseAnnotationsItemStampBlendModeSoftLight, nil + case "difference": + return DocAnnotationsList200ResponseAnnotationsItemStampBlendModeDifference, nil + case "exclusion": + return DocAnnotationsList200ResponseAnnotationsItemStampBlendModeExclusion, nil + case "hue": + return DocAnnotationsList200ResponseAnnotationsItemStampBlendModeHue, nil + case "saturation": + return DocAnnotationsList200ResponseAnnotationsItemStampBlendModeSaturation, nil + case "color": + return DocAnnotationsList200ResponseAnnotationsItemStampBlendModeColor, nil + case "luminosity": + return DocAnnotationsList200ResponseAnnotationsItemStampBlendModeLuminosity, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemStampBlendMode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemStampBlendMode) Ptr() *DocAnnotationsList200ResponseAnnotationsItemStampBlendMode { + return &d +} + var ( - docAnnotationsList200ResponseAnnotationsItemTextRefNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemTextRefNmFieldNm = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldInvisible = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldHidden = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldPrint = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldNoZoom = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldNoRotate = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldNoView = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldReadOnly = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldLocked = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldToggleNoView = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldLockedContents = big.NewInt(1 << 9) ) -type DocAnnotationsList200ResponseAnnotationsItemTextRefNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` +type DocAnnotationsList200ResponseAnnotationsItemStampFlags struct { + Invisible bool `json:"invisible" url:"invisible"` + Hidden bool `json:"hidden" url:"hidden"` + Print bool `json:"print" url:"print"` + NoZoom bool `json:"noZoom" url:"noZoom"` + NoRotate bool `json:"noRotate" url:"noRotate"` + NoView bool `json:"noView" url:"noView"` + ReadOnly bool `json:"readOnly" url:"readOnly"` + Locked bool `json:"locked" url:"locked"` + ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` + LockedContents bool `json:"lockedContents" url:"lockedContents"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -49592,155 +50859,167 @@ type DocAnnotationsList200ResponseAnnotationsItemTextRefNm struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefNm) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) GetInvisible() bool { if d == nil { - return 0 + return false } - return d.PageObjectNumber + return d.Invisible } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefNm) GetNm() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) GetHidden() bool { if d == nil { - return "" + return false } - return d.Nm + return d.Hidden } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) GetPrint() bool { if d == nil { - return nil + return false } - return d.extraProperties + return d.Print } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefNm) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) GetNoZoom() bool { + if d == nil { + return false } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefNm) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemTextRefNmFieldPageObjectNumber) -} - -// SetNm sets the Nm field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemTextRefNmFieldNm) + return d.NoZoom } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemTextRefNm - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsList200ResponseAnnotationsItemTextRefNm(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err +func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) GetNoRotate() bool { + if d == nil { + return false } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil + return d.NoRotate } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemTextRefNm - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) GetNoView() bool { + if d == nil { + return false } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return d.NoView } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefNm) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) GetReadOnly() bool { if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value + return false } - return fmt.Sprintf("%#v", d) + return d.ReadOnly } -var ( - docAnnotationsList200ResponseAnnotationsItemTextRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemTextRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) -) - -type DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) GetLocked() bool { + if d == nil { + return false + } + return d.Locked } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) GetToggleNoView() bool { if d == nil { - return 0 + return false } - return d.PageObjectNumber + return d.ToggleNoView } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) GetLockedContents() bool { if d == nil { - return 0 + return false } - return d.AnnotObjectNumber + return d.LockedContents } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetInvisible sets the Invisible field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemTextRefObjectNumberFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) SetInvisible(invisible bool) { + d.Invisible = invisible + d.require(docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldInvisible) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetHidden sets the Hidden field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemTextRefObjectNumberFieldAnnotObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) SetHidden(hidden bool) { + d.Hidden = hidden + d.require(docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldHidden) } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber +// SetPrint sets the Print field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) SetPrint(print bool) { + d.Print = print + d.require(docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldPrint) +} + +// SetNoZoom sets the NoZoom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) SetNoZoom(noZoom bool) { + d.NoZoom = noZoom + d.require(docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldNoZoom) +} + +// SetNoRotate sets the NoRotate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) SetNoRotate(noRotate bool) { + d.NoRotate = noRotate + d.require(docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldNoRotate) +} + +// SetNoView sets the NoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) SetNoView(noView bool) { + d.NoView = noView + d.require(docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldNoView) +} + +// SetReadOnly sets the ReadOnly field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + d.require(docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldReadOnly) +} + +// SetLocked sets the Locked field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) SetLocked(locked bool) { + d.Locked = locked + d.require(docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldLocked) +} + +// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) SetToggleNoView(toggleNoView bool) { + d.ToggleNoView = toggleNoView + d.require(docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldToggleNoView) +} + +// SetLockedContents sets the LockedContents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) SetLockedContents(lockedContents bool) { + d.LockedContents = lockedContents + d.require(docAnnotationsList200ResponseAnnotationsItemStampFlagsFieldLockedContents) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStampFlags var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber(value) + *d = DocAnnotationsList200ResponseAnnotationsItemStampFlags(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -49750,8 +51029,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber) Unmars return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemStampFlags var marshaler = struct { embed }{ @@ -49761,7 +51040,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber) Marsha return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampFlags) String() string { if d == nil { return "" } @@ -49776,437 +51055,475 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber) String return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemTextReplyType string +type DocAnnotationsList200ResponseAnnotationsItemStampIdentityQuality string const ( - DocAnnotationsList200ResponseAnnotationsItemTextReplyTypeReply DocAnnotationsList200ResponseAnnotationsItemTextReplyType = "reply" - DocAnnotationsList200ResponseAnnotationsItemTextReplyTypeGroup DocAnnotationsList200ResponseAnnotationsItemTextReplyType = "group" + DocAnnotationsList200ResponseAnnotationsItemStampIdentityQualityDurable DocAnnotationsList200ResponseAnnotationsItemStampIdentityQuality = "durable" + DocAnnotationsList200ResponseAnnotationsItemStampIdentityQualityWeak DocAnnotationsList200ResponseAnnotationsItemStampIdentityQuality = "weak" ) -func NewDocAnnotationsList200ResponseAnnotationsItemTextReplyTypeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemTextReplyType, error) { +func NewDocAnnotationsList200ResponseAnnotationsItemStampIdentityQualityFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemStampIdentityQuality, error) { switch s { - case "reply": - return DocAnnotationsList200ResponseAnnotationsItemTextReplyTypeReply, nil - case "group": - return DocAnnotationsList200ResponseAnnotationsItemTextReplyTypeGroup, nil + case "durable": + return DocAnnotationsList200ResponseAnnotationsItemStampIdentityQualityDurable, nil + case "weak": + return DocAnnotationsList200ResponseAnnotationsItemStampIdentityQualityWeak, nil } - var t DocAnnotationsList200ResponseAnnotationsItemTextReplyType + var t DocAnnotationsList200ResponseAnnotationsItemStampIdentityQuality return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsList200ResponseAnnotationsItemTextReplyType) Ptr() *DocAnnotationsList200ResponseAnnotationsItemTextReplyType { +func (d DocAnnotationsList200ResponseAnnotationsItemStampIdentityQuality) Ptr() *DocAnnotationsList200ResponseAnnotationsItemStampIdentityQuality { return &d } -var ( - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldRef = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldIndex = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldIdentityQuality = big.NewInt(1 << 3) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldNm = big.NewInt(1 << 4) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldFlags = big.NewInt(1 << 5) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldRect = big.NewInt(1 << 6) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldContents = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldSubject = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldAuthor = big.NewInt(1 << 9) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldCreated = big.NewInt(1 << 10) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldModified = big.NewInt(1 << 11) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldBlendMode = big.NewInt(1 << 12) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldInReplyTo = big.NewInt(1 << 13) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldReplyType = big.NewInt(1 << 14) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldUserID = big.NewInt(1 << 15) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldGroupID = big.NewInt(1 << 16) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldCreatedBy = big.NewInt(1 << 17) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldUpdatedBy = big.NewInt(1 << 18) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldActions = big.NewInt(1 << 19) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldColor = big.NewInt(1 << 20) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldOpacity = big.NewInt(1 << 21) - docAnnotationsList200ResponseAnnotationsItemUnderlineFieldQuadPoints = big.NewInt(1 << 22) -) - -type DocAnnotationsList200ResponseAnnotationsItemUnderline struct { - Ref *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef `json:"ref" url:"ref"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - IdentityQuality DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQuality `json:"identityQuality" url:"identityQuality"` - Nm *string `json:"nm,omitempty" url:"nm,omitempty"` - Flags *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags `json:"flags" url:"flags"` - Rect *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect `json:"rect" url:"rect"` - Contents *string `json:"contents,omitempty" url:"contents,omitempty"` - Subject *string `json:"subject,omitempty" url:"subject,omitempty"` - Author *string `json:"author,omitempty" url:"author,omitempty"` - Created *time.Time `json:"created,omitempty" url:"created,omitempty"` - Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` - BlendMode DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode `json:"blendMode" url:"blendMode"` - InReplyTo *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` - ReplyType *DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` - UserID *string `json:"userId,omitempty" url:"userId,omitempty"` - GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` - CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` - Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` - Color *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor `json:"color" url:"color"` - Opacity float64 `json:"opacity" url:"opacity"` - QuadPoints []*DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem `json:"quadPoints" url:"quadPoints"` +type DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo struct { + Kind string + ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber + Nm *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm + Index *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` + rawJSON json.RawMessage +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo) GetKind() string { + if d == nil { + return "" + } + return d.Kind } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetRef() *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber { if d == nil { return nil } - return d.Ref + return d.ObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo) GetNm() *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm { if d == nil { - return 0 + return nil } - return d.PageObjectNumber + return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetIndex() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex { if d == nil { - return 0 + return nil } return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetIdentityQuality() DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQuality { - if d == nil { - return "" +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` } - return d.IdentityQuality + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value + } + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetNm() *string { - if d == nil { - return nil +func (d DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err } - return d.Nm + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Nm != nil { + return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + } + if d.Index != nil { + return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetFlags() *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags { - if d == nil { - return nil - } - return d.Flags +type DocAnnotationsList200ResponseAnnotationsItemStampInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber) error + VisitNm(*DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm) error + VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex) error } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetRect() *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemStampInReplyToVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) } - return d.Rect + if d.Nm != nil { + return visitor.VisitNm(d.Nm) + } + if d.Index != nil { + return visitor.VisitIndex(d.Index) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetContents() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo) validate() error { if d == nil { - return nil + return fmt.Errorf("type %T is nil", d) } - return d.Contents + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Nm != nil { + fields = append(fields, "nm") + } + if d.Index != nil { + fields = append(fields, "index") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetSubject() *string { +var ( + docAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexFieldRevision = big.NewInt(1 << 2) +) + +type DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision `json:"revision" url:"revision"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex) GetPageObjectNumber() int { if d == nil { - return nil + return 0 } - return d.Subject + return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetAuthor() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex) GetIndex() int { if d == nil { - return nil + return 0 } - return d.Author + return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetCreated() *time.Time { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision { if d == nil { return nil } - return d.Created + return d.Revision } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetModified() *time.Time { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.Modified + return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetBlendMode() DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode { - if d == nil { - return "" +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.BlendMode + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetInReplyTo() *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo { - if d == nil { - return nil - } - return d.InReplyTo +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexFieldPageObjectNumber) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetReplyType() *DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyType { - if d == nil { - return nil - } - return d.ReplyType +// SetIndex sets the Index field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexFieldIndex) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetUserID() *string { - if d == nil { - return nil - } - return d.UserID +// SetRevision sets the Revision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision) { + d.Revision = revision + d.require(docAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexFieldRevision) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetGroupID() *string { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - return d.GroupID + *d = DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetCreatedBy() *string { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return d.CreatedBy + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetUpdatedBy() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex) String() string { if d == nil { - return nil + return "" } - return d.UpdatedBy + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetActions() *PdfAnnotationActions { - if d == nil { - return nil - } - return d.Actions +var ( + docAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +type DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetColor() *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision) GetDocSessionID() string { if d == nil { - return nil + return "" } - return d.Color + return d.DocSessionID } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetOpacity() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } - return d.Opacity + return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetQuadPoints() []*DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision) GetGeneration() int { if d == nil { - return nil + return 0 } - return d.QuadPoints + return d.Generation } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetRef sets the Ref field and marks it as non-optional; +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetRef(ref *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef) { - d.Ref = ref - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldRef) +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevisionFieldDocSessionID) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevisionFieldPageObjectNumber) } -// SetIndex sets the Index field and marks it as non-optional; +// SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldIndex) +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevisionFieldGeneration) } -// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetIdentityQuality(identityQuality DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQuality) { - d.IdentityQuality = identityQuality - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldIdentityQuality) +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -// SetNm sets the Nm field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetNm(nm *string) { - d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldNm) +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -// SetFlags sets the Flags field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetFlags(flags *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) { - d.Flags = flags - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldFlags) +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -// SetRect sets the Rect field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetRect(rect *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect) { - d.Rect = rect - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldRect) +var ( + docAnnotationsList200ResponseAnnotationsItemStampInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemStampInReplyToNmFieldNm = big.NewInt(1 << 1) +) + +type DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -// SetContents sets the Contents field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetContents(contents *string) { - d.Contents = contents - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldContents) +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber } -// SetSubject sets the Subject field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetSubject(subject *string) { - d.Subject = subject - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldSubject) +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm } -// SetAuthor sets the Author field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetAuthor(author *string) { - d.Author = author - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldAuthor) +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties } -// SetCreated sets the Created field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetCreated(created *time.Time) { - d.Created = created - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldCreated) +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) } -// SetModified sets the Modified field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetModified(modified *time.Time) { - d.Modified = modified - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldModified) +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemStampInReplyToNmFieldPageObjectNumber) } -// SetBlendMode sets the BlendMode field and marks it as non-optional; +// SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetBlendMode(blendMode DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode) { - d.BlendMode = blendMode - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldBlendMode) -} - -// SetInReplyTo sets the InReplyTo field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetInReplyTo(inReplyTo *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo) { - d.InReplyTo = inReplyTo - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldInReplyTo) -} - -// SetReplyType sets the ReplyType field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetReplyType(replyType *DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyType) { - d.ReplyType = replyType - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldReplyType) -} - -// SetUserID sets the UserID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetUserID(userID *string) { - d.UserID = userID - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldUserID) -} - -// SetGroupID sets the GroupID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetGroupID(groupID *string) { - d.GroupID = groupID - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldGroupID) -} - -// SetCreatedBy sets the CreatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetCreatedBy(createdBy *string) { - d.CreatedBy = createdBy - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldCreatedBy) -} - -// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetUpdatedBy(updatedBy *string) { - d.UpdatedBy = updatedBy - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldUpdatedBy) -} - -// SetActions sets the Actions field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetActions(actions *PdfAnnotationActions) { - d.Actions = actions - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldActions) -} - -// SetColor sets the Color field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetColor(color *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor) { - d.Color = color - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldColor) -} - -// SetOpacity sets the Opacity field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetOpacity(opacity float64) { - d.Opacity = opacity - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldOpacity) -} - -// SetQuadPoints sets the QuadPoints field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetQuadPoints(quadPoints []*DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem) { - d.QuadPoints = quadPoints - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldQuadPoints) +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsList200ResponseAnnotationsItemStampInReplyToNmFieldNm) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) UnmarshalJSON(data []byte) error { - type embed DocAnnotationsList200ResponseAnnotationsItemUnderline - var unmarshaler = struct { - embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` - }{ - embed: embed(*d), - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemUnderline(unmarshaler.embed) - d.Created = unmarshaler.Created.TimePtr() - d.Modified = unmarshaler.Modified.TimePtr() + *d = DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -50216,22 +51533,18 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) UnmarshalJSON(da return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemUnderline +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm var marshaler = struct { embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), - Created: internal.NewOptionalDateTime(d.Created), - Modified: internal.NewOptionalDateTime(d.Modified), + embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm) String() string { if d == nil { return "" } @@ -50246,80 +51559,14 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) String() string return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode string - -const ( - DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeNormal DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode = "normal" - DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeMultiply DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode = "multiply" - DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeScreen DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode = "screen" - DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeOverlay DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode = "overlay" - DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeDarken DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode = "darken" - DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeLighten DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode = "lighten" - DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeColorDodge DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode = "color-dodge" - DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeColorBurn DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode = "color-burn" - DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeHardLight DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode = "hard-light" - DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeSoftLight DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode = "soft-light" - DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeDifference DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode = "difference" - DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeExclusion DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode = "exclusion" - DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeHue DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode = "hue" - DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeSaturation DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode = "saturation" - DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeColor DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode = "color" - DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeLuminosity DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode = "luminosity" -) - -func NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode, error) { - switch s { - case "normal": - return DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeNormal, nil - case "multiply": - return DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeMultiply, nil - case "screen": - return DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeScreen, nil - case "overlay": - return DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeOverlay, nil - case "darken": - return DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeDarken, nil - case "lighten": - return DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeLighten, nil - case "color-dodge": - return DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeColorDodge, nil - case "color-burn": - return DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeColorBurn, nil - case "hard-light": - return DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeHardLight, nil - case "soft-light": - return DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeSoftLight, nil - case "difference": - return DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeDifference, nil - case "exclusion": - return DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeExclusion, nil - case "hue": - return DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeHue, nil - case "saturation": - return DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeSaturation, nil - case "color": - return DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeColor, nil - case "luminosity": - return DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeLuminosity, nil - } - var t DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode) Ptr() *DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode { - return &d -} - var ( - docAnnotationsList200ResponseAnnotationsItemUnderlineColorFieldR = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemUnderlineColorFieldG = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemUnderlineColorFieldB = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemUnderlineColor struct { - R int `json:"r" url:"r"` - G int `json:"g" url:"g"` - B int `json:"b" url:"b"` +type DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -50328,69 +51575,55 @@ type DocAnnotationsList200ResponseAnnotationsItemUnderlineColor struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor) GetR() int { - if d == nil { - return 0 - } - return d.R -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor) GetG() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } - return d.G + return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor) GetB() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } - return d.B + return d.AnnotObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetR sets the R field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor) SetR(r int) { - d.R = r - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineColorFieldR) -} - -// SetG sets the G field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor) SetG(g int) { - d.G = g - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineColorFieldG) +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumberFieldPageObjectNumber) } -// SetB sets the B field and marks it as non-optional; +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor) SetB(b int) { - d.B = b - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineColorFieldB) +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnderlineColor +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemUnderlineColor(value) + *d = DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -50400,8 +51633,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor) UnmarshalJS return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemUnderlineColor +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber var marshaler = struct { embed }{ @@ -50411,7 +51644,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor) MarshalJSON return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber) String() string { if d == nil { return "" } @@ -50427,29 +51660,17 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor) String() st } var ( - docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldInvisible = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldHidden = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldPrint = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldNoZoom = big.NewInt(1 << 3) - docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldNoRotate = big.NewInt(1 << 4) - docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldNoView = big.NewInt(1 << 5) - docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldReadOnly = big.NewInt(1 << 6) - docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldLocked = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldToggleNoView = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldLockedContents = big.NewInt(1 << 9) + docAnnotationsList200ResponseAnnotationsItemStampRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemStampRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemStampRectFieldRight = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemStampRectFieldTop = big.NewInt(1 << 3) ) -type DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags struct { - Invisible bool `json:"invisible" url:"invisible"` - Hidden bool `json:"hidden" url:"hidden"` - Print bool `json:"print" url:"print"` - NoZoom bool `json:"noZoom" url:"noZoom"` - NoRotate bool `json:"noRotate" url:"noRotate"` - NoView bool `json:"noView" url:"noView"` - ReadOnly bool `json:"readOnly" url:"readOnly"` - Locked bool `json:"locked" url:"locked"` - ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` - LockedContents bool `json:"lockedContents" url:"lockedContents"` +type DocAnnotationsList200ResponseAnnotationsItemStampRect struct { + Left float64 `json:"left" url:"left"` + Bottom float64 `json:"bottom" url:"bottom"` + Right float64 `json:"right" url:"right"` + Top float64 `json:"top" url:"top"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -50458,167 +51679,83 @@ type DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) GetInvisible() bool { - if d == nil { - return false - } - return d.Invisible -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) GetHidden() bool { - if d == nil { - return false - } - return d.Hidden -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) GetPrint() bool { - if d == nil { - return false - } - return d.Print -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) GetNoZoom() bool { - if d == nil { - return false - } - return d.NoZoom -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) GetNoRotate() bool { - if d == nil { - return false - } - return d.NoRotate -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) GetNoView() bool { - if d == nil { - return false - } - return d.NoView -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) GetReadOnly() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRect) GetLeft() float64 { if d == nil { - return false + return 0 } - return d.ReadOnly + return d.Left } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) GetLocked() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRect) GetBottom() float64 { if d == nil { - return false + return 0 } - return d.Locked + return d.Bottom } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) GetToggleNoView() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRect) GetRight() float64 { if d == nil { - return false + return 0 } - return d.ToggleNoView + return d.Right } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) GetLockedContents() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRect) GetTop() float64 { if d == nil { - return false + return 0 } - return d.LockedContents + return d.Top } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRect) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRect) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetInvisible sets the Invisible field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) SetInvisible(invisible bool) { - d.Invisible = invisible - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldInvisible) -} - -// SetHidden sets the Hidden field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) SetHidden(hidden bool) { - d.Hidden = hidden - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldHidden) -} - -// SetPrint sets the Print field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) SetPrint(print bool) { - d.Print = print - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldPrint) -} - -// SetNoZoom sets the NoZoom field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) SetNoZoom(noZoom bool) { - d.NoZoom = noZoom - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldNoZoom) -} - -// SetNoRotate sets the NoRotate field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) SetNoRotate(noRotate bool) { - d.NoRotate = noRotate - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldNoRotate) -} - -// SetNoView sets the NoView field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) SetNoView(noView bool) { - d.NoView = noView - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldNoView) -} - -// SetReadOnly sets the ReadOnly field and marks it as non-optional; +// SetLeft sets the Left field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) SetReadOnly(readOnly bool) { - d.ReadOnly = readOnly - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldReadOnly) +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRect) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsList200ResponseAnnotationsItemStampRectFieldLeft) } -// SetLocked sets the Locked field and marks it as non-optional; +// SetBottom sets the Bottom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) SetLocked(locked bool) { - d.Locked = locked - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldLocked) +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRect) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsList200ResponseAnnotationsItemStampRectFieldBottom) } -// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// SetRight sets the Right field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) SetToggleNoView(toggleNoView bool) { - d.ToggleNoView = toggleNoView - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldToggleNoView) +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRect) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsList200ResponseAnnotationsItemStampRectFieldRight) } -// SetLockedContents sets the LockedContents field and marks it as non-optional; +// SetTop sets the Top field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) SetLockedContents(lockedContents bool) { - d.LockedContents = lockedContents - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldLockedContents) +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsList200ResponseAnnotationsItemStampRectFieldTop) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStampRect var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(value) + *d = DocAnnotationsList200ResponseAnnotationsItemStampRect(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -50628,8 +51765,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) UnmarshalJS return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemStampRect var marshaler = struct { embed }{ @@ -50639,7 +51776,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) MarshalJSON return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRect) String() string { if d == nil { return "" } @@ -50654,66 +51791,44 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) String() st return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQuality string - -const ( - DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQualityDurable DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQuality = "durable" - DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQualityWeak DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQuality = "weak" -) - -func NewDocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQualityFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQuality, error) { - switch s { - case "durable": - return DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQualityDurable, nil - case "weak": - return DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQualityWeak, nil - } - var t DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQuality - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQuality) Ptr() *DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQuality { - return &d -} - -type DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo struct { +type DocAnnotationsList200ResponseAnnotationsItemStampRef struct { Kind string - ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber - Nm *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm - Index *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex + ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber + Nm *DocAnnotationsList200ResponseAnnotationsItemStampRefNm + Index *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo) GetKind() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRef) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRef) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber { if d == nil { return nil } return d.ObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo) GetNm() *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRef) GetNm() *DocAnnotationsList200ResponseAnnotationsItemStampRefNm { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRef) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex { if d == nil { return nil } return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo) UnmarshalJSON(data []byte) error { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRef) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -50726,19 +51841,19 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo) Unmarsh } switch unmarshaler.Kind { case "objectNumber": - value := new(DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber) + value := new(DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber) if err := json.Unmarshal(data, &value); err != nil { return err } d.ObjectNumber = value case "nm": - value := new(DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm) + value := new(DocAnnotationsList200ResponseAnnotationsItemStampRefNm) if err := json.Unmarshal(data, &value); err != nil { return err } d.Nm = value case "index": - value := new(DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex) + value := new(DocAnnotationsList200ResponseAnnotationsItemStampRefIndex) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -50748,7 +51863,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo) Unmarsh return nil } -func (d DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsList200ResponseAnnotationsItemStampRef) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -50767,13 +51882,13 @@ func (d DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo) MarshalJ return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToVisitor interface { - VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber) error - VisitNm(*DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm) error - VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex) error +type DocAnnotationsList200ResponseAnnotationsItemStampRefVisitor interface { + VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber) error + VisitNm(*DocAnnotationsList200ResponseAnnotationsItemStampRefNm) error + VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemStampRefIndex) error } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToVisitor) error { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRef) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemStampRefVisitor) error { if d.ObjectNumber != nil { return visitor.VisitObjectNumber(d.ObjectNumber) } @@ -50786,7 +51901,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo) Accept( return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo) validate() error { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRef) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -50827,15 +51942,15 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo) validat } var ( - docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemStampRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemStampRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemStampRefIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsList200ResponseAnnotationsItemStampRefIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -50844,35 +51959,35 @@ type DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex struct rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex) GetIndex() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision { if d == nil { return nil } return d.Revision } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -50881,32 +51996,32 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex) re // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemStampRefIndexFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex) SetIndex(index int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex) SetIndex(index int) { d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexFieldIndex) + d.require(docAnnotationsList200ResponseAnnotationsItemStampRefIndexFieldIndex) } // SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision) { d.Revision = revision - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexFieldRevision) + d.require(docAnnotationsList200ResponseAnnotationsItemStampRefIndexFieldRevision) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStampRefIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex(value) + *d = DocAnnotationsList200ResponseAnnotationsItemStampRefIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -50916,8 +52031,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex) Un return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemStampRefIndex var marshaler = struct { embed }{ @@ -50927,7 +52042,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex) Ma return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex) String() string { if d == nil { return "" } @@ -50943,12 +52058,12 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex) St } var ( - docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemStampRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemStampRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemStampRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision struct { +type DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision struct { DocSessionID string `json:"docSessionId" url:"docSessionId"` PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Generation int `json:"generation" url:"generation"` @@ -50960,35 +52075,35 @@ type DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision) GetDocSessionID() string { if d == nil { return "" } return d.DocSessionID } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision) GetGeneration() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision) GetGeneration() int { if d == nil { return 0 } return d.Generation } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -50997,32 +52112,32 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevi // SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision) SetDocSessionID(docSessionID string) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision) SetDocSessionID(docSessionID string) { d.DocSessionID = docSessionID - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevisionFieldDocSessionID) + d.require(docAnnotationsList200ResponseAnnotationsItemStampRefIndexRevisionFieldDocSessionID) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevisionFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemStampRefIndexRevisionFieldPageObjectNumber) } // SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision) SetGeneration(generation int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision) SetGeneration(generation int) { d.Generation = generation - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevisionFieldGeneration) + d.require(docAnnotationsList200ResponseAnnotationsItemStampRefIndexRevisionFieldGeneration) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision(value) + *d = DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -51032,8 +52147,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevi return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision var marshaler = struct { embed }{ @@ -51043,7 +52158,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevi return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision) String() string { if d == nil { return "" } @@ -51059,11 +52174,11 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevi } var ( - docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNmFieldNm = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemStampRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemStampRefNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm struct { +type DocAnnotationsList200ResponseAnnotationsItemStampRefNm struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Nm string `json:"nm" url:"nm"` @@ -51074,28 +52189,28 @@ type DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefNm) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm) GetNm() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefNm) GetNm() string { if d == nil { return "" } return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -51104,25 +52219,25 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm) requi // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefNm) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNmFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemStampRefNmFieldPageObjectNumber) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm) SetNm(nm string) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefNm) SetNm(nm string) { d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNmFieldNm) + d.require(docAnnotationsList200ResponseAnnotationsItemStampRefNmFieldNm) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStampRefNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm(value) + *d = DocAnnotationsList200ResponseAnnotationsItemStampRefNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -51132,8 +52247,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm) Unmar return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemStampRefNm var marshaler = struct { embed }{ @@ -51143,7 +52258,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm) Marsh return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefNm) String() string { if d == nil { return "" } @@ -51159,11 +52274,11 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm) Strin } var ( - docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemStampRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemStampRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber struct { +type DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` @@ -51174,28 +52289,28 @@ type DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } return d.AnnotObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -51204,25 +52319,25 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNum // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumberFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemStampRefObjectNumberFieldPageObjectNumber) } // SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumberFieldAnnotObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemStampRefObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber(value) + *d = DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -51232,8 +52347,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNum return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber var marshaler = struct { embed }{ @@ -51243,7 +52358,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNum return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber) String() string { if d == nil { return "" } @@ -51258,18 +52373,40 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNum return fmt.Sprintf("%#v", d) } +type DocAnnotationsList200ResponseAnnotationsItemStampReplyType string + +const ( + DocAnnotationsList200ResponseAnnotationsItemStampReplyTypeReply DocAnnotationsList200ResponseAnnotationsItemStampReplyType = "reply" + DocAnnotationsList200ResponseAnnotationsItemStampReplyTypeGroup DocAnnotationsList200ResponseAnnotationsItemStampReplyType = "group" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemStampReplyTypeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemStampReplyType, error) { + switch s { + case "reply": + return DocAnnotationsList200ResponseAnnotationsItemStampReplyTypeReply, nil + case "group": + return DocAnnotationsList200ResponseAnnotationsItemStampReplyTypeGroup, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemStampReplyType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemStampReplyType) Ptr() *DocAnnotationsList200ResponseAnnotationsItemStampReplyType { + return &d +} + var ( - docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemFieldP1 = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemFieldP2 = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemFieldP3 = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemFieldP4 = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemStampUnrotatedRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemStampUnrotatedRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemStampUnrotatedRectFieldRight = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemStampUnrotatedRectFieldTop = big.NewInt(1 << 3) ) -type DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem struct { - P1 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1 `json:"p1" url:"p1"` - P2 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2 `json:"p2" url:"p2"` - P3 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3 `json:"p3" url:"p3"` - P4 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4 `json:"p4" url:"p4"` +type DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect struct { + Left float64 `json:"left" url:"left"` + Bottom float64 `json:"bottom" url:"bottom"` + Right float64 `json:"right" url:"right"` + Top float64 `json:"top" url:"top"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -51278,83 +52415,83 @@ type DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem struct rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem) GetP1() *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1 { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect) GetLeft() float64 { if d == nil { - return nil + return 0 } - return d.P1 + return d.Left } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem) GetP2() *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2 { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect) GetBottom() float64 { if d == nil { - return nil + return 0 } - return d.P2 + return d.Bottom } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem) GetP3() *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3 { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect) GetRight() float64 { if d == nil { - return nil + return 0 } - return d.P3 + return d.Right } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem) GetP4() *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4 { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect) GetTop() float64 { if d == nil { - return nil + return 0 } - return d.P4 + return d.Top } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetP1 sets the P1 field and marks it as non-optional; +// SetLeft sets the Left field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem) SetP1(p1 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1) { - d.P1 = p1 - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemFieldP1) +func (d *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsList200ResponseAnnotationsItemStampUnrotatedRectFieldLeft) } -// SetP2 sets the P2 field and marks it as non-optional; +// SetBottom sets the Bottom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem) SetP2(p2 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2) { - d.P2 = p2 - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemFieldP2) +func (d *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsList200ResponseAnnotationsItemStampUnrotatedRectFieldBottom) } -// SetP3 sets the P3 field and marks it as non-optional; +// SetRight sets the Right field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem) SetP3(p3 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3) { - d.P3 = p3 - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemFieldP3) +func (d *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsList200ResponseAnnotationsItemStampUnrotatedRectFieldRight) } -// SetP4 sets the P4 field and marks it as non-optional; +// SetTop sets the Top field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem) SetP4(p4 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4) { - d.P4 = p4 - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemFieldP4) +func (d *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsList200ResponseAnnotationsItemStampUnrotatedRectFieldTop) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem +func (d *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem(value) + *d = DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -51364,8 +52501,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem) Un return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem +func (d *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect var marshaler = struct { embed }{ @@ -51375,7 +52512,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem) Ma return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect) String() string { if d == nil { return "" } @@ -51391,13 +52528,57 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem) St } var ( - docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1FieldX = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1FieldY = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldRef = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldIndex = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldIdentityQuality = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldNm = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldFlags = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldRect = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldContents = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldSubject = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldAuthor = big.NewInt(1 << 9) + docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldCreated = big.NewInt(1 << 10) + docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldModified = big.NewInt(1 << 11) + docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldBlendMode = big.NewInt(1 << 12) + docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldInReplyTo = big.NewInt(1 << 13) + docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldReplyType = big.NewInt(1 << 14) + docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldUserID = big.NewInt(1 << 15) + docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldGroupID = big.NewInt(1 << 16) + docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldCreatedBy = big.NewInt(1 << 17) + docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldUpdatedBy = big.NewInt(1 << 18) + docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldActions = big.NewInt(1 << 19) + docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldColor = big.NewInt(1 << 20) + docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldOpacity = big.NewInt(1 << 21) + docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldQuadPoints = big.NewInt(1 << 22) + docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldIntent = big.NewInt(1 << 23) ) -type DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` +type DocAnnotationsList200ResponseAnnotationsItemStrikeout struct { + Ref *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef `json:"ref" url:"ref"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + IdentityQuality DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQuality `json:"identityQuality" url:"identityQuality"` + Nm *string `json:"nm,omitempty" url:"nm,omitempty"` + Flags *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags `json:"flags" url:"flags"` + Rect *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect `json:"rect" url:"rect"` + Contents *string `json:"contents,omitempty" url:"contents,omitempty"` + Subject *string `json:"subject,omitempty" url:"subject,omitempty"` + Author *string `json:"author,omitempty" url:"author,omitempty"` + Created *time.Time `json:"created,omitempty" url:"created,omitempty"` + Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` + BlendMode DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode `json:"blendMode" url:"blendMode"` + InReplyTo *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` + ReplyType *DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` + UserID *string `json:"userId,omitempty" url:"userId,omitempty"` + GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` + CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` + Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` + Color *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor `json:"color" url:"color"` + Opacity float64 `json:"opacity" url:"opacity"` + QuadPoints []*DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem `json:"quadPoints" url:"quadPoints"` + Intent *DocAnnotationsList200ResponseAnnotationsItemStrikeoutIntent `json:"intent,omitempty" url:"intent,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -51406,355 +52587,371 @@ type DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1 struc rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1) GetX() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetRef() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef { if d == nil { - return 0 + return nil } - return d.X + return d.Ref } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1) GetY() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetPageObjectNumber() int { if d == nil { return 0 } - return d.Y + return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetIndex() int { if d == nil { - return nil + return 0 } - return d.extraProperties + return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetIdentityQuality() DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQuality { + if d == nil { + return "" } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetX sets the X field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1) SetX(x float64) { - d.X = x - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1FieldX) -} - -// SetY sets the Y field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1) SetY(y float64) { - d.Y = y - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1FieldY) + return d.IdentityQuality } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1 - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetNm() *string { + if d == nil { + return nil } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil + return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1 - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetFlags() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags { + if d == nil { + return nil } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return d.Flags } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetRect() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect { if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value + return nil } - return fmt.Sprintf("%#v", d) -} - -var ( - docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2FieldX = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2FieldY = big.NewInt(1 << 1) -) - -type DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage + return d.Rect } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2) GetX() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetContents() *string { if d == nil { - return 0 + return nil } - return d.X + return d.Contents } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2) GetY() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetSubject() *string { if d == nil { - return 0 + return nil } - return d.Y + return d.Subject } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetAuthor() *string { if d == nil { return nil } - return d.extraProperties + return d.Author } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetCreated() *time.Time { + if d == nil { + return nil } - d.explicitFields.Or(d.explicitFields, field) + return d.Created } -// SetX sets the X field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2) SetX(x float64) { - d.X = x - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2FieldX) +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetModified() *time.Time { + if d == nil { + return nil + } + return d.Modified } -// SetY sets the Y field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2) SetY(y float64) { - d.Y = y - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2FieldY) +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetBlendMode() DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode { + if d == nil { + return "" + } + return d.BlendMode } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2 - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetInReplyTo() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo { + if d == nil { + return nil } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil + return d.InReplyTo } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2 - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetReplyType() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyType { + if d == nil { + return nil } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return d.ReplyType } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetUserID() *string { if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value + return nil } - return fmt.Sprintf("%#v", d) + return d.UserID } -var ( - docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3FieldX = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3FieldY = big.NewInt(1 << 1) -) - -type DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetGroupID() *string { + if d == nil { + return nil + } + return d.GroupID } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3) GetX() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetCreatedBy() *string { if d == nil { - return 0 + return nil } - return d.X + return d.CreatedBy } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3) GetY() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetUpdatedBy() *string { if d == nil { - return 0 + return nil } - return d.Y + return d.UpdatedBy } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetActions() *PdfAnnotationActions { if d == nil { return nil } - return d.extraProperties + return d.Actions } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetColor() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor { + if d == nil { + return nil + } + return d.Color +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetOpacity() float64 { + if d == nil { + return 0 + } + return d.Opacity +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetQuadPoints() []*DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem { + if d == nil { + return nil + } + return d.QuadPoints +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetIntent() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutIntent { + if d == nil { + return nil + } + return d.Intent +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetX sets the X field and marks it as non-optional; +// SetRef sets the Ref field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3) SetX(x float64) { - d.X = x - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3FieldX) +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetRef(ref *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef) { + d.Ref = ref + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldRef) } -// SetY sets the Y field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3) SetY(y float64) { - d.Y = y - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3FieldY) +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldPageObjectNumber) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3 - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil +// SetIndex sets the Index field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldIndex) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3 - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) +// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetIdentityQuality(identityQuality DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQuality) { + d.IdentityQuality = identityQuality + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldIdentityQuality) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetNm(nm *string) { + d.Nm = nm + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldNm) } -var ( - docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4FieldX = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4FieldY = big.NewInt(1 << 1) -) +// SetFlags sets the Flags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetFlags(flags *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) { + d.Flags = flags + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldFlags) +} -type DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` +// SetRect sets the Rect field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetRect(rect *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect) { + d.Rect = rect + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldRect) +} - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +// SetContents sets the Contents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetContents(contents *string) { + d.Contents = contents + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldContents) +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +// SetSubject sets the Subject field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetSubject(subject *string) { + d.Subject = subject + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldSubject) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4) GetX() float64 { - if d == nil { - return 0 - } - return d.X +// SetAuthor sets the Author field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetAuthor(author *string) { + d.Author = author + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldAuthor) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4) GetY() float64 { - if d == nil { - return 0 - } - return d.Y +// SetCreated sets the Created field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetCreated(created *time.Time) { + d.Created = created + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldCreated) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties +// SetModified sets the Modified field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetModified(modified *time.Time) { + d.Modified = modified + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldModified) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) +// SetBlendMode sets the BlendMode field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetBlendMode(blendMode DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode) { + d.BlendMode = blendMode + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldBlendMode) } -// SetX sets the X field and marks it as non-optional; +// SetInReplyTo sets the InReplyTo field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4) SetX(x float64) { - d.X = x - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4FieldX) +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetInReplyTo(inReplyTo *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo) { + d.InReplyTo = inReplyTo + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldInReplyTo) } -// SetY sets the Y field and marks it as non-optional; +// SetReplyType sets the ReplyType field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4) SetY(y float64) { - d.Y = y - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4FieldY) +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetReplyType(replyType *DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyType) { + d.ReplyType = replyType + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldReplyType) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4 - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { +// SetUserID sets the UserID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetUserID(userID *string) { + d.UserID = userID + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldUserID) +} + +// SetGroupID sets the GroupID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetGroupID(groupID *string) { + d.GroupID = groupID + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldGroupID) +} + +// SetCreatedBy sets the CreatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetCreatedBy(createdBy *string) { + d.CreatedBy = createdBy + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldCreatedBy) +} + +// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetUpdatedBy(updatedBy *string) { + d.UpdatedBy = updatedBy + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldUpdatedBy) +} + +// SetActions sets the Actions field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetActions(actions *PdfAnnotationActions) { + d.Actions = actions + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldActions) +} + +// SetColor sets the Color field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetColor(color *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor) { + d.Color = color + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldColor) +} + +// SetOpacity sets the Opacity field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetOpacity(opacity float64) { + d.Opacity = opacity + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldOpacity) +} + +// SetQuadPoints sets the QuadPoints field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetQuadPoints(quadPoints []*DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem) { + d.QuadPoints = quadPoints + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldQuadPoints) +} + +// SetIntent sets the Intent field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) SetIntent(intent *DocAnnotationsList200ResponseAnnotationsItemStrikeoutIntent) { + d.Intent = intent + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFieldIntent) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) UnmarshalJSON(data []byte) error { + type embed DocAnnotationsList200ResponseAnnotationsItemStrikeout + var unmarshaler = struct { + embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4(value) + *d = DocAnnotationsList200ResponseAnnotationsItemStrikeout(unmarshaler.embed) + d.Created = unmarshaler.Created.TimePtr() + d.Modified = unmarshaler.Modified.TimePtr() extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -51764,18 +52961,22 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4) return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4 +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemStrikeout var marshaler = struct { embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), + embed: embed(*d), + Created: internal.NewOptionalDateTime(d.Created), + Modified: internal.NewOptionalDateTime(d.Modified), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeout) String() string { if d == nil { return "" } @@ -51790,18 +52991,80 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4) return fmt.Sprintf("%#v", d) } +type DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode string + +const ( + DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeNormal DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode = "normal" + DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeMultiply DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode = "multiply" + DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeScreen DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode = "screen" + DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeOverlay DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode = "overlay" + DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeDarken DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode = "darken" + DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeLighten DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode = "lighten" + DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeColorDodge DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode = "color-dodge" + DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeColorBurn DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode = "color-burn" + DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeHardLight DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode = "hard-light" + DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeSoftLight DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode = "soft-light" + DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeDifference DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode = "difference" + DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeExclusion DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode = "exclusion" + DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeHue DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode = "hue" + DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeSaturation DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode = "saturation" + DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeColor DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode = "color" + DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeLuminosity DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode = "luminosity" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode, error) { + switch s { + case "normal": + return DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeNormal, nil + case "multiply": + return DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeMultiply, nil + case "screen": + return DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeScreen, nil + case "overlay": + return DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeOverlay, nil + case "darken": + return DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeDarken, nil + case "lighten": + return DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeLighten, nil + case "color-dodge": + return DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeColorDodge, nil + case "color-burn": + return DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeColorBurn, nil + case "hard-light": + return DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeHardLight, nil + case "soft-light": + return DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeSoftLight, nil + case "difference": + return DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeDifference, nil + case "exclusion": + return DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeExclusion, nil + case "hue": + return DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeHue, nil + case "saturation": + return DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeSaturation, nil + case "color": + return DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeColor, nil + case "luminosity": + return DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendModeLuminosity, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode) Ptr() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode { + return &d +} + var ( - docAnnotationsList200ResponseAnnotationsItemUnderlineRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemUnderlineRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemUnderlineRectFieldRight = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemUnderlineRectFieldTop = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemStrikeoutColorFieldR = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemStrikeoutColorFieldG = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemStrikeoutColorFieldB = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemUnderlineRect struct { - Left float64 `json:"left" url:"left"` - Bottom float64 `json:"bottom" url:"bottom"` - Right float64 `json:"right" url:"right"` - Top float64 `json:"top" url:"top"` +type DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor struct { + R int `json:"r" url:"r"` + G int `json:"g" url:"g"` + B int `json:"b" url:"b"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -51810,83 +53073,69 @@ type DocAnnotationsList200ResponseAnnotationsItemUnderlineRect struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect) GetLeft() float64 { - if d == nil { - return 0 - } - return d.Left -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect) GetBottom() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor) GetR() int { if d == nil { return 0 } - return d.Bottom + return d.R } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect) GetRight() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor) GetG() int { if d == nil { return 0 } - return d.Right + return d.G } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect) GetTop() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor) GetB() int { if d == nil { return 0 } - return d.Top + return d.B } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetLeft sets the Left field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect) SetLeft(left float64) { - d.Left = left - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineRectFieldLeft) -} - -// SetBottom sets the Bottom field and marks it as non-optional; +// SetR sets the R field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineRectFieldBottom) +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor) SetR(r int) { + d.R = r + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutColorFieldR) } -// SetRight sets the Right field and marks it as non-optional; +// SetG sets the G field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect) SetRight(right float64) { - d.Right = right - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineRectFieldRight) +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor) SetG(g int) { + d.G = g + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutColorFieldG) } -// SetTop sets the Top field and marks it as non-optional; +// SetB sets the B field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineRectFieldTop) +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor) SetB(b int) { + d.B = b + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutColorFieldB) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnderlineRect +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemUnderlineRect(value) + *d = DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -51896,8 +53145,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect) UnmarshalJSO return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemUnderlineRect +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor var marshaler = struct { embed }{ @@ -51907,7 +53156,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect) MarshalJSON( return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor) String() string { if d == nil { return "" } @@ -51922,69 +53171,319 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect) String() str return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemUnderlineRef struct { - Kind string - ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber - Nm *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm - Index *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex +var ( + docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldInvisible = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldHidden = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldPrint = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldNoZoom = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldNoRotate = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldNoView = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldReadOnly = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldLocked = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldToggleNoView = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldLockedContents = big.NewInt(1 << 9) +) - rawJSON json.RawMessage +type DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags struct { + Invisible bool `json:"invisible" url:"invisible"` + Hidden bool `json:"hidden" url:"hidden"` + Print bool `json:"print" url:"print"` + NoZoom bool `json:"noZoom" url:"noZoom"` + NoRotate bool `json:"noRotate" url:"noRotate"` + NoView bool `json:"noView" url:"noView"` + ReadOnly bool `json:"readOnly" url:"readOnly"` + Locked bool `json:"locked" url:"locked"` + ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` + LockedContents bool `json:"lockedContents" url:"lockedContents"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef) GetKind() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) GetInvisible() bool { if d == nil { - return "" + return false } - return d.Kind + return d.Invisible } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) GetHidden() bool { if d == nil { - return nil + return false } - return d.ObjectNumber + return d.Hidden } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef) GetNm() *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) GetPrint() bool { if d == nil { - return nil + return false } - return d.Nm + return d.Print } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) GetNoZoom() bool { if d == nil { - return nil + return false } - return d.Index + return d.NoZoom } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) GetNoRotate() bool { + if d == nil { + return false } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) + return d.NoRotate +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) GetNoView() bool { + if d == nil { + return false } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber) + return d.NoView +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) GetReadOnly() bool { + if d == nil { + return false + } + return d.ReadOnly +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) GetLocked() bool { + if d == nil { + return false + } + return d.Locked +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) GetToggleNoView() bool { + if d == nil { + return false + } + return d.ToggleNoView +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) GetLockedContents() bool { + if d == nil { + return false + } + return d.LockedContents +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetInvisible sets the Invisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) SetInvisible(invisible bool) { + d.Invisible = invisible + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldInvisible) +} + +// SetHidden sets the Hidden field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) SetHidden(hidden bool) { + d.Hidden = hidden + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldHidden) +} + +// SetPrint sets the Print field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) SetPrint(print bool) { + d.Print = print + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldPrint) +} + +// SetNoZoom sets the NoZoom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) SetNoZoom(noZoom bool) { + d.NoZoom = noZoom + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldNoZoom) +} + +// SetNoRotate sets the NoRotate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) SetNoRotate(noRotate bool) { + d.NoRotate = noRotate + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldNoRotate) +} + +// SetNoView sets the NoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) SetNoView(noView bool) { + d.NoView = noView + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldNoView) +} + +// SetReadOnly sets the ReadOnly field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldReadOnly) +} + +// SetLocked sets the Locked field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) SetLocked(locked bool) { + d.Locked = locked + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldLocked) +} + +// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) SetToggleNoView(toggleNoView bool) { + d.ToggleNoView = toggleNoView + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldToggleNoView) +} + +// SetLockedContents sets the LockedContents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) SetLockedContents(lockedContents bool) { + d.LockedContents = lockedContents + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutFlagsFieldLockedContents) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQuality string + +const ( + DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQualityDurable DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQuality = "durable" + DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQualityWeak DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQuality = "weak" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQualityFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQuality, error) { + switch s { + case "durable": + return DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQualityDurable, nil + case "weak": + return DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQualityWeak, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQuality + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQuality) Ptr() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQuality { + return &d +} + +type DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo struct { + Kind string + ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber + Nm *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm + Index *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo) GetNm() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex { + if d == nil { + return nil + } + return d.Index +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber) if err := json.Unmarshal(data, &value); err != nil { return err } d.ObjectNumber = value case "nm": - value := new(DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm) + value := new(DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm) if err := json.Unmarshal(data, &value); err != nil { return err } d.Nm = value case "index": - value := new(DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex) + value := new(DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -51994,7 +53493,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef) UnmarshalJSON return nil } -func (d DocAnnotationsList200ResponseAnnotationsItemUnderlineRef) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -52013,13 +53512,13 @@ func (d DocAnnotationsList200ResponseAnnotationsItemUnderlineRef) MarshalJSON() return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsList200ResponseAnnotationsItemUnderlineRefVisitor interface { - VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber) error - VisitNm(*DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm) error - VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex) error +type DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber) error + VisitNm(*DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm) error + VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex) error } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemUnderlineRefVisitor) error { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToVisitor) error { if d.ObjectNumber != nil { return visitor.VisitObjectNumber(d.ObjectNumber) } @@ -52032,7 +53531,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef) Accept(visito return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef) validate() error { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -52073,15 +53572,15 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef) validate() er } var ( - docAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -52090,35 +53589,35 @@ type DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex) GetIndex() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision { if d == nil { return nil } return d.Revision } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -52127,32 +53626,32 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex) require( // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex) SetIndex(index int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex) SetIndex(index int) { d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexFieldIndex) + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexFieldIndex) } // SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision) { d.Revision = revision - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexFieldRevision) + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexFieldRevision) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex(value) + *d = DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -52162,8 +53661,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex) Unmarsha return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex var marshaler = struct { embed }{ @@ -52173,7 +53672,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex) MarshalJ return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex) String() string { if d == nil { return "" } @@ -52189,12 +53688,12 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex) String() } var ( - docAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision struct { +type DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision struct { DocSessionID string `json:"docSessionId" url:"docSessionId"` PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Generation int `json:"generation" url:"generation"` @@ -52206,35 +53705,35 @@ type DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision struc rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision) GetDocSessionID() string { if d == nil { return "" } return d.DocSessionID } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision) GetGeneration() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision) GetGeneration() int { if d == nil { return 0 } return d.Generation } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -52243,32 +53742,32 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision) // SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision) SetDocSessionID(docSessionID string) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision) SetDocSessionID(docSessionID string) { d.DocSessionID = docSessionID - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevisionFieldDocSessionID) + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevisionFieldDocSessionID) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevisionFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevisionFieldPageObjectNumber) } // SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision) SetGeneration(generation int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision) SetGeneration(generation int) { d.Generation = generation - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevisionFieldGeneration) + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevisionFieldGeneration) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision(value) + *d = DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -52278,8 +53777,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision) return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision var marshaler = struct { embed }{ @@ -52289,7 +53788,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision) String() string { if d == nil { return "" } @@ -52305,11 +53804,11 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision) } var ( - docAnnotationsList200ResponseAnnotationsItemUnderlineRefNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemUnderlineRefNmFieldNm = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm struct { +type DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Nm string `json:"nm" url:"nm"` @@ -52320,28 +53819,28 @@ type DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm) GetNm() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm) GetNm() string { if d == nil { return "" } return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -52350,25 +53849,25 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm) require(fie // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineRefNmFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNmFieldPageObjectNumber) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm) SetNm(nm string) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm) SetNm(nm string) { d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineRefNmFieldNm) + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNmFieldNm) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm(value) + *d = DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -52378,8 +53877,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm) UnmarshalJS return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm var marshaler = struct { embed }{ @@ -52389,7 +53888,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm) MarshalJSON return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm) String() string { if d == nil { return "" } @@ -52405,11 +53904,11 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm) String() st } var ( - docAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber struct { +type DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` @@ -52420,28 +53919,28 @@ type DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber struct rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } return d.AnnotObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -52450,25 +53949,25 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber) r // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumberFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumberFieldPageObjectNumber) } // SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumberFieldAnnotObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber(value) + *d = DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -52478,8 +53977,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber) U return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber var marshaler = struct { embed }{ @@ -52489,7 +53988,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber) M return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber) String() string { if d == nil { return "" } @@ -52504,76 +54003,37 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber) S return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyType string +type DocAnnotationsList200ResponseAnnotationsItemStrikeoutIntent string const ( - DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyTypeReply DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyType = "reply" - DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyTypeGroup DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyType = "group" + DocAnnotationsList200ResponseAnnotationsItemStrikeoutIntentStrikeoutTextEdit DocAnnotationsList200ResponseAnnotationsItemStrikeoutIntent = "strikeout-text-edit" ) -func NewDocAnnotationsList200ResponseAnnotationsItemUnderlineReplyTypeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyType, error) { +func NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutIntentFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemStrikeoutIntent, error) { switch s { - case "reply": - return DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyTypeReply, nil - case "group": - return DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyTypeGroup, nil + case "strikeout-text-edit": + return DocAnnotationsList200ResponseAnnotationsItemStrikeoutIntentStrikeoutTextEdit, nil } - var t DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyType + var t DocAnnotationsList200ResponseAnnotationsItemStrikeoutIntent return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyType) Ptr() *DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyType { +func (d DocAnnotationsList200ResponseAnnotationsItemStrikeoutIntent) Ptr() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutIntent { return &d } var ( - docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldRef = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldIndex = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldIdentityQuality = big.NewInt(1 << 3) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldNm = big.NewInt(1 << 4) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldFlags = big.NewInt(1 << 5) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldRect = big.NewInt(1 << 6) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldContents = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldSubject = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldAuthor = big.NewInt(1 << 9) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldCreated = big.NewInt(1 << 10) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldModified = big.NewInt(1 << 11) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldBlendMode = big.NewInt(1 << 12) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldInReplyTo = big.NewInt(1 << 13) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldReplyType = big.NewInt(1 << 14) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldUserID = big.NewInt(1 << 15) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldGroupID = big.NewInt(1 << 16) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldCreatedBy = big.NewInt(1 << 17) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldUpdatedBy = big.NewInt(1 << 18) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldActions = big.NewInt(1 << 19) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldRawSubtypeCode = big.NewInt(1 << 20) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldRawSubtypeName = big.NewInt(1 << 21) + docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemFieldP1 = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemFieldP2 = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemFieldP3 = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemFieldP4 = big.NewInt(1 << 3) ) -type DocAnnotationsList200ResponseAnnotationsItemUnsupported struct { - Ref *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef `json:"ref" url:"ref"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - IdentityQuality DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQuality `json:"identityQuality" url:"identityQuality"` - Nm *string `json:"nm,omitempty" url:"nm,omitempty"` - Flags *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags `json:"flags" url:"flags"` - Rect *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect `json:"rect" url:"rect"` - Contents *string `json:"contents,omitempty" url:"contents,omitempty"` - Subject *string `json:"subject,omitempty" url:"subject,omitempty"` - Author *string `json:"author,omitempty" url:"author,omitempty"` - Created *time.Time `json:"created,omitempty" url:"created,omitempty"` - Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` - BlendMode DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode `json:"blendMode" url:"blendMode"` - InReplyTo *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` - ReplyType *DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` - UserID *string `json:"userId,omitempty" url:"userId,omitempty"` - GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` - CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` - Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` - RawSubtypeCode int `json:"rawSubtypeCode" url:"rawSubtypeCode"` - RawSubtypeName *string `json:"rawSubtypeName,omitempty" url:"rawSubtypeName,omitempty"` +type DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem struct { + P1 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1 `json:"p1" url:"p1"` + P2 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2 `json:"p2" url:"p2"` + P3 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3 `json:"p3" url:"p3"` + P4 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4 `json:"p4" url:"p4"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -52582,343 +54042,483 @@ type DocAnnotationsList200ResponseAnnotationsItemUnsupported struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetRef() *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem) GetP1() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1 { if d == nil { return nil } - return d.Ref + return d.P1 } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem) GetP2() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2 { if d == nil { - return 0 + return nil } - return d.PageObjectNumber + return d.P2 } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetIndex() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem) GetP3() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3 { if d == nil { - return 0 + return nil } - return d.Index + return d.P3 } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetIdentityQuality() DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQuality { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem) GetP4() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4 { if d == nil { - return "" + return nil } - return d.IdentityQuality + return d.P4 } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetNm() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.Nm + return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetFlags() *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.Flags + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetRect() *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect { - if d == nil { - return nil - } - return d.Rect +// SetP1 sets the P1 field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem) SetP1(p1 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1) { + d.P1 = p1 + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemFieldP1) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetContents() *string { - if d == nil { - return nil - } - return d.Contents +// SetP2 sets the P2 field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem) SetP2(p2 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2) { + d.P2 = p2 + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemFieldP2) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetSubject() *string { - if d == nil { - return nil - } - return d.Subject +// SetP3 sets the P3 field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem) SetP3(p3 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3) { + d.P3 = p3 + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemFieldP3) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetAuthor() *string { - if d == nil { - return nil - } - return d.Author +// SetP4 sets the P4 field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem) SetP4(p4 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4) { + d.P4 = p4 + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemFieldP4) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetCreated() *time.Time { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - return d.Created + *d = DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetModified() *time.Time { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return d.Modified + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetBlendMode() DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem) String() string { if d == nil { - return "" + return "" } - return d.BlendMode + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetInReplyTo() *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo { +var ( + docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1FieldX = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1FieldY = big.NewInt(1 << 1) +) + +type DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1) GetX() float64 { if d == nil { - return nil + return 0 } - return d.InReplyTo + return d.X } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetReplyType() *DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyType { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1) GetY() float64 { if d == nil { - return nil + return 0 } - return d.ReplyType + return d.Y } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetUserID() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.UserID + return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetGroupID() *string { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.GroupID + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetCreatedBy() *string { - if d == nil { - return nil +// SetX sets the X field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1) SetX(x float64) { + d.X = x + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1FieldX) +} + +// SetY sets the Y field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1) SetY(y float64) { + d.Y = y + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1FieldY) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1 + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - return d.CreatedBy + *d = DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetUpdatedBy() *string { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1 + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return d.UpdatedBy + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetActions() *PdfAnnotationActions { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1) String() string { if d == nil { - return nil + return "" } - return d.Actions + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetRawSubtypeCode() int { +var ( + docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2FieldX = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2FieldY = big.NewInt(1 << 1) +) + +type DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2) GetX() float64 { if d == nil { return 0 } - return d.RawSubtypeCode + return d.X } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetRawSubtypeName() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2) GetY() float64 { if d == nil { - return nil + return 0 } - return d.RawSubtypeName + return d.Y } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetRef sets the Ref field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetRef(ref *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef) { - d.Ref = ref - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldRef) +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2) SetX(x float64) { + d.X = x + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2FieldX) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2) SetY(y float64) { + d.Y = y + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2FieldY) } -// SetIndex sets the Index field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldIndex) +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2 + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetIdentityQuality(identityQuality DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQuality) { - d.IdentityQuality = identityQuality - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldIdentityQuality) +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2 + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -// SetNm sets the Nm field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetNm(nm *string) { - d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldNm) +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -// SetFlags sets the Flags field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetFlags(flags *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) { - d.Flags = flags - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldFlags) +var ( + docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3FieldX = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3FieldY = big.NewInt(1 << 1) +) + +type DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -// SetRect sets the Rect field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetRect(rect *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect) { - d.Rect = rect - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldRect) +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3) GetX() float64 { + if d == nil { + return 0 + } + return d.X } -// SetContents sets the Contents field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetContents(contents *string) { - d.Contents = contents - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldContents) +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3) GetY() float64 { + if d == nil { + return 0 + } + return d.Y } -// SetSubject sets the Subject field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetSubject(subject *string) { - d.Subject = subject - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldSubject) +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties } -// SetAuthor sets the Author field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetAuthor(author *string) { - d.Author = author - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldAuthor) +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) } -// SetCreated sets the Created field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetCreated(created *time.Time) { - d.Created = created - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldCreated) +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3) SetX(x float64) { + d.X = x + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3FieldX) } -// SetModified sets the Modified field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetModified(modified *time.Time) { - d.Modified = modified - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldModified) +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3) SetY(y float64) { + d.Y = y + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3FieldY) } -// SetBlendMode sets the BlendMode field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetBlendMode(blendMode DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode) { - d.BlendMode = blendMode - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldBlendMode) +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3 + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -// SetInReplyTo sets the InReplyTo field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetInReplyTo(inReplyTo *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo) { - d.InReplyTo = inReplyTo - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldInReplyTo) +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3 + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -// SetReplyType sets the ReplyType field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetReplyType(replyType *DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyType) { - d.ReplyType = replyType - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldReplyType) +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -// SetUserID sets the UserID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetUserID(userID *string) { - d.UserID = userID - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldUserID) +var ( + docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4FieldX = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4FieldY = big.NewInt(1 << 1) +) + +type DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -// SetGroupID sets the GroupID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetGroupID(groupID *string) { - d.GroupID = groupID - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldGroupID) +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4) GetX() float64 { + if d == nil { + return 0 + } + return d.X } -// SetCreatedBy sets the CreatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetCreatedBy(createdBy *string) { - d.CreatedBy = createdBy - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldCreatedBy) +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4) GetY() float64 { + if d == nil { + return 0 + } + return d.Y } -// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetUpdatedBy(updatedBy *string) { - d.UpdatedBy = updatedBy - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldUpdatedBy) +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties } -// SetActions sets the Actions field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetActions(actions *PdfAnnotationActions) { - d.Actions = actions - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldActions) +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) } -// SetRawSubtypeCode sets the RawSubtypeCode field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetRawSubtypeCode(rawSubtypeCode int) { - d.RawSubtypeCode = rawSubtypeCode - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldRawSubtypeCode) +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4) SetX(x float64) { + d.X = x + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4FieldX) } -// SetRawSubtypeName sets the RawSubtypeName field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetRawSubtypeName(rawSubtypeName *string) { - d.RawSubtypeName = rawSubtypeName - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldRawSubtypeName) +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4) SetY(y float64) { + d.Y = y + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4FieldY) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) UnmarshalJSON(data []byte) error { - type embed DocAnnotationsList200ResponseAnnotationsItemUnsupported - var unmarshaler = struct { - embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` - }{ - embed: embed(*d), - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4 + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemUnsupported(unmarshaler.embed) - d.Created = unmarshaler.Created.TimePtr() - d.Modified = unmarshaler.Modified.TimePtr() + *d = DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -52928,22 +54528,18 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) UnmarshalJSON( return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemUnsupported +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4 var marshaler = struct { embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), - Created: internal.NewOptionalDateTime(d.Created), - Modified: internal.NewOptionalDateTime(d.Modified), + embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4) String() string { if d == nil { return "" } @@ -52958,94 +54554,18 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) String() strin return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode string - -const ( - DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeNormal DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode = "normal" - DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeMultiply DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode = "multiply" - DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeScreen DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode = "screen" - DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeOverlay DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode = "overlay" - DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeDarken DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode = "darken" - DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeLighten DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode = "lighten" - DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeColorDodge DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode = "color-dodge" - DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeColorBurn DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode = "color-burn" - DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeHardLight DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode = "hard-light" - DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeSoftLight DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode = "soft-light" - DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeDifference DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode = "difference" - DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeExclusion DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode = "exclusion" - DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeHue DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode = "hue" - DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeSaturation DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode = "saturation" - DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeColor DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode = "color" - DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeLuminosity DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode = "luminosity" -) - -func NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode, error) { - switch s { - case "normal": - return DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeNormal, nil - case "multiply": - return DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeMultiply, nil - case "screen": - return DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeScreen, nil - case "overlay": - return DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeOverlay, nil - case "darken": - return DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeDarken, nil - case "lighten": - return DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeLighten, nil - case "color-dodge": - return DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeColorDodge, nil - case "color-burn": - return DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeColorBurn, nil - case "hard-light": - return DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeHardLight, nil - case "soft-light": - return DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeSoftLight, nil - case "difference": - return DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeDifference, nil - case "exclusion": - return DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeExclusion, nil - case "hue": - return DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeHue, nil - case "saturation": - return DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeSaturation, nil - case "color": - return DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeColor, nil - case "luminosity": - return DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeLuminosity, nil - } - var t DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode) Ptr() *DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode { - return &d -} - var ( - docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldInvisible = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldHidden = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldPrint = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldNoZoom = big.NewInt(1 << 3) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldNoRotate = big.NewInt(1 << 4) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldNoView = big.NewInt(1 << 5) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldReadOnly = big.NewInt(1 << 6) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldLocked = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldToggleNoView = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldLockedContents = big.NewInt(1 << 9) + docAnnotationsList200ResponseAnnotationsItemStrikeoutRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemStrikeoutRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemStrikeoutRectFieldRight = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemStrikeoutRectFieldTop = big.NewInt(1 << 3) ) -type DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags struct { - Invisible bool `json:"invisible" url:"invisible"` - Hidden bool `json:"hidden" url:"hidden"` - Print bool `json:"print" url:"print"` - NoZoom bool `json:"noZoom" url:"noZoom"` - NoRotate bool `json:"noRotate" url:"noRotate"` - NoView bool `json:"noView" url:"noView"` - ReadOnly bool `json:"readOnly" url:"readOnly"` - Locked bool `json:"locked" url:"locked"` - ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` - LockedContents bool `json:"lockedContents" url:"lockedContents"` +type DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect struct { + Left float64 `json:"left" url:"left"` + Bottom float64 `json:"bottom" url:"bottom"` + Right float64 `json:"right" url:"right"` + Top float64 `json:"top" url:"top"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -53054,167 +54574,83 @@ type DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) GetInvisible() bool { - if d == nil { - return false - } - return d.Invisible -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) GetHidden() bool { - if d == nil { - return false - } - return d.Hidden -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) GetPrint() bool { - if d == nil { - return false - } - return d.Print -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) GetNoZoom() bool { - if d == nil { - return false - } - return d.NoZoom -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) GetNoRotate() bool { - if d == nil { - return false - } - return d.NoRotate -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) GetNoView() bool { - if d == nil { - return false - } - return d.NoView -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) GetReadOnly() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect) GetLeft() float64 { if d == nil { - return false + return 0 } - return d.ReadOnly + return d.Left } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) GetLocked() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect) GetBottom() float64 { if d == nil { - return false + return 0 } - return d.Locked + return d.Bottom } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) GetToggleNoView() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect) GetRight() float64 { if d == nil { - return false + return 0 } - return d.ToggleNoView + return d.Right } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) GetLockedContents() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect) GetTop() float64 { if d == nil { - return false + return 0 } - return d.LockedContents + return d.Top } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetInvisible sets the Invisible field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) SetInvisible(invisible bool) { - d.Invisible = invisible - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldInvisible) -} - -// SetHidden sets the Hidden field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) SetHidden(hidden bool) { - d.Hidden = hidden - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldHidden) -} - -// SetPrint sets the Print field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) SetPrint(print bool) { - d.Print = print - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldPrint) -} - -// SetNoZoom sets the NoZoom field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) SetNoZoom(noZoom bool) { - d.NoZoom = noZoom - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldNoZoom) -} - -// SetNoRotate sets the NoRotate field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) SetNoRotate(noRotate bool) { - d.NoRotate = noRotate - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldNoRotate) -} - -// SetNoView sets the NoView field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) SetNoView(noView bool) { - d.NoView = noView - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldNoView) -} - -// SetReadOnly sets the ReadOnly field and marks it as non-optional; +// SetLeft sets the Left field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) SetReadOnly(readOnly bool) { - d.ReadOnly = readOnly - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldReadOnly) +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutRectFieldLeft) } -// SetLocked sets the Locked field and marks it as non-optional; +// SetBottom sets the Bottom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) SetLocked(locked bool) { - d.Locked = locked - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldLocked) +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutRectFieldBottom) } -// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// SetRight sets the Right field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) SetToggleNoView(toggleNoView bool) { - d.ToggleNoView = toggleNoView - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldToggleNoView) +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutRectFieldRight) } -// SetLockedContents sets the LockedContents field and marks it as non-optional; +// SetTop sets the Top field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) SetLockedContents(lockedContents bool) { - d.LockedContents = lockedContents - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldLockedContents) +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutRectFieldTop) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(value) + *d = DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -53224,8 +54660,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) Unmarshal return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect var marshaler = struct { embed }{ @@ -53235,7 +54671,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) MarshalJS return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect) String() string { if d == nil { return "" } @@ -53250,66 +54686,44 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) String() return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQuality string - -const ( - DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQualityDurable DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQuality = "durable" - DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQualityWeak DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQuality = "weak" -) - -func NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQualityFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQuality, error) { - switch s { - case "durable": - return DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQualityDurable, nil - case "weak": - return DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQualityWeak, nil - } - var t DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQuality - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQuality) Ptr() *DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQuality { - return &d -} - -type DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo struct { +type DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef struct { Kind string - ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber - Nm *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm - Index *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex + ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber + Nm *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm + Index *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo) GetKind() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber { if d == nil { return nil } return d.ObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo) GetNm() *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef) GetNm() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex { if d == nil { return nil } return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo) UnmarshalJSON(data []byte) error { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -53322,19 +54736,19 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo) Unmar } switch unmarshaler.Kind { case "objectNumber": - value := new(DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber) + value := new(DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber) if err := json.Unmarshal(data, &value); err != nil { return err } d.ObjectNumber = value case "nm": - value := new(DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm) + value := new(DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm) if err := json.Unmarshal(data, &value); err != nil { return err } d.Nm = value case "index": - value := new(DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex) + value := new(DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -53344,7 +54758,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo) Unmar return nil } -func (d DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -53363,13 +54777,13 @@ func (d DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo) Marsha return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToVisitor interface { - VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber) error - VisitNm(*DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm) error - VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex) error +type DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefVisitor interface { + VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber) error + VisitNm(*DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm) error + VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex) error } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToVisitor) error { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefVisitor) error { if d.ObjectNumber != nil { return visitor.VisitObjectNumber(d.ObjectNumber) } @@ -53382,7 +54796,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo) Accep return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo) validate() error { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -53423,15 +54837,15 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo) valid } var ( - docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -53440,35 +54854,35 @@ type DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex struc rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex) GetIndex() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision { if d == nil { return nil } return d.Revision } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -53477,32 +54891,32 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex) // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex) SetIndex(index int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex) SetIndex(index int) { d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexFieldIndex) + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexFieldIndex) } // SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision) { d.Revision = revision - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexFieldRevision) + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexFieldRevision) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex(value) + *d = DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -53512,8 +54926,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex) return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex var marshaler = struct { embed }{ @@ -53523,7 +54937,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex) String() string { if d == nil { return "" } @@ -53539,12 +54953,12 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex) } var ( - docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision struct { +type DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision struct { DocSessionID string `json:"docSessionId" url:"docSessionId"` PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Generation int `json:"generation" url:"generation"` @@ -53556,35 +54970,35 @@ type DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevisi rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision) GetDocSessionID() string { if d == nil { return "" } return d.DocSessionID } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision) GetGeneration() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision) GetGeneration() int { if d == nil { return 0 } return d.Generation } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -53593,32 +55007,32 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRe // SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision) SetDocSessionID(docSessionID string) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision) SetDocSessionID(docSessionID string) { d.DocSessionID = docSessionID - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevisionFieldDocSessionID) + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevisionFieldDocSessionID) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevisionFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevisionFieldPageObjectNumber) } // SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision) SetGeneration(generation int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision) SetGeneration(generation int) { d.Generation = generation - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevisionFieldGeneration) + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevisionFieldGeneration) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision(value) + *d = DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -53628,8 +55042,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRe return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision var marshaler = struct { embed }{ @@ -53639,7 +55053,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRe return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision) String() string { if d == nil { return "" } @@ -53655,11 +55069,11 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRe } var ( - docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNmFieldNm = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemStrikeoutRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemStrikeoutRefNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm struct { +type DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Nm string `json:"nm" url:"nm"` @@ -53670,28 +55084,28 @@ type DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm) GetNm() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm) GetNm() string { if d == nil { return "" } return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -53700,25 +55114,25 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm) req // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNmFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutRefNmFieldPageObjectNumber) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm) SetNm(nm string) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm) SetNm(nm string) { d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNmFieldNm) + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutRefNmFieldNm) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm(value) + *d = DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -53728,8 +55142,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm) Unm return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm var marshaler = struct { embed }{ @@ -53739,7 +55153,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm) Mar return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm) String() string { if d == nil { return "" } @@ -53755,11 +55169,11 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm) Str } var ( - docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber struct { +type DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` @@ -53770,28 +55184,28 @@ type DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumbe rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } return d.AnnotObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -53800,25 +55214,25 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectN // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumberFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumberFieldPageObjectNumber) } // SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumberFieldAnnotObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber(value) + *d = DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -53828,8 +55242,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectN return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber var marshaler = struct { embed }{ @@ -53839,7 +55253,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectN return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber) String() string { if d == nil { return "" } @@ -53854,485 +55268,469 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectN return fmt.Sprintf("%#v", d) } -var ( - docAnnotationsList200ResponseAnnotationsItemUnsupportedRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemUnsupportedRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemUnsupportedRectFieldRight = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemUnsupportedRectFieldTop = big.NewInt(1 << 3) -) - -type DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect struct { - Left float64 `json:"left" url:"left"` - Bottom float64 `json:"bottom" url:"bottom"` - Right float64 `json:"right" url:"right"` - Top float64 `json:"top" url:"top"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage -} +type DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyType string -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect) GetLeft() float64 { - if d == nil { - return 0 - } - return d.Left -} +const ( + DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyTypeReply DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyType = "reply" + DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyTypeGroup DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyType = "group" +) -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect) GetBottom() float64 { - if d == nil { - return 0 +func NewDocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyTypeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyType, error) { + switch s { + case "reply": + return DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyTypeReply, nil + case "group": + return DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyTypeGroup, nil } - return d.Bottom + var t DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyType + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect) GetRight() float64 { - if d == nil { - return 0 - } - return d.Right +func (d DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyType) Ptr() *DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyType { + return &d } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect) GetTop() float64 { - if d == nil { - return 0 - } - return d.Top +var ( + docAnnotationsList200ResponseAnnotationsItemTextFieldRef = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemTextFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemTextFieldIndex = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemTextFieldIdentityQuality = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemTextFieldNm = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemTextFieldFlags = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemTextFieldRect = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemTextFieldContents = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemTextFieldSubject = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemTextFieldAuthor = big.NewInt(1 << 9) + docAnnotationsList200ResponseAnnotationsItemTextFieldCreated = big.NewInt(1 << 10) + docAnnotationsList200ResponseAnnotationsItemTextFieldModified = big.NewInt(1 << 11) + docAnnotationsList200ResponseAnnotationsItemTextFieldBlendMode = big.NewInt(1 << 12) + docAnnotationsList200ResponseAnnotationsItemTextFieldInReplyTo = big.NewInt(1 << 13) + docAnnotationsList200ResponseAnnotationsItemTextFieldReplyType = big.NewInt(1 << 14) + docAnnotationsList200ResponseAnnotationsItemTextFieldUserID = big.NewInt(1 << 15) + docAnnotationsList200ResponseAnnotationsItemTextFieldGroupID = big.NewInt(1 << 16) + docAnnotationsList200ResponseAnnotationsItemTextFieldCreatedBy = big.NewInt(1 << 17) + docAnnotationsList200ResponseAnnotationsItemTextFieldUpdatedBy = big.NewInt(1 << 18) + docAnnotationsList200ResponseAnnotationsItemTextFieldActions = big.NewInt(1 << 19) + docAnnotationsList200ResponseAnnotationsItemTextFieldColor = big.NewInt(1 << 20) + docAnnotationsList200ResponseAnnotationsItemTextFieldOpacity = big.NewInt(1 << 21) + docAnnotationsList200ResponseAnnotationsItemTextFieldIcon = big.NewInt(1 << 22) + docAnnotationsList200ResponseAnnotationsItemTextFieldState = big.NewInt(1 << 23) + docAnnotationsList200ResponseAnnotationsItemTextFieldStateModel = big.NewInt(1 << 24) +) + +type DocAnnotationsList200ResponseAnnotationsItemText struct { + Ref *DocAnnotationsList200ResponseAnnotationsItemTextRef `json:"ref" url:"ref"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + IdentityQuality DocAnnotationsList200ResponseAnnotationsItemTextIdentityQuality `json:"identityQuality" url:"identityQuality"` + Nm *string `json:"nm,omitempty" url:"nm,omitempty"` + Flags *DocAnnotationsList200ResponseAnnotationsItemTextFlags `json:"flags" url:"flags"` + Rect *DocAnnotationsList200ResponseAnnotationsItemTextRect `json:"rect" url:"rect"` + Contents *string `json:"contents,omitempty" url:"contents,omitempty"` + Subject *string `json:"subject,omitempty" url:"subject,omitempty"` + Author *string `json:"author,omitempty" url:"author,omitempty"` + Created *time.Time `json:"created,omitempty" url:"created,omitempty"` + Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` + BlendMode DocAnnotationsList200ResponseAnnotationsItemTextBlendMode `json:"blendMode" url:"blendMode"` + InReplyTo *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` + ReplyType *DocAnnotationsList200ResponseAnnotationsItemTextReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` + UserID *string `json:"userId,omitempty" url:"userId,omitempty"` + GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` + CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` + Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` + Color *DocAnnotationsList200ResponseAnnotationsItemTextColor `json:"color" url:"color"` + Opacity float64 `json:"opacity" url:"opacity"` + Icon DocAnnotationsList200ResponseAnnotationsItemTextIcon `json:"icon" url:"icon"` + State *string `json:"state,omitempty" url:"state,omitempty"` + StateModel *string `json:"stateModel,omitempty" url:"stateModel,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetRef() *DocAnnotationsList200ResponseAnnotationsItemTextRef { if d == nil { return nil } - return d.extraProperties + return d.Ref } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetPageObjectNumber() int { + if d == nil { + return 0 } - d.explicitFields.Or(d.explicitFields, field) + return d.PageObjectNumber } -// SetLeft sets the Left field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect) SetLeft(left float64) { - d.Left = left - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedRectFieldLeft) +func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetIndex() int { + if d == nil { + return 0 + } + return d.Index } -// SetBottom sets the Bottom field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedRectFieldBottom) +func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetIdentityQuality() DocAnnotationsList200ResponseAnnotationsItemTextIdentityQuality { + if d == nil { + return "" + } + return d.IdentityQuality } -// SetRight sets the Right field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect) SetRight(right float64) { - d.Right = right - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedRectFieldRight) +func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetNm() *string { + if d == nil { + return nil + } + return d.Nm } -// SetTop sets the Top field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedRectFieldTop) +func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetFlags() *DocAnnotationsList200ResponseAnnotationsItemTextFlags { + if d == nil { + return nil + } + return d.Flags } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err +func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetRect() *DocAnnotationsList200ResponseAnnotationsItemTextRect { + if d == nil { + return nil } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil + return d.Rect } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetContents() *string { + if d == nil { + return nil } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return d.Contents } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetSubject() *string { if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } + return nil } - if value, err := internal.StringifyJSON(d); err == nil { - return value + return d.Subject +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetAuthor() *string { + if d == nil { + return nil } - return fmt.Sprintf("%#v", d) + return d.Author } -type DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef struct { - Kind string - ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber - Nm *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm - Index *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetCreated() *time.Time { + if d == nil { + return nil + } + return d.Created +} - rawJSON json.RawMessage +func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetModified() *time.Time { + if d == nil { + return nil + } + return d.Modified } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef) GetKind() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetBlendMode() DocAnnotationsList200ResponseAnnotationsItemTextBlendMode { if d == nil { return "" } - return d.Kind + return d.BlendMode } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber { +func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetInReplyTo() *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo { if d == nil { return nil } - return d.ObjectNumber + return d.InReplyTo } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef) GetNm() *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm { +func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetReplyType() *DocAnnotationsList200ResponseAnnotationsItemTextReplyType { if d == nil { return nil } - return d.Nm + return d.ReplyType } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex { +func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetUserID() *string { if d == nil { return nil } - return d.Index + return d.UserID } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Nm = value - case "index": - value := new(DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Index = value +func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetGroupID() *string { + if d == nil { + return nil } - d.rawJSON = json.RawMessage(data) - return nil + return d.GroupID } -func (d DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Nm != nil { - return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") - } - if d.Index != nil { - return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil +func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetCreatedBy() *string { + if d == nil { + return nil } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) + return d.CreatedBy } -type DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefVisitor interface { - VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber) error - VisitNm(*DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm) error - VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex) error +func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetUpdatedBy() *string { + if d == nil { + return nil + } + return d.UpdatedBy } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) - } - if d.Nm != nil { - return visitor.VisitNm(d.Nm) - } - if d.Index != nil { - return visitor.VisitIndex(d.Index) +func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetActions() *PdfAnnotationActions { + if d == nil { + return nil } - return fmt.Errorf("type %T does not define a non-empty union type", d) + return d.Actions } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef) validate() error { +func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetColor() *DocAnnotationsList200ResponseAnnotationsItemTextColor { if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Nm != nil { - fields = append(fields, "nm") - } - if d.Index != nil { - fields = append(fields, "index") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } + return nil } - return nil + return d.Color } -var ( - docAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexFieldRevision = big.NewInt(1 << 2) -) - -type DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision `json:"revision" url:"revision"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetOpacity() float64 { + if d == nil { + return 0 + } + return d.Opacity } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetIcon() DocAnnotationsList200ResponseAnnotationsItemTextIcon { if d == nil { - return 0 + return "" } - return d.PageObjectNumber + return d.Icon } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex) GetIndex() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetState() *string { if d == nil { - return 0 + return nil } - return d.Index + return d.State } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision { +func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetStateModel() *string { if d == nil { return nil } - return d.Revision + return d.StateModel } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemText) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemText) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } +// SetRef sets the Ref field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetRef(ref *DocAnnotationsList200ResponseAnnotationsItemTextRef) { + d.Ref = ref + d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldRef) +} + // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex) SetIndex(index int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetIndex(index int) { d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexFieldIndex) + d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldIndex) } -// SetRevision sets the Revision field and marks it as non-optional; +// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision) { - d.Revision = revision - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexFieldRevision) +func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetIdentityQuality(identityQuality DocAnnotationsList200ResponseAnnotationsItemTextIdentityQuality) { + d.IdentityQuality = identityQuality + d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldIdentityQuality) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetNm(nm *string) { + d.Nm = nm + d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldNm) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) +// SetFlags sets the Flags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetFlags(flags *DocAnnotationsList200ResponseAnnotationsItemTextFlags) { + d.Flags = flags + d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldFlags) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) +// SetRect sets the Rect field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetRect(rect *DocAnnotationsList200ResponseAnnotationsItemTextRect) { + d.Rect = rect + d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldRect) } -var ( - docAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) -) - -type DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage +// SetContents sets the Contents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetContents(contents *string) { + d.Contents = contents + d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldContents) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision) GetDocSessionID() string { - if d == nil { - return "" - } - return d.DocSessionID +// SetSubject sets the Subject field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetSubject(subject *string) { + d.Subject = subject + d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldSubject) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber +// SetAuthor sets the Author field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetAuthor(author *string) { + d.Author = author + d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldAuthor) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision) GetGeneration() int { - if d == nil { - return 0 - } - return d.Generation +// SetCreated sets the Created field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetCreated(created *time.Time) { + d.Created = created + d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldCreated) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties +// SetModified sets the Modified field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetModified(modified *time.Time) { + d.Modified = modified + d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldModified) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) +// SetBlendMode sets the BlendMode field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetBlendMode(blendMode DocAnnotationsList200ResponseAnnotationsItemTextBlendMode) { + d.BlendMode = blendMode + d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldBlendMode) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// SetInReplyTo sets the InReplyTo field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevisionFieldDocSessionID) +func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetInReplyTo(inReplyTo *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo) { + d.InReplyTo = inReplyTo + d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldInReplyTo) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetReplyType sets the ReplyType field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevisionFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetReplyType(replyType *DocAnnotationsList200ResponseAnnotationsItemTextReplyType) { + d.ReplyType = replyType + d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldReplyType) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetUserID sets the UserID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevisionFieldGeneration) +func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetUserID(userID *string) { + d.UserID = userID + d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldUserID) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { +// SetGroupID sets the GroupID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetGroupID(groupID *string) { + d.GroupID = groupID + d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldGroupID) +} + +// SetCreatedBy sets the CreatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetCreatedBy(createdBy *string) { + d.CreatedBy = createdBy + d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldCreatedBy) +} + +// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetUpdatedBy(updatedBy *string) { + d.UpdatedBy = updatedBy + d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldUpdatedBy) +} + +// SetActions sets the Actions field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetActions(actions *PdfAnnotationActions) { + d.Actions = actions + d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldActions) +} + +// SetColor sets the Color field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetColor(color *DocAnnotationsList200ResponseAnnotationsItemTextColor) { + d.Color = color + d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldColor) +} + +// SetOpacity sets the Opacity field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetOpacity(opacity float64) { + d.Opacity = opacity + d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldOpacity) +} + +// SetIcon sets the Icon field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetIcon(icon DocAnnotationsList200ResponseAnnotationsItemTextIcon) { + d.Icon = icon + d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldIcon) +} + +// SetState sets the State field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetState(state *string) { + d.State = state + d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldState) +} + +// SetStateModel sets the StateModel field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemText) SetStateModel(stateModel *string) { + d.StateModel = stateModel + d.require(docAnnotationsList200ResponseAnnotationsItemTextFieldStateModel) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemText) UnmarshalJSON(data []byte) error { + type embed DocAnnotationsList200ResponseAnnotationsItemText + var unmarshaler = struct { + embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision(value) + *d = DocAnnotationsList200ResponseAnnotationsItemText(unmarshaler.embed) + d.Created = unmarshaler.Created.TimePtr() + d.Modified = unmarshaler.Modified.TimePtr() extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -54342,18 +55740,22 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemText) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemText var marshaler = struct { embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), + embed: embed(*d), + Created: internal.NewOptionalDateTime(d.Created), + Modified: internal.NewOptionalDateTime(d.Modified), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemText) String() string { if d == nil { return "" } @@ -54368,14 +55770,80 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision return fmt.Sprintf("%#v", d) } +type DocAnnotationsList200ResponseAnnotationsItemTextBlendMode string + +const ( + DocAnnotationsList200ResponseAnnotationsItemTextBlendModeNormal DocAnnotationsList200ResponseAnnotationsItemTextBlendMode = "normal" + DocAnnotationsList200ResponseAnnotationsItemTextBlendModeMultiply DocAnnotationsList200ResponseAnnotationsItemTextBlendMode = "multiply" + DocAnnotationsList200ResponseAnnotationsItemTextBlendModeScreen DocAnnotationsList200ResponseAnnotationsItemTextBlendMode = "screen" + DocAnnotationsList200ResponseAnnotationsItemTextBlendModeOverlay DocAnnotationsList200ResponseAnnotationsItemTextBlendMode = "overlay" + DocAnnotationsList200ResponseAnnotationsItemTextBlendModeDarken DocAnnotationsList200ResponseAnnotationsItemTextBlendMode = "darken" + DocAnnotationsList200ResponseAnnotationsItemTextBlendModeLighten DocAnnotationsList200ResponseAnnotationsItemTextBlendMode = "lighten" + DocAnnotationsList200ResponseAnnotationsItemTextBlendModeColorDodge DocAnnotationsList200ResponseAnnotationsItemTextBlendMode = "color-dodge" + DocAnnotationsList200ResponseAnnotationsItemTextBlendModeColorBurn DocAnnotationsList200ResponseAnnotationsItemTextBlendMode = "color-burn" + DocAnnotationsList200ResponseAnnotationsItemTextBlendModeHardLight DocAnnotationsList200ResponseAnnotationsItemTextBlendMode = "hard-light" + DocAnnotationsList200ResponseAnnotationsItemTextBlendModeSoftLight DocAnnotationsList200ResponseAnnotationsItemTextBlendMode = "soft-light" + DocAnnotationsList200ResponseAnnotationsItemTextBlendModeDifference DocAnnotationsList200ResponseAnnotationsItemTextBlendMode = "difference" + DocAnnotationsList200ResponseAnnotationsItemTextBlendModeExclusion DocAnnotationsList200ResponseAnnotationsItemTextBlendMode = "exclusion" + DocAnnotationsList200ResponseAnnotationsItemTextBlendModeHue DocAnnotationsList200ResponseAnnotationsItemTextBlendMode = "hue" + DocAnnotationsList200ResponseAnnotationsItemTextBlendModeSaturation DocAnnotationsList200ResponseAnnotationsItemTextBlendMode = "saturation" + DocAnnotationsList200ResponseAnnotationsItemTextBlendModeColor DocAnnotationsList200ResponseAnnotationsItemTextBlendMode = "color" + DocAnnotationsList200ResponseAnnotationsItemTextBlendModeLuminosity DocAnnotationsList200ResponseAnnotationsItemTextBlendMode = "luminosity" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemTextBlendModeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemTextBlendMode, error) { + switch s { + case "normal": + return DocAnnotationsList200ResponseAnnotationsItemTextBlendModeNormal, nil + case "multiply": + return DocAnnotationsList200ResponseAnnotationsItemTextBlendModeMultiply, nil + case "screen": + return DocAnnotationsList200ResponseAnnotationsItemTextBlendModeScreen, nil + case "overlay": + return DocAnnotationsList200ResponseAnnotationsItemTextBlendModeOverlay, nil + case "darken": + return DocAnnotationsList200ResponseAnnotationsItemTextBlendModeDarken, nil + case "lighten": + return DocAnnotationsList200ResponseAnnotationsItemTextBlendModeLighten, nil + case "color-dodge": + return DocAnnotationsList200ResponseAnnotationsItemTextBlendModeColorDodge, nil + case "color-burn": + return DocAnnotationsList200ResponseAnnotationsItemTextBlendModeColorBurn, nil + case "hard-light": + return DocAnnotationsList200ResponseAnnotationsItemTextBlendModeHardLight, nil + case "soft-light": + return DocAnnotationsList200ResponseAnnotationsItemTextBlendModeSoftLight, nil + case "difference": + return DocAnnotationsList200ResponseAnnotationsItemTextBlendModeDifference, nil + case "exclusion": + return DocAnnotationsList200ResponseAnnotationsItemTextBlendModeExclusion, nil + case "hue": + return DocAnnotationsList200ResponseAnnotationsItemTextBlendModeHue, nil + case "saturation": + return DocAnnotationsList200ResponseAnnotationsItemTextBlendModeSaturation, nil + case "color": + return DocAnnotationsList200ResponseAnnotationsItemTextBlendModeColor, nil + case "luminosity": + return DocAnnotationsList200ResponseAnnotationsItemTextBlendModeLuminosity, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemTextBlendMode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemTextBlendMode) Ptr() *DocAnnotationsList200ResponseAnnotationsItemTextBlendMode { + return &d +} + var ( - docAnnotationsList200ResponseAnnotationsItemUnsupportedRefNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemUnsupportedRefNmFieldNm = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemTextColorFieldR = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemTextColorFieldG = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemTextColorFieldB = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` +type DocAnnotationsList200ResponseAnnotationsItemTextColor struct { + R int `json:"r" url:"r"` + G int `json:"g" url:"g"` + B int `json:"b" url:"b"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -54384,55 +55852,69 @@ type DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextColor) GetR() int { if d == nil { return 0 } - return d.PageObjectNumber + return d.R } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm) GetNm() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextColor) GetG() int { if d == nil { - return "" + return 0 } - return d.Nm + return d.G } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextColor) GetB() int { + if d == nil { + return 0 + } + return d.B +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemTextColor) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextColor) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetR sets the R field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedRefNmFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemTextColor) SetR(r int) { + d.R = r + d.require(docAnnotationsList200ResponseAnnotationsItemTextColorFieldR) } -// SetNm sets the Nm field and marks it as non-optional; +// SetG sets the G field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedRefNmFieldNm) +func (d *DocAnnotationsList200ResponseAnnotationsItemTextColor) SetG(g int) { + d.G = g + d.require(docAnnotationsList200ResponseAnnotationsItemTextColorFieldG) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm +// SetB sets the B field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemTextColor) SetB(b int) { + d.B = b + d.require(docAnnotationsList200ResponseAnnotationsItemTextColorFieldB) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemTextColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemTextColor var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm(value) + *d = DocAnnotationsList200ResponseAnnotationsItemTextColor(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -54442,8 +55924,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm) Unmarshal return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm +func (d *DocAnnotationsList200ResponseAnnotationsItemTextColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemTextColor var marshaler = struct { embed }{ @@ -54453,7 +55935,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm) MarshalJS return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextColor) String() string { if d == nil { return "" } @@ -54469,13 +55951,29 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm) String() } var ( - docAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldInvisible = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldHidden = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldPrint = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldNoZoom = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldNoRotate = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldNoView = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldReadOnly = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldLocked = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldToggleNoView = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldLockedContents = big.NewInt(1 << 9) ) -type DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` +type DocAnnotationsList200ResponseAnnotationsItemTextFlags struct { + Invisible bool `json:"invisible" url:"invisible"` + Hidden bool `json:"hidden" url:"hidden"` + Print bool `json:"print" url:"print"` + NoZoom bool `json:"noZoom" url:"noZoom"` + NoRotate bool `json:"noRotate" url:"noRotate"` + NoView bool `json:"noView" url:"noView"` + ReadOnly bool `json:"readOnly" url:"readOnly"` + Locked bool `json:"locked" url:"locked"` + ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` + LockedContents bool `json:"lockedContents" url:"lockedContents"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -54484,55 +55982,167 @@ type DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber stru rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) GetInvisible() bool { if d == nil { - return 0 + return false } - return d.PageObjectNumber + return d.Invisible } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) GetHidden() bool { if d == nil { - return 0 + return false } - return d.AnnotObjectNumber + return d.Hidden } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) GetPrint() bool { + if d == nil { + return false + } + return d.Print +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) GetNoZoom() bool { + if d == nil { + return false + } + return d.NoZoom +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) GetNoRotate() bool { + if d == nil { + return false + } + return d.NoRotate +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) GetNoView() bool { + if d == nil { + return false + } + return d.NoView +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) GetReadOnly() bool { + if d == nil { + return false + } + return d.ReadOnly +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) GetLocked() bool { + if d == nil { + return false + } + return d.Locked +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) GetToggleNoView() bool { + if d == nil { + return false + } + return d.ToggleNoView +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) GetLockedContents() bool { + if d == nil { + return false + } + return d.LockedContents +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetInvisible sets the Invisible field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumberFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) SetInvisible(invisible bool) { + d.Invisible = invisible + d.require(docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldInvisible) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetHidden sets the Hidden field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumberFieldAnnotObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) SetHidden(hidden bool) { + d.Hidden = hidden + d.require(docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldHidden) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber +// SetPrint sets the Print field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) SetPrint(print bool) { + d.Print = print + d.require(docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldPrint) +} + +// SetNoZoom sets the NoZoom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) SetNoZoom(noZoom bool) { + d.NoZoom = noZoom + d.require(docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldNoZoom) +} + +// SetNoRotate sets the NoRotate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) SetNoRotate(noRotate bool) { + d.NoRotate = noRotate + d.require(docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldNoRotate) +} + +// SetNoView sets the NoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) SetNoView(noView bool) { + d.NoView = noView + d.require(docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldNoView) +} + +// SetReadOnly sets the ReadOnly field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + d.require(docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldReadOnly) +} + +// SetLocked sets the Locked field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) SetLocked(locked bool) { + d.Locked = locked + d.require(docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldLocked) +} + +// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) SetToggleNoView(toggleNoView bool) { + d.ToggleNoView = toggleNoView + d.require(docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldToggleNoView) +} + +// SetLockedContents sets the LockedContents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) SetLockedContents(lockedContents bool) { + d.LockedContents = lockedContents + d.require(docAnnotationsList200ResponseAnnotationsItemTextFlagsFieldLockedContents) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemTextFlags var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber(value) + *d = DocAnnotationsList200ResponseAnnotationsItemTextFlags(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -54542,8 +56152,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber) return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemTextFlags var marshaler = struct { embed }{ @@ -54553,7 +56163,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextFlags) String() string { if d == nil { return "" } @@ -54568,549 +56178,512 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber) return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyType string +type DocAnnotationsList200ResponseAnnotationsItemTextIcon string const ( - DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyTypeReply DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyType = "reply" - DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyTypeGroup DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyType = "group" + DocAnnotationsList200ResponseAnnotationsItemTextIconComment DocAnnotationsList200ResponseAnnotationsItemTextIcon = "comment" + DocAnnotationsList200ResponseAnnotationsItemTextIconKey DocAnnotationsList200ResponseAnnotationsItemTextIcon = "key" + DocAnnotationsList200ResponseAnnotationsItemTextIconNote DocAnnotationsList200ResponseAnnotationsItemTextIcon = "note" + DocAnnotationsList200ResponseAnnotationsItemTextIconHelp DocAnnotationsList200ResponseAnnotationsItemTextIcon = "help" + DocAnnotationsList200ResponseAnnotationsItemTextIconNewParagraph DocAnnotationsList200ResponseAnnotationsItemTextIcon = "new-paragraph" + DocAnnotationsList200ResponseAnnotationsItemTextIconParagraph DocAnnotationsList200ResponseAnnotationsItemTextIcon = "paragraph" + DocAnnotationsList200ResponseAnnotationsItemTextIconInsert DocAnnotationsList200ResponseAnnotationsItemTextIcon = "insert" ) -func NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyTypeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyType, error) { +func NewDocAnnotationsList200ResponseAnnotationsItemTextIconFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemTextIcon, error) { switch s { - case "reply": - return DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyTypeReply, nil - case "group": - return DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyTypeGroup, nil + case "comment": + return DocAnnotationsList200ResponseAnnotationsItemTextIconComment, nil + case "key": + return DocAnnotationsList200ResponseAnnotationsItemTextIconKey, nil + case "note": + return DocAnnotationsList200ResponseAnnotationsItemTextIconNote, nil + case "help": + return DocAnnotationsList200ResponseAnnotationsItemTextIconHelp, nil + case "new-paragraph": + return DocAnnotationsList200ResponseAnnotationsItemTextIconNewParagraph, nil + case "paragraph": + return DocAnnotationsList200ResponseAnnotationsItemTextIconParagraph, nil + case "insert": + return DocAnnotationsList200ResponseAnnotationsItemTextIconInsert, nil } - var t DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyType + var t DocAnnotationsList200ResponseAnnotationsItemTextIcon return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyType) Ptr() *DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyType { +func (d DocAnnotationsList200ResponseAnnotationsItemTextIcon) Ptr() *DocAnnotationsList200ResponseAnnotationsItemTextIcon { return &d } -var ( - docAnnotationsList200ResponseAnnotationsItemWidgetFieldRef = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldIndex = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldIdentityQuality = big.NewInt(1 << 3) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldNm = big.NewInt(1 << 4) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldFlags = big.NewInt(1 << 5) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldRect = big.NewInt(1 << 6) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldContents = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldSubject = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldAuthor = big.NewInt(1 << 9) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldCreated = big.NewInt(1 << 10) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldModified = big.NewInt(1 << 11) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldBlendMode = big.NewInt(1 << 12) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldInReplyTo = big.NewInt(1 << 13) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldReplyType = big.NewInt(1 << 14) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldUserID = big.NewInt(1 << 15) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldGroupID = big.NewInt(1 << 16) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldCreatedBy = big.NewInt(1 << 17) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldUpdatedBy = big.NewInt(1 << 18) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldActions = big.NewInt(1 << 19) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldColor = big.NewInt(1 << 20) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldInteriorColor = big.NewInt(1 << 21) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldStrokeWidth = big.NewInt(1 << 22) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldBorderStyle = big.NewInt(1 << 23) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldFontFamily = big.NewInt(1 << 24) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldFontSize = big.NewInt(1 << 25) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldFontColor = big.NewInt(1 << 26) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldTextAlign = big.NewInt(1 << 27) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldFieldObjectNumber = big.NewInt(1 << 28) - docAnnotationsList200ResponseAnnotationsItemWidgetFieldFieldFamily = big.NewInt(1 << 29) +type DocAnnotationsList200ResponseAnnotationsItemTextIdentityQuality string + +const ( + DocAnnotationsList200ResponseAnnotationsItemTextIdentityQualityDurable DocAnnotationsList200ResponseAnnotationsItemTextIdentityQuality = "durable" + DocAnnotationsList200ResponseAnnotationsItemTextIdentityQualityWeak DocAnnotationsList200ResponseAnnotationsItemTextIdentityQuality = "weak" ) -type DocAnnotationsList200ResponseAnnotationsItemWidget struct { - Ref *DocAnnotationsList200ResponseAnnotationsItemWidgetRef `json:"ref" url:"ref"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - IdentityQuality DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQuality `json:"identityQuality" url:"identityQuality"` - Nm *string `json:"nm,omitempty" url:"nm,omitempty"` - Flags *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags `json:"flags" url:"flags"` - Rect *DocAnnotationsList200ResponseAnnotationsItemWidgetRect `json:"rect" url:"rect"` - Contents *string `json:"contents,omitempty" url:"contents,omitempty"` - Subject *string `json:"subject,omitempty" url:"subject,omitempty"` - Author *string `json:"author,omitempty" url:"author,omitempty"` - Created *time.Time `json:"created,omitempty" url:"created,omitempty"` - Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` - BlendMode DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode `json:"blendMode" url:"blendMode"` - InReplyTo *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` - ReplyType *DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` - UserID *string `json:"userId,omitempty" url:"userId,omitempty"` - GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` - CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` - Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` - Color *DocAnnotationsList200ResponseAnnotationsItemWidgetColor `json:"color,omitempty" url:"color,omitempty"` - InteriorColor *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor `json:"interiorColor,omitempty" url:"interiorColor,omitempty"` - StrokeWidth float64 `json:"strokeWidth" url:"strokeWidth"` - BorderStyle DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle `json:"borderStyle" url:"borderStyle"` - FontFamily *DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily `json:"fontFamily,omitempty" url:"fontFamily,omitempty"` - FontSize *float64 `json:"fontSize,omitempty" url:"fontSize,omitempty"` - FontColor *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor `json:"fontColor,omitempty" url:"fontColor,omitempty"` - TextAlign DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign `json:"textAlign" url:"textAlign"` - FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` - FieldFamily DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily `json:"fieldFamily" url:"fieldFamily"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetRef() *DocAnnotationsList200ResponseAnnotationsItemWidgetRef { - if d == nil { - return nil +func NewDocAnnotationsList200ResponseAnnotationsItemTextIdentityQualityFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemTextIdentityQuality, error) { + switch s { + case "durable": + return DocAnnotationsList200ResponseAnnotationsItemTextIdentityQualityDurable, nil + case "weak": + return DocAnnotationsList200ResponseAnnotationsItemTextIdentityQualityWeak, nil } - return d.Ref + var t DocAnnotationsList200ResponseAnnotationsItemTextIdentityQuality + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber +func (d DocAnnotationsList200ResponseAnnotationsItemTextIdentityQuality) Ptr() *DocAnnotationsList200ResponseAnnotationsItemTextIdentityQuality { + return &d } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetIndex() int { - if d == nil { - return 0 - } - return d.Index +type DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo struct { + Kind string + ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber + Nm *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm + Index *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex + + rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetIdentityQuality() DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQuality { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo) GetKind() string { if d == nil { return "" } - return d.IdentityQuality + return d.Kind } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetNm() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber { if d == nil { return nil } - return d.Nm + return d.ObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetFlags() *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo) GetNm() *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm { if d == nil { return nil } - return d.Flags + return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetRect() *DocAnnotationsList200ResponseAnnotationsItemWidgetRect { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex { if d == nil { return nil } - return d.Rect + return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetContents() *string { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` } - return d.Contents -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetSubject() *string { - if d == nil { - return nil + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err } - return d.Subject -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetAuthor() *string { - if d == nil { - return nil + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) } - return d.Author + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value + } + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetCreated() *time.Time { - if d == nil { - return nil +func (d DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err } - return d.Created + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Nm != nil { + return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + } + if d.Index != nil { + return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetModified() *time.Time { - if d == nil { - return nil - } - return d.Modified +type DocAnnotationsList200ResponseAnnotationsItemTextInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber) error + VisitNm(*DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm) error + VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex) error } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetBlendMode() DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode { - if d == nil { - return "" +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemTextInReplyToVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) } - return d.BlendMode + if d.Nm != nil { + return visitor.VisitNm(d.Nm) + } + if d.Index != nil { + return visitor.VisitIndex(d.Index) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetInReplyTo() *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo) validate() error { if d == nil { - return nil + return fmt.Errorf("type %T is nil", d) } - return d.InReplyTo + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Nm != nil { + fields = append(fields, "nm") + } + if d.Index != nil { + fields = append(fields, "index") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetReplyType() *DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType { - if d == nil { - return nil - } - return d.ReplyType +var ( + docAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexFieldRevision = big.NewInt(1 << 2) +) + +type DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision `json:"revision" url:"revision"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetUserID() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex) GetPageObjectNumber() int { if d == nil { - return nil + return 0 } - return d.UserID + return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetGroupID() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex) GetIndex() int { if d == nil { - return nil + return 0 } - return d.GroupID + return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetCreatedBy() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision { if d == nil { return nil } - return d.CreatedBy + return d.Revision } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetUpdatedBy() *string { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.UpdatedBy + return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetActions() *PdfAnnotationActions { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.Actions + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetColor() *DocAnnotationsList200ResponseAnnotationsItemWidgetColor { - if d == nil { - return nil - } - return d.Color +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexFieldPageObjectNumber) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetInteriorColor() *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor { - if d == nil { - return nil - } - return d.InteriorColor +// SetIndex sets the Index field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexFieldIndex) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetStrokeWidth() float64 { - if d == nil { - return 0 - } - return d.StrokeWidth +// SetRevision sets the Revision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision) { + d.Revision = revision + d.require(docAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexFieldRevision) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetBorderStyle() DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle { - if d == nil { - return "" +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - return d.BorderStyle + *d = DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetFontFamily() *DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return d.FontFamily + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetFontSize() *float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex) String() string { if d == nil { - return nil + return "" } - return d.FontSize + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetFontColor() *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor { - if d == nil { - return nil - } - return d.FontColor +var ( + docAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +type DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetTextAlign() DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision) GetDocSessionID() string { if d == nil { return "" } - return d.TextAlign + return d.DocSessionID } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetFieldObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } - return d.FieldObjectNumber + return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetFieldFamily() DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision) GetGeneration() int { if d == nil { - return "" + return 0 } - return d.FieldFamily + return d.Generation } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetRef sets the Ref field and marks it as non-optional; +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetRef(ref *DocAnnotationsList200ResponseAnnotationsItemWidgetRef) { - d.Ref = ref - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldRef) +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevisionFieldDocSessionID) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevisionFieldPageObjectNumber) } -// SetIndex sets the Index field and marks it as non-optional; +// SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldIndex) +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevisionFieldGeneration) } -// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetIdentityQuality(identityQuality DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQuality) { - d.IdentityQuality = identityQuality - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldIdentityQuality) +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -// SetNm sets the Nm field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetNm(nm *string) { - d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldNm) +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -// SetFlags sets the Flags field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetFlags(flags *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) { - d.Flags = flags - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldFlags) +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -// SetRect sets the Rect field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetRect(rect *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) { - d.Rect = rect - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldRect) -} +var ( + docAnnotationsList200ResponseAnnotationsItemTextInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemTextInReplyToNmFieldNm = big.NewInt(1 << 1) +) -// SetContents sets the Contents field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetContents(contents *string) { - d.Contents = contents - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldContents) -} +type DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` -// SetSubject sets the Subject field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetSubject(subject *string) { - d.Subject = subject - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldSubject) + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -// SetAuthor sets the Author field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetAuthor(author *string) { - d.Author = author - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldAuthor) +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber } -// SetCreated sets the Created field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetCreated(created *time.Time) { - d.Created = created - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldCreated) +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm } -// SetModified sets the Modified field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetModified(modified *time.Time) { - d.Modified = modified - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldModified) +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties } -// SetBlendMode sets the BlendMode field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetBlendMode(blendMode DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode) { - d.BlendMode = blendMode - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldBlendMode) +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) } -// SetInReplyTo sets the InReplyTo field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetInReplyTo(inReplyTo *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo) { - d.InReplyTo = inReplyTo - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldInReplyTo) +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemTextInReplyToNmFieldPageObjectNumber) } -// SetReplyType sets the ReplyType field and marks it as non-optional; +// SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetReplyType(replyType *DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType) { - d.ReplyType = replyType - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldReplyType) +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsList200ResponseAnnotationsItemTextInReplyToNmFieldNm) } -// SetUserID sets the UserID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetUserID(userID *string) { - d.UserID = userID - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldUserID) -} - -// SetGroupID sets the GroupID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetGroupID(groupID *string) { - d.GroupID = groupID - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldGroupID) -} - -// SetCreatedBy sets the CreatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetCreatedBy(createdBy *string) { - d.CreatedBy = createdBy - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldCreatedBy) -} - -// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetUpdatedBy(updatedBy *string) { - d.UpdatedBy = updatedBy - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldUpdatedBy) -} - -// SetActions sets the Actions field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetActions(actions *PdfAnnotationActions) { - d.Actions = actions - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldActions) -} - -// SetColor sets the Color field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetColor(color *DocAnnotationsList200ResponseAnnotationsItemWidgetColor) { - d.Color = color - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldColor) -} - -// SetInteriorColor sets the InteriorColor field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetInteriorColor(interiorColor *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) { - d.InteriorColor = interiorColor - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldInteriorColor) -} - -// SetStrokeWidth sets the StrokeWidth field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetStrokeWidth(strokeWidth float64) { - d.StrokeWidth = strokeWidth - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldStrokeWidth) -} - -// SetBorderStyle sets the BorderStyle field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetBorderStyle(borderStyle DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle) { - d.BorderStyle = borderStyle - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldBorderStyle) -} - -// SetFontFamily sets the FontFamily field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetFontFamily(fontFamily *DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily) { - d.FontFamily = fontFamily - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldFontFamily) -} - -// SetFontSize sets the FontSize field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetFontSize(fontSize *float64) { - d.FontSize = fontSize - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldFontSize) -} - -// SetFontColor sets the FontColor field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetFontColor(fontColor *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor) { - d.FontColor = fontColor - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldFontColor) -} - -// SetTextAlign sets the TextAlign field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetTextAlign(textAlign DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign) { - d.TextAlign = textAlign - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldTextAlign) -} - -// SetFieldObjectNumber sets the FieldObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetFieldObjectNumber(fieldObjectNumber int) { - d.FieldObjectNumber = fieldObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldFieldObjectNumber) -} - -// SetFieldFamily sets the FieldFamily field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetFieldFamily(fieldFamily DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily) { - d.FieldFamily = fieldFamily - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldFieldFamily) -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) UnmarshalJSON(data []byte) error { - type embed DocAnnotationsList200ResponseAnnotationsItemWidget - var unmarshaler = struct { - embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` - }{ - embed: embed(*d), - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemWidget(unmarshaler.embed) - d.Created = unmarshaler.Created.TimePtr() - d.Modified = unmarshaler.Modified.TimePtr() + *d = DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -55120,22 +56693,18 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) UnmarshalJSON(data return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemWidget +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm var marshaler = struct { embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), - Created: internal.NewOptionalDateTime(d.Created), - Modified: internal.NewOptionalDateTime(d.Modified), + embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm) String() string { if d == nil { return "" } @@ -55150,108 +56719,14 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) String() string { return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode string - -const ( - DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeNormal DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode = "normal" - DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeMultiply DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode = "multiply" - DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeScreen DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode = "screen" - DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeOverlay DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode = "overlay" - DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeDarken DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode = "darken" - DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeLighten DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode = "lighten" - DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeColorDodge DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode = "color-dodge" - DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeColorBurn DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode = "color-burn" - DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeHardLight DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode = "hard-light" - DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeSoftLight DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode = "soft-light" - DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeDifference DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode = "difference" - DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeExclusion DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode = "exclusion" - DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeHue DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode = "hue" - DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeSaturation DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode = "saturation" - DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeColor DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode = "color" - DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeLuminosity DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode = "luminosity" -) - -func NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode, error) { - switch s { - case "normal": - return DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeNormal, nil - case "multiply": - return DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeMultiply, nil - case "screen": - return DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeScreen, nil - case "overlay": - return DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeOverlay, nil - case "darken": - return DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeDarken, nil - case "lighten": - return DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeLighten, nil - case "color-dodge": - return DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeColorDodge, nil - case "color-burn": - return DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeColorBurn, nil - case "hard-light": - return DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeHardLight, nil - case "soft-light": - return DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeSoftLight, nil - case "difference": - return DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeDifference, nil - case "exclusion": - return DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeExclusion, nil - case "hue": - return DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeHue, nil - case "saturation": - return DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeSaturation, nil - case "color": - return DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeColor, nil - case "luminosity": - return DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeLuminosity, nil - } - var t DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode) Ptr() *DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode { - return &d -} - -type DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle string - -const ( - DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyleSolid DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle = "solid" - DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyleDashed DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle = "dashed" - DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyleBeveled DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle = "beveled" - DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyleInset DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle = "inset" -) - -func NewDocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyleFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle, error) { - switch s { - case "solid": - return DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyleSolid, nil - case "dashed": - return DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyleDashed, nil - case "beveled": - return DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyleBeveled, nil - case "inset": - return DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyleInset, nil - } - var t DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle) Ptr() *DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle { - return &d -} - var ( - docAnnotationsList200ResponseAnnotationsItemWidgetColorFieldR = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemWidgetColorFieldG = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemWidgetColorFieldB = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemWidgetColor struct { - R int `json:"r" url:"r"` - G int `json:"g" url:"g"` - B int `json:"b" url:"b"` +type DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -55260,69 +56735,55 @@ type DocAnnotationsList200ResponseAnnotationsItemWidgetColor struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetColor) GetR() int { - if d == nil { - return 0 - } - return d.R -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetColor) GetG() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } - return d.G + return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetColor) GetB() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } - return d.B + return d.AnnotObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetColor) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetR sets the R field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetColor) SetR(r int) { - d.R = r - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetColorFieldR) -} - -// SetG sets the G field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetColor) SetG(g int) { - d.G = g - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetColorFieldG) +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumberFieldPageObjectNumber) } -// SetB sets the B field and marks it as non-optional; +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetColor) SetB(b int) { - d.B = b - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetColorFieldB) +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetColor +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemWidgetColor(value) + *d = DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -55332,8 +56793,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetColor) UnmarshalJSON( return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemWidgetColor +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber var marshaler = struct { embed }{ @@ -55343,7 +56804,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetColor) MarshalJSON() return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetColor) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber) String() string { if d == nil { return "" } @@ -55358,70 +56819,18 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetColor) String() strin return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily string - -const ( - DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyText DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily = "text" - DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyCheckbox DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily = "checkbox" - DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyRadio DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily = "radio" - DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyCombobox DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily = "combobox" - DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyListbox DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily = "listbox" - DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyPushbutton DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily = "pushbutton" - DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilySignature DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily = "signature" - DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyUnknown DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily = "unknown" -) - -func NewDocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily, error) { - switch s { - case "text": - return DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyText, nil - case "checkbox": - return DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyCheckbox, nil - case "radio": - return DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyRadio, nil - case "combobox": - return DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyCombobox, nil - case "listbox": - return DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyListbox, nil - case "pushbutton": - return DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyPushbutton, nil - case "signature": - return DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilySignature, nil - case "unknown": - return DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyUnknown, nil - } - var t DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily) Ptr() *DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily { - return &d -} - var ( - docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldInvisible = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldHidden = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldPrint = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldNoZoom = big.NewInt(1 << 3) - docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldNoRotate = big.NewInt(1 << 4) - docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldNoView = big.NewInt(1 << 5) - docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldReadOnly = big.NewInt(1 << 6) - docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldLocked = big.NewInt(1 << 7) - docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldToggleNoView = big.NewInt(1 << 8) - docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldLockedContents = big.NewInt(1 << 9) + docAnnotationsList200ResponseAnnotationsItemTextRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemTextRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemTextRectFieldRight = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemTextRectFieldTop = big.NewInt(1 << 3) ) -type DocAnnotationsList200ResponseAnnotationsItemWidgetFlags struct { - Invisible bool `json:"invisible" url:"invisible"` - Hidden bool `json:"hidden" url:"hidden"` - Print bool `json:"print" url:"print"` - NoZoom bool `json:"noZoom" url:"noZoom"` - NoRotate bool `json:"noRotate" url:"noRotate"` - NoView bool `json:"noView" url:"noView"` - ReadOnly bool `json:"readOnly" url:"readOnly"` - Locked bool `json:"locked" url:"locked"` - ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` - LockedContents bool `json:"lockedContents" url:"lockedContents"` +type DocAnnotationsList200ResponseAnnotationsItemTextRect struct { + Left float64 `json:"left" url:"left"` + Bottom float64 `json:"bottom" url:"bottom"` + Right float64 `json:"right" url:"right"` + Top float64 `json:"top" url:"top"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -55430,167 +56839,83 @@ type DocAnnotationsList200ResponseAnnotationsItemWidgetFlags struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) GetInvisible() bool { - if d == nil { - return false - } - return d.Invisible -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) GetHidden() bool { - if d == nil { - return false - } - return d.Hidden -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) GetPrint() bool { - if d == nil { - return false - } - return d.Print -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) GetNoZoom() bool { - if d == nil { - return false - } - return d.NoZoom -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) GetNoRotate() bool { - if d == nil { - return false - } - return d.NoRotate -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) GetNoView() bool { - if d == nil { - return false - } - return d.NoView -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) GetReadOnly() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRect) GetLeft() float64 { if d == nil { - return false + return 0 } - return d.ReadOnly + return d.Left } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) GetLocked() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRect) GetBottom() float64 { if d == nil { - return false + return 0 } - return d.Locked + return d.Bottom } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) GetToggleNoView() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRect) GetRight() float64 { if d == nil { - return false + return 0 } - return d.ToggleNoView + return d.Right } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) GetLockedContents() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRect) GetTop() float64 { if d == nil { - return false + return 0 } - return d.LockedContents + return d.Top } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRect) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRect) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetInvisible sets the Invisible field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) SetInvisible(invisible bool) { - d.Invisible = invisible - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldInvisible) -} - -// SetHidden sets the Hidden field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) SetHidden(hidden bool) { - d.Hidden = hidden - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldHidden) -} - -// SetPrint sets the Print field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) SetPrint(print bool) { - d.Print = print - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldPrint) -} - -// SetNoZoom sets the NoZoom field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) SetNoZoom(noZoom bool) { - d.NoZoom = noZoom - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldNoZoom) -} - -// SetNoRotate sets the NoRotate field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) SetNoRotate(noRotate bool) { - d.NoRotate = noRotate - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldNoRotate) -} - -// SetNoView sets the NoView field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) SetNoView(noView bool) { - d.NoView = noView - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldNoView) -} - -// SetReadOnly sets the ReadOnly field and marks it as non-optional; +// SetLeft sets the Left field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) SetReadOnly(readOnly bool) { - d.ReadOnly = readOnly - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldReadOnly) +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRect) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsList200ResponseAnnotationsItemTextRectFieldLeft) } -// SetLocked sets the Locked field and marks it as non-optional; +// SetBottom sets the Bottom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) SetLocked(locked bool) { - d.Locked = locked - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldLocked) +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRect) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsList200ResponseAnnotationsItemTextRectFieldBottom) } -// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// SetRight sets the Right field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) SetToggleNoView(toggleNoView bool) { - d.ToggleNoView = toggleNoView - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldToggleNoView) +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRect) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsList200ResponseAnnotationsItemTextRectFieldRight) } -// SetLockedContents sets the LockedContents field and marks it as non-optional; +// SetTop sets the Top field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) SetLockedContents(lockedContents bool) { - d.LockedContents = lockedContents - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldLockedContents) +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsList200ResponseAnnotationsItemTextRectFieldTop) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetFlags +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemTextRect var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemWidgetFlags(value) + *d = DocAnnotationsList200ResponseAnnotationsItemTextRect(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -55600,124 +56925,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) UnmarshalJSON( return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemWidgetFlags - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) -} - -var ( - docAnnotationsList200ResponseAnnotationsItemWidgetFontColorFieldR = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemWidgetFontColorFieldG = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemWidgetFontColorFieldB = big.NewInt(1 << 2) -) - -type DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor struct { - R int `json:"r" url:"r"` - G int `json:"g" url:"g"` - B int `json:"b" url:"b"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor) GetR() int { - if d == nil { - return 0 - } - return d.R -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor) GetG() int { - if d == nil { - return 0 - } - return d.G -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor) GetB() int { - if d == nil { - return 0 - } - return d.B -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetR sets the R field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor) SetR(r int) { - d.R = r - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFontColorFieldR) -} - -// SetG sets the G field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor) SetG(g int) { - d.G = g - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFontColorFieldG) -} - -// SetB sets the B field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor) SetB(b int) { - d.B = b - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFontColorFieldB) -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemTextRect var marshaler = struct { embed }{ @@ -55727,7 +56936,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor) MarshalJSO return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRect) String() string { if d == nil { return "" } @@ -55742,124 +56951,44 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor) String() s return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily string - -const ( - DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyCourier DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily = "courier" - DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyCourierBold DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily = "courier-bold" - DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyCourierBoldOblique DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily = "courier-bold-oblique" - DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyCourierOblique DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily = "courier-oblique" - DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyHelvetica DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily = "helvetica" - DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyHelveticaBold DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily = "helvetica-bold" - DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyHelveticaBoldOblique DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily = "helvetica-bold-oblique" - DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyHelveticaOblique DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily = "helvetica-oblique" - DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyTimesRoman DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily = "times-roman" - DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyTimesBold DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily = "times-bold" - DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyTimesBoldItalic DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily = "times-bold-italic" - DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyTimesItalic DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily = "times-italic" - DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilySymbol DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily = "symbol" - DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyZapfDingbats DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily = "zapf-dingbats" -) - -func NewDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily, error) { - switch s { - case "courier": - return DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyCourier, nil - case "courier-bold": - return DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyCourierBold, nil - case "courier-bold-oblique": - return DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyCourierBoldOblique, nil - case "courier-oblique": - return DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyCourierOblique, nil - case "helvetica": - return DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyHelvetica, nil - case "helvetica-bold": - return DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyHelveticaBold, nil - case "helvetica-bold-oblique": - return DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyHelveticaBoldOblique, nil - case "helvetica-oblique": - return DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyHelveticaOblique, nil - case "times-roman": - return DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyTimesRoman, nil - case "times-bold": - return DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyTimesBold, nil - case "times-bold-italic": - return DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyTimesBoldItalic, nil - case "times-italic": - return DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyTimesItalic, nil - case "symbol": - return DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilySymbol, nil - case "zapf-dingbats": - return DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyZapfDingbats, nil - } - var t DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily) Ptr() *DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily { - return &d -} - -type DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQuality string - -const ( - DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQualityDurable DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQuality = "durable" - DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQualityWeak DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQuality = "weak" -) - -func NewDocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQualityFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQuality, error) { - switch s { - case "durable": - return DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQualityDurable, nil - case "weak": - return DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQualityWeak, nil - } - var t DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQuality - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQuality) Ptr() *DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQuality { - return &d -} - -type DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo struct { +type DocAnnotationsList200ResponseAnnotationsItemTextRef struct { Kind string - ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber - Nm *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm - Index *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex + ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber + Nm *DocAnnotationsList200ResponseAnnotationsItemTextRefNm + Index *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo) GetKind() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRef) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRef) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber { if d == nil { return nil } return d.ObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo) GetNm() *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRef) GetNm() *DocAnnotationsList200ResponseAnnotationsItemTextRefNm { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRef) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex { if d == nil { return nil } return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo) UnmarshalJSON(data []byte) error { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRef) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -55872,19 +57001,19 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo) UnmarshalJ } switch unmarshaler.Kind { case "objectNumber": - value := new(DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber) + value := new(DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber) if err := json.Unmarshal(data, &value); err != nil { return err } d.ObjectNumber = value case "nm": - value := new(DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) + value := new(DocAnnotationsList200ResponseAnnotationsItemTextRefNm) if err := json.Unmarshal(data, &value); err != nil { return err } d.Nm = value case "index": - value := new(DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) + value := new(DocAnnotationsList200ResponseAnnotationsItemTextRefIndex) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -55894,7 +57023,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo) UnmarshalJ return nil } -func (d DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsList200ResponseAnnotationsItemTextRef) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -55913,13 +57042,13 @@ func (d DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo) MarshalJSON return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToVisitor interface { - VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber) error - VisitNm(*DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) error - VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) error +type DocAnnotationsList200ResponseAnnotationsItemTextRefVisitor interface { + VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber) error + VisitNm(*DocAnnotationsList200ResponseAnnotationsItemTextRefNm) error + VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemTextRefIndex) error } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToVisitor) error { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRef) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemTextRefVisitor) error { if d.ObjectNumber != nil { return visitor.VisitObjectNumber(d.ObjectNumber) } @@ -55932,7 +57061,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo) Accept(vis return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo) validate() error { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRef) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -55973,15 +57102,15 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo) validate() } var ( - docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemTextRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemTextRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemTextRefIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsList200ResponseAnnotationsItemTextRefIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -55990,35 +57119,35 @@ type DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) GetIndex() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision { if d == nil { return nil } return d.Revision } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -56027,32 +57156,32 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) requi // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemTextRefIndexFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) SetIndex(index int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex) SetIndex(index int) { d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexFieldIndex) + d.require(docAnnotationsList200ResponseAnnotationsItemTextRefIndexFieldIndex) } // SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision) { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision) { d.Revision = revision - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexFieldRevision) + d.require(docAnnotationsList200ResponseAnnotationsItemTextRefIndexFieldRevision) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemTextRefIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex(value) + *d = DocAnnotationsList200ResponseAnnotationsItemTextRefIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -56062,8 +57191,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) Unmar return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemTextRefIndex var marshaler = struct { embed }{ @@ -56073,7 +57202,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) Marsh return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex) String() string { if d == nil { return "" } @@ -56089,12 +57218,12 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) Strin } var ( - docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemTextRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemTextRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemTextRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision struct { +type DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision struct { DocSessionID string `json:"docSessionId" url:"docSessionId"` PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Generation int `json:"generation" url:"generation"` @@ -56106,35 +57235,35 @@ type DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision st rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision) GetDocSessionID() string { if d == nil { return "" } return d.DocSessionID } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision) GetGeneration() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision) GetGeneration() int { if d == nil { return 0 } return d.Generation } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -56143,32 +57272,32 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevisio // SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision) SetDocSessionID(docSessionID string) { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision) SetDocSessionID(docSessionID string) { d.DocSessionID = docSessionID - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevisionFieldDocSessionID) + d.require(docAnnotationsList200ResponseAnnotationsItemTextRefIndexRevisionFieldDocSessionID) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevisionFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemTextRefIndexRevisionFieldPageObjectNumber) } // SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision) SetGeneration(generation int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision) SetGeneration(generation int) { d.Generation = generation - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevisionFieldGeneration) + d.require(docAnnotationsList200ResponseAnnotationsItemTextRefIndexRevisionFieldGeneration) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision(value) + *d = DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -56178,8 +57307,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevisio return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision var marshaler = struct { embed }{ @@ -56189,7 +57318,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevisio return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision) String() string { if d == nil { return "" } @@ -56205,11 +57334,11 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevisio } var ( - docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNmFieldNm = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemTextRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemTextRefNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm struct { +type DocAnnotationsList200ResponseAnnotationsItemTextRefNm struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Nm string `json:"nm" url:"nm"` @@ -56220,28 +57349,28 @@ type DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefNm) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) GetNm() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefNm) GetNm() string { if d == nil { return "" } return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -56250,25 +57379,25 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) require( // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefNm) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNmFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemTextRefNmFieldPageObjectNumber) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) SetNm(nm string) { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefNm) SetNm(nm string) { d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNmFieldNm) + d.require(docAnnotationsList200ResponseAnnotationsItemTextRefNmFieldNm) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemTextRefNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm(value) + *d = DocAnnotationsList200ResponseAnnotationsItemTextRefNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -56278,8 +57407,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) Unmarsha return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemTextRefNm var marshaler = struct { embed }{ @@ -56289,7 +57418,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) MarshalJ return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefNm) String() string { if d == nil { return "" } @@ -56305,11 +57434,11 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) String() } var ( - docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemTextRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemTextRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber struct { +type DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` @@ -56320,28 +57449,28 @@ type DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber str rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } return d.AnnotObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -56350,25 +57479,25 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumberFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemTextRefObjectNumberFieldPageObjectNumber) } // SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumberFieldAnnotObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemTextRefObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber(value) + *d = DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -56378,8 +57507,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber var marshaler = struct { embed }{ @@ -56389,7 +57518,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber) String() string { if d == nil { return "" } @@ -56404,16 +57533,78 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber return fmt.Sprintf("%#v", d) } +type DocAnnotationsList200ResponseAnnotationsItemTextReplyType string + +const ( + DocAnnotationsList200ResponseAnnotationsItemTextReplyTypeReply DocAnnotationsList200ResponseAnnotationsItemTextReplyType = "reply" + DocAnnotationsList200ResponseAnnotationsItemTextReplyTypeGroup DocAnnotationsList200ResponseAnnotationsItemTextReplyType = "group" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemTextReplyTypeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemTextReplyType, error) { + switch s { + case "reply": + return DocAnnotationsList200ResponseAnnotationsItemTextReplyTypeReply, nil + case "group": + return DocAnnotationsList200ResponseAnnotationsItemTextReplyTypeGroup, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemTextReplyType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemTextReplyType) Ptr() *DocAnnotationsList200ResponseAnnotationsItemTextReplyType { + return &d +} + var ( - docAnnotationsList200ResponseAnnotationsItemWidgetInteriorColorFieldR = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemWidgetInteriorColorFieldG = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemWidgetInteriorColorFieldB = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemUnderlineFieldRef = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemUnderlineFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemUnderlineFieldIndex = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemUnderlineFieldIdentityQuality = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemUnderlineFieldNm = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemUnderlineFieldFlags = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemUnderlineFieldRect = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemUnderlineFieldContents = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemUnderlineFieldSubject = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemUnderlineFieldAuthor = big.NewInt(1 << 9) + docAnnotationsList200ResponseAnnotationsItemUnderlineFieldCreated = big.NewInt(1 << 10) + docAnnotationsList200ResponseAnnotationsItemUnderlineFieldModified = big.NewInt(1 << 11) + docAnnotationsList200ResponseAnnotationsItemUnderlineFieldBlendMode = big.NewInt(1 << 12) + docAnnotationsList200ResponseAnnotationsItemUnderlineFieldInReplyTo = big.NewInt(1 << 13) + docAnnotationsList200ResponseAnnotationsItemUnderlineFieldReplyType = big.NewInt(1 << 14) + docAnnotationsList200ResponseAnnotationsItemUnderlineFieldUserID = big.NewInt(1 << 15) + docAnnotationsList200ResponseAnnotationsItemUnderlineFieldGroupID = big.NewInt(1 << 16) + docAnnotationsList200ResponseAnnotationsItemUnderlineFieldCreatedBy = big.NewInt(1 << 17) + docAnnotationsList200ResponseAnnotationsItemUnderlineFieldUpdatedBy = big.NewInt(1 << 18) + docAnnotationsList200ResponseAnnotationsItemUnderlineFieldActions = big.NewInt(1 << 19) + docAnnotationsList200ResponseAnnotationsItemUnderlineFieldColor = big.NewInt(1 << 20) + docAnnotationsList200ResponseAnnotationsItemUnderlineFieldOpacity = big.NewInt(1 << 21) + docAnnotationsList200ResponseAnnotationsItemUnderlineFieldQuadPoints = big.NewInt(1 << 22) ) -type DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor struct { - R int `json:"r" url:"r"` - G int `json:"g" url:"g"` - B int `json:"b" url:"b"` +type DocAnnotationsList200ResponseAnnotationsItemUnderline struct { + Ref *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef `json:"ref" url:"ref"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + IdentityQuality DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQuality `json:"identityQuality" url:"identityQuality"` + Nm *string `json:"nm,omitempty" url:"nm,omitempty"` + Flags *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags `json:"flags" url:"flags"` + Rect *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect `json:"rect" url:"rect"` + Contents *string `json:"contents,omitempty" url:"contents,omitempty"` + Subject *string `json:"subject,omitempty" url:"subject,omitempty"` + Author *string `json:"author,omitempty" url:"author,omitempty"` + Created *time.Time `json:"created,omitempty" url:"created,omitempty"` + Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` + BlendMode DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode `json:"blendMode" url:"blendMode"` + InReplyTo *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` + ReplyType *DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` + UserID *string `json:"userId,omitempty" url:"userId,omitempty"` + GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` + CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` + Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` + Color *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor `json:"color" url:"color"` + Opacity float64 `json:"opacity" url:"opacity"` + QuadPoints []*DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem `json:"quadPoints" url:"quadPoints"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -56422,69 +57613,357 @@ type DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) GetR() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetRef() *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef { if d == nil { - return 0 + return nil } - return d.R + return d.Ref } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) GetG() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetPageObjectNumber() int { if d == nil { return 0 } - return d.G + return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) GetB() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetIndex() int { if d == nil { return 0 } - return d.B + return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetIdentityQuality() DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQuality { if d == nil { - return nil + return "" } - return d.extraProperties + return d.IdentityQuality } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetNm() *string { + if d == nil { + return nil } - d.explicitFields.Or(d.explicitFields, field) + return d.Nm } -// SetR sets the R field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) SetR(r int) { - d.R = r - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInteriorColorFieldR) +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetFlags() *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags { + if d == nil { + return nil + } + return d.Flags } -// SetG sets the G field and marks it as non-optional; +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetRect() *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect { + if d == nil { + return nil + } + return d.Rect +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetContents() *string { + if d == nil { + return nil + } + return d.Contents +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetAuthor() *string { + if d == nil { + return nil + } + return d.Author +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetCreated() *time.Time { + if d == nil { + return nil + } + return d.Created +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetModified() *time.Time { + if d == nil { + return nil + } + return d.Modified +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetBlendMode() DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode { + if d == nil { + return "" + } + return d.BlendMode +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetInReplyTo() *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo { + if d == nil { + return nil + } + return d.InReplyTo +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetReplyType() *DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyType { + if d == nil { + return nil + } + return d.ReplyType +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetUserID() *string { + if d == nil { + return nil + } + return d.UserID +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetGroupID() *string { + if d == nil { + return nil + } + return d.GroupID +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetCreatedBy() *string { + if d == nil { + return nil + } + return d.CreatedBy +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetUpdatedBy() *string { + if d == nil { + return nil + } + return d.UpdatedBy +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetActions() *PdfAnnotationActions { + if d == nil { + return nil + } + return d.Actions +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetColor() *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor { + if d == nil { + return nil + } + return d.Color +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetOpacity() float64 { + if d == nil { + return 0 + } + return d.Opacity +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetQuadPoints() []*DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem { + if d == nil { + return nil + } + return d.QuadPoints +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRef sets the Ref field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) SetG(g int) { - d.G = g - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInteriorColorFieldG) +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetRef(ref *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef) { + d.Ref = ref + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldRef) } -// SetB sets the B field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) SetB(b int) { - d.B = b - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInteriorColorFieldB) +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldPageObjectNumber) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { +// SetIndex sets the Index field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldIndex) +} + +// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetIdentityQuality(identityQuality DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQuality) { + d.IdentityQuality = identityQuality + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldIdentityQuality) +} + +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetNm(nm *string) { + d.Nm = nm + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldNm) +} + +// SetFlags sets the Flags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetFlags(flags *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) { + d.Flags = flags + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldFlags) +} + +// SetRect sets the Rect field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetRect(rect *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect) { + d.Rect = rect + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldRect) +} + +// SetContents sets the Contents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetContents(contents *string) { + d.Contents = contents + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldContents) +} + +// SetSubject sets the Subject field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetSubject(subject *string) { + d.Subject = subject + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldSubject) +} + +// SetAuthor sets the Author field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetAuthor(author *string) { + d.Author = author + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldAuthor) +} + +// SetCreated sets the Created field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetCreated(created *time.Time) { + d.Created = created + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldCreated) +} + +// SetModified sets the Modified field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetModified(modified *time.Time) { + d.Modified = modified + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldModified) +} + +// SetBlendMode sets the BlendMode field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetBlendMode(blendMode DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode) { + d.BlendMode = blendMode + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldBlendMode) +} + +// SetInReplyTo sets the InReplyTo field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetInReplyTo(inReplyTo *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo) { + d.InReplyTo = inReplyTo + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldInReplyTo) +} + +// SetReplyType sets the ReplyType field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetReplyType(replyType *DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyType) { + d.ReplyType = replyType + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldReplyType) +} + +// SetUserID sets the UserID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetUserID(userID *string) { + d.UserID = userID + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldUserID) +} + +// SetGroupID sets the GroupID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetGroupID(groupID *string) { + d.GroupID = groupID + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldGroupID) +} + +// SetCreatedBy sets the CreatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetCreatedBy(createdBy *string) { + d.CreatedBy = createdBy + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldCreatedBy) +} + +// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetUpdatedBy(updatedBy *string) { + d.UpdatedBy = updatedBy + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldUpdatedBy) +} + +// SetActions sets the Actions field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetActions(actions *PdfAnnotationActions) { + d.Actions = actions + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldActions) +} + +// SetColor sets the Color field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetColor(color *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor) { + d.Color = color + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldColor) +} + +// SetOpacity sets the Opacity field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetOpacity(opacity float64) { + d.Opacity = opacity + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldOpacity) +} + +// SetQuadPoints sets the QuadPoints field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) SetQuadPoints(quadPoints []*DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem) { + d.QuadPoints = quadPoints + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFieldQuadPoints) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) UnmarshalJSON(data []byte) error { + type embed DocAnnotationsList200ResponseAnnotationsItemUnderline + var unmarshaler = struct { + embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor(value) + *d = DocAnnotationsList200ResponseAnnotationsItemUnderline(unmarshaler.embed) + d.Created = unmarshaler.Created.TimePtr() + d.Modified = unmarshaler.Modified.TimePtr() extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -56494,18 +57973,22 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) Unmars return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemUnderline var marshaler = struct { embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), + embed: embed(*d), + Created: internal.NewOptionalDateTime(d.Created), + Modified: internal.NewOptionalDateTime(d.Modified), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderline) String() string { if d == nil { return "" } @@ -56520,18 +58003,80 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) String return fmt.Sprintf("%#v", d) } +type DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode string + +const ( + DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeNormal DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode = "normal" + DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeMultiply DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode = "multiply" + DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeScreen DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode = "screen" + DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeOverlay DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode = "overlay" + DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeDarken DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode = "darken" + DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeLighten DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode = "lighten" + DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeColorDodge DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode = "color-dodge" + DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeColorBurn DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode = "color-burn" + DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeHardLight DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode = "hard-light" + DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeSoftLight DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode = "soft-light" + DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeDifference DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode = "difference" + DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeExclusion DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode = "exclusion" + DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeHue DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode = "hue" + DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeSaturation DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode = "saturation" + DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeColor DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode = "color" + DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeLuminosity DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode = "luminosity" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode, error) { + switch s { + case "normal": + return DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeNormal, nil + case "multiply": + return DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeMultiply, nil + case "screen": + return DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeScreen, nil + case "overlay": + return DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeOverlay, nil + case "darken": + return DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeDarken, nil + case "lighten": + return DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeLighten, nil + case "color-dodge": + return DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeColorDodge, nil + case "color-burn": + return DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeColorBurn, nil + case "hard-light": + return DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeHardLight, nil + case "soft-light": + return DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeSoftLight, nil + case "difference": + return DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeDifference, nil + case "exclusion": + return DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeExclusion, nil + case "hue": + return DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeHue, nil + case "saturation": + return DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeSaturation, nil + case "color": + return DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeColor, nil + case "luminosity": + return DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendModeLuminosity, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode) Ptr() *DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode { + return &d +} + var ( - docAnnotationsList200ResponseAnnotationsItemWidgetRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemWidgetRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemWidgetRectFieldRight = big.NewInt(1 << 2) - docAnnotationsList200ResponseAnnotationsItemWidgetRectFieldTop = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemUnderlineColorFieldR = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemUnderlineColorFieldG = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemUnderlineColorFieldB = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemWidgetRect struct { - Left float64 `json:"left" url:"left"` - Bottom float64 `json:"bottom" url:"bottom"` - Right float64 `json:"right" url:"right"` - Top float64 `json:"top" url:"top"` +type DocAnnotationsList200ResponseAnnotationsItemUnderlineColor struct { + R int `json:"r" url:"r"` + G int `json:"g" url:"g"` + B int `json:"b" url:"b"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -56540,83 +58085,69 @@ type DocAnnotationsList200ResponseAnnotationsItemWidgetRect struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) GetLeft() float64 { - if d == nil { - return 0 - } - return d.Left -} - -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) GetBottom() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor) GetR() int { if d == nil { return 0 } - return d.Bottom + return d.R } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) GetRight() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor) GetG() int { if d == nil { return 0 } - return d.Right + return d.G } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) GetTop() float64 { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor) GetB() int { if d == nil { return 0 } - return d.Top + return d.B } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetLeft sets the Left field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) SetLeft(left float64) { - d.Left = left - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRectFieldLeft) -} - -// SetBottom sets the Bottom field and marks it as non-optional; +// SetR sets the R field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRectFieldBottom) +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor) SetR(r int) { + d.R = r + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineColorFieldR) } -// SetRight sets the Right field and marks it as non-optional; +// SetG sets the G field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) SetRight(right float64) { - d.Right = right - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRectFieldRight) +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor) SetG(g int) { + d.G = g + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineColorFieldG) } -// SetTop sets the Top field and marks it as non-optional; +// SetB sets the B field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRectFieldTop) +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor) SetB(b int) { + d.B = b + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineColorFieldB) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetRect +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnderlineColor var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemWidgetRect(value) + *d = DocAnnotationsList200ResponseAnnotationsItemUnderlineColor(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -56626,8 +58157,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) UnmarshalJSON(d return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemWidgetRect +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemUnderlineColor var marshaler = struct { embed }{ @@ -56637,7 +58168,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) MarshalJSON() ( return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor) String() string { if d == nil { return "" } @@ -56652,44 +58183,294 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) String() string return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemWidgetRef struct { - Kind string - ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber - Nm *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm - Index *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex +var ( + docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldInvisible = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldHidden = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldPrint = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldNoZoom = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldNoRotate = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldNoView = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldReadOnly = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldLocked = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldToggleNoView = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldLockedContents = big.NewInt(1 << 9) +) - rawJSON json.RawMessage +type DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags struct { + Invisible bool `json:"invisible" url:"invisible"` + Hidden bool `json:"hidden" url:"hidden"` + Print bool `json:"print" url:"print"` + NoZoom bool `json:"noZoom" url:"noZoom"` + NoRotate bool `json:"noRotate" url:"noRotate"` + NoView bool `json:"noView" url:"noView"` + ReadOnly bool `json:"readOnly" url:"readOnly"` + Locked bool `json:"locked" url:"locked"` + ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` + LockedContents bool `json:"lockedContents" url:"lockedContents"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRef) GetKind() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) GetInvisible() bool { if d == nil { - return "" + return false } - return d.Kind + return d.Invisible } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRef) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) GetHidden() bool { + if d == nil { + return false + } + return d.Hidden +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) GetPrint() bool { + if d == nil { + return false + } + return d.Print +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) GetNoZoom() bool { + if d == nil { + return false + } + return d.NoZoom +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) GetNoRotate() bool { + if d == nil { + return false + } + return d.NoRotate +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) GetNoView() bool { + if d == nil { + return false + } + return d.NoView +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) GetReadOnly() bool { + if d == nil { + return false + } + return d.ReadOnly +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) GetLocked() bool { + if d == nil { + return false + } + return d.Locked +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) GetToggleNoView() bool { + if d == nil { + return false + } + return d.ToggleNoView +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) GetLockedContents() bool { + if d == nil { + return false + } + return d.LockedContents +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetInvisible sets the Invisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) SetInvisible(invisible bool) { + d.Invisible = invisible + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldInvisible) +} + +// SetHidden sets the Hidden field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) SetHidden(hidden bool) { + d.Hidden = hidden + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldHidden) +} + +// SetPrint sets the Print field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) SetPrint(print bool) { + d.Print = print + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldPrint) +} + +// SetNoZoom sets the NoZoom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) SetNoZoom(noZoom bool) { + d.NoZoom = noZoom + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldNoZoom) +} + +// SetNoRotate sets the NoRotate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) SetNoRotate(noRotate bool) { + d.NoRotate = noRotate + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldNoRotate) +} + +// SetNoView sets the NoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) SetNoView(noView bool) { + d.NoView = noView + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldNoView) +} + +// SetReadOnly sets the ReadOnly field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldReadOnly) +} + +// SetLocked sets the Locked field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) SetLocked(locked bool) { + d.Locked = locked + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldLocked) +} + +// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) SetToggleNoView(toggleNoView bool) { + d.ToggleNoView = toggleNoView + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldToggleNoView) +} + +// SetLockedContents sets the LockedContents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) SetLockedContents(lockedContents bool) { + d.LockedContents = lockedContents + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineFlagsFieldLockedContents) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQuality string + +const ( + DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQualityDurable DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQuality = "durable" + DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQualityWeak DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQuality = "weak" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQualityFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQuality, error) { + switch s { + case "durable": + return DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQualityDurable, nil + case "weak": + return DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQualityWeak, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQuality + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQuality) Ptr() *DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQuality { + return &d +} + +type DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo struct { + Kind string + ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber + Nm *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm + Index *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber { if d == nil { return nil } return d.ObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRef) GetNm() *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo) GetNm() *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRef) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex { if d == nil { return nil } return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRef) UnmarshalJSON(data []byte) error { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -56702,19 +58483,19 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRef) UnmarshalJSON(da } switch unmarshaler.Kind { case "objectNumber": - value := new(DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) + value := new(DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber) if err := json.Unmarshal(data, &value); err != nil { return err } d.ObjectNumber = value case "nm": - value := new(DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) + value := new(DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm) if err := json.Unmarshal(data, &value); err != nil { return err } d.Nm = value case "index": - value := new(DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) + value := new(DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -56724,7 +58505,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRef) UnmarshalJSON(da return nil } -func (d DocAnnotationsList200ResponseAnnotationsItemWidgetRef) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -56743,13 +58524,13 @@ func (d DocAnnotationsList200ResponseAnnotationsItemWidgetRef) MarshalJSON() ([] return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsList200ResponseAnnotationsItemWidgetRefVisitor interface { - VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) error - VisitNm(*DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) error - VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) error +type DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber) error + VisitNm(*DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm) error + VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex) error } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRef) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemWidgetRefVisitor) error { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToVisitor) error { if d.ObjectNumber != nil { return visitor.VisitObjectNumber(d.ObjectNumber) } @@ -56762,7 +58543,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRef) Accept(visitor D return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRef) validate() error { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -56803,15 +58584,15 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRef) validate() error } var ( - docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -56820,35 +58601,35 @@ type DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) GetIndex() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision { if d == nil { return nil } return d.Revision } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -56857,32 +58638,32 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) require(fie // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) SetIndex(index int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex) SetIndex(index int) { d.Index = index - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexFieldIndex) + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexFieldIndex) } // SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision) { d.Revision = revision - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexFieldRevision) + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexFieldRevision) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex(value) + *d = DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -56892,8 +58673,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) UnmarshalJS return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex var marshaler = struct { embed }{ @@ -56903,7 +58684,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) MarshalJSON return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex) String() string { if d == nil { return "" } @@ -56919,12 +58700,12 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) String() st } var ( - docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision struct { +type DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision struct { DocSessionID string `json:"docSessionId" url:"docSessionId"` PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Generation int `json:"generation" url:"generation"` @@ -56936,35 +58717,35 @@ type DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision) GetDocSessionID() string { if d == nil { return "" } return d.DocSessionID } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) GetGeneration() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision) GetGeneration() int { if d == nil { return 0 } return d.Generation } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -56973,32 +58754,32 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) req // SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) SetDocSessionID(docSessionID string) { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision) SetDocSessionID(docSessionID string) { d.DocSessionID = docSessionID - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevisionFieldDocSessionID) + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevisionFieldDocSessionID) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevisionFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevisionFieldPageObjectNumber) } // SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) SetGeneration(generation int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision) SetGeneration(generation int) { d.Generation = generation - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevisionFieldGeneration) + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevisionFieldGeneration) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision(value) + *d = DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -57008,8 +58789,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) Unm return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision var marshaler = struct { embed }{ @@ -57019,7 +58800,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) Mar return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision) String() string { if d == nil { return "" } @@ -57035,11 +58816,11 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) Str } var ( - docAnnotationsList200ResponseAnnotationsItemWidgetRefNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemWidgetRefNmFieldNm = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm struct { +type DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Nm string `json:"nm" url:"nm"` @@ -57050,28 +58831,28 @@ type DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) GetNm() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm) GetNm() string { if d == nil { return "" } return d.Nm } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -57080,25 +58861,25 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) require(field // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRefNmFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNmFieldPageObjectNumber) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) SetNm(nm string) { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm) SetNm(nm string) { d.Nm = nm - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRefNmFieldNm) + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNmFieldNm) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm(value) + *d = DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -57108,8 +58889,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) UnmarshalJSON( return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm var marshaler = struct { embed }{ @@ -57119,7 +58900,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) MarshalJSON() return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm) String() string { if d == nil { return "" } @@ -57135,11 +58916,11 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) String() strin } var ( - docAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber struct { +type DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` @@ -57150,28 +58931,28 @@ type DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } return d.AnnotObjectNumber } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -57180,25 +58961,25 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) requ // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumberFieldPageObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumberFieldPageObjectNumber) } // SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumberFieldAnnotObjectNumber) + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber(value) + *d = DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -57208,8 +58989,8 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) Unma return nil } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber var marshaler = struct { embed }{ @@ -57219,7 +59000,7 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) Mars return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber) String() string { if d == nil { return "" } @@ -57234,63 +59015,18 @@ func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) Stri return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType string - -const ( - DocAnnotationsList200ResponseAnnotationsItemWidgetReplyTypeReply DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType = "reply" - DocAnnotationsList200ResponseAnnotationsItemWidgetReplyTypeGroup DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType = "group" -) - -func NewDocAnnotationsList200ResponseAnnotationsItemWidgetReplyTypeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType, error) { - switch s { - case "reply": - return DocAnnotationsList200ResponseAnnotationsItemWidgetReplyTypeReply, nil - case "group": - return DocAnnotationsList200ResponseAnnotationsItemWidgetReplyTypeGroup, nil - } - var t DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType) Ptr() *DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType { - return &d -} - -type DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign string - -const ( - DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlignLeft DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign = "left" - DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlignCenter DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign = "center" - DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlignRight DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign = "right" -) - -func NewDocAnnotationsList200ResponseAnnotationsItemWidgetTextAlignFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign, error) { - switch s { - case "left": - return DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlignLeft, nil - case "center": - return DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlignCenter, nil - case "right": - return DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlignRight, nil - } - var t DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign) Ptr() *DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign { - return &d -} - var ( - docAnnotationsList200ResponsePageStateFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsList200ResponsePageStateFieldRevision = big.NewInt(1 << 1) - docAnnotationsList200ResponsePageStateFieldWeakAnnotationState = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemFieldP1 = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemFieldP2 = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemFieldP3 = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemFieldP4 = big.NewInt(1 << 3) ) -type DocAnnotationsList200ResponsePageState struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Revision *DocAnnotationsList200ResponsePageStateRevision `json:"revision" url:"revision"` - WeakAnnotationState *DocAnnotationsList200ResponsePageStateWeakAnnotationState `json:"weakAnnotationState" url:"weakAnnotationState"` +type DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem struct { + P1 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1 `json:"p1" url:"p1"` + P2 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2 `json:"p2" url:"p2"` + P3 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3 `json:"p3" url:"p3"` + P4 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4 `json:"p4" url:"p4"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -57299,69 +59035,83 @@ type DocAnnotationsList200ResponsePageState struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponsePageState) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem) GetP1() *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1 { if d == nil { - return 0 + return nil } - return d.PageObjectNumber + return d.P1 } -func (d *DocAnnotationsList200ResponsePageState) GetRevision() *DocAnnotationsList200ResponsePageStateRevision { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem) GetP2() *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2 { if d == nil { return nil } - return d.Revision + return d.P2 } -func (d *DocAnnotationsList200ResponsePageState) GetWeakAnnotationState() *DocAnnotationsList200ResponsePageStateWeakAnnotationState { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem) GetP3() *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3 { if d == nil { return nil } - return d.WeakAnnotationState + return d.P3 } -func (d *DocAnnotationsList200ResponsePageState) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem) GetP4() *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4 { + if d == nil { + return nil + } + return d.P4 +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponsePageState) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetP1 sets the P1 field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponsePageState) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponsePageStateFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem) SetP1(p1 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1) { + d.P1 = p1 + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemFieldP1) } -// SetRevision sets the Revision field and marks it as non-optional; +// SetP2 sets the P2 field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponsePageState) SetRevision(revision *DocAnnotationsList200ResponsePageStateRevision) { - d.Revision = revision - d.require(docAnnotationsList200ResponsePageStateFieldRevision) +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem) SetP2(p2 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2) { + d.P2 = p2 + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemFieldP2) } -// SetWeakAnnotationState sets the WeakAnnotationState field and marks it as non-optional; +// SetP3 sets the P3 field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponsePageState) SetWeakAnnotationState(weakAnnotationState *DocAnnotationsList200ResponsePageStateWeakAnnotationState) { - d.WeakAnnotationState = weakAnnotationState - d.require(docAnnotationsList200ResponsePageStateFieldWeakAnnotationState) +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem) SetP3(p3 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3) { + d.P3 = p3 + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemFieldP3) } -func (d *DocAnnotationsList200ResponsePageState) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponsePageState +// SetP4 sets the P4 field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem) SetP4(p4 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4) { + d.P4 = p4 + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemFieldP4) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponsePageState(value) + *d = DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -57371,8 +59121,8 @@ func (d *DocAnnotationsList200ResponsePageState) UnmarshalJSON(data []byte) erro return nil } -func (d *DocAnnotationsList200ResponsePageState) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponsePageState +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem var marshaler = struct { embed }{ @@ -57382,7 +59132,7 @@ func (d *DocAnnotationsList200ResponsePageState) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponsePageState) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem) String() string { if d == nil { return "" } @@ -57398,15 +59148,13 @@ func (d *DocAnnotationsList200ResponsePageState) String() string { } var ( - docAnnotationsList200ResponsePageStateRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsList200ResponsePageStateRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsList200ResponsePageStateRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1FieldX = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1FieldY = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponsePageStateRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -57415,69 +59163,55 @@ type DocAnnotationsList200ResponsePageStateRevision struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponsePageStateRevision) GetDocSessionID() string { - if d == nil { - return "" - } - return d.DocSessionID -} - -func (d *DocAnnotationsList200ResponsePageStateRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1) GetX() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.X } -func (d *DocAnnotationsList200ResponsePageStateRevision) GetGeneration() int { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1) GetY() float64 { if d == nil { return 0 } - return d.Generation + return d.Y } -func (d *DocAnnotationsList200ResponsePageStateRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponsePageStateRevision) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponsePageStateRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsList200ResponsePageStateRevisionFieldDocSessionID) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponsePageStateRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsList200ResponsePageStateRevisionFieldPageObjectNumber) +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1) SetX(x float64) { + d.X = x + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1FieldX) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponsePageStateRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsList200ResponsePageStateRevisionFieldGeneration) +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1) SetY(y float64) { + d.Y = y + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1FieldY) } -func (d *DocAnnotationsList200ResponsePageStateRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponsePageStateRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1 var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponsePageStateRevision(value) + *d = DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -57487,8 +59221,8 @@ func (d *DocAnnotationsList200ResponsePageStateRevision) UnmarshalJSON(data []by return nil } -func (d *DocAnnotationsList200ResponsePageStateRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponsePageStateRevision +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1 var marshaler = struct { embed }{ @@ -57498,7 +59232,7 @@ func (d *DocAnnotationsList200ResponsePageStateRevision) MarshalJSON() ([]byte, return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponsePageStateRevision) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1) String() string { if d == nil { return "" } @@ -57513,138 +59247,114 @@ func (d *DocAnnotationsList200ResponsePageStateRevision) String() string { return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponsePageStateWeakAnnotationState struct { - Kind string - Unknown *DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown - Known *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown +var ( + docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2FieldX = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2FieldY = big.NewInt(1 << 1) +) - rawJSON json.RawMessage +type DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationState) GetKind() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2) GetX() float64 { if d == nil { - return "" + return 0 } - return d.Kind + return d.X } -func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationState) GetUnknown() *DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2) GetY() float64 { if d == nil { - return nil + return 0 } - return d.Unknown + return d.Y } -func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationState) GetKnown() *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.Known + return d.extraProperties } -func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationState) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "unknown": - value := new(DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Unknown = value - case "known": - value := new(DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Known = value +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - d.rawJSON = json.RawMessage(data) - return nil + d.explicitFields.Or(d.explicitFields, field) } -func (d DocAnnotationsList200ResponsePageStateWeakAnnotationState) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.Unknown != nil { - return internal.MarshalJSONWithExtraProperty(d.Unknown, "kind", "unknown") - } - if d.Known != nil { - return internal.MarshalJSONWithExtraProperty(d.Known, "kind", "known") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil - } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +// SetX sets the X field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2) SetX(x float64) { + d.X = x + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2FieldX) } -type DocAnnotationsList200ResponsePageStateWeakAnnotationStateVisitor interface { - VisitUnknown(*DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown) error - VisitKnown(*DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown) error +// SetY sets the Y field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2) SetY(y float64) { + d.Y = y + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2FieldY) } -func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationState) Accept(visitor DocAnnotationsList200ResponsePageStateWeakAnnotationStateVisitor) error { - if d.Unknown != nil { - return visitor.VisitUnknown(d.Unknown) +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2 + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - if d.Known != nil { - return visitor.VisitKnown(d.Known) + *d = DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err } - return fmt.Errorf("type %T does not define a non-empty union type", d) + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationState) validate() error { - if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.Unknown != nil { - fields = append(fields, "unknown") +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2 + var marshaler = struct { + embed + }{ + embed: embed(*d), } - if d.Known != nil { - fields = append(fields, "known") + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2) String() string { + if d == nil { + return "" } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value } - return fmt.Errorf("type %T is empty", d) } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } + if value, err := internal.StringifyJSON(d); err == nil { + return value } - return nil + return fmt.Sprintf("%#v", d) } var ( - docAnnotationsList200ResponsePageStateWeakAnnotationStateKnownFieldHasAnyWeakAnnotations = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3FieldX = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3FieldY = big.NewInt(1 << 1) ) -type DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown struct { - HasAnyWeakAnnotations bool `json:"hasAnyWeakAnnotations" url:"hasAnyWeakAnnotations"` +type DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -57653,41 +59363,55 @@ type DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown) GetHasAnyWeakAnnotations() bool { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3) GetX() float64 { if d == nil { - return false + return 0 } - return d.HasAnyWeakAnnotations + return d.X } -func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3) GetY() float64 { + if d == nil { + return 0 + } + return d.Y +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetHasAnyWeakAnnotations sets the HasAnyWeakAnnotations field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown) SetHasAnyWeakAnnotations(hasAnyWeakAnnotations bool) { - d.HasAnyWeakAnnotations = hasAnyWeakAnnotations - d.require(docAnnotationsList200ResponsePageStateWeakAnnotationStateKnownFieldHasAnyWeakAnnotations) +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3) SetX(x float64) { + d.X = x + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3FieldX) } -func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown +// SetY sets the Y field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3) SetY(y float64) { + d.Y = y + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3FieldY) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3 var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown(value) + *d = DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -57697,8 +59421,8 @@ func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown) Unmarsh return nil } -func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3 var marshaler = struct { embed }{ @@ -57708,7 +59432,7 @@ func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown) Marshal return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3) String() string { if d == nil { return "" } @@ -57723,7 +59447,14 @@ func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown) String( return fmt.Sprintf("%#v", d) } -type DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown struct { +var ( + docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4FieldX = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4FieldY = big.NewInt(1 << 1) +) + +type DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -57732,27 +59463,55 @@ type DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4) GetX() float64 { + if d == nil { + return 0 + } + return d.X +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4) GetY() float64 { + if d == nil { + return 0 + } + return d.Y +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown +// SetX sets the X field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4) SetX(x float64) { + d.X = x + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4FieldX) +} + +// SetY sets the Y field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4) SetY(y float64) { + d.Y = y + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4FieldY) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4 var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown(value) + *d = DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -57762,8 +59521,8 @@ func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown) Unmar return nil } -func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4 var marshaler = struct { embed }{ @@ -57773,7 +59532,7 @@ func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown) Marsh return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4) String() string { if d == nil { return "" } @@ -57789,17 +59548,17 @@ func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown) Strin } var ( - docAnnotationsList404ResponseFieldName = big.NewInt(1 << 0) - docAnnotationsList404ResponseFieldCode = big.NewInt(1 << 1) - docAnnotationsList404ResponseFieldMessage = big.NewInt(1 << 2) - docAnnotationsList404ResponseFieldDetails = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemUnderlineRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemUnderlineRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemUnderlineRectFieldRight = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemUnderlineRectFieldTop = big.NewInt(1 << 3) ) -type DocAnnotationsList404Response struct { - Name DocAnnotationsList404ResponseName `json:"name" url:"name"` - Code DocAnnotationsList404ResponseCode `json:"code" url:"code"` - Message string `json:"message" url:"message"` - Details map[string]any `json:"details,omitempty" url:"details,omitempty"` +type DocAnnotationsList200ResponseAnnotationsItemUnderlineRect struct { + Left float64 `json:"left" url:"left"` + Bottom float64 `json:"bottom" url:"bottom"` + Right float64 `json:"right" url:"right"` + Top float64 `json:"top" url:"top"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -57808,83 +59567,83 @@ type DocAnnotationsList404Response struct { rawJSON json.RawMessage } -func (d *DocAnnotationsList404Response) GetName() DocAnnotationsList404ResponseName { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect) GetLeft() float64 { if d == nil { - return "" + return 0 } - return d.Name + return d.Left } -func (d *DocAnnotationsList404Response) GetCode() DocAnnotationsList404ResponseCode { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect) GetBottom() float64 { if d == nil { - return "" + return 0 } - return d.Code + return d.Bottom } -func (d *DocAnnotationsList404Response) GetMessage() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect) GetRight() float64 { if d == nil { - return "" + return 0 } - return d.Message + return d.Right } -func (d *DocAnnotationsList404Response) GetDetails() map[string]any { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect) GetTop() float64 { if d == nil { - return nil + return 0 } - return d.Details + return d.Top } -func (d *DocAnnotationsList404Response) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsList404Response) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetName sets the Name field and marks it as non-optional; +// SetLeft sets the Left field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList404Response) SetName(name DocAnnotationsList404ResponseName) { - d.Name = name - d.require(docAnnotationsList404ResponseFieldName) +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineRectFieldLeft) } -// SetCode sets the Code field and marks it as non-optional; +// SetBottom sets the Bottom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList404Response) SetCode(code DocAnnotationsList404ResponseCode) { - d.Code = code - d.require(docAnnotationsList404ResponseFieldCode) +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineRectFieldBottom) } -// SetMessage sets the Message field and marks it as non-optional; +// SetRight sets the Right field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList404Response) SetMessage(message string) { - d.Message = message - d.require(docAnnotationsList404ResponseFieldMessage) +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineRectFieldRight) } -// SetDetails sets the Details field and marks it as non-optional; +// SetTop sets the Top field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsList404Response) SetDetails(details map[string]any) { - d.Details = details - d.require(docAnnotationsList404ResponseFieldDetails) +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineRectFieldTop) } -func (d *DocAnnotationsList404Response) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsList404Response +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnderlineRect var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsList404Response(value) + *d = DocAnnotationsList200ResponseAnnotationsItemUnderlineRect(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -57894,8 +59653,8 @@ func (d *DocAnnotationsList404Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocAnnotationsList404Response) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsList404Response +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemUnderlineRect var marshaler = struct { embed }{ @@ -57905,7 +59664,7 @@ func (d *DocAnnotationsList404Response) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsList404Response) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect) String() string { if d == nil { return "" } @@ -57920,124 +59679,166 @@ func (d *DocAnnotationsList404Response) String() string { return fmt.Sprintf("%#v", d) } -type DocAnnotationsList404ResponseCode string +type DocAnnotationsList200ResponseAnnotationsItemUnderlineRef struct { + Kind string + ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber + Nm *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm + Index *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex -const ( - DocAnnotationsList404ResponseCodeUnknown DocAnnotationsList404ResponseCode = "Unknown" - DocAnnotationsList404ResponseCodeInvalidArg DocAnnotationsList404ResponseCode = "InvalidArg" - DocAnnotationsList404ResponseCodeDocNotOpen DocAnnotationsList404ResponseCode = "DocNotOpen" - DocAnnotationsList404ResponseCodeDocOpenFailed DocAnnotationsList404ResponseCode = "DocOpenFailed" - DocAnnotationsList404ResponseCodeDocPasswordRequired DocAnnotationsList404ResponseCode = "DocPasswordRequired" - DocAnnotationsList404ResponseCodeDocPasswordIncorrect DocAnnotationsList404ResponseCode = "DocPasswordIncorrect" - DocAnnotationsList404ResponseCodeSharePasswordRequired DocAnnotationsList404ResponseCode = "SharePasswordRequired" - DocAnnotationsList404ResponseCodeAborted DocAnnotationsList404ResponseCode = "Aborted" - DocAnnotationsList404ResponseCodeNetwork DocAnnotationsList404ResponseCode = "Network" - DocAnnotationsList404ResponseCodeUnauthenticated DocAnnotationsList404ResponseCode = "Unauthenticated" - DocAnnotationsList404ResponseCodeForbidden DocAnnotationsList404ResponseCode = "Forbidden" - DocAnnotationsList404ResponseCodeNotFound DocAnnotationsList404ResponseCode = "NotFound" - DocAnnotationsList404ResponseCodeWireFormat DocAnnotationsList404ResponseCode = "WireFormat" - DocAnnotationsList404ResponseCodeRuntimeUnavailable DocAnnotationsList404ResponseCode = "RuntimeUnavailable" - DocAnnotationsList404ResponseCodeInvalidReference DocAnnotationsList404ResponseCode = "InvalidReference" - DocAnnotationsList404ResponseCodeWeakAnnotationSessionConflict DocAnnotationsList404ResponseCode = "WeakAnnotationSessionConflict" - DocAnnotationsList404ResponseCodeLayerVersionConflict DocAnnotationsList404ResponseCode = "LayerVersionConflict" - DocAnnotationsList404ResponseCodeNotImplemented DocAnnotationsList404ResponseCode = "NotImplemented" - DocAnnotationsList404ResponseCodeMalformedPdf DocAnnotationsList404ResponseCode = "MalformedPdf" - DocAnnotationsList404ResponseCodeSigningPending DocAnnotationsList404ResponseCode = "SigningPending" - DocAnnotationsList404ResponseCodeSigningExpired DocAnnotationsList404ResponseCode = "SigningExpired" - DocAnnotationsList404ResponseCodeSigningVersionMismatch DocAnnotationsList404ResponseCode = "SigningVersionMismatch" - DocAnnotationsList404ResponseCodeSignatureRefused DocAnnotationsList404ResponseCode = "SignatureRefused" - DocAnnotationsList404ResponseCodeProtectedDocument DocAnnotationsList404ResponseCode = "ProtectedDocument" - DocAnnotationsList404ResponseCodeStaleBase DocAnnotationsList404ResponseCode = "StaleBase" -) + rawJSON json.RawMessage +} -func NewDocAnnotationsList404ResponseCodeFromString(s string) (DocAnnotationsList404ResponseCode, error) { - switch s { - case "Unknown": - return DocAnnotationsList404ResponseCodeUnknown, nil - case "InvalidArg": - return DocAnnotationsList404ResponseCodeInvalidArg, nil - case "DocNotOpen": - return DocAnnotationsList404ResponseCodeDocNotOpen, nil - case "DocOpenFailed": - return DocAnnotationsList404ResponseCodeDocOpenFailed, nil - case "DocPasswordRequired": - return DocAnnotationsList404ResponseCodeDocPasswordRequired, nil - case "DocPasswordIncorrect": - return DocAnnotationsList404ResponseCodeDocPasswordIncorrect, nil - case "SharePasswordRequired": - return DocAnnotationsList404ResponseCodeSharePasswordRequired, nil - case "Aborted": - return DocAnnotationsList404ResponseCodeAborted, nil - case "Network": - return DocAnnotationsList404ResponseCodeNetwork, nil - case "Unauthenticated": - return DocAnnotationsList404ResponseCodeUnauthenticated, nil - case "Forbidden": - return DocAnnotationsList404ResponseCodeForbidden, nil - case "NotFound": - return DocAnnotationsList404ResponseCodeNotFound, nil - case "WireFormat": - return DocAnnotationsList404ResponseCodeWireFormat, nil - case "RuntimeUnavailable": - return DocAnnotationsList404ResponseCodeRuntimeUnavailable, nil - case "InvalidReference": - return DocAnnotationsList404ResponseCodeInvalidReference, nil - case "WeakAnnotationSessionConflict": - return DocAnnotationsList404ResponseCodeWeakAnnotationSessionConflict, nil - case "LayerVersionConflict": - return DocAnnotationsList404ResponseCodeLayerVersionConflict, nil - case "NotImplemented": - return DocAnnotationsList404ResponseCodeNotImplemented, nil - case "MalformedPdf": - return DocAnnotationsList404ResponseCodeMalformedPdf, nil - case "SigningPending": - return DocAnnotationsList404ResponseCodeSigningPending, nil - case "SigningExpired": - return DocAnnotationsList404ResponseCodeSigningExpired, nil - case "SigningVersionMismatch": - return DocAnnotationsList404ResponseCodeSigningVersionMismatch, nil - case "SignatureRefused": - return DocAnnotationsList404ResponseCodeSignatureRefused, nil - case "ProtectedDocument": - return DocAnnotationsList404ResponseCodeProtectedDocument, nil - case "StaleBase": - return DocAnnotationsList404ResponseCodeStaleBase, nil +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef) GetKind() string { + if d == nil { + return "" } - var t DocAnnotationsList404ResponseCode - return "", fmt.Errorf("%s is not a valid %T", s, t) + return d.Kind } -func (d DocAnnotationsList404ResponseCode) Ptr() *DocAnnotationsList404ResponseCode { - return &d +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber } -type DocAnnotationsList404ResponseName string +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef) GetNm() *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm { + if d == nil { + return nil + } + return d.Nm +} -const ( - DocAnnotationsList404ResponseNameEngineError DocAnnotationsList404ResponseName = "EngineError" -) +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex { + if d == nil { + return nil + } + return d.Index +} -func NewDocAnnotationsList404ResponseNameFromString(s string) (DocAnnotationsList404ResponseName, error) { - switch s { - case "EngineError": - return DocAnnotationsList404ResponseNameEngineError, nil +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` } - var t DocAnnotationsList404ResponseName - return "", fmt.Errorf("%s is not a valid %T", s, t) + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value + } + d.rawJSON = json.RawMessage(data) + return nil } -func (d DocAnnotationsList404ResponseName) Ptr() *DocAnnotationsList404ResponseName { - return &d +func (d DocAnnotationsList200ResponseAnnotationsItemUnderlineRef) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err + } + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Nm != nil { + return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + } + if d.Index != nil { + return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +} + +type DocAnnotationsList200ResponseAnnotationsItemUnderlineRefVisitor interface { + VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber) error + VisitNm(*DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm) error + VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex) error +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemUnderlineRefVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) + } + if d.Nm != nil { + return visitor.VisitNm(d.Nm) + } + if d.Index != nil { + return visitor.VisitIndex(d.Index) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Nm != nil { + fields = append(fields, "nm") + } + if d.Index != nil { + fields = append(fields, "index") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil } var ( - docAnnotationsListAll200ResponseFieldPages = big.NewInt(1 << 0) - docAnnotationsListAll200ResponseFieldAuditHead = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200Response struct { - Pages []*DocAnnotationsListAll200ResponsePagesItem `json:"pages" url:"pages"` - AuditHead *int `json:"auditHead,omitempty" url:"auditHead,omitempty"` +type DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -58046,55 +59847,69 @@ type DocAnnotationsListAll200Response struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200Response) GetPages() []*DocAnnotationsListAll200ResponsePagesItem { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex) GetPageObjectNumber() int { if d == nil { - return nil + return 0 } - return d.Pages + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200Response) GetAuditHead() *int { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision { if d == nil { return nil } - return d.AuditHead + return d.Revision } -func (d *DocAnnotationsListAll200Response) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200Response) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPages sets the Pages field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200Response) SetPages(pages []*DocAnnotationsListAll200ResponsePagesItem) { - d.Pages = pages - d.require(docAnnotationsListAll200ResponseFieldPages) +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexFieldPageObjectNumber) } -// SetAuditHead sets the AuditHead field and marks it as non-optional; +// SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200Response) SetAuditHead(auditHead *int) { - d.AuditHead = auditHead - d.require(docAnnotationsListAll200ResponseFieldAuditHead) +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexFieldIndex) } -func (d *DocAnnotationsListAll200Response) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200Response +// SetRevision sets the Revision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision) { + d.Revision = revision + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexFieldRevision) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200Response(value) + *d = DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -58104,8 +59919,8 @@ func (d *DocAnnotationsListAll200Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocAnnotationsListAll200Response) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200Response +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex var marshaler = struct { embed }{ @@ -58115,7 +59930,7 @@ func (d *DocAnnotationsListAll200Response) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200Response) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex) String() string { if d == nil { return "" } @@ -58131,13 +59946,15 @@ func (d *DocAnnotationsListAll200Response) String() string { } var ( - docAnnotationsListAll200ResponsePagesItemFieldPageState = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemFieldAnnotations = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItem struct { - PageState *DocAnnotationsListAll200ResponsePagesItemPageState `json:"pageState" url:"pageState"` - Annotations []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItem `json:"annotations" url:"annotations"` +type DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -58146,55 +59963,69 @@ type DocAnnotationsListAll200ResponsePagesItem struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItem) GetPageState() *DocAnnotationsListAll200ResponsePagesItemPageState { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision) GetDocSessionID() string { if d == nil { - return nil + return "" } - return d.PageState + return d.DocSessionID } -func (d *DocAnnotationsListAll200ResponsePagesItem) GetAnnotations() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItem { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision) GetPageObjectNumber() int { if d == nil { - return nil + return 0 } - return d.Annotations + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItem) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItem) require(field *big.Int) { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageState sets the PageState field and marks it as non-optional; +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItem) SetPageState(pageState *DocAnnotationsListAll200ResponsePagesItemPageState) { - d.PageState = pageState - d.require(docAnnotationsListAll200ResponsePagesItemFieldPageState) +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevisionFieldDocSessionID) } -// SetAnnotations sets the Annotations field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItem) SetAnnotations(annotations []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) { - d.Annotations = annotations - d.require(docAnnotationsListAll200ResponsePagesItemFieldAnnotations) +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevisionFieldPageObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItem +// SetGeneration sets the Generation field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItem(value) + *d = DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -58204,8 +60035,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItem) UnmarshalJSON(data []byte) e return nil } -func (d *DocAnnotationsListAll200ResponsePagesItem) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItem +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision var marshaler = struct { embed }{ @@ -58215,7 +60046,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItem) MarshalJSON() ([]byte, error return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItem) String() string { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision) String() string { if d == nil { return "" } @@ -58230,533 +60061,13652 @@ func (d *DocAnnotationsListAll200ResponsePagesItem) String() string { return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItem struct { - Subtype string - Highlight *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight - Underline *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline - Squiggly *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly - Strikeout *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout - Circle *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle - Square *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare - Polygon *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon - Polyline *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline - Line *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine - Link *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink - Ink *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk - FreeText *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText - Caret *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret - Text *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText - Stamp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp - FileAttachment *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment - Widget *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget - Redact *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact - Unsupported *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported +var ( + docAnnotationsList200ResponseAnnotationsItemUnderlineRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemUnderlineRefNmFieldNm = big.NewInt(1 << 1) +) - rawJSON json.RawMessage -} +type DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetSubtype() string { - if d == nil { - return "" - } - return d.Subtype -} + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetHighlight() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight { - if d == nil { - return nil - } - return d.Highlight + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetUnderline() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm) GetPageObjectNumber() int { if d == nil { - return nil + return 0 } - return d.Underline + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetSquiggly() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm) GetNm() string { if d == nil { - return nil + return "" } - return d.Squiggly + return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetStrikeout() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.Strikeout + return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetCircle() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.Circle + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetSquare() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare { - if d == nil { - return nil - } - return d.Square +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineRefNmFieldPageObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetPolygon() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon { - if d == nil { - return nil - } - return d.Polygon +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineRefNmFieldNm) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetPolyline() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - return d.Polyline -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetLine() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine { - if d == nil { - return nil + *d = DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err } - return d.Line + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetLink() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return d.Link + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetInk() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm) String() string { if d == nil { - return nil + return "" } - return d.Ink -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetFreeText() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText { - if d == nil { - return nil + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } } - return d.FreeText -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetCaret() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret { - if d == nil { - return nil + if value, err := internal.StringifyJSON(d); err == nil { + return value } - return d.Caret + return fmt.Sprintf("%#v", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetText() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText { - if d == nil { - return nil - } - return d.Text +var ( + docAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +type DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetStamp() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber) GetPageObjectNumber() int { if d == nil { - return nil + return 0 } - return d.Stamp + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetFileAttachment() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber) GetAnnotObjectNumber() int { if d == nil { - return nil + return 0 } - return d.FileAttachment + return d.AnnotObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetWidget() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget { +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.Widget + return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetRedact() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact { - if d == nil { - return nil +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.Redact + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetUnsupported() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported { - if d == nil { - return nil - } - return d.Unsupported +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumberFieldPageObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) UnmarshalJSON(data []byte) error { - var unmarshaler struct { +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyType string + +const ( + DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyTypeReply DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyType = "reply" + DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyTypeGroup DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyType = "group" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemUnderlineReplyTypeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyType, error) { + switch s { + case "reply": + return DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyTypeReply, nil + case "group": + return DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyTypeGroup, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyType) Ptr() *DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyType { + return &d +} + +var ( + docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldRef = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldIndex = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldIdentityQuality = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldNm = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldFlags = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldRect = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldContents = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldSubject = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldAuthor = big.NewInt(1 << 9) + docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldCreated = big.NewInt(1 << 10) + docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldModified = big.NewInt(1 << 11) + docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldBlendMode = big.NewInt(1 << 12) + docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldInReplyTo = big.NewInt(1 << 13) + docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldReplyType = big.NewInt(1 << 14) + docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldUserID = big.NewInt(1 << 15) + docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldGroupID = big.NewInt(1 << 16) + docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldCreatedBy = big.NewInt(1 << 17) + docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldUpdatedBy = big.NewInt(1 << 18) + docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldActions = big.NewInt(1 << 19) + docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldRawSubtypeCode = big.NewInt(1 << 20) + docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldRawSubtypeName = big.NewInt(1 << 21) +) + +type DocAnnotationsList200ResponseAnnotationsItemUnsupported struct { + Ref *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef `json:"ref" url:"ref"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + IdentityQuality DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQuality `json:"identityQuality" url:"identityQuality"` + Nm *string `json:"nm,omitempty" url:"nm,omitempty"` + Flags *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags `json:"flags" url:"flags"` + Rect *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect `json:"rect" url:"rect"` + Contents *string `json:"contents,omitempty" url:"contents,omitempty"` + Subject *string `json:"subject,omitempty" url:"subject,omitempty"` + Author *string `json:"author,omitempty" url:"author,omitempty"` + Created *time.Time `json:"created,omitempty" url:"created,omitempty"` + Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` + BlendMode DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode `json:"blendMode" url:"blendMode"` + InReplyTo *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` + ReplyType *DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` + UserID *string `json:"userId,omitempty" url:"userId,omitempty"` + GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` + CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` + Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` + RawSubtypeCode int `json:"rawSubtypeCode" url:"rawSubtypeCode"` + RawSubtypeName *string `json:"rawSubtypeName,omitempty" url:"rawSubtypeName,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetRef() *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef { + if d == nil { + return nil + } + return d.Ref +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetIdentityQuality() DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQuality { + if d == nil { + return "" + } + return d.IdentityQuality +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetNm() *string { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetFlags() *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags { + if d == nil { + return nil + } + return d.Flags +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetRect() *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect { + if d == nil { + return nil + } + return d.Rect +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetContents() *string { + if d == nil { + return nil + } + return d.Contents +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetAuthor() *string { + if d == nil { + return nil + } + return d.Author +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetCreated() *time.Time { + if d == nil { + return nil + } + return d.Created +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetModified() *time.Time { + if d == nil { + return nil + } + return d.Modified +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetBlendMode() DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode { + if d == nil { + return "" + } + return d.BlendMode +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetInReplyTo() *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo { + if d == nil { + return nil + } + return d.InReplyTo +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetReplyType() *DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyType { + if d == nil { + return nil + } + return d.ReplyType +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetUserID() *string { + if d == nil { + return nil + } + return d.UserID +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetGroupID() *string { + if d == nil { + return nil + } + return d.GroupID +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetCreatedBy() *string { + if d == nil { + return nil + } + return d.CreatedBy +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetUpdatedBy() *string { + if d == nil { + return nil + } + return d.UpdatedBy +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetActions() *PdfAnnotationActions { + if d == nil { + return nil + } + return d.Actions +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetRawSubtypeCode() int { + if d == nil { + return 0 + } + return d.RawSubtypeCode +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetRawSubtypeName() *string { + if d == nil { + return nil + } + return d.RawSubtypeName +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRef sets the Ref field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetRef(ref *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef) { + d.Ref = ref + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldRef) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldPageObjectNumber) +} + +// SetIndex sets the Index field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldIndex) +} + +// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetIdentityQuality(identityQuality DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQuality) { + d.IdentityQuality = identityQuality + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldIdentityQuality) +} + +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetNm(nm *string) { + d.Nm = nm + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldNm) +} + +// SetFlags sets the Flags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetFlags(flags *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) { + d.Flags = flags + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldFlags) +} + +// SetRect sets the Rect field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetRect(rect *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect) { + d.Rect = rect + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldRect) +} + +// SetContents sets the Contents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetContents(contents *string) { + d.Contents = contents + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldContents) +} + +// SetSubject sets the Subject field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetSubject(subject *string) { + d.Subject = subject + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldSubject) +} + +// SetAuthor sets the Author field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetAuthor(author *string) { + d.Author = author + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldAuthor) +} + +// SetCreated sets the Created field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetCreated(created *time.Time) { + d.Created = created + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldCreated) +} + +// SetModified sets the Modified field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetModified(modified *time.Time) { + d.Modified = modified + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldModified) +} + +// SetBlendMode sets the BlendMode field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetBlendMode(blendMode DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode) { + d.BlendMode = blendMode + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldBlendMode) +} + +// SetInReplyTo sets the InReplyTo field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetInReplyTo(inReplyTo *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo) { + d.InReplyTo = inReplyTo + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldInReplyTo) +} + +// SetReplyType sets the ReplyType field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetReplyType(replyType *DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyType) { + d.ReplyType = replyType + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldReplyType) +} + +// SetUserID sets the UserID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetUserID(userID *string) { + d.UserID = userID + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldUserID) +} + +// SetGroupID sets the GroupID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetGroupID(groupID *string) { + d.GroupID = groupID + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldGroupID) +} + +// SetCreatedBy sets the CreatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetCreatedBy(createdBy *string) { + d.CreatedBy = createdBy + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldCreatedBy) +} + +// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetUpdatedBy(updatedBy *string) { + d.UpdatedBy = updatedBy + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldUpdatedBy) +} + +// SetActions sets the Actions field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetActions(actions *PdfAnnotationActions) { + d.Actions = actions + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldActions) +} + +// SetRawSubtypeCode sets the RawSubtypeCode field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetRawSubtypeCode(rawSubtypeCode int) { + d.RawSubtypeCode = rawSubtypeCode + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldRawSubtypeCode) +} + +// SetRawSubtypeName sets the RawSubtypeName field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) SetRawSubtypeName(rawSubtypeName *string) { + d.RawSubtypeName = rawSubtypeName + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFieldRawSubtypeName) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) UnmarshalJSON(data []byte) error { + type embed DocAnnotationsList200ResponseAnnotationsItemUnsupported + var unmarshaler = struct { + embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemUnsupported(unmarshaler.embed) + d.Created = unmarshaler.Created.TimePtr() + d.Modified = unmarshaler.Modified.TimePtr() + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemUnsupported + var marshaler = struct { + embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), + Created: internal.NewOptionalDateTime(d.Created), + Modified: internal.NewOptionalDateTime(d.Modified), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupported) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode string + +const ( + DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeNormal DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode = "normal" + DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeMultiply DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode = "multiply" + DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeScreen DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode = "screen" + DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeOverlay DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode = "overlay" + DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeDarken DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode = "darken" + DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeLighten DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode = "lighten" + DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeColorDodge DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode = "color-dodge" + DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeColorBurn DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode = "color-burn" + DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeHardLight DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode = "hard-light" + DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeSoftLight DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode = "soft-light" + DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeDifference DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode = "difference" + DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeExclusion DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode = "exclusion" + DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeHue DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode = "hue" + DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeSaturation DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode = "saturation" + DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeColor DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode = "color" + DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeLuminosity DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode = "luminosity" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode, error) { + switch s { + case "normal": + return DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeNormal, nil + case "multiply": + return DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeMultiply, nil + case "screen": + return DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeScreen, nil + case "overlay": + return DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeOverlay, nil + case "darken": + return DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeDarken, nil + case "lighten": + return DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeLighten, nil + case "color-dodge": + return DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeColorDodge, nil + case "color-burn": + return DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeColorBurn, nil + case "hard-light": + return DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeHardLight, nil + case "soft-light": + return DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeSoftLight, nil + case "difference": + return DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeDifference, nil + case "exclusion": + return DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeExclusion, nil + case "hue": + return DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeHue, nil + case "saturation": + return DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeSaturation, nil + case "color": + return DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeColor, nil + case "luminosity": + return DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendModeLuminosity, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode) Ptr() *DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode { + return &d +} + +var ( + docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldInvisible = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldHidden = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldPrint = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldNoZoom = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldNoRotate = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldNoView = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldReadOnly = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldLocked = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldToggleNoView = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldLockedContents = big.NewInt(1 << 9) +) + +type DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags struct { + Invisible bool `json:"invisible" url:"invisible"` + Hidden bool `json:"hidden" url:"hidden"` + Print bool `json:"print" url:"print"` + NoZoom bool `json:"noZoom" url:"noZoom"` + NoRotate bool `json:"noRotate" url:"noRotate"` + NoView bool `json:"noView" url:"noView"` + ReadOnly bool `json:"readOnly" url:"readOnly"` + Locked bool `json:"locked" url:"locked"` + ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` + LockedContents bool `json:"lockedContents" url:"lockedContents"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) GetInvisible() bool { + if d == nil { + return false + } + return d.Invisible +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) GetHidden() bool { + if d == nil { + return false + } + return d.Hidden +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) GetPrint() bool { + if d == nil { + return false + } + return d.Print +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) GetNoZoom() bool { + if d == nil { + return false + } + return d.NoZoom +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) GetNoRotate() bool { + if d == nil { + return false + } + return d.NoRotate +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) GetNoView() bool { + if d == nil { + return false + } + return d.NoView +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) GetReadOnly() bool { + if d == nil { + return false + } + return d.ReadOnly +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) GetLocked() bool { + if d == nil { + return false + } + return d.Locked +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) GetToggleNoView() bool { + if d == nil { + return false + } + return d.ToggleNoView +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) GetLockedContents() bool { + if d == nil { + return false + } + return d.LockedContents +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetInvisible sets the Invisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) SetInvisible(invisible bool) { + d.Invisible = invisible + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldInvisible) +} + +// SetHidden sets the Hidden field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) SetHidden(hidden bool) { + d.Hidden = hidden + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldHidden) +} + +// SetPrint sets the Print field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) SetPrint(print bool) { + d.Print = print + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldPrint) +} + +// SetNoZoom sets the NoZoom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) SetNoZoom(noZoom bool) { + d.NoZoom = noZoom + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldNoZoom) +} + +// SetNoRotate sets the NoRotate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) SetNoRotate(noRotate bool) { + d.NoRotate = noRotate + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldNoRotate) +} + +// SetNoView sets the NoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) SetNoView(noView bool) { + d.NoView = noView + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldNoView) +} + +// SetReadOnly sets the ReadOnly field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldReadOnly) +} + +// SetLocked sets the Locked field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) SetLocked(locked bool) { + d.Locked = locked + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldLocked) +} + +// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) SetToggleNoView(toggleNoView bool) { + d.ToggleNoView = toggleNoView + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldToggleNoView) +} + +// SetLockedContents sets the LockedContents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) SetLockedContents(lockedContents bool) { + d.LockedContents = lockedContents + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedFlagsFieldLockedContents) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQuality string + +const ( + DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQualityDurable DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQuality = "durable" + DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQualityWeak DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQuality = "weak" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQualityFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQuality, error) { + switch s { + case "durable": + return DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQualityDurable, nil + case "weak": + return DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQualityWeak, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQuality + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQuality) Ptr() *DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQuality { + return &d +} + +type DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo struct { + Kind string + ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber + Nm *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm + Index *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo) GetNm() *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex { + if d == nil { + return nil + } + return d.Index +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value + } + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err + } + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Nm != nil { + return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + } + if d.Index != nil { + return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +} + +type DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber) error + VisitNm(*DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm) error + VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex) error +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) + } + if d.Nm != nil { + return visitor.VisitNm(d.Nm) + } + if d.Index != nil { + return visitor.VisitIndex(d.Index) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Nm != nil { + fields = append(fields, "nm") + } + if d.Index != nil { + fields = append(fields, "index") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil +} + +var ( + docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexFieldRevision = big.NewInt(1 << 2) +) + +type DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision `json:"revision" url:"revision"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexFieldPageObjectNumber) +} + +// SetIndex sets the Index field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexFieldIndex) +} + +// SetRevision sets the Revision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision) { + d.Revision = revision + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexFieldRevision) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +type DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevisionFieldDocSessionID) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevisionFieldPageObjectNumber) +} + +// SetGeneration sets the Generation field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNmFieldNm = big.NewInt(1 << 1) +) + +type DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNmFieldPageObjectNumber) +} + +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNmFieldNm) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +type DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumberFieldPageObjectNumber) +} + +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsList200ResponseAnnotationsItemUnsupportedRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemUnsupportedRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemUnsupportedRectFieldRight = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemUnsupportedRectFieldTop = big.NewInt(1 << 3) +) + +type DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect struct { + Left float64 `json:"left" url:"left"` + Bottom float64 `json:"bottom" url:"bottom"` + Right float64 `json:"right" url:"right"` + Top float64 `json:"top" url:"top"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect) GetLeft() float64 { + if d == nil { + return 0 + } + return d.Left +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect) GetBottom() float64 { + if d == nil { + return 0 + } + return d.Bottom +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect) GetRight() float64 { + if d == nil { + return 0 + } + return d.Right +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect) GetTop() float64 { + if d == nil { + return 0 + } + return d.Top +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetLeft sets the Left field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedRectFieldLeft) +} + +// SetBottom sets the Bottom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedRectFieldBottom) +} + +// SetRight sets the Right field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedRectFieldRight) +} + +// SetTop sets the Top field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedRectFieldTop) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef struct { + Kind string + ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber + Nm *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm + Index *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef) GetNm() *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex { + if d == nil { + return nil + } + return d.Index +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value + } + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err + } + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Nm != nil { + return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + } + if d.Index != nil { + return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +} + +type DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefVisitor interface { + VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber) error + VisitNm(*DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm) error + VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex) error +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) + } + if d.Nm != nil { + return visitor.VisitNm(d.Nm) + } + if d.Index != nil { + return visitor.VisitIndex(d.Index) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Nm != nil { + fields = append(fields, "nm") + } + if d.Index != nil { + fields = append(fields, "index") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil +} + +var ( + docAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexFieldRevision = big.NewInt(1 << 2) +) + +type DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision `json:"revision" url:"revision"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexFieldPageObjectNumber) +} + +// SetIndex sets the Index field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexFieldIndex) +} + +// SetRevision sets the Revision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision) { + d.Revision = revision + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexFieldRevision) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +type DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevisionFieldDocSessionID) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevisionFieldPageObjectNumber) +} + +// SetGeneration sets the Generation field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsList200ResponseAnnotationsItemUnsupportedRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemUnsupportedRefNmFieldNm = big.NewInt(1 << 1) +) + +type DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedRefNmFieldPageObjectNumber) +} + +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedRefNmFieldNm) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +type DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumberFieldPageObjectNumber) +} + +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyType string + +const ( + DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyTypeReply DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyType = "reply" + DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyTypeGroup DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyType = "group" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyTypeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyType, error) { + switch s { + case "reply": + return DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyTypeReply, nil + case "group": + return DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyTypeGroup, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyType) Ptr() *DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyType { + return &d +} + +var ( + docAnnotationsList200ResponseAnnotationsItemWidgetFieldRef = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemWidgetFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemWidgetFieldIndex = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemWidgetFieldIdentityQuality = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemWidgetFieldNm = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemWidgetFieldFlags = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemWidgetFieldRect = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemWidgetFieldContents = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemWidgetFieldSubject = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemWidgetFieldAuthor = big.NewInt(1 << 9) + docAnnotationsList200ResponseAnnotationsItemWidgetFieldCreated = big.NewInt(1 << 10) + docAnnotationsList200ResponseAnnotationsItemWidgetFieldModified = big.NewInt(1 << 11) + docAnnotationsList200ResponseAnnotationsItemWidgetFieldBlendMode = big.NewInt(1 << 12) + docAnnotationsList200ResponseAnnotationsItemWidgetFieldInReplyTo = big.NewInt(1 << 13) + docAnnotationsList200ResponseAnnotationsItemWidgetFieldReplyType = big.NewInt(1 << 14) + docAnnotationsList200ResponseAnnotationsItemWidgetFieldUserID = big.NewInt(1 << 15) + docAnnotationsList200ResponseAnnotationsItemWidgetFieldGroupID = big.NewInt(1 << 16) + docAnnotationsList200ResponseAnnotationsItemWidgetFieldCreatedBy = big.NewInt(1 << 17) + docAnnotationsList200ResponseAnnotationsItemWidgetFieldUpdatedBy = big.NewInt(1 << 18) + docAnnotationsList200ResponseAnnotationsItemWidgetFieldActions = big.NewInt(1 << 19) + docAnnotationsList200ResponseAnnotationsItemWidgetFieldColor = big.NewInt(1 << 20) + docAnnotationsList200ResponseAnnotationsItemWidgetFieldInteriorColor = big.NewInt(1 << 21) + docAnnotationsList200ResponseAnnotationsItemWidgetFieldStrokeWidth = big.NewInt(1 << 22) + docAnnotationsList200ResponseAnnotationsItemWidgetFieldBorderStyle = big.NewInt(1 << 23) + docAnnotationsList200ResponseAnnotationsItemWidgetFieldFontFamily = big.NewInt(1 << 24) + docAnnotationsList200ResponseAnnotationsItemWidgetFieldFontSize = big.NewInt(1 << 25) + docAnnotationsList200ResponseAnnotationsItemWidgetFieldFontColor = big.NewInt(1 << 26) + docAnnotationsList200ResponseAnnotationsItemWidgetFieldTextAlign = big.NewInt(1 << 27) + docAnnotationsList200ResponseAnnotationsItemWidgetFieldFieldObjectNumber = big.NewInt(1 << 28) + docAnnotationsList200ResponseAnnotationsItemWidgetFieldFieldFamily = big.NewInt(1 << 29) +) + +type DocAnnotationsList200ResponseAnnotationsItemWidget struct { + Ref *DocAnnotationsList200ResponseAnnotationsItemWidgetRef `json:"ref" url:"ref"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + IdentityQuality DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQuality `json:"identityQuality" url:"identityQuality"` + Nm *string `json:"nm,omitempty" url:"nm,omitempty"` + Flags *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags `json:"flags" url:"flags"` + Rect *DocAnnotationsList200ResponseAnnotationsItemWidgetRect `json:"rect" url:"rect"` + Contents *string `json:"contents,omitempty" url:"contents,omitempty"` + Subject *string `json:"subject,omitempty" url:"subject,omitempty"` + Author *string `json:"author,omitempty" url:"author,omitempty"` + Created *time.Time `json:"created,omitempty" url:"created,omitempty"` + Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` + BlendMode DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode `json:"blendMode" url:"blendMode"` + InReplyTo *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` + ReplyType *DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` + UserID *string `json:"userId,omitempty" url:"userId,omitempty"` + GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` + CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` + Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` + Color *DocAnnotationsList200ResponseAnnotationsItemWidgetColor `json:"color,omitempty" url:"color,omitempty"` + InteriorColor *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor `json:"interiorColor,omitempty" url:"interiorColor,omitempty"` + StrokeWidth float64 `json:"strokeWidth" url:"strokeWidth"` + BorderStyle DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle `json:"borderStyle" url:"borderStyle"` + FontFamily *DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily `json:"fontFamily,omitempty" url:"fontFamily,omitempty"` + FontSize *float64 `json:"fontSize,omitempty" url:"fontSize,omitempty"` + FontColor *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor `json:"fontColor,omitempty" url:"fontColor,omitempty"` + TextAlign DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign `json:"textAlign" url:"textAlign"` + FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` + FieldFamily DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily `json:"fieldFamily" url:"fieldFamily"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetRef() *DocAnnotationsList200ResponseAnnotationsItemWidgetRef { + if d == nil { + return nil + } + return d.Ref +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetIdentityQuality() DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQuality { + if d == nil { + return "" + } + return d.IdentityQuality +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetNm() *string { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetFlags() *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags { + if d == nil { + return nil + } + return d.Flags +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetRect() *DocAnnotationsList200ResponseAnnotationsItemWidgetRect { + if d == nil { + return nil + } + return d.Rect +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetContents() *string { + if d == nil { + return nil + } + return d.Contents +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetAuthor() *string { + if d == nil { + return nil + } + return d.Author +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetCreated() *time.Time { + if d == nil { + return nil + } + return d.Created +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetModified() *time.Time { + if d == nil { + return nil + } + return d.Modified +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetBlendMode() DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode { + if d == nil { + return "" + } + return d.BlendMode +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetInReplyTo() *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo { + if d == nil { + return nil + } + return d.InReplyTo +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetReplyType() *DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType { + if d == nil { + return nil + } + return d.ReplyType +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetUserID() *string { + if d == nil { + return nil + } + return d.UserID +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetGroupID() *string { + if d == nil { + return nil + } + return d.GroupID +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetCreatedBy() *string { + if d == nil { + return nil + } + return d.CreatedBy +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetUpdatedBy() *string { + if d == nil { + return nil + } + return d.UpdatedBy +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetActions() *PdfAnnotationActions { + if d == nil { + return nil + } + return d.Actions +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetColor() *DocAnnotationsList200ResponseAnnotationsItemWidgetColor { + if d == nil { + return nil + } + return d.Color +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetInteriorColor() *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor { + if d == nil { + return nil + } + return d.InteriorColor +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetStrokeWidth() float64 { + if d == nil { + return 0 + } + return d.StrokeWidth +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetBorderStyle() DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle { + if d == nil { + return "" + } + return d.BorderStyle +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetFontFamily() *DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily { + if d == nil { + return nil + } + return d.FontFamily +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetFontSize() *float64 { + if d == nil { + return nil + } + return d.FontSize +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetFontColor() *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor { + if d == nil { + return nil + } + return d.FontColor +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetTextAlign() DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign { + if d == nil { + return "" + } + return d.TextAlign +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetFieldObjectNumber() int { + if d == nil { + return 0 + } + return d.FieldObjectNumber +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetFieldFamily() DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily { + if d == nil { + return "" + } + return d.FieldFamily +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRef sets the Ref field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetRef(ref *DocAnnotationsList200ResponseAnnotationsItemWidgetRef) { + d.Ref = ref + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldRef) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldPageObjectNumber) +} + +// SetIndex sets the Index field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldIndex) +} + +// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetIdentityQuality(identityQuality DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQuality) { + d.IdentityQuality = identityQuality + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldIdentityQuality) +} + +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetNm(nm *string) { + d.Nm = nm + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldNm) +} + +// SetFlags sets the Flags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetFlags(flags *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) { + d.Flags = flags + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldFlags) +} + +// SetRect sets the Rect field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetRect(rect *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) { + d.Rect = rect + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldRect) +} + +// SetContents sets the Contents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetContents(contents *string) { + d.Contents = contents + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldContents) +} + +// SetSubject sets the Subject field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetSubject(subject *string) { + d.Subject = subject + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldSubject) +} + +// SetAuthor sets the Author field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetAuthor(author *string) { + d.Author = author + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldAuthor) +} + +// SetCreated sets the Created field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetCreated(created *time.Time) { + d.Created = created + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldCreated) +} + +// SetModified sets the Modified field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetModified(modified *time.Time) { + d.Modified = modified + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldModified) +} + +// SetBlendMode sets the BlendMode field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetBlendMode(blendMode DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode) { + d.BlendMode = blendMode + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldBlendMode) +} + +// SetInReplyTo sets the InReplyTo field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetInReplyTo(inReplyTo *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo) { + d.InReplyTo = inReplyTo + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldInReplyTo) +} + +// SetReplyType sets the ReplyType field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetReplyType(replyType *DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType) { + d.ReplyType = replyType + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldReplyType) +} + +// SetUserID sets the UserID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetUserID(userID *string) { + d.UserID = userID + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldUserID) +} + +// SetGroupID sets the GroupID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetGroupID(groupID *string) { + d.GroupID = groupID + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldGroupID) +} + +// SetCreatedBy sets the CreatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetCreatedBy(createdBy *string) { + d.CreatedBy = createdBy + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldCreatedBy) +} + +// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetUpdatedBy(updatedBy *string) { + d.UpdatedBy = updatedBy + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldUpdatedBy) +} + +// SetActions sets the Actions field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetActions(actions *PdfAnnotationActions) { + d.Actions = actions + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldActions) +} + +// SetColor sets the Color field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetColor(color *DocAnnotationsList200ResponseAnnotationsItemWidgetColor) { + d.Color = color + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldColor) +} + +// SetInteriorColor sets the InteriorColor field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetInteriorColor(interiorColor *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) { + d.InteriorColor = interiorColor + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldInteriorColor) +} + +// SetStrokeWidth sets the StrokeWidth field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetStrokeWidth(strokeWidth float64) { + d.StrokeWidth = strokeWidth + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldStrokeWidth) +} + +// SetBorderStyle sets the BorderStyle field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetBorderStyle(borderStyle DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle) { + d.BorderStyle = borderStyle + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldBorderStyle) +} + +// SetFontFamily sets the FontFamily field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetFontFamily(fontFamily *DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily) { + d.FontFamily = fontFamily + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldFontFamily) +} + +// SetFontSize sets the FontSize field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetFontSize(fontSize *float64) { + d.FontSize = fontSize + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldFontSize) +} + +// SetFontColor sets the FontColor field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetFontColor(fontColor *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor) { + d.FontColor = fontColor + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldFontColor) +} + +// SetTextAlign sets the TextAlign field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetTextAlign(textAlign DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign) { + d.TextAlign = textAlign + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldTextAlign) +} + +// SetFieldObjectNumber sets the FieldObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetFieldObjectNumber(fieldObjectNumber int) { + d.FieldObjectNumber = fieldObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldFieldObjectNumber) +} + +// SetFieldFamily sets the FieldFamily field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) SetFieldFamily(fieldFamily DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily) { + d.FieldFamily = fieldFamily + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFieldFieldFamily) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) UnmarshalJSON(data []byte) error { + type embed DocAnnotationsList200ResponseAnnotationsItemWidget + var unmarshaler = struct { + embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemWidget(unmarshaler.embed) + d.Created = unmarshaler.Created.TimePtr() + d.Modified = unmarshaler.Modified.TimePtr() + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemWidget + var marshaler = struct { + embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), + Created: internal.NewOptionalDateTime(d.Created), + Modified: internal.NewOptionalDateTime(d.Modified), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidget) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode string + +const ( + DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeNormal DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode = "normal" + DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeMultiply DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode = "multiply" + DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeScreen DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode = "screen" + DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeOverlay DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode = "overlay" + DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeDarken DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode = "darken" + DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeLighten DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode = "lighten" + DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeColorDodge DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode = "color-dodge" + DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeColorBurn DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode = "color-burn" + DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeHardLight DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode = "hard-light" + DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeSoftLight DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode = "soft-light" + DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeDifference DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode = "difference" + DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeExclusion DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode = "exclusion" + DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeHue DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode = "hue" + DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeSaturation DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode = "saturation" + DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeColor DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode = "color" + DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeLuminosity DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode = "luminosity" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode, error) { + switch s { + case "normal": + return DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeNormal, nil + case "multiply": + return DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeMultiply, nil + case "screen": + return DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeScreen, nil + case "overlay": + return DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeOverlay, nil + case "darken": + return DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeDarken, nil + case "lighten": + return DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeLighten, nil + case "color-dodge": + return DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeColorDodge, nil + case "color-burn": + return DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeColorBurn, nil + case "hard-light": + return DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeHardLight, nil + case "soft-light": + return DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeSoftLight, nil + case "difference": + return DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeDifference, nil + case "exclusion": + return DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeExclusion, nil + case "hue": + return DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeHue, nil + case "saturation": + return DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeSaturation, nil + case "color": + return DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeColor, nil + case "luminosity": + return DocAnnotationsList200ResponseAnnotationsItemWidgetBlendModeLuminosity, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode) Ptr() *DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode { + return &d +} + +type DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle string + +const ( + DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyleSolid DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle = "solid" + DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyleDashed DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle = "dashed" + DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyleBeveled DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle = "beveled" + DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyleInset DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle = "inset" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyleFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle, error) { + switch s { + case "solid": + return DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyleSolid, nil + case "dashed": + return DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyleDashed, nil + case "beveled": + return DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyleBeveled, nil + case "inset": + return DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyleInset, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle) Ptr() *DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle { + return &d +} + +var ( + docAnnotationsList200ResponseAnnotationsItemWidgetColorFieldR = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemWidgetColorFieldG = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemWidgetColorFieldB = big.NewInt(1 << 2) +) + +type DocAnnotationsList200ResponseAnnotationsItemWidgetColor struct { + R int `json:"r" url:"r"` + G int `json:"g" url:"g"` + B int `json:"b" url:"b"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetColor) GetR() int { + if d == nil { + return 0 + } + return d.R +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetColor) GetG() int { + if d == nil { + return 0 + } + return d.G +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetColor) GetB() int { + if d == nil { + return 0 + } + return d.B +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetColor) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetColor) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetR sets the R field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetColor) SetR(r int) { + d.R = r + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetColorFieldR) +} + +// SetG sets the G field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetColor) SetG(g int) { + d.G = g + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetColorFieldG) +} + +// SetB sets the B field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetColor) SetB(b int) { + d.B = b + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetColorFieldB) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetColor + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemWidgetColor(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemWidgetColor + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetColor) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily string + +const ( + DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyText DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily = "text" + DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyCheckbox DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily = "checkbox" + DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyRadio DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily = "radio" + DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyCombobox DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily = "combobox" + DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyListbox DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily = "listbox" + DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyPushbutton DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily = "pushbutton" + DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilySignature DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily = "signature" + DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyUnknown DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily = "unknown" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily, error) { + switch s { + case "text": + return DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyText, nil + case "checkbox": + return DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyCheckbox, nil + case "radio": + return DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyRadio, nil + case "combobox": + return DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyCombobox, nil + case "listbox": + return DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyListbox, nil + case "pushbutton": + return DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyPushbutton, nil + case "signature": + return DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilySignature, nil + case "unknown": + return DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamilyUnknown, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily) Ptr() *DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily { + return &d +} + +var ( + docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldInvisible = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldHidden = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldPrint = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldNoZoom = big.NewInt(1 << 3) + docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldNoRotate = big.NewInt(1 << 4) + docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldNoView = big.NewInt(1 << 5) + docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldReadOnly = big.NewInt(1 << 6) + docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldLocked = big.NewInt(1 << 7) + docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldToggleNoView = big.NewInt(1 << 8) + docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldLockedContents = big.NewInt(1 << 9) +) + +type DocAnnotationsList200ResponseAnnotationsItemWidgetFlags struct { + Invisible bool `json:"invisible" url:"invisible"` + Hidden bool `json:"hidden" url:"hidden"` + Print bool `json:"print" url:"print"` + NoZoom bool `json:"noZoom" url:"noZoom"` + NoRotate bool `json:"noRotate" url:"noRotate"` + NoView bool `json:"noView" url:"noView"` + ReadOnly bool `json:"readOnly" url:"readOnly"` + Locked bool `json:"locked" url:"locked"` + ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` + LockedContents bool `json:"lockedContents" url:"lockedContents"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) GetInvisible() bool { + if d == nil { + return false + } + return d.Invisible +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) GetHidden() bool { + if d == nil { + return false + } + return d.Hidden +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) GetPrint() bool { + if d == nil { + return false + } + return d.Print +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) GetNoZoom() bool { + if d == nil { + return false + } + return d.NoZoom +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) GetNoRotate() bool { + if d == nil { + return false + } + return d.NoRotate +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) GetNoView() bool { + if d == nil { + return false + } + return d.NoView +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) GetReadOnly() bool { + if d == nil { + return false + } + return d.ReadOnly +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) GetLocked() bool { + if d == nil { + return false + } + return d.Locked +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) GetToggleNoView() bool { + if d == nil { + return false + } + return d.ToggleNoView +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) GetLockedContents() bool { + if d == nil { + return false + } + return d.LockedContents +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetInvisible sets the Invisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) SetInvisible(invisible bool) { + d.Invisible = invisible + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldInvisible) +} + +// SetHidden sets the Hidden field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) SetHidden(hidden bool) { + d.Hidden = hidden + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldHidden) +} + +// SetPrint sets the Print field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) SetPrint(print bool) { + d.Print = print + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldPrint) +} + +// SetNoZoom sets the NoZoom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) SetNoZoom(noZoom bool) { + d.NoZoom = noZoom + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldNoZoom) +} + +// SetNoRotate sets the NoRotate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) SetNoRotate(noRotate bool) { + d.NoRotate = noRotate + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldNoRotate) +} + +// SetNoView sets the NoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) SetNoView(noView bool) { + d.NoView = noView + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldNoView) +} + +// SetReadOnly sets the ReadOnly field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldReadOnly) +} + +// SetLocked sets the Locked field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) SetLocked(locked bool) { + d.Locked = locked + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldLocked) +} + +// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) SetToggleNoView(toggleNoView bool) { + d.ToggleNoView = toggleNoView + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldToggleNoView) +} + +// SetLockedContents sets the LockedContents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) SetLockedContents(lockedContents bool) { + d.LockedContents = lockedContents + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFlagsFieldLockedContents) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetFlags + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemWidgetFlags(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemWidgetFlags + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsList200ResponseAnnotationsItemWidgetFontColorFieldR = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemWidgetFontColorFieldG = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemWidgetFontColorFieldB = big.NewInt(1 << 2) +) + +type DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor struct { + R int `json:"r" url:"r"` + G int `json:"g" url:"g"` + B int `json:"b" url:"b"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor) GetR() int { + if d == nil { + return 0 + } + return d.R +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor) GetG() int { + if d == nil { + return 0 + } + return d.G +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor) GetB() int { + if d == nil { + return 0 + } + return d.B +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetR sets the R field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor) SetR(r int) { + d.R = r + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFontColorFieldR) +} + +// SetG sets the G field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor) SetG(g int) { + d.G = g + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFontColorFieldG) +} + +// SetB sets the B field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor) SetB(b int) { + d.B = b + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetFontColorFieldB) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily string + +const ( + DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyCourier DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily = "courier" + DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyCourierBold DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily = "courier-bold" + DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyCourierBoldOblique DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily = "courier-bold-oblique" + DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyCourierOblique DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily = "courier-oblique" + DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyHelvetica DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily = "helvetica" + DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyHelveticaBold DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily = "helvetica-bold" + DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyHelveticaBoldOblique DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily = "helvetica-bold-oblique" + DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyHelveticaOblique DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily = "helvetica-oblique" + DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyTimesRoman DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily = "times-roman" + DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyTimesBold DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily = "times-bold" + DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyTimesBoldItalic DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily = "times-bold-italic" + DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyTimesItalic DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily = "times-italic" + DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilySymbol DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily = "symbol" + DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyZapfDingbats DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily = "zapf-dingbats" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily, error) { + switch s { + case "courier": + return DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyCourier, nil + case "courier-bold": + return DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyCourierBold, nil + case "courier-bold-oblique": + return DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyCourierBoldOblique, nil + case "courier-oblique": + return DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyCourierOblique, nil + case "helvetica": + return DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyHelvetica, nil + case "helvetica-bold": + return DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyHelveticaBold, nil + case "helvetica-bold-oblique": + return DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyHelveticaBoldOblique, nil + case "helvetica-oblique": + return DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyHelveticaOblique, nil + case "times-roman": + return DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyTimesRoman, nil + case "times-bold": + return DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyTimesBold, nil + case "times-bold-italic": + return DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyTimesBoldItalic, nil + case "times-italic": + return DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyTimesItalic, nil + case "symbol": + return DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilySymbol, nil + case "zapf-dingbats": + return DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamilyZapfDingbats, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily) Ptr() *DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily { + return &d +} + +type DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQuality string + +const ( + DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQualityDurable DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQuality = "durable" + DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQualityWeak DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQuality = "weak" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQualityFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQuality, error) { + switch s { + case "durable": + return DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQualityDurable, nil + case "weak": + return DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQualityWeak, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQuality + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQuality) Ptr() *DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQuality { + return &d +} + +type DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo struct { + Kind string + ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber + Nm *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm + Index *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo) GetNm() *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex { + if d == nil { + return nil + } + return d.Index +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value + } + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err + } + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Nm != nil { + return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + } + if d.Index != nil { + return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +} + +type DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber) error + VisitNm(*DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) error + VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) error +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) + } + if d.Nm != nil { + return visitor.VisitNm(d.Nm) + } + if d.Index != nil { + return visitor.VisitIndex(d.Index) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Nm != nil { + fields = append(fields, "nm") + } + if d.Index != nil { + fields = append(fields, "index") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil +} + +var ( + docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexFieldRevision = big.NewInt(1 << 2) +) + +type DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision `json:"revision" url:"revision"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexFieldPageObjectNumber) +} + +// SetIndex sets the Index field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexFieldIndex) +} + +// SetRevision sets the Revision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision) { + d.Revision = revision + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexFieldRevision) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +type DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevisionFieldDocSessionID) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevisionFieldPageObjectNumber) +} + +// SetGeneration sets the Generation field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNmFieldNm = big.NewInt(1 << 1) +) + +type DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNmFieldPageObjectNumber) +} + +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNmFieldNm) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +type DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumberFieldPageObjectNumber) +} + +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsList200ResponseAnnotationsItemWidgetInteriorColorFieldR = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemWidgetInteriorColorFieldG = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemWidgetInteriorColorFieldB = big.NewInt(1 << 2) +) + +type DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor struct { + R int `json:"r" url:"r"` + G int `json:"g" url:"g"` + B int `json:"b" url:"b"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) GetR() int { + if d == nil { + return 0 + } + return d.R +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) GetG() int { + if d == nil { + return 0 + } + return d.G +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) GetB() int { + if d == nil { + return 0 + } + return d.B +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetR sets the R field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) SetR(r int) { + d.R = r + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInteriorColorFieldR) +} + +// SetG sets the G field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) SetG(g int) { + d.G = g + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInteriorColorFieldG) +} + +// SetB sets the B field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) SetB(b int) { + d.B = b + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetInteriorColorFieldB) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsList200ResponseAnnotationsItemWidgetRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemWidgetRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemWidgetRectFieldRight = big.NewInt(1 << 2) + docAnnotationsList200ResponseAnnotationsItemWidgetRectFieldTop = big.NewInt(1 << 3) +) + +type DocAnnotationsList200ResponseAnnotationsItemWidgetRect struct { + Left float64 `json:"left" url:"left"` + Bottom float64 `json:"bottom" url:"bottom"` + Right float64 `json:"right" url:"right"` + Top float64 `json:"top" url:"top"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) GetLeft() float64 { + if d == nil { + return 0 + } + return d.Left +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) GetBottom() float64 { + if d == nil { + return 0 + } + return d.Bottom +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) GetRight() float64 { + if d == nil { + return 0 + } + return d.Right +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) GetTop() float64 { + if d == nil { + return 0 + } + return d.Top +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetLeft sets the Left field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRectFieldLeft) +} + +// SetBottom sets the Bottom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRectFieldBottom) +} + +// SetRight sets the Right field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRectFieldRight) +} + +// SetTop sets the Top field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRectFieldTop) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetRect + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemWidgetRect(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemWidgetRect + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRect) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsList200ResponseAnnotationsItemWidgetRef struct { + Kind string + ObjectNumber *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber + Nm *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm + Index *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRef) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRef) GetObjectNumber() *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRef) GetNm() *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRef) GetIndex() *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex { + if d == nil { + return nil + } + return d.Index +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRef) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value + } + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d DocAnnotationsList200ResponseAnnotationsItemWidgetRef) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err + } + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Nm != nil { + return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + } + if d.Index != nil { + return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +} + +type DocAnnotationsList200ResponseAnnotationsItemWidgetRefVisitor interface { + VisitObjectNumber(*DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) error + VisitNm(*DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) error + VisitIndex(*DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) error +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRef) Accept(visitor DocAnnotationsList200ResponseAnnotationsItemWidgetRefVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) + } + if d.Nm != nil { + return visitor.VisitNm(d.Nm) + } + if d.Index != nil { + return visitor.VisitIndex(d.Index) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRef) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Nm != nil { + fields = append(fields, "nm") + } + if d.Index != nil { + fields = append(fields, "index") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil +} + +var ( + docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexFieldRevision = big.NewInt(1 << 2) +) + +type DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision `json:"revision" url:"revision"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) GetRevision() *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexFieldPageObjectNumber) +} + +// SetIndex sets the Index field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexFieldIndex) +} + +// SetRevision sets the Revision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) SetRevision(revision *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) { + d.Revision = revision + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexFieldRevision) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +type DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevisionFieldDocSessionID) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevisionFieldPageObjectNumber) +} + +// SetGeneration sets the Generation field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsList200ResponseAnnotationsItemWidgetRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemWidgetRefNmFieldNm = big.NewInt(1 << 1) +) + +type DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRefNmFieldPageObjectNumber) +} + +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRefNmFieldNm) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +type DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumberFieldPageObjectNumber) +} + +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType string + +const ( + DocAnnotationsList200ResponseAnnotationsItemWidgetReplyTypeReply DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType = "reply" + DocAnnotationsList200ResponseAnnotationsItemWidgetReplyTypeGroup DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType = "group" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemWidgetReplyTypeFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType, error) { + switch s { + case "reply": + return DocAnnotationsList200ResponseAnnotationsItemWidgetReplyTypeReply, nil + case "group": + return DocAnnotationsList200ResponseAnnotationsItemWidgetReplyTypeGroup, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType) Ptr() *DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType { + return &d +} + +type DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign string + +const ( + DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlignLeft DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign = "left" + DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlignCenter DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign = "center" + DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlignRight DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign = "right" +) + +func NewDocAnnotationsList200ResponseAnnotationsItemWidgetTextAlignFromString(s string) (DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign, error) { + switch s { + case "left": + return DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlignLeft, nil + case "center": + return DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlignCenter, nil + case "right": + return DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlignRight, nil + } + var t DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign) Ptr() *DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign { + return &d +} + +var ( + docAnnotationsList200ResponsePageStateFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsList200ResponsePageStateFieldRevision = big.NewInt(1 << 1) + docAnnotationsList200ResponsePageStateFieldWeakAnnotationState = big.NewInt(1 << 2) +) + +type DocAnnotationsList200ResponsePageState struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Revision *DocAnnotationsList200ResponsePageStateRevision `json:"revision" url:"revision"` + WeakAnnotationState *DocAnnotationsList200ResponsePageStateWeakAnnotationState `json:"weakAnnotationState" url:"weakAnnotationState"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponsePageState) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsList200ResponsePageState) GetRevision() *DocAnnotationsList200ResponsePageStateRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsList200ResponsePageState) GetWeakAnnotationState() *DocAnnotationsList200ResponsePageStateWeakAnnotationState { + if d == nil { + return nil + } + return d.WeakAnnotationState +} + +func (d *DocAnnotationsList200ResponsePageState) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponsePageState) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponsePageState) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponsePageStateFieldPageObjectNumber) +} + +// SetRevision sets the Revision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponsePageState) SetRevision(revision *DocAnnotationsList200ResponsePageStateRevision) { + d.Revision = revision + d.require(docAnnotationsList200ResponsePageStateFieldRevision) +} + +// SetWeakAnnotationState sets the WeakAnnotationState field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponsePageState) SetWeakAnnotationState(weakAnnotationState *DocAnnotationsList200ResponsePageStateWeakAnnotationState) { + d.WeakAnnotationState = weakAnnotationState + d.require(docAnnotationsList200ResponsePageStateFieldWeakAnnotationState) +} + +func (d *DocAnnotationsList200ResponsePageState) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponsePageState + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponsePageState(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponsePageState) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponsePageState + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponsePageState) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsList200ResponsePageStateRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsList200ResponsePageStateRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsList200ResponsePageStateRevisionFieldGeneration = big.NewInt(1 << 2) +) + +type DocAnnotationsList200ResponsePageStateRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponsePageStateRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsList200ResponsePageStateRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsList200ResponsePageStateRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsList200ResponsePageStateRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponsePageStateRevision) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponsePageStateRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsList200ResponsePageStateRevisionFieldDocSessionID) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponsePageStateRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsList200ResponsePageStateRevisionFieldPageObjectNumber) +} + +// SetGeneration sets the Generation field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponsePageStateRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsList200ResponsePageStateRevisionFieldGeneration) +} + +func (d *DocAnnotationsList200ResponsePageStateRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponsePageStateRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponsePageStateRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponsePageStateRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponsePageStateRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponsePageStateRevision) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsList200ResponsePageStateWeakAnnotationState struct { + Kind string + Unknown *DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown + Known *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationState) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationState) GetUnknown() *DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown { + if d == nil { + return nil + } + return d.Unknown +} + +func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationState) GetKnown() *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown { + if d == nil { + return nil + } + return d.Known +} + +func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationState) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "unknown": + value := new(DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Unknown = value + case "known": + value := new(DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Known = value + } + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d DocAnnotationsList200ResponsePageStateWeakAnnotationState) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err + } + if d.Unknown != nil { + return internal.MarshalJSONWithExtraProperty(d.Unknown, "kind", "unknown") + } + if d.Known != nil { + return internal.MarshalJSONWithExtraProperty(d.Known, "kind", "known") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +} + +type DocAnnotationsList200ResponsePageStateWeakAnnotationStateVisitor interface { + VisitUnknown(*DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown) error + VisitKnown(*DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown) error +} + +func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationState) Accept(visitor DocAnnotationsList200ResponsePageStateWeakAnnotationStateVisitor) error { + if d.Unknown != nil { + return visitor.VisitUnknown(d.Unknown) + } + if d.Known != nil { + return visitor.VisitKnown(d.Known) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationState) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.Unknown != nil { + fields = append(fields, "unknown") + } + if d.Known != nil { + fields = append(fields, "known") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil +} + +var ( + docAnnotationsList200ResponsePageStateWeakAnnotationStateKnownFieldHasAnyWeakAnnotations = big.NewInt(1 << 0) +) + +type DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown struct { + HasAnyWeakAnnotations bool `json:"hasAnyWeakAnnotations" url:"hasAnyWeakAnnotations"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown) GetHasAnyWeakAnnotations() bool { + if d == nil { + return false + } + return d.HasAnyWeakAnnotations +} + +func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetHasAnyWeakAnnotations sets the HasAnyWeakAnnotations field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown) SetHasAnyWeakAnnotations(hasAnyWeakAnnotations bool) { + d.HasAnyWeakAnnotations = hasAnyWeakAnnotations + d.require(docAnnotationsList200ResponsePageStateWeakAnnotationStateKnownFieldHasAnyWeakAnnotations) +} + +func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown struct { + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsList404ResponseFieldName = big.NewInt(1 << 0) + docAnnotationsList404ResponseFieldCode = big.NewInt(1 << 1) + docAnnotationsList404ResponseFieldMessage = big.NewInt(1 << 2) + docAnnotationsList404ResponseFieldDetails = big.NewInt(1 << 3) +) + +type DocAnnotationsList404Response struct { + Name DocAnnotationsList404ResponseName `json:"name" url:"name"` + Code DocAnnotationsList404ResponseCode `json:"code" url:"code"` + Message string `json:"message" url:"message"` + Details map[string]any `json:"details,omitempty" url:"details,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsList404Response) GetName() DocAnnotationsList404ResponseName { + if d == nil { + return "" + } + return d.Name +} + +func (d *DocAnnotationsList404Response) GetCode() DocAnnotationsList404ResponseCode { + if d == nil { + return "" + } + return d.Code +} + +func (d *DocAnnotationsList404Response) GetMessage() string { + if d == nil { + return "" + } + return d.Message +} + +func (d *DocAnnotationsList404Response) GetDetails() map[string]any { + if d == nil { + return nil + } + return d.Details +} + +func (d *DocAnnotationsList404Response) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsList404Response) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetName sets the Name field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList404Response) SetName(name DocAnnotationsList404ResponseName) { + d.Name = name + d.require(docAnnotationsList404ResponseFieldName) +} + +// SetCode sets the Code field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList404Response) SetCode(code DocAnnotationsList404ResponseCode) { + d.Code = code + d.require(docAnnotationsList404ResponseFieldCode) +} + +// SetMessage sets the Message field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList404Response) SetMessage(message string) { + d.Message = message + d.require(docAnnotationsList404ResponseFieldMessage) +} + +// SetDetails sets the Details field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsList404Response) SetDetails(details map[string]any) { + d.Details = details + d.require(docAnnotationsList404ResponseFieldDetails) +} + +func (d *DocAnnotationsList404Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsList404Response + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsList404Response(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsList404Response) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsList404Response + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsList404Response) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsList404ResponseCode string + +const ( + DocAnnotationsList404ResponseCodeUnknown DocAnnotationsList404ResponseCode = "Unknown" + DocAnnotationsList404ResponseCodeInvalidArg DocAnnotationsList404ResponseCode = "InvalidArg" + DocAnnotationsList404ResponseCodeDocNotOpen DocAnnotationsList404ResponseCode = "DocNotOpen" + DocAnnotationsList404ResponseCodeDocOpenFailed DocAnnotationsList404ResponseCode = "DocOpenFailed" + DocAnnotationsList404ResponseCodeDocPasswordRequired DocAnnotationsList404ResponseCode = "DocPasswordRequired" + DocAnnotationsList404ResponseCodeDocPasswordIncorrect DocAnnotationsList404ResponseCode = "DocPasswordIncorrect" + DocAnnotationsList404ResponseCodeSharePasswordRequired DocAnnotationsList404ResponseCode = "SharePasswordRequired" + DocAnnotationsList404ResponseCodeAborted DocAnnotationsList404ResponseCode = "Aborted" + DocAnnotationsList404ResponseCodeNetwork DocAnnotationsList404ResponseCode = "Network" + DocAnnotationsList404ResponseCodeUnauthenticated DocAnnotationsList404ResponseCode = "Unauthenticated" + DocAnnotationsList404ResponseCodeForbidden DocAnnotationsList404ResponseCode = "Forbidden" + DocAnnotationsList404ResponseCodeNotFound DocAnnotationsList404ResponseCode = "NotFound" + DocAnnotationsList404ResponseCodeWireFormat DocAnnotationsList404ResponseCode = "WireFormat" + DocAnnotationsList404ResponseCodeRuntimeUnavailable DocAnnotationsList404ResponseCode = "RuntimeUnavailable" + DocAnnotationsList404ResponseCodeInvalidReference DocAnnotationsList404ResponseCode = "InvalidReference" + DocAnnotationsList404ResponseCodeWeakAnnotationSessionConflict DocAnnotationsList404ResponseCode = "WeakAnnotationSessionConflict" + DocAnnotationsList404ResponseCodeLayerVersionConflict DocAnnotationsList404ResponseCode = "LayerVersionConflict" + DocAnnotationsList404ResponseCodeNotImplemented DocAnnotationsList404ResponseCode = "NotImplemented" + DocAnnotationsList404ResponseCodeMalformedPdf DocAnnotationsList404ResponseCode = "MalformedPdf" + DocAnnotationsList404ResponseCodeSigningPending DocAnnotationsList404ResponseCode = "SigningPending" + DocAnnotationsList404ResponseCodeSigningExpired DocAnnotationsList404ResponseCode = "SigningExpired" + DocAnnotationsList404ResponseCodeSigningVersionMismatch DocAnnotationsList404ResponseCode = "SigningVersionMismatch" + DocAnnotationsList404ResponseCodeSignatureRefused DocAnnotationsList404ResponseCode = "SignatureRefused" + DocAnnotationsList404ResponseCodeProtectedDocument DocAnnotationsList404ResponseCode = "ProtectedDocument" + DocAnnotationsList404ResponseCodeStaleBase DocAnnotationsList404ResponseCode = "StaleBase" +) + +func NewDocAnnotationsList404ResponseCodeFromString(s string) (DocAnnotationsList404ResponseCode, error) { + switch s { + case "Unknown": + return DocAnnotationsList404ResponseCodeUnknown, nil + case "InvalidArg": + return DocAnnotationsList404ResponseCodeInvalidArg, nil + case "DocNotOpen": + return DocAnnotationsList404ResponseCodeDocNotOpen, nil + case "DocOpenFailed": + return DocAnnotationsList404ResponseCodeDocOpenFailed, nil + case "DocPasswordRequired": + return DocAnnotationsList404ResponseCodeDocPasswordRequired, nil + case "DocPasswordIncorrect": + return DocAnnotationsList404ResponseCodeDocPasswordIncorrect, nil + case "SharePasswordRequired": + return DocAnnotationsList404ResponseCodeSharePasswordRequired, nil + case "Aborted": + return DocAnnotationsList404ResponseCodeAborted, nil + case "Network": + return DocAnnotationsList404ResponseCodeNetwork, nil + case "Unauthenticated": + return DocAnnotationsList404ResponseCodeUnauthenticated, nil + case "Forbidden": + return DocAnnotationsList404ResponseCodeForbidden, nil + case "NotFound": + return DocAnnotationsList404ResponseCodeNotFound, nil + case "WireFormat": + return DocAnnotationsList404ResponseCodeWireFormat, nil + case "RuntimeUnavailable": + return DocAnnotationsList404ResponseCodeRuntimeUnavailable, nil + case "InvalidReference": + return DocAnnotationsList404ResponseCodeInvalidReference, nil + case "WeakAnnotationSessionConflict": + return DocAnnotationsList404ResponseCodeWeakAnnotationSessionConflict, nil + case "LayerVersionConflict": + return DocAnnotationsList404ResponseCodeLayerVersionConflict, nil + case "NotImplemented": + return DocAnnotationsList404ResponseCodeNotImplemented, nil + case "MalformedPdf": + return DocAnnotationsList404ResponseCodeMalformedPdf, nil + case "SigningPending": + return DocAnnotationsList404ResponseCodeSigningPending, nil + case "SigningExpired": + return DocAnnotationsList404ResponseCodeSigningExpired, nil + case "SigningVersionMismatch": + return DocAnnotationsList404ResponseCodeSigningVersionMismatch, nil + case "SignatureRefused": + return DocAnnotationsList404ResponseCodeSignatureRefused, nil + case "ProtectedDocument": + return DocAnnotationsList404ResponseCodeProtectedDocument, nil + case "StaleBase": + return DocAnnotationsList404ResponseCodeStaleBase, nil + } + var t DocAnnotationsList404ResponseCode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList404ResponseCode) Ptr() *DocAnnotationsList404ResponseCode { + return &d +} + +type DocAnnotationsList404ResponseName string + +const ( + DocAnnotationsList404ResponseNameEngineError DocAnnotationsList404ResponseName = "EngineError" +) + +func NewDocAnnotationsList404ResponseNameFromString(s string) (DocAnnotationsList404ResponseName, error) { + switch s { + case "EngineError": + return DocAnnotationsList404ResponseNameEngineError, nil + } + var t DocAnnotationsList404ResponseName + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsList404ResponseName) Ptr() *DocAnnotationsList404ResponseName { + return &d +} + +var ( + docAnnotationsListAll200ResponseFieldPages = big.NewInt(1 << 0) + docAnnotationsListAll200ResponseFieldAuditHead = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200Response struct { + Pages []*DocAnnotationsListAll200ResponsePagesItem `json:"pages" url:"pages"` + AuditHead *int `json:"auditHead,omitempty" url:"auditHead,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200Response) GetPages() []*DocAnnotationsListAll200ResponsePagesItem { + if d == nil { + return nil + } + return d.Pages +} + +func (d *DocAnnotationsListAll200Response) GetAuditHead() *int { + if d == nil { + return nil + } + return d.AuditHead +} + +func (d *DocAnnotationsListAll200Response) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200Response) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPages sets the Pages field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200Response) SetPages(pages []*DocAnnotationsListAll200ResponsePagesItem) { + d.Pages = pages + d.require(docAnnotationsListAll200ResponseFieldPages) +} + +// SetAuditHead sets the AuditHead field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200Response) SetAuditHead(auditHead *int) { + d.AuditHead = auditHead + d.require(docAnnotationsListAll200ResponseFieldAuditHead) +} + +func (d *DocAnnotationsListAll200Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200Response + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200Response(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200Response) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200Response + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200Response) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsListAll200ResponsePagesItemFieldPageState = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemFieldAnnotations = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItem struct { + PageState *DocAnnotationsListAll200ResponsePagesItemPageState `json:"pageState" url:"pageState"` + Annotations []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItem `json:"annotations" url:"annotations"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItem) GetPageState() *DocAnnotationsListAll200ResponsePagesItemPageState { + if d == nil { + return nil + } + return d.PageState +} + +func (d *DocAnnotationsListAll200ResponsePagesItem) GetAnnotations() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItem { + if d == nil { + return nil + } + return d.Annotations +} + +func (d *DocAnnotationsListAll200ResponsePagesItem) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItem) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPageState sets the PageState field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItem) SetPageState(pageState *DocAnnotationsListAll200ResponsePagesItemPageState) { + d.PageState = pageState + d.require(docAnnotationsListAll200ResponsePagesItemFieldPageState) +} + +// SetAnnotations sets the Annotations field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItem) SetAnnotations(annotations []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) { + d.Annotations = annotations + d.require(docAnnotationsListAll200ResponsePagesItemFieldAnnotations) +} + +func (d *DocAnnotationsListAll200ResponsePagesItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItem + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItem(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItem + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItem) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItem struct { + Subtype string + Highlight *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight + Underline *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline + Squiggly *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly + Strikeout *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout + Circle *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + Square *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare + Polygon *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + Polyline *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + Line *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + Link *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink + Ink *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + FreeText *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText + Caret *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret + Text *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText + Stamp *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp + FileAttachment *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment + Widget *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + Redact *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + Unsupported *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetHighlight() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight { + if d == nil { + return nil + } + return d.Highlight +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetUnderline() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline { + if d == nil { + return nil + } + return d.Underline +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetSquiggly() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly { + if d == nil { + return nil + } + return d.Squiggly +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetStrikeout() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout { + if d == nil { + return nil + } + return d.Strikeout +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetCircle() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle { + if d == nil { + return nil + } + return d.Circle +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetSquare() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare { + if d == nil { + return nil + } + return d.Square +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetPolygon() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon { + if d == nil { + return nil + } + return d.Polygon +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetPolyline() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline { + if d == nil { + return nil + } + return d.Polyline +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetLine() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine { + if d == nil { + return nil + } + return d.Line +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetLink() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink { + if d == nil { + return nil + } + return d.Link +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetInk() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk { + if d == nil { + return nil + } + return d.Ink +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetFreeText() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText { + if d == nil { + return nil + } + return d.FreeText +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetCaret() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret { + if d == nil { + return nil + } + return d.Caret +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetText() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText { + if d == nil { + return nil + } + return d.Text +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetStamp() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp { + if d == nil { + return nil + } + return d.Stamp +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetFileAttachment() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment { + if d == nil { + return nil + } + return d.FileAttachment +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetWidget() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget { + if d == nil { + return nil + } + return d.Widget +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetRedact() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact { + if d == nil { + return nil + } + return d.Redact +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) GetUnsupported() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported { + if d == nil { + return nil + } + return d.Unsupported +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) UnmarshalJSON(data []byte) error { + var unmarshaler struct { Subtype string `json:"subtype"` } if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - d.Subtype = unmarshaler.Subtype - if unmarshaler.Subtype == "" { - return fmt.Errorf("%T did not include discriminant subtype", d) + d.Subtype = unmarshaler.Subtype + if unmarshaler.Subtype == "" { + return fmt.Errorf("%T did not include discriminant subtype", d) + } + switch unmarshaler.Subtype { + case "highlight": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Highlight = value + case "underline": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Underline = value + case "squiggly": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Squiggly = value + case "strikeout": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Strikeout = value + case "circle": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Circle = value + case "square": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Square = value + case "polygon": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Polygon = value + case "polyline": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Polyline = value + case "line": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Line = value + case "link": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Link = value + case "ink": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Ink = value + case "free-text": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.FreeText = value + case "caret": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Caret = value + case "text": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Text = value + case "stamp": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Stamp = value + case "file-attachment": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.FileAttachment = value + case "widget": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Widget = value + case "redact": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Redact = value + case "unsupported": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Unsupported = value + } + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err + } + if d.Highlight != nil { + return internal.MarshalJSONWithExtraProperty(d.Highlight, "subtype", "highlight") + } + if d.Underline != nil { + return internal.MarshalJSONWithExtraProperty(d.Underline, "subtype", "underline") + } + if d.Squiggly != nil { + return internal.MarshalJSONWithExtraProperty(d.Squiggly, "subtype", "squiggly") + } + if d.Strikeout != nil { + return internal.MarshalJSONWithExtraProperty(d.Strikeout, "subtype", "strikeout") + } + if d.Circle != nil { + return internal.MarshalJSONWithExtraProperty(d.Circle, "subtype", "circle") + } + if d.Square != nil { + return internal.MarshalJSONWithExtraProperty(d.Square, "subtype", "square") + } + if d.Polygon != nil { + return internal.MarshalJSONWithExtraProperty(d.Polygon, "subtype", "polygon") + } + if d.Polyline != nil { + return internal.MarshalJSONWithExtraProperty(d.Polyline, "subtype", "polyline") + } + if d.Line != nil { + return internal.MarshalJSONWithExtraProperty(d.Line, "subtype", "line") + } + if d.Link != nil { + return internal.MarshalJSONWithExtraProperty(d.Link, "subtype", "link") + } + if d.Ink != nil { + return internal.MarshalJSONWithExtraProperty(d.Ink, "subtype", "ink") + } + if d.FreeText != nil { + return internal.MarshalJSONWithExtraProperty(d.FreeText, "subtype", "free-text") + } + if d.Caret != nil { + return internal.MarshalJSONWithExtraProperty(d.Caret, "subtype", "caret") + } + if d.Text != nil { + return internal.MarshalJSONWithExtraProperty(d.Text, "subtype", "text") + } + if d.Stamp != nil { + return internal.MarshalJSONWithExtraProperty(d.Stamp, "subtype", "stamp") + } + if d.FileAttachment != nil { + return internal.MarshalJSONWithExtraProperty(d.FileAttachment, "subtype", "file-attachment") + } + if d.Widget != nil { + return internal.MarshalJSONWithExtraProperty(d.Widget, "subtype", "widget") + } + if d.Redact != nil { + return internal.MarshalJSONWithExtraProperty(d.Redact, "subtype", "redact") + } + if d.Unsupported != nil { + return internal.MarshalJSONWithExtraProperty(d.Unsupported, "subtype", "unsupported") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemVisitor interface { + VisitHighlight(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) error + VisitUnderline(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) error + VisitSquiggly(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) error + VisitStrikeout(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) error + VisitCircle(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) error + VisitSquare(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) error + VisitPolygon(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) error + VisitPolyline(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) error + VisitLine(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) error + VisitLink(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) error + VisitInk(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) error + VisitFreeText(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) error + VisitCaret(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) error + VisitText(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) error + VisitStamp(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) error + VisitFileAttachment(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) error + VisitWidget(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) error + VisitRedact(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) error + VisitUnsupported(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) error +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemVisitor) error { + if d.Highlight != nil { + return visitor.VisitHighlight(d.Highlight) + } + if d.Underline != nil { + return visitor.VisitUnderline(d.Underline) + } + if d.Squiggly != nil { + return visitor.VisitSquiggly(d.Squiggly) + } + if d.Strikeout != nil { + return visitor.VisitStrikeout(d.Strikeout) + } + if d.Circle != nil { + return visitor.VisitCircle(d.Circle) + } + if d.Square != nil { + return visitor.VisitSquare(d.Square) + } + if d.Polygon != nil { + return visitor.VisitPolygon(d.Polygon) + } + if d.Polyline != nil { + return visitor.VisitPolyline(d.Polyline) + } + if d.Line != nil { + return visitor.VisitLine(d.Line) + } + if d.Link != nil { + return visitor.VisitLink(d.Link) + } + if d.Ink != nil { + return visitor.VisitInk(d.Ink) + } + if d.FreeText != nil { + return visitor.VisitFreeText(d.FreeText) + } + if d.Caret != nil { + return visitor.VisitCaret(d.Caret) + } + if d.Text != nil { + return visitor.VisitText(d.Text) + } + if d.Stamp != nil { + return visitor.VisitStamp(d.Stamp) + } + if d.FileAttachment != nil { + return visitor.VisitFileAttachment(d.FileAttachment) + } + if d.Widget != nil { + return visitor.VisitWidget(d.Widget) + } + if d.Redact != nil { + return visitor.VisitRedact(d.Redact) + } + if d.Unsupported != nil { + return visitor.VisitUnsupported(d.Unsupported) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.Highlight != nil { + fields = append(fields, "highlight") + } + if d.Underline != nil { + fields = append(fields, "underline") + } + if d.Squiggly != nil { + fields = append(fields, "squiggly") + } + if d.Strikeout != nil { + fields = append(fields, "strikeout") + } + if d.Circle != nil { + fields = append(fields, "circle") + } + if d.Square != nil { + fields = append(fields, "square") + } + if d.Polygon != nil { + fields = append(fields, "polygon") + } + if d.Polyline != nil { + fields = append(fields, "polyline") + } + if d.Line != nil { + fields = append(fields, "line") + } + if d.Link != nil { + fields = append(fields, "link") + } + if d.Ink != nil { + fields = append(fields, "ink") + } + if d.FreeText != nil { + fields = append(fields, "free-text") + } + if d.Caret != nil { + fields = append(fields, "caret") + } + if d.Text != nil { + fields = append(fields, "text") + } + if d.Stamp != nil { + fields = append(fields, "stamp") + } + if d.FileAttachment != nil { + fields = append(fields, "file-attachment") + } + if d.Widget != nil { + fields = append(fields, "widget") + } + if d.Redact != nil { + fields = append(fields, "redact") + } + if d.Unsupported != nil { + fields = append(fields, "unsupported") + } + if len(fields) == 0 { + if d.Subtype != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Subtype) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Subtype != "" { + field := fields[0] + if d.Subtype != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Subtype, + d, + ) + } + } + return nil +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldRef = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldIndex = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldIdentityQuality = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldNm = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldFlags = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldRect = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldContents = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldSubject = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldAuthor = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldCreated = big.NewInt(1 << 10) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldModified = big.NewInt(1 << 11) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldBlendMode = big.NewInt(1 << 12) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldInReplyTo = big.NewInt(1 << 13) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldReplyType = big.NewInt(1 << 14) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldUserID = big.NewInt(1 << 15) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldGroupID = big.NewInt(1 << 16) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldCreatedBy = big.NewInt(1 << 17) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldUpdatedBy = big.NewInt(1 << 18) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldActions = big.NewInt(1 << 19) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldColor = big.NewInt(1 << 20) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldOpacity = big.NewInt(1 << 21) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldIntent = big.NewInt(1 << 22) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldRectDifferences = big.NewInt(1 << 23) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldRotation = big.NewInt(1 << 24) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldUnrotatedRect = big.NewInt(1 << 25) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret struct { + Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef `json:"ref" url:"ref"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality `json:"identityQuality" url:"identityQuality"` + Nm *string `json:"nm,omitempty" url:"nm,omitempty"` + Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags `json:"flags" url:"flags"` + Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect `json:"rect" url:"rect"` + Contents *string `json:"contents,omitempty" url:"contents,omitempty"` + Subject *string `json:"subject,omitempty" url:"subject,omitempty"` + Author *string `json:"author,omitempty" url:"author,omitempty"` + Created *time.Time `json:"created,omitempty" url:"created,omitempty"` + Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` + BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode `json:"blendMode" url:"blendMode"` + InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` + ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` + UserID *string `json:"userId,omitempty" url:"userId,omitempty"` + GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` + CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` + Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` + Color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor `json:"color" url:"color"` + Opacity float64 `json:"opacity" url:"opacity"` + Intent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent `json:"intent,omitempty" url:"intent,omitempty"` + RectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences `json:"rectDifferences,omitempty" url:"rectDifferences,omitempty"` + Rotation *float64 `json:"rotation,omitempty" url:"rotation,omitempty"` + UnrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect `json:"unrotatedRect,omitempty" url:"unrotatedRect,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef { + if d == nil { + return nil + } + return d.Ref +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality { + if d == nil { + return "" + } + return d.IdentityQuality +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetNm() *string { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags { + if d == nil { + return nil + } + return d.Flags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect { + if d == nil { + return nil + } + return d.Rect +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetContents() *string { + if d == nil { + return nil + } + return d.Contents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetAuthor() *string { + if d == nil { + return nil + } + return d.Author +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetCreated() *time.Time { + if d == nil { + return nil + } + return d.Created +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetModified() *time.Time { + if d == nil { + return nil + } + return d.Modified +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode { + if d == nil { + return "" + } + return d.BlendMode +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo { + if d == nil { + return nil + } + return d.InReplyTo +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType { + if d == nil { + return nil + } + return d.ReplyType +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetUserID() *string { + if d == nil { + return nil + } + return d.UserID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetGroupID() *string { + if d == nil { + return nil + } + return d.GroupID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetCreatedBy() *string { + if d == nil { + return nil + } + return d.CreatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetUpdatedBy() *string { + if d == nil { + return nil + } + return d.UpdatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetActions() *PdfAnnotationActions { + if d == nil { + return nil + } + return d.Actions +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor { + if d == nil { + return nil + } + return d.Color +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetOpacity() float64 { + if d == nil { + return 0 + } + return d.Opacity +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetIntent() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent { + if d == nil { + return nil + } + return d.Intent +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetRectDifferences() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences { + if d == nil { + return nil + } + return d.RectDifferences +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetRotation() *float64 { + if d == nil { + return nil + } + return d.Rotation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetUnrotatedRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect { + if d == nil { + return nil + } + return d.UnrotatedRect +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRef sets the Ref field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef) { + d.Ref = ref + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldRef) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldPageObjectNumber) +} + +// SetIndex sets the Index field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldIndex) +} + +// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality) { + d.IdentityQuality = identityQuality + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldIdentityQuality) +} + +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetNm(nm *string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldNm) +} + +// SetFlags sets the Flags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) { + d.Flags = flags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldFlags) +} + +// SetRect sets the Rect field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect) { + d.Rect = rect + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldRect) +} + +// SetContents sets the Contents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetContents(contents *string) { + d.Contents = contents + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldContents) +} + +// SetSubject sets the Subject field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetSubject(subject *string) { + d.Subject = subject + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldSubject) +} + +// SetAuthor sets the Author field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetAuthor(author *string) { + d.Author = author + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldAuthor) +} + +// SetCreated sets the Created field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetCreated(created *time.Time) { + d.Created = created + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldCreated) +} + +// SetModified sets the Modified field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetModified(modified *time.Time) { + d.Modified = modified + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldModified) +} + +// SetBlendMode sets the BlendMode field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode) { + d.BlendMode = blendMode + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldBlendMode) +} + +// SetInReplyTo sets the InReplyTo field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo) { + d.InReplyTo = inReplyTo + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldInReplyTo) +} + +// SetReplyType sets the ReplyType field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType) { + d.ReplyType = replyType + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldReplyType) +} + +// SetUserID sets the UserID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetUserID(userID *string) { + d.UserID = userID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldUserID) +} + +// SetGroupID sets the GroupID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetGroupID(groupID *string) { + d.GroupID = groupID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldGroupID) +} + +// SetCreatedBy sets the CreatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetCreatedBy(createdBy *string) { + d.CreatedBy = createdBy + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldCreatedBy) +} + +// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetUpdatedBy(updatedBy *string) { + d.UpdatedBy = updatedBy + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldUpdatedBy) +} + +// SetActions sets the Actions field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetActions(actions *PdfAnnotationActions) { + d.Actions = actions + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldActions) +} + +// SetColor sets the Color field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetColor(color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor) { + d.Color = color + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldColor) +} + +// SetOpacity sets the Opacity field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetOpacity(opacity float64) { + d.Opacity = opacity + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldOpacity) +} + +// SetIntent sets the Intent field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetIntent(intent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent) { + d.Intent = intent + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldIntent) +} + +// SetRectDifferences sets the RectDifferences field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetRectDifferences(rectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences) { + d.RectDifferences = rectDifferences + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldRectDifferences) +} + +// SetRotation sets the Rotation field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetRotation(rotation *float64) { + d.Rotation = rotation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldRotation) +} + +// SetUnrotatedRect sets the UnrotatedRect field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetUnrotatedRect(unrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect) { + d.UnrotatedRect = unrotatedRect + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldUnrotatedRect) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) UnmarshalJSON(data []byte) error { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret + var unmarshaler = struct { + embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret(unmarshaler.embed) + d.Created = unmarshaler.Created.TimePtr() + d.Modified = unmarshaler.Modified.TimePtr() + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret + var marshaler = struct { + embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), + Created: internal.NewOptionalDateTime(d.Created), + Modified: internal.NewOptionalDateTime(d.Modified), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode = "normal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode = "multiply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode = "screen" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode = "overlay" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode = "darken" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode = "lighten" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode = "color-dodge" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode = "color-burn" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode = "hard-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode = "soft-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode = "difference" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode = "exclusion" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode = "hue" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode = "saturation" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode = "color" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode = "luminosity" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode, error) { + switch s { + case "normal": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeNormal, nil + case "multiply": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeMultiply, nil + case "screen": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeScreen, nil + case "overlay": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeOverlay, nil + case "darken": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeDarken, nil + case "lighten": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeLighten, nil + case "color-dodge": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeColorDodge, nil + case "color-burn": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeColorBurn, nil + case "hard-light": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeHardLight, nil + case "soft-light": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeSoftLight, nil + case "difference": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeDifference, nil + case "exclusion": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeExclusion, nil + case "hue": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeHue, nil + case "saturation": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeSaturation, nil + case "color": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeColor, nil + case "luminosity": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeLuminosity, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColorFieldB = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor struct { + R int `json:"r" url:"r"` + G int `json:"g" url:"g"` + B int `json:"b" url:"b"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor) GetR() int { + if d == nil { + return 0 + } + return d.R +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor) GetG() int { + if d == nil { + return 0 + } + return d.G +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor) GetB() int { + if d == nil { + return 0 + } + return d.B +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetR sets the R field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor) SetR(r int) { + d.R = r + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColorFieldR) +} + +// SetG sets the G field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor) SetG(g int) { + d.G = g + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColorFieldG) +} + +// SetB sets the B field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor) SetB(b int) { + d.B = b + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColorFieldB) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldInvisible = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldHidden = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldPrint = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldNoZoom = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldNoRotate = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldNoView = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldReadOnly = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldLocked = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldToggleNoView = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldLockedContents = big.NewInt(1 << 9) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags struct { + Invisible bool `json:"invisible" url:"invisible"` + Hidden bool `json:"hidden" url:"hidden"` + Print bool `json:"print" url:"print"` + NoZoom bool `json:"noZoom" url:"noZoom"` + NoRotate bool `json:"noRotate" url:"noRotate"` + NoView bool `json:"noView" url:"noView"` + ReadOnly bool `json:"readOnly" url:"readOnly"` + Locked bool `json:"locked" url:"locked"` + ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` + LockedContents bool `json:"lockedContents" url:"lockedContents"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) GetInvisible() bool { + if d == nil { + return false + } + return d.Invisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) GetHidden() bool { + if d == nil { + return false + } + return d.Hidden +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) GetPrint() bool { + if d == nil { + return false + } + return d.Print +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) GetNoZoom() bool { + if d == nil { + return false + } + return d.NoZoom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) GetNoRotate() bool { + if d == nil { + return false + } + return d.NoRotate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) GetNoView() bool { + if d == nil { + return false + } + return d.NoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) GetReadOnly() bool { + if d == nil { + return false + } + return d.ReadOnly +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) GetLocked() bool { + if d == nil { + return false + } + return d.Locked +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) GetToggleNoView() bool { + if d == nil { + return false + } + return d.ToggleNoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) GetLockedContents() bool { + if d == nil { + return false + } + return d.LockedContents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetInvisible sets the Invisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) SetInvisible(invisible bool) { + d.Invisible = invisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldInvisible) +} + +// SetHidden sets the Hidden field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) SetHidden(hidden bool) { + d.Hidden = hidden + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldHidden) +} + +// SetPrint sets the Print field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) SetPrint(print bool) { + d.Print = print + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldPrint) +} + +// SetNoZoom sets the NoZoom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) SetNoZoom(noZoom bool) { + d.NoZoom = noZoom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldNoZoom) +} + +// SetNoRotate sets the NoRotate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) SetNoRotate(noRotate bool) { + d.NoRotate = noRotate + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldNoRotate) +} + +// SetNoView sets the NoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) SetNoView(noView bool) { + d.NoView = noView + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldNoView) +} + +// SetReadOnly sets the ReadOnly field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldReadOnly) +} + +// SetLocked sets the Locked field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) SetLocked(locked bool) { + d.Locked = locked + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldLocked) +} + +// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) SetToggleNoView(toggleNoView bool) { + d.ToggleNoView = toggleNoView + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldToggleNoView) +} + +// SetLockedContents sets the LockedContents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) SetLockedContents(lockedContents bool) { + d.LockedContents = lockedContents + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldLockedContents) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality = "durable" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality = "weak" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality, error) { + switch s { + case "durable": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQualityDurable, nil + case "weak": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQualityWeak, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex { + if d == nil { + return nil + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value + } + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err + } + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Nm != nil { + return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + } + if d.Index != nil { + return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex) error +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) + } + if d.Nm != nil { + return visitor.VisitNm(d.Nm) + } + if d.Index != nil { + return visitor.VisitIndex(d.Index) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Nm != nil { + fields = append(fields, "nm") + } + if d.Index != nil { + fields = append(fields, "index") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexFieldRevision = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision `json:"revision" url:"revision"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexFieldPageObjectNumber) +} + +// SetIndex sets the Index field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexFieldIndex) +} + +// SetRevision sets the Revision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexFieldRevision) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevisionFieldDocSessionID) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevisionFieldPageObjectNumber) +} + +// SetGeneration sets the Generation field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNmFieldNm = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNmFieldPageObjectNumber) +} + +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNmFieldNm) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumberFieldPageObjectNumber) +} + +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntentReplace DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent = "replace" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntentFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent, error) { + switch s { + case "replace": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntentReplace, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectFieldTop = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect struct { + Left float64 `json:"left" url:"left"` + Bottom float64 `json:"bottom" url:"bottom"` + Right float64 `json:"right" url:"right"` + Top float64 `json:"top" url:"top"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect) GetLeft() float64 { + if d == nil { + return 0 + } + return d.Left +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect) GetBottom() float64 { + if d == nil { + return 0 + } + return d.Bottom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect) GetRight() float64 { + if d == nil { + return 0 + } + return d.Right +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect) GetTop() float64 { + if d == nil { + return 0 + } + return d.Top +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetLeft sets the Left field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectFieldLeft) +} + +// SetBottom sets the Bottom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectFieldBottom) +} + +// SetRight sets the Right field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectFieldRight) +} + +// SetTop sets the Top field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectFieldTop) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferencesFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferencesFieldTop = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferencesFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferencesFieldBottom = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences struct { + Left float64 `json:"left" url:"left"` + Top float64 `json:"top" url:"top"` + Right float64 `json:"right" url:"right"` + Bottom float64 `json:"bottom" url:"bottom"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences) GetLeft() float64 { + if d == nil { + return 0 + } + return d.Left +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences) GetTop() float64 { + if d == nil { + return 0 + } + return d.Top +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences) GetRight() float64 { + if d == nil { + return 0 + } + return d.Right +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences) GetBottom() float64 { + if d == nil { + return 0 + } + return d.Bottom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetLeft sets the Left field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferencesFieldLeft) +} + +// SetTop sets the Top field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferencesFieldTop) +} + +// SetRight sets the Right field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferencesFieldRight) +} + +// SetBottom sets the Bottom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferencesFieldBottom) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex { + if d == nil { + return nil + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value + } + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err + } + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Nm != nil { + return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + } + if d.Index != nil { + return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex) error +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) + } + if d.Nm != nil { + return visitor.VisitNm(d.Nm) + } + if d.Index != nil { + return visitor.VisitIndex(d.Index) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Nm != nil { + fields = append(fields, "nm") + } + if d.Index != nil { + fields = append(fields, "index") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexFieldRevision = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision `json:"revision" url:"revision"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexFieldPageObjectNumber) +} + +// SetIndex sets the Index field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexFieldIndex) +} + +// SetRevision sets the Revision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexFieldRevision) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevisionFieldDocSessionID) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevisionFieldPageObjectNumber) +} + +// SetGeneration sets the Generation field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNmFieldNm = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNmFieldPageObjectNumber) +} + +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNmFieldNm) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumberFieldPageObjectNumber) +} + +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType = "reply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType = "group" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType, error) { + switch s { + case "reply": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyTypeReply, nil + case "group": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyTypeGroup, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRectFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRectFieldTop = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect struct { + Left float64 `json:"left" url:"left"` + Bottom float64 `json:"bottom" url:"bottom"` + Right float64 `json:"right" url:"right"` + Top float64 `json:"top" url:"top"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect) GetLeft() float64 { + if d == nil { + return 0 + } + return d.Left +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect) GetBottom() float64 { + if d == nil { + return 0 + } + return d.Bottom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect) GetRight() float64 { + if d == nil { + return 0 + } + return d.Right +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect) GetTop() float64 { + if d == nil { + return 0 + } + return d.Top +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetLeft sets the Left field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRectFieldLeft) +} + +// SetBottom sets the Bottom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRectFieldBottom) +} + +// SetRight sets the Right field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRectFieldRight) +} + +// SetTop sets the Top field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRectFieldTop) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldRef = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldIndex = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldIdentityQuality = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldNm = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldFlags = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldRect = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldContents = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldSubject = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldAuthor = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldCreated = big.NewInt(1 << 10) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldModified = big.NewInt(1 << 11) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldBlendMode = big.NewInt(1 << 12) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldInReplyTo = big.NewInt(1 << 13) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldReplyType = big.NewInt(1 << 14) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldUserID = big.NewInt(1 << 15) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldGroupID = big.NewInt(1 << 16) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldCreatedBy = big.NewInt(1 << 17) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldUpdatedBy = big.NewInt(1 << 18) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldActions = big.NewInt(1 << 19) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldColor = big.NewInt(1 << 20) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldOpacity = big.NewInt(1 << 21) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldStrokeWidth = big.NewInt(1 << 22) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldBorderStyle = big.NewInt(1 << 23) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldDashArray = big.NewInt(1 << 24) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldInteriorColor = big.NewInt(1 << 25) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldCloudyIntensity = big.NewInt(1 << 26) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldRectDifferences = big.NewInt(1 << 27) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldRotation = big.NewInt(1 << 28) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldUnrotatedRect = big.NewInt(1 << 29) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle struct { + Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef `json:"ref" url:"ref"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQuality `json:"identityQuality" url:"identityQuality"` + Nm *string `json:"nm,omitempty" url:"nm,omitempty"` + Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags `json:"flags" url:"flags"` + Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect `json:"rect" url:"rect"` + Contents *string `json:"contents,omitempty" url:"contents,omitempty"` + Subject *string `json:"subject,omitempty" url:"subject,omitempty"` + Author *string `json:"author,omitempty" url:"author,omitempty"` + Created *time.Time `json:"created,omitempty" url:"created,omitempty"` + Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` + BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode `json:"blendMode" url:"blendMode"` + InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` + ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` + UserID *string `json:"userId,omitempty" url:"userId,omitempty"` + GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` + CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` + Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` + Color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor `json:"color" url:"color"` + Opacity float64 `json:"opacity" url:"opacity"` + StrokeWidth float64 `json:"strokeWidth" url:"strokeWidth"` + BorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle `json:"borderStyle" url:"borderStyle"` + DashArray []float64 `json:"dashArray,omitempty" url:"dashArray,omitempty"` + InteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor `json:"interiorColor,omitempty" url:"interiorColor,omitempty"` + CloudyIntensity *float64 `json:"cloudyIntensity,omitempty" url:"cloudyIntensity,omitempty"` + RectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences `json:"rectDifferences,omitempty" url:"rectDifferences,omitempty"` + Rotation *float64 `json:"rotation,omitempty" url:"rotation,omitempty"` + UnrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect `json:"unrotatedRect,omitempty" url:"unrotatedRect,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef { + if d == nil { + return nil + } + return d.Ref +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQuality { + if d == nil { + return "" + } + return d.IdentityQuality +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetNm() *string { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags { + if d == nil { + return nil + } + return d.Flags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect { + if d == nil { + return nil + } + return d.Rect +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetContents() *string { + if d == nil { + return nil + } + return d.Contents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetAuthor() *string { + if d == nil { + return nil + } + return d.Author +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetCreated() *time.Time { + if d == nil { + return nil + } + return d.Created +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetModified() *time.Time { + if d == nil { + return nil + } + return d.Modified +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode { + if d == nil { + return "" + } + return d.BlendMode +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo { + if d == nil { + return nil + } + return d.InReplyTo +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyType { + if d == nil { + return nil + } + return d.ReplyType +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetUserID() *string { + if d == nil { + return nil + } + return d.UserID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetGroupID() *string { + if d == nil { + return nil + } + return d.GroupID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetCreatedBy() *string { + if d == nil { + return nil + } + return d.CreatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetUpdatedBy() *string { + if d == nil { + return nil + } + return d.UpdatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetActions() *PdfAnnotationActions { + if d == nil { + return nil + } + return d.Actions +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor { + if d == nil { + return nil + } + return d.Color +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetOpacity() float64 { + if d == nil { + return 0 + } + return d.Opacity +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetStrokeWidth() float64 { + if d == nil { + return 0 + } + return d.StrokeWidth +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetBorderStyle() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle { + if d == nil { + return "" + } + return d.BorderStyle +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetDashArray() []float64 { + if d == nil { + return nil + } + return d.DashArray +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetInteriorColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor { + if d == nil { + return nil + } + return d.InteriorColor +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetCloudyIntensity() *float64 { + if d == nil { + return nil + } + return d.CloudyIntensity +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetRectDifferences() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences { + if d == nil { + return nil + } + return d.RectDifferences +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetRotation() *float64 { + if d == nil { + return nil + } + return d.Rotation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetUnrotatedRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect { + if d == nil { + return nil + } + return d.UnrotatedRect +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRef sets the Ref field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef) { + d.Ref = ref + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldRef) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldPageObjectNumber) +} + +// SetIndex sets the Index field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldIndex) +} + +// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQuality) { + d.IdentityQuality = identityQuality + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldIdentityQuality) +} + +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetNm(nm *string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldNm) +} + +// SetFlags sets the Flags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) { + d.Flags = flags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldFlags) +} + +// SetRect sets the Rect field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect) { + d.Rect = rect + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldRect) +} + +// SetContents sets the Contents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetContents(contents *string) { + d.Contents = contents + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldContents) +} + +// SetSubject sets the Subject field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetSubject(subject *string) { + d.Subject = subject + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldSubject) +} + +// SetAuthor sets the Author field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetAuthor(author *string) { + d.Author = author + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldAuthor) +} + +// SetCreated sets the Created field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetCreated(created *time.Time) { + d.Created = created + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldCreated) +} + +// SetModified sets the Modified field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetModified(modified *time.Time) { + d.Modified = modified + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldModified) +} + +// SetBlendMode sets the BlendMode field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode) { + d.BlendMode = blendMode + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldBlendMode) +} + +// SetInReplyTo sets the InReplyTo field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo) { + d.InReplyTo = inReplyTo + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldInReplyTo) +} + +// SetReplyType sets the ReplyType field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyType) { + d.ReplyType = replyType + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldReplyType) +} + +// SetUserID sets the UserID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetUserID(userID *string) { + d.UserID = userID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldUserID) +} + +// SetGroupID sets the GroupID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetGroupID(groupID *string) { + d.GroupID = groupID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldGroupID) +} + +// SetCreatedBy sets the CreatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetCreatedBy(createdBy *string) { + d.CreatedBy = createdBy + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldCreatedBy) +} + +// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetUpdatedBy(updatedBy *string) { + d.UpdatedBy = updatedBy + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldUpdatedBy) +} + +// SetActions sets the Actions field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetActions(actions *PdfAnnotationActions) { + d.Actions = actions + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldActions) +} + +// SetColor sets the Color field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetColor(color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor) { + d.Color = color + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldColor) +} + +// SetOpacity sets the Opacity field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetOpacity(opacity float64) { + d.Opacity = opacity + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldOpacity) +} + +// SetStrokeWidth sets the StrokeWidth field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetStrokeWidth(strokeWidth float64) { + d.StrokeWidth = strokeWidth + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldStrokeWidth) +} + +// SetBorderStyle sets the BorderStyle field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetBorderStyle(borderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle) { + d.BorderStyle = borderStyle + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldBorderStyle) +} + +// SetDashArray sets the DashArray field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetDashArray(dashArray []float64) { + d.DashArray = dashArray + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldDashArray) +} + +// SetInteriorColor sets the InteriorColor field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetInteriorColor(interiorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor) { + d.InteriorColor = interiorColor + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldInteriorColor) +} + +// SetCloudyIntensity sets the CloudyIntensity field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetCloudyIntensity(cloudyIntensity *float64) { + d.CloudyIntensity = cloudyIntensity + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldCloudyIntensity) +} + +// SetRectDifferences sets the RectDifferences field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetRectDifferences(rectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences) { + d.RectDifferences = rectDifferences + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldRectDifferences) +} + +// SetRotation sets the Rotation field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetRotation(rotation *float64) { + d.Rotation = rotation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldRotation) +} + +// SetUnrotatedRect sets the UnrotatedRect field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetUnrotatedRect(unrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect) { + d.UnrotatedRect = unrotatedRect + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldUnrotatedRect) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) UnmarshalJSON(data []byte) error { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + var unmarshaler = struct { + embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle(unmarshaler.embed) + d.Created = unmarshaler.Created.TimePtr() + d.Modified = unmarshaler.Modified.TimePtr() + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + var marshaler = struct { + embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), + Created: internal.NewOptionalDateTime(d.Created), + Modified: internal.NewOptionalDateTime(d.Modified), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode = "normal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode = "multiply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode = "screen" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode = "overlay" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode = "darken" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode = "lighten" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode = "color-dodge" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode = "color-burn" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode = "hard-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode = "soft-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode = "difference" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode = "exclusion" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode = "hue" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode = "saturation" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode = "color" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode = "luminosity" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode, error) { + switch s { + case "normal": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeNormal, nil + case "multiply": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeMultiply, nil + case "screen": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeScreen, nil + case "overlay": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeOverlay, nil + case "darken": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeDarken, nil + case "lighten": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeLighten, nil + case "color-dodge": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeColorDodge, nil + case "color-burn": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeColorBurn, nil + case "hard-light": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeHardLight, nil + case "soft-light": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeSoftLight, nil + case "difference": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeDifference, nil + case "exclusion": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeExclusion, nil + case "hue": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeHue, nil + case "saturation": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeSaturation, nil + case "color": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeColor, nil + case "luminosity": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeLuminosity, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyleSolid DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle = "solid" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyleDashed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle = "dashed" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyleBeveled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle = "beveled" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyleInset DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle = "inset" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyleFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle, error) { + switch s { + case "solid": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyleSolid, nil + case "dashed": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyleDashed, nil + case "beveled": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyleBeveled, nil + case "inset": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyleInset, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColorFieldB = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor struct { + R int `json:"r" url:"r"` + G int `json:"g" url:"g"` + B int `json:"b" url:"b"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor) GetR() int { + if d == nil { + return 0 + } + return d.R +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor) GetG() int { + if d == nil { + return 0 + } + return d.G +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor) GetB() int { + if d == nil { + return 0 + } + return d.B +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetR sets the R field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor) SetR(r int) { + d.R = r + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColorFieldR) +} + +// SetG sets the G field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor) SetG(g int) { + d.G = g + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColorFieldG) +} + +// SetB sets the B field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor) SetB(b int) { + d.B = b + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColorFieldB) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldInvisible = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldHidden = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldPrint = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldNoZoom = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldNoRotate = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldNoView = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldReadOnly = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldLocked = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldToggleNoView = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldLockedContents = big.NewInt(1 << 9) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags struct { + Invisible bool `json:"invisible" url:"invisible"` + Hidden bool `json:"hidden" url:"hidden"` + Print bool `json:"print" url:"print"` + NoZoom bool `json:"noZoom" url:"noZoom"` + NoRotate bool `json:"noRotate" url:"noRotate"` + NoView bool `json:"noView" url:"noView"` + ReadOnly bool `json:"readOnly" url:"readOnly"` + Locked bool `json:"locked" url:"locked"` + ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` + LockedContents bool `json:"lockedContents" url:"lockedContents"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) GetInvisible() bool { + if d == nil { + return false + } + return d.Invisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) GetHidden() bool { + if d == nil { + return false + } + return d.Hidden +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) GetPrint() bool { + if d == nil { + return false + } + return d.Print +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) GetNoZoom() bool { + if d == nil { + return false + } + return d.NoZoom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) GetNoRotate() bool { + if d == nil { + return false + } + return d.NoRotate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) GetNoView() bool { + if d == nil { + return false + } + return d.NoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) GetReadOnly() bool { + if d == nil { + return false + } + return d.ReadOnly +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) GetLocked() bool { + if d == nil { + return false + } + return d.Locked +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) GetToggleNoView() bool { + if d == nil { + return false + } + return d.ToggleNoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) GetLockedContents() bool { + if d == nil { + return false + } + return d.LockedContents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetInvisible sets the Invisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) SetInvisible(invisible bool) { + d.Invisible = invisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldInvisible) +} + +// SetHidden sets the Hidden field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) SetHidden(hidden bool) { + d.Hidden = hidden + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldHidden) +} + +// SetPrint sets the Print field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) SetPrint(print bool) { + d.Print = print + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldPrint) +} + +// SetNoZoom sets the NoZoom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) SetNoZoom(noZoom bool) { + d.NoZoom = noZoom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldNoZoom) +} + +// SetNoRotate sets the NoRotate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) SetNoRotate(noRotate bool) { + d.NoRotate = noRotate + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldNoRotate) +} + +// SetNoView sets the NoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) SetNoView(noView bool) { + d.NoView = noView + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldNoView) +} + +// SetReadOnly sets the ReadOnly field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldReadOnly) +} + +// SetLocked sets the Locked field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) SetLocked(locked bool) { + d.Locked = locked + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldLocked) +} + +// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) SetToggleNoView(toggleNoView bool) { + d.ToggleNoView = toggleNoView + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldToggleNoView) +} + +// SetLockedContents sets the LockedContents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) SetLockedContents(lockedContents bool) { + d.LockedContents = lockedContents + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldLockedContents) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQuality string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQuality = "durable" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQuality = "weak" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQuality, error) { + switch s { + case "durable": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQualityDurable, nil + case "weak": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQualityWeak, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQuality + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQuality { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex { + if d == nil { + return nil + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value + } + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err + } + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Nm != nil { + return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + } + if d.Index != nil { + return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex) error +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) + } + if d.Nm != nil { + return visitor.VisitNm(d.Nm) + } + if d.Index != nil { + return visitor.VisitIndex(d.Index) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Nm != nil { + fields = append(fields, "nm") + } + if d.Index != nil { + fields = append(fields, "index") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexFieldRevision = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision `json:"revision" url:"revision"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexFieldPageObjectNumber) +} + +// SetIndex sets the Index field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexFieldIndex) +} + +// SetRevision sets the Revision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexFieldRevision) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevisionFieldDocSessionID) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevisionFieldPageObjectNumber) +} + +// SetGeneration sets the Generation field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNmFieldNm = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNmFieldPageObjectNumber) +} + +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNmFieldNm) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumberFieldPageObjectNumber) +} + +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColorFieldB = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor struct { + R int `json:"r" url:"r"` + G int `json:"g" url:"g"` + B int `json:"b" url:"b"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor) GetR() int { + if d == nil { + return 0 + } + return d.R +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor) GetG() int { + if d == nil { + return 0 + } + return d.G +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor) GetB() int { + if d == nil { + return 0 + } + return d.B +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetR sets the R field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor) SetR(r int) { + d.R = r + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColorFieldR) +} + +// SetG sets the G field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor) SetG(g int) { + d.G = g + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColorFieldG) +} + +// SetB sets the B field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor) SetB(b int) { + d.B = b + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColorFieldB) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectFieldTop = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect struct { + Left float64 `json:"left" url:"left"` + Bottom float64 `json:"bottom" url:"bottom"` + Right float64 `json:"right" url:"right"` + Top float64 `json:"top" url:"top"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect) GetLeft() float64 { + if d == nil { + return 0 + } + return d.Left +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect) GetBottom() float64 { + if d == nil { + return 0 + } + return d.Bottom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect) GetRight() float64 { + if d == nil { + return 0 + } + return d.Right +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect) GetTop() float64 { + if d == nil { + return 0 + } + return d.Top +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetLeft sets the Left field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectFieldLeft) +} + +// SetBottom sets the Bottom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectFieldBottom) +} + +// SetRight sets the Right field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectFieldRight) +} + +// SetTop sets the Top field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectFieldTop) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferencesFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferencesFieldTop = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferencesFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferencesFieldBottom = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences struct { + Left float64 `json:"left" url:"left"` + Top float64 `json:"top" url:"top"` + Right float64 `json:"right" url:"right"` + Bottom float64 `json:"bottom" url:"bottom"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences) GetLeft() float64 { + if d == nil { + return 0 + } + return d.Left +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences) GetTop() float64 { + if d == nil { + return 0 + } + return d.Top +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences) GetRight() float64 { + if d == nil { + return 0 + } + return d.Right +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences) GetBottom() float64 { + if d == nil { + return 0 + } + return d.Bottom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetLeft sets the Left field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferencesFieldLeft) +} + +// SetTop sets the Top field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferencesFieldTop) +} + +// SetRight sets the Right field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferencesFieldRight) +} + +// SetBottom sets the Bottom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferencesFieldBottom) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex { + if d == nil { + return nil + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value + } + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err + } + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Nm != nil { + return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + } + if d.Index != nil { + return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex) error +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) + } + if d.Nm != nil { + return visitor.VisitNm(d.Nm) + } + if d.Index != nil { + return visitor.VisitIndex(d.Index) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Nm != nil { + fields = append(fields, "nm") + } + if d.Index != nil { + fields = append(fields, "index") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexFieldRevision = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision `json:"revision" url:"revision"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexFieldPageObjectNumber) +} + +// SetIndex sets the Index field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexFieldIndex) +} + +// SetRevision sets the Revision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexFieldRevision) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevisionFieldDocSessionID) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevisionFieldPageObjectNumber) +} + +// SetGeneration sets the Generation field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNmFieldNm = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNmFieldPageObjectNumber) +} + +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNmFieldNm) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumberFieldPageObjectNumber) +} + +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyType = "reply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyType = "group" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyType, error) { + switch s { + case "reply": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyTypeReply, nil + case "group": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyTypeGroup, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyType { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRectFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRectFieldTop = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect struct { + Left float64 `json:"left" url:"left"` + Bottom float64 `json:"bottom" url:"bottom"` + Right float64 `json:"right" url:"right"` + Top float64 `json:"top" url:"top"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect) GetLeft() float64 { + if d == nil { + return 0 + } + return d.Left +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect) GetBottom() float64 { + if d == nil { + return 0 + } + return d.Bottom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect) GetRight() float64 { + if d == nil { + return 0 + } + return d.Right +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect) GetTop() float64 { + if d == nil { + return 0 + } + return d.Top +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetLeft sets the Left field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRectFieldLeft) +} + +// SetBottom sets the Bottom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRectFieldBottom) +} + +// SetRight sets the Right field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRectFieldRight) +} + +// SetTop sets the Top field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRectFieldTop) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldRef = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldIndex = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldIdentityQuality = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldNm = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldFlags = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldRect = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldContents = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldSubject = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldAuthor = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldCreated = big.NewInt(1 << 10) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldModified = big.NewInt(1 << 11) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldBlendMode = big.NewInt(1 << 12) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldInReplyTo = big.NewInt(1 << 13) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldReplyType = big.NewInt(1 << 14) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldUserID = big.NewInt(1 << 15) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldGroupID = big.NewInt(1 << 16) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldCreatedBy = big.NewInt(1 << 17) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldUpdatedBy = big.NewInt(1 << 18) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldActions = big.NewInt(1 << 19) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldColor = big.NewInt(1 << 20) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldOpacity = big.NewInt(1 << 21) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldIcon = big.NewInt(1 << 22) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldFile = big.NewInt(1 << 23) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment struct { + Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef `json:"ref" url:"ref"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQuality `json:"identityQuality" url:"identityQuality"` + Nm *string `json:"nm,omitempty" url:"nm,omitempty"` + Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags `json:"flags" url:"flags"` + Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect `json:"rect" url:"rect"` + Contents *string `json:"contents,omitempty" url:"contents,omitempty"` + Subject *string `json:"subject,omitempty" url:"subject,omitempty"` + Author *string `json:"author,omitempty" url:"author,omitempty"` + Created *time.Time `json:"created,omitempty" url:"created,omitempty"` + Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` + BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode `json:"blendMode" url:"blendMode"` + InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` + ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` + UserID *string `json:"userId,omitempty" url:"userId,omitempty"` + GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` + CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` + Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` + Color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor `json:"color" url:"color"` + Opacity float64 `json:"opacity" url:"opacity"` + Icon DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon `json:"icon" url:"icon"` + File *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile `json:"file" url:"file"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef { + if d == nil { + return nil + } + return d.Ref +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQuality { + if d == nil { + return "" + } + return d.IdentityQuality +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetNm() *string { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags { + if d == nil { + return nil + } + return d.Flags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect { + if d == nil { + return nil + } + return d.Rect +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetContents() *string { + if d == nil { + return nil + } + return d.Contents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetAuthor() *string { + if d == nil { + return nil + } + return d.Author +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetCreated() *time.Time { + if d == nil { + return nil + } + return d.Created +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetModified() *time.Time { + if d == nil { + return nil + } + return d.Modified +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode { + if d == nil { + return "" + } + return d.BlendMode +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo { + if d == nil { + return nil + } + return d.InReplyTo +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyType { + if d == nil { + return nil + } + return d.ReplyType +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetUserID() *string { + if d == nil { + return nil + } + return d.UserID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetGroupID() *string { + if d == nil { + return nil + } + return d.GroupID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetCreatedBy() *string { + if d == nil { + return nil + } + return d.CreatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetUpdatedBy() *string { + if d == nil { + return nil + } + return d.UpdatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetActions() *PdfAnnotationActions { + if d == nil { + return nil + } + return d.Actions +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor { + if d == nil { + return nil + } + return d.Color +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetOpacity() float64 { + if d == nil { + return 0 + } + return d.Opacity +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetIcon() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon { + if d == nil { + return "" + } + return d.Icon +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetFile() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile { + if d == nil { + return nil + } + return d.File +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRef sets the Ref field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef) { + d.Ref = ref + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldRef) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldPageObjectNumber) +} + +// SetIndex sets the Index field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldIndex) +} + +// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQuality) { + d.IdentityQuality = identityQuality + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldIdentityQuality) +} + +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetNm(nm *string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldNm) +} + +// SetFlags sets the Flags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) { + d.Flags = flags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldFlags) +} + +// SetRect sets the Rect field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect) { + d.Rect = rect + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldRect) +} + +// SetContents sets the Contents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetContents(contents *string) { + d.Contents = contents + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldContents) +} + +// SetSubject sets the Subject field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetSubject(subject *string) { + d.Subject = subject + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldSubject) +} + +// SetAuthor sets the Author field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetAuthor(author *string) { + d.Author = author + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldAuthor) +} + +// SetCreated sets the Created field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetCreated(created *time.Time) { + d.Created = created + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldCreated) +} + +// SetModified sets the Modified field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetModified(modified *time.Time) { + d.Modified = modified + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldModified) +} + +// SetBlendMode sets the BlendMode field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode) { + d.BlendMode = blendMode + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldBlendMode) +} + +// SetInReplyTo sets the InReplyTo field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo) { + d.InReplyTo = inReplyTo + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldInReplyTo) +} + +// SetReplyType sets the ReplyType field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyType) { + d.ReplyType = replyType + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldReplyType) +} + +// SetUserID sets the UserID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetUserID(userID *string) { + d.UserID = userID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldUserID) +} + +// SetGroupID sets the GroupID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetGroupID(groupID *string) { + d.GroupID = groupID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldGroupID) +} + +// SetCreatedBy sets the CreatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetCreatedBy(createdBy *string) { + d.CreatedBy = createdBy + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldCreatedBy) +} + +// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetUpdatedBy(updatedBy *string) { + d.UpdatedBy = updatedBy + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldUpdatedBy) +} + +// SetActions sets the Actions field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetActions(actions *PdfAnnotationActions) { + d.Actions = actions + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldActions) +} + +// SetColor sets the Color field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetColor(color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor) { + d.Color = color + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldColor) +} + +// SetOpacity sets the Opacity field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetOpacity(opacity float64) { + d.Opacity = opacity + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldOpacity) +} + +// SetIcon sets the Icon field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetIcon(icon DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon) { + d.Icon = icon + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldIcon) +} + +// SetFile sets the File field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetFile(file *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) { + d.File = file + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldFile) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) UnmarshalJSON(data []byte) error { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment + var unmarshaler = struct { + embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment(unmarshaler.embed) + d.Created = unmarshaler.Created.TimePtr() + d.Modified = unmarshaler.Modified.TimePtr() + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment + var marshaler = struct { + embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), + Created: internal.NewOptionalDateTime(d.Created), + Modified: internal.NewOptionalDateTime(d.Modified), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode = "normal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode = "multiply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode = "screen" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode = "overlay" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode = "darken" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode = "lighten" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode = "color-dodge" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode = "color-burn" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode = "hard-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode = "soft-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode = "difference" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode = "exclusion" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode = "hue" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode = "saturation" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode = "color" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode = "luminosity" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode, error) { + switch s { + case "normal": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeNormal, nil + case "multiply": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeMultiply, nil + case "screen": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeScreen, nil + case "overlay": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeOverlay, nil + case "darken": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeDarken, nil + case "lighten": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeLighten, nil + case "color-dodge": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeColorDodge, nil + case "color-burn": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeColorBurn, nil + case "hard-light": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeHardLight, nil + case "soft-light": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeSoftLight, nil + case "difference": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeDifference, nil + case "exclusion": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeExclusion, nil + case "hue": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeHue, nil + case "saturation": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeSaturation, nil + case "color": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeColor, nil + case "luminosity": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeLuminosity, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColorFieldB = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor struct { + R int `json:"r" url:"r"` + G int `json:"g" url:"g"` + B int `json:"b" url:"b"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor) GetR() int { + if d == nil { + return 0 + } + return d.R +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor) GetG() int { + if d == nil { + return 0 + } + return d.G +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor) GetB() int { + if d == nil { + return 0 + } + return d.B +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetR sets the R field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor) SetR(r int) { + d.R = r + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColorFieldR) +} + +// SetG sets the G field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor) SetG(g int) { + d.G = g + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColorFieldG) +} + +// SetB sets the B field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor) SetB(b int) { + d.B = b + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColorFieldB) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFileFieldName = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFileFieldMimeType = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFileFieldDescription = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFileFieldSize = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFileFieldChecksum = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFileFieldCreationDate = big.NewInt(1 << 5) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile struct { + Name string `json:"name" url:"name"` + MimeType *string `json:"mimeType,omitempty" url:"mimeType,omitempty"` + Description *string `json:"description,omitempty" url:"description,omitempty"` + Size *int `json:"size,omitempty" url:"size,omitempty"` + Checksum *string `json:"checksum,omitempty" url:"checksum,omitempty"` + CreationDate *string `json:"creationDate,omitempty" url:"creationDate,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) GetName() string { + if d == nil { + return "" + } + return d.Name +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) GetMimeType() *string { + if d == nil { + return nil + } + return d.MimeType +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) GetDescription() *string { + if d == nil { + return nil + } + return d.Description +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) GetSize() *int { + if d == nil { + return nil + } + return d.Size +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) GetChecksum() *string { + if d == nil { + return nil + } + return d.Checksum +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) GetCreationDate() *string { + if d == nil { + return nil + } + return d.CreationDate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetName sets the Name field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) SetName(name string) { + d.Name = name + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFileFieldName) +} + +// SetMimeType sets the MimeType field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) SetMimeType(mimeType *string) { + d.MimeType = mimeType + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFileFieldMimeType) +} + +// SetDescription sets the Description field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) SetDescription(description *string) { + d.Description = description + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFileFieldDescription) +} + +// SetSize sets the Size field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) SetSize(size *int) { + d.Size = size + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFileFieldSize) +} + +// SetChecksum sets the Checksum field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) SetChecksum(checksum *string) { + d.Checksum = checksum + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFileFieldChecksum) +} + +// SetCreationDate sets the CreationDate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) SetCreationDate(creationDate *string) { + d.CreationDate = creationDate + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFileFieldCreationDate) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldInvisible = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldHidden = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldPrint = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldNoZoom = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldNoRotate = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldNoView = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldReadOnly = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldLocked = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldToggleNoView = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldLockedContents = big.NewInt(1 << 9) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags struct { + Invisible bool `json:"invisible" url:"invisible"` + Hidden bool `json:"hidden" url:"hidden"` + Print bool `json:"print" url:"print"` + NoZoom bool `json:"noZoom" url:"noZoom"` + NoRotate bool `json:"noRotate" url:"noRotate"` + NoView bool `json:"noView" url:"noView"` + ReadOnly bool `json:"readOnly" url:"readOnly"` + Locked bool `json:"locked" url:"locked"` + ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` + LockedContents bool `json:"lockedContents" url:"lockedContents"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) GetInvisible() bool { + if d == nil { + return false + } + return d.Invisible +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) GetHidden() bool { + if d == nil { + return false + } + return d.Hidden +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) GetPrint() bool { + if d == nil { + return false + } + return d.Print +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) GetNoZoom() bool { + if d == nil { + return false + } + return d.NoZoom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) GetNoRotate() bool { + if d == nil { + return false + } + return d.NoRotate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) GetNoView() bool { + if d == nil { + return false + } + return d.NoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) GetReadOnly() bool { + if d == nil { + return false + } + return d.ReadOnly +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) GetLocked() bool { + if d == nil { + return false + } + return d.Locked +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) GetToggleNoView() bool { + if d == nil { + return false + } + return d.ToggleNoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) GetLockedContents() bool { + if d == nil { + return false + } + return d.LockedContents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetInvisible sets the Invisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) SetInvisible(invisible bool) { + d.Invisible = invisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldInvisible) +} + +// SetHidden sets the Hidden field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) SetHidden(hidden bool) { + d.Hidden = hidden + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldHidden) +} + +// SetPrint sets the Print field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) SetPrint(print bool) { + d.Print = print + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldPrint) +} + +// SetNoZoom sets the NoZoom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) SetNoZoom(noZoom bool) { + d.NoZoom = noZoom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldNoZoom) +} + +// SetNoRotate sets the NoRotate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) SetNoRotate(noRotate bool) { + d.NoRotate = noRotate + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldNoRotate) +} + +// SetNoView sets the NoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) SetNoView(noView bool) { + d.NoView = noView + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldNoView) +} + +// SetReadOnly sets the ReadOnly field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldReadOnly) +} + +// SetLocked sets the Locked field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) SetLocked(locked bool) { + d.Locked = locked + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldLocked) +} + +// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) SetToggleNoView(toggleNoView bool) { + d.ToggleNoView = toggleNoView + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldToggleNoView) +} + +// SetLockedContents sets the LockedContents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) SetLockedContents(lockedContents bool) { + d.LockedContents = lockedContents + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldLockedContents) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIconPushPin DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon = "push-pin" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIconPaperclip DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon = "paperclip" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIconGraph DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon = "graph" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIconTag DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon = "tag" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIconFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon, error) { + switch s { + case "push-pin": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIconPushPin, nil + case "paperclip": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIconPaperclip, nil + case "graph": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIconGraph, nil + case "tag": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIconTag, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQuality string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQuality = "durable" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQuality = "weak" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQuality, error) { + switch s { + case "durable": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQualityDurable, nil + case "weak": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQualityWeak, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQuality + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQuality { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex { + if d == nil { + return nil + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) } - switch unmarshaler.Subtype { - case "highlight": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Highlight = value - case "underline": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Underline = value - case "squiggly": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Squiggly = value - case "strikeout": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Strikeout = value - case "circle": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Circle = value - case "square": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Square = value - case "polygon": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Polygon = value - case "polyline": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Polyline = value - case "line": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Line = value - case "link": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Link = value - case "ink": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Ink = value - case "free-text": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.FreeText = value - case "caret": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Caret = value - case "text": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Text = value - case "stamp": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Stamp = value - case "file-attachment": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.FileAttachment = value - case "widget": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber) if err := json.Unmarshal(data, &value); err != nil { return err } - d.Widget = value - case "redact": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm) if err := json.Unmarshal(data, &value); err != nil { return err } - d.Redact = value - case "unsupported": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) + d.Nm = value + case "index": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex) if err := json.Unmarshal(data, &value); err != nil { return err } - d.Unsupported = value + d.Index = value } d.rawJSON = json.RawMessage(data) return nil } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } - if d.Highlight != nil { - return internal.MarshalJSONWithExtraProperty(d.Highlight, "subtype", "highlight") + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") } - if d.Underline != nil { - return internal.MarshalJSONWithExtraProperty(d.Underline, "subtype", "underline") + if d.Nm != nil { + return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") } - if d.Squiggly != nil { - return internal.MarshalJSONWithExtraProperty(d.Squiggly, "subtype", "squiggly") + if d.Index != nil { + return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex) error +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) + } + if d.Nm != nil { + return visitor.VisitNm(d.Nm) + } + if d.Index != nil { + return visitor.VisitIndex(d.Index) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Nm != nil { + fields = append(fields, "nm") + } + if d.Index != nil { + fields = append(fields, "index") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexFieldRevision = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision `json:"revision" url:"revision"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexFieldPageObjectNumber) +} + +// SetIndex sets the Index field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexFieldIndex) +} + +// SetRevision sets the Revision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexFieldRevision) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevisionFieldDocSessionID) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevisionFieldPageObjectNumber) +} + +// SetGeneration sets the Generation field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), } - if d.Strikeout != nil { - return internal.MarshalJSONWithExtraProperty(d.Strikeout, "subtype", "strikeout") + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision) String() string { + if d == nil { + return "" } - if d.Circle != nil { - return internal.MarshalJSONWithExtraProperty(d.Circle, "subtype", "circle") + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } } - if d.Square != nil { - return internal.MarshalJSONWithExtraProperty(d.Square, "subtype", "square") + if value, err := internal.StringifyJSON(d); err == nil { + return value } - if d.Polygon != nil { - return internal.MarshalJSONWithExtraProperty(d.Polygon, "subtype", "polygon") + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNmFieldNm = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm) GetPageObjectNumber() int { + if d == nil { + return 0 } - if d.Polyline != nil { - return internal.MarshalJSONWithExtraProperty(d.Polyline, "subtype", "polyline") + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm) GetNm() string { + if d == nil { + return "" } - if d.Line != nil { - return internal.MarshalJSONWithExtraProperty(d.Line, "subtype", "line") + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil } - if d.Link != nil { - return internal.MarshalJSONWithExtraProperty(d.Link, "subtype", "link") + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - if d.Ink != nil { - return internal.MarshalJSONWithExtraProperty(d.Ink, "subtype", "ink") + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNmFieldPageObjectNumber) +} + +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNmFieldNm) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - if d.FreeText != nil { - return internal.MarshalJSONWithExtraProperty(d.FreeText, "subtype", "free-text") + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err } - if d.Caret != nil { - return internal.MarshalJSONWithExtraProperty(d.Caret, "subtype", "caret") + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm + var marshaler = struct { + embed + }{ + embed: embed(*d), } - if d.Text != nil { - return internal.MarshalJSONWithExtraProperty(d.Text, "subtype", "text") + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm) String() string { + if d == nil { + return "" } - if d.Stamp != nil { - return internal.MarshalJSONWithExtraProperty(d.Stamp, "subtype", "stamp") + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } } - if d.FileAttachment != nil { - return internal.MarshalJSONWithExtraProperty(d.FileAttachment, "subtype", "file-attachment") + if value, err := internal.StringifyJSON(d); err == nil { + return value } - if d.Widget != nil { - return internal.MarshalJSONWithExtraProperty(d.Widget, "subtype", "widget") + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 } - if d.Redact != nil { - return internal.MarshalJSONWithExtraProperty(d.Redact, "subtype", "redact") + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 } - if d.Unsupported != nil { - return internal.MarshalJSONWithExtraProperty(d.Unsupported, "subtype", "unsupported") + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) + d.explicitFields.Or(d.explicitFields, field) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemVisitor interface { - VisitHighlight(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) error - VisitUnderline(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) error - VisitSquiggly(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) error - VisitStrikeout(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) error - VisitCircle(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) error - VisitSquare(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) error - VisitPolygon(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) error - VisitPolyline(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) error - VisitLine(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) error - VisitLink(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) error - VisitInk(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) error - VisitFreeText(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) error - VisitCaret(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) error - VisitText(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) error - VisitStamp(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) error - VisitFileAttachment(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) error - VisitWidget(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) error - VisitRedact(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) error - VisitUnsupported(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) error +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumberFieldPageObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemVisitor) error { - if d.Highlight != nil { - return visitor.VisitHighlight(d.Highlight) - } - if d.Underline != nil { - return visitor.VisitUnderline(d.Underline) +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - if d.Squiggly != nil { - return visitor.VisitSquiggly(d.Squiggly) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err } - if d.Strikeout != nil { - return visitor.VisitStrikeout(d.Strikeout) + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), } - if d.Circle != nil { - return visitor.VisitCircle(d.Circle) + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber) String() string { + if d == nil { + return "" } - if d.Square != nil { - return visitor.VisitSquare(d.Square) + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } } - if d.Polygon != nil { - return visitor.VisitPolygon(d.Polygon) + if value, err := internal.StringifyJSON(d); err == nil { + return value } - if d.Polyline != nil { - return visitor.VisitPolyline(d.Polyline) + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRectFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRectFieldTop = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect struct { + Left float64 `json:"left" url:"left"` + Bottom float64 `json:"bottom" url:"bottom"` + Right float64 `json:"right" url:"right"` + Top float64 `json:"top" url:"top"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect) GetLeft() float64 { + if d == nil { + return 0 } - if d.Line != nil { - return visitor.VisitLine(d.Line) + return d.Left +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect) GetBottom() float64 { + if d == nil { + return 0 } - if d.Link != nil { - return visitor.VisitLink(d.Link) + return d.Bottom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect) GetRight() float64 { + if d == nil { + return 0 } - if d.Ink != nil { - return visitor.VisitInk(d.Ink) + return d.Right +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect) GetTop() float64 { + if d == nil { + return 0 } - if d.FreeText != nil { - return visitor.VisitFreeText(d.FreeText) + return d.Top +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil } - if d.Caret != nil { - return visitor.VisitCaret(d.Caret) + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - if d.Text != nil { - return visitor.VisitText(d.Text) + d.explicitFields.Or(d.explicitFields, field) +} + +// SetLeft sets the Left field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRectFieldLeft) +} + +// SetBottom sets the Bottom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRectFieldBottom) +} + +// SetRight sets the Right field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRectFieldRight) +} + +// SetTop sets the Top field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRectFieldTop) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - if d.Stamp != nil { - return visitor.VisitStamp(d.Stamp) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err } - if d.FileAttachment != nil { - return visitor.VisitFileAttachment(d.FileAttachment) + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect + var marshaler = struct { + embed + }{ + embed: embed(*d), } - if d.Widget != nil { - return visitor.VisitWidget(d.Widget) + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect) String() string { + if d == nil { + return "" } - if d.Redact != nil { - return visitor.VisitRedact(d.Redact) + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } } - if d.Unsupported != nil { - return visitor.VisitUnsupported(d.Unsupported) + if value, err := internal.StringifyJSON(d); err == nil { + return value } - return fmt.Errorf("type %T does not define a non-empty union type", d) + return fmt.Sprintf("%#v", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) validate() error { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef) GetKind() string { if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.Highlight != nil { - fields = append(fields, "highlight") + return "" } - if d.Underline != nil { - fields = append(fields, "underline") + return d.Kind +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber { + if d == nil { + return nil } - if d.Squiggly != nil { - fields = append(fields, "squiggly") + return d.ObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm { + if d == nil { + return nil } - if d.Strikeout != nil { - fields = append(fields, "strikeout") + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex { + if d == nil { + return nil } - if d.Circle != nil { - fields = append(fields, "circle") + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` } - if d.Square != nil { - fields = append(fields, "square") + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err } - if d.Polygon != nil { - fields = append(fields, "polygon") + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) } - if d.Polyline != nil { - fields = append(fields, "polyline") + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value } - if d.Line != nil { - fields = append(fields, "line") + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err } - if d.Link != nil { - fields = append(fields, "link") + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") } - if d.Ink != nil { - fields = append(fields, "ink") + if d.Nm != nil { + return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") } - if d.FreeText != nil { - fields = append(fields, "free-text") + if d.Index != nil { + return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") } - if d.Caret != nil { - fields = append(fields, "caret") + if len(d.rawJSON) > 0 { + return d.rawJSON, nil } - if d.Text != nil { - fields = append(fields, "text") + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex) error +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) } - if d.Stamp != nil { - fields = append(fields, "stamp") + if d.Nm != nil { + return visitor.VisitNm(d.Nm) } - if d.FileAttachment != nil { - fields = append(fields, "file-attachment") + if d.Index != nil { + return visitor.VisitIndex(d.Index) } - if d.Widget != nil { - fields = append(fields, "widget") + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) } - if d.Redact != nil { - fields = append(fields, "redact") + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") } - if d.Unsupported != nil { - fields = append(fields, "unsupported") + if d.Nm != nil { + fields = append(fields, "nm") + } + if d.Index != nil { + fields = append(fields, "index") } if len(fields) == 0 { - if d.Subtype != "" { + if d.Kind != "" { if len(d.rawJSON) > 0 { return nil } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Subtype) + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) } return fmt.Errorf("type %T is empty", d) } if len(fields) > 1 { return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) } - if d.Subtype != "" { + if d.Kind != "" { field := fields[0] - if d.Subtype != field { + if d.Kind != field { return fmt.Errorf( "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", d, - d.Subtype, + d.Kind, d, ) } @@ -58765,61 +73715,15 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem) validate() er } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldRef = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldIndex = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldIdentityQuality = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldNm = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldFlags = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldRect = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldContents = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldSubject = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldAuthor = big.NewInt(1 << 9) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldCreated = big.NewInt(1 << 10) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldModified = big.NewInt(1 << 11) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldBlendMode = big.NewInt(1 << 12) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldInReplyTo = big.NewInt(1 << 13) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldReplyType = big.NewInt(1 << 14) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldUserID = big.NewInt(1 << 15) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldGroupID = big.NewInt(1 << 16) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldCreatedBy = big.NewInt(1 << 17) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldUpdatedBy = big.NewInt(1 << 18) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldActions = big.NewInt(1 << 19) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldColor = big.NewInt(1 << 20) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldOpacity = big.NewInt(1 << 21) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldIntent = big.NewInt(1 << 22) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldRectDifferences = big.NewInt(1 << 23) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldRotation = big.NewInt(1 << 24) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldUnrotatedRect = big.NewInt(1 << 25) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret struct { - Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef `json:"ref" url:"ref"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality `json:"identityQuality" url:"identityQuality"` - Nm *string `json:"nm,omitempty" url:"nm,omitempty"` - Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags `json:"flags" url:"flags"` - Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect `json:"rect" url:"rect"` - Contents *string `json:"contents,omitempty" url:"contents,omitempty"` - Subject *string `json:"subject,omitempty" url:"subject,omitempty"` - Author *string `json:"author,omitempty" url:"author,omitempty"` - Created *time.Time `json:"created,omitempty" url:"created,omitempty"` - Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` - BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode `json:"blendMode" url:"blendMode"` - InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` - ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` - UserID *string `json:"userId,omitempty" url:"userId,omitempty"` - GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` - CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` - Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` - Color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor `json:"color" url:"color"` - Opacity float64 `json:"opacity" url:"opacity"` - Intent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent `json:"intent,omitempty" url:"intent,omitempty"` - RectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences `json:"rectDifferences,omitempty" url:"rectDifferences,omitempty"` - Rotation *float64 `json:"rotation,omitempty" url:"rotation,omitempty"` - UnrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect `json:"unrotatedRect,omitempty" url:"unrotatedRect,omitempty"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -58828,399 +73732,285 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef { - if d == nil { - return nil - } - return d.Ref -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality { - if d == nil { - return "" - } - return d.IdentityQuality -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetNm() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision { if d == nil { return nil } - return d.Nm + return d.Revision } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.Flags + return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect { - if d == nil { - return nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.Rect + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetContents() *string { - if d == nil { - return nil - } - return d.Contents +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexFieldPageObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetSubject() *string { - if d == nil { - return nil - } - return d.Subject +// SetIndex sets the Index field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexFieldIndex) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetAuthor() *string { - if d == nil { - return nil - } - return d.Author +// SetRevision sets the Revision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexFieldRevision) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetCreated() *time.Time { - if d == nil { - return nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - return d.Created -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetModified() *time.Time { - if d == nil { - return nil + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err } - return d.Modified + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode { - if d == nil { - return "" +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return d.BlendMode + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex) String() string { if d == nil { - return nil + return "" } - return d.InReplyTo -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType { - if d == nil { - return nil + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } } - return d.ReplyType -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetUserID() *string { - if d == nil { - return nil + if value, err := internal.StringifyJSON(d); err == nil { + return value } - return d.UserID + return fmt.Sprintf("%#v", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetGroupID() *string { - if d == nil { - return nil - } - return d.GroupID -} +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetCreatedBy() *string { - if d == nil { - return nil - } - return d.CreatedBy -} +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetUpdatedBy() *string { - if d == nil { - return nil - } - return d.UpdatedBy -} + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetActions() *PdfAnnotationActions { - if d == nil { - return nil - } - return d.Actions + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision) GetDocSessionID() string { if d == nil { - return nil + return "" } - return d.Color + return d.DocSessionID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetOpacity() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } - return d.Opacity -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetIntent() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent { - if d == nil { - return nil - } - return d.Intent -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetRectDifferences() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences { - if d == nil { - return nil - } - return d.RectDifferences -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetRotation() *float64 { - if d == nil { - return nil - } - return d.Rotation + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetUnrotatedRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision) GetGeneration() int { if d == nil { - return nil + return 0 } - return d.UnrotatedRect + return d.Generation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetRef sets the Ref field and marks it as non-optional; +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef) { - d.Ref = ref - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldRef) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevisionFieldDocSessionID) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldPageObjectNumber) -} - -// SetIndex sets the Index field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldIndex) -} - -// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality) { - d.IdentityQuality = identityQuality - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldIdentityQuality) -} - -// SetNm sets the Nm field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetNm(nm *string) { - d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldNm) -} - -// SetFlags sets the Flags field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) { - d.Flags = flags - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldFlags) -} - -// SetRect sets the Rect field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect) { - d.Rect = rect - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldRect) -} - -// SetContents sets the Contents field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetContents(contents *string) { - d.Contents = contents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldContents) -} - -// SetSubject sets the Subject field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetSubject(subject *string) { - d.Subject = subject - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldSubject) -} - -// SetAuthor sets the Author field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetAuthor(author *string) { - d.Author = author - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldAuthor) -} - -// SetCreated sets the Created field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetCreated(created *time.Time) { - d.Created = created - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldCreated) -} - -// SetModified sets the Modified field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetModified(modified *time.Time) { - d.Modified = modified - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldModified) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevisionFieldPageObjectNumber) } -// SetBlendMode sets the BlendMode field and marks it as non-optional; +// SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode) { - d.BlendMode = blendMode - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldBlendMode) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevisionFieldGeneration) } -// SetInReplyTo sets the InReplyTo field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo) { - d.InReplyTo = inReplyTo - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldInReplyTo) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -// SetReplyType sets the ReplyType field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType) { - d.ReplyType = replyType - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldReplyType) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -// SetUserID sets the UserID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetUserID(userID *string) { - d.UserID = userID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldUserID) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -// SetGroupID sets the GroupID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetGroupID(groupID *string) { - d.GroupID = groupID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldGroupID) -} +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNmFieldNm = big.NewInt(1 << 1) +) -// SetCreatedBy sets the CreatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetCreatedBy(createdBy *string) { - d.CreatedBy = createdBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldCreatedBy) -} +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` -// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetUpdatedBy(updatedBy *string) { - d.UpdatedBy = updatedBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldUpdatedBy) -} + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` -// SetActions sets the Actions field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetActions(actions *PdfAnnotationActions) { - d.Actions = actions - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldActions) + extraProperties map[string]interface{} + rawJSON json.RawMessage } -// SetColor sets the Color field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetColor(color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor) { - d.Color = color - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldColor) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber } -// SetOpacity sets the Opacity field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetOpacity(opacity float64) { - d.Opacity = opacity - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldOpacity) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm } -// SetIntent sets the Intent field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetIntent(intent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent) { - d.Intent = intent - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldIntent) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties } -// SetRectDifferences sets the RectDifferences field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetRectDifferences(rectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences) { - d.RectDifferences = rectDifferences - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldRectDifferences) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) } -// SetRotation sets the Rotation field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetRotation(rotation *float64) { - d.Rotation = rotation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldRotation) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNmFieldPageObjectNumber) } -// SetUnrotatedRect sets the UnrotatedRect field and marks it as non-optional; +// SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) SetUnrotatedRect(unrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect) { - d.UnrotatedRect = unrotatedRect - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFieldUnrotatedRect) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNmFieldNm) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) UnmarshalJSON(data []byte) error { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret - var unmarshaler = struct { - embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` - }{ - embed: embed(*d), - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret(unmarshaler.embed) - d.Created = unmarshaler.Created.TimePtr() - d.Modified = unmarshaler.Modified.TimePtr() + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -59230,22 +74020,18 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) Unmarsha return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm var marshaler = struct { embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), - Created: internal.NewOptionalDateTime(d.Created), - Modified: internal.NewOptionalDateTime(d.Modified), + embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm) String() string { if d == nil { return "" } @@ -59260,80 +74046,14 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret) String() return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode = "normal" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode = "multiply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode = "screen" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode = "overlay" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode = "darken" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode = "lighten" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode = "color-dodge" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode = "color-burn" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode = "hard-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode = "soft-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode = "difference" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode = "exclusion" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode = "hue" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode = "saturation" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode = "color" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode = "luminosity" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode, error) { - switch s { - case "normal": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeNormal, nil - case "multiply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeMultiply, nil - case "screen": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeScreen, nil - case "overlay": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeOverlay, nil - case "darken": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeDarken, nil - case "lighten": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeLighten, nil - case "color-dodge": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeColorDodge, nil - case "color-burn": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeColorBurn, nil - case "hard-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeHardLight, nil - case "soft-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeSoftLight, nil - case "difference": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeDifference, nil - case "exclusion": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeExclusion, nil - case "hue": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeHue, nil - case "saturation": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeSaturation, nil - case "color": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeColor, nil - case "luminosity": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendModeLuminosity, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode { - return &d -} - var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColorFieldR = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColorFieldG = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColorFieldB = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor struct { - R int `json:"r" url:"r"` - G int `json:"g" url:"g"` - B int `json:"b" url:"b"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -59342,69 +74062,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor) GetR() int { - if d == nil { - return 0 - } - return d.R -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor) GetG() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } - return d.G + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor) GetB() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } - return d.B + return d.AnnotObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetR sets the R field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor) SetR(r int) { - d.R = r - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColorFieldR) -} - -// SetG sets the G field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor) SetG(g int) { - d.G = g - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColorFieldG) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumberFieldPageObjectNumber) } -// SetB sets the B field and marks it as non-optional; +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor) SetB(b int) { - d.B = b - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColorFieldB) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -59414,8 +74120,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor) Unm return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber var marshaler = struct { embed }{ @@ -59425,7 +74131,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor) Mar return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber) String() string { if d == nil { return "" } @@ -59440,30 +74146,106 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor) Str return fmt.Sprintf("%#v", d) } +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyType = "reply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyType = "group" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyType, error) { + switch s { + case "reply": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyTypeReply, nil + case "group": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyTypeGroup, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyType { + return &d +} + var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldInvisible = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldHidden = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldPrint = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldNoZoom = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldNoRotate = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldNoView = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldReadOnly = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldLocked = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldToggleNoView = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldLockedContents = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldRef = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldIndex = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldIdentityQuality = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldNm = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldFlags = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldRect = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldContents = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldSubject = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldAuthor = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldCreated = big.NewInt(1 << 10) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldModified = big.NewInt(1 << 11) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldBlendMode = big.NewInt(1 << 12) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldInReplyTo = big.NewInt(1 << 13) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldReplyType = big.NewInt(1 << 14) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldUserID = big.NewInt(1 << 15) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldGroupID = big.NewInt(1 << 16) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldCreatedBy = big.NewInt(1 << 17) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldUpdatedBy = big.NewInt(1 << 18) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldActions = big.NewInt(1 << 19) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldIntent = big.NewInt(1 << 20) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldFontFamily = big.NewInt(1 << 21) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldFontSize = big.NewInt(1 << 22) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldTextAlign = big.NewInt(1 << 23) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldRichText = big.NewInt(1 << 24) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldColor = big.NewInt(1 << 25) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldFontColor = big.NewInt(1 << 26) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldInteriorColor = big.NewInt(1 << 27) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldOpacity = big.NewInt(1 << 28) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldStrokeWidth = big.NewInt(1 << 29) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldBorderStyle = big.NewInt(1 << 30) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldDashArray = big.NewInt(1 << 31) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldRectDifferences = big.NewInt(1 << 32) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldCalloutLine = big.NewInt(1 << 33) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldLineEnding = big.NewInt(1 << 34) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldRotation = big.NewInt(1 << 35) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldUnrotatedRect = big.NewInt(1 << 36) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags struct { - Invisible bool `json:"invisible" url:"invisible"` - Hidden bool `json:"hidden" url:"hidden"` - Print bool `json:"print" url:"print"` - NoZoom bool `json:"noZoom" url:"noZoom"` - NoRotate bool `json:"noRotate" url:"noRotate"` - NoView bool `json:"noView" url:"noView"` - ReadOnly bool `json:"readOnly" url:"readOnly"` - Locked bool `json:"locked" url:"locked"` - ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` - LockedContents bool `json:"lockedContents" url:"lockedContents"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText struct { + Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef `json:"ref" url:"ref"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQuality `json:"identityQuality" url:"identityQuality"` + Nm *string `json:"nm,omitempty" url:"nm,omitempty"` + Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags `json:"flags" url:"flags"` + Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect `json:"rect" url:"rect"` + Contents *string `json:"contents,omitempty" url:"contents,omitempty"` + Subject *string `json:"subject,omitempty" url:"subject,omitempty"` + Author *string `json:"author,omitempty" url:"author,omitempty"` + Created *time.Time `json:"created,omitempty" url:"created,omitempty"` + Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` + BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode `json:"blendMode" url:"blendMode"` + InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` + ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` + UserID *string `json:"userId,omitempty" url:"userId,omitempty"` + GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` + CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` + Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` + Intent DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent `json:"intent" url:"intent"` + FontFamily string `json:"fontFamily" url:"fontFamily"` + FontSize float64 `json:"fontSize" url:"fontSize"` + TextAlign DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign `json:"textAlign" url:"textAlign"` + RichText *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText `json:"richText" url:"richText"` + Color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor `json:"color" url:"color"` + FontColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor `json:"fontColor,omitempty" url:"fontColor,omitempty"` + InteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor `json:"interiorColor,omitempty" url:"interiorColor,omitempty"` + Opacity float64 `json:"opacity" url:"opacity"` + StrokeWidth float64 `json:"strokeWidth" url:"strokeWidth"` + BorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle `json:"borderStyle" url:"borderStyle"` + DashArray []float64 `json:"dashArray,omitempty" url:"dashArray,omitempty"` + RectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences `json:"rectDifferences,omitempty" url:"rectDifferences,omitempty"` + CalloutLine []any `json:"calloutLine,omitempty" url:"calloutLine,omitempty"` + LineEnding *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding `json:"lineEnding,omitempty" url:"lineEnding,omitempty"` + Rotation *float64 `json:"rotation,omitempty" url:"rotation,omitempty"` + UnrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect `json:"unrotatedRect,omitempty" url:"unrotatedRect,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -59472,571 +74254,553 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) GetInvisible() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef { if d == nil { - return false + return nil } - return d.Invisible + return d.Ref } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) GetHidden() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetPageObjectNumber() int { if d == nil { - return false + return 0 } - return d.Hidden + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) GetPrint() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetIndex() int { if d == nil { - return false + return 0 } - return d.Print + return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) GetNoZoom() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQuality { if d == nil { - return false + return "" } - return d.NoZoom + return d.IdentityQuality } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) GetNoRotate() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetNm() *string { if d == nil { - return false + return nil } - return d.NoRotate + return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) GetNoView() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags { if d == nil { - return false + return nil } - return d.NoView + return d.Flags } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) GetReadOnly() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect { if d == nil { - return false + return nil } - return d.ReadOnly + return d.Rect } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) GetLocked() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetContents() *string { if d == nil { - return false + return nil } - return d.Locked + return d.Contents } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) GetToggleNoView() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetSubject() *string { if d == nil { - return false + return nil } - return d.ToggleNoView + return d.Subject } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) GetLockedContents() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetAuthor() *string { if d == nil { - return false + return nil } - return d.LockedContents + return d.Author } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetCreated() *time.Time { if d == nil { return nil } - return d.extraProperties + return d.Created } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetModified() *time.Time { + if d == nil { + return nil } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetInvisible sets the Invisible field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) SetInvisible(invisible bool) { - d.Invisible = invisible - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldInvisible) -} - -// SetHidden sets the Hidden field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) SetHidden(hidden bool) { - d.Hidden = hidden - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldHidden) -} - -// SetPrint sets the Print field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) SetPrint(print bool) { - d.Print = print - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldPrint) -} - -// SetNoZoom sets the NoZoom field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) SetNoZoom(noZoom bool) { - d.NoZoom = noZoom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldNoZoom) -} - -// SetNoRotate sets the NoRotate field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) SetNoRotate(noRotate bool) { - d.NoRotate = noRotate - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldNoRotate) -} - -// SetNoView sets the NoView field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) SetNoView(noView bool) { - d.NoView = noView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldNoView) + return d.Modified } -// SetReadOnly sets the ReadOnly field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) SetReadOnly(readOnly bool) { - d.ReadOnly = readOnly - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldReadOnly) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode { + if d == nil { + return "" + } + return d.BlendMode } -// SetLocked sets the Locked field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) SetLocked(locked bool) { - d.Locked = locked - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldLocked) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo { + if d == nil { + return nil + } + return d.InReplyTo } -// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) SetToggleNoView(toggleNoView bool) { - d.ToggleNoView = toggleNoView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldToggleNoView) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyType { + if d == nil { + return nil + } + return d.ReplyType } -// SetLockedContents sets the LockedContents field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) SetLockedContents(lockedContents bool) { - d.LockedContents = lockedContents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlagsFieldLockedContents) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetUserID() *string { + if d == nil { + return nil + } + return d.UserID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetGroupID() *string { + if d == nil { + return nil } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil + return d.GroupID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetCreatedBy() *string { + if d == nil { + return nil } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return d.CreatedBy } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetUpdatedBy() *string { if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value + return nil } - return fmt.Sprintf("%#v", d) + return d.UpdatedBy } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality = "durable" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality = "weak" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality, error) { - switch s { - case "durable": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQualityDurable, nil - case "weak": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQualityWeak, nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetActions() *PdfAnnotationActions { + if d == nil { + return nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality - return "", fmt.Errorf("%s is not a valid %T", s, t) + return d.Actions } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality { - return &d +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetIntent() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent { + if d == nil { + return "" + } + return d.Intent } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo struct { - Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetFontFamily() string { + if d == nil { + return "" + } + return d.FontFamily +} - rawJSON json.RawMessage +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetFontSize() float64 { + if d == nil { + return 0 + } + return d.FontSize } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo) GetKind() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetTextAlign() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign { if d == nil { return "" } - return d.Kind + return d.TextAlign } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetRichText() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText { if d == nil { return nil } - return d.ObjectNumber + return d.RichText } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor { if d == nil { return nil } - return d.Nm + return d.Color } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetFontColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor { if d == nil { return nil } - return d.Index + return d.FontColor } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Nm = value - case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Index = value +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetInteriorColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor { + if d == nil { + return nil } - d.rawJSON = json.RawMessage(data) - return nil + return d.InteriorColor } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Nm != nil { - return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") - } - if d.Index != nil { - return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetOpacity() float64 { + if d == nil { + return 0 } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) + return d.Opacity } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex) error +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetStrokeWidth() float64 { + if d == nil { + return 0 + } + return d.StrokeWidth } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) - } - if d.Nm != nil { - return visitor.VisitNm(d.Nm) - } - if d.Index != nil { - return visitor.VisitIndex(d.Index) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetBorderStyle() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle { + if d == nil { + return "" } - return fmt.Errorf("type %T does not define a non-empty union type", d) + return d.BorderStyle } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo) validate() error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetDashArray() []float64 { if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Nm != nil { - fields = append(fields, "nm") - } - if d.Index != nil { - fields = append(fields, "index") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } + return nil } - return nil + return d.DashArray } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexFieldRevision = big.NewInt(1 << 2) -) - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision `json:"revision" url:"revision"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetRectDifferences() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences { + if d == nil { + return nil + } + return d.RectDifferences +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetCalloutLine() []any { + if d == nil { + return nil + } + return d.CalloutLine } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetLineEnding() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding { if d == nil { - return 0 + return nil } - return d.PageObjectNumber + return d.LineEnding } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetRotation() *float64 { if d == nil { - return 0 + return nil } - return d.Index + return d.Rotation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetUnrotatedRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect { if d == nil { return nil } - return d.Revision + return d.UnrotatedRect } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } +// SetRef sets the Ref field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef) { + d.Ref = ref + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldRef) +} + // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex) SetIndex(index int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetIndex(index int) { d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexFieldIndex) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldIndex) } -// SetRevision sets the Revision field and marks it as non-optional; +// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision) { - d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexFieldRevision) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQuality) { + d.IdentityQuality = identityQuality + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldIdentityQuality) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetNm(nm *string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldNm) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) +// SetFlags sets the Flags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) { + d.Flags = flags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldFlags) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) +// SetRect sets the Rect field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) { + d.Rect = rect + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldRect) } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) -) +// SetContents sets the Contents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetContents(contents *string) { + d.Contents = contents + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldContents) +} -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +// SetSubject sets the Subject field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetSubject(subject *string) { + d.Subject = subject + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldSubject) +} - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +// SetAuthor sets the Author field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetAuthor(author *string) { + d.Author = author + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldAuthor) +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +// SetCreated sets the Created field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetCreated(created *time.Time) { + d.Created = created + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldCreated) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision) GetDocSessionID() string { - if d == nil { - return "" - } - return d.DocSessionID +// SetModified sets the Modified field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetModified(modified *time.Time) { + d.Modified = modified + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldModified) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber +// SetBlendMode sets the BlendMode field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode) { + d.BlendMode = blendMode + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldBlendMode) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision) GetGeneration() int { - if d == nil { - return 0 - } - return d.Generation +// SetInReplyTo sets the InReplyTo field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo) { + d.InReplyTo = inReplyTo + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldInReplyTo) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties +// SetReplyType sets the ReplyType field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyType) { + d.ReplyType = replyType + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldReplyType) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) +// SetUserID sets the UserID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetUserID(userID *string) { + d.UserID = userID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldUserID) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// SetGroupID sets the GroupID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevisionFieldDocSessionID) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetGroupID(groupID *string) { + d.GroupID = groupID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldGroupID) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetCreatedBy sets the CreatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetCreatedBy(createdBy *string) { + d.CreatedBy = createdBy + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldCreatedBy) +} + +// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetUpdatedBy(updatedBy *string) { + d.UpdatedBy = updatedBy + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldUpdatedBy) +} + +// SetActions sets the Actions field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetActions(actions *PdfAnnotationActions) { + d.Actions = actions + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldActions) +} + +// SetIntent sets the Intent field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetIntent(intent DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent) { + d.Intent = intent + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldIntent) +} + +// SetFontFamily sets the FontFamily field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetFontFamily(fontFamily string) { + d.FontFamily = fontFamily + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldFontFamily) +} + +// SetFontSize sets the FontSize field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetFontSize(fontSize float64) { + d.FontSize = fontSize + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldFontSize) +} + +// SetTextAlign sets the TextAlign field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetTextAlign(textAlign DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign) { + d.TextAlign = textAlign + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldTextAlign) +} + +// SetRichText sets the RichText field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetRichText(richText *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText) { + d.RichText = richText + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldRichText) +} + +// SetColor sets the Color field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetColor(color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor) { + d.Color = color + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldColor) +} + +// SetFontColor sets the FontColor field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetFontColor(fontColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor) { + d.FontColor = fontColor + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldFontColor) +} + +// SetInteriorColor sets the InteriorColor field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetInteriorColor(interiorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor) { + d.InteriorColor = interiorColor + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldInteriorColor) +} + +// SetOpacity sets the Opacity field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetOpacity(opacity float64) { + d.Opacity = opacity + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldOpacity) +} + +// SetStrokeWidth sets the StrokeWidth field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetStrokeWidth(strokeWidth float64) { + d.StrokeWidth = strokeWidth + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldStrokeWidth) +} + +// SetBorderStyle sets the BorderStyle field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetBorderStyle(borderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle) { + d.BorderStyle = borderStyle + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldBorderStyle) +} + +// SetDashArray sets the DashArray field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetDashArray(dashArray []float64) { + d.DashArray = dashArray + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldDashArray) +} + +// SetRectDifferences sets the RectDifferences field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetRectDifferences(rectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences) { + d.RectDifferences = rectDifferences + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldRectDifferences) +} + +// SetCalloutLine sets the CalloutLine field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetCalloutLine(calloutLine []any) { + d.CalloutLine = calloutLine + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldCalloutLine) +} + +// SetLineEnding sets the LineEnding field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetLineEnding(lineEnding *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding) { + d.LineEnding = lineEnding + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldLineEnding) +} + +// SetRotation sets the Rotation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevisionFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetRotation(rotation *float64) { + d.Rotation = rotation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldRotation) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetUnrotatedRect sets the UnrotatedRect field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevisionFieldGeneration) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetUnrotatedRect(unrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect) { + d.UnrotatedRect = unrotatedRect + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldUnrotatedRect) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) UnmarshalJSON(data []byte) error { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText + var unmarshaler = struct { + embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText(unmarshaler.embed) + d.Created = unmarshaler.Created.TimePtr() + d.Modified = unmarshaler.Modified.TimePtr() extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -60046,18 +74810,22 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToI return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText var marshaler = struct { embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), + embed: embed(*d), + Created: internal.NewOptionalDateTime(d.Created), + Modified: internal.NewOptionalDateTime(d.Modified), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) String() string { if d == nil { return "" } @@ -60072,14 +74840,108 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToI return fmt.Sprintf("%#v", d) } +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode = "normal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode = "multiply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode = "screen" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode = "overlay" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode = "darken" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode = "lighten" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode = "color-dodge" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode = "color-burn" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode = "hard-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode = "soft-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode = "difference" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode = "exclusion" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode = "hue" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode = "saturation" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode = "color" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode = "luminosity" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode, error) { + switch s { + case "normal": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeNormal, nil + case "multiply": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeMultiply, nil + case "screen": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeScreen, nil + case "overlay": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeOverlay, nil + case "darken": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeDarken, nil + case "lighten": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeLighten, nil + case "color-dodge": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeColorDodge, nil + case "color-burn": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeColorBurn, nil + case "hard-light": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeHardLight, nil + case "soft-light": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeSoftLight, nil + case "difference": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeDifference, nil + case "exclusion": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeExclusion, nil + case "hue": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeHue, nil + case "saturation": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeSaturation, nil + case "color": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeColor, nil + case "luminosity": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeLuminosity, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyleSolid DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle = "solid" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyleDashed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle = "dashed" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyleBeveled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle = "beveled" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyleInset DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle = "inset" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyleFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle, error) { + switch s { + case "solid": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyleSolid, nil + case "dashed": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyleDashed, nil + case "beveled": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyleBeveled, nil + case "inset": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyleInset, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle { + return &d +} + var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNmFieldNm = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColorFieldB = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor struct { + R int `json:"r" url:"r"` + G int `json:"g" url:"g"` + B int `json:"b" url:"b"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -60088,55 +74950,69 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm st rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor) GetR() int { if d == nil { return 0 } - return d.PageObjectNumber + return d.R } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm) GetNm() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor) GetG() int { if d == nil { - return "" + return 0 } - return d.Nm + return d.G } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor) GetB() int { + if d == nil { + return 0 + } + return d.B +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetR sets the R field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNmFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor) SetR(r int) { + d.R = r + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColorFieldR) } -// SetNm sets the Nm field and marks it as non-optional; +// SetG sets the G field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNmFieldNm) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor) SetG(g int) { + d.G = g + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColorFieldG) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm +// SetB sets the B field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor) SetB(b int) { + d.B = b + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColorFieldB) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -60146,8 +75022,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToN return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor var marshaler = struct { embed }{ @@ -60157,7 +75033,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToN return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor) String() string { if d == nil { return "" } @@ -60173,13 +75049,29 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToN } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldInvisible = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldHidden = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldPrint = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldNoZoom = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldNoRotate = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldNoView = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldReadOnly = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldLocked = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldToggleNoView = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldLockedContents = big.NewInt(1 << 9) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags struct { + Invisible bool `json:"invisible" url:"invisible"` + Hidden bool `json:"hidden" url:"hidden"` + Print bool `json:"print" url:"print"` + NoZoom bool `json:"noZoom" url:"noZoom"` + NoRotate bool `json:"noRotate" url:"noRotate"` + NoView bool `json:"noView" url:"noView"` + ReadOnly bool `json:"readOnly" url:"readOnly"` + Locked bool `json:"locked" url:"locked"` + ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` + LockedContents bool `json:"lockedContents" url:"lockedContents"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -60188,206 +75080,167 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjec rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) GetInvisible() bool { if d == nil { - return 0 + return false } - return d.PageObjectNumber + return d.Invisible } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) GetHidden() bool { if d == nil { - return 0 + return false } - return d.AnnotObjectNumber + return d.Hidden } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) GetPrint() bool { if d == nil { - return nil - } - return d.extraProperties -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumberFieldPageObjectNumber) -} - -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumberFieldAnnotObjectNumber) -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err + return false } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil + return d.Print } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) GetNoZoom() bool { + if d == nil { + return false } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return d.NoZoom } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) GetNoRotate() bool { if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value + return false } - return fmt.Sprintf("%#v", d) + return d.NoRotate } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntentReplace DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent = "replace" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntentFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent, error) { - switch s { - case "replace": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntentReplace, nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) GetNoView() bool { + if d == nil { + return false } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent { - return &d -} - -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectFieldRight = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectFieldTop = big.NewInt(1 << 3) -) - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect struct { - Left float64 `json:"left" url:"left"` - Bottom float64 `json:"bottom" url:"bottom"` - Right float64 `json:"right" url:"right"` - Top float64 `json:"top" url:"top"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage + return d.NoView } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect) GetLeft() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) GetReadOnly() bool { if d == nil { - return 0 + return false } - return d.Left + return d.ReadOnly } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect) GetBottom() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) GetLocked() bool { if d == nil { - return 0 + return false } - return d.Bottom + return d.Locked } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect) GetRight() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) GetToggleNoView() bool { if d == nil { - return 0 + return false } - return d.Right + return d.ToggleNoView } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect) GetTop() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) GetLockedContents() bool { if d == nil { - return 0 + return false } - return d.Top + return d.LockedContents } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetLeft sets the Left field and marks it as non-optional; +// SetInvisible sets the Invisible field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect) SetLeft(left float64) { - d.Left = left - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectFieldLeft) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) SetInvisible(invisible bool) { + d.Invisible = invisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldInvisible) } -// SetBottom sets the Bottom field and marks it as non-optional; +// SetHidden sets the Hidden field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectFieldBottom) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) SetHidden(hidden bool) { + d.Hidden = hidden + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldHidden) } -// SetRight sets the Right field and marks it as non-optional; +// SetPrint sets the Print field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect) SetRight(right float64) { - d.Right = right - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectFieldRight) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) SetPrint(print bool) { + d.Print = print + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldPrint) } -// SetTop sets the Top field and marks it as non-optional; +// SetNoZoom sets the NoZoom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectFieldTop) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) SetNoZoom(noZoom bool) { + d.NoZoom = noZoom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldNoZoom) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect +// SetNoRotate sets the NoRotate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) SetNoRotate(noRotate bool) { + d.NoRotate = noRotate + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldNoRotate) +} + +// SetNoView sets the NoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) SetNoView(noView bool) { + d.NoView = noView + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldNoView) +} + +// SetReadOnly sets the ReadOnly field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldReadOnly) +} + +// SetLocked sets the Locked field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) SetLocked(locked bool) { + d.Locked = locked + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldLocked) +} + +// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) SetToggleNoView(toggleNoView bool) { + d.ToggleNoView = toggleNoView + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldToggleNoView) +} + +// SetLockedContents sets the LockedContents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) SetLockedContents(lockedContents bool) { + d.LockedContents = lockedContents + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldLockedContents) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -60397,8 +75250,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect) Unma return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags var marshaler = struct { embed }{ @@ -60408,7 +75261,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect) Mars return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) String() string { if d == nil { return "" } @@ -60424,17 +75277,15 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect) Stri } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferencesFieldLeft = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferencesFieldTop = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferencesFieldRight = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferencesFieldBottom = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColorFieldB = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences struct { - Left float64 `json:"left" url:"left"` - Top float64 `json:"top" url:"top"` - Right float64 `json:"right" url:"right"` - Bottom float64 `json:"bottom" url:"bottom"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor struct { + R int `json:"r" url:"r"` + G int `json:"g" url:"g"` + B int `json:"b" url:"b"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -60443,83 +75294,69 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifference rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences) GetLeft() float64 { - if d == nil { - return 0 - } - return d.Left -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences) GetTop() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor) GetR() int { if d == nil { return 0 } - return d.Top + return d.R } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences) GetRight() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor) GetG() int { if d == nil { return 0 } - return d.Right + return d.G } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences) GetBottom() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor) GetB() int { if d == nil { return 0 } - return d.Bottom + return d.B } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetLeft sets the Left field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences) SetLeft(left float64) { - d.Left = left - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferencesFieldLeft) + d.explicitFields.Or(d.explicitFields, field) } -// SetTop sets the Top field and marks it as non-optional; +// SetR sets the R field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferencesFieldTop) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor) SetR(r int) { + d.R = r + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColorFieldR) } -// SetRight sets the Right field and marks it as non-optional; +// SetG sets the G field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences) SetRight(right float64) { - d.Right = right - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferencesFieldRight) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor) SetG(g int) { + d.G = g + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColorFieldG) } -// SetBottom sets the Bottom field and marks it as non-optional; +// SetB sets the B field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferencesFieldBottom) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor) SetB(b int) { + d.B = b + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColorFieldB) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -60529,8 +75366,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDiffer return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor var marshaler = struct { embed }{ @@ -60540,7 +75377,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDiffer return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor) String() string { if d == nil { return "" } @@ -60555,44 +75392,66 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDiffer return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQuality string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQuality = "durable" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQuality = "weak" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQuality, error) { + switch s { + case "durable": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQualityDurable, nil + case "weak": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQualityWeak, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQuality + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQuality { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo struct { Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef) GetKind() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber { if d == nil { return nil } return d.ObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex { if d == nil { return nil } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef) UnmarshalJSON(data []byte) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -60605,19 +75464,19 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef) Unmar } switch unmarshaler.Kind { case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber) if err := json.Unmarshal(data, &value); err != nil { return err } d.ObjectNumber = value case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm) if err := json.Unmarshal(data, &value); err != nil { return err } d.Nm = value case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -60627,7 +75486,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef) Unmar return nil } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -60646,13 +75505,13 @@ func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef) Marsha return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex) error +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) error } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefVisitor) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToVisitor) error { if d.ObjectNumber != nil { return visitor.VisitObjectNumber(d.ObjectNumber) } @@ -60665,7 +75524,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef) Accep return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef) validate() error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -60706,15 +75565,15 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef) valid } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -60723,35 +75582,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex struc rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision { if d == nil { return nil } return d.Revision } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -60760,32 +75619,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex) // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex) SetIndex(index int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) SetIndex(index int) { d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexFieldIndex) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexFieldIndex) } // SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision) { d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexFieldRevision) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexFieldRevision) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -60795,8 +75654,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex) return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex var marshaler = struct { embed }{ @@ -60806,7 +75665,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) String() string { if d == nil { return "" } @@ -60822,12 +75681,12 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex) } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision struct { DocSessionID string `json:"docSessionId" url:"docSessionId"` PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Generation int `json:"generation" url:"generation"` @@ -60839,35 +75698,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevisi rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision) GetDocSessionID() string { if d == nil { return "" } return d.DocSessionID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision) GetGeneration() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision) GetGeneration() int { if d == nil { return 0 } return d.Generation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -60876,32 +75735,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRe // SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision) SetDocSessionID(docSessionID string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision) SetDocSessionID(docSessionID string) { d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevisionFieldDocSessionID) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevisionFieldDocSessionID) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevisionFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevisionFieldPageObjectNumber) } // SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision) SetGeneration(generation int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision) SetGeneration(generation int) { d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevisionFieldGeneration) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevisionFieldGeneration) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -60911,8 +75770,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRe return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision var marshaler = struct { embed }{ @@ -60922,7 +75781,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRe return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision) String() string { if d == nil { return "" } @@ -60938,11 +75797,11 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRe } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNmFieldNm = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Nm string `json:"nm" url:"nm"` @@ -60953,28 +75812,28 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm) GetNm() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm) GetNm() string { if d == nil { return "" } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -60983,25 +75842,25 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm) req // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNmFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNmFieldPageObjectNumber) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm) SetNm(nm string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm) SetNm(nm string) { d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNmFieldNm) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNmFieldNm) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -61011,8 +75870,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm) Unm return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm var marshaler = struct { embed }{ @@ -61022,7 +75881,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm) Mar return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm) String() string { if d == nil { return "" } @@ -61038,11 +75897,11 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm) Str } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` @@ -61053,28 +75912,28 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumbe rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } return d.AnnotObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -61083,25 +75942,25 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectN // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumberFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumberFieldPageObjectNumber) } // SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumberFieldAnnotObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -61111,8 +75970,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectN return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber var marshaler = struct { embed }{ @@ -61122,7 +75981,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectN return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber) String() string { if d == nil { return "" } @@ -61137,40 +75996,38 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectN return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType = "reply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType = "group" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntentFreeText DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent = "free-text" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntentFreeTextCallout DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent = "free-text-callout" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntentFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent, error) { switch s { - case "reply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyTypeReply, nil - case "group": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyTypeGroup, nil + case "free-text": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntentFreeText, nil + case "free-text-callout": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntentFreeTextCallout, nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent { return &d } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRectFieldRight = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRectFieldTop = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColorFieldB = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect struct { - Left float64 `json:"left" url:"left"` - Bottom float64 `json:"bottom" url:"bottom"` - Right float64 `json:"right" url:"right"` - Top float64 `json:"top" url:"top"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor struct { + R int `json:"r" url:"r"` + G int `json:"g" url:"g"` + B int `json:"b" url:"b"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -61179,83 +76036,69 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect) GetLeft() float64 { - if d == nil { - return 0 - } - return d.Left -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect) GetBottom() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor) GetR() int { if d == nil { return 0 } - return d.Bottom + return d.R } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect) GetRight() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor) GetG() int { if d == nil { return 0 } - return d.Right + return d.G } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect) GetTop() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor) GetB() int { if d == nil { return 0 } - return d.Top + return d.B } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetLeft sets the Left field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect) SetLeft(left float64) { - d.Left = left - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRectFieldLeft) -} - -// SetBottom sets the Bottom field and marks it as non-optional; +// SetR sets the R field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRectFieldBottom) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor) SetR(r int) { + d.R = r + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColorFieldR) } -// SetRight sets the Right field and marks it as non-optional; +// SetG sets the G field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect) SetRight(right float64) { - d.Right = right - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRectFieldRight) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor) SetG(g int) { + d.G = g + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColorFieldG) } -// SetTop sets the Top field and marks it as non-optional; +// SetB sets the B field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRectFieldTop) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor) SetB(b int) { + d.B = b + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColorFieldB) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -61265,8 +76108,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedR return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor var marshaler = struct { embed }{ @@ -61276,7 +76119,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedR return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor) String() string { if d == nil { return "" } @@ -61291,527 +76134,547 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedR return fmt.Sprintf("%#v", d) } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldRef = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldIndex = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldIdentityQuality = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldNm = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldFlags = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldRect = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldContents = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldSubject = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldAuthor = big.NewInt(1 << 9) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldCreated = big.NewInt(1 << 10) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldModified = big.NewInt(1 << 11) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldBlendMode = big.NewInt(1 << 12) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldInReplyTo = big.NewInt(1 << 13) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldReplyType = big.NewInt(1 << 14) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldUserID = big.NewInt(1 << 15) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldGroupID = big.NewInt(1 << 16) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldCreatedBy = big.NewInt(1 << 17) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldUpdatedBy = big.NewInt(1 << 18) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldActions = big.NewInt(1 << 19) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldColor = big.NewInt(1 << 20) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldOpacity = big.NewInt(1 << 21) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldStrokeWidth = big.NewInt(1 << 22) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldBorderStyle = big.NewInt(1 << 23) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldDashArray = big.NewInt(1 << 24) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldInteriorColor = big.NewInt(1 << 25) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldCloudyIntensity = big.NewInt(1 << 26) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldRectDifferences = big.NewInt(1 << 27) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldRotation = big.NewInt(1 << 28) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldUnrotatedRect = big.NewInt(1 << 29) -) - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle struct { - Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef `json:"ref" url:"ref"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQuality `json:"identityQuality" url:"identityQuality"` - Nm *string `json:"nm,omitempty" url:"nm,omitempty"` - Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags `json:"flags" url:"flags"` - Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect `json:"rect" url:"rect"` - Contents *string `json:"contents,omitempty" url:"contents,omitempty"` - Subject *string `json:"subject,omitempty" url:"subject,omitempty"` - Author *string `json:"author,omitempty" url:"author,omitempty"` - Created *time.Time `json:"created,omitempty" url:"created,omitempty"` - Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` - BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode `json:"blendMode" url:"blendMode"` - InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` - ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` - UserID *string `json:"userId,omitempty" url:"userId,omitempty"` - GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` - CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` - Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` - Color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor `json:"color" url:"color"` - Opacity float64 `json:"opacity" url:"opacity"` - StrokeWidth float64 `json:"strokeWidth" url:"strokeWidth"` - BorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle `json:"borderStyle" url:"borderStyle"` - DashArray []float64 `json:"dashArray,omitempty" url:"dashArray,omitempty"` - InteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor `json:"interiorColor,omitempty" url:"interiorColor,omitempty"` - CloudyIntensity *float64 `json:"cloudyIntensity,omitempty" url:"cloudyIntensity,omitempty"` - RectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences `json:"rectDifferences,omitempty" url:"rectDifferences,omitempty"` - Rotation *float64 `json:"rotation,omitempty" url:"rotation,omitempty"` - UnrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect `json:"unrotatedRect,omitempty" url:"unrotatedRect,omitempty"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding string - extraProperties map[string]interface{} - rawJSON json.RawMessage -} +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingNone DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding = "none" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingSquare DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding = "square" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingCircle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding = "circle" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingDiamond DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding = "diamond" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingOpenArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding = "open-arrow" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingClosedArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding = "closed-arrow" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingButt DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding = "butt" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingROpenArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding = "r-open-arrow" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingRClosedArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding = "r-closed-arrow" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingSlash DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding = "slash" +) -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef { - if d == nil { - return nil +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding, error) { + switch s { + case "none": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingNone, nil + case "square": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingSquare, nil + case "circle": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingCircle, nil + case "diamond": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingDiamond, nil + case "open-arrow": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingOpenArrow, nil + case "closed-arrow": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingClosedArrow, nil + case "butt": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingButt, nil + case "r-open-arrow": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingROpenArrow, nil + case "r-closed-arrow": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingRClosedArrow, nil + case "slash": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingSlash, nil } - return d.Ref + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding { + return &d } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetIndex() int { - if d == nil { - return 0 - } - return d.Index -} +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectFieldTop = big.NewInt(1 << 3) +) -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQuality { - if d == nil { - return "" - } - return d.IdentityQuality -} +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect struct { + Left float64 `json:"left" url:"left"` + Bottom float64 `json:"bottom" url:"bottom"` + Right float64 `json:"right" url:"right"` + Top float64 `json:"top" url:"top"` -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetNm() *string { - if d == nil { - return nil - } - return d.Nm -} + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags { - if d == nil { - return nil - } - return d.Flags + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) GetLeft() float64 { if d == nil { - return nil + return 0 } - return d.Rect + return d.Left } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetContents() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) GetBottom() float64 { if d == nil { - return nil + return 0 } - return d.Contents + return d.Bottom } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetSubject() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) GetRight() float64 { if d == nil { - return nil + return 0 } - return d.Subject + return d.Right } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetAuthor() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) GetTop() float64 { if d == nil { - return nil + return 0 } - return d.Author + return d.Top } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetCreated() *time.Time { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.Created + return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetModified() *time.Time { - if d == nil { - return nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.Modified + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode { - if d == nil { - return "" - } - return d.BlendMode +// SetLeft sets the Left field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectFieldLeft) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo { - if d == nil { - return nil - } - return d.InReplyTo +// SetBottom sets the Bottom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectFieldBottom) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyType { - if d == nil { - return nil - } - return d.ReplyType +// SetRight sets the Right field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectFieldRight) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetUserID() *string { - if d == nil { - return nil - } - return d.UserID +// SetTop sets the Top field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectFieldTop) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetGroupID() *string { - if d == nil { - return nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - return d.GroupID -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetCreatedBy() *string { - if d == nil { - return nil + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err } - return d.CreatedBy + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetUpdatedBy() *string { - if d == nil { - return nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return d.UpdatedBy + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetActions() *PdfAnnotationActions { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) String() string { if d == nil { - return nil + return "" } - return d.Actions -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor { - if d == nil { - return nil + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } } - return d.Color -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetOpacity() float64 { - if d == nil { - return 0 + if value, err := internal.StringifyJSON(d); err == nil { + return value } - return d.Opacity + return fmt.Sprintf("%#v", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetStrokeWidth() float64 { - if d == nil { - return 0 - } - return d.StrokeWidth -} +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferencesFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferencesFieldTop = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferencesFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferencesFieldBottom = big.NewInt(1 << 3) +) -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetBorderStyle() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle { - if d == nil { - return "" - } - return d.BorderStyle -} +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences struct { + Left float64 `json:"left" url:"left"` + Top float64 `json:"top" url:"top"` + Right float64 `json:"right" url:"right"` + Bottom float64 `json:"bottom" url:"bottom"` -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetDashArray() []float64 { - if d == nil { - return nil - } - return d.DashArray -} + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetInteriorColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor { - if d == nil { - return nil - } - return d.InteriorColor + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetCloudyIntensity() *float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences) GetLeft() float64 { if d == nil { - return nil + return 0 } - return d.CloudyIntensity + return d.Left } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetRectDifferences() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences) GetTop() float64 { if d == nil { - return nil + return 0 } - return d.RectDifferences + return d.Top } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetRotation() *float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences) GetRight() float64 { if d == nil { - return nil + return 0 } - return d.Rotation + return d.Right } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetUnrotatedRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences) GetBottom() float64 { if d == nil { - return nil + return 0 } - return d.UnrotatedRect + return d.Bottom } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetRef sets the Ref field and marks it as non-optional; +// SetLeft sets the Left field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef) { - d.Ref = ref - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldRef) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferencesFieldLeft) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetTop sets the Top field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferencesFieldTop) } -// SetIndex sets the Index field and marks it as non-optional; +// SetRight sets the Right field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldIndex) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferencesFieldRight) } -// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; +// SetBottom sets the Bottom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQuality) { - d.IdentityQuality = identityQuality - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldIdentityQuality) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferencesFieldBottom) } -// SetNm sets the Nm field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetNm(nm *string) { - d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldNm) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -// SetFlags sets the Flags field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) { - d.Flags = flags - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldFlags) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -// SetRect sets the Rect field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect) { - d.Rect = rect - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldRect) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -// SetContents sets the Contents field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetContents(contents *string) { - d.Contents = contents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldContents) -} +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex -// SetSubject sets the Subject field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetSubject(subject *string) { - d.Subject = subject - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldSubject) + rawJSON json.RawMessage } -// SetAuthor sets the Author field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetAuthor(author *string) { - d.Author = author - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldAuthor) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef) GetKind() string { + if d == nil { + return "" + } + return d.Kind } -// SetCreated sets the Created field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetCreated(created *time.Time) { - d.Created = created - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldCreated) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber } -// SetModified sets the Modified field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetModified(modified *time.Time) { - d.Modified = modified - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldModified) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm { + if d == nil { + return nil + } + return d.Nm } -// SetBlendMode sets the BlendMode field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode) { - d.BlendMode = blendMode - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldBlendMode) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex { + if d == nil { + return nil + } + return d.Index } -// SetInReplyTo sets the InReplyTo field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo) { - d.InReplyTo = inReplyTo - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldInReplyTo) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value + } + d.rawJSON = json.RawMessage(data) + return nil } -// SetReplyType sets the ReplyType field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyType) { - d.ReplyType = replyType - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldReplyType) +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err + } + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Nm != nil { + return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + } + if d.Index != nil { + return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -// SetUserID sets the UserID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetUserID(userID *string) { - d.UserID = userID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldUserID) +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex) error } -// SetGroupID sets the GroupID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetGroupID(groupID *string) { - d.GroupID = groupID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldGroupID) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) + } + if d.Nm != nil { + return visitor.VisitNm(d.Nm) + } + if d.Index != nil { + return visitor.VisitIndex(d.Index) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) } -// SetCreatedBy sets the CreatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetCreatedBy(createdBy *string) { - d.CreatedBy = createdBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldCreatedBy) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Nm != nil { + fields = append(fields, "nm") + } + if d.Index != nil { + fields = append(fields, "index") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil } -// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetUpdatedBy(updatedBy *string) { - d.UpdatedBy = updatedBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldUpdatedBy) -} +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexFieldRevision = big.NewInt(1 << 2) +) -// SetActions sets the Actions field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetActions(actions *PdfAnnotationActions) { - d.Actions = actions - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldActions) -} +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision `json:"revision" url:"revision"` -// SetColor sets the Color field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetColor(color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor) { - d.Color = color - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldColor) -} + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` -// SetOpacity sets the Opacity field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetOpacity(opacity float64) { - d.Opacity = opacity - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldOpacity) + extraProperties map[string]interface{} + rawJSON json.RawMessage } -// SetStrokeWidth sets the StrokeWidth field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetStrokeWidth(strokeWidth float64) { - d.StrokeWidth = strokeWidth - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldStrokeWidth) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber } -// SetBorderStyle sets the BorderStyle field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetBorderStyle(borderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle) { - d.BorderStyle = borderStyle - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldBorderStyle) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index } -// SetDashArray sets the DashArray field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetDashArray(dashArray []float64) { - d.DashArray = dashArray - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldDashArray) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision { + if d == nil { + return nil + } + return d.Revision } -// SetInteriorColor sets the InteriorColor field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetInteriorColor(interiorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor) { - d.InteriorColor = interiorColor - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldInteriorColor) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties } -// SetCloudyIntensity sets the CloudyIntensity field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetCloudyIntensity(cloudyIntensity *float64) { - d.CloudyIntensity = cloudyIntensity - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldCloudyIntensity) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) } -// SetRectDifferences sets the RectDifferences field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetRectDifferences(rectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences) { - d.RectDifferences = rectDifferences - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldRectDifferences) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexFieldPageObjectNumber) } -// SetRotation sets the Rotation field and marks it as non-optional; +// SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetRotation(rotation *float64) { - d.Rotation = rotation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldRotation) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexFieldIndex) } -// SetUnrotatedRect sets the UnrotatedRect field and marks it as non-optional; +// SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) SetUnrotatedRect(unrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect) { - d.UnrotatedRect = unrotatedRect - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFieldUnrotatedRect) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexFieldRevision) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) UnmarshalJSON(data []byte) error { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle - var unmarshaler = struct { - embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` - }{ - embed: embed(*d), - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle(unmarshaler.embed) - d.Created = unmarshaler.Created.TimePtr() - d.Modified = unmarshaler.Modified.TimePtr() + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -61821,22 +76684,18 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) Unmarsh return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex var marshaler = struct { embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), - Created: internal.NewOptionalDateTime(d.Created), - Modified: internal.NewOptionalDateTime(d.Modified), + embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex) String() string { if d == nil { return "" } @@ -61851,108 +76710,16 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle) String( return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode = "normal" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode = "multiply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode = "screen" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode = "overlay" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode = "darken" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode = "lighten" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode = "color-dodge" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode = "color-burn" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode = "hard-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode = "soft-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode = "difference" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode = "exclusion" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode = "hue" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode = "saturation" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode = "color" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode = "luminosity" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode, error) { - switch s { - case "normal": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeNormal, nil - case "multiply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeMultiply, nil - case "screen": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeScreen, nil - case "overlay": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeOverlay, nil - case "darken": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeDarken, nil - case "lighten": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeLighten, nil - case "color-dodge": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeColorDodge, nil - case "color-burn": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeColorBurn, nil - case "hard-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeHardLight, nil - case "soft-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeSoftLight, nil - case "difference": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeDifference, nil - case "exclusion": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeExclusion, nil - case "hue": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeHue, nil - case "saturation": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeSaturation, nil - case "color": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeColor, nil - case "luminosity": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendModeLuminosity, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode { - return &d -} - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyleSolid DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle = "solid" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyleDashed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle = "dashed" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyleBeveled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle = "beveled" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyleInset DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle = "inset" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyleFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle, error) { - switch s { - case "solid": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyleSolid, nil - case "dashed": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyleDashed, nil - case "beveled": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyleBeveled, nil - case "inset": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyleInset, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle { - return &d -} - var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColorFieldR = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColorFieldG = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColorFieldB = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor struct { - R int `json:"r" url:"r"` - G int `json:"g" url:"g"` - B int `json:"b" url:"b"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -61961,69 +76728,69 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor struct rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor) GetR() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision) GetDocSessionID() string { if d == nil { - return 0 + return "" } - return d.R + return d.DocSessionID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor) GetG() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } - return d.G + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor) GetB() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision) GetGeneration() int { if d == nil { return 0 } - return d.B + return d.Generation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetR sets the R field and marks it as non-optional; +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor) SetR(r int) { - d.R = r - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColorFieldR) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevisionFieldDocSessionID) } -// SetG sets the G field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor) SetG(g int) { - d.G = g - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColorFieldG) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevisionFieldPageObjectNumber) } -// SetB sets the B field and marks it as non-optional; +// SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor) SetB(b int) { - d.B = b - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColorFieldB) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevisionFieldGeneration) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -62033,8 +76800,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor) Un return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision var marshaler = struct { embed }{ @@ -62044,7 +76811,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor) Ma return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision) String() string { if d == nil { return "" } @@ -62060,29 +76827,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor) St } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldInvisible = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldHidden = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldPrint = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldNoZoom = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldNoRotate = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldNoView = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldReadOnly = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldLocked = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldToggleNoView = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldLockedContents = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags struct { - Invisible bool `json:"invisible" url:"invisible"` - Hidden bool `json:"hidden" url:"hidden"` - Print bool `json:"print" url:"print"` - NoZoom bool `json:"noZoom" url:"noZoom"` - NoRotate bool `json:"noRotate" url:"noRotate"` - NoView bool `json:"noView" url:"noView"` - ReadOnly bool `json:"readOnly" url:"readOnly"` - Locked bool `json:"locked" url:"locked"` - ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` - LockedContents bool `json:"lockedContents" url:"lockedContents"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -62091,167 +76842,277 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags struct rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) GetInvisible() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm) GetPageObjectNumber() int { if d == nil { - return false + return 0 } - return d.Invisible + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) GetHidden() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm) GetNm() string { if d == nil { - return false + return "" } - return d.Hidden + return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) GetPrint() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm) GetExtraProperties() map[string]interface{} { if d == nil { - return false + return nil } - return d.Print + return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) GetNoZoom() bool { - if d == nil { - return false +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.NoZoom + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) GetNoRotate() bool { - if d == nil { - return false - } - return d.NoRotate +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNmFieldPageObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) GetNoView() bool { - if d == nil { - return false +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNmFieldNm) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - return d.NoView + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) GetReadOnly() bool { - if d == nil { - return false +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return d.ReadOnly + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) GetLocked() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm) String() string { if d == nil { - return false + return "" } - return d.Locked + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) GetToggleNoView() bool { +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber) GetPageObjectNumber() int { if d == nil { - return false + return 0 } - return d.ToggleNoView + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) GetLockedContents() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber) GetAnnotObjectNumber() int { if d == nil { - return false + return 0 } - return d.LockedContents + return d.AnnotObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetInvisible sets the Invisible field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) SetInvisible(invisible bool) { - d.Invisible = invisible - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldInvisible) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumberFieldPageObjectNumber) } -// SetHidden sets the Hidden field and marks it as non-optional; +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) SetHidden(hidden bool) { - d.Hidden = hidden - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldHidden) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumberFieldAnnotObjectNumber) } -// SetPrint sets the Print field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) SetPrint(print bool) { - d.Print = print - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldPrint) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -// SetNoZoom sets the NoZoom field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) SetNoZoom(noZoom bool) { - d.NoZoom = noZoom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldNoZoom) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -// SetNoRotate sets the NoRotate field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) SetNoRotate(noRotate bool) { - d.NoRotate = noRotate - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldNoRotate) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyType = "reply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyType = "group" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyType, error) { + switch s { + case "reply": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyTypeReply, nil + case "group": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyTypeGroup, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyType { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextFieldBody = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextFieldParagraphs = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText struct { + Body *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody `json:"body" url:"body"` + Paragraphs []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem `json:"paragraphs" url:"paragraphs"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText) GetBody() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody { + if d == nil { + return nil + } + return d.Body } -// SetNoView sets the NoView field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) SetNoView(noView bool) { - d.NoView = noView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldNoView) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText) GetParagraphs() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem { + if d == nil { + return nil + } + return d.Paragraphs } -// SetReadOnly sets the ReadOnly field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) SetReadOnly(readOnly bool) { - d.ReadOnly = readOnly - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldReadOnly) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties } -// SetLocked sets the Locked field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) SetLocked(locked bool) { - d.Locked = locked - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldLocked) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) } -// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// SetBody sets the Body field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) SetToggleNoView(toggleNoView bool) { - d.ToggleNoView = toggleNoView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldToggleNoView) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText) SetBody(body *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) { + d.Body = body + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextFieldBody) } -// SetLockedContents sets the LockedContents field and marks it as non-optional; +// SetParagraphs sets the Paragraphs field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) SetLockedContents(lockedContents bool) { - d.LockedContents = lockedContents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlagsFieldLockedContents) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText) SetParagraphs(paragraphs []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) { + d.Paragraphs = paragraphs + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextFieldParagraphs) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -62261,8 +77122,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) Un return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText var marshaler = struct { embed }{ @@ -62272,7 +77133,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) Ma return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText) String() string { if d == nil { return "" } @@ -62287,259 +77148,279 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags) St return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQuality string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQuality = "durable" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQuality = "weak" +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldFamily = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldWeight = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldItalic = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldSize = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldColor = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldDecoration = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldScript = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldLetterSpacing = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldHorizontalScale = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldUnknown = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldAlign = big.NewInt(1 << 10) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldDir = big.NewInt(1 << 11) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldLineHeight = big.NewInt(1 << 12) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldMargins = big.NewInt(1 << 13) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldTextIndent = big.NewInt(1 << 14) ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQuality, error) { - switch s { - case "durable": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQualityDurable, nil - case "weak": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQualityWeak, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQuality - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQuality { - return &d -} +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody struct { + Family string `json:"family" url:"family"` + Weight int `json:"weight" url:"weight"` + Italic bool `json:"italic" url:"italic"` + Size float64 `json:"size" url:"size"` + Color string `json:"color" url:"color"` + Decoration []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItem `json:"decoration" url:"decoration"` + Script DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScript `json:"script" url:"script"` + LetterSpacing float64 `json:"letterSpacing" url:"letterSpacing"` + HorizontalScale float64 `json:"horizontalScale" url:"horizontalScale"` + Unknown *string `json:"unknown,omitempty" url:"unknown,omitempty"` + Align DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlign `json:"align" url:"align"` + Dir DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDir `json:"dir" url:"dir"` + LineHeight *float64 `json:"lineHeight,omitempty" url:"lineHeight,omitempty"` + Margins *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins `json:"margins,omitempty" url:"margins,omitempty"` + TextIndent *float64 `json:"textIndent,omitempty" url:"textIndent,omitempty"` -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo struct { - Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` - rawJSON json.RawMessage + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo) GetKind() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) GetFamily() string { if d == nil { return "" } - return d.Kind + return d.Family } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) GetWeight() int { if d == nil { - return nil + return 0 } - return d.ObjectNumber + return d.Weight } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) GetItalic() bool { if d == nil { - return nil + return false } - return d.Nm + return d.Italic } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) GetSize() float64 { if d == nil { - return nil + return 0 } - return d.Index + return d.Size } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Nm = value - case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Index = value +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) GetColor() string { + if d == nil { + return "" } - d.rawJSON = json.RawMessage(data) - return nil + return d.Color } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Nm != nil { - return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") - } - if d.Index != nil { - return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) GetDecoration() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItem { + if d == nil { + return nil } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) + return d.Decoration } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex) error +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) GetScript() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScript { + if d == nil { + return "" + } + return d.Script } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) - } - if d.Nm != nil { - return visitor.VisitNm(d.Nm) - } - if d.Index != nil { - return visitor.VisitIndex(d.Index) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) GetLetterSpacing() float64 { + if d == nil { + return 0 } - return fmt.Errorf("type %T does not define a non-empty union type", d) + return d.LetterSpacing } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo) validate() error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) GetHorizontalScale() float64 { if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Nm != nil { - fields = append(fields, "nm") - } - if d.Index != nil { - fields = append(fields, "index") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } + return 0 } - return nil + return d.HorizontalScale } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexFieldRevision = big.NewInt(1 << 2) -) - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision `json:"revision" url:"revision"` +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) GetUnknown() *string { + if d == nil { + return nil + } + return d.Unknown +} - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) GetAlign() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlign { + if d == nil { + return "" + } + return d.Align +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) GetDir() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDir { + if d == nil { + return "" + } + return d.Dir } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) GetLineHeight() *float64 { if d == nil { - return 0 + return nil } - return d.PageObjectNumber + return d.LineHeight } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) GetMargins() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins { if d == nil { - return 0 + return nil } - return d.Index + return d.Margins } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) GetTextIndent() *float64 { if d == nil { return nil } - return d.Revision + return d.TextIndent } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetFamily sets the Family field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) SetFamily(family string) { + d.Family = family + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldFamily) } -// SetIndex sets the Index field and marks it as non-optional; +// SetWeight sets the Weight field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexFieldIndex) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) SetWeight(weight int) { + d.Weight = weight + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldWeight) } -// SetRevision sets the Revision field and marks it as non-optional; +// SetItalic sets the Italic field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision) { - d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexFieldRevision) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) SetItalic(italic bool) { + d.Italic = italic + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldItalic) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex +// SetSize sets the Size field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) SetSize(size float64) { + d.Size = size + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldSize) +} + +// SetColor sets the Color field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) SetColor(color string) { + d.Color = color + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldColor) +} + +// SetDecoration sets the Decoration field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) SetDecoration(decoration []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItem) { + d.Decoration = decoration + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldDecoration) +} + +// SetScript sets the Script field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) SetScript(script DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScript) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldScript) +} + +// SetLetterSpacing sets the LetterSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) SetLetterSpacing(letterSpacing float64) { + d.LetterSpacing = letterSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldLetterSpacing) +} + +// SetHorizontalScale sets the HorizontalScale field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) SetHorizontalScale(horizontalScale float64) { + d.HorizontalScale = horizontalScale + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldHorizontalScale) +} + +// SetUnknown sets the Unknown field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) SetUnknown(unknown *string) { + d.Unknown = unknown + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldUnknown) +} + +// SetAlign sets the Align field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) SetAlign(align DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlign) { + d.Align = align + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldAlign) +} + +// SetDir sets the Dir field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) SetDir(dir DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDir) { + d.Dir = dir + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldDir) +} + +// SetLineHeight sets the LineHeight field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) SetLineHeight(lineHeight *float64) { + d.LineHeight = lineHeight + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldLineHeight) +} + +// SetMargins sets the Margins field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) SetMargins(margins *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins) { + d.Margins = margins + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldMargins) +} + +// SetTextIndent sets the TextIndent field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) SetTextIndent(textIndent *float64) { + d.TextIndent = textIndent + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldTextIndent) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -62549,8 +77430,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody var marshaler = struct { embed }{ @@ -62560,7 +77441,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) String() string { if d == nil { return "" } @@ -62575,16 +77456,93 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo return fmt.Sprintf("%#v", d) } +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlign string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlignLeft DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlign = "left" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlignCenter DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlign = "center" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlignRight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlign = "right" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlignJustify DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlign = "justify" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlignFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlign, error) { + switch s { + case "left": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlignLeft, nil + case "center": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlignCenter, nil + case "right": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlignRight, nil + case "justify": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlignJustify, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlign + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlign) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlign { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItem string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItemUnderline DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItem = "underline" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItemLineThrough DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItem = "line-through" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItemWord DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItem = "word" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItem, error) { + switch s { + case "underline": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItemUnderline, nil + case "line-through": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItemLineThrough, nil + case "word": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItemWord, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItem + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItem { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDir string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDirLtr DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDir = "ltr" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDirRtl DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDir = "rtl" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDirFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDir, error) { + switch s { + case "ltr": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDirLtr, nil + case "rtl": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDirRtl, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDir + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDir) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDir { + return &d +} + var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMarginsFieldTop = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMarginsFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMarginsFieldLeft = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMarginsFieldRight = big.NewInt(1 << 3) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins struct { + Top float64 `json:"top" url:"top"` + Bottom float64 `json:"bottom" url:"bottom"` + Left float64 `json:"left" url:"left"` + Right float64 `json:"right" url:"right"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -62593,69 +77551,83 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToInde rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins) GetTop() float64 { if d == nil { - return "" + return 0 } - return d.DocSessionID + return d.Top } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins) GetBottom() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.Bottom } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision) GetGeneration() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins) GetLeft() float64 { if d == nil { return 0 } - return d.Generation + return d.Left } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins) GetRight() float64 { + if d == nil { + return 0 + } + return d.Right +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// SetTop sets the Top field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevisionFieldDocSessionID) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMarginsFieldTop) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetBottom sets the Bottom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevisionFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMarginsFieldBottom) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetLeft sets the Left field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevisionFieldGeneration) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMarginsFieldLeft) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision +// SetRight sets the Right field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMarginsFieldRight) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -62665,8 +77637,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins var marshaler = struct { embed }{ @@ -62676,7 +77648,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins) String() string { if d == nil { return "" } @@ -62691,14 +77663,49 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo return fmt.Sprintf("%#v", d) } +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScript string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScriptNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScript = "normal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScriptSub DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScript = "sub" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScriptSuper DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScript = "super" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScriptFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScript, error) { + switch s { + case "normal": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScriptNormal, nil + case "sub": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScriptSub, nil + case "super": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScriptSuper, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScript + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScript) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScript { + return &d +} + var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNmFieldNm = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemFieldAlign = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemFieldDir = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemFieldLineHeight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemFieldMargins = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemFieldTextIndent = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemFieldUnknown = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemFieldRuns = big.NewInt(1 << 6) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem struct { + Align *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlign `json:"align,omitempty" url:"align,omitempty"` + Dir *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDir `json:"dir,omitempty" url:"dir,omitempty"` + LineHeight *float64 `json:"lineHeight,omitempty" url:"lineHeight,omitempty"` + Margins *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins `json:"margins,omitempty" url:"margins,omitempty"` + TextIndent *float64 `json:"textIndent,omitempty" url:"textIndent,omitempty"` + Unknown *string `json:"unknown,omitempty" url:"unknown,omitempty"` + Runs []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem `json:"runs" url:"runs"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -62707,155 +77714,125 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm s rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) GetAlign() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlign { if d == nil { - return 0 + return nil } - return d.PageObjectNumber + return d.Align } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm) GetNm() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) GetDir() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDir { if d == nil { - return "" + return nil } - return d.Nm + return d.Dir } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) GetLineHeight() *float64 { if d == nil { return nil } - return d.extraProperties -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNmFieldPageObjectNumber) -} - -// SetNm sets the Nm field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNmFieldNm) -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil + return d.LineHeight } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) GetMargins() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins { + if d == nil { + return nil } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return d.Margins } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) GetTextIndent() *float64 { if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value + return nil } - return fmt.Sprintf("%#v", d) -} - -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) -) - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage + return d.TextIndent } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) GetUnknown() *string { if d == nil { - return 0 + return nil } - return d.PageObjectNumber + return d.Unknown } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) GetRuns() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem { if d == nil { - return 0 + return nil } - return d.AnnotObjectNumber + return d.Runs } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetAlign sets the Align field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumberFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) SetAlign(align *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlign) { + d.Align = align + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemFieldAlign) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetDir sets the Dir field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumberFieldAnnotObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) SetDir(dir *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDir) { + d.Dir = dir + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemFieldDir) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber +// SetLineHeight sets the LineHeight field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) SetLineHeight(lineHeight *float64) { + d.LineHeight = lineHeight + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemFieldLineHeight) +} + +// SetMargins sets the Margins field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) SetMargins(margins *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins) { + d.Margins = margins + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemFieldMargins) +} + +// SetTextIndent sets the TextIndent field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) SetTextIndent(textIndent *float64) { + d.TextIndent = textIndent + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemFieldTextIndent) +} + +// SetUnknown sets the Unknown field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) SetUnknown(unknown *string) { + d.Unknown = unknown + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemFieldUnknown) +} + +// SetRuns sets the Runs field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) SetRuns(runs []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem) { + d.Runs = runs + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemFieldRuns) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -62865,8 +77842,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem var marshaler = struct { embed }{ @@ -62876,7 +77853,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) String() string { if d == nil { return "" } @@ -62891,16 +77868,68 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo return fmt.Sprintf("%#v", d) } +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlign string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlignLeft DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlign = "left" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlignCenter DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlign = "center" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlignRight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlign = "right" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlignJustify DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlign = "justify" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlignFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlign, error) { + switch s { + case "left": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlignLeft, nil + case "center": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlignCenter, nil + case "right": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlignRight, nil + case "justify": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlignJustify, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlign + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlign) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlign { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDir string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDirLtr DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDir = "ltr" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDirRtl DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDir = "rtl" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDirFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDir, error) { + switch s { + case "ltr": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDirLtr, nil + case "rtl": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDirRtl, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDir + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDir) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDir { + return &d +} + var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColorFieldR = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColorFieldG = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColorFieldB = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMarginsFieldTop = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMarginsFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMarginsFieldLeft = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMarginsFieldRight = big.NewInt(1 << 3) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor struct { - R int `json:"r" url:"r"` - G int `json:"g" url:"g"` - B int `json:"b" url:"b"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins struct { + Top float64 `json:"top" url:"top"` + Bottom float64 `json:"bottom" url:"bottom"` + Left float64 `json:"left" url:"left"` + Right float64 `json:"right" url:"right"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -62909,69 +77938,83 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor) GetR() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins) GetTop() float64 { if d == nil { return 0 } - return d.R + return d.Top } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor) GetG() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins) GetBottom() float64 { if d == nil { return 0 } - return d.G + return d.Bottom } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor) GetB() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins) GetLeft() float64 { if d == nil { return 0 } - return d.B + return d.Left } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins) GetRight() float64 { + if d == nil { + return 0 + } + return d.Right +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetR sets the R field and marks it as non-optional; +// SetTop sets the Top field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor) SetR(r int) { - d.R = r - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColorFieldR) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMarginsFieldTop) } -// SetG sets the G field and marks it as non-optional; +// SetBottom sets the Bottom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor) SetG(g int) { - d.G = g - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColorFieldG) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMarginsFieldBottom) } -// SetB sets the B field and marks it as non-optional; +// SetLeft sets the Left field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor) SetB(b int) { - d.B = b - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColorFieldB) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMarginsFieldLeft) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor +// SetRight sets the Right field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMarginsFieldRight) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -62981,8 +78024,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorC return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins var marshaler = struct { embed }{ @@ -62992,7 +78035,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorC return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins) String() string { if d == nil { return "" } @@ -63008,17 +78051,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorC } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectFieldRight = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectFieldTop = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemFieldText = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemFieldStyle = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect struct { - Left float64 `json:"left" url:"left"` - Bottom float64 `json:"bottom" url:"bottom"` - Right float64 `json:"right" url:"right"` - Top float64 `json:"top" url:"top"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem struct { + Text string `json:"text" url:"text"` + Style *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle `json:"style,omitempty" url:"style,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -63027,83 +78066,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect) GetLeft() float64 { - if d == nil { - return 0 - } - return d.Left -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect) GetBottom() float64 { - if d == nil { - return 0 - } - return d.Bottom -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect) GetRight() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem) GetText() string { if d == nil { - return 0 + return "" } - return d.Right + return d.Text } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect) GetTop() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem) GetStyle() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle { if d == nil { - return 0 + return nil } - return d.Top + return d.Style } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetLeft sets the Left field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect) SetLeft(left float64) { - d.Left = left - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectFieldLeft) -} - -// SetBottom sets the Bottom field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectFieldBottom) -} - -// SetRight sets the Right field and marks it as non-optional; +// SetText sets the Text field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect) SetRight(right float64) { - d.Right = right - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectFieldRight) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem) SetText(text string) { + d.Text = text + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemFieldText) } -// SetTop sets the Top field and marks it as non-optional; +// SetStyle sets the Style field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectFieldTop) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem) SetStyle(style *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) { + d.Style = style + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemFieldStyle) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -63113,8 +78124,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect) Unm return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem var marshaler = struct { embed }{ @@ -63124,7 +78135,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect) Mar return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem) String() string { if d == nil { return "" } @@ -63140,17 +78151,29 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect) Str } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferencesFieldLeft = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferencesFieldTop = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferencesFieldRight = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferencesFieldBottom = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldFamily = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldWeight = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldItalic = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldSize = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldColor = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldDecoration = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldScript = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldLetterSpacing = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldHorizontalScale = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldUnknown = big.NewInt(1 << 9) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences struct { - Left float64 `json:"left" url:"left"` - Top float64 `json:"top" url:"top"` - Right float64 `json:"right" url:"right"` - Bottom float64 `json:"bottom" url:"bottom"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle struct { + Family *string `json:"family,omitempty" url:"family,omitempty"` + Weight *int `json:"weight,omitempty" url:"weight,omitempty"` + Italic *bool `json:"italic,omitempty" url:"italic,omitempty"` + Size *float64 `json:"size,omitempty" url:"size,omitempty"` + Color *string `json:"color,omitempty" url:"color,omitempty"` + Decoration []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem `json:"decoration,omitempty" url:"decoration,omitempty"` + Script *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScript `json:"script,omitempty" url:"script,omitempty"` + LetterSpacing *float64 `json:"letterSpacing,omitempty" url:"letterSpacing,omitempty"` + HorizontalScale *float64 `json:"horizontalScale,omitempty" url:"horizontalScale,omitempty"` + Unknown *string `json:"unknown,omitempty" url:"unknown,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -63159,83 +78182,167 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferenc rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences) GetLeft() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) GetFamily() *string { if d == nil { - return 0 + return nil } - return d.Left + return d.Family } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences) GetTop() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) GetWeight() *int { if d == nil { - return 0 + return nil } - return d.Top + return d.Weight } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences) GetRight() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) GetItalic() *bool { if d == nil { - return 0 + return nil } - return d.Right + return d.Italic } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences) GetBottom() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) GetSize() *float64 { if d == nil { - return 0 + return nil } - return d.Bottom + return d.Size } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) GetColor() *string { + if d == nil { + return nil + } + return d.Color +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) GetDecoration() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem { + if d == nil { + return nil + } + return d.Decoration +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) GetScript() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScript { + if d == nil { + return nil + } + return d.Script +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) GetLetterSpacing() *float64 { + if d == nil { + return nil + } + return d.LetterSpacing +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) GetHorizontalScale() *float64 { + if d == nil { + return nil + } + return d.HorizontalScale +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) GetUnknown() *string { + if d == nil { + return nil + } + return d.Unknown +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetLeft sets the Left field and marks it as non-optional; +// SetFamily sets the Family field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences) SetLeft(left float64) { - d.Left = left - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferencesFieldLeft) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) SetFamily(family *string) { + d.Family = family + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldFamily) } -// SetTop sets the Top field and marks it as non-optional; +// SetWeight sets the Weight field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferencesFieldTop) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) SetWeight(weight *int) { + d.Weight = weight + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldWeight) } -// SetRight sets the Right field and marks it as non-optional; +// SetItalic sets the Italic field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences) SetRight(right float64) { - d.Right = right - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferencesFieldRight) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) SetItalic(italic *bool) { + d.Italic = italic + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldItalic) } -// SetBottom sets the Bottom field and marks it as non-optional; +// SetSize sets the Size field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferencesFieldBottom) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) SetSize(size *float64) { + d.Size = size + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldSize) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences +// SetColor sets the Color field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) SetColor(color *string) { + d.Color = color + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldColor) +} + +// SetDecoration sets the Decoration field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) SetDecoration(decoration []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem) { + d.Decoration = decoration + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldDecoration) +} + +// SetScript sets the Script field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) SetScript(script *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScript) { + d.Script = script + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldScript) +} + +// SetLetterSpacing sets the LetterSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) SetLetterSpacing(letterSpacing *float64) { + d.LetterSpacing = letterSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldLetterSpacing) +} + +// SetHorizontalScale sets the HorizontalScale field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) SetHorizontalScale(horizontalScale *float64) { + d.HorizontalScale = horizontalScale + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldHorizontalScale) +} + +// SetUnknown sets the Unknown field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) SetUnknown(unknown *string) { + d.Unknown = unknown + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldUnknown) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -63245,8 +78352,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDiffe return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle var marshaler = struct { embed }{ @@ -63256,7 +78363,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDiffe return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) String() string { if d == nil { return "" } @@ -63271,166 +78378,93 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDiffe return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef struct { - Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem string - rawJSON json.RawMessage -} +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItemUnderline DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem = "underline" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItemLineThrough DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem = "line-through" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItemWord DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem = "word" +) -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef) GetKind() string { - if d == nil { - return "" +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem, error) { + switch s { + case "underline": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItemUnderline, nil + case "line-through": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItemLineThrough, nil + case "word": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItemWord, nil } - return d.Kind + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber { - if d == nil { - return nil - } - return d.ObjectNumber +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem { + return &d } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm { - if d == nil { - return nil - } - return d.Nm -} +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScript string -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex { - if d == nil { - return nil - } - return d.Index -} +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScriptNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScript = "normal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScriptSub DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScript = "sub" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScriptSuper DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScript = "super" +) -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Nm = value - case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Index = value +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScriptFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScript, error) { + switch s { + case "normal": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScriptNormal, nil + case "sub": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScriptSub, nil + case "super": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScriptSuper, nil } - d.rawJSON = json.RawMessage(data) - return nil + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScript + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Nm != nil { - return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") - } - if d.Index != nil { - return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil - } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScript) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScript { + return &d } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex) error -} +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign string -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) - } - if d.Nm != nil { - return visitor.VisitNm(d.Nm) - } - if d.Index != nil { - return visitor.VisitIndex(d.Index) +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlignLeft DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign = "left" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlignCenter DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign = "center" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlignRight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign = "right" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlignFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign, error) { + switch s { + case "left": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlignLeft, nil + case "center": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlignCenter, nil + case "right": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlignRight, nil } - return fmt.Errorf("type %T does not define a non-empty union type", d) + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef) validate() error { - if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Nm != nil { - fields = append(fields, "nm") - } - if d.Index != nil { - fields = append(fields, "index") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } - } - return nil +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign { + return &d } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRectFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRectFieldTop = big.NewInt(1 << 3) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect struct { + Left float64 `json:"left" url:"left"` + Bottom float64 `json:"bottom" url:"bottom"` + Right float64 `json:"right" url:"right"` + Top float64 `json:"top" url:"top"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -63439,69 +78473,83 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex stru rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect) GetLeft() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.Left } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect) GetBottom() float64 { if d == nil { return 0 } - return d.Index + return d.Bottom } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect) GetRight() float64 { if d == nil { - return nil + return 0 } - return d.Revision + return d.Right } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect) GetTop() float64 { + if d == nil { + return 0 + } + return d.Top +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetLeft sets the Left field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRectFieldLeft) } -// SetIndex sets the Index field and marks it as non-optional; +// SetBottom sets the Bottom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexFieldIndex) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRectFieldBottom) } -// SetRevision sets the Revision field and marks it as non-optional; +// SetRight sets the Right field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision) { - d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexFieldRevision) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRectFieldRight) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex +// SetTop sets the Top field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRectFieldTop) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -63511,8 +78559,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex) return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect var marshaler = struct { embed }{ @@ -63522,7 +78570,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect) String() string { if d == nil { return "" } @@ -63538,15 +78586,55 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex) } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldRef = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldIndex = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldIdentityQuality = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldNm = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldFlags = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldRect = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldContents = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldSubject = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldAuthor = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldCreated = big.NewInt(1 << 10) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldModified = big.NewInt(1 << 11) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldBlendMode = big.NewInt(1 << 12) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldInReplyTo = big.NewInt(1 << 13) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldReplyType = big.NewInt(1 << 14) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldUserID = big.NewInt(1 << 15) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldGroupID = big.NewInt(1 << 16) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldCreatedBy = big.NewInt(1 << 17) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldUpdatedBy = big.NewInt(1 << 18) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldActions = big.NewInt(1 << 19) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldColor = big.NewInt(1 << 20) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldOpacity = big.NewInt(1 << 21) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldQuadPoints = big.NewInt(1 << 22) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight struct { + Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef `json:"ref" url:"ref"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQuality `json:"identityQuality" url:"identityQuality"` + Nm *string `json:"nm,omitempty" url:"nm,omitempty"` + Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags `json:"flags" url:"flags"` + Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect `json:"rect" url:"rect"` + Contents *string `json:"contents,omitempty" url:"contents,omitempty"` + Subject *string `json:"subject,omitempty" url:"subject,omitempty"` + Author *string `json:"author,omitempty" url:"author,omitempty"` + Created *time.Time `json:"created,omitempty" url:"created,omitempty"` + Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` + BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode `json:"blendMode" url:"blendMode"` + InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` + ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` + UserID *string `json:"userId,omitempty" url:"userId,omitempty"` + GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` + CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` + Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` + Color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor `json:"color" url:"color"` + Opacity float64 `json:"opacity" url:"opacity"` + QuadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem `json:"quadPoints" url:"quadPoints"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -63555,269 +78643,357 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevis rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef { if d == nil { - return "" + return nil } - return d.DocSessionID + return d.Ref } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision) GetGeneration() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetIndex() int { if d == nil { return 0 } - return d.Generation + return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQuality { + if d == nil { + return "" + } + return d.IdentityQuality +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetNm() *string { if d == nil { return nil } - return d.extraProperties + return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags { + if d == nil { + return nil } - d.explicitFields.Or(d.explicitFields, field) + return d.Flags } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevisionFieldDocSessionID) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect { + if d == nil { + return nil + } + return d.Rect } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevisionFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetContents() *string { + if d == nil { + return nil + } + return d.Contents } -// SetGeneration sets the Generation field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevisionFieldGeneration) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetAuthor() *string { + if d == nil { + return nil } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err + return d.Author +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetCreated() *time.Time { + if d == nil { + return nil } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil + return d.Created } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetModified() *time.Time { + if d == nil { + return nil } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return d.Modified } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode { if d == nil { - return "" + return "" } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } + return d.BlendMode +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo { + if d == nil { + return nil } - if value, err := internal.StringifyJSON(d); err == nil { - return value + return d.InReplyTo +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType { + if d == nil { + return nil } - return fmt.Sprintf("%#v", d) + return d.ReplyType } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNmFieldNm = big.NewInt(1 << 1) -) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetUserID() *string { + if d == nil { + return nil + } + return d.UserID +} -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetGroupID() *string { + if d == nil { + return nil + } + return d.GroupID +} - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetCreatedBy() *string { + if d == nil { + return nil + } + return d.CreatedBy +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetUpdatedBy() *string { + if d == nil { + return nil + } + return d.UpdatedBy } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetActions() *PdfAnnotationActions { + if d == nil { + return nil + } + return d.Actions +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor { + if d == nil { + return nil + } + return d.Color +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetOpacity() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.Opacity } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm) GetNm() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetQuadPoints() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem { if d == nil { - return "" + return nil } - return d.Nm + return d.QuadPoints } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } +// SetRef sets the Ref field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef) { + d.Ref = ref + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldRef) +} + // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNmFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldPageObjectNumber) +} + +// SetIndex sets the Index field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldIndex) +} + +// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQuality) { + d.IdentityQuality = identityQuality + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldIdentityQuality) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm) SetNm(nm string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetNm(nm *string) { d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNmFieldNm) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldNm) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil +// SetFlags sets the Flags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) { + d.Flags = flags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldFlags) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) +// SetRect sets the Rect field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) { + d.Rect = rect + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldRect) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) +// SetContents sets the Contents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetContents(contents *string) { + d.Contents = contents + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldContents) } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) -) +// SetSubject sets the Subject field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetSubject(subject *string) { + d.Subject = subject + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldSubject) +} -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` +// SetAuthor sets the Author field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetAuthor(author *string) { + d.Author = author + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldAuthor) +} - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +// SetCreated sets the Created field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetCreated(created *time.Time) { + d.Created = created + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldCreated) +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +// SetModified sets the Modified field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetModified(modified *time.Time) { + d.Modified = modified + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldModified) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber +// SetBlendMode sets the BlendMode field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode) { + d.BlendMode = blendMode + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldBlendMode) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber) GetAnnotObjectNumber() int { - if d == nil { - return 0 - } - return d.AnnotObjectNumber +// SetInReplyTo sets the InReplyTo field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo) { + d.InReplyTo = inReplyTo + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldInReplyTo) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties +// SetReplyType sets the ReplyType field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType) { + d.ReplyType = replyType + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldReplyType) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) +// SetUserID sets the UserID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetUserID(userID *string) { + d.UserID = userID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldUserID) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetGroupID sets the GroupID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumberFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetGroupID(groupID *string) { + d.GroupID = groupID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldGroupID) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetCreatedBy sets the CreatedBy field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumberFieldAnnotObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetCreatedBy(createdBy *string) { + d.CreatedBy = createdBy + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldCreatedBy) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { +// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetUpdatedBy(updatedBy *string) { + d.UpdatedBy = updatedBy + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldUpdatedBy) +} + +// SetActions sets the Actions field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetActions(actions *PdfAnnotationActions) { + d.Actions = actions + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldActions) +} + +// SetColor sets the Color field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetColor(color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) { + d.Color = color + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldColor) +} + +// SetOpacity sets the Opacity field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetOpacity(opacity float64) { + d.Opacity = opacity + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldOpacity) +} + +// SetQuadPoints sets the QuadPoints field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetQuadPoints(quadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem) { + d.QuadPoints = quadPoints + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldQuadPoints) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) UnmarshalJSON(data []byte) error { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight + var unmarshaler = struct { + embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight(unmarshaler.embed) + d.Created = unmarshaler.Created.TimePtr() + d.Modified = unmarshaler.Modified.TimePtr() extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -63827,18 +79003,22 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObject return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight var marshaler = struct { embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), + embed: embed(*d), + Created: internal.NewOptionalDateTime(d.Created), + Modified: internal.NewOptionalDateTime(d.Modified), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) String() string { if d == nil { return "" } @@ -63853,40 +79033,80 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObject return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyType string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyType = "reply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyType = "group" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode = "normal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode = "multiply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode = "screen" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode = "overlay" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode = "darken" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode = "lighten" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode = "color-dodge" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode = "color-burn" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode = "hard-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode = "soft-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode = "difference" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode = "exclusion" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode = "hue" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode = "saturation" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode = "color" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode = "luminosity" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyType, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode, error) { switch s { - case "reply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyTypeReply, nil - case "group": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyTypeGroup, nil + case "normal": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeNormal, nil + case "multiply": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeMultiply, nil + case "screen": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeScreen, nil + case "overlay": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeOverlay, nil + case "darken": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeDarken, nil + case "lighten": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeLighten, nil + case "color-dodge": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeColorDodge, nil + case "color-burn": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeColorBurn, nil + case "hard-light": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeHardLight, nil + case "soft-light": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeSoftLight, nil + case "difference": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeDifference, nil + case "exclusion": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeExclusion, nil + case "hue": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeHue, nil + case "saturation": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeSaturation, nil + case "color": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeColor, nil + case "luminosity": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeLuminosity, nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyType + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyType { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode { return &d } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRectFieldRight = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRectFieldTop = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColorFieldB = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect struct { - Left float64 `json:"left" url:"left"` - Bottom float64 `json:"bottom" url:"bottom"` - Right float64 `json:"right" url:"right"` - Top float64 `json:"top" url:"top"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor struct { + R int `json:"r" url:"r"` + G int `json:"g" url:"g"` + B int `json:"b" url:"b"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -63895,83 +79115,69 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect) GetLeft() float64 { - if d == nil { - return 0 - } - return d.Left -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect) GetBottom() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) GetR() int { if d == nil { return 0 } - return d.Bottom + return d.R } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect) GetRight() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) GetG() int { if d == nil { return 0 } - return d.Right + return d.G } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect) GetTop() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) GetB() int { if d == nil { return 0 } - return d.Top + return d.B } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetLeft sets the Left field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect) SetLeft(left float64) { - d.Left = left - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRectFieldLeft) -} - -// SetBottom sets the Bottom field and marks it as non-optional; +// SetR sets the R field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRectFieldBottom) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) SetR(r int) { + d.R = r + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColorFieldR) } -// SetRight sets the Right field and marks it as non-optional; +// SetG sets the G field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect) SetRight(right float64) { - d.Right = right - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRectFieldRight) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) SetG(g int) { + d.G = g + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColorFieldG) } -// SetTop sets the Top field and marks it as non-optional; +// SetB sets the B field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRectFieldTop) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) SetB(b int) { + d.B = b + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColorFieldB) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -63981,8 +79187,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotated return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor var marshaler = struct { embed }{ @@ -63992,7 +79198,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotated return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) String() string { if d == nil { return "" } @@ -64008,57 +79214,29 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotated } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldRef = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldIndex = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldIdentityQuality = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldNm = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldFlags = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldRect = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldContents = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldSubject = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldAuthor = big.NewInt(1 << 9) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldCreated = big.NewInt(1 << 10) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldModified = big.NewInt(1 << 11) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldBlendMode = big.NewInt(1 << 12) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldInReplyTo = big.NewInt(1 << 13) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldReplyType = big.NewInt(1 << 14) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldUserID = big.NewInt(1 << 15) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldGroupID = big.NewInt(1 << 16) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldCreatedBy = big.NewInt(1 << 17) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldUpdatedBy = big.NewInt(1 << 18) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldActions = big.NewInt(1 << 19) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldColor = big.NewInt(1 << 20) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldOpacity = big.NewInt(1 << 21) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldIcon = big.NewInt(1 << 22) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldFile = big.NewInt(1 << 23) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldInvisible = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldHidden = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldPrint = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldNoZoom = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldNoRotate = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldNoView = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldReadOnly = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldLocked = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldToggleNoView = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldLockedContents = big.NewInt(1 << 9) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment struct { - Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef `json:"ref" url:"ref"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQuality `json:"identityQuality" url:"identityQuality"` - Nm *string `json:"nm,omitempty" url:"nm,omitempty"` - Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags `json:"flags" url:"flags"` - Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect `json:"rect" url:"rect"` - Contents *string `json:"contents,omitempty" url:"contents,omitempty"` - Subject *string `json:"subject,omitempty" url:"subject,omitempty"` - Author *string `json:"author,omitempty" url:"author,omitempty"` - Created *time.Time `json:"created,omitempty" url:"created,omitempty"` - Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` - BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode `json:"blendMode" url:"blendMode"` - InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` - ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` - UserID *string `json:"userId,omitempty" url:"userId,omitempty"` - GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` - CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` - Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` - Color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor `json:"color" url:"color"` - Opacity float64 `json:"opacity" url:"opacity"` - Icon DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon `json:"icon" url:"icon"` - File *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile `json:"file" url:"file"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags struct { + Invisible bool `json:"invisible" url:"invisible"` + Hidden bool `json:"hidden" url:"hidden"` + Print bool `json:"print" url:"print"` + NoZoom bool `json:"noZoom" url:"noZoom"` + NoRotate bool `json:"noRotate" url:"noRotate"` + NoView bool `json:"noView" url:"noView"` + ReadOnly bool `json:"readOnly" url:"readOnly"` + Locked bool `json:"locked" url:"locked"` + ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` + LockedContents bool `json:"lockedContents" url:"lockedContents"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -64067,371 +79245,455 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment stru rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) GetInvisible() bool { if d == nil { - return nil + return false } - return d.Ref + return d.Invisible } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) GetHidden() bool { if d == nil { - return 0 + return false } - return d.PageObjectNumber + return d.Hidden } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) GetPrint() bool { if d == nil { - return 0 + return false } - return d.Index + return d.Print } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQuality { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) GetNoZoom() bool { if d == nil { - return "" + return false } - return d.IdentityQuality + return d.NoZoom } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetNm() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) GetNoRotate() bool { if d == nil { - return nil + return false } - return d.Nm + return d.NoRotate } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) GetNoView() bool { if d == nil { - return nil + return false } - return d.Flags + return d.NoView } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) GetReadOnly() bool { if d == nil { - return nil + return false } - return d.Rect + return d.ReadOnly } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetContents() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) GetLocked() bool { if d == nil { - return nil + return false } - return d.Contents + return d.Locked } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetSubject() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) GetToggleNoView() bool { if d == nil { - return nil + return false } - return d.Subject + return d.ToggleNoView } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetAuthor() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) GetLockedContents() bool { if d == nil { - return nil + return false } - return d.Author + return d.LockedContents } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetCreated() *time.Time { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.Created + return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetModified() *time.Time { - if d == nil { - return nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.Modified + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode { - if d == nil { - return "" - } - return d.BlendMode +// SetInvisible sets the Invisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) SetInvisible(invisible bool) { + d.Invisible = invisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldInvisible) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo { - if d == nil { - return nil - } - return d.InReplyTo +// SetHidden sets the Hidden field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) SetHidden(hidden bool) { + d.Hidden = hidden + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldHidden) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyType { - if d == nil { - return nil - } - return d.ReplyType +// SetPrint sets the Print field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) SetPrint(print bool) { + d.Print = print + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldPrint) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetUserID() *string { - if d == nil { - return nil - } - return d.UserID +// SetNoZoom sets the NoZoom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) SetNoZoom(noZoom bool) { + d.NoZoom = noZoom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldNoZoom) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetGroupID() *string { - if d == nil { - return nil - } - return d.GroupID +// SetNoRotate sets the NoRotate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) SetNoRotate(noRotate bool) { + d.NoRotate = noRotate + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldNoRotate) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetCreatedBy() *string { - if d == nil { - return nil - } - return d.CreatedBy +// SetNoView sets the NoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) SetNoView(noView bool) { + d.NoView = noView + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldNoView) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetUpdatedBy() *string { - if d == nil { - return nil - } - return d.UpdatedBy +// SetReadOnly sets the ReadOnly field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldReadOnly) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetActions() *PdfAnnotationActions { - if d == nil { - return nil - } - return d.Actions +// SetLocked sets the Locked field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) SetLocked(locked bool) { + d.Locked = locked + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldLocked) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor { - if d == nil { - return nil - } - return d.Color +// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) SetToggleNoView(toggleNoView bool) { + d.ToggleNoView = toggleNoView + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldToggleNoView) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetOpacity() float64 { - if d == nil { - return 0 - } - return d.Opacity +// SetLockedContents sets the LockedContents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) SetLockedContents(lockedContents bool) { + d.LockedContents = lockedContents + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldLockedContents) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetIcon() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon { - if d == nil { - return "" +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - return d.Icon + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetFile() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile { - if d == nil { - return nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return d.File + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) String() string { if d == nil { - return nil + return "" } - return d.extraProperties + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQuality string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQuality = "durable" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQuality = "weak" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQuality, error) { + switch s { + case "durable": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQualityDurable, nil + case "weak": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQualityWeak, nil } - d.explicitFields.Or(d.explicitFields, field) + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQuality + return "", fmt.Errorf("%s is not a valid %T", s, t) } -// SetRef sets the Ref field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef) { - d.Ref = ref - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldRef) +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQuality { + return &d } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldPageObjectNumber) -} +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex -// SetIndex sets the Index field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldIndex) + rawJSON json.RawMessage } -// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQuality) { - d.IdentityQuality = identityQuality - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldIdentityQuality) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo) GetKind() string { + if d == nil { + return "" + } + return d.Kind } -// SetNm sets the Nm field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetNm(nm *string) { - d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldNm) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber } -// SetFlags sets the Flags field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) { - d.Flags = flags - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldFlags) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm { + if d == nil { + return nil + } + return d.Nm } -// SetRect sets the Rect field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect) { - d.Rect = rect - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldRect) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex { + if d == nil { + return nil + } + return d.Index } -// SetContents sets the Contents field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetContents(contents *string) { - d.Contents = contents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldContents) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value + } + d.rawJSON = json.RawMessage(data) + return nil } -// SetSubject sets the Subject field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetSubject(subject *string) { - d.Subject = subject - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldSubject) +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err + } + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Nm != nil { + return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + } + if d.Index != nil { + return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -// SetAuthor sets the Author field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetAuthor(author *string) { - d.Author = author - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldAuthor) +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) error } -// SetCreated sets the Created field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetCreated(created *time.Time) { - d.Created = created - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldCreated) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) + } + if d.Nm != nil { + return visitor.VisitNm(d.Nm) + } + if d.Index != nil { + return visitor.VisitIndex(d.Index) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) } -// SetModified sets the Modified field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetModified(modified *time.Time) { - d.Modified = modified - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldModified) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Nm != nil { + fields = append(fields, "nm") + } + if d.Index != nil { + fields = append(fields, "index") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil } -// SetBlendMode sets the BlendMode field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode) { - d.BlendMode = blendMode - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldBlendMode) -} +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexFieldRevision = big.NewInt(1 << 2) +) -// SetInReplyTo sets the InReplyTo field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo) { - d.InReplyTo = inReplyTo - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldInReplyTo) -} +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision `json:"revision" url:"revision"` -// SetReplyType sets the ReplyType field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyType) { - d.ReplyType = replyType - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldReplyType) -} + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` -// SetUserID sets the UserID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetUserID(userID *string) { - d.UserID = userID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldUserID) + extraProperties map[string]interface{} + rawJSON json.RawMessage } -// SetGroupID sets the GroupID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetGroupID(groupID *string) { - d.GroupID = groupID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldGroupID) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber } -// SetCreatedBy sets the CreatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetCreatedBy(createdBy *string) { - d.CreatedBy = createdBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldCreatedBy) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index } -// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetUpdatedBy(updatedBy *string) { - d.UpdatedBy = updatedBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldUpdatedBy) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision { + if d == nil { + return nil + } + return d.Revision } -// SetActions sets the Actions field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetActions(actions *PdfAnnotationActions) { - d.Actions = actions - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldActions) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties } -// SetColor sets the Color field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetColor(color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor) { - d.Color = color - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldColor) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) } -// SetOpacity sets the Opacity field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetOpacity(opacity float64) { - d.Opacity = opacity - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldOpacity) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexFieldPageObjectNumber) } -// SetIcon sets the Icon field and marks it as non-optional; +// SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetIcon(icon DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon) { - d.Icon = icon - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldIcon) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexFieldIndex) } -// SetFile sets the File field and marks it as non-optional; +// SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) SetFile(file *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) { - d.File = file - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFieldFile) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexFieldRevision) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) UnmarshalJSON(data []byte) error { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment - var unmarshaler = struct { - embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` - }{ - embed: embed(*d), - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment(unmarshaler.embed) - d.Created = unmarshaler.Created.TimePtr() - d.Modified = unmarshaler.Modified.TimePtr() + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -64441,22 +79703,18 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex var marshaler = struct { embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), - Created: internal.NewOptionalDateTime(d.Created), - Modified: internal.NewOptionalDateTime(d.Modified), + embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) String() string { if d == nil { return "" } @@ -64471,80 +79729,16 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment) return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode = "normal" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode = "multiply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode = "screen" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode = "overlay" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode = "darken" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode = "lighten" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode = "color-dodge" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode = "color-burn" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode = "hard-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode = "soft-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode = "difference" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode = "exclusion" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode = "hue" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode = "saturation" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode = "color" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode = "luminosity" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode, error) { - switch s { - case "normal": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeNormal, nil - case "multiply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeMultiply, nil - case "screen": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeScreen, nil - case "overlay": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeOverlay, nil - case "darken": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeDarken, nil - case "lighten": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeLighten, nil - case "color-dodge": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeColorDodge, nil - case "color-burn": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeColorBurn, nil - case "hard-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeHardLight, nil - case "soft-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeSoftLight, nil - case "difference": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeDifference, nil - case "exclusion": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeExclusion, nil - case "hue": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeHue, nil - case "saturation": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeSaturation, nil - case "color": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeColor, nil - case "luminosity": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendModeLuminosity, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode { - return &d -} - var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColorFieldR = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColorFieldG = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColorFieldB = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor struct { - R int `json:"r" url:"r"` - G int `json:"g" url:"g"` - B int `json:"b" url:"b"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -64553,69 +79747,69 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor) GetR() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision) GetDocSessionID() string { if d == nil { - return 0 + return "" } - return d.R + return d.DocSessionID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor) GetG() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } - return d.G + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor) GetB() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision) GetGeneration() int { if d == nil { return 0 } - return d.B + return d.Generation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetR sets the R field and marks it as non-optional; +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor) SetR(r int) { - d.R = r - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColorFieldR) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevisionFieldDocSessionID) } -// SetG sets the G field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor) SetG(g int) { - d.G = g - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColorFieldG) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevisionFieldPageObjectNumber) } -// SetB sets the B field and marks it as non-optional; +// SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor) SetB(b int) { - d.B = b - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColorFieldB) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevisionFieldGeneration) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -64625,8 +79819,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentC return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision var marshaler = struct { embed }{ @@ -64636,7 +79830,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentC return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision) String() string { if d == nil { return "" } @@ -64652,21 +79846,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentC } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFileFieldName = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFileFieldMimeType = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFileFieldDescription = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFileFieldSize = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFileFieldChecksum = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFileFieldCreationDate = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile struct { - Name string `json:"name" url:"name"` - MimeType *string `json:"mimeType,omitempty" url:"mimeType,omitempty"` - Description *string `json:"description,omitempty" url:"description,omitempty"` - Size *int `json:"size,omitempty" url:"size,omitempty"` - Checksum *string `json:"checksum,omitempty" url:"checksum,omitempty"` - CreationDate *string `json:"creationDate,omitempty" url:"creationDate,omitempty"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -64675,111 +79861,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) GetName() string { - if d == nil { - return "" - } - return d.Name -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) GetMimeType() *string { - if d == nil { - return nil - } - return d.MimeType -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) GetDescription() *string { - if d == nil { - return nil - } - return d.Description -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) GetSize() *int { - if d == nil { - return nil - } - return d.Size -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) GetChecksum() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm) GetPageObjectNumber() int { if d == nil { - return nil + return 0 } - return d.Checksum + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) GetCreationDate() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm) GetNm() string { if d == nil { - return nil + return "" } - return d.CreationDate + return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetName sets the Name field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) SetName(name string) { - d.Name = name - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFileFieldName) -} - -// SetMimeType sets the MimeType field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) SetMimeType(mimeType *string) { - d.MimeType = mimeType - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFileFieldMimeType) -} - -// SetDescription sets the Description field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) SetDescription(description *string) { - d.Description = description - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFileFieldDescription) -} - -// SetSize sets the Size field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) SetSize(size *int) { - d.Size = size - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFileFieldSize) -} - -// SetChecksum sets the Checksum field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) SetChecksum(checksum *string) { - d.Checksum = checksum - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFileFieldChecksum) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNmFieldPageObjectNumber) } -// SetCreationDate sets the CreationDate field and marks it as non-optional; +// SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) SetCreationDate(creationDate *string) { - d.CreationDate = creationDate - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFileFieldCreationDate) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNmFieldNm) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -64789,8 +79919,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentF return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm var marshaler = struct { embed }{ @@ -64800,7 +79930,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentF return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm) String() string { if d == nil { return "" } @@ -64816,29 +79946,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentF } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldInvisible = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldHidden = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldPrint = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldNoZoom = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldNoRotate = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldNoView = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldReadOnly = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldLocked = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldToggleNoView = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldLockedContents = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags struct { - Invisible bool `json:"invisible" url:"invisible"` - Hidden bool `json:"hidden" url:"hidden"` - Print bool `json:"print" url:"print"` - NoZoom bool `json:"noZoom" url:"noZoom"` - NoRotate bool `json:"noRotate" url:"noRotate"` - NoView bool `json:"noView" url:"noView"` - ReadOnly bool `json:"readOnly" url:"readOnly"` - Locked bool `json:"locked" url:"locked"` - ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` - LockedContents bool `json:"lockedContents" url:"lockedContents"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -64847,167 +79961,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) GetInvisible() bool { - if d == nil { - return false - } - return d.Invisible -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) GetHidden() bool { - if d == nil { - return false - } - return d.Hidden -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) GetPrint() bool { - if d == nil { - return false - } - return d.Print -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) GetNoZoom() bool { - if d == nil { - return false - } - return d.NoZoom -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) GetNoRotate() bool { - if d == nil { - return false - } - return d.NoRotate -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) GetNoView() bool { - if d == nil { - return false - } - return d.NoView -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) GetReadOnly() bool { - if d == nil { - return false - } - return d.ReadOnly -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) GetLocked() bool { - if d == nil { - return false - } - return d.Locked -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) GetToggleNoView() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber) GetPageObjectNumber() int { if d == nil { - return false + return 0 } - return d.ToggleNoView + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) GetLockedContents() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber) GetAnnotObjectNumber() int { if d == nil { - return false + return 0 } - return d.LockedContents + return d.AnnotObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetInvisible sets the Invisible field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) SetInvisible(invisible bool) { - d.Invisible = invisible - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldInvisible) -} - -// SetHidden sets the Hidden field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) SetHidden(hidden bool) { - d.Hidden = hidden - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldHidden) -} - -// SetPrint sets the Print field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) SetPrint(print bool) { - d.Print = print - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldPrint) -} - -// SetNoZoom sets the NoZoom field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) SetNoZoom(noZoom bool) { - d.NoZoom = noZoom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldNoZoom) -} - -// SetNoRotate sets the NoRotate field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) SetNoRotate(noRotate bool) { - d.NoRotate = noRotate - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldNoRotate) -} - -// SetNoView sets the NoView field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) SetNoView(noView bool) { - d.NoView = noView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldNoView) -} - -// SetReadOnly sets the ReadOnly field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) SetReadOnly(readOnly bool) { - d.ReadOnly = readOnly - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldReadOnly) -} - -// SetLocked sets the Locked field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) SetLocked(locked bool) { - d.Locked = locked - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldLocked) -} - -// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) SetToggleNoView(toggleNoView bool) { - d.ToggleNoView = toggleNoView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldToggleNoView) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumberFieldPageObjectNumber) } -// SetLockedContents sets the LockedContents field and marks it as non-optional; +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) SetLockedContents(lockedContents bool) { - d.LockedContents = lockedContents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlagsFieldLockedContents) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -65017,8 +80019,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentF return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber var marshaler = struct { embed }{ @@ -65028,7 +80030,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentF return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber) String() string { if d == nil { return "" } @@ -65043,216 +80045,146 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentF return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIconPushPin DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon = "push-pin" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIconPaperclip DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon = "paperclip" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIconGraph DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon = "graph" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIconTag DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon = "tag" +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemFieldP1 = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemFieldP2 = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemFieldP3 = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemFieldP4 = big.NewInt(1 << 3) ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIconFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon, error) { - switch s { - case "push-pin": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIconPushPin, nil - case "paperclip": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIconPaperclip, nil - case "graph": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIconGraph, nil - case "tag": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIconTag, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon { - return &d -} - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQuality string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQuality = "durable" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQuality = "weak" -) +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem struct { + P1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1 `json:"p1" url:"p1"` + P2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2 `json:"p2" url:"p2"` + P3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3 `json:"p3" url:"p3"` + P4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4 `json:"p4" url:"p4"` -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQuality, error) { - switch s { - case "durable": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQualityDurable, nil - case "weak": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQualityWeak, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQuality - return "", fmt.Errorf("%s is not a valid %T", s, t) -} + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQuality { - return &d + extraProperties map[string]interface{} + rawJSON json.RawMessage } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo struct { - Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex - - rawJSON json.RawMessage +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem) GetP1() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1 { + if d == nil { + return nil + } + return d.P1 } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo) GetKind() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem) GetP2() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2 { if d == nil { - return "" + return nil } - return d.Kind + return d.P2 } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem) GetP3() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3 { if d == nil { return nil } - return d.ObjectNumber + return d.P3 } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem) GetP4() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4 { if d == nil { return nil } - return d.Nm + return d.P4 } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.Index + return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Nm = value - case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Index = value +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - d.rawJSON = json.RawMessage(data) - return nil + d.explicitFields.Or(d.explicitFields, field) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Nm != nil { - return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") - } - if d.Index != nil { - return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil - } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +// SetP1 sets the P1 field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem) SetP1(p1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1) { + d.P1 = p1 + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemFieldP1) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex) error +// SetP2 sets the P2 field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem) SetP2(p2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2) { + d.P2 = p2 + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemFieldP2) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) +// SetP3 sets the P3 field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem) SetP3(p3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3) { + d.P3 = p3 + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemFieldP3) +} + +// SetP4 sets the P4 field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem) SetP4(p4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4) { + d.P4 = p4 + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemFieldP4) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - if d.Nm != nil { - return visitor.VisitNm(d.Nm) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err } - if d.Index != nil { - return visitor.VisitIndex(d.Index) + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return fmt.Errorf("type %T does not define a non-empty union type", d) + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo) validate() error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem) String() string { if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Nm != nil { - fields = append(fields, "nm") - } - if d.Index != nil { - fields = append(fields, "index") + return "" } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } + if value, err := internal.StringifyJSON(d); err == nil { + return value } - return nil + return fmt.Sprintf("%#v", d) } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1FieldY = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -65261,69 +80193,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInRep rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1) GetX() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.X } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1) GetY() float64 { if d == nil { return 0 } - return d.Index -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision { - if d == nil { - return nil - } - return d.Revision + return d.Y } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexFieldPageObjectNumber) -} - -// SetIndex sets the Index field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexFieldIndex) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1FieldX) } -// SetRevision sets the Revision field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision) { - d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexFieldRevision) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1FieldY) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1 var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -65333,8 +80251,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentI return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1 var marshaler = struct { embed }{ @@ -65344,7 +80262,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentI return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1) String() string { if d == nil { return "" } @@ -65360,15 +80278,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentI } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2FieldY = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -65377,69 +80293,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInRep rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision) GetDocSessionID() string { - if d == nil { - return "" - } - return d.DocSessionID -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2) GetX() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.X } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision) GetGeneration() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2) GetY() float64 { if d == nil { return 0 } - return d.Generation + return d.Y } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevisionFieldDocSessionID) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevisionFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2FieldX) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevisionFieldGeneration) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2FieldY) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2 var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -65449,8 +80351,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentI return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2 var marshaler = struct { embed }{ @@ -65460,7 +80362,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentI return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2) String() string { if d == nil { return "" } @@ -65476,13 +80378,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentI } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNmFieldNm = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3FieldY = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -65491,55 +80393,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInRep rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3) GetX() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.X } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm) GetNm() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3) GetY() float64 { if d == nil { - return "" + return 0 } - return d.Nm + return d.Y } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNmFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3FieldX) } -// SetNm sets the Nm field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNmFieldNm) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3FieldY) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3 var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -65549,8 +80451,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentI return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3 var marshaler = struct { embed }{ @@ -65560,7 +80462,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentI return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3) String() string { if d == nil { return "" } @@ -65576,13 +80478,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentI } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4FieldY = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -65591,55 +80493,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInRep rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4) GetX() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.X } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4) GetY() float64 { if d == nil { return 0 } - return d.AnnotObjectNumber + return d.Y } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumberFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4FieldX) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumberFieldAnnotObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4FieldY) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4 var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -65649,8 +80551,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentI return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4 var marshaler = struct { embed }{ @@ -65660,7 +80562,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentI return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4) String() string { if d == nil { return "" } @@ -65676,13 +80578,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentI } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRectFieldRight = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRectFieldTop = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRectFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRectFieldTop = big.NewInt(1 << 3) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect struct { Left float64 `json:"left" url:"left"` Bottom float64 `json:"bottom" url:"bottom"` Right float64 `json:"right" url:"right"` @@ -65695,42 +80597,42 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect) GetLeft() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) GetLeft() float64 { if d == nil { return 0 } return d.Left } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect) GetBottom() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) GetBottom() float64 { if d == nil { return 0 } return d.Bottom } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect) GetRight() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) GetRight() float64 { if d == nil { return 0 } return d.Right } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect) GetTop() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) GetTop() float64 { if d == nil { return 0 } return d.Top } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -65739,39 +80641,39 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentR // SetLeft sets the Left field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect) SetLeft(left float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) SetLeft(left float64) { d.Left = left - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRectFieldLeft) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRectFieldLeft) } // SetBottom sets the Bottom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect) SetBottom(bottom float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) SetBottom(bottom float64) { d.Bottom = bottom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRectFieldBottom) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRectFieldBottom) } // SetRight sets the Right field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect) SetRight(right float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) SetRight(right float64) { d.Right = right - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRectFieldRight) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRectFieldRight) } // SetTop sets the Top field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect) SetTop(top float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) SetTop(top float64) { d.Top = top - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRectFieldTop) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRectFieldTop) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -65781,8 +80683,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentR return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect var marshaler = struct { embed }{ @@ -65792,7 +80694,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentR return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) String() string { if d == nil { return "" } @@ -65807,44 +80709,44 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentR return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef struct { Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef) GetKind() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber { if d == nil { return nil } return d.ObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex { if d == nil { return nil } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef) UnmarshalJSON(data []byte) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -65857,19 +80759,19 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentR } switch unmarshaler.Kind { case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber) if err := json.Unmarshal(data, &value); err != nil { return err } d.ObjectNumber = value case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) if err := json.Unmarshal(data, &value); err != nil { return err } d.Nm = value case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -65879,7 +80781,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentR return nil } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -65898,13 +80800,13 @@ func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRe return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex) error +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) error } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefVisitor) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefVisitor) error { if d.ObjectNumber != nil { return visitor.VisitObjectNumber(d.ObjectNumber) } @@ -65917,7 +80819,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentR return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef) validate() error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -65958,15 +80860,15 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentR } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -65975,35 +80877,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIn rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision { if d == nil { return nil } return d.Revision } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -66012,32 +80914,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentR // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex) SetIndex(index int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) SetIndex(index int) { d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexFieldIndex) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexFieldIndex) } // SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) { d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexFieldRevision) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexFieldRevision) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -66047,8 +80949,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentR return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex var marshaler = struct { embed }{ @@ -66058,7 +80960,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentR return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) String() string { if d == nil { return "" } @@ -66074,12 +80976,12 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentR } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision struct { DocSessionID string `json:"docSessionId" url:"docSessionId"` PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Generation int `json:"generation" url:"generation"` @@ -66091,35 +80993,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIn rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) GetDocSessionID() string { if d == nil { return "" } return d.DocSessionID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision) GetGeneration() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) GetGeneration() int { if d == nil { return 0 } return d.Generation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -66128,32 +81030,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentR // SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision) SetDocSessionID(docSessionID string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) SetDocSessionID(docSessionID string) { d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevisionFieldDocSessionID) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevisionFieldDocSessionID) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevisionFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevisionFieldPageObjectNumber) } // SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision) SetGeneration(generation int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) SetGeneration(generation int) { d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevisionFieldGeneration) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevisionFieldGeneration) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -66163,8 +81065,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentR return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision var marshaler = struct { embed }{ @@ -66174,7 +81076,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentR return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) String() string { if d == nil { return "" } @@ -66190,11 +81092,11 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentR } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNmFieldNm = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Nm string `json:"nm" url:"nm"` @@ -66205,28 +81107,28 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm) GetNm() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) GetNm() string { if d == nil { return "" } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -66235,25 +81137,25 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentR // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNmFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNmFieldPageObjectNumber) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm) SetNm(nm string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) SetNm(nm string) { d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNmFieldNm) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNmFieldNm) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -66263,8 +81165,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentR return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm var marshaler = struct { embed }{ @@ -66274,7 +81176,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentR return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) String() string { if d == nil { return "" } @@ -66290,11 +81192,11 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentR } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` @@ -66305,28 +81207,28 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefOb rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } return d.AnnotObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -66335,25 +81237,25 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentR // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumberFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumberFieldPageObjectNumber) } // SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumberFieldAnnotObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -66363,8 +81265,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentR return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber var marshaler = struct { embed }{ @@ -66374,7 +81276,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentR return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber) String() string { if d == nil { return "" } @@ -66389,106 +81291,88 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentR return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyType string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyType = "reply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyType = "group" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType = "reply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType = "group" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyType, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType, error) { switch s { case "reply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyTypeReply, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyTypeReply, nil case "group": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyTypeGroup, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyTypeGroup, nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyType + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyType { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType { return &d } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldRef = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldIndex = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldIdentityQuality = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldNm = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldFlags = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldRect = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldContents = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldSubject = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldAuthor = big.NewInt(1 << 9) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldCreated = big.NewInt(1 << 10) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldModified = big.NewInt(1 << 11) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldBlendMode = big.NewInt(1 << 12) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldInReplyTo = big.NewInt(1 << 13) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldReplyType = big.NewInt(1 << 14) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldUserID = big.NewInt(1 << 15) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldGroupID = big.NewInt(1 << 16) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldCreatedBy = big.NewInt(1 << 17) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldUpdatedBy = big.NewInt(1 << 18) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldActions = big.NewInt(1 << 19) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldIntent = big.NewInt(1 << 20) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldFontFamily = big.NewInt(1 << 21) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldFontSize = big.NewInt(1 << 22) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldTextAlign = big.NewInt(1 << 23) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldRichText = big.NewInt(1 << 24) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldColor = big.NewInt(1 << 25) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldFontColor = big.NewInt(1 << 26) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldInteriorColor = big.NewInt(1 << 27) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldOpacity = big.NewInt(1 << 28) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldStrokeWidth = big.NewInt(1 << 29) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldBorderStyle = big.NewInt(1 << 30) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldDashArray = big.NewInt(1 << 31) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldRectDifferences = big.NewInt(1 << 32) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldCalloutLine = big.NewInt(1 << 33) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldLineEnding = big.NewInt(1 << 34) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldRotation = big.NewInt(1 << 35) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldUnrotatedRect = big.NewInt(1 << 36) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldRef = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldIndex = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldIdentityQuality = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldNm = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldFlags = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldRect = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldContents = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldSubject = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldAuthor = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldCreated = big.NewInt(1 << 10) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldModified = big.NewInt(1 << 11) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldBlendMode = big.NewInt(1 << 12) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldInReplyTo = big.NewInt(1 << 13) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldReplyType = big.NewInt(1 << 14) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldUserID = big.NewInt(1 << 15) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldGroupID = big.NewInt(1 << 16) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldCreatedBy = big.NewInt(1 << 17) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldUpdatedBy = big.NewInt(1 << 18) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldActions = big.NewInt(1 << 19) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldColor = big.NewInt(1 << 20) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldOpacity = big.NewInt(1 << 21) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldStrokeWidth = big.NewInt(1 << 22) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldBorderStyle = big.NewInt(1 << 23) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldDashArray = big.NewInt(1 << 24) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldIntent = big.NewInt(1 << 25) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldInkList = big.NewInt(1 << 26) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldRotation = big.NewInt(1 << 27) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText struct { - Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef `json:"ref" url:"ref"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQuality `json:"identityQuality" url:"identityQuality"` - Nm *string `json:"nm,omitempty" url:"nm,omitempty"` - Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags `json:"flags" url:"flags"` - Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect `json:"rect" url:"rect"` - Contents *string `json:"contents,omitempty" url:"contents,omitempty"` - Subject *string `json:"subject,omitempty" url:"subject,omitempty"` - Author *string `json:"author,omitempty" url:"author,omitempty"` - Created *time.Time `json:"created,omitempty" url:"created,omitempty"` - Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` - BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode `json:"blendMode" url:"blendMode"` - InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` - ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` - UserID *string `json:"userId,omitempty" url:"userId,omitempty"` - GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` - CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` - Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` - Intent DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent `json:"intent" url:"intent"` - FontFamily string `json:"fontFamily" url:"fontFamily"` - FontSize float64 `json:"fontSize" url:"fontSize"` - TextAlign DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign `json:"textAlign" url:"textAlign"` - RichText *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText `json:"richText" url:"richText"` - Color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor `json:"color" url:"color"` - FontColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor `json:"fontColor,omitempty" url:"fontColor,omitempty"` - InteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor `json:"interiorColor,omitempty" url:"interiorColor,omitempty"` - Opacity float64 `json:"opacity" url:"opacity"` - StrokeWidth float64 `json:"strokeWidth" url:"strokeWidth"` - BorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle `json:"borderStyle" url:"borderStyle"` - DashArray []float64 `json:"dashArray,omitempty" url:"dashArray,omitempty"` - RectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences `json:"rectDifferences,omitempty" url:"rectDifferences,omitempty"` - CalloutLine []any `json:"calloutLine,omitempty" url:"calloutLine,omitempty"` - LineEnding *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding `json:"lineEnding,omitempty" url:"lineEnding,omitempty"` - Rotation *float64 `json:"rotation,omitempty" url:"rotation,omitempty"` - UnrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect `json:"unrotatedRect,omitempty" url:"unrotatedRect,omitempty"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk struct { + Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef `json:"ref" url:"ref"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality `json:"identityQuality" url:"identityQuality"` + Nm *string `json:"nm,omitempty" url:"nm,omitempty"` + Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags `json:"flags" url:"flags"` + Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect `json:"rect" url:"rect"` + Contents *string `json:"contents,omitempty" url:"contents,omitempty"` + Subject *string `json:"subject,omitempty" url:"subject,omitempty"` + Author *string `json:"author,omitempty" url:"author,omitempty"` + Created *time.Time `json:"created,omitempty" url:"created,omitempty"` + Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` + BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode `json:"blendMode" url:"blendMode"` + InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` + ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` + UserID *string `json:"userId,omitempty" url:"userId,omitempty"` + GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` + CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` + Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` + Color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor `json:"color" url:"color"` + Opacity float64 `json:"opacity" url:"opacity"` + StrokeWidth float64 `json:"strokeWidth" url:"strokeWidth"` + BorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle `json:"borderStyle" url:"borderStyle"` + DashArray []float64 `json:"dashArray,omitempty" url:"dashArray,omitempty"` + Intent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntent `json:"intent,omitempty" url:"intent,omitempty"` + InkList [][]*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem `json:"inkList" url:"inkList"` + Rotation *float64 `json:"rotation,omitempty" url:"rotation,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -66497,273 +81381,210 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef { if d == nil { return nil } return d.Ref } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQuality { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality { if d == nil { return "" } return d.IdentityQuality } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetNm() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetNm() *string { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags { if d == nil { return nil } return d.Flags } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect { if d == nil { return nil } return d.Rect } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetContents() *string { - if d == nil { - return nil - } - return d.Contents -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetSubject() *string { - if d == nil { - return nil - } - return d.Subject -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetAuthor() *string { - if d == nil { - return nil - } - return d.Author -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetCreated() *time.Time { - if d == nil { - return nil - } - return d.Created -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetModified() *time.Time { - if d == nil { - return nil - } - return d.Modified -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode { - if d == nil { - return "" - } - return d.BlendMode -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo { - if d == nil { - return nil - } - return d.InReplyTo -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyType { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetContents() *string { if d == nil { return nil } - return d.ReplyType + return d.Contents } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetUserID() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetSubject() *string { if d == nil { return nil } - return d.UserID + return d.Subject } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetGroupID() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetAuthor() *string { if d == nil { return nil } - return d.GroupID + return d.Author } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetCreatedBy() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetCreated() *time.Time { if d == nil { return nil } - return d.CreatedBy + return d.Created } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetUpdatedBy() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetModified() *time.Time { if d == nil { return nil } - return d.UpdatedBy + return d.Modified } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetActions() *PdfAnnotationActions { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode { if d == nil { - return nil + return "" } - return d.Actions + return d.BlendMode } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetIntent() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo { if d == nil { - return "" + return nil } - return d.Intent + return d.InReplyTo } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetFontFamily() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyType { if d == nil { - return "" + return nil } - return d.FontFamily + return d.ReplyType } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetFontSize() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetUserID() *string { if d == nil { - return 0 + return nil } - return d.FontSize + return d.UserID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetTextAlign() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetGroupID() *string { if d == nil { - return "" + return nil } - return d.TextAlign + return d.GroupID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetRichText() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetCreatedBy() *string { if d == nil { return nil } - return d.RichText + return d.CreatedBy } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetUpdatedBy() *string { if d == nil { return nil } - return d.Color + return d.UpdatedBy } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetFontColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetActions() *PdfAnnotationActions { if d == nil { return nil } - return d.FontColor + return d.Actions } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetInteriorColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor { if d == nil { return nil } - return d.InteriorColor + return d.Color } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetOpacity() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetOpacity() float64 { if d == nil { return 0 } return d.Opacity } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetStrokeWidth() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetStrokeWidth() float64 { if d == nil { return 0 } return d.StrokeWidth } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetBorderStyle() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetBorderStyle() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle { if d == nil { return "" } return d.BorderStyle } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetDashArray() []float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetDashArray() []float64 { if d == nil { return nil } return d.DashArray } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetRectDifferences() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences { - if d == nil { - return nil - } - return d.RectDifferences -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetCalloutLine() []any { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetIntent() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntent { if d == nil { return nil } - return d.CalloutLine + return d.Intent } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetLineEnding() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetInkList() [][]*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem { if d == nil { return nil } - return d.LineEnding + return d.InkList } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetRotation() *float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetRotation() *float64 { if d == nil { return nil } return d.Rotation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetUnrotatedRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect { - if d == nil { - return nil - } - return d.UnrotatedRect -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -66772,278 +81593,655 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) requi // SetRef sets the Ref field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef) { d.Ref = ref - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldRef) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldRef) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetIndex(index int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetIndex(index int) { d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldIndex) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldIndex) } // SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQuality) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality) { d.IdentityQuality = identityQuality - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldIdentityQuality) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldIdentityQuality) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetNm(nm *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetNm(nm *string) { d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldNm) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldNm) } // SetFlags sets the Flags field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) { d.Flags = flags - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldFlags) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldFlags) } // SetRect sets the Rect field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect) { d.Rect = rect - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldRect) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldRect) } // SetContents sets the Contents field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetContents(contents *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetContents(contents *string) { d.Contents = contents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldContents) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldContents) } // SetSubject sets the Subject field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetSubject(subject *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetSubject(subject *string) { d.Subject = subject - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldSubject) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldSubject) } // SetAuthor sets the Author field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetAuthor(author *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetAuthor(author *string) { d.Author = author - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldAuthor) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldAuthor) +} + +// SetCreated sets the Created field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetCreated(created *time.Time) { + d.Created = created + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldCreated) +} + +// SetModified sets the Modified field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetModified(modified *time.Time) { + d.Modified = modified + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldModified) +} + +// SetBlendMode sets the BlendMode field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode) { + d.BlendMode = blendMode + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldBlendMode) +} + +// SetInReplyTo sets the InReplyTo field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo) { + d.InReplyTo = inReplyTo + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldInReplyTo) +} + +// SetReplyType sets the ReplyType field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyType) { + d.ReplyType = replyType + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldReplyType) +} + +// SetUserID sets the UserID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetUserID(userID *string) { + d.UserID = userID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldUserID) +} + +// SetGroupID sets the GroupID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetGroupID(groupID *string) { + d.GroupID = groupID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldGroupID) +} + +// SetCreatedBy sets the CreatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetCreatedBy(createdBy *string) { + d.CreatedBy = createdBy + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldCreatedBy) +} + +// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetUpdatedBy(updatedBy *string) { + d.UpdatedBy = updatedBy + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldUpdatedBy) +} + +// SetActions sets the Actions field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetActions(actions *PdfAnnotationActions) { + d.Actions = actions + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldActions) +} + +// SetColor sets the Color field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetColor(color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor) { + d.Color = color + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldColor) +} + +// SetOpacity sets the Opacity field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetOpacity(opacity float64) { + d.Opacity = opacity + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldOpacity) +} + +// SetStrokeWidth sets the StrokeWidth field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetStrokeWidth(strokeWidth float64) { + d.StrokeWidth = strokeWidth + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldStrokeWidth) +} + +// SetBorderStyle sets the BorderStyle field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetBorderStyle(borderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle) { + d.BorderStyle = borderStyle + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldBorderStyle) +} + +// SetDashArray sets the DashArray field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetDashArray(dashArray []float64) { + d.DashArray = dashArray + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldDashArray) +} + +// SetIntent sets the Intent field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetIntent(intent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntent) { + d.Intent = intent + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldIntent) +} + +// SetInkList sets the InkList field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetInkList(inkList [][]*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem) { + d.InkList = inkList + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldInkList) +} + +// SetRotation sets the Rotation field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetRotation(rotation *float64) { + d.Rotation = rotation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldRotation) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) UnmarshalJSON(data []byte) error { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + var unmarshaler = struct { + embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(unmarshaler.embed) + d.Created = unmarshaler.Created.TimePtr() + d.Modified = unmarshaler.Modified.TimePtr() + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + var marshaler = struct { + embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), + Created: internal.NewOptionalDateTime(d.Created), + Modified: internal.NewOptionalDateTime(d.Modified), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode = "normal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode = "multiply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode = "screen" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode = "overlay" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode = "darken" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode = "lighten" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode = "color-dodge" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode = "color-burn" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode = "hard-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode = "soft-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode = "difference" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode = "exclusion" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode = "hue" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode = "saturation" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode = "color" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode = "luminosity" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode, error) { + switch s { + case "normal": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeNormal, nil + case "multiply": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeMultiply, nil + case "screen": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeScreen, nil + case "overlay": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeOverlay, nil + case "darken": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeDarken, nil + case "lighten": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeLighten, nil + case "color-dodge": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeColorDodge, nil + case "color-burn": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeColorBurn, nil + case "hard-light": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeHardLight, nil + case "soft-light": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeSoftLight, nil + case "difference": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeDifference, nil + case "exclusion": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeExclusion, nil + case "hue": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeHue, nil + case "saturation": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeSaturation, nil + case "color": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeColor, nil + case "luminosity": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeLuminosity, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyleSolid DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle = "solid" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyleDashed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle = "dashed" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyleBeveled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle = "beveled" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyleInset DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle = "inset" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyleFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle, error) { + switch s { + case "solid": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyleSolid, nil + case "dashed": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyleDashed, nil + case "beveled": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyleBeveled, nil + case "inset": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyleInset, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColorFieldB = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor struct { + R int `json:"r" url:"r"` + G int `json:"g" url:"g"` + B int `json:"b" url:"b"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor) GetR() int { + if d == nil { + return 0 + } + return d.R +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor) GetG() int { + if d == nil { + return 0 + } + return d.G +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor) GetB() int { + if d == nil { + return 0 + } + return d.B +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetR sets the R field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor) SetR(r int) { + d.R = r + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColorFieldR) +} + +// SetG sets the G field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor) SetG(g int) { + d.G = g + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColorFieldG) +} + +// SetB sets the B field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor) SetB(b int) { + d.B = b + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColorFieldB) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -// SetCreated sets the Created field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetCreated(created *time.Time) { - d.Created = created - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldCreated) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -// SetModified sets the Modified field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetModified(modified *time.Time) { - d.Modified = modified - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldModified) -} +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldInvisible = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldHidden = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldPrint = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldNoZoom = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldNoRotate = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldNoView = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldReadOnly = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldLocked = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldToggleNoView = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldLockedContents = big.NewInt(1 << 9) +) -// SetBlendMode sets the BlendMode field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode) { - d.BlendMode = blendMode - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldBlendMode) -} +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags struct { + Invisible bool `json:"invisible" url:"invisible"` + Hidden bool `json:"hidden" url:"hidden"` + Print bool `json:"print" url:"print"` + NoZoom bool `json:"noZoom" url:"noZoom"` + NoRotate bool `json:"noRotate" url:"noRotate"` + NoView bool `json:"noView" url:"noView"` + ReadOnly bool `json:"readOnly" url:"readOnly"` + Locked bool `json:"locked" url:"locked"` + ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` + LockedContents bool `json:"lockedContents" url:"lockedContents"` -// SetInReplyTo sets the InReplyTo field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo) { - d.InReplyTo = inReplyTo - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldInReplyTo) -} + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` -// SetReplyType sets the ReplyType field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyType) { - d.ReplyType = replyType - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldReplyType) + extraProperties map[string]interface{} + rawJSON json.RawMessage } -// SetUserID sets the UserID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetUserID(userID *string) { - d.UserID = userID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldUserID) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) GetInvisible() bool { + if d == nil { + return false + } + return d.Invisible } -// SetGroupID sets the GroupID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetGroupID(groupID *string) { - d.GroupID = groupID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldGroupID) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) GetHidden() bool { + if d == nil { + return false + } + return d.Hidden } -// SetCreatedBy sets the CreatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetCreatedBy(createdBy *string) { - d.CreatedBy = createdBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldCreatedBy) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) GetPrint() bool { + if d == nil { + return false + } + return d.Print } -// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetUpdatedBy(updatedBy *string) { - d.UpdatedBy = updatedBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldUpdatedBy) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) GetNoZoom() bool { + if d == nil { + return false + } + return d.NoZoom } -// SetActions sets the Actions field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetActions(actions *PdfAnnotationActions) { - d.Actions = actions - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldActions) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) GetNoRotate() bool { + if d == nil { + return false + } + return d.NoRotate } -// SetIntent sets the Intent field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetIntent(intent DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent) { - d.Intent = intent - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldIntent) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) GetNoView() bool { + if d == nil { + return false + } + return d.NoView } -// SetFontFamily sets the FontFamily field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetFontFamily(fontFamily string) { - d.FontFamily = fontFamily - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldFontFamily) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) GetReadOnly() bool { + if d == nil { + return false + } + return d.ReadOnly } -// SetFontSize sets the FontSize field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetFontSize(fontSize float64) { - d.FontSize = fontSize - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldFontSize) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) GetLocked() bool { + if d == nil { + return false + } + return d.Locked } -// SetTextAlign sets the TextAlign field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetTextAlign(textAlign DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign) { - d.TextAlign = textAlign - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldTextAlign) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) GetToggleNoView() bool { + if d == nil { + return false + } + return d.ToggleNoView } -// SetRichText sets the RichText field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetRichText(richText *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText) { - d.RichText = richText - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldRichText) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) GetLockedContents() bool { + if d == nil { + return false + } + return d.LockedContents } -// SetColor sets the Color field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetColor(color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor) { - d.Color = color - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldColor) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties } -// SetFontColor sets the FontColor field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetFontColor(fontColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor) { - d.FontColor = fontColor - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldFontColor) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) } -// SetInteriorColor sets the InteriorColor field and marks it as non-optional; +// SetInvisible sets the Invisible field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetInteriorColor(interiorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor) { - d.InteriorColor = interiorColor - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldInteriorColor) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) SetInvisible(invisible bool) { + d.Invisible = invisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldInvisible) } -// SetOpacity sets the Opacity field and marks it as non-optional; +// SetHidden sets the Hidden field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetOpacity(opacity float64) { - d.Opacity = opacity - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldOpacity) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) SetHidden(hidden bool) { + d.Hidden = hidden + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldHidden) } -// SetStrokeWidth sets the StrokeWidth field and marks it as non-optional; +// SetPrint sets the Print field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetStrokeWidth(strokeWidth float64) { - d.StrokeWidth = strokeWidth - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldStrokeWidth) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) SetPrint(print bool) { + d.Print = print + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldPrint) } -// SetBorderStyle sets the BorderStyle field and marks it as non-optional; +// SetNoZoom sets the NoZoom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetBorderStyle(borderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle) { - d.BorderStyle = borderStyle - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldBorderStyle) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) SetNoZoom(noZoom bool) { + d.NoZoom = noZoom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldNoZoom) } -// SetDashArray sets the DashArray field and marks it as non-optional; +// SetNoRotate sets the NoRotate field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetDashArray(dashArray []float64) { - d.DashArray = dashArray - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldDashArray) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) SetNoRotate(noRotate bool) { + d.NoRotate = noRotate + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldNoRotate) } -// SetRectDifferences sets the RectDifferences field and marks it as non-optional; +// SetNoView sets the NoView field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetRectDifferences(rectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences) { - d.RectDifferences = rectDifferences - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldRectDifferences) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) SetNoView(noView bool) { + d.NoView = noView + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldNoView) } -// SetCalloutLine sets the CalloutLine field and marks it as non-optional; +// SetReadOnly sets the ReadOnly field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetCalloutLine(calloutLine []any) { - d.CalloutLine = calloutLine - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldCalloutLine) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldReadOnly) } -// SetLineEnding sets the LineEnding field and marks it as non-optional; +// SetLocked sets the Locked field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetLineEnding(lineEnding *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding) { - d.LineEnding = lineEnding - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldLineEnding) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) SetLocked(locked bool) { + d.Locked = locked + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldLocked) } -// SetRotation sets the Rotation field and marks it as non-optional; +// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetRotation(rotation *float64) { - d.Rotation = rotation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldRotation) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) SetToggleNoView(toggleNoView bool) { + d.ToggleNoView = toggleNoView + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldToggleNoView) } -// SetUnrotatedRect sets the UnrotatedRect field and marks it as non-optional; +// SetLockedContents sets the LockedContents field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) SetUnrotatedRect(unrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect) { - d.UnrotatedRect = unrotatedRect - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFieldUnrotatedRect) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) SetLockedContents(lockedContents bool) { + d.LockedContents = lockedContents + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldLockedContents) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) UnmarshalJSON(data []byte) error { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText - var unmarshaler = struct { - embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` - }{ - embed: embed(*d), - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText(unmarshaler.embed) - d.Created = unmarshaler.Created.TimePtr() - d.Modified = unmarshaler.Modified.TimePtr() + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -67053,22 +82251,18 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) Unmar return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags var marshaler = struct { embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), - Created: internal.NewOptionalDateTime(d.Created), - Modified: internal.NewOptionalDateTime(d.Modified), + embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) String() string { if d == nil { return "" } @@ -67083,108 +82277,188 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText) Strin return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode = "normal" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode = "multiply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode = "screen" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode = "overlay" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode = "darken" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode = "lighten" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode = "color-dodge" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode = "color-burn" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode = "hard-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode = "soft-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode = "difference" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode = "exclusion" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode = "hue" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode = "saturation" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode = "color" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode = "luminosity" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality = "durable" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality = "weak" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality, error) { switch s { - case "normal": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeNormal, nil - case "multiply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeMultiply, nil - case "screen": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeScreen, nil - case "overlay": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeOverlay, nil - case "darken": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeDarken, nil - case "lighten": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeLighten, nil - case "color-dodge": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeColorDodge, nil - case "color-burn": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeColorBurn, nil - case "hard-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeHardLight, nil - case "soft-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeSoftLight, nil - case "difference": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeDifference, nil - case "exclusion": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeExclusion, nil - case "hue": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeHue, nil - case "saturation": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeSaturation, nil - case "color": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeColor, nil - case "luminosity": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendModeLuminosity, nil + case "durable": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQualityDurable, nil + case "weak": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQualityWeak, nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality { return &d } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyleSolid DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle = "solid" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyleDashed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle = "dashed" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyleBeveled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle = "beveled" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyleInset DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle = "inset" -) + rawJSON json.RawMessage +} -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyleFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle, error) { - switch s { - case "solid": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyleSolid, nil - case "dashed": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyleDashed, nil - case "beveled": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyleBeveled, nil - case "inset": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyleInset, nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex { + if d == nil { + return nil + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value + } + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err + } + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Nm != nil { + return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + } + if d.Index != nil { + return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex) error +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) + } + if d.Nm != nil { + return visitor.VisitNm(d.Nm) + } + if d.Index != nil { + return visitor.VisitIndex(d.Index) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Nm != nil { + fields = append(fields, "nm") + } + if d.Index != nil { + fields = append(fields, "index") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle { - return &d + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColorFieldR = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColorFieldG = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColorFieldB = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor struct { - R int `json:"r" url:"r"` - G int `json:"g" url:"g"` - B int `json:"b" url:"b"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -67193,69 +82467,69 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor struc rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor) GetR() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex) GetPageObjectNumber() int { if d == nil { return 0 } - return d.R + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor) GetG() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex) GetIndex() int { if d == nil { return 0 } - return d.G + return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor) GetB() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision { if d == nil { - return 0 + return nil } - return d.B + return d.Revision } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetR sets the R field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor) SetR(r int) { - d.R = r - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColorFieldR) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexFieldPageObjectNumber) } -// SetG sets the G field and marks it as non-optional; +// SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor) SetG(g int) { - d.G = g - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColorFieldG) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexFieldIndex) } -// SetB sets the B field and marks it as non-optional; +// SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor) SetB(b int) { - d.B = b - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColorFieldB) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexFieldRevision) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -67265,8 +82539,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor) return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex var marshaler = struct { embed }{ @@ -67276,7 +82550,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex) String() string { if d == nil { return "" } @@ -67292,29 +82566,15 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor) } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldInvisible = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldHidden = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldPrint = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldNoZoom = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldNoRotate = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldNoView = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldReadOnly = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldLocked = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldToggleNoView = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldLockedContents = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags struct { - Invisible bool `json:"invisible" url:"invisible"` - Hidden bool `json:"hidden" url:"hidden"` - Print bool `json:"print" url:"print"` - NoZoom bool `json:"noZoom" url:"noZoom"` - NoRotate bool `json:"noRotate" url:"noRotate"` - NoView bool `json:"noView" url:"noView"` - ReadOnly bool `json:"readOnly" url:"readOnly"` - Locked bool `json:"locked" url:"locked"` - ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` - LockedContents bool `json:"lockedContents" url:"lockedContents"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -67323,167 +82583,69 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags struc rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) GetInvisible() bool { - if d == nil { - return false - } - return d.Invisible -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) GetHidden() bool { - if d == nil { - return false - } - return d.Hidden -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) GetPrint() bool { - if d == nil { - return false - } - return d.Print -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) GetNoZoom() bool { - if d == nil { - return false - } - return d.NoZoom -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) GetNoRotate() bool { - if d == nil { - return false - } - return d.NoRotate -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) GetNoView() bool { - if d == nil { - return false - } - return d.NoView -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) GetReadOnly() bool { - if d == nil { - return false - } - return d.ReadOnly -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) GetLocked() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision) GetDocSessionID() string { if d == nil { - return false + return "" } - return d.Locked + return d.DocSessionID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) GetToggleNoView() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision) GetPageObjectNumber() int { if d == nil { - return false + return 0 } - return d.ToggleNoView + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) GetLockedContents() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision) GetGeneration() int { if d == nil { - return false + return 0 } - return d.LockedContents + return d.Generation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetInvisible sets the Invisible field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) SetInvisible(invisible bool) { - d.Invisible = invisible - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldInvisible) -} - -// SetHidden sets the Hidden field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) SetHidden(hidden bool) { - d.Hidden = hidden - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldHidden) -} - -// SetPrint sets the Print field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) SetPrint(print bool) { - d.Print = print - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldPrint) -} - -// SetNoZoom sets the NoZoom field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) SetNoZoom(noZoom bool) { - d.NoZoom = noZoom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldNoZoom) -} - -// SetNoRotate sets the NoRotate field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) SetNoRotate(noRotate bool) { - d.NoRotate = noRotate - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldNoRotate) -} - -// SetNoView sets the NoView field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) SetNoView(noView bool) { - d.NoView = noView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldNoView) -} - -// SetReadOnly sets the ReadOnly field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) SetReadOnly(readOnly bool) { - d.ReadOnly = readOnly - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldReadOnly) -} - -// SetLocked sets the Locked field and marks it as non-optional; +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) SetLocked(locked bool) { - d.Locked = locked - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldLocked) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevisionFieldDocSessionID) } -// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) SetToggleNoView(toggleNoView bool) { - d.ToggleNoView = toggleNoView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldToggleNoView) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevisionFieldPageObjectNumber) } -// SetLockedContents sets the LockedContents field and marks it as non-optional; +// SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) SetLockedContents(lockedContents bool) { - d.LockedContents = lockedContents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlagsFieldLockedContents) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevisionFieldGeneration) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -67493,8 +82655,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision var marshaler = struct { embed }{ @@ -67504,7 +82666,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision) String() string { if d == nil { return "" } @@ -67520,15 +82682,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags) } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColorFieldR = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColorFieldG = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColorFieldB = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor struct { - R int `json:"r" url:"r"` - G int `json:"g" url:"g"` - B int `json:"b" url:"b"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -67537,69 +82697,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor s rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor) GetR() int { - if d == nil { - return 0 - } - return d.R -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor) GetG() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm) GetPageObjectNumber() int { if d == nil { return 0 } - return d.G + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor) GetB() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm) GetNm() string { if d == nil { - return 0 + return "" } - return d.B + return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetR sets the R field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor) SetR(r int) { - d.R = r - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColorFieldR) -} - -// SetG sets the G field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor) SetG(g int) { - d.G = g - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColorFieldG) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNmFieldPageObjectNumber) } -// SetB sets the B field and marks it as non-optional; +// SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor) SetB(b int) { - d.B = b - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColorFieldB) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNmFieldNm) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -67609,8 +82755,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontCol return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm var marshaler = struct { embed }{ @@ -67620,7 +82766,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontCol return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm) String() string { if d == nil { return "" } @@ -67629,194 +82775,20 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontCol return value } } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) -} - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQuality string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQuality = "durable" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQuality = "weak" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQuality, error) { - switch s { - case "durable": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQualityDurable, nil - case "weak": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQualityWeak, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQuality - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQuality { - return &d -} - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo struct { - Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex - - rawJSON json.RawMessage -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo) GetKind() string { - if d == nil { - return "" - } - return d.Kind -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber { - if d == nil { - return nil - } - return d.ObjectNumber -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm { - if d == nil { - return nil - } - return d.Nm -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex { - if d == nil { - return nil - } - return d.Index -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Nm = value - case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Index = value - } - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Nm != nil { - return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") - } - if d.Index != nil { - return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil - } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) -} - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) error -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) - } - if d.Nm != nil { - return visitor.VisitNm(d.Nm) - } - if d.Index != nil { - return visitor.VisitIndex(d.Index) - } - return fmt.Errorf("type %T does not define a non-empty union type", d) -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo) validate() error { - if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Nm != nil { - fields = append(fields, "nm") - } - if d.Index != nil { - fields = append(fields, "index") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } + if value, err := internal.StringifyJSON(d); err == nil { + return value } - return nil + return fmt.Sprintf("%#v", d) } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -67825,35 +82797,28 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIn rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } - return d.Index -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision { - if d == nil { - return nil - } - return d.Revision + return d.AnnotObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -67862,32 +82827,25 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReply // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexFieldPageObjectNumber) -} - -// SetIndex sets the Index field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexFieldIndex) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumberFieldPageObjectNumber) } -// SetRevision sets the Revision field and marks it as non-optional; +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision) { - d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexFieldRevision) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -67897,8 +82855,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReply return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber var marshaler = struct { embed }{ @@ -67908,7 +82866,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReply return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber) String() string { if d == nil { return "" } @@ -67924,15 +82882,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReply } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItemFieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItemFieldY = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -67941,69 +82897,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIn rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision) GetDocSessionID() string { - if d == nil { - return "" - } - return d.DocSessionID -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem) GetX() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.X } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision) GetGeneration() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem) GetY() float64 { if d == nil { return 0 } - return d.Generation + return d.Y } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevisionFieldDocSessionID) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevisionFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItemFieldX) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevisionFieldGeneration) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItemFieldY) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -68013,8 +82955,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReply return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem var marshaler = struct { embed }{ @@ -68024,7 +82966,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReply return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem) String() string { if d == nil { return "" } @@ -68039,14 +82981,37 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReply return fmt.Sprintf("%#v", d) } +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntent string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntentInkHighlight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntent = "ink-highlight" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntentFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntent, error) { + switch s { + case "ink-highlight": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntentInkHighlight, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntent + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntent) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntent { + return &d +} + var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNmFieldNm = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRectFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRectFieldTop = big.NewInt(1 << 3) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect struct { + Left float64 `json:"left" url:"left"` + Bottom float64 `json:"bottom" url:"bottom"` + Right float64 `json:"right" url:"right"` + Top float64 `json:"top" url:"top"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -68055,55 +83020,83 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect) GetLeft() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.Left } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm) GetNm() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect) GetBottom() float64 { if d == nil { - return "" + return 0 } - return d.Nm + return d.Bottom } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect) GetRight() float64 { + if d == nil { + return 0 + } + return d.Right +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect) GetTop() float64 { + if d == nil { + return 0 + } + return d.Top +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetLeft sets the Left field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNmFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRectFieldLeft) } -// SetNm sets the Nm field and marks it as non-optional; +// SetBottom sets the Bottom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNmFieldNm) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRectFieldBottom) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm +// SetRight sets the Right field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRectFieldRight) +} + +// SetTop sets the Top field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRectFieldTop) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -68113,8 +83106,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReply return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect var marshaler = struct { embed }{ @@ -68124,7 +83117,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReply return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect) String() string { if d == nil { return "" } @@ -68139,14 +83132,166 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReply return fmt.Sprintf("%#v", d) } +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex { + if d == nil { + return nil + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value + } + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err + } + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Nm != nil { + return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + } + if d.Index != nil { + return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex) error +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) + } + if d.Nm != nil { + return visitor.VisitNm(d.Nm) + } + if d.Index != nil { + return visitor.VisitIndex(d.Index) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Nm != nil { + fields = append(fields, "nm") + } + if d.Index != nil { + fields = append(fields, "index") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil +} + var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -68155,28 +83300,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToOb rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex) GetIndex() int { if d == nil { return 0 } - return d.AnnotObjectNumber + return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -68185,25 +83337,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReply // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumberFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexFieldPageObjectNumber) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumberFieldAnnotObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexFieldIndex) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber +// SetRevision sets the Revision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexFieldRevision) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -68213,8 +83372,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReply return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex var marshaler = struct { embed }{ @@ -68224,7 +83383,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReply return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex) String() string { if d == nil { return "" } @@ -68239,38 +83398,16 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReply return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntentFreeText DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent = "free-text" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntentFreeTextCallout DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent = "free-text-callout" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntentFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent, error) { - switch s { - case "free-text": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntentFreeText, nil - case "free-text-callout": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntentFreeTextCallout, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent { - return &d -} - var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColorFieldR = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColorFieldG = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColorFieldB = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor struct { - R int `json:"r" url:"r"` - G int `json:"g" url:"g"` - B int `json:"b" url:"b"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -68279,69 +83416,69 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorCol rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor) GetR() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision) GetDocSessionID() string { if d == nil { - return 0 + return "" } - return d.R + return d.DocSessionID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor) GetG() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } - return d.G + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor) GetB() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision) GetGeneration() int { if d == nil { return 0 } - return d.B + return d.Generation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetR sets the R field and marks it as non-optional; +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor) SetR(r int) { - d.R = r - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColorFieldR) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevisionFieldDocSessionID) } -// SetG sets the G field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor) SetG(g int) { - d.G = g - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColorFieldG) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevisionFieldPageObjectNumber) } -// SetB sets the B field and marks it as non-optional; +// SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor) SetB(b int) { - d.B = b - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColorFieldB) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevisionFieldGeneration) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -68351,8 +83488,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInterio return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision var marshaler = struct { embed }{ @@ -68362,7 +83499,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInterio return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision) String() string { if d == nil { return "" } @@ -68377,64 +83514,14 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInterio return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingNone DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding = "none" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingSquare DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding = "square" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingCircle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding = "circle" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingDiamond DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding = "diamond" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingOpenArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding = "open-arrow" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingClosedArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding = "closed-arrow" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingButt DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding = "butt" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingROpenArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding = "r-open-arrow" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingRClosedArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding = "r-closed-arrow" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingSlash DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding = "slash" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding, error) { - switch s { - case "none": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingNone, nil - case "square": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingSquare, nil - case "circle": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingCircle, nil - case "diamond": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingDiamond, nil - case "open-arrow": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingOpenArrow, nil - case "closed-arrow": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingClosedArrow, nil - case "butt": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingButt, nil - case "r-open-arrow": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingROpenArrow, nil - case "r-closed-arrow": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingRClosedArrow, nil - case "slash": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEndingSlash, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding { - return &d -} - var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectFieldRight = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectFieldTop = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect struct { - Left float64 `json:"left" url:"left"` - Bottom float64 `json:"bottom" url:"bottom"` - Right float64 `json:"right" url:"right"` - Top float64 `json:"top" url:"top"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -68443,83 +83530,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect struct rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) GetLeft() float64 { - if d == nil { - return 0 - } - return d.Left -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) GetBottom() float64 { - if d == nil { - return 0 - } - return d.Bottom -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) GetRight() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm) GetPageObjectNumber() int { if d == nil { return 0 } - return d.Right + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) GetTop() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm) GetNm() string { if d == nil { - return 0 + return "" } - return d.Top + return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetLeft sets the Left field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) SetLeft(left float64) { - d.Left = left - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectFieldLeft) -} - -// SetBottom sets the Bottom field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectFieldBottom) -} - -// SetRight sets the Right field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) SetRight(right float64) { - d.Right = right - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectFieldRight) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNmFieldPageObjectNumber) } -// SetTop sets the Top field and marks it as non-optional; +// SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectFieldTop) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNmFieldNm) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -68529,8 +83588,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) U return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm var marshaler = struct { embed }{ @@ -68540,7 +83599,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) M return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm) String() string { if d == nil { return "" } @@ -68556,17 +83615,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect) S } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferencesFieldLeft = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferencesFieldTop = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferencesFieldRight = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferencesFieldBottom = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences struct { - Left float64 `json:"left" url:"left"` - Top float64 `json:"top" url:"top"` - Right float64 `json:"right" url:"right"` - Bottom float64 `json:"bottom" url:"bottom"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -68575,83 +83630,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDiffere rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences) GetLeft() float64 { - if d == nil { - return 0 - } - return d.Left -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences) GetTop() float64 { - if d == nil { - return 0 - } - return d.Top -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences) GetRight() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } - return d.Right + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences) GetBottom() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } - return d.Bottom + return d.AnnotObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetLeft sets the Left field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences) SetLeft(left float64) { - d.Left = left - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferencesFieldLeft) -} - -// SetTop sets the Top field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferencesFieldTop) -} - -// SetRight sets the Right field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences) SetRight(right float64) { - d.Right = right - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferencesFieldRight) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumberFieldPageObjectNumber) } -// SetBottom sets the Bottom field and marks it as non-optional; +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferencesFieldBottom) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -68661,8 +83688,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDif return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber var marshaler = struct { embed }{ @@ -68672,7 +83699,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDif return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber) String() string { if d == nil { return "" } @@ -68687,453 +83714,597 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDif return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef struct { - Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyType string - rawJSON json.RawMessage +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyType = "reply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyType = "group" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyType, error) { + switch s { + case "reply": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyTypeReply, nil + case "group": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyTypeGroup, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyType + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef) GetKind() string { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyType { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldIntent = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldMeasure = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldCaption = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldLeader = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldRef = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldPageObjectNumber = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldIndex = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldIdentityQuality = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldNm = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldFlags = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldRect = big.NewInt(1 << 10) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldContents = big.NewInt(1 << 11) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldSubject = big.NewInt(1 << 12) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldAuthor = big.NewInt(1 << 13) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldCreated = big.NewInt(1 << 14) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldModified = big.NewInt(1 << 15) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldBlendMode = big.NewInt(1 << 16) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldInReplyTo = big.NewInt(1 << 17) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldReplyType = big.NewInt(1 << 18) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldUserID = big.NewInt(1 << 19) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldGroupID = big.NewInt(1 << 20) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldCreatedBy = big.NewInt(1 << 21) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldUpdatedBy = big.NewInt(1 << 22) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldActions = big.NewInt(1 << 23) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldColor = big.NewInt(1 << 24) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldOpacity = big.NewInt(1 << 25) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldStrokeWidth = big.NewInt(1 << 26) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldBorderStyle = big.NewInt(1 << 27) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldDashArray = big.NewInt(1 << 28) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldInteriorColor = big.NewInt(1 << 29) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldLinePoints = big.NewInt(1 << 30) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldLineEndings = big.NewInt(1 << 31) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldRotation = big.NewInt(1 << 32) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine struct { + Intent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIntent `json:"intent,omitempty" url:"intent,omitempty"` + Measure *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasure `json:"measure,omitempty" url:"measure,omitempty"` + Caption *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption `json:"caption,omitempty" url:"caption,omitempty"` + Leader *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader `json:"leader,omitempty" url:"leader,omitempty"` + Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef `json:"ref" url:"ref"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality `json:"identityQuality" url:"identityQuality"` + Nm *string `json:"nm,omitempty" url:"nm,omitempty"` + Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags `json:"flags" url:"flags"` + Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect `json:"rect" url:"rect"` + Contents *string `json:"contents,omitempty" url:"contents,omitempty"` + Subject *string `json:"subject,omitempty" url:"subject,omitempty"` + Author *string `json:"author,omitempty" url:"author,omitempty"` + Created *time.Time `json:"created,omitempty" url:"created,omitempty"` + Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` + BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode `json:"blendMode" url:"blendMode"` + InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` + ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` + UserID *string `json:"userId,omitempty" url:"userId,omitempty"` + GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` + CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` + Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` + Color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor `json:"color" url:"color"` + Opacity float64 `json:"opacity" url:"opacity"` + StrokeWidth float64 `json:"strokeWidth" url:"strokeWidth"` + BorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle `json:"borderStyle" url:"borderStyle"` + DashArray []float64 `json:"dashArray,omitempty" url:"dashArray,omitempty"` + InteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor `json:"interiorColor,omitempty" url:"interiorColor,omitempty"` + LinePoints *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints `json:"linePoints" url:"linePoints"` + LineEndings *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings `json:"lineEndings" url:"lineEndings"` + Rotation *float64 `json:"rotation,omitempty" url:"rotation,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetIntent() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIntent { if d == nil { - return "" + return nil } - return d.Kind + return d.Intent } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetMeasure() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasure { if d == nil { return nil } - return d.ObjectNumber + return d.Measure } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetCaption() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption { if d == nil { return nil } - return d.Nm + return d.Caption } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetLeader() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader { if d == nil { return nil } - return d.Index + return d.Leader } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef { + if d == nil { + return nil } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err + return d.Ref +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetPageObjectNumber() int { + if d == nil { + return 0 } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetIndex() int { + if d == nil { + return 0 } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Nm = value - case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Index = value + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality { + if d == nil { + return "" } - d.rawJSON = json.RawMessage(data) - return nil + return d.IdentityQuality } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetNm() *string { + if d == nil { + return nil } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags { + if d == nil { + return nil } - if d.Nm != nil { - return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + return d.Flags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect { + if d == nil { + return nil } - if d.Index != nil { - return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + return d.Rect +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetContents() *string { + if d == nil { + return nil } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil + return d.Contents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetSubject() *string { + if d == nil { + return nil } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) + return d.Subject } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex) error +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetAuthor() *string { + if d == nil { + return nil + } + return d.Author } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetCreated() *time.Time { + if d == nil { + return nil } - if d.Nm != nil { - return visitor.VisitNm(d.Nm) + return d.Created +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetModified() *time.Time { + if d == nil { + return nil } - if d.Index != nil { - return visitor.VisitIndex(d.Index) + return d.Modified +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode { + if d == nil { + return "" } - return fmt.Errorf("type %T does not define a non-empty union type", d) + return d.BlendMode } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef) validate() error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo { if d == nil { - return fmt.Errorf("type %T is nil", d) + return nil } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") + return d.InReplyTo +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType { + if d == nil { + return nil } - if d.Nm != nil { - fields = append(fields, "nm") + return d.ReplyType +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetUserID() *string { + if d == nil { + return nil } - if d.Index != nil { - fields = append(fields, "index") + return d.UserID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetGroupID() *string { + if d == nil { + return nil } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) + return d.GroupID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetCreatedBy() *string { + if d == nil { + return nil } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + return d.CreatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetUpdatedBy() *string { + if d == nil { + return nil } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } + return d.UpdatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetActions() *PdfAnnotationActions { + if d == nil { + return nil + } + return d.Actions +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor { + if d == nil { + return nil + } + return d.Color +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetOpacity() float64 { + if d == nil { + return 0 } - return nil + return d.Opacity } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexFieldRevision = big.NewInt(1 << 2) -) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetStrokeWidth() float64 { + if d == nil { + return 0 + } + return d.StrokeWidth +} -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision `json:"revision" url:"revision"` +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetBorderStyle() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle { + if d == nil { + return "" + } + return d.BorderStyle +} - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetDashArray() []float64 { + if d == nil { + return nil + } + return d.DashArray +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetInteriorColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor { + if d == nil { + return nil + } + return d.InteriorColor } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetLinePoints() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints { if d == nil { - return 0 + return nil } - return d.PageObjectNumber + return d.LinePoints } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetLineEndings() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings { if d == nil { - return 0 + return nil } - return d.Index + return d.LineEndings } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetRotation() *float64 { if d == nil { return nil } - return d.Revision + return d.Rotation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } +// SetIntent sets the Intent field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetIntent(intent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIntent) { + d.Intent = intent + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldIntent) +} + +// SetMeasure sets the Measure field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetMeasure(measure *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasure) { + d.Measure = measure + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldMeasure) +} + +// SetCaption sets the Caption field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetCaption(caption *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption) { + d.Caption = caption + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldCaption) +} + +// SetLeader sets the Leader field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetLeader(leader *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader) { + d.Leader = leader + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldLeader) +} + +// SetRef sets the Ref field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef) { + d.Ref = ref + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldRef) +} + // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex) SetIndex(index int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetIndex(index int) { d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexFieldIndex) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldIndex) } -// SetRevision sets the Revision field and marks it as non-optional; +// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision) { - d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexFieldRevision) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality) { + d.IdentityQuality = identityQuality + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldIdentityQuality) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetNm(nm *string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldNm) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) +// SetFlags sets the Flags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) { + d.Flags = flags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldFlags) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) +// SetRect sets the Rect field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) { + d.Rect = rect + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldRect) } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) -) - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage +// SetContents sets the Contents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetContents(contents *string) { + d.Contents = contents + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldContents) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision) GetDocSessionID() string { - if d == nil { - return "" - } - return d.DocSessionID +// SetSubject sets the Subject field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetSubject(subject *string) { + d.Subject = subject + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldSubject) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber +// SetAuthor sets the Author field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetAuthor(author *string) { + d.Author = author + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldAuthor) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision) GetGeneration() int { - if d == nil { - return 0 - } - return d.Generation +// SetCreated sets the Created field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetCreated(created *time.Time) { + d.Created = created + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldCreated) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties +// SetModified sets the Modified field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetModified(modified *time.Time) { + d.Modified = modified + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldModified) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) +// SetBlendMode sets the BlendMode field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode) { + d.BlendMode = blendMode + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldBlendMode) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// SetInReplyTo sets the InReplyTo field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevisionFieldDocSessionID) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo) { + d.InReplyTo = inReplyTo + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldInReplyTo) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetReplyType sets the ReplyType field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevisionFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType) { + d.ReplyType = replyType + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldReplyType) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetUserID sets the UserID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevisionFieldGeneration) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetUserID(userID *string) { + d.UserID = userID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldUserID) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil +// SetGroupID sets the GroupID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetGroupID(groupID *string) { + d.GroupID = groupID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldGroupID) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) +// SetCreatedBy sets the CreatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetCreatedBy(createdBy *string) { + d.CreatedBy = createdBy + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldCreatedBy) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) +// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetUpdatedBy(updatedBy *string) { + d.UpdatedBy = updatedBy + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldUpdatedBy) } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNmFieldNm = big.NewInt(1 << 1) -) +// SetActions sets the Actions field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetActions(actions *PdfAnnotationActions) { + d.Actions = actions + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldActions) +} -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` +// SetColor sets the Color field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetColor(color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) { + d.Color = color + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldColor) +} - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +// SetOpacity sets the Opacity field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetOpacity(opacity float64) { + d.Opacity = opacity + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldOpacity) +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +// SetStrokeWidth sets the StrokeWidth field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetStrokeWidth(strokeWidth float64) { + d.StrokeWidth = strokeWidth + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldStrokeWidth) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber +// SetBorderStyle sets the BorderStyle field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetBorderStyle(borderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle) { + d.BorderStyle = borderStyle + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldBorderStyle) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm) GetNm() string { - if d == nil { - return "" - } - return d.Nm +// SetDashArray sets the DashArray field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetDashArray(dashArray []float64) { + d.DashArray = dashArray + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldDashArray) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties +// SetInteriorColor sets the InteriorColor field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetInteriorColor(interiorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor) { + d.InteriorColor = interiorColor + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldInteriorColor) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) +// SetLinePoints sets the LinePoints field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetLinePoints(linePoints *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints) { + d.LinePoints = linePoints + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldLinePoints) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetLineEndings sets the LineEndings field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNmFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetLineEndings(lineEndings *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings) { + d.LineEndings = lineEndings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldLineEndings) } -// SetNm sets the Nm field and marks it as non-optional; +// SetRotation sets the Rotation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNmFieldNm) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetRotation(rotation *float64) { + d.Rotation = rotation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldRotation) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) UnmarshalJSON(data []byte) error { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + var unmarshaler = struct { + embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine(unmarshaler.embed) + d.Created = unmarshaler.Created.TimePtr() + d.Modified = unmarshaler.Modified.TimePtr() extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -69143,18 +84314,22 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm) return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine var marshaler = struct { embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), + embed: embed(*d), + Created: internal.NewOptionalDateTime(d.Created), + Modified: internal.NewOptionalDateTime(d.Modified), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) String() string { if d == nil { return "" } @@ -69169,136 +84344,108 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm) return fmt.Sprintf("%#v", d) } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) -) - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber) GetAnnotObjectNumber() int { - if d == nil { - return 0 - } - return d.AnnotObjectNumber -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumberFieldPageObjectNumber) -} - -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumberFieldAnnotObjectNumber) -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil -} +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode string -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber - var marshaler = struct { - embed - }{ - embed: embed(*d), +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode = "normal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode = "multiply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode = "screen" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode = "overlay" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode = "darken" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode = "lighten" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode = "color-dodge" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode = "color-burn" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode = "hard-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode = "soft-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode = "difference" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode = "exclusion" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode = "hue" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode = "saturation" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode = "color" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode = "luminosity" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode, error) { + switch s { + case "normal": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeNormal, nil + case "multiply": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeMultiply, nil + case "screen": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeScreen, nil + case "overlay": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeOverlay, nil + case "darken": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeDarken, nil + case "lighten": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeLighten, nil + case "color-dodge": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeColorDodge, nil + case "color-burn": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeColorBurn, nil + case "hard-light": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeHardLight, nil + case "soft-light": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeSoftLight, nil + case "difference": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeDifference, nil + case "exclusion": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeExclusion, nil + case "hue": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeHue, nil + case "saturation": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeSaturation, nil + case "color": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeColor, nil + case "luminosity": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeLuminosity, nil } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode { + return &d } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyType string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyType = "reply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyType = "group" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyleSolid DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle = "solid" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyleDashed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle = "dashed" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyleBeveled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle = "beveled" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyleInset DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle = "inset" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyType, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyleFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle, error) { switch s { - case "reply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyTypeReply, nil - case "group": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyTypeGroup, nil + case "solid": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyleSolid, nil + case "dashed": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyleDashed, nil + case "beveled": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyleBeveled, nil + case "inset": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyleInset, nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyType + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyType { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle { return &d } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextFieldBody = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextFieldParagraphs = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionFieldEnabled = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionFieldPosition = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionFieldOffset = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText struct { - Body *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody `json:"body" url:"body"` - Paragraphs []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem `json:"paragraphs" url:"paragraphs"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption struct { + Enabled bool `json:"enabled" url:"enabled"` + Position *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionPosition `json:"position,omitempty" url:"position,omitempty"` + Offset *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset `json:"offset,omitempty" url:"offset,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -69307,55 +84454,69 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText st rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText) GetBody() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption) GetEnabled() bool { + if d == nil { + return false + } + return d.Enabled +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption) GetPosition() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionPosition { if d == nil { return nil } - return d.Body + return d.Position } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText) GetParagraphs() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption) GetOffset() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset { if d == nil { return nil } - return d.Paragraphs + return d.Offset } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetBody sets the Body field and marks it as non-optional; +// SetEnabled sets the Enabled field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText) SetBody(body *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) { - d.Body = body - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextFieldBody) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption) SetEnabled(enabled bool) { + d.Enabled = enabled + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionFieldEnabled) } -// SetParagraphs sets the Paragraphs field and marks it as non-optional; +// SetPosition sets the Position field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText) SetParagraphs(paragraphs []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) { - d.Paragraphs = paragraphs - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextFieldParagraphs) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption) SetPosition(position *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionPosition) { + d.Position = position + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionFieldPosition) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText +// SetOffset sets the Offset field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption) SetOffset(offset *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset) { + d.Offset = offset + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionFieldOffset) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -69365,8 +84526,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTex return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption var marshaler = struct { embed }{ @@ -69376,7 +84537,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTex return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption) String() string { if d == nil { return "" } @@ -69392,39 +84553,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTex } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldFamily = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldWeight = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldItalic = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldSize = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldColor = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldDecoration = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldScript = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldLetterSpacing = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldHorizontalScale = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldUnknown = big.NewInt(1 << 9) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldAlign = big.NewInt(1 << 10) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldDir = big.NewInt(1 << 11) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldLineHeight = big.NewInt(1 << 12) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldMargins = big.NewInt(1 << 13) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldTextIndent = big.NewInt(1 << 14) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffsetFieldAlong = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffsetFieldPerpendicular = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody struct { - Family string `json:"family" url:"family"` - Weight int `json:"weight" url:"weight"` - Italic bool `json:"italic" url:"italic"` - Size float64 `json:"size" url:"size"` - Color string `json:"color" url:"color"` - Decoration []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItem `json:"decoration" url:"decoration"` - Script DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScript `json:"script" url:"script"` - LetterSpacing float64 `json:"letterSpacing" url:"letterSpacing"` - HorizontalScale float64 `json:"horizontalScale" url:"horizontalScale"` - Unknown *string `json:"unknown,omitempty" url:"unknown,omitempty"` - Align DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlign `json:"align" url:"align"` - Dir DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDir `json:"dir" url:"dir"` - LineHeight *float64 `json:"lineHeight,omitempty" url:"lineHeight,omitempty"` - Margins *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins `json:"margins,omitempty" url:"margins,omitempty"` - TextIndent *float64 `json:"textIndent,omitempty" url:"textIndent,omitempty"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset struct { + Along float64 `json:"along" url:"along"` + Perpendicular float64 `json:"perpendicular" url:"perpendicular"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -69433,237 +84568,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBod rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) GetFamily() string { - if d == nil { - return "" - } - return d.Family -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) GetWeight() int { - if d == nil { - return 0 - } - return d.Weight -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) GetItalic() bool { - if d == nil { - return false - } - return d.Italic -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) GetSize() float64 { - if d == nil { - return 0 - } - return d.Size -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) GetColor() string { - if d == nil { - return "" - } - return d.Color -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) GetDecoration() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItem { - if d == nil { - return nil - } - return d.Decoration -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) GetScript() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScript { - if d == nil { - return "" - } - return d.Script -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) GetLetterSpacing() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset) GetAlong() float64 { if d == nil { return 0 } - return d.LetterSpacing + return d.Along } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) GetHorizontalScale() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset) GetPerpendicular() float64 { if d == nil { return 0 } - return d.HorizontalScale -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) GetUnknown() *string { - if d == nil { - return nil - } - return d.Unknown -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) GetAlign() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlign { - if d == nil { - return "" - } - return d.Align -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) GetDir() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDir { - if d == nil { - return "" - } - return d.Dir -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) GetLineHeight() *float64 { - if d == nil { - return nil - } - return d.LineHeight -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) GetMargins() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins { - if d == nil { - return nil - } - return d.Margins -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) GetTextIndent() *float64 { - if d == nil { - return nil - } - return d.TextIndent + return d.Perpendicular } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetFamily sets the Family field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) SetFamily(family string) { - d.Family = family - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldFamily) -} - -// SetWeight sets the Weight field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) SetWeight(weight int) { - d.Weight = weight - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldWeight) -} - -// SetItalic sets the Italic field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) SetItalic(italic bool) { - d.Italic = italic - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldItalic) -} - -// SetSize sets the Size field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) SetSize(size float64) { - d.Size = size - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldSize) -} - -// SetColor sets the Color field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) SetColor(color string) { - d.Color = color - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldColor) -} - -// SetDecoration sets the Decoration field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) SetDecoration(decoration []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItem) { - d.Decoration = decoration - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldDecoration) -} - -// SetScript sets the Script field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) SetScript(script DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScript) { - d.Script = script - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldScript) -} - -// SetLetterSpacing sets the LetterSpacing field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) SetLetterSpacing(letterSpacing float64) { - d.LetterSpacing = letterSpacing - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldLetterSpacing) -} - -// SetHorizontalScale sets the HorizontalScale field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) SetHorizontalScale(horizontalScale float64) { - d.HorizontalScale = horizontalScale - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldHorizontalScale) -} - -// SetUnknown sets the Unknown field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) SetUnknown(unknown *string) { - d.Unknown = unknown - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldUnknown) -} - -// SetAlign sets the Align field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) SetAlign(align DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlign) { - d.Align = align - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldAlign) -} - -// SetDir sets the Dir field and marks it as non-optional; +// SetAlong sets the Along field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) SetDir(dir DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDir) { - d.Dir = dir - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldDir) -} - -// SetLineHeight sets the LineHeight field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) SetLineHeight(lineHeight *float64) { - d.LineHeight = lineHeight - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldLineHeight) -} - -// SetMargins sets the Margins field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) SetMargins(margins *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins) { - d.Margins = margins - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldMargins) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset) SetAlong(along float64) { + d.Along = along + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffsetFieldAlong) } -// SetTextIndent sets the TextIndent field and marks it as non-optional; +// SetPerpendicular sets the Perpendicular field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) SetTextIndent(textIndent *float64) { - d.TextIndent = textIndent - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyFieldTextIndent) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset) SetPerpendicular(perpendicular float64) { + d.Perpendicular = perpendicular + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffsetFieldPerpendicular) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -69673,8 +84626,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTex return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset var marshaler = struct { embed }{ @@ -69684,7 +84637,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTex return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset) String() string { if d == nil { return "" } @@ -69699,93 +84652,38 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTex return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlign string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlignLeft DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlign = "left" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlignCenter DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlign = "center" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlignRight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlign = "right" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlignJustify DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlign = "justify" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlignFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlign, error) { - switch s { - case "left": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlignLeft, nil - case "center": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlignCenter, nil - case "right": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlignRight, nil - case "justify": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlignJustify, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlign - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlign) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlign { - return &d -} - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItem string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItemUnderline DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItem = "underline" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItemLineThrough DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItem = "line-through" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItemWord DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItem = "word" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItem, error) { - switch s { - case "underline": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItemUnderline, nil - case "line-through": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItemLineThrough, nil - case "word": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItemWord, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItem - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItem { - return &d -} - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDir string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionPosition string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDirLtr DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDir = "ltr" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDirRtl DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDir = "rtl" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionPositionInline DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionPosition = "inline" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionPositionTop DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionPosition = "top" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDirFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDir, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionPositionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionPosition, error) { switch s { - case "ltr": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDirLtr, nil - case "rtl": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDirRtl, nil + case "inline": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionPositionInline, nil + case "top": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionPositionTop, nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDir + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionPosition return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDir) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDir { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionPosition) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionPosition { return &d } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMarginsFieldTop = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMarginsFieldBottom = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMarginsFieldLeft = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMarginsFieldRight = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColorFieldB = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins struct { - Top float64 `json:"top" url:"top"` - Bottom float64 `json:"bottom" url:"bottom"` - Left float64 `json:"left" url:"left"` - Right float64 `json:"right" url:"right"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor struct { + R int `json:"r" url:"r"` + G int `json:"g" url:"g"` + B int `json:"b" url:"b"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -69794,83 +84692,69 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBod rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins) GetTop() float64 { - if d == nil { - return 0 - } - return d.Top -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins) GetBottom() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) GetR() int { if d == nil { return 0 } - return d.Bottom + return d.R } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins) GetLeft() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) GetG() int { if d == nil { return 0 } - return d.Left + return d.G } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins) GetRight() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) GetB() int { if d == nil { return 0 } - return d.Right + return d.B } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetTop sets the Top field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMarginsFieldTop) -} - -// SetBottom sets the Bottom field and marks it as non-optional; +// SetR sets the R field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMarginsFieldBottom) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) SetR(r int) { + d.R = r + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColorFieldR) } -// SetLeft sets the Left field and marks it as non-optional; +// SetG sets the G field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins) SetLeft(left float64) { - d.Left = left - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMarginsFieldLeft) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) SetG(g int) { + d.G = g + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColorFieldG) } -// SetRight sets the Right field and marks it as non-optional; +// SetB sets the B field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins) SetRight(right float64) { - d.Right = right - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMarginsFieldRight) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) SetB(b int) { + d.B = b + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColorFieldB) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -69880,8 +84764,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTex return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor var marshaler = struct { embed }{ @@ -69891,7 +84775,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTex return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) String() string { if d == nil { return "" } @@ -69903,52 +84787,33 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTex if value, err := internal.StringifyJSON(d); err == nil { return value } - return fmt.Sprintf("%#v", d) -} - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScript string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScriptNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScript = "normal" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScriptSub DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScript = "sub" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScriptSuper DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScript = "super" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScriptFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScript, error) { - switch s { - case "normal": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScriptNormal, nil - case "sub": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScriptSub, nil - case "super": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScriptSuper, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScript - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScript) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScript { - return &d + return fmt.Sprintf("%#v", d) } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemFieldAlign = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemFieldDir = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemFieldLineHeight = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemFieldMargins = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemFieldTextIndent = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemFieldUnknown = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemFieldRuns = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldInvisible = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldHidden = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldPrint = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldNoZoom = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldNoRotate = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldNoView = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldReadOnly = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldLocked = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldToggleNoView = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldLockedContents = big.NewInt(1 << 9) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem struct { - Align *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlign `json:"align,omitempty" url:"align,omitempty"` - Dir *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDir `json:"dir,omitempty" url:"dir,omitempty"` - LineHeight *float64 `json:"lineHeight,omitempty" url:"lineHeight,omitempty"` - Margins *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins `json:"margins,omitempty" url:"margins,omitempty"` - TextIndent *float64 `json:"textIndent,omitempty" url:"textIndent,omitempty"` - Unknown *string `json:"unknown,omitempty" url:"unknown,omitempty"` - Runs []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem `json:"runs" url:"runs"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags struct { + Invisible bool `json:"invisible" url:"invisible"` + Hidden bool `json:"hidden" url:"hidden"` + Print bool `json:"print" url:"print"` + NoZoom bool `json:"noZoom" url:"noZoom"` + NoRotate bool `json:"noRotate" url:"noRotate"` + NoView bool `json:"noView" url:"noView"` + ReadOnly bool `json:"readOnly" url:"readOnly"` + Locked bool `json:"locked" url:"locked"` + ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` + LockedContents bool `json:"lockedContents" url:"lockedContents"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -69957,125 +84822,167 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextPar rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) GetAlign() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlign { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) GetInvisible() bool { if d == nil { - return nil + return false } - return d.Align + return d.Invisible } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) GetDir() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDir { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) GetHidden() bool { if d == nil { - return nil + return false } - return d.Dir + return d.Hidden } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) GetLineHeight() *float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) GetPrint() bool { if d == nil { - return nil + return false } - return d.LineHeight + return d.Print } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) GetMargins() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) GetNoZoom() bool { if d == nil { - return nil + return false } - return d.Margins + return d.NoZoom } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) GetTextIndent() *float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) GetNoRotate() bool { if d == nil { - return nil + return false } - return d.TextIndent + return d.NoRotate } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) GetUnknown() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) GetNoView() bool { if d == nil { - return nil + return false } - return d.Unknown + return d.NoView } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) GetRuns() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) GetReadOnly() bool { if d == nil { - return nil + return false } - return d.Runs + return d.ReadOnly } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) GetLocked() bool { + if d == nil { + return false + } + return d.Locked +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) GetToggleNoView() bool { + if d == nil { + return false + } + return d.ToggleNoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) GetLockedContents() bool { + if d == nil { + return false + } + return d.LockedContents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetAlign sets the Align field and marks it as non-optional; +// SetInvisible sets the Invisible field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) SetAlign(align *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlign) { - d.Align = align - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemFieldAlign) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) SetInvisible(invisible bool) { + d.Invisible = invisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldInvisible) } -// SetDir sets the Dir field and marks it as non-optional; +// SetHidden sets the Hidden field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) SetDir(dir *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDir) { - d.Dir = dir - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemFieldDir) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) SetHidden(hidden bool) { + d.Hidden = hidden + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldHidden) } -// SetLineHeight sets the LineHeight field and marks it as non-optional; +// SetPrint sets the Print field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) SetLineHeight(lineHeight *float64) { - d.LineHeight = lineHeight - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemFieldLineHeight) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) SetPrint(print bool) { + d.Print = print + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldPrint) } -// SetMargins sets the Margins field and marks it as non-optional; +// SetNoZoom sets the NoZoom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) SetMargins(margins *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins) { - d.Margins = margins - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemFieldMargins) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) SetNoZoom(noZoom bool) { + d.NoZoom = noZoom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldNoZoom) } -// SetTextIndent sets the TextIndent field and marks it as non-optional; +// SetNoRotate sets the NoRotate field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) SetTextIndent(textIndent *float64) { - d.TextIndent = textIndent - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemFieldTextIndent) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) SetNoRotate(noRotate bool) { + d.NoRotate = noRotate + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldNoRotate) } -// SetUnknown sets the Unknown field and marks it as non-optional; +// SetNoView sets the NoView field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) SetUnknown(unknown *string) { - d.Unknown = unknown - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemFieldUnknown) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) SetNoView(noView bool) { + d.NoView = noView + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldNoView) } -// SetRuns sets the Runs field and marks it as non-optional; +// SetReadOnly sets the ReadOnly field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) SetRuns(runs []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem) { - d.Runs = runs - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemFieldRuns) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldReadOnly) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem +// SetLocked sets the Locked field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) SetLocked(locked bool) { + d.Locked = locked + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldLocked) +} + +// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) SetToggleNoView(toggleNoView bool) { + d.ToggleNoView = toggleNoView + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldToggleNoView) +} + +// SetLockedContents sets the LockedContents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) SetLockedContents(lockedContents bool) { + d.LockedContents = lockedContents + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldLockedContents) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -70085,8 +84992,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTex return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags var marshaler = struct { embed }{ @@ -70096,7 +85003,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTex return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) String() string { if d == nil { return "" } @@ -70111,196 +85018,188 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTex return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlign string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlignLeft DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlign = "left" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlignCenter DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlign = "center" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlignRight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlign = "right" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlignJustify DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlign = "justify" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlignFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlign, error) { - switch s { - case "left": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlignLeft, nil - case "center": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlignCenter, nil - case "right": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlignRight, nil - case "justify": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlignJustify, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlign - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlign) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlign { - return &d -} - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDir string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDirLtr DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDir = "ltr" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDirRtl DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDir = "rtl" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality = "durable" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality = "weak" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDirFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDir, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality, error) { switch s { - case "ltr": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDirLtr, nil - case "rtl": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDirRtl, nil + case "durable": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQualityDurable, nil + case "weak": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQualityWeak, nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDir + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDir) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDir { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality { return &d } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMarginsFieldTop = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMarginsFieldBottom = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMarginsFieldLeft = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMarginsFieldRight = big.NewInt(1 << 3) -) - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins struct { - Top float64 `json:"top" url:"top"` - Bottom float64 `json:"bottom" url:"bottom"` - Left float64 `json:"left" url:"left"` - Right float64 `json:"right" url:"right"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage -} +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins) GetTop() float64 { - if d == nil { - return 0 - } - return d.Top + rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins) GetBottom() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo) GetKind() string { if d == nil { - return 0 + return "" } - return d.Bottom + return d.Kind } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins) GetLeft() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber { if d == nil { - return 0 + return nil } - return d.Left + return d.ObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins) GetRight() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm { if d == nil { - return 0 + return nil } - return d.Right + return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex { if d == nil { return nil } - return d.extraProperties + return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetTop sets the Top field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMarginsFieldTop) -} - -// SetBottom sets the Bottom field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMarginsFieldBottom) + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value + } + d.rawJSON = json.RawMessage(data) + return nil } -// SetLeft sets the Left field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins) SetLeft(left float64) { - d.Left = left - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMarginsFieldLeft) +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err + } + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Nm != nil { + return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + } + if d.Index != nil { + return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -// SetRight sets the Right field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins) SetRight(right float64) { - d.Right = right - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMarginsFieldRight) +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex) error } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err + if d.Nm != nil { + return visitor.VisitNm(d.Nm) } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins - var marshaler = struct { - embed - }{ - embed: embed(*d), + if d.Index != nil { + return visitor.VisitIndex(d.Index) } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo) validate() error { if d == nil { - return "" + return fmt.Errorf("type %T is nil", d) } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Nm != nil { + fields = append(fields, "nm") + } + if d.Index != nil { + fields = append(fields, "index") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) } + return fmt.Errorf("type %T is empty", d) } - if value, err := internal.StringifyJSON(d); err == nil { - return value + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) } - return fmt.Sprintf("%#v", d) + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemFieldText = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemFieldStyle = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem struct { - Text string `json:"text" url:"text"` - Style *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle `json:"style,omitempty" url:"style,omitempty"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -70309,55 +85208,69 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextPar rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem) GetText() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex) GetPageObjectNumber() int { if d == nil { - return "" + return 0 } - return d.Text + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem) GetStyle() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision { if d == nil { return nil } - return d.Style + return d.Revision } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetText sets the Text field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem) SetText(text string) { - d.Text = text - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemFieldText) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexFieldPageObjectNumber) } -// SetStyle sets the Style field and marks it as non-optional; +// SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem) SetStyle(style *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) { - d.Style = style - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemFieldStyle) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexFieldIndex) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem +// SetRevision sets the Revision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexFieldRevision) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -70367,8 +85280,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTex return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex var marshaler = struct { embed }{ @@ -70378,7 +85291,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTex return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex) String() string { if d == nil { return "" } @@ -70394,29 +85307,15 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTex } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldFamily = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldWeight = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldItalic = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldSize = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldColor = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldDecoration = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldScript = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldLetterSpacing = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldHorizontalScale = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldUnknown = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle struct { - Family *string `json:"family,omitempty" url:"family,omitempty"` - Weight *int `json:"weight,omitempty" url:"weight,omitempty"` - Italic *bool `json:"italic,omitempty" url:"italic,omitempty"` - Size *float64 `json:"size,omitempty" url:"size,omitempty"` - Color *string `json:"color,omitempty" url:"color,omitempty"` - Decoration []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem `json:"decoration,omitempty" url:"decoration,omitempty"` - Script *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScript `json:"script,omitempty" url:"script,omitempty"` - LetterSpacing *float64 `json:"letterSpacing,omitempty" url:"letterSpacing,omitempty"` - HorizontalScale *float64 `json:"horizontalScale,omitempty" url:"horizontalScale,omitempty"` - Unknown *string `json:"unknown,omitempty" url:"unknown,omitempty"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -70425,167 +85324,69 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextPar rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) GetFamily() *string { - if d == nil { - return nil - } - return d.Family -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) GetWeight() *int { - if d == nil { - return nil - } - return d.Weight -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) GetItalic() *bool { - if d == nil { - return nil - } - return d.Italic -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) GetSize() *float64 { - if d == nil { - return nil - } - return d.Size -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) GetColor() *string { - if d == nil { - return nil - } - return d.Color -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) GetDecoration() []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem { - if d == nil { - return nil - } - return d.Decoration -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) GetScript() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScript { - if d == nil { - return nil - } - return d.Script -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) GetLetterSpacing() *float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision) GetDocSessionID() string { if d == nil { - return nil + return "" } - return d.LetterSpacing + return d.DocSessionID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) GetHorizontalScale() *float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision) GetPageObjectNumber() int { if d == nil { - return nil + return 0 } - return d.HorizontalScale + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) GetUnknown() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision) GetGeneration() int { if d == nil { - return nil + return 0 } - return d.Unknown + return d.Generation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetFamily sets the Family field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) SetFamily(family *string) { - d.Family = family - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldFamily) -} - -// SetWeight sets the Weight field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) SetWeight(weight *int) { - d.Weight = weight - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldWeight) -} - -// SetItalic sets the Italic field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) SetItalic(italic *bool) { - d.Italic = italic - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldItalic) -} - -// SetSize sets the Size field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) SetSize(size *float64) { - d.Size = size - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldSize) -} - -// SetColor sets the Color field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) SetColor(color *string) { - d.Color = color - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldColor) -} - -// SetDecoration sets the Decoration field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) SetDecoration(decoration []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem) { - d.Decoration = decoration - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldDecoration) -} - -// SetScript sets the Script field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) SetScript(script *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScript) { - d.Script = script - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldScript) -} - -// SetLetterSpacing sets the LetterSpacing field and marks it as non-optional; +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) SetLetterSpacing(letterSpacing *float64) { - d.LetterSpacing = letterSpacing - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldLetterSpacing) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevisionFieldDocSessionID) } -// SetHorizontalScale sets the HorizontalScale field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) SetHorizontalScale(horizontalScale *float64) { - d.HorizontalScale = horizontalScale - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldHorizontalScale) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevisionFieldPageObjectNumber) } -// SetUnknown sets the Unknown field and marks it as non-optional; +// SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) SetUnknown(unknown *string) { - d.Unknown = unknown - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleFieldUnknown) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevisionFieldGeneration) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -70595,8 +85396,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTex return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision var marshaler = struct { embed }{ @@ -70606,7 +85407,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTex return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision) String() string { if d == nil { return "" } @@ -70621,93 +85422,14 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTex return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItemUnderline DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem = "underline" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItemLineThrough DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem = "line-through" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItemWord DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem = "word" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItemFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem, error) { - switch s { - case "underline": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItemUnderline, nil - case "line-through": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItemLineThrough, nil - case "word": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItemWord, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem { - return &d -} - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScript string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScriptNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScript = "normal" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScriptSub DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScript = "sub" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScriptSuper DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScript = "super" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScriptFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScript, error) { - switch s { - case "normal": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScriptNormal, nil - case "sub": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScriptSub, nil - case "super": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScriptSuper, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScript - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScript) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScript { - return &d -} - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlignLeft DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign = "left" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlignCenter DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign = "center" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlignRight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign = "right" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlignFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign, error) { - switch s { - case "left": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlignLeft, nil - case "center": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlignCenter, nil - case "right": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlignRight, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign { - return &d -} - var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRectFieldRight = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRectFieldTop = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect struct { - Left float64 `json:"left" url:"left"` - Bottom float64 `json:"bottom" url:"bottom"` - Right float64 `json:"right" url:"right"` - Top float64 `json:"top" url:"top"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -70716,83 +85438,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRe rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect) GetLeft() float64 { - if d == nil { - return 0 - } - return d.Left -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect) GetBottom() float64 { - if d == nil { - return 0 - } - return d.Bottom -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect) GetRight() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm) GetPageObjectNumber() int { if d == nil { return 0 } - return d.Right + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect) GetTop() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm) GetNm() string { if d == nil { - return 0 + return "" } - return d.Top + return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetLeft sets the Left field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect) SetLeft(left float64) { - d.Left = left - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRectFieldLeft) -} - -// SetBottom sets the Bottom field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRectFieldBottom) -} - -// SetRight sets the Right field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect) SetRight(right float64) { - d.Right = right - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRectFieldRight) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNmFieldPageObjectNumber) } -// SetTop sets the Top field and marks it as non-optional; +// SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRectFieldTop) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNmFieldNm) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -70802,8 +85496,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotat return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm var marshaler = struct { embed }{ @@ -70813,7 +85507,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotat return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm) String() string { if d == nil { return "" } @@ -70829,55 +85523,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotat } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldRef = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldIndex = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldIdentityQuality = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldNm = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldFlags = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldRect = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldContents = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldSubject = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldAuthor = big.NewInt(1 << 9) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldCreated = big.NewInt(1 << 10) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldModified = big.NewInt(1 << 11) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldBlendMode = big.NewInt(1 << 12) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldInReplyTo = big.NewInt(1 << 13) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldReplyType = big.NewInt(1 << 14) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldUserID = big.NewInt(1 << 15) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldGroupID = big.NewInt(1 << 16) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldCreatedBy = big.NewInt(1 << 17) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldUpdatedBy = big.NewInt(1 << 18) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldActions = big.NewInt(1 << 19) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldColor = big.NewInt(1 << 20) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldOpacity = big.NewInt(1 << 21) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldQuadPoints = big.NewInt(1 << 22) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight struct { - Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef `json:"ref" url:"ref"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQuality `json:"identityQuality" url:"identityQuality"` - Nm *string `json:"nm,omitempty" url:"nm,omitempty"` - Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags `json:"flags" url:"flags"` - Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect `json:"rect" url:"rect"` - Contents *string `json:"contents,omitempty" url:"contents,omitempty"` - Subject *string `json:"subject,omitempty" url:"subject,omitempty"` - Author *string `json:"author,omitempty" url:"author,omitempty"` - Created *time.Time `json:"created,omitempty" url:"created,omitempty"` - Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` - BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode `json:"blendMode" url:"blendMode"` - InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` - ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` - UserID *string `json:"userId,omitempty" url:"userId,omitempty"` - GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` - CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` - Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` - Color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor `json:"color" url:"color"` - Opacity float64 `json:"opacity" url:"opacity"` - QuadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem `json:"quadPoints" url:"quadPoints"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -70886,357 +85538,409 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber) GetPageObjectNumber() int { if d == nil { - return nil + return 0 } - return d.Ref + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } - return d.PageObjectNumber + return d.AnnotObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { - return 0 + return nil } - return d.Index + return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQuality { - if d == nil { - return "" +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.IdentityQuality + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetNm() *string { - if d == nil { - return nil +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumberFieldPageObjectNumber) +} + +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - return d.Nm + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags { - if d == nil { - return nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return d.Flags + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber) String() string { if d == nil { - return nil + return "" } - return d.Rect + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetContents() *string { - if d == nil { - return nil +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIntent string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIntentLineArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIntent = "LineArrow" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIntentLineDimension DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIntent = "LineDimension" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIntentFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIntent, error) { + switch s { + case "LineArrow": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIntentLineArrow, nil + case "LineDimension": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIntentLineDimension, nil } - return d.Contents + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIntent + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIntent) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIntent { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColorFieldB = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor struct { + R int `json:"r" url:"r"` + G int `json:"g" url:"g"` + B int `json:"b" url:"b"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetSubject() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor) GetR() int { if d == nil { - return nil + return 0 } - return d.Subject + return d.R } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetAuthor() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor) GetG() int { if d == nil { - return nil + return 0 } - return d.Author + return d.G } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetCreated() *time.Time { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor) GetB() int { if d == nil { - return nil + return 0 } - return d.Created + return d.B } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetModified() *time.Time { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.Modified + return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode { - if d == nil { - return "" +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.BlendMode + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo { - if d == nil { - return nil - } - return d.InReplyTo +// SetR sets the R field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor) SetR(r int) { + d.R = r + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColorFieldR) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType { - if d == nil { - return nil - } - return d.ReplyType +// SetG sets the G field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor) SetG(g int) { + d.G = g + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColorFieldG) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetUserID() *string { - if d == nil { - return nil - } - return d.UserID +// SetB sets the B field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor) SetB(b int) { + d.B = b + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColorFieldB) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetGroupID() *string { - if d == nil { - return nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - return d.GroupID + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetCreatedBy() *string { - if d == nil { - return nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return d.CreatedBy + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetUpdatedBy() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor) String() string { if d == nil { - return nil + return "" } - return d.UpdatedBy + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetActions() *PdfAnnotationActions { - if d == nil { - return nil - } - return d.Actions +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeaderFieldLength = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeaderFieldExtension = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeaderFieldOffset = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader struct { + Length float64 `json:"length" url:"length"` + Extension *float64 `json:"extension,omitempty" url:"extension,omitempty"` + Offset *float64 `json:"offset,omitempty" url:"offset,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader) GetLength() float64 { if d == nil { - return nil + return 0 } - return d.Color + return d.Length } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetOpacity() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader) GetExtension() *float64 { if d == nil { - return 0 + return nil } - return d.Opacity + return d.Extension } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetQuadPoints() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader) GetOffset() *float64 { if d == nil { return nil } - return d.QuadPoints + return d.Offset } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetRef sets the Ref field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef) { - d.Ref = ref - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldRef) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldPageObjectNumber) -} - -// SetIndex sets the Index field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldIndex) -} - -// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQuality) { - d.IdentityQuality = identityQuality - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldIdentityQuality) -} - -// SetNm sets the Nm field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetNm(nm *string) { - d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldNm) -} - -// SetFlags sets the Flags field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) { - d.Flags = flags - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldFlags) -} - -// SetRect sets the Rect field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) { - d.Rect = rect - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldRect) -} - -// SetContents sets the Contents field and marks it as non-optional; +// SetLength sets the Length field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetContents(contents *string) { - d.Contents = contents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldContents) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader) SetLength(length float64) { + d.Length = length + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeaderFieldLength) } -// SetSubject sets the Subject field and marks it as non-optional; +// SetExtension sets the Extension field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetSubject(subject *string) { - d.Subject = subject - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldSubject) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader) SetExtension(extension *float64) { + d.Extension = extension + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeaderFieldExtension) } -// SetAuthor sets the Author field and marks it as non-optional; +// SetOffset sets the Offset field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetAuthor(author *string) { - d.Author = author - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldAuthor) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader) SetOffset(offset *float64) { + d.Offset = offset + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeaderFieldOffset) } -// SetCreated sets the Created field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetCreated(created *time.Time) { - d.Created = created - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldCreated) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -// SetModified sets the Modified field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetModified(modified *time.Time) { - d.Modified = modified - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldModified) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -// SetBlendMode sets the BlendMode field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode) { - d.BlendMode = blendMode - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldBlendMode) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -// SetInReplyTo sets the InReplyTo field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo) { - d.InReplyTo = inReplyTo - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldInReplyTo) -} +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsFieldStart = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsFieldEnd = big.NewInt(1 << 1) +) -// SetReplyType sets the ReplyType field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType) { - d.ReplyType = replyType - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldReplyType) -} +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings struct { + Start DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart `json:"start" url:"start"` + End DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd `json:"end" url:"end"` -// SetUserID sets the UserID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetUserID(userID *string) { - d.UserID = userID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldUserID) -} + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` -// SetGroupID sets the GroupID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetGroupID(groupID *string) { - d.GroupID = groupID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldGroupID) + extraProperties map[string]interface{} + rawJSON json.RawMessage } -// SetCreatedBy sets the CreatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetCreatedBy(createdBy *string) { - d.CreatedBy = createdBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldCreatedBy) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings) GetStart() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart { + if d == nil { + return "" + } + return d.Start } -// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetUpdatedBy(updatedBy *string) { - d.UpdatedBy = updatedBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldUpdatedBy) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings) GetEnd() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd { + if d == nil { + return "" + } + return d.End } -// SetActions sets the Actions field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetActions(actions *PdfAnnotationActions) { - d.Actions = actions - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldActions) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties } -// SetColor sets the Color field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetColor(color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) { - d.Color = color - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldColor) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) } -// SetOpacity sets the Opacity field and marks it as non-optional; +// SetStart sets the Start field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetOpacity(opacity float64) { - d.Opacity = opacity - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldOpacity) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings) SetStart(start DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart) { + d.Start = start + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsFieldStart) } -// SetQuadPoints sets the QuadPoints field and marks it as non-optional; +// SetEnd sets the End field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) SetQuadPoints(quadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem) { - d.QuadPoints = quadPoints - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFieldQuadPoints) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings) SetEnd(end DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd) { + d.End = end + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsFieldEnd) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) UnmarshalJSON(data []byte) error { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight - var unmarshaler = struct { - embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` - }{ - embed: embed(*d), - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight(unmarshaler.embed) - d.Created = unmarshaler.Created.TimePtr() - d.Modified = unmarshaler.Modified.TimePtr() + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -71246,22 +85950,18 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) Unma return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings var marshaler = struct { embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), - Created: internal.NewOptionalDateTime(d.Created), - Modified: internal.NewOptionalDateTime(d.Modified), + embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings) String() string { if d == nil { return "" } @@ -71276,151 +85976,163 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight) Stri return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode = "normal" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode = "multiply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode = "screen" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode = "overlay" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode = "darken" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode = "lighten" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode = "color-dodge" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode = "color-burn" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode = "hard-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode = "soft-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode = "difference" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode = "exclusion" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode = "hue" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode = "saturation" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode = "color" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode = "luminosity" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndNone DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd = "none" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndSquare DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd = "square" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndCircle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd = "circle" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndDiamond DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd = "diamond" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndOpenArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd = "open-arrow" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndClosedArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd = "closed-arrow" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndButt DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd = "butt" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndROpenArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd = "r-open-arrow" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndRClosedArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd = "r-closed-arrow" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndSlash DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd = "slash" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd, error) { switch s { - case "normal": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeNormal, nil - case "multiply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeMultiply, nil - case "screen": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeScreen, nil - case "overlay": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeOverlay, nil - case "darken": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeDarken, nil - case "lighten": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeLighten, nil - case "color-dodge": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeColorDodge, nil - case "color-burn": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeColorBurn, nil - case "hard-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeHardLight, nil - case "soft-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeSoftLight, nil - case "difference": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeDifference, nil - case "exclusion": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeExclusion, nil - case "hue": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeHue, nil - case "saturation": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeSaturation, nil - case "color": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeColor, nil - case "luminosity": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendModeLuminosity, nil + case "none": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndNone, nil + case "square": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndSquare, nil + case "circle": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndCircle, nil + case "diamond": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndDiamond, nil + case "open-arrow": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndOpenArrow, nil + case "closed-arrow": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndClosedArrow, nil + case "butt": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndButt, nil + case "r-open-arrow": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndROpenArrow, nil + case "r-closed-arrow": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndRClosedArrow, nil + case "slash": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndSlash, nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd { return &d } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColorFieldR = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColorFieldG = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColorFieldB = big.NewInt(1 << 2) -) +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart string -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor struct { - R int `json:"r" url:"r"` - G int `json:"g" url:"g"` - B int `json:"b" url:"b"` +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartNone DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart = "none" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartSquare DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart = "square" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartCircle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart = "circle" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartDiamond DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart = "diamond" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartOpenArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart = "open-arrow" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartClosedArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart = "closed-arrow" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartButt DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart = "butt" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartROpenArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart = "r-open-arrow" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartRClosedArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart = "r-closed-arrow" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartSlash DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart = "slash" +) - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart, error) { + switch s { + case "none": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartNone, nil + case "square": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartSquare, nil + case "circle": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartCircle, nil + case "diamond": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartDiamond, nil + case "open-arrow": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartOpenArrow, nil + case "closed-arrow": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartClosedArrow, nil + case "butt": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartButt, nil + case "r-open-arrow": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartROpenArrow, nil + case "r-closed-arrow": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartRClosedArrow, nil + case "slash": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartSlash, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart + return "", fmt.Errorf("%s is not a valid %T", s, t) +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart { + return &d } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) GetR() int { - if d == nil { - return 0 - } - return d.R +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsFieldStart = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsFieldEnd = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints struct { + Start *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart `json:"start" url:"start"` + End *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd `json:"end" url:"end"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) GetG() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints) GetStart() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart { if d == nil { - return 0 + return nil } - return d.G + return d.Start } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) GetB() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints) GetEnd() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd { if d == nil { - return 0 + return nil } - return d.B + return d.End } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetR sets the R field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) SetR(r int) { - d.R = r - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColorFieldR) -} - -// SetG sets the G field and marks it as non-optional; +// SetStart sets the Start field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) SetG(g int) { - d.G = g - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColorFieldG) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints) SetStart(start *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart) { + d.Start = start + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsFieldStart) } -// SetB sets the B field and marks it as non-optional; +// SetEnd sets the End field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) SetB(b int) { - d.B = b - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColorFieldB) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints) SetEnd(end *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd) { + d.End = end + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsFieldEnd) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -71430,8 +86142,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints var marshaler = struct { embed }{ @@ -71441,7 +86153,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints) String() string { if d == nil { return "" } @@ -71457,29 +86169,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor) } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldInvisible = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldHidden = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldPrint = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldNoZoom = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldNoRotate = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldNoView = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldReadOnly = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldLocked = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldToggleNoView = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldLockedContents = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEndFieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEndFieldY = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags struct { - Invisible bool `json:"invisible" url:"invisible"` - Hidden bool `json:"hidden" url:"hidden"` - Print bool `json:"print" url:"print"` - NoZoom bool `json:"noZoom" url:"noZoom"` - NoRotate bool `json:"noRotate" url:"noRotate"` - NoView bool `json:"noView" url:"noView"` - ReadOnly bool `json:"readOnly" url:"readOnly"` - Locked bool `json:"locked" url:"locked"` - ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` - LockedContents bool `json:"lockedContents" url:"lockedContents"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -71488,167 +86184,155 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags stru rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) GetInvisible() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd) GetX() float64 { if d == nil { - return false + return 0 } - return d.Invisible + return d.X } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) GetHidden() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd) GetY() float64 { if d == nil { - return false + return 0 } - return d.Hidden + return d.Y } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) GetPrint() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd) GetExtraProperties() map[string]interface{} { if d == nil { - return false + return nil } - return d.Print + return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) GetNoZoom() bool { - if d == nil { - return false +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.NoZoom + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) GetNoRotate() bool { - if d == nil { - return false - } - return d.NoRotate +// SetX sets the X field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEndFieldX) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) GetNoView() bool { - if d == nil { - return false +// SetY sets the Y field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEndFieldY) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - return d.NoView + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) GetReadOnly() bool { - if d == nil { - return false +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return d.ReadOnly + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) GetLocked() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd) String() string { if d == nil { - return false + return "" } - return d.Locked + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) GetToggleNoView() bool { +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStartFieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStartFieldY = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart) GetX() float64 { if d == nil { - return false + return 0 } - return d.ToggleNoView + return d.X } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) GetLockedContents() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart) GetY() float64 { if d == nil { - return false + return 0 } - return d.LockedContents + return d.Y } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetInvisible sets the Invisible field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) SetInvisible(invisible bool) { - d.Invisible = invisible - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldInvisible) -} - -// SetHidden sets the Hidden field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) SetHidden(hidden bool) { - d.Hidden = hidden - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldHidden) -} - -// SetPrint sets the Print field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) SetPrint(print bool) { - d.Print = print - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldPrint) -} - -// SetNoZoom sets the NoZoom field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) SetNoZoom(noZoom bool) { - d.NoZoom = noZoom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldNoZoom) -} - -// SetNoRotate sets the NoRotate field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) SetNoRotate(noRotate bool) { - d.NoRotate = noRotate - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldNoRotate) -} - -// SetNoView sets the NoView field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) SetNoView(noView bool) { - d.NoView = noView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldNoView) -} - -// SetReadOnly sets the ReadOnly field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) SetReadOnly(readOnly bool) { - d.ReadOnly = readOnly - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldReadOnly) -} - -// SetLocked sets the Locked field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) SetLocked(locked bool) { - d.Locked = locked - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldLocked) -} - -// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) SetToggleNoView(toggleNoView bool) { - d.ToggleNoView = toggleNoView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldToggleNoView) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStartFieldX) } -// SetLockedContents sets the LockedContents field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) SetLockedContents(lockedContents bool) { - d.LockedContents = lockedContents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlagsFieldLockedContents) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStartFieldY) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -71658,8 +86342,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart var marshaler = struct { embed }{ @@ -71669,7 +86353,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart) String() string { if d == nil { return "" } @@ -71684,112 +86368,90 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags) return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQuality string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQuality = "durable" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQuality = "weak" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQuality, error) { - switch s { - case "durable": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQualityDurable, nil - case "weak": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQualityWeak, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQuality - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQuality { - return &d -} - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo struct { - Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasure struct { + Subtype string + Rl *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl + Geo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureGeo + Unknown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureUnknown rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo) GetKind() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasure) GetSubtype() string { if d == nil { return "" } - return d.Kind + return d.Subtype } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasure) GetRl() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl { if d == nil { return nil } - return d.ObjectNumber + return d.Rl } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasure) GetGeo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureGeo { if d == nil { return nil } - return d.Nm + return d.Geo } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasure) GetUnknown() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureUnknown { if d == nil { return nil } - return d.Index + return d.Unknown } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo) UnmarshalJSON(data []byte) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasure) UnmarshalJSON(data []byte) error { var unmarshaler struct { - Kind string `json:"kind"` + Subtype string `json:"subtype"` } if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) + d.Subtype = unmarshaler.Subtype + if unmarshaler.Subtype == "" { + return fmt.Errorf("%T did not include discriminant subtype", d) } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber) + switch unmarshaler.Subtype { + case "RL": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl) if err := json.Unmarshal(data, &value); err != nil { return err } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm) + d.Rl = value + case "GEO": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureGeo) if err := json.Unmarshal(data, &value); err != nil { return err } - d.Nm = value - case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) + d.Geo = value + case "unknown": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureUnknown) if err := json.Unmarshal(data, &value); err != nil { return err } - d.Index = value + d.Unknown = value } d.rawJSON = json.RawMessage(data) return nil } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasure) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + if d.Rl != nil { + return internal.MarshalJSONWithExtraProperty(d.Rl, "subtype", "RL") } - if d.Nm != nil { - return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + if d.Geo != nil { + return internal.MarshalJSONWithExtraProperty(d.Geo, "subtype", "GEO") } - if d.Index != nil { - return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + if d.Unknown != nil { + return internal.MarshalJSONWithExtraProperty(d.Unknown, "subtype", "unknown") } if len(d.rawJSON) > 0 { return d.rawJSON, nil @@ -71797,58 +86459,58 @@ func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReply return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) error +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureVisitor interface { + VisitRl(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl) error + VisitGeo(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureGeo) error + VisitUnknown(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureUnknown) error } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasure) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureVisitor) error { + if d.Rl != nil { + return visitor.VisitRl(d.Rl) } - if d.Nm != nil { - return visitor.VisitNm(d.Nm) + if d.Geo != nil { + return visitor.VisitGeo(d.Geo) } - if d.Index != nil { - return visitor.VisitIndex(d.Index) + if d.Unknown != nil { + return visitor.VisitUnknown(d.Unknown) } return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo) validate() error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasure) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") + if d.Rl != nil { + fields = append(fields, "RL") } - if d.Nm != nil { - fields = append(fields, "nm") + if d.Geo != nil { + fields = append(fields, "GEO") } - if d.Index != nil { - fields = append(fields, "index") + if d.Unknown != nil { + fields = append(fields, "unknown") } if len(fields) == 0 { - if d.Kind != "" { + if d.Subtype != "" { if len(d.rawJSON) > 0 { return nil } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Subtype) } return fmt.Errorf("type %T is empty", d) } if len(fields) > 1 { return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) } - if d.Kind != "" { + if d.Subtype != "" { field := fields[0] - if d.Kind != field { + if d.Subtype != field { return fmt.Errorf( "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", d, - d.Kind, + d.Subtype, d, ) } @@ -71856,16 +86518,93 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInRepl return nil } +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureGeo struct { + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureGeo) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureGeo) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureGeo) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureGeo + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureGeo(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureGeo) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureGeo + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureGeo) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlFieldRatio = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlFieldX = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlFieldY = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlFieldDistance = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlFieldArea = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlFieldAngle = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlFieldSlope = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlFieldOrigin = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlFieldCyx = big.NewInt(1 << 8) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl struct { + Ratio *string `json:"ratio,omitempty" url:"ratio,omitempty"` + X []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem `json:"x" url:"x"` + Y []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem `json:"y,omitempty" url:"y,omitempty"` + Distance []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem `json:"distance" url:"distance"` + Area []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem `json:"area" url:"area"` + Angle []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem `json:"angle,omitempty" url:"angle,omitempty"` + Slope []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem `json:"slope,omitempty" url:"slope,omitempty"` + Origin *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin `json:"origin,omitempty" url:"origin,omitempty"` + Cyx *float64 `json:"cyx,omitempty" url:"cyx,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -71874,69 +86613,153 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToI rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl) GetRatio() *string { if d == nil { - return 0 + return nil } - return d.PageObjectNumber + return d.Ratio } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl) GetX() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem { if d == nil { - return 0 + return nil } - return d.Index + return d.X } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl) GetY() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem { if d == nil { return nil } - return d.Revision + return d.Y } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl) GetDistance() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem { + if d == nil { + return nil + } + return d.Distance +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl) GetArea() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem { + if d == nil { + return nil + } + return d.Area +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl) GetAngle() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem { + if d == nil { + return nil + } + return d.Angle +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl) GetSlope() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem { + if d == nil { + return nil + } + return d.Slope +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl) GetOrigin() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin { + if d == nil { + return nil + } + return d.Origin +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl) GetCyx() *float64 { + if d == nil { + return nil + } + return d.Cyx +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetRatio sets the Ratio field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl) SetRatio(ratio *string) { + d.Ratio = ratio + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlFieldRatio) +} + +// SetX sets the X field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl) SetX(x []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlFieldX) +} + +// SetY sets the Y field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl) SetY(y []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlFieldY) +} + +// SetDistance sets the Distance field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl) SetDistance(distance []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem) { + d.Distance = distance + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlFieldDistance) +} + +// SetArea sets the Area field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl) SetArea(area []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem) { + d.Area = area + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlFieldArea) +} + +// SetAngle sets the Angle field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl) SetAngle(angle []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem) { + d.Angle = angle + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlFieldAngle) +} + +// SetSlope sets the Slope field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl) SetSlope(slope []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem) { + d.Slope = slope + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlFieldSlope) } -// SetIndex sets the Index field and marks it as non-optional; +// SetOrigin sets the Origin field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexFieldIndex) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl) SetOrigin(origin *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin) { + d.Origin = origin + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlFieldOrigin) } -// SetRevision sets the Revision field and marks it as non-optional; +// SetCyx sets the Cyx field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision) { - d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexFieldRevision) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl) SetCyx(cyx *float64) { + d.Cyx = cyx + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlFieldCyx) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -71946,8 +86769,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInRepl return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl var marshaler = struct { embed }{ @@ -71957,7 +86780,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInRepl return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl) String() string { if d == nil { return "" } @@ -71973,15 +86796,29 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInRepl } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFieldLabelPosition = big.NewInt(1 << 9) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -71990,69 +86827,167 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToI rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem) GetUnit() string { if d == nil { return "" } - return d.DocSessionID + return d.Unit } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem) GetConversion() *float64 { if d == nil { - return 0 + return nil } - return d.PageObjectNumber + return d.Conversion } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision) GetGeneration() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem) GetFraction() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFraction { if d == nil { - return 0 + return nil } - return d.Generation + return d.Fraction } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem) GetPrecision() *int { + if d == nil { + return nil + } + return d.Precision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem) GetFixed() *bool { + if d == nil { + return nil + } + return d.Fixed +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem) GetThousands() *string { + if d == nil { + return nil + } + return d.Thousands +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem) GetDecimal() *string { + if d == nil { + return nil + } + return d.Decimal +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem) GetPrefixSpacing() *string { + if d == nil { + return nil + } + return d.PrefixSpacing +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem) GetSuffixSpacing() *string { + if d == nil { + return nil + } + return d.SuffixSpacing +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem) GetLabelPosition() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemLabelPosition { + if d == nil { + return nil + } + return d.LabelPosition +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevisionFieldDocSessionID) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFieldUnit) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevisionFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFieldConversion) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetFraction sets the Fraction field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevisionFieldGeneration) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem) SetFraction(fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFieldFraction) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFieldPrecision) +} + +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem) SetLabelPosition(labelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFieldLabelPosition) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -72062,8 +86997,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInRepl return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem var marshaler = struct { embed }{ @@ -72073,7 +87008,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInRepl return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem) String() string { if d == nil { return "" } @@ -72088,14 +87023,80 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInRepl return fmt.Sprintf("%#v", d) } +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFraction string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFractionDecimal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFraction = "decimal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFractionFraction DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFraction = "fraction" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFractionRound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFraction = "round" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFractionTruncate DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFraction = "truncate" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFractionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFraction, error) { + switch s { + case "decimal": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFractionDecimal, nil + case "fraction": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFractionFraction, nil + case "round": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFractionRound, nil + case "truncate": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFractionTruncate, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFraction) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFraction { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemLabelPosition string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemLabelPositionSuffix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemLabelPosition = "suffix" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemLabelPositionPrefix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemLabelPosition = "prefix" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemLabelPositionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemLabelPosition, error) { + switch s { + case "suffix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemLabelPositionPrefix, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemLabelPosition) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemLabelPosition { + return &d +} + var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNmFieldNm = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFieldLabelPosition = big.NewInt(1 << 9) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -72104,55 +87105,167 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToN rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem) GetUnit() string { if d == nil { - return 0 + return "" } - return d.PageObjectNumber + return d.Unit } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm) GetNm() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem) GetConversion() *float64 { if d == nil { - return "" + return nil } - return d.Nm + return d.Conversion } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem) GetFraction() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFraction { + if d == nil { + return nil + } + return d.Fraction +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem) GetPrecision() *int { + if d == nil { + return nil + } + return d.Precision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem) GetFixed() *bool { + if d == nil { + return nil + } + return d.Fixed +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem) GetThousands() *string { + if d == nil { + return nil + } + return d.Thousands +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem) GetDecimal() *string { + if d == nil { + return nil + } + return d.Decimal +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem) GetPrefixSpacing() *string { + if d == nil { + return nil + } + return d.PrefixSpacing +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem) GetSuffixSpacing() *string { + if d == nil { + return nil + } + return d.SuffixSpacing +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem) GetLabelPosition() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemLabelPosition { + if d == nil { + return nil + } + return d.LabelPosition +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNmFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFieldUnit) } -// SetNm sets the Nm field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNmFieldNm) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFieldConversion) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm +// SetFraction sets the Fraction field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem) SetFraction(fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFieldFraction) +} + +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFieldPrecision) +} + +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem) SetLabelPosition(labelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFieldLabelPosition) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -72162,8 +87275,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInRepl return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem var marshaler = struct { embed }{ @@ -72173,7 +87286,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInRepl return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem) String() string { if d == nil { return "" } @@ -72188,14 +87301,80 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInRepl return fmt.Sprintf("%#v", d) } +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFraction string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFractionDecimal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFraction = "decimal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFractionFraction DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFraction = "fraction" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFractionRound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFraction = "round" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFractionTruncate DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFraction = "truncate" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFractionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFraction, error) { + switch s { + case "decimal": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFractionDecimal, nil + case "fraction": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFractionFraction, nil + case "round": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFractionRound, nil + case "truncate": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFractionTruncate, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFraction) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFraction { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemLabelPosition string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemLabelPositionSuffix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemLabelPosition = "suffix" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemLabelPositionPrefix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemLabelPosition = "prefix" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemLabelPositionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemLabelPosition, error) { + switch s { + case "suffix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemLabelPositionPrefix, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemLabelPosition) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemLabelPosition { + return &d +} + var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFieldLabelPosition = big.NewInt(1 << 9) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -72204,55 +87383,167 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToO rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem) GetUnit() string { if d == nil { - return 0 + return "" } - return d.PageObjectNumber + return d.Unit } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem) GetConversion() *float64 { if d == nil { - return 0 + return nil } - return d.AnnotObjectNumber + return d.Conversion } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem) GetFraction() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFraction { + if d == nil { + return nil + } + return d.Fraction +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem) GetPrecision() *int { + if d == nil { + return nil + } + return d.Precision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem) GetFixed() *bool { + if d == nil { + return nil + } + return d.Fixed +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem) GetThousands() *string { + if d == nil { + return nil + } + return d.Thousands +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem) GetDecimal() *string { + if d == nil { + return nil + } + return d.Decimal +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem) GetPrefixSpacing() *string { + if d == nil { + return nil + } + return d.PrefixSpacing +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem) GetSuffixSpacing() *string { + if d == nil { + return nil + } + return d.SuffixSpacing +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem) GetLabelPosition() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemLabelPosition { + if d == nil { + return nil + } + return d.LabelPosition +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumberFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFieldUnit) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumberFieldAnnotObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFieldConversion) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber +// SetFraction sets the Fraction field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem) SetFraction(fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFieldFraction) +} + +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFieldPrecision) +} + +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem) SetLabelPosition(labelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFieldLabelPosition) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -72262,8 +87553,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInRepl return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem var marshaler = struct { embed }{ @@ -72273,7 +87564,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInRepl return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem) String() string { if d == nil { return "" } @@ -72288,18 +87579,64 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInRepl return fmt.Sprintf("%#v", d) } +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFraction string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFractionDecimal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFraction = "decimal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFractionFraction DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFraction = "fraction" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFractionRound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFraction = "round" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFractionTruncate DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFraction = "truncate" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFractionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFraction, error) { + switch s { + case "decimal": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFractionDecimal, nil + case "fraction": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFractionFraction, nil + case "round": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFractionRound, nil + case "truncate": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFractionTruncate, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFraction) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFraction { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemLabelPosition string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemLabelPositionSuffix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemLabelPosition = "suffix" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemLabelPositionPrefix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemLabelPosition = "prefix" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemLabelPositionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemLabelPosition, error) { + switch s { + case "suffix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemLabelPositionPrefix, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemLabelPosition) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemLabelPosition { + return &d +} + var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemFieldP1 = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemFieldP2 = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemFieldP3 = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemFieldP4 = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOriginFieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOriginFieldY = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem struct { - P1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1 `json:"p1" url:"p1"` - P2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2 `json:"p2" url:"p2"` - P3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3 `json:"p3" url:"p3"` - P4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4 `json:"p4" url:"p4"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -72308,83 +87645,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPoints rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem) GetP1() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1 { - if d == nil { - return nil - } - return d.P1 -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem) GetP2() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2 { - if d == nil { - return nil - } - return d.P2 -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem) GetP3() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin) GetX() float64 { if d == nil { - return nil + return 0 } - return d.P3 + return d.X } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem) GetP4() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin) GetY() float64 { if d == nil { - return nil + return 0 } - return d.P4 + return d.Y } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetP1 sets the P1 field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem) SetP1(p1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1) { - d.P1 = p1 - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemFieldP1) -} - -// SetP2 sets the P2 field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem) SetP2(p2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2) { - d.P2 = p2 - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemFieldP2) -} - -// SetP3 sets the P3 field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem) SetP3(p3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3) { - d.P3 = p3 - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemFieldP3) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOriginFieldX) } -// SetP4 sets the P4 field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem) SetP4(p4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4) { - d.P4 = p4 - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemFieldP4) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOriginFieldY) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -72394,8 +87703,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPo return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin var marshaler = struct { embed }{ @@ -72405,7 +87714,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPo return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin) String() string { if d == nil { return "" } @@ -72421,13 +87730,29 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPo } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1FieldX = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1FieldY = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFieldLabelPosition = big.NewInt(1 << 9) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -72436,55 +87761,167 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPoints rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1) GetX() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem) GetUnit() string { if d == nil { - return 0 + return "" } - return d.X + return d.Unit } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1) GetY() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem) GetConversion() *float64 { if d == nil { - return 0 + return nil } - return d.Y + return d.Conversion } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem) GetFraction() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFraction { + if d == nil { + return nil + } + return d.Fraction +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem) GetPrecision() *int { + if d == nil { + return nil + } + return d.Precision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem) GetFixed() *bool { + if d == nil { + return nil + } + return d.Fixed +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem) GetThousands() *string { + if d == nil { + return nil + } + return d.Thousands +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem) GetDecimal() *string { + if d == nil { + return nil + } + return d.Decimal +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem) GetPrefixSpacing() *string { + if d == nil { + return nil + } + return d.PrefixSpacing +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem) GetSuffixSpacing() *string { + if d == nil { + return nil + } + return d.SuffixSpacing +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem) GetLabelPosition() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemLabelPosition { + if d == nil { + return nil + } + return d.LabelPosition +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetX sets the X field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFieldUnit) +} + +// SetConversion sets the Conversion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFieldConversion) +} + +// SetFraction sets the Fraction field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem) SetFraction(fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFieldFraction) +} + +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFieldPrecision) +} + +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1) SetX(x float64) { - d.X = x - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1FieldX) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFieldPrefixSpacing) } -// SetY sets the Y field and marks it as non-optional; +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1) SetY(y float64) { - d.Y = y - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1FieldY) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFieldSuffixSpacing) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1 +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem) SetLabelPosition(labelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFieldLabelPosition) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -72494,8 +87931,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPo return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1 +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem var marshaler = struct { embed }{ @@ -72505,7 +87942,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPo return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem) String() string { if d == nil { return "" } @@ -72520,14 +87957,80 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPo return fmt.Sprintf("%#v", d) } +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFraction string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFractionDecimal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFraction = "decimal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFractionFraction DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFraction = "fraction" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFractionRound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFraction = "round" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFractionTruncate DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFraction = "truncate" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFractionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFraction, error) { + switch s { + case "decimal": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFractionDecimal, nil + case "fraction": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFractionFraction, nil + case "round": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFractionRound, nil + case "truncate": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFractionTruncate, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFraction) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFraction { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemLabelPosition string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemLabelPositionSuffix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemLabelPosition = "suffix" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemLabelPositionPrefix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemLabelPosition = "prefix" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemLabelPositionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemLabelPosition, error) { + switch s { + case "suffix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemLabelPositionPrefix, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemLabelPosition) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemLabelPosition { + return &d +} + var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2FieldX = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2FieldY = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFieldLabelPosition = big.NewInt(1 << 9) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -72536,55 +88039,167 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPoints rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2) GetX() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem) GetUnit() string { if d == nil { - return 0 + return "" } - return d.X + return d.Unit } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2) GetY() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem) GetConversion() *float64 { if d == nil { - return 0 + return nil } - return d.Y + return d.Conversion } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem) GetFraction() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFraction { + if d == nil { + return nil + } + return d.Fraction +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem) GetPrecision() *int { + if d == nil { + return nil + } + return d.Precision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem) GetFixed() *bool { + if d == nil { + return nil + } + return d.Fixed +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem) GetThousands() *string { + if d == nil { + return nil + } + return d.Thousands +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem) GetDecimal() *string { + if d == nil { + return nil + } + return d.Decimal +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem) GetPrefixSpacing() *string { + if d == nil { + return nil + } + return d.PrefixSpacing +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem) GetSuffixSpacing() *string { + if d == nil { + return nil + } + return d.SuffixSpacing +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem) GetLabelPosition() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemLabelPosition { + if d == nil { + return nil + } + return d.LabelPosition +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetX sets the X field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2) SetX(x float64) { - d.X = x - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2FieldX) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFieldUnit) } -// SetY sets the Y field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2) SetY(y float64) { - d.Y = y - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2FieldY) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFieldConversion) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2 +// SetFraction sets the Fraction field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem) SetFraction(fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFieldFraction) +} + +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFieldPrecision) +} + +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem) SetLabelPosition(labelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFieldLabelPosition) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -72594,8 +88209,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPo return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2 +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem var marshaler = struct { embed }{ @@ -72605,7 +88220,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPo return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem) String() string { if d == nil { return "" } @@ -72620,14 +88235,80 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPo return fmt.Sprintf("%#v", d) } +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFraction string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFractionDecimal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFraction = "decimal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFractionFraction DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFraction = "fraction" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFractionRound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFraction = "round" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFractionTruncate DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFraction = "truncate" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFractionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFraction, error) { + switch s { + case "decimal": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFractionDecimal, nil + case "fraction": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFractionFraction, nil + case "round": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFractionRound, nil + case "truncate": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFractionTruncate, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFraction) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFraction { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemLabelPosition string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemLabelPositionSuffix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemLabelPosition = "suffix" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemLabelPositionPrefix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemLabelPosition = "prefix" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemLabelPositionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemLabelPosition, error) { + switch s { + case "suffix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemLabelPositionPrefix, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemLabelPosition) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemLabelPosition { + return &d +} + var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3FieldX = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3FieldY = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFieldLabelPosition = big.NewInt(1 << 9) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -72636,55 +88317,167 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPoints rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3) GetX() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem) GetUnit() string { if d == nil { - return 0 + return "" } - return d.X + return d.Unit } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3) GetY() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem) GetConversion() *float64 { if d == nil { - return 0 + return nil } - return d.Y + return d.Conversion } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem) GetFraction() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFraction { + if d == nil { + return nil + } + return d.Fraction +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem) GetPrecision() *int { + if d == nil { + return nil + } + return d.Precision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem) GetFixed() *bool { + if d == nil { + return nil + } + return d.Fixed +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem) GetThousands() *string { + if d == nil { + return nil + } + return d.Thousands +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem) GetDecimal() *string { + if d == nil { + return nil + } + return d.Decimal +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem) GetPrefixSpacing() *string { + if d == nil { + return nil + } + return d.PrefixSpacing +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem) GetSuffixSpacing() *string { + if d == nil { + return nil + } + return d.SuffixSpacing +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem) GetLabelPosition() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemLabelPosition { + if d == nil { + return nil + } + return d.LabelPosition +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetX sets the X field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3) SetX(x float64) { - d.X = x - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3FieldX) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFieldUnit) } -// SetY sets the Y field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3) SetY(y float64) { - d.Y = y - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3FieldY) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFieldConversion) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3 +// SetFraction sets the Fraction field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem) SetFraction(fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFieldFraction) +} + +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFieldPrecision) +} + +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem) SetLabelPosition(labelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFieldLabelPosition) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -72694,8 +88487,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPo return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3 +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem var marshaler = struct { embed }{ @@ -72705,7 +88498,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPo return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem) String() string { if d == nil { return "" } @@ -72720,71 +88513,86 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPo return fmt.Sprintf("%#v", d) } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4FieldX = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4FieldY = big.NewInt(1 << 1) -) +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFraction string -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFractionDecimal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFraction = "decimal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFractionFraction DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFraction = "fraction" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFractionRound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFraction = "round" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFractionTruncate DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFraction = "truncate" +) - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFractionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFraction, error) { + switch s { + case "decimal": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFractionDecimal, nil + case "fraction": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFractionFraction, nil + case "round": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFractionRound, nil + case "truncate": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFractionTruncate, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFraction) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFraction { + return &d } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4) GetX() float64 { - if d == nil { - return 0 +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemLabelPosition string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemLabelPositionSuffix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemLabelPosition = "suffix" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemLabelPositionPrefix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemLabelPosition = "prefix" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemLabelPositionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemLabelPosition, error) { + switch s { + case "suffix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemLabelPositionPrefix, nil } - return d.X + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4) GetY() float64 { - if d == nil { - return 0 - } - return d.Y +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemLabelPosition) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemLabelPosition { + return &d } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4) GetExtraProperties() map[string]interface{} { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureUnknown struct { + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureUnknown) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureUnknown) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetX sets the X field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4) SetX(x float64) { - d.X = x - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4FieldX) -} - -// SetY sets the Y field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4) SetY(y float64) { - d.Y = y - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4FieldY) -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4 +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureUnknown) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureUnknown var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureUnknown(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -72794,8 +88602,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPo return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4 +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureUnknown) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureUnknown var marshaler = struct { embed }{ @@ -72805,7 +88613,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPo return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureUnknown) String() string { if d == nil { return "" } @@ -72821,13 +88629,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPo } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRectFieldRight = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRectFieldTop = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRectFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRectFieldTop = big.NewInt(1 << 3) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect struct { Left float64 `json:"left" url:"left"` Bottom float64 `json:"bottom" url:"bottom"` Right float64 `json:"right" url:"right"` @@ -72840,42 +88648,42 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect struc rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) GetLeft() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) GetLeft() float64 { if d == nil { return 0 } return d.Left } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) GetBottom() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) GetBottom() float64 { if d == nil { return 0 } return d.Bottom } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) GetRight() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) GetRight() float64 { if d == nil { return 0 } return d.Right } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) GetTop() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) GetTop() float64 { if d == nil { return 0 } return d.Top } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -72884,39 +88692,39 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) // SetLeft sets the Left field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) SetLeft(left float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) SetLeft(left float64) { d.Left = left - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRectFieldLeft) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRectFieldLeft) } // SetBottom sets the Bottom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) SetBottom(bottom float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) SetBottom(bottom float64) { d.Bottom = bottom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRectFieldBottom) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRectFieldBottom) } // SetRight sets the Right field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) SetRight(right float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) SetRight(right float64) { d.Right = right - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRectFieldRight) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRectFieldRight) } // SetTop sets the Top field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) SetTop(top float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) SetTop(top float64) { d.Top = top - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRectFieldTop) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRectFieldTop) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -72926,8 +88734,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect var marshaler = struct { embed }{ @@ -72937,7 +88745,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) String() string { if d == nil { return "" } @@ -72952,44 +88760,44 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect) return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef struct { Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef) GetKind() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber { if d == nil { return nil } return d.ObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex { if d == nil { return nil } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef) UnmarshalJSON(data []byte) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -73002,19 +88810,19 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef) U } switch unmarshaler.Kind { case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber) if err := json.Unmarshal(data, &value); err != nil { return err } d.ObjectNumber = value case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm) if err := json.Unmarshal(data, &value); err != nil { return err } d.Nm = value case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -73024,7 +88832,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef) U return nil } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -73043,13 +88851,13 @@ func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef) Ma return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) error +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) error } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefVisitor) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefVisitor) error { if d.ObjectNumber != nil { return visitor.VisitObjectNumber(d.ObjectNumber) } @@ -73062,7 +88870,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef) A return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef) validate() error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -73103,15 +88911,15 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef) v } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -73120,35 +88928,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex s rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision { if d == nil { return nil } return d.Revision } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -73157,32 +88965,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefInd // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) SetIndex(index int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) SetIndex(index int) { d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexFieldIndex) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexFieldIndex) } // SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision) { d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexFieldRevision) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexFieldRevision) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -73192,8 +89000,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefInd return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex var marshaler = struct { embed }{ @@ -73203,7 +89011,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefInd return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) String() string { if d == nil { return "" } @@ -73219,12 +89027,12 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefInd } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision struct { DocSessionID string `json:"docSessionId" url:"docSessionId"` PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Generation int `json:"generation" url:"generation"` @@ -73236,35 +89044,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRe rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision) GetDocSessionID() string { if d == nil { return "" } return d.DocSessionID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) GetGeneration() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision) GetGeneration() int { if d == nil { return 0 } return d.Generation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -73273,32 +89081,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefInd // SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) SetDocSessionID(docSessionID string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision) SetDocSessionID(docSessionID string) { d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevisionFieldDocSessionID) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevisionFieldDocSessionID) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevisionFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevisionFieldPageObjectNumber) } // SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) SetGeneration(generation int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision) SetGeneration(generation int) { d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevisionFieldGeneration) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevisionFieldGeneration) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -73308,8 +89116,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefInd return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision var marshaler = struct { embed }{ @@ -73319,7 +89127,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefInd return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision) String() string { if d == nil { return "" } @@ -73335,11 +89143,11 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefInd } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNmFieldNm = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Nm string `json:"nm" url:"nm"` @@ -73350,28 +89158,28 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm stru rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) GetNm() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm) GetNm() string { if d == nil { return "" } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -73380,25 +89188,25 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNmFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNmFieldPageObjectNumber) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) SetNm(nm string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm) SetNm(nm string) { d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNmFieldNm) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNmFieldNm) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -73408,8 +89216,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm var marshaler = struct { embed }{ @@ -73419,7 +89227,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm) String() string { if d == nil { return "" } @@ -73435,11 +89243,11 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm) } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` @@ -73450,28 +89258,28 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectN rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } return d.AnnotObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -73480,25 +89288,25 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObj // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumberFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumberFieldPageObjectNumber) } // SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumberFieldAnnotObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -73508,8 +89316,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObj return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber var marshaler = struct { embed }{ @@ -73519,7 +89327,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObj return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber) String() string { if d == nil { return "" } @@ -73534,88 +89342,74 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObj return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType = "reply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType = "group" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType = "reply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType = "group" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType, error) { switch s { case "reply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyTypeReply, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyTypeReply, nil case "group": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyTypeGroup, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyTypeGroup, nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType { return &d } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldRef = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldIndex = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldIdentityQuality = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldNm = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldFlags = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldRect = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldContents = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldSubject = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldAuthor = big.NewInt(1 << 9) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldCreated = big.NewInt(1 << 10) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldModified = big.NewInt(1 << 11) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldBlendMode = big.NewInt(1 << 12) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldInReplyTo = big.NewInt(1 << 13) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldReplyType = big.NewInt(1 << 14) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldUserID = big.NewInt(1 << 15) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldGroupID = big.NewInt(1 << 16) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldCreatedBy = big.NewInt(1 << 17) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldUpdatedBy = big.NewInt(1 << 18) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldActions = big.NewInt(1 << 19) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldColor = big.NewInt(1 << 20) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldOpacity = big.NewInt(1 << 21) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldStrokeWidth = big.NewInt(1 << 22) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldBorderStyle = big.NewInt(1 << 23) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldDashArray = big.NewInt(1 << 24) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldIntent = big.NewInt(1 << 25) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldInkList = big.NewInt(1 << 26) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldRotation = big.NewInt(1 << 27) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldRef = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldIndex = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldIdentityQuality = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldNm = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldFlags = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldRect = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldContents = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldSubject = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldAuthor = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldCreated = big.NewInt(1 << 10) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldModified = big.NewInt(1 << 11) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldBlendMode = big.NewInt(1 << 12) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldInReplyTo = big.NewInt(1 << 13) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldReplyType = big.NewInt(1 << 14) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldUserID = big.NewInt(1 << 15) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldGroupID = big.NewInt(1 << 16) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldCreatedBy = big.NewInt(1 << 17) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldUpdatedBy = big.NewInt(1 << 18) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldActions = big.NewInt(1 << 19) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldTarget = big.NewInt(1 << 20) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk struct { - Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef `json:"ref" url:"ref"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality `json:"identityQuality" url:"identityQuality"` - Nm *string `json:"nm,omitempty" url:"nm,omitempty"` - Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags `json:"flags" url:"flags"` - Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect `json:"rect" url:"rect"` - Contents *string `json:"contents,omitempty" url:"contents,omitempty"` - Subject *string `json:"subject,omitempty" url:"subject,omitempty"` - Author *string `json:"author,omitempty" url:"author,omitempty"` - Created *time.Time `json:"created,omitempty" url:"created,omitempty"` - Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` - BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode `json:"blendMode" url:"blendMode"` - InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` - ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` - UserID *string `json:"userId,omitempty" url:"userId,omitempty"` - GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` - CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` - Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` - Color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor `json:"color" url:"color"` - Opacity float64 `json:"opacity" url:"opacity"` - StrokeWidth float64 `json:"strokeWidth" url:"strokeWidth"` - BorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle `json:"borderStyle" url:"borderStyle"` - DashArray []float64 `json:"dashArray,omitempty" url:"dashArray,omitempty"` - Intent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntent `json:"intent,omitempty" url:"intent,omitempty"` - InkList [][]*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem `json:"inkList" url:"inkList"` - Rotation *float64 `json:"rotation,omitempty" url:"rotation,omitempty"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink struct { + Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef `json:"ref" url:"ref"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQuality `json:"identityQuality" url:"identityQuality"` + Nm *string `json:"nm,omitempty" url:"nm,omitempty"` + Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags `json:"flags" url:"flags"` + Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect `json:"rect" url:"rect"` + Contents *string `json:"contents,omitempty" url:"contents,omitempty"` + Subject *string `json:"subject,omitempty" url:"subject,omitempty"` + Author *string `json:"author,omitempty" url:"author,omitempty"` + Created *time.Time `json:"created,omitempty" url:"created,omitempty"` + Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` + BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode `json:"blendMode" url:"blendMode"` + InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` + ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` + UserID *string `json:"userId,omitempty" url:"userId,omitempty"` + GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` + CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` + Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` + Target *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget `json:"target,omitempty" url:"target,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -73624,427 +89418,913 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef { if d == nil { return nil } return d.Ref } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQuality { if d == nil { return "" } return d.IdentityQuality } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetNm() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetNm() *string { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags { if d == nil { return nil } return d.Flags } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect { if d == nil { return nil } return d.Rect } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetContents() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetContents() *string { if d == nil { return nil } return d.Contents } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetSubject() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetSubject() *string { if d == nil { return nil } return d.Subject } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetAuthor() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetAuthor() *string { if d == nil { return nil } return d.Author } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetCreated() *time.Time { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetCreated() *time.Time { if d == nil { return nil } return d.Created } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetModified() *time.Time { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetModified() *time.Time { if d == nil { return nil } return d.Modified } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode { if d == nil { return "" } return d.BlendMode } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo { + if d == nil { + return nil + } + return d.InReplyTo +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyType { + if d == nil { + return nil + } + return d.ReplyType +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetUserID() *string { + if d == nil { + return nil + } + return d.UserID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetGroupID() *string { + if d == nil { + return nil + } + return d.GroupID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetCreatedBy() *string { + if d == nil { + return nil + } + return d.CreatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetUpdatedBy() *string { + if d == nil { + return nil + } + return d.UpdatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetActions() *PdfAnnotationActions { + if d == nil { + return nil + } + return d.Actions +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetTarget() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget { if d == nil { return nil } - return d.InReplyTo + return d.Target +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRef sets the Ref field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef) { + d.Ref = ref + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldRef) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldPageObjectNumber) +} + +// SetIndex sets the Index field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldIndex) +} + +// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQuality) { + d.IdentityQuality = identityQuality + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldIdentityQuality) +} + +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetNm(nm *string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldNm) +} + +// SetFlags sets the Flags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) { + d.Flags = flags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldFlags) +} + +// SetRect sets the Rect field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) { + d.Rect = rect + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldRect) +} + +// SetContents sets the Contents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetContents(contents *string) { + d.Contents = contents + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldContents) +} + +// SetSubject sets the Subject field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetSubject(subject *string) { + d.Subject = subject + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldSubject) +} + +// SetAuthor sets the Author field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetAuthor(author *string) { + d.Author = author + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldAuthor) +} + +// SetCreated sets the Created field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetCreated(created *time.Time) { + d.Created = created + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldCreated) +} + +// SetModified sets the Modified field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetModified(modified *time.Time) { + d.Modified = modified + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldModified) +} + +// SetBlendMode sets the BlendMode field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode) { + d.BlendMode = blendMode + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldBlendMode) +} + +// SetInReplyTo sets the InReplyTo field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo) { + d.InReplyTo = inReplyTo + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldInReplyTo) +} + +// SetReplyType sets the ReplyType field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyType) { + d.ReplyType = replyType + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldReplyType) +} + +// SetUserID sets the UserID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetUserID(userID *string) { + d.UserID = userID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldUserID) +} + +// SetGroupID sets the GroupID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetGroupID(groupID *string) { + d.GroupID = groupID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldGroupID) +} + +// SetCreatedBy sets the CreatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetCreatedBy(createdBy *string) { + d.CreatedBy = createdBy + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldCreatedBy) +} + +// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetUpdatedBy(updatedBy *string) { + d.UpdatedBy = updatedBy + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldUpdatedBy) +} + +// SetActions sets the Actions field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetActions(actions *PdfAnnotationActions) { + d.Actions = actions + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldActions) +} + +// SetTarget sets the Target field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetTarget(target *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget) { + d.Target = target + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldTarget) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) UnmarshalJSON(data []byte) error { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink + var unmarshaler = struct { + embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(unmarshaler.embed) + d.Created = unmarshaler.Created.TimePtr() + d.Modified = unmarshaler.Modified.TimePtr() + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink + var marshaler = struct { + embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), + Created: internal.NewOptionalDateTime(d.Created), + Modified: internal.NewOptionalDateTime(d.Modified), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode = "normal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode = "multiply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode = "screen" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode = "overlay" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode = "darken" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode = "lighten" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode = "color-dodge" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode = "color-burn" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode = "hard-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode = "soft-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode = "difference" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode = "exclusion" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode = "hue" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode = "saturation" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode = "color" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode = "luminosity" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode, error) { + switch s { + case "normal": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeNormal, nil + case "multiply": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeMultiply, nil + case "screen": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeScreen, nil + case "overlay": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeOverlay, nil + case "darken": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeDarken, nil + case "lighten": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeLighten, nil + case "color-dodge": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeColorDodge, nil + case "color-burn": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeColorBurn, nil + case "hard-light": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeHardLight, nil + case "soft-light": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeSoftLight, nil + case "difference": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeDifference, nil + case "exclusion": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeExclusion, nil + case "hue": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeHue, nil + case "saturation": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeSaturation, nil + case "color": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeColor, nil + case "luminosity": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeLuminosity, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyType { - if d == nil { - return nil - } - return d.ReplyType +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode { + return &d } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetUserID() *string { - if d == nil { - return nil - } - return d.UserID -} +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldInvisible = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldHidden = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldPrint = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldNoZoom = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldNoRotate = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldNoView = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldReadOnly = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldLocked = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldToggleNoView = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldLockedContents = big.NewInt(1 << 9) +) -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetGroupID() *string { - if d == nil { - return nil - } - return d.GroupID -} +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags struct { + Invisible bool `json:"invisible" url:"invisible"` + Hidden bool `json:"hidden" url:"hidden"` + Print bool `json:"print" url:"print"` + NoZoom bool `json:"noZoom" url:"noZoom"` + NoRotate bool `json:"noRotate" url:"noRotate"` + NoView bool `json:"noView" url:"noView"` + ReadOnly bool `json:"readOnly" url:"readOnly"` + Locked bool `json:"locked" url:"locked"` + ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` + LockedContents bool `json:"lockedContents" url:"lockedContents"` -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetCreatedBy() *string { - if d == nil { - return nil - } - return d.CreatedBy + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetUpdatedBy() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) GetInvisible() bool { if d == nil { - return nil + return false } - return d.UpdatedBy + return d.Invisible } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetActions() *PdfAnnotationActions { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) GetHidden() bool { if d == nil { - return nil + return false } - return d.Actions + return d.Hidden } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) GetPrint() bool { if d == nil { - return nil + return false } - return d.Color + return d.Print } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetOpacity() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) GetNoZoom() bool { if d == nil { - return 0 + return false } - return d.Opacity + return d.NoZoom } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetStrokeWidth() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) GetNoRotate() bool { if d == nil { - return 0 + return false } - return d.StrokeWidth + return d.NoRotate } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetBorderStyle() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) GetNoView() bool { if d == nil { - return "" + return false } - return d.BorderStyle + return d.NoView } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetDashArray() []float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) GetReadOnly() bool { if d == nil { - return nil + return false } - return d.DashArray + return d.ReadOnly } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetIntent() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntent { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) GetLocked() bool { if d == nil { - return nil + return false } - return d.Intent + return d.Locked } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetInkList() [][]*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) GetToggleNoView() bool { if d == nil { - return nil + return false } - return d.InkList + return d.ToggleNoView } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetRotation() *float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) GetLockedContents() bool { if d == nil { - return nil + return false } - return d.Rotation + return d.LockedContents } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetRef sets the Ref field and marks it as non-optional; +// SetInvisible sets the Invisible field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef) { - d.Ref = ref - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldRef) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) SetInvisible(invisible bool) { + d.Invisible = invisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldInvisible) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetHidden sets the Hidden field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) SetHidden(hidden bool) { + d.Hidden = hidden + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldHidden) } -// SetIndex sets the Index field and marks it as non-optional; +// SetPrint sets the Print field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldIndex) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) SetPrint(print bool) { + d.Print = print + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldPrint) } -// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; +// SetNoZoom sets the NoZoom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality) { - d.IdentityQuality = identityQuality - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldIdentityQuality) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) SetNoZoom(noZoom bool) { + d.NoZoom = noZoom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldNoZoom) } -// SetNm sets the Nm field and marks it as non-optional; +// SetNoRotate sets the NoRotate field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetNm(nm *string) { - d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldNm) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) SetNoRotate(noRotate bool) { + d.NoRotate = noRotate + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldNoRotate) } -// SetFlags sets the Flags field and marks it as non-optional; +// SetNoView sets the NoView field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) { - d.Flags = flags - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldFlags) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) SetNoView(noView bool) { + d.NoView = noView + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldNoView) } -// SetRect sets the Rect field and marks it as non-optional; +// SetReadOnly sets the ReadOnly field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect) { - d.Rect = rect - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldRect) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldReadOnly) } -// SetContents sets the Contents field and marks it as non-optional; +// SetLocked sets the Locked field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetContents(contents *string) { - d.Contents = contents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldContents) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) SetLocked(locked bool) { + d.Locked = locked + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldLocked) } -// SetSubject sets the Subject field and marks it as non-optional; +// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetSubject(subject *string) { - d.Subject = subject - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldSubject) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) SetToggleNoView(toggleNoView bool) { + d.ToggleNoView = toggleNoView + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldToggleNoView) } -// SetAuthor sets the Author field and marks it as non-optional; +// SetLockedContents sets the LockedContents field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetAuthor(author *string) { - d.Author = author - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldAuthor) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) SetLockedContents(lockedContents bool) { + d.LockedContents = lockedContents + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldLockedContents) } -// SetCreated sets the Created field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetCreated(created *time.Time) { - d.Created = created - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldCreated) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -// SetModified sets the Modified field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetModified(modified *time.Time) { - d.Modified = modified - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldModified) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -// SetBlendMode sets the BlendMode field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode) { - d.BlendMode = blendMode - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldBlendMode) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -// SetInReplyTo sets the InReplyTo field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo) { - d.InReplyTo = inReplyTo - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldInReplyTo) +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQuality string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQuality = "durable" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQuality = "weak" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQuality, error) { + switch s { + case "durable": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQualityDurable, nil + case "weak": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQualityWeak, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQuality + return "", fmt.Errorf("%s is not a valid %T", s, t) } -// SetReplyType sets the ReplyType field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyType) { - d.ReplyType = replyType - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldReplyType) +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQuality { + return &d } -// SetUserID sets the UserID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetUserID(userID *string) { - d.UserID = userID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldUserID) +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex + + rawJSON json.RawMessage } -// SetGroupID sets the GroupID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetGroupID(groupID *string) { - d.GroupID = groupID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldGroupID) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo) GetKind() string { + if d == nil { + return "" + } + return d.Kind } -// SetCreatedBy sets the CreatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetCreatedBy(createdBy *string) { - d.CreatedBy = createdBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldCreatedBy) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber } -// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetUpdatedBy(updatedBy *string) { - d.UpdatedBy = updatedBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldUpdatedBy) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm { + if d == nil { + return nil + } + return d.Nm } -// SetActions sets the Actions field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetActions(actions *PdfAnnotationActions) { - d.Actions = actions - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldActions) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex { + if d == nil { + return nil + } + return d.Index } -// SetColor sets the Color field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetColor(color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor) { - d.Color = color - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldColor) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value + } + d.rawJSON = json.RawMessage(data) + return nil } -// SetOpacity sets the Opacity field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetOpacity(opacity float64) { - d.Opacity = opacity - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldOpacity) +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err + } + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Nm != nil { + return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + } + if d.Index != nil { + return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -// SetStrokeWidth sets the StrokeWidth field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetStrokeWidth(strokeWidth float64) { - d.StrokeWidth = strokeWidth - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldStrokeWidth) +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex) error } -// SetBorderStyle sets the BorderStyle field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetBorderStyle(borderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle) { - d.BorderStyle = borderStyle - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldBorderStyle) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) + } + if d.Nm != nil { + return visitor.VisitNm(d.Nm) + } + if d.Index != nil { + return visitor.VisitIndex(d.Index) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) } -// SetDashArray sets the DashArray field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetDashArray(dashArray []float64) { - d.DashArray = dashArray - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldDashArray) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Nm != nil { + fields = append(fields, "nm") + } + if d.Index != nil { + fields = append(fields, "index") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexFieldRevision = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision `json:"revision" url:"revision"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) } -// SetIntent sets the Intent field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetIntent(intent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntent) { - d.Intent = intent - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldIntent) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexFieldPageObjectNumber) } -// SetInkList sets the InkList field and marks it as non-optional; +// SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetInkList(inkList [][]*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem) { - d.InkList = inkList - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldInkList) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexFieldIndex) } -// SetRotation sets the Rotation field and marks it as non-optional; +// SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) SetRotation(rotation *float64) { - d.Rotation = rotation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFieldRotation) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexFieldRevision) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) UnmarshalJSON(data []byte) error { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk - var unmarshaler = struct { - embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` - }{ - embed: embed(*d), - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(unmarshaler.embed) - d.Created = unmarshaler.Created.TimePtr() - d.Modified = unmarshaler.Modified.TimePtr() + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -74054,22 +90334,18 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) UnmarshalJ return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex var marshaler = struct { embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), - Created: internal.NewOptionalDateTime(d.Created), - Modified: internal.NewOptionalDateTime(d.Modified), + embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex) String() string { if d == nil { return "" } @@ -74084,108 +90360,16 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk) String() s return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode = "normal" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode = "multiply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode = "screen" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode = "overlay" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode = "darken" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode = "lighten" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode = "color-dodge" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode = "color-burn" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode = "hard-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode = "soft-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode = "difference" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode = "exclusion" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode = "hue" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode = "saturation" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode = "color" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode = "luminosity" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode, error) { - switch s { - case "normal": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeNormal, nil - case "multiply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeMultiply, nil - case "screen": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeScreen, nil - case "overlay": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeOverlay, nil - case "darken": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeDarken, nil - case "lighten": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeLighten, nil - case "color-dodge": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeColorDodge, nil - case "color-burn": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeColorBurn, nil - case "hard-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeHardLight, nil - case "soft-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeSoftLight, nil - case "difference": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeDifference, nil - case "exclusion": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeExclusion, nil - case "hue": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeHue, nil - case "saturation": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeSaturation, nil - case "color": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeColor, nil - case "luminosity": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendModeLuminosity, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode { - return &d -} - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyleSolid DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle = "solid" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyleDashed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle = "dashed" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyleBeveled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle = "beveled" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyleInset DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle = "inset" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyleFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle, error) { - switch s { - case "solid": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyleSolid, nil - case "dashed": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyleDashed, nil - case "beveled": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyleBeveled, nil - case "inset": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyleInset, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle { - return &d -} - var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColorFieldR = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColorFieldG = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColorFieldB = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor struct { - R int `json:"r" url:"r"` - G int `json:"g" url:"g"` - B int `json:"b" url:"b"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -74194,69 +90378,69 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor) GetR() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision) GetDocSessionID() string { if d == nil { - return 0 + return "" } - return d.R + return d.DocSessionID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor) GetG() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } - return d.G + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor) GetB() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision) GetGeneration() int { if d == nil { return 0 } - return d.B + return d.Generation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetR sets the R field and marks it as non-optional; +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor) SetR(r int) { - d.R = r - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColorFieldR) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevisionFieldDocSessionID) } -// SetG sets the G field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor) SetG(g int) { - d.G = g - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColorFieldG) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevisionFieldPageObjectNumber) } -// SetB sets the B field and marks it as non-optional; +// SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor) SetB(b int) { - d.B = b - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColorFieldB) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevisionFieldGeneration) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -74266,8 +90450,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor) Unmar return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision var marshaler = struct { embed }{ @@ -74277,7 +90461,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor) Marsh return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision) String() string { if d == nil { return "" } @@ -74293,29 +90477,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor) Strin } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldInvisible = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldHidden = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldPrint = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldNoZoom = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldNoRotate = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldNoView = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldReadOnly = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldLocked = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldToggleNoView = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldLockedContents = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags struct { - Invisible bool `json:"invisible" url:"invisible"` - Hidden bool `json:"hidden" url:"hidden"` - Print bool `json:"print" url:"print"` - NoZoom bool `json:"noZoom" url:"noZoom"` - NoRotate bool `json:"noRotate" url:"noRotate"` - NoView bool `json:"noView" url:"noView"` - ReadOnly bool `json:"readOnly" url:"readOnly"` - Locked bool `json:"locked" url:"locked"` - ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` - LockedContents bool `json:"lockedContents" url:"lockedContents"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -74324,167 +90492,287 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) GetInvisible() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm) GetPageObjectNumber() int { if d == nil { - return false + return 0 } - return d.Invisible + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) GetHidden() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm) GetNm() string { if d == nil { - return false + return "" } - return d.Hidden + return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) GetPrint() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm) GetExtraProperties() map[string]interface{} { if d == nil { - return false + return nil } - return d.Print + return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) GetNoZoom() bool { - if d == nil { - return false +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.NoZoom + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) GetNoRotate() bool { - if d == nil { - return false - } - return d.NoRotate +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNmFieldPageObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) GetNoView() bool { - if d == nil { - return false +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNmFieldNm) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - return d.NoView + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) GetReadOnly() bool { - if d == nil { - return false +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return d.ReadOnly + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) GetLocked() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm) String() string { if d == nil { - return false + return "" } - return d.Locked + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) GetToggleNoView() bool { +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber) GetPageObjectNumber() int { if d == nil { - return false + return 0 } - return d.ToggleNoView + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) GetLockedContents() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber) GetAnnotObjectNumber() int { if d == nil { - return false + return 0 } - return d.LockedContents + return d.AnnotObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetInvisible sets the Invisible field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) SetInvisible(invisible bool) { - d.Invisible = invisible - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldInvisible) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumberFieldPageObjectNumber) } -// SetHidden sets the Hidden field and marks it as non-optional; +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) SetHidden(hidden bool) { - d.Hidden = hidden - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldHidden) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumberFieldAnnotObjectNumber) } -// SetPrint sets the Print field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) SetPrint(print bool) { - d.Print = print - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldPrint) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -// SetNoZoom sets the NoZoom field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) SetNoZoom(noZoom bool) { - d.NoZoom = noZoom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldNoZoom) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -// SetNoRotate sets the NoRotate field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) SetNoRotate(noRotate bool) { - d.NoRotate = noRotate - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldNoRotate) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -// SetNoView sets the NoView field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) SetNoView(noView bool) { - d.NoView = noView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldNoView) +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRectFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRectFieldTop = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect struct { + Left float64 `json:"left" url:"left"` + Bottom float64 `json:"bottom" url:"bottom"` + Right float64 `json:"right" url:"right"` + Top float64 `json:"top" url:"top"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -// SetReadOnly sets the ReadOnly field and marks it as non-optional; +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) GetLeft() float64 { + if d == nil { + return 0 + } + return d.Left +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) GetBottom() float64 { + if d == nil { + return 0 + } + return d.Bottom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) GetRight() float64 { + if d == nil { + return 0 + } + return d.Right +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) GetTop() float64 { + if d == nil { + return 0 + } + return d.Top +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetLeft sets the Left field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) SetReadOnly(readOnly bool) { - d.ReadOnly = readOnly - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldReadOnly) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRectFieldLeft) } -// SetLocked sets the Locked field and marks it as non-optional; +// SetBottom sets the Bottom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) SetLocked(locked bool) { - d.Locked = locked - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldLocked) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRectFieldBottom) } -// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// SetRight sets the Right field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) SetToggleNoView(toggleNoView bool) { - d.ToggleNoView = toggleNoView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldToggleNoView) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRectFieldRight) } -// SetLockedContents sets the LockedContents field and marks it as non-optional; +// SetTop sets the Top field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) SetLockedContents(lockedContents bool) { - d.LockedContents = lockedContents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlagsFieldLockedContents) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRectFieldTop) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -74494,8 +90782,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) Unmar return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect var marshaler = struct { embed }{ @@ -74505,7 +90793,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) Marsh return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) String() string { if d == nil { return "" } @@ -74520,66 +90808,44 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags) Strin return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality = "durable" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality = "weak" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality, error) { - switch s { - case "durable": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQualityDurable, nil - case "weak": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQualityWeak, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality { - return &d -} - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef struct { Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo) GetKind() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber { if d == nil { return nil } return d.ObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex { if d == nil { return nil } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo) UnmarshalJSON(data []byte) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -74592,19 +90858,19 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo) U } switch unmarshaler.Kind { case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber) if err := json.Unmarshal(data, &value); err != nil { return err } d.ObjectNumber = value case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm) if err := json.Unmarshal(data, &value); err != nil { return err } d.Nm = value case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -74614,7 +90880,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo) U return nil } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -74633,13 +90899,13 @@ func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo) Ma return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex) error +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) error } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToVisitor) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefVisitor) error { if d.ObjectNumber != nil { return visitor.VisitObjectNumber(d.ObjectNumber) } @@ -74652,7 +90918,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo) A return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo) validate() error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -74693,15 +90959,15 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo) v } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -74710,35 +90976,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex s rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision { if d == nil { return nil } return d.Revision } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -74747,32 +91013,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToInd // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex) SetIndex(index int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) SetIndex(index int) { d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexFieldIndex) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexFieldIndex) } // SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision) { d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexFieldRevision) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexFieldRevision) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -74782,8 +91048,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToInd return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex var marshaler = struct { embed }{ @@ -74793,7 +91059,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToInd return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) String() string { if d == nil { return "" } @@ -74809,12 +91075,12 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToInd } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision struct { DocSessionID string `json:"docSessionId" url:"docSessionId"` PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Generation int `json:"generation" url:"generation"` @@ -74826,35 +91092,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRe rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision) GetDocSessionID() string { if d == nil { return "" } return d.DocSessionID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision) GetGeneration() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision) GetGeneration() int { if d == nil { return 0 } return d.Generation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -74863,32 +91129,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToInd // SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision) SetDocSessionID(docSessionID string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision) SetDocSessionID(docSessionID string) { d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevisionFieldDocSessionID) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevisionFieldDocSessionID) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevisionFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevisionFieldPageObjectNumber) } // SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision) SetGeneration(generation int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision) SetGeneration(generation int) { d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevisionFieldGeneration) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevisionFieldGeneration) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -74898,8 +91164,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToInd return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision var marshaler = struct { embed }{ @@ -74909,7 +91175,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToInd return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision) String() string { if d == nil { return "" } @@ -74925,11 +91191,11 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToInd } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNmFieldNm = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Nm string `json:"nm" url:"nm"` @@ -74940,28 +91206,28 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm stru rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm) GetNm() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm) GetNm() string { if d == nil { return "" } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -74970,25 +91236,25 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm) // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNmFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNmFieldPageObjectNumber) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm) SetNm(nm string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm) SetNm(nm string) { d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNmFieldNm) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNmFieldNm) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -74998,8 +91264,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm) return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm var marshaler = struct { embed }{ @@ -75009,7 +91275,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm) String() string { if d == nil { return "" } @@ -75025,11 +91291,11 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm) } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` @@ -75040,28 +91306,28 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectN rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } return d.AnnotObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -75070,25 +91336,25 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObj // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumberFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumberFieldPageObjectNumber) } // SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumberFieldAnnotObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -75098,8 +91364,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObj return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber var marshaler = struct { embed }{ @@ -75109,7 +91375,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObj return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber) String() string { if d == nil { return "" } @@ -75118,20 +91384,286 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObj return value } } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyType = "reply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyType = "group" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyType, error) { + switch s { + case "reply": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyTypeReply, nil + case "group": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyTypeGroup, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget struct { + Kind string + Goto *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto + URI *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI + GotoRemote *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote + Launch *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch + Javascript *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript + Named *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed + Unsupported *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget) GetGoto() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto { + if d == nil { + return nil + } + return d.Goto +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget) GetURI() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI { + if d == nil { + return nil + } + return d.URI +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget) GetGotoRemote() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote { + if d == nil { + return nil + } + return d.GotoRemote +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget) GetLaunch() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch { + if d == nil { + return nil + } + return d.Launch +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget) GetJavascript() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript { + if d == nil { + return nil + } + return d.Javascript +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget) GetNamed() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed { + if d == nil { + return nil + } + return d.Named +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget) GetUnsupported() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported { + if d == nil { + return nil + } + return d.Unsupported +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "goto": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Goto = value + case "uri": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.URI = value + case "goto-remote": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.GotoRemote = value + case "launch": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Launch = value + case "javascript": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Javascript = value + case "named": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Named = value + case "unsupported": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Unsupported = value + } + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err + } + if d.Goto != nil { + return internal.MarshalJSONWithExtraProperty(d.Goto, "kind", "goto") + } + if d.URI != nil { + return internal.MarshalJSONWithExtraProperty(d.URI, "kind", "uri") + } + if d.GotoRemote != nil { + return internal.MarshalJSONWithExtraProperty(d.GotoRemote, "kind", "goto-remote") + } + if d.Launch != nil { + return internal.MarshalJSONWithExtraProperty(d.Launch, "kind", "launch") + } + if d.Javascript != nil { + return internal.MarshalJSONWithExtraProperty(d.Javascript, "kind", "javascript") + } + if d.Named != nil { + return internal.MarshalJSONWithExtraProperty(d.Named, "kind", "named") + } + if d.Unsupported != nil { + return internal.MarshalJSONWithExtraProperty(d.Unsupported, "kind", "unsupported") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetVisitor interface { + VisitGoto(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto) error + VisitURI(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI) error + VisitGotoRemote(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote) error + VisitLaunch(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch) error + VisitJavascript(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript) error + VisitNamed(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed) error + VisitUnsupported(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported) error +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetVisitor) error { + if d.Goto != nil { + return visitor.VisitGoto(d.Goto) + } + if d.URI != nil { + return visitor.VisitURI(d.URI) + } + if d.GotoRemote != nil { + return visitor.VisitGotoRemote(d.GotoRemote) + } + if d.Launch != nil { + return visitor.VisitLaunch(d.Launch) + } + if d.Javascript != nil { + return visitor.VisitJavascript(d.Javascript) + } + if d.Named != nil { + return visitor.VisitNamed(d.Named) + } + if d.Unsupported != nil { + return visitor.VisitUnsupported(d.Unsupported) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.Goto != nil { + fields = append(fields, "goto") + } + if d.URI != nil { + fields = append(fields, "uri") + } + if d.GotoRemote != nil { + fields = append(fields, "goto-remote") + } + if d.Launch != nil { + fields = append(fields, "launch") + } + if d.Javascript != nil { + fields = append(fields, "javascript") + } + if d.Named != nil { + fields = append(fields, "named") + } + if d.Unsupported != nil { + fields = append(fields, "unsupported") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItemFieldX = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItemFieldY = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoFieldDestination = big.NewInt(1 << 0) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto struct { + Destination *PdfDestination `json:"destination" url:"destination"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -75140,55 +91672,41 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem) GetX() float64 { - if d == nil { - return 0 - } - return d.X -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem) GetY() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto) GetDestination() *PdfDestination { if d == nil { - return 0 + return nil } - return d.Y + return d.Destination } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetX sets the X field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem) SetX(x float64) { - d.X = x - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItemFieldX) -} - -// SetY sets the Y field and marks it as non-optional; +// SetDestination sets the Destination field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem) SetY(y float64) { - d.Y = y - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItemFieldY) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto) SetDestination(destination *PdfDestination) { + d.Destination = destination + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoFieldDestination) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -75198,8 +91716,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemI return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto var marshaler = struct { embed }{ @@ -75209,7 +91727,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemI return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto) String() string { if d == nil { return "" } @@ -75224,37 +91742,12 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemI return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntent string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntentInkHighlight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntent = "ink-highlight" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntentFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntent, error) { - switch s { - case "ink-highlight": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntentInkHighlight, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntent - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntent) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntent { - return &d -} - var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRectFieldRight = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRectFieldTop = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemoteFieldFile = big.NewInt(1 << 0) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect struct { - Left float64 `json:"left" url:"left"` - Bottom float64 `json:"bottom" url:"bottom"` - Right float64 `json:"right" url:"right"` - Top float64 `json:"top" url:"top"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote struct { + File string `json:"file" url:"file"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -75263,83 +91756,41 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect) GetLeft() float64 { - if d == nil { - return 0 - } - return d.Left -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect) GetBottom() float64 { - if d == nil { - return 0 - } - return d.Bottom -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect) GetRight() float64 { - if d == nil { - return 0 - } - return d.Right -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect) GetTop() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote) GetFile() string { if d == nil { - return 0 + return "" } - return d.Top + return d.File } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetLeft sets the Left field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect) SetLeft(left float64) { - d.Left = left - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRectFieldLeft) -} - -// SetBottom sets the Bottom field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRectFieldBottom) -} - -// SetRight sets the Right field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect) SetRight(right float64) { - d.Right = right - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRectFieldRight) -} - -// SetTop sets the Top field and marks it as non-optional; +// SetFile sets the File field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRectFieldTop) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote) SetFile(file string) { + d.File = file + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemoteFieldFile) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -75349,8 +91800,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect) Unmars return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote var marshaler = struct { embed }{ @@ -75360,7 +91811,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect) Marsha return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote) String() string { if d == nil { return "" } @@ -75375,166 +91826,77 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect) String return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef struct { - Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex - - rawJSON json.RawMessage -} +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript struct { -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef) GetKind() string { - if d == nil { - return "" - } - return d.Kind -} + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber { - if d == nil { - return nil - } - return d.ObjectNumber + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.Nm + return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex { - if d == nil { - return nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.Index + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Nm = value - case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Index = value + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err } + d.extraProperties = extraProperties d.rawJSON = json.RawMessage(data) return nil } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Nm != nil { - return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") - } - if d.Index != nil { - return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil - } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) -} - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex) error -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) - } - if d.Nm != nil { - return visitor.VisitNm(d.Nm) - } - if d.Index != nil { - return visitor.VisitIndex(d.Index) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return fmt.Errorf("type %T does not define a non-empty union type", d) + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef) validate() error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript) String() string { if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Nm != nil { - fields = append(fields, "nm") - } - if d.Index != nil { - fields = append(fields, "index") + return "" } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value } - return fmt.Errorf("type %T is empty", d) } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } + if value, err := internal.StringifyJSON(d); err == nil { + return value } - return nil + return fmt.Sprintf("%#v", d) } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunchFieldPath = big.NewInt(1 << 0) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch struct { + Path string `json:"path" url:"path"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -75543,69 +91905,41 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex struct rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex) GetIndex() int { - if d == nil { - return 0 - } - return d.Index -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch) GetPath() string { if d == nil { - return nil + return "" } - return d.Revision + return d.Path } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexFieldPageObjectNumber) -} - -// SetIndex sets the Index field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexFieldIndex) -} - -// SetRevision sets the Revision field and marks it as non-optional; +// SetPath sets the Path field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision) { - d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexFieldRevision) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch) SetPath(path string) { + d.Path = path + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunchFieldPath) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -75615,8 +91949,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex) Un return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch var marshaler = struct { embed }{ @@ -75626,7 +91960,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex) Ma return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch) String() string { if d == nil { return "" } @@ -75642,15 +91976,11 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex) St } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamedFieldName = big.NewInt(1 << 0) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed struct { + Name string `json:"name" url:"name"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -75659,69 +91989,41 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed) GetName() string { if d == nil { return "" } - return d.DocSessionID -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision) GetGeneration() int { - if d == nil { - return 0 - } - return d.Generation + return d.Name } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevisionFieldDocSessionID) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevisionFieldPageObjectNumber) -} - -// SetGeneration sets the Generation field and marks it as non-optional; +// SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevisionFieldGeneration) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed) SetName(name string) { + d.Name = name + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamedFieldName) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -75731,8 +92033,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevi return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed var marshaler = struct { embed }{ @@ -75742,7 +92044,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevi return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed) String() string { if d == nil { return "" } @@ -75757,14 +92059,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevi return fmt.Sprintf("%#v", d) } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNmFieldNm = big.NewInt(1 << 1) -) - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -75773,55 +92068,27 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm) GetNm() string { - if d == nil { - return "" - } - return d.Nm -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNmFieldPageObjectNumber) -} - -// SetNm sets the Nm field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNmFieldNm) -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -75831,8 +92098,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm) Unmar return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported var marshaler = struct { embed }{ @@ -75842,7 +92109,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm) Marsh return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported) String() string { if d == nil { return "" } @@ -75858,13 +92125,11 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm) Strin } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURIFieldURI = big.NewInt(1 << 0) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI struct { + URI string `json:"uri" url:"uri"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -75873,55 +92138,41 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI) GetURI() string { if d == nil { - return 0 + return "" } - return d.AnnotObjectNumber + return d.URI } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumberFieldPageObjectNumber) -} - -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetURI sets the URI field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumberFieldAnnotObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI) SetURI(uri string) { + d.URI = uri + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURIFieldURI) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -75931,8 +92182,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNum return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI var marshaler = struct { embed }{ @@ -75942,7 +92193,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNum return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI) String() string { if d == nil { return "" } @@ -75957,90 +92208,74 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNum return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyType string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyType = "reply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyType = "group" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyType, error) { - switch s { - case "reply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyTypeReply, nil - case "group": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyTypeGroup, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyType - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyType { - return &d -} - var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldRef = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldIndex = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldIdentityQuality = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldNm = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldFlags = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldRect = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldContents = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldSubject = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldAuthor = big.NewInt(1 << 9) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldCreated = big.NewInt(1 << 10) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldModified = big.NewInt(1 << 11) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldBlendMode = big.NewInt(1 << 12) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldInReplyTo = big.NewInt(1 << 13) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldReplyType = big.NewInt(1 << 14) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldUserID = big.NewInt(1 << 15) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldGroupID = big.NewInt(1 << 16) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldCreatedBy = big.NewInt(1 << 17) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldUpdatedBy = big.NewInt(1 << 18) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldActions = big.NewInt(1 << 19) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldColor = big.NewInt(1 << 20) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldOpacity = big.NewInt(1 << 21) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldStrokeWidth = big.NewInt(1 << 22) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldBorderStyle = big.NewInt(1 << 23) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldDashArray = big.NewInt(1 << 24) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldInteriorColor = big.NewInt(1 << 25) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldLinePoints = big.NewInt(1 << 26) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldLineEndings = big.NewInt(1 << 27) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldRotation = big.NewInt(1 << 28) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldIntent = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldMeasure = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldCaption = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldRef = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldPageObjectNumber = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldIndex = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldIdentityQuality = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldNm = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldFlags = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldRect = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldContents = big.NewInt(1 << 10) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldSubject = big.NewInt(1 << 11) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldAuthor = big.NewInt(1 << 12) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldCreated = big.NewInt(1 << 13) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldModified = big.NewInt(1 << 14) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldBlendMode = big.NewInt(1 << 15) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldInReplyTo = big.NewInt(1 << 16) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldReplyType = big.NewInt(1 << 17) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldUserID = big.NewInt(1 << 18) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldGroupID = big.NewInt(1 << 19) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldCreatedBy = big.NewInt(1 << 20) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldUpdatedBy = big.NewInt(1 << 21) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldActions = big.NewInt(1 << 22) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldColor = big.NewInt(1 << 23) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldOpacity = big.NewInt(1 << 24) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldStrokeWidth = big.NewInt(1 << 25) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldBorderStyle = big.NewInt(1 << 26) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldDashArray = big.NewInt(1 << 27) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldInteriorColor = big.NewInt(1 << 28) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldVertices = big.NewInt(1 << 29) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldRotation = big.NewInt(1 << 30) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldCloudyIntensity = big.NewInt(1 << 31) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine struct { - Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef `json:"ref" url:"ref"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality `json:"identityQuality" url:"identityQuality"` - Nm *string `json:"nm,omitempty" url:"nm,omitempty"` - Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags `json:"flags" url:"flags"` - Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect `json:"rect" url:"rect"` - Contents *string `json:"contents,omitempty" url:"contents,omitempty"` - Subject *string `json:"subject,omitempty" url:"subject,omitempty"` - Author *string `json:"author,omitempty" url:"author,omitempty"` - Created *time.Time `json:"created,omitempty" url:"created,omitempty"` - Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` - BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode `json:"blendMode" url:"blendMode"` - InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` - ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` - UserID *string `json:"userId,omitempty" url:"userId,omitempty"` - GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` - CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` - Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` - Color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor `json:"color" url:"color"` - Opacity float64 `json:"opacity" url:"opacity"` - StrokeWidth float64 `json:"strokeWidth" url:"strokeWidth"` - BorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle `json:"borderStyle" url:"borderStyle"` - DashArray []float64 `json:"dashArray,omitempty" url:"dashArray,omitempty"` - InteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor `json:"interiorColor,omitempty" url:"interiorColor,omitempty"` - LinePoints *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints `json:"linePoints" url:"linePoints"` - LineEndings *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings `json:"lineEndings" url:"lineEndings"` - Rotation *float64 `json:"rotation,omitempty" url:"rotation,omitempty"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon struct { + Intent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIntent `json:"intent,omitempty" url:"intent,omitempty"` + Measure *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasure `json:"measure,omitempty" url:"measure,omitempty"` + Caption *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption `json:"caption,omitempty" url:"caption,omitempty"` + Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef `json:"ref" url:"ref"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality `json:"identityQuality" url:"identityQuality"` + Nm *string `json:"nm,omitempty" url:"nm,omitempty"` + Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags `json:"flags" url:"flags"` + Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect `json:"rect" url:"rect"` + Contents *string `json:"contents,omitempty" url:"contents,omitempty"` + Subject *string `json:"subject,omitempty" url:"subject,omitempty"` + Author *string `json:"author,omitempty" url:"author,omitempty"` + Created *time.Time `json:"created,omitempty" url:"created,omitempty"` + Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` + BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode `json:"blendMode" url:"blendMode"` + InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` + ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` + UserID *string `json:"userId,omitempty" url:"userId,omitempty"` + GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` + CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` + Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` + Color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor `json:"color" url:"color"` + Opacity float64 `json:"opacity" url:"opacity"` + StrokeWidth float64 `json:"strokeWidth" url:"strokeWidth"` + BorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle `json:"borderStyle" url:"borderStyle"` + DashArray []float64 `json:"dashArray,omitempty" url:"dashArray,omitempty"` + InteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor `json:"interiorColor,omitempty" url:"interiorColor,omitempty"` + Vertices []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem `json:"vertices" url:"vertices"` + Rotation *float64 `json:"rotation,omitempty" url:"rotation,omitempty"` + CloudyIntensity *float64 `json:"cloudyIntensity,omitempty" url:"cloudyIntensity,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -76049,441 +92284,679 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetIntent() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIntent { + if d == nil { + return nil + } + return d.Intent +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetMeasure() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasure { + if d == nil { + return nil + } + return d.Measure +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetCaption() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption { + if d == nil { + return nil + } + return d.Caption +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef { if d == nil { return nil } return d.Ref } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality { if d == nil { return "" } return d.IdentityQuality } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetNm() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetNm() *string { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags { if d == nil { return nil } return d.Flags } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect { if d == nil { return nil } return d.Rect } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetContents() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetContents() *string { if d == nil { return nil } return d.Contents } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetSubject() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetSubject() *string { if d == nil { return nil } return d.Subject } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetAuthor() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetAuthor() *string { if d == nil { return nil } return d.Author } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetCreated() *time.Time { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetCreated() *time.Time { if d == nil { return nil } return d.Created } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetModified() *time.Time { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetModified() *time.Time { if d == nil { return nil } return d.Modified } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode { if d == nil { return "" } return d.BlendMode } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo { if d == nil { return nil } return d.InReplyTo } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType { if d == nil { return nil } return d.ReplyType } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetUserID() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetUserID() *string { if d == nil { return nil } return d.UserID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetGroupID() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetGroupID() *string { if d == nil { return nil } return d.GroupID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetCreatedBy() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetCreatedBy() *string { if d == nil { return nil } return d.CreatedBy } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetUpdatedBy() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetUpdatedBy() *string { if d == nil { return nil } return d.UpdatedBy } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetActions() *PdfAnnotationActions { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetActions() *PdfAnnotationActions { if d == nil { return nil } return d.Actions } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor { if d == nil { return nil } return d.Color } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetOpacity() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetOpacity() float64 { if d == nil { return 0 } return d.Opacity } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetStrokeWidth() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetStrokeWidth() float64 { if d == nil { return 0 } return d.StrokeWidth } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetBorderStyle() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetBorderStyle() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle { if d == nil { return "" } return d.BorderStyle } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetDashArray() []float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetDashArray() []float64 { if d == nil { return nil } return d.DashArray } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetInteriorColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetInteriorColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor { if d == nil { return nil } return d.InteriorColor } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetLinePoints() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetVertices() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem { if d == nil { return nil } - return d.LinePoints + return d.Vertices } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetLineEndings() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetRotation() *float64 { if d == nil { return nil } - return d.LineEndings + return d.Rotation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetRotation() *float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetCloudyIntensity() *float64 { if d == nil { return nil } - return d.Rotation + return d.CloudyIntensity } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } +// SetIntent sets the Intent field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetIntent(intent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIntent) { + d.Intent = intent + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldIntent) +} + +// SetMeasure sets the Measure field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetMeasure(measure *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasure) { + d.Measure = measure + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldMeasure) +} + +// SetCaption sets the Caption field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetCaption(caption *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption) { + d.Caption = caption + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldCaption) +} + // SetRef sets the Ref field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef) { d.Ref = ref - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldRef) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldRef) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetIndex(index int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetIndex(index int) { d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldIndex) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldIndex) } // SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality) { d.IdentityQuality = identityQuality - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldIdentityQuality) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldIdentityQuality) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetNm(nm *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetNm(nm *string) { d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldNm) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldNm) } // SetFlags sets the Flags field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) { d.Flags = flags - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldFlags) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldFlags) } // SetRect sets the Rect field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) { d.Rect = rect - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldRect) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldRect) } // SetContents sets the Contents field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetContents(contents *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetContents(contents *string) { d.Contents = contents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldContents) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldContents) } // SetSubject sets the Subject field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetSubject(subject *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetSubject(subject *string) { d.Subject = subject - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldSubject) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldSubject) } // SetAuthor sets the Author field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetAuthor(author *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetAuthor(author *string) { d.Author = author - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldAuthor) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldAuthor) } // SetCreated sets the Created field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetCreated(created *time.Time) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetCreated(created *time.Time) { d.Created = created - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldCreated) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldCreated) } // SetModified sets the Modified field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetModified(modified *time.Time) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetModified(modified *time.Time) { d.Modified = modified - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldModified) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldModified) } // SetBlendMode sets the BlendMode field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode) { d.BlendMode = blendMode - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldBlendMode) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldBlendMode) } // SetInReplyTo sets the InReplyTo field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo) { d.InReplyTo = inReplyTo - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldInReplyTo) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldInReplyTo) } // SetReplyType sets the ReplyType field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType) { d.ReplyType = replyType - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldReplyType) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldReplyType) } // SetUserID sets the UserID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetUserID(userID *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetUserID(userID *string) { d.UserID = userID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldUserID) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldUserID) } // SetGroupID sets the GroupID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetGroupID(groupID *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetGroupID(groupID *string) { d.GroupID = groupID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldGroupID) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldGroupID) } // SetCreatedBy sets the CreatedBy field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetCreatedBy(createdBy *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetCreatedBy(createdBy *string) { d.CreatedBy = createdBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldCreatedBy) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldCreatedBy) } // SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetUpdatedBy(updatedBy *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetUpdatedBy(updatedBy *string) { d.UpdatedBy = updatedBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldUpdatedBy) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldUpdatedBy) } // SetActions sets the Actions field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetActions(actions *PdfAnnotationActions) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetActions(actions *PdfAnnotationActions) { d.Actions = actions - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldActions) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldActions) } // SetColor sets the Color field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetColor(color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetColor(color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) { d.Color = color - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldColor) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldColor) } // SetOpacity sets the Opacity field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetOpacity(opacity float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetOpacity(opacity float64) { d.Opacity = opacity - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldOpacity) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldOpacity) } // SetStrokeWidth sets the StrokeWidth field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetStrokeWidth(strokeWidth float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetStrokeWidth(strokeWidth float64) { d.StrokeWidth = strokeWidth - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldStrokeWidth) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldStrokeWidth) } // SetBorderStyle sets the BorderStyle field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetBorderStyle(borderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetBorderStyle(borderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle) { d.BorderStyle = borderStyle - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldBorderStyle) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldBorderStyle) } // SetDashArray sets the DashArray field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetDashArray(dashArray []float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetDashArray(dashArray []float64) { d.DashArray = dashArray - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldDashArray) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldDashArray) } // SetInteriorColor sets the InteriorColor field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetInteriorColor(interiorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetInteriorColor(interiorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor) { d.InteriorColor = interiorColor - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldInteriorColor) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldInteriorColor) +} + +// SetVertices sets the Vertices field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetVertices(vertices []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem) { + d.Vertices = vertices + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldVertices) +} + +// SetRotation sets the Rotation field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetRotation(rotation *float64) { + d.Rotation = rotation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldRotation) +} + +// SetCloudyIntensity sets the CloudyIntensity field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetCloudyIntensity(cloudyIntensity *float64) { + d.CloudyIntensity = cloudyIntensity + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldCloudyIntensity) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) UnmarshalJSON(data []byte) error { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + var unmarshaler = struct { + embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon(unmarshaler.embed) + d.Created = unmarshaler.Created.TimePtr() + d.Modified = unmarshaler.Modified.TimePtr() + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + var marshaler = struct { + embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), + Created: internal.NewOptionalDateTime(d.Created), + Modified: internal.NewOptionalDateTime(d.Modified), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode = "normal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode = "multiply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode = "screen" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode = "overlay" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode = "darken" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode = "lighten" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode = "color-dodge" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode = "color-burn" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode = "hard-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode = "soft-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode = "difference" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode = "exclusion" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode = "hue" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode = "saturation" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode = "color" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode = "luminosity" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode, error) { + switch s { + case "normal": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeNormal, nil + case "multiply": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeMultiply, nil + case "screen": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeScreen, nil + case "overlay": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeOverlay, nil + case "darken": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeDarken, nil + case "lighten": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeLighten, nil + case "color-dodge": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeColorDodge, nil + case "color-burn": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeColorBurn, nil + case "hard-light": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeHardLight, nil + case "soft-light": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeSoftLight, nil + case "difference": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeDifference, nil + case "exclusion": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeExclusion, nil + case "hue": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeHue, nil + case "saturation": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeSaturation, nil + case "color": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeColor, nil + case "luminosity": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeLuminosity, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyleSolid DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle = "solid" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyleDashed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle = "dashed" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyleBeveled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle = "beveled" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyleInset DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle = "inset" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyleFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle, error) { + switch s { + case "solid": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyleSolid, nil + case "dashed": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyleDashed, nil + case "beveled": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyleBeveled, nil + case "inset": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyleInset, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionFieldEnabled = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionFieldCenter = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption struct { + Enabled bool `json:"enabled" url:"enabled"` + Center *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter `json:"center,omitempty" url:"center,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption) GetEnabled() bool { + if d == nil { + return false + } + return d.Enabled +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption) GetCenter() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter { + if d == nil { + return nil + } + return d.Center } -// SetLinePoints sets the LinePoints field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetLinePoints(linePoints *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints) { - d.LinePoints = linePoints - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldLinePoints) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties } -// SetLineEndings sets the LineEndings field and marks it as non-optional; +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetEnabled sets the Enabled field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetLineEndings(lineEndings *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings) { - d.LineEndings = lineEndings - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldLineEndings) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption) SetEnabled(enabled bool) { + d.Enabled = enabled + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionFieldEnabled) } -// SetRotation sets the Rotation field and marks it as non-optional; +// SetCenter sets the Center field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) SetRotation(rotation *float64) { - d.Rotation = rotation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFieldRotation) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption) SetCenter(center *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter) { + d.Center = center + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionFieldCenter) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) UnmarshalJSON(data []byte) error { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine - var unmarshaler = struct { - embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` - }{ - embed: embed(*d), - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine(unmarshaler.embed) - d.Created = unmarshaler.Created.TimePtr() - d.Modified = unmarshaler.Modified.TimePtr() + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -76493,22 +92966,18 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) Unmarshal return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption var marshaler = struct { embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), - Created: internal.NewOptionalDateTime(d.Created), - Modified: internal.NewOptionalDateTime(d.Modified), + embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption) String() string { if d == nil { return "" } @@ -76523,105 +92992,113 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine) String() return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode = "normal" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode = "multiply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode = "screen" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode = "overlay" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode = "darken" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode = "lighten" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode = "color-dodge" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode = "color-burn" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode = "hard-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode = "soft-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode = "difference" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode = "exclusion" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode = "hue" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode = "saturation" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode = "color" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode = "luminosity" +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenterFieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenterFieldY = big.NewInt(1 << 1) ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode, error) { - switch s { - case "normal": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeNormal, nil - case "multiply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeMultiply, nil - case "screen": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeScreen, nil - case "overlay": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeOverlay, nil - case "darken": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeDarken, nil - case "lighten": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeLighten, nil - case "color-dodge": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeColorDodge, nil - case "color-burn": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeColorBurn, nil - case "hard-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeHardLight, nil - case "soft-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeSoftLight, nil - case "difference": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeDifference, nil - case "exclusion": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeExclusion, nil - case "hue": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeHue, nil - case "saturation": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeSaturation, nil - case "color": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeColor, nil - case "luminosity": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendModeLuminosity, nil +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter) GetX() float64 { + if d == nil { + return 0 } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode - return "", fmt.Errorf("%s is not a valid %T", s, t) + return d.X } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode { - return &d +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter) GetY() float64 { + if d == nil { + return 0 + } + return d.Y } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle string +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyleSolid DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle = "solid" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyleDashed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle = "dashed" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyleBeveled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle = "beveled" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyleInset DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle = "inset" -) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyleFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle, error) { - switch s { - case "solid": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyleSolid, nil - case "dashed": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyleDashed, nil - case "beveled": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyleBeveled, nil - case "inset": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyleInset, nil +// SetX sets the X field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenterFieldX) +} + +// SetY sets the Y field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenterFieldY) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle - return "", fmt.Errorf("%s is not a valid %T", s, t) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle { - return &d +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColorFieldR = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColorFieldG = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColorFieldB = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColorFieldB = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor struct { R int `json:"r" url:"r"` G int `json:"g" url:"g"` B int `json:"b" url:"b"` @@ -76633,35 +93110,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) GetR() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) GetR() int { if d == nil { return 0 } return d.R } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) GetG() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) GetG() int { if d == nil { return 0 } return d.G } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) GetB() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) GetB() int { if d == nil { return 0 } return d.B } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -76670,32 +93147,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) requ // SetR sets the R field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) SetR(r int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) SetR(r int) { d.R = r - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColorFieldR) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColorFieldR) } // SetG sets the G field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) SetG(g int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) SetG(g int) { d.G = g - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColorFieldG) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColorFieldG) } // SetB sets the B field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) SetB(b int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) SetB(b int) { d.B = b - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColorFieldB) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColorFieldB) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -76705,8 +93182,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) Unma return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor var marshaler = struct { embed }{ @@ -76716,7 +93193,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) Mars return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) String() string { if d == nil { return "" } @@ -76732,19 +93209,19 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor) Stri } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldInvisible = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldHidden = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldPrint = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldNoZoom = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldNoRotate = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldNoView = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldReadOnly = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldLocked = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldToggleNoView = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldLockedContents = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldInvisible = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldHidden = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldPrint = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldNoZoom = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldNoRotate = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldNoView = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldReadOnly = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldLocked = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldToggleNoView = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldLockedContents = big.NewInt(1 << 9) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags struct { Invisible bool `json:"invisible" url:"invisible"` Hidden bool `json:"hidden" url:"hidden"` Print bool `json:"print" url:"print"` @@ -76763,84 +93240,84 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) GetInvisible() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) GetInvisible() bool { if d == nil { return false } return d.Invisible } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) GetHidden() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) GetHidden() bool { if d == nil { return false } return d.Hidden } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) GetPrint() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) GetPrint() bool { if d == nil { return false } return d.Print } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) GetNoZoom() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) GetNoZoom() bool { if d == nil { return false } return d.NoZoom } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) GetNoRotate() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) GetNoRotate() bool { if d == nil { return false } return d.NoRotate } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) GetNoView() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) GetNoView() bool { if d == nil { return false } return d.NoView } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) GetReadOnly() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) GetReadOnly() bool { if d == nil { return false } return d.ReadOnly } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) GetLocked() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) GetLocked() bool { if d == nil { return false } return d.Locked } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) GetToggleNoView() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) GetToggleNoView() bool { if d == nil { return false } return d.ToggleNoView } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) GetLockedContents() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) GetLockedContents() bool { if d == nil { return false } return d.LockedContents } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -76849,81 +93326,81 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) requ // SetInvisible sets the Invisible field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) SetInvisible(invisible bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) SetInvisible(invisible bool) { d.Invisible = invisible - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldInvisible) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldInvisible) } // SetHidden sets the Hidden field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) SetHidden(hidden bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) SetHidden(hidden bool) { d.Hidden = hidden - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldHidden) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldHidden) } // SetPrint sets the Print field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) SetPrint(print bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) SetPrint(print bool) { d.Print = print - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldPrint) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldPrint) } // SetNoZoom sets the NoZoom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) SetNoZoom(noZoom bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) SetNoZoom(noZoom bool) { d.NoZoom = noZoom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldNoZoom) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldNoZoom) } // SetNoRotate sets the NoRotate field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) SetNoRotate(noRotate bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) SetNoRotate(noRotate bool) { d.NoRotate = noRotate - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldNoRotate) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldNoRotate) } // SetNoView sets the NoView field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) SetNoView(noView bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) SetNoView(noView bool) { d.NoView = noView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldNoView) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldNoView) } // SetReadOnly sets the ReadOnly field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) SetReadOnly(readOnly bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) SetReadOnly(readOnly bool) { d.ReadOnly = readOnly - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldReadOnly) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldReadOnly) } // SetLocked sets the Locked field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) SetLocked(locked bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) SetLocked(locked bool) { d.Locked = locked - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldLocked) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldLocked) } // SetToggleNoView sets the ToggleNoView field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) SetToggleNoView(toggleNoView bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) SetToggleNoView(toggleNoView bool) { d.ToggleNoView = toggleNoView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldToggleNoView) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldToggleNoView) } // SetLockedContents sets the LockedContents field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) SetLockedContents(lockedContents bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) SetLockedContents(lockedContents bool) { d.LockedContents = lockedContents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlagsFieldLockedContents) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldLockedContents) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -76933,8 +93410,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) Unma return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags var marshaler = struct { embed }{ @@ -76944,7 +93421,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) Mars return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) String() string { if d == nil { return "" } @@ -76959,66 +93436,66 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags) Stri return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality = "durable" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality = "weak" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality = "durable" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality = "weak" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality, error) { switch s { case "durable": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQualityDurable, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQualityDurable, nil case "weak": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQualityWeak, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQualityWeak, nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality { return &d } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo struct { Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo) GetKind() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber { if d == nil { return nil } return d.ObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex { if d == nil { return nil } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo) UnmarshalJSON(data []byte) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -77031,19 +93508,19 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo) } switch unmarshaler.Kind { case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber) if err := json.Unmarshal(data, &value); err != nil { return err } d.ObjectNumber = value case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm) if err := json.Unmarshal(data, &value); err != nil { return err } d.Nm = value case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -77053,7 +93530,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo) return nil } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -77072,13 +93549,13 @@ func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo) M return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex) error +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex) error } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToVisitor) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToVisitor) error { if d.ObjectNumber != nil { return visitor.VisitObjectNumber(d.ObjectNumber) } @@ -77091,7 +93568,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo) return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo) validate() error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -77132,15 +93609,15 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo) } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -77149,35 +93626,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision { if d == nil { return nil } return d.Revision } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -77186,32 +93663,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIn // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex) SetIndex(index int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex) SetIndex(index int) { d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexFieldIndex) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexFieldIndex) } // SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) { d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexFieldRevision) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexFieldRevision) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -77221,8 +93698,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIn return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex var marshaler = struct { embed }{ @@ -77232,7 +93709,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIn return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex) String() string { if d == nil { return "" } @@ -77248,12 +93725,12 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIn } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision struct { DocSessionID string `json:"docSessionId" url:"docSessionId"` PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Generation int `json:"generation" url:"generation"` @@ -77265,35 +93742,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexR rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) GetDocSessionID() string { if d == nil { return "" } return d.DocSessionID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision) GetGeneration() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) GetGeneration() int { if d == nil { return 0 } return d.Generation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -77302,32 +93779,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIn // SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision) SetDocSessionID(docSessionID string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) SetDocSessionID(docSessionID string) { d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevisionFieldDocSessionID) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevisionFieldDocSessionID) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevisionFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevisionFieldPageObjectNumber) } // SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision) SetGeneration(generation int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) SetGeneration(generation int) { d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevisionFieldGeneration) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevisionFieldGeneration) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -77337,8 +93814,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIn return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision var marshaler = struct { embed }{ @@ -77348,7 +93825,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIn return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) String() string { if d == nil { return "" } @@ -77364,11 +93841,11 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIn } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNmFieldNm = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Nm string `json:"nm" url:"nm"` @@ -77379,28 +93856,28 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm str rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm) GetNm() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm) GetNm() string { if d == nil { return "" } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -77409,25 +93886,25 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNmFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNmFieldPageObjectNumber) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm) SetNm(nm string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm) SetNm(nm string) { d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNmFieldNm) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNmFieldNm) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -77437,8 +93914,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm var marshaler = struct { embed }{ @@ -77448,7 +93925,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm) String() string { if d == nil { return "" } @@ -77464,11 +93941,11 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` @@ -77479,28 +93956,28 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObject rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } return d.AnnotObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -77509,25 +93986,25 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToOb // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumberFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumberFieldPageObjectNumber) } // SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumberFieldAnnotObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -77537,8 +94014,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToOb return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber var marshaler = struct { embed }{ @@ -77548,7 +94025,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToOb return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber) String() string { if d == nil { return "" } @@ -77563,13 +94040,35 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToOb return fmt.Sprintf("%#v", d) } +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIntent string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIntentPolygonCloud DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIntent = "PolygonCloud" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIntentPolygonDimension DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIntent = "PolygonDimension" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIntentFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIntent, error) { + switch s { + case "PolygonCloud": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIntentPolygonCloud, nil + case "PolygonDimension": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIntentPolygonDimension, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIntent + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIntent) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIntent { + return &d +} + var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColorFieldR = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColorFieldG = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColorFieldB = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColorFieldB = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor struct { R int `json:"r" url:"r"` G int `json:"g" url:"g"` B int `json:"b" url:"b"` @@ -77581,35 +94080,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor s rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor) GetR() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor) GetR() int { if d == nil { return 0 } return d.R } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor) GetG() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor) GetG() int { if d == nil { return 0 } return d.G } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor) GetB() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor) GetB() int { if d == nil { return 0 } return d.B } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -77618,32 +94117,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorCol // SetR sets the R field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor) SetR(r int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor) SetR(r int) { d.R = r - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColorFieldR) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColorFieldR) } // SetG sets the G field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor) SetG(g int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor) SetG(g int) { d.G = g - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColorFieldG) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColorFieldG) } // SetB sets the B field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor) SetB(b int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor) SetB(b int) { d.B = b - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColorFieldB) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColorFieldB) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -77653,8 +94152,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorCol return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor var marshaler = struct { embed }{ @@ -77664,7 +94163,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorCol return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor) String() string { if d == nil { return "" } @@ -77679,206 +94178,157 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorCol return fmt.Sprintf("%#v", d) } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsFieldStart = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsFieldEnd = big.NewInt(1 << 1) -) - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings struct { - Start DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart `json:"start" url:"start"` - End DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd `json:"end" url:"end"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasure struct { + Subtype string + Rl *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl + Geo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureGeo + Unknown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureUnknown - extraProperties map[string]interface{} - rawJSON json.RawMessage + rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings) GetStart() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasure) GetSubtype() string { if d == nil { return "" } - return d.Start + return d.Subtype } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings) GetEnd() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasure) GetRl() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl { if d == nil { - return "" + return nil } - return d.End + return d.Rl } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasure) GetGeo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureGeo { if d == nil { return nil } - return d.extraProperties + return d.Geo } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasure) GetUnknown() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureUnknown { + if d == nil { + return nil } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetStart sets the Start field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings) SetStart(start DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart) { - d.Start = start - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsFieldStart) -} - -// SetEnd sets the End field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings) SetEnd(end DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd) { - d.End = end - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsFieldEnd) + return d.Unknown } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasure) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Subtype string `json:"subtype"` } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { + if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - d.extraProperties = extraProperties + d.Subtype = unmarshaler.Subtype + if unmarshaler.Subtype == "" { + return fmt.Errorf("%T did not include discriminant subtype", d) + } + switch unmarshaler.Subtype { + case "RL": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Rl = value + case "GEO": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureGeo) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Geo = value + case "unknown": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureUnknown) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Unknown = value + } d.rawJSON = json.RawMessage(data) return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasure) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings) String() string { - if d == nil { - return "" + if d.Rl != nil { + return internal.MarshalJSONWithExtraProperty(d.Rl, "subtype", "RL") } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } + if d.Geo != nil { + return internal.MarshalJSONWithExtraProperty(d.Geo, "subtype", "GEO") } - if value, err := internal.StringifyJSON(d); err == nil { - return value + if d.Unknown != nil { + return internal.MarshalJSONWithExtraProperty(d.Unknown, "subtype", "unknown") } - return fmt.Sprintf("%#v", d) -} - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndNone DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd = "none" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndSquare DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd = "square" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndCircle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd = "circle" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndDiamond DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd = "diamond" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndOpenArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd = "open-arrow" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndClosedArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd = "closed-arrow" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndButt DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd = "butt" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndROpenArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd = "r-open-arrow" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndRClosedArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd = "r-closed-arrow" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndSlash DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd = "slash" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd, error) { - switch s { - case "none": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndNone, nil - case "square": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndSquare, nil - case "circle": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndCircle, nil - case "diamond": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndDiamond, nil - case "open-arrow": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndOpenArrow, nil - case "closed-arrow": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndClosedArrow, nil - case "butt": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndButt, nil - case "r-open-arrow": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndROpenArrow, nil - case "r-closed-arrow": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndRClosedArrow, nil - case "slash": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEndSlash, nil + if len(d.rawJSON) > 0 { + return d.rawJSON, nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd - return "", fmt.Errorf("%s is not a valid %T", s, t) + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd { - return &d +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureVisitor interface { + VisitRl(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl) error + VisitGeo(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureGeo) error + VisitUnknown(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureUnknown) error } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartNone DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart = "none" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartSquare DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart = "square" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartCircle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart = "circle" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartDiamond DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart = "diamond" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartOpenArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart = "open-arrow" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartClosedArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart = "closed-arrow" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartButt DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart = "butt" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartROpenArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart = "r-open-arrow" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartRClosedArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart = "r-closed-arrow" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartSlash DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart = "slash" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart, error) { - switch s { - case "none": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartNone, nil - case "square": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartSquare, nil - case "circle": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartCircle, nil - case "diamond": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartDiamond, nil - case "open-arrow": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartOpenArrow, nil - case "closed-arrow": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartClosedArrow, nil - case "butt": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartButt, nil - case "r-open-arrow": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartROpenArrow, nil - case "r-closed-arrow": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartRClosedArrow, nil - case "slash": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStartSlash, nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasure) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureVisitor) error { + if d.Rl != nil { + return visitor.VisitRl(d.Rl) } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart - return "", fmt.Errorf("%s is not a valid %T", s, t) + if d.Geo != nil { + return visitor.VisitGeo(d.Geo) + } + if d.Unknown != nil { + return visitor.VisitUnknown(d.Unknown) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart { - return &d +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasure) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.Rl != nil { + fields = append(fields, "RL") + } + if d.Geo != nil { + fields = append(fields, "GEO") + } + if d.Unknown != nil { + fields = append(fields, "unknown") + } + if len(fields) == 0 { + if d.Subtype != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Subtype) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Subtype != "" { + field := fields[0] + if d.Subtype != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Subtype, + d, + ) + } + } + return nil } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsFieldStart = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsFieldEnd = big.NewInt(1 << 1) -) - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints struct { - Start *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart `json:"start" url:"start"` - End *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd `json:"end" url:"end"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureGeo struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -77887,55 +94337,27 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints stru rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints) GetStart() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart { - if d == nil { - return nil - } - return d.Start -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints) GetEnd() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd { - if d == nil { - return nil - } - return d.End -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureGeo) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureGeo) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetStart sets the Start field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints) SetStart(start *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart) { - d.Start = start - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsFieldStart) -} - -// SetEnd sets the End field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints) SetEnd(end *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd) { - d.End = end - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsFieldEnd) -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureGeo) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureGeo var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureGeo(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -77945,8 +94367,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints) return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureGeo) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureGeo var marshaler = struct { embed }{ @@ -77956,7 +94378,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureGeo) String() string { if d == nil { return "" } @@ -77972,13 +94394,27 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints) } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEndFieldX = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEndFieldY = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlFieldRatio = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlFieldX = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlFieldY = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlFieldDistance = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlFieldArea = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlFieldAngle = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlFieldSlope = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlFieldOrigin = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlFieldCyx = big.NewInt(1 << 8) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl struct { + Ratio *string `json:"ratio,omitempty" url:"ratio,omitempty"` + X []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem `json:"x" url:"x"` + Y []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem `json:"y,omitempty" url:"y,omitempty"` + Distance []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem `json:"distance" url:"distance"` + Area []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem `json:"area" url:"area"` + Angle []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem `json:"angle,omitempty" url:"angle,omitempty"` + Slope []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem `json:"slope,omitempty" url:"slope,omitempty"` + Origin *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin `json:"origin,omitempty" url:"origin,omitempty"` + Cyx *float64 `json:"cyx,omitempty" url:"cyx,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -77987,55 +94423,153 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd s rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd) GetX() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl) GetRatio() *string { if d == nil { - return 0 + return nil + } + return d.Ratio +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl) GetX() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem { + if d == nil { + return nil } return d.X } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd) GetY() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl) GetY() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem { if d == nil { - return 0 + return nil } return d.Y } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl) GetDistance() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem { + if d == nil { + return nil + } + return d.Distance +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl) GetArea() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem { + if d == nil { + return nil + } + return d.Area +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl) GetAngle() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem { + if d == nil { + return nil + } + return d.Angle +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl) GetSlope() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem { + if d == nil { + return nil + } + return d.Slope +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl) GetOrigin() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin { + if d == nil { + return nil + } + return d.Origin +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl) GetCyx() *float64 { + if d == nil { + return nil + } + return d.Cyx +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } +// SetRatio sets the Ratio field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl) SetRatio(ratio *string) { + d.Ratio = ratio + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlFieldRatio) +} + // SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd) SetX(x float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl) SetX(x []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem) { d.X = x - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEndFieldX) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlFieldX) } // SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd) SetY(y float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl) SetY(y []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem) { d.Y = y - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEndFieldY) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlFieldY) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd +// SetDistance sets the Distance field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl) SetDistance(distance []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem) { + d.Distance = distance + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlFieldDistance) +} + +// SetArea sets the Area field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl) SetArea(area []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem) { + d.Area = area + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlFieldArea) +} + +// SetAngle sets the Angle field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl) SetAngle(angle []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem) { + d.Angle = angle + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlFieldAngle) +} + +// SetSlope sets the Slope field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl) SetSlope(slope []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem) { + d.Slope = slope + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlFieldSlope) +} + +// SetOrigin sets the Origin field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl) SetOrigin(origin *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin) { + d.Origin = origin + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlFieldOrigin) +} + +// SetCyx sets the Cyx field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl) SetCyx(cyx *float64) { + d.Cyx = cyx + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlFieldCyx) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -78045,8 +94579,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsE return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl var marshaler = struct { embed }{ @@ -78056,7 +94590,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsE return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl) String() string { if d == nil { return "" } @@ -78072,13 +94606,29 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsE } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStartFieldX = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStartFieldY = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFieldLabelPosition = big.NewInt(1 << 9) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -78087,55 +94637,167 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart) GetX() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem) GetUnit() string { if d == nil { - return 0 + return "" } - return d.X + return d.Unit +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem) GetConversion() *float64 { + if d == nil { + return nil + } + return d.Conversion +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem) GetFraction() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFraction { + if d == nil { + return nil + } + return d.Fraction +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem) GetPrecision() *int { + if d == nil { + return nil + } + return d.Precision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem) GetFixed() *bool { + if d == nil { + return nil + } + return d.Fixed +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem) GetThousands() *string { + if d == nil { + return nil + } + return d.Thousands +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem) GetDecimal() *string { + if d == nil { + return nil + } + return d.Decimal +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem) GetPrefixSpacing() *string { + if d == nil { + return nil + } + return d.PrefixSpacing +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem) GetSuffixSpacing() *string { + if d == nil { + return nil + } + return d.SuffixSpacing +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem) GetLabelPosition() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemLabelPosition { + if d == nil { + return nil + } + return d.LabelPosition +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetUnit sets the Unit field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFieldUnit) +} + +// SetConversion sets the Conversion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFieldConversion) +} + +// SetFraction sets the Fraction field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem) SetFraction(fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFieldFraction) +} + +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFieldPrecision) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart) GetY() float64 { - if d == nil { - return 0 - } - return d.Y +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFieldFixed) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFieldThousands) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFieldDecimal) } -// SetX sets the X field and marks it as non-optional; +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart) SetX(x float64) { - d.X = x - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStartFieldX) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFieldPrefixSpacing) } -// SetY sets the Y field and marks it as non-optional; +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart) SetY(y float64) { - d.Y = y - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStartFieldY) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFieldSuffixSpacing) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem) SetLabelPosition(labelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFieldLabelPosition) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -78145,8 +94807,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsS return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem var marshaler = struct { embed }{ @@ -78156,7 +94818,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsS return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem) String() string { if d == nil { return "" } @@ -78171,18 +94833,80 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsS return fmt.Sprintf("%#v", d) } +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFraction string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFractionDecimal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFraction = "decimal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFractionFraction DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFraction = "fraction" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFractionRound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFraction = "round" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFractionTruncate DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFraction = "truncate" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFractionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFraction, error) { + switch s { + case "decimal": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFractionDecimal, nil + case "fraction": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFractionFraction, nil + case "round": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFractionRound, nil + case "truncate": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFractionTruncate, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFraction) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFraction { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemLabelPosition string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemLabelPositionSuffix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemLabelPosition = "suffix" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemLabelPositionPrefix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemLabelPosition = "prefix" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemLabelPositionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemLabelPosition, error) { + switch s { + case "suffix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemLabelPositionPrefix, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemLabelPosition) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemLabelPosition { + return &d +} + var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRectFieldRight = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRectFieldTop = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFieldLabelPosition = big.NewInt(1 << 9) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect struct { - Left float64 `json:"left" url:"left"` - Bottom float64 `json:"bottom" url:"bottom"` - Right float64 `json:"right" url:"right"` - Top float64 `json:"top" url:"top"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -78191,83 +94915,167 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) GetLeft() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem) GetUnit() string { if d == nil { - return 0 + return "" } - return d.Left + return d.Unit } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) GetBottom() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem) GetConversion() *float64 { if d == nil { - return 0 + return nil } - return d.Bottom + return d.Conversion } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) GetRight() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem) GetFraction() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFraction { if d == nil { - return 0 + return nil } - return d.Right + return d.Fraction } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) GetTop() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem) GetPrecision() *int { if d == nil { - return 0 + return nil } - return d.Top + return d.Precision } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem) GetFixed() *bool { + if d == nil { + return nil + } + return d.Fixed +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem) GetThousands() *string { + if d == nil { + return nil + } + return d.Thousands +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem) GetDecimal() *string { + if d == nil { + return nil + } + return d.Decimal +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem) GetPrefixSpacing() *string { + if d == nil { + return nil + } + return d.PrefixSpacing +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem) GetSuffixSpacing() *string { + if d == nil { + return nil + } + return d.SuffixSpacing +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem) GetLabelPosition() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemLabelPosition { + if d == nil { + return nil + } + return d.LabelPosition +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetLeft sets the Left field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) SetLeft(left float64) { - d.Left = left - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRectFieldLeft) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFieldUnit) } -// SetBottom sets the Bottom field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRectFieldBottom) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFieldConversion) } -// SetRight sets the Right field and marks it as non-optional; +// SetFraction sets the Fraction field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) SetRight(right float64) { - d.Right = right - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRectFieldRight) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem) SetFraction(fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFieldFraction) } -// SetTop sets the Top field and marks it as non-optional; +// SetPrecision sets the Precision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRectFieldTop) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFieldPrecision) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem) SetLabelPosition(labelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFieldLabelPosition) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -78277,8 +95085,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) Unmar return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem var marshaler = struct { embed }{ @@ -78288,7 +95096,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) Marsh return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem) String() string { if d == nil { return "" } @@ -78303,237 +95111,249 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect) Strin return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef struct { - Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFraction string - rawJSON json.RawMessage +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFractionDecimal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFraction = "decimal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFractionFraction DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFraction = "fraction" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFractionRound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFraction = "round" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFractionTruncate DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFraction = "truncate" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFractionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFraction, error) { + switch s { + case "decimal": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFractionDecimal, nil + case "fraction": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFractionFraction, nil + case "round": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFractionRound, nil + case "truncate": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFractionTruncate, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef) GetKind() string { - if d == nil { - return "" +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFraction) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFraction { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemLabelPosition string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemLabelPositionSuffix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemLabelPosition = "suffix" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemLabelPositionPrefix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemLabelPosition = "prefix" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemLabelPositionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemLabelPosition, error) { + switch s { + case "suffix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemLabelPositionPrefix, nil } - return d.Kind + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemLabelPosition) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemLabelPosition { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFieldLabelPosition = big.NewInt(1 << 9) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem) GetUnit() string { if d == nil { - return nil + return "" } - return d.ObjectNumber + return d.Unit } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem) GetConversion() *float64 { if d == nil { return nil } - return d.Nm + return d.Conversion } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem) GetFraction() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFraction { if d == nil { return nil } - return d.Index + return d.Fraction } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Nm = value - case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Index = value +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem) GetPrecision() *int { + if d == nil { + return nil } - d.rawJSON = json.RawMessage(data) - return nil + return d.Precision } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Nm != nil { - return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") - } - if d.Index != nil { - return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem) GetFixed() *bool { + if d == nil { + return nil } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) -} - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) error + return d.Fixed } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) - } - if d.Nm != nil { - return visitor.VisitNm(d.Nm) - } - if d.Index != nil { - return visitor.VisitIndex(d.Index) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem) GetThousands() *string { + if d == nil { + return nil } - return fmt.Errorf("type %T does not define a non-empty union type", d) + return d.Thousands } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef) validate() error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem) GetDecimal() *string { if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Nm != nil { - fields = append(fields, "nm") - } - if d.Index != nil { - fields = append(fields, "index") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } + return nil } - return nil -} - -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexFieldRevision = big.NewInt(1 << 2) -) - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision `json:"revision" url:"revision"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage + return d.Decimal } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem) GetPrefixSpacing() *string { if d == nil { - return 0 + return nil } - return d.PageObjectNumber + return d.PrefixSpacing } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem) GetSuffixSpacing() *string { if d == nil { - return 0 + return nil } - return d.Index + return d.SuffixSpacing } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem) GetLabelPosition() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemLabelPosition { if d == nil { return nil } - return d.Revision + return d.LabelPosition } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFieldUnit) } -// SetIndex sets the Index field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexFieldIndex) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFieldConversion) } -// SetRevision sets the Revision field and marks it as non-optional; +// SetFraction sets the Fraction field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision) { - d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexFieldRevision) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem) SetFraction(fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFieldFraction) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFieldPrecision) +} + +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem) SetLabelPosition(labelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFieldLabelPosition) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -78543,8 +95363,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) U return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem var marshaler = struct { embed }{ @@ -78554,7 +95374,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) M return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem) String() string { if d == nil { return "" } @@ -78569,16 +95389,64 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex) S return fmt.Sprintf("%#v", d) } +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFraction string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFractionDecimal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFraction = "decimal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFractionFraction DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFraction = "fraction" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFractionRound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFraction = "round" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFractionTruncate DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFraction = "truncate" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFractionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFraction, error) { + switch s { + case "decimal": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFractionDecimal, nil + case "fraction": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFractionFraction, nil + case "round": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFractionRound, nil + case "truncate": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFractionTruncate, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFraction) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFraction { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemLabelPosition string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemLabelPositionSuffix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemLabelPosition = "suffix" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemLabelPositionPrefix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemLabelPosition = "prefix" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemLabelPositionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemLabelPosition, error) { + switch s { + case "suffix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemLabelPositionPrefix, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemLabelPosition) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemLabelPosition { + return &d +} + var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOriginFieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOriginFieldY = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -78587,69 +95455,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevisio rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision) GetDocSessionID() string { - if d == nil { - return "" - } - return d.DocSessionID -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin) GetX() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.X } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision) GetGeneration() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin) GetY() float64 { if d == nil { return 0 } - return d.Generation + return d.Y } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevisionFieldDocSessionID) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevisionFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOriginFieldX) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevisionFieldGeneration) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOriginFieldY) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -78659,8 +95513,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRev return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin var marshaler = struct { embed }{ @@ -78670,7 +95524,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRev return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin) String() string { if d == nil { return "" } @@ -78686,13 +95540,29 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRev } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNmFieldNm = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFieldLabelPosition = big.NewInt(1 << 9) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -78701,155 +95571,167 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm) GetNm() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem) GetUnit() string { if d == nil { return "" } - return d.Nm + return d.Unit } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem) GetConversion() *float64 { if d == nil { return nil } - return d.extraProperties + return d.Conversion } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem) GetFraction() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFraction { + if d == nil { + return nil } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNmFieldPageObjectNumber) + return d.Fraction } -// SetNm sets the Nm field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNmFieldNm) -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem) GetPrecision() *int { + if d == nil { + return nil } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil + return d.Precision } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem) GetFixed() *bool { + if d == nil { + return nil } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return d.Fixed } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem) GetThousands() *string { if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value + return nil } - return fmt.Sprintf("%#v", d) + return d.Thousands } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) -) - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem) GetDecimal() *string { + if d == nil { + return nil + } + return d.Decimal +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem) GetPrefixSpacing() *string { + if d == nil { + return nil + } + return d.PrefixSpacing } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem) GetSuffixSpacing() *string { if d == nil { - return 0 + return nil } - return d.PageObjectNumber + return d.SuffixSpacing } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem) GetLabelPosition() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemLabelPosition { if d == nil { - return 0 + return nil } - return d.AnnotObjectNumber + return d.LabelPosition } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumberFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFieldUnit) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumberFieldAnnotObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFieldConversion) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber +// SetFraction sets the Fraction field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem) SetFraction(fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFieldFraction) +} + +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFieldPrecision) +} + +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem) SetLabelPosition(labelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFieldLabelPosition) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -78859,8 +95741,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNu return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem var marshaler = struct { embed }{ @@ -78870,7 +95752,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNu return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem) String() string { if d == nil { return "" } @@ -78885,74 +95767,80 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNu return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFraction string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType = "reply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType = "group" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFractionDecimal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFraction = "decimal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFractionFraction DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFraction = "fraction" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFractionRound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFraction = "round" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFractionTruncate DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFraction = "truncate" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFractionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFraction, error) { switch s { - case "reply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyTypeReply, nil - case "group": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyTypeGroup, nil + case "decimal": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFractionDecimal, nil + case "fraction": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFractionFraction, nil + case "round": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFractionRound, nil + case "truncate": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFractionTruncate, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFraction) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFraction { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemLabelPosition string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemLabelPositionSuffix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemLabelPosition = "suffix" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemLabelPositionPrefix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemLabelPosition = "prefix" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemLabelPositionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemLabelPosition, error) { + switch s { + case "suffix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemLabelPositionPrefix, nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemLabelPosition return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemLabelPosition) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemLabelPosition { return &d } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldRef = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldIndex = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldIdentityQuality = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldNm = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldFlags = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldRect = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldContents = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldSubject = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldAuthor = big.NewInt(1 << 9) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldCreated = big.NewInt(1 << 10) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldModified = big.NewInt(1 << 11) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldBlendMode = big.NewInt(1 << 12) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldInReplyTo = big.NewInt(1 << 13) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldReplyType = big.NewInt(1 << 14) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldUserID = big.NewInt(1 << 15) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldGroupID = big.NewInt(1 << 16) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldCreatedBy = big.NewInt(1 << 17) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldUpdatedBy = big.NewInt(1 << 18) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldActions = big.NewInt(1 << 19) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldTarget = big.NewInt(1 << 20) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFieldLabelPosition = big.NewInt(1 << 9) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink struct { - Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef `json:"ref" url:"ref"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQuality `json:"identityQuality" url:"identityQuality"` - Nm *string `json:"nm,omitempty" url:"nm,omitempty"` - Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags `json:"flags" url:"flags"` - Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect `json:"rect" url:"rect"` - Contents *string `json:"contents,omitempty" url:"contents,omitempty"` - Subject *string `json:"subject,omitempty" url:"subject,omitempty"` - Author *string `json:"author,omitempty" url:"author,omitempty"` - Created *time.Time `json:"created,omitempty" url:"created,omitempty"` - Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` - BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode `json:"blendMode" url:"blendMode"` - InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` - ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` - UserID *string `json:"userId,omitempty" url:"userId,omitempty"` - GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` - CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` - Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` - Target *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget `json:"target,omitempty" url:"target,omitempty"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -78961,329 +95849,445 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem) GetUnit() string { if d == nil { - return nil + return "" } - return d.Ref + return d.Unit } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem) GetConversion() *float64 { if d == nil { - return 0 + return nil } - return d.PageObjectNumber + return d.Conversion } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem) GetFraction() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFraction { if d == nil { - return 0 + return nil } - return d.Index + return d.Fraction } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQuality { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem) GetPrecision() *int { if d == nil { - return "" + return nil } - return d.IdentityQuality + return d.Precision } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetNm() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem) GetFixed() *bool { if d == nil { return nil } - return d.Nm + return d.Fixed } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem) GetThousands() *string { if d == nil { return nil } - return d.Flags + return d.Thousands } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem) GetDecimal() *string { if d == nil { return nil } - return d.Rect + return d.Decimal } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetContents() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem) GetPrefixSpacing() *string { if d == nil { return nil } - return d.Contents + return d.PrefixSpacing } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetSubject() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem) GetSuffixSpacing() *string { if d == nil { return nil } - return d.Subject + return d.SuffixSpacing } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetAuthor() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem) GetLabelPosition() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemLabelPosition { if d == nil { return nil } - return d.Author + return d.LabelPosition } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetCreated() *time.Time { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.Created + return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetModified() *time.Time { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetUnit sets the Unit field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFieldUnit) +} + +// SetConversion sets the Conversion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFieldConversion) +} + +// SetFraction sets the Fraction field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem) SetFraction(fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFieldFraction) +} + +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFieldPrecision) +} + +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem) SetLabelPosition(labelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFieldLabelPosition) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem) String() string { if d == nil { - return nil + return "" } - return d.Modified + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFraction string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFractionDecimal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFraction = "decimal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFractionFraction DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFraction = "fraction" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFractionRound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFraction = "round" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFractionTruncate DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFraction = "truncate" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFractionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFraction, error) { + switch s { + case "decimal": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFractionDecimal, nil + case "fraction": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFractionFraction, nil + case "round": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFractionRound, nil + case "truncate": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFractionTruncate, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFraction) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFraction { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemLabelPosition string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemLabelPositionSuffix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemLabelPosition = "suffix" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemLabelPositionPrefix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemLabelPosition = "prefix" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemLabelPositionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemLabelPosition, error) { + switch s { + case "suffix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemLabelPositionPrefix, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemLabelPosition) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemLabelPosition { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFieldLabelPosition = big.NewInt(1 << 9) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem) GetUnit() string { if d == nil { return "" } - return d.BlendMode + return d.Unit } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem) GetConversion() *float64 { if d == nil { return nil } - return d.InReplyTo + return d.Conversion } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyType { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem) GetFraction() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFraction { if d == nil { return nil } - return d.ReplyType + return d.Fraction } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetUserID() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem) GetPrecision() *int { if d == nil { return nil } - return d.UserID + return d.Precision } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetGroupID() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem) GetFixed() *bool { if d == nil { return nil } - return d.GroupID + return d.Fixed } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetCreatedBy() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem) GetThousands() *string { if d == nil { return nil } - return d.CreatedBy + return d.Thousands } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetUpdatedBy() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem) GetDecimal() *string { if d == nil { return nil } - return d.UpdatedBy + return d.Decimal } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetActions() *PdfAnnotationActions { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem) GetPrefixSpacing() *string { if d == nil { return nil } - return d.Actions + return d.PrefixSpacing } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetTarget() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem) GetSuffixSpacing() *string { if d == nil { return nil } - return d.Target + return d.SuffixSpacing } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem) GetLabelPosition() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemLabelPosition { + if d == nil { + return nil + } + return d.LabelPosition +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetRef sets the Ref field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef) { - d.Ref = ref - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldRef) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldPageObjectNumber) -} - -// SetIndex sets the Index field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldIndex) -} - -// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQuality) { - d.IdentityQuality = identityQuality - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldIdentityQuality) -} - -// SetNm sets the Nm field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetNm(nm *string) { - d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldNm) -} - -// SetFlags sets the Flags field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) { - d.Flags = flags - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldFlags) -} - -// SetRect sets the Rect field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) { - d.Rect = rect - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldRect) -} - -// SetContents sets the Contents field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetContents(contents *string) { - d.Contents = contents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldContents) -} - -// SetSubject sets the Subject field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetSubject(subject *string) { - d.Subject = subject - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldSubject) -} - -// SetAuthor sets the Author field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetAuthor(author *string) { - d.Author = author - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldAuthor) -} - -// SetCreated sets the Created field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetCreated(created *time.Time) { - d.Created = created - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldCreated) -} - -// SetModified sets the Modified field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetModified(modified *time.Time) { - d.Modified = modified - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldModified) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFieldUnit) } -// SetBlendMode sets the BlendMode field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode) { - d.BlendMode = blendMode - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldBlendMode) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFieldConversion) } -// SetInReplyTo sets the InReplyTo field and marks it as non-optional; +// SetFraction sets the Fraction field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo) { - d.InReplyTo = inReplyTo - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldInReplyTo) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem) SetFraction(fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFieldFraction) } -// SetReplyType sets the ReplyType field and marks it as non-optional; +// SetPrecision sets the Precision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyType) { - d.ReplyType = replyType - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldReplyType) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFieldPrecision) } -// SetUserID sets the UserID field and marks it as non-optional; +// SetFixed sets the Fixed field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetUserID(userID *string) { - d.UserID = userID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldUserID) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFieldFixed) } -// SetGroupID sets the GroupID field and marks it as non-optional; +// SetThousands sets the Thousands field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetGroupID(groupID *string) { - d.GroupID = groupID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldGroupID) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFieldThousands) } -// SetCreatedBy sets the CreatedBy field and marks it as non-optional; +// SetDecimal sets the Decimal field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetCreatedBy(createdBy *string) { - d.CreatedBy = createdBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldCreatedBy) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFieldDecimal) } -// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetUpdatedBy(updatedBy *string) { - d.UpdatedBy = updatedBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldUpdatedBy) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFieldPrefixSpacing) } -// SetActions sets the Actions field and marks it as non-optional; +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetActions(actions *PdfAnnotationActions) { - d.Actions = actions - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldActions) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFieldSuffixSpacing) } -// SetTarget sets the Target field and marks it as non-optional; +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) SetTarget(target *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget) { - d.Target = target - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFieldTarget) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem) SetLabelPosition(labelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFieldLabelPosition) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) UnmarshalJSON(data []byte) error { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink - var unmarshaler = struct { - embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` - }{ - embed: embed(*d), - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(unmarshaler.embed) - d.Created = unmarshaler.Created.TimePtr() - d.Modified = unmarshaler.Modified.TimePtr() + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -79293,22 +96297,18 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) Unmarshal return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem var marshaler = struct { embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), - Created: internal.NewOptionalDateTime(d.Created), - Modified: internal.NewOptionalDateTime(d.Modified), + embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem) String() string { if d == nil { return "" } @@ -79323,94 +96323,57 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink) String() return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFraction string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode = "normal" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode = "multiply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode = "screen" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode = "overlay" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode = "darken" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode = "lighten" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode = "color-dodge" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode = "color-burn" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode = "hard-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode = "soft-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode = "difference" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode = "exclusion" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode = "hue" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode = "saturation" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode = "color" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode = "luminosity" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFractionDecimal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFraction = "decimal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFractionFraction DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFraction = "fraction" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFractionRound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFraction = "round" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFractionTruncate DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFraction = "truncate" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFractionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFraction, error) { switch s { - case "normal": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeNormal, nil - case "multiply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeMultiply, nil - case "screen": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeScreen, nil - case "overlay": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeOverlay, nil - case "darken": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeDarken, nil - case "lighten": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeLighten, nil - case "color-dodge": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeColorDodge, nil - case "color-burn": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeColorBurn, nil - case "hard-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeHardLight, nil - case "soft-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeSoftLight, nil - case "difference": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeDifference, nil - case "exclusion": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeExclusion, nil - case "hue": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeHue, nil - case "saturation": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeSaturation, nil - case "color": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeColor, nil - case "luminosity": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendModeLuminosity, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode + case "decimal": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFractionDecimal, nil + case "fraction": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFractionFraction, nil + case "round": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFractionRound, nil + case "truncate": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFractionTruncate, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFraction return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFraction) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFraction { return &d } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldInvisible = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldHidden = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldPrint = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldNoZoom = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldNoRotate = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldNoView = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldReadOnly = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldLocked = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldToggleNoView = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldLockedContents = big.NewInt(1 << 9) +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemLabelPosition string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemLabelPositionSuffix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemLabelPosition = "suffix" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemLabelPositionPrefix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemLabelPosition = "prefix" ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags struct { - Invisible bool `json:"invisible" url:"invisible"` - Hidden bool `json:"hidden" url:"hidden"` - Print bool `json:"print" url:"print"` - NoZoom bool `json:"noZoom" url:"noZoom"` - NoRotate bool `json:"noRotate" url:"noRotate"` - NoView bool `json:"noView" url:"noView"` - ReadOnly bool `json:"readOnly" url:"readOnly"` - Locked bool `json:"locked" url:"locked"` - ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` - LockedContents bool `json:"lockedContents" url:"lockedContents"` +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemLabelPositionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemLabelPosition, error) { + switch s { + case "suffix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemLabelPositionPrefix, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemLabelPosition) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemLabelPosition { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureUnknown struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -79419,167 +96382,159 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) GetInvisible() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureUnknown) GetExtraProperties() map[string]interface{} { if d == nil { - return false + return nil } - return d.Invisible + return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) GetHidden() bool { - if d == nil { - return false +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureUnknown) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.Hidden + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) GetPrint() bool { - if d == nil { - return false +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureUnknown) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureUnknown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - return d.Print + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureUnknown(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) GetNoZoom() bool { - if d == nil { - return false +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureUnknown) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureUnknown + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return d.NoZoom + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) GetNoRotate() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureUnknown) String() string { if d == nil { - return false + return "" } - return d.NoRotate + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) GetNoView() bool { - if d == nil { - return false - } - return d.NoView +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRectFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRectFieldTop = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect struct { + Left float64 `json:"left" url:"left"` + Bottom float64 `json:"bottom" url:"bottom"` + Right float64 `json:"right" url:"right"` + Top float64 `json:"top" url:"top"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) GetReadOnly() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) GetLeft() float64 { if d == nil { - return false + return 0 } - return d.ReadOnly + return d.Left } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) GetLocked() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) GetBottom() float64 { if d == nil { - return false + return 0 } - return d.Locked + return d.Bottom } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) GetToggleNoView() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) GetRight() float64 { if d == nil { - return false + return 0 } - return d.ToggleNoView + return d.Right } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) GetLockedContents() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) GetTop() float64 { if d == nil { - return false + return 0 } - return d.LockedContents + return d.Top } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetInvisible sets the Invisible field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) SetInvisible(invisible bool) { - d.Invisible = invisible - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldInvisible) -} - -// SetHidden sets the Hidden field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) SetHidden(hidden bool) { - d.Hidden = hidden - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldHidden) -} - -// SetPrint sets the Print field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) SetPrint(print bool) { - d.Print = print - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldPrint) -} - -// SetNoZoom sets the NoZoom field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) SetNoZoom(noZoom bool) { - d.NoZoom = noZoom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldNoZoom) -} - -// SetNoRotate sets the NoRotate field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) SetNoRotate(noRotate bool) { - d.NoRotate = noRotate - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldNoRotate) -} - -// SetNoView sets the NoView field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) SetNoView(noView bool) { - d.NoView = noView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldNoView) -} - -// SetReadOnly sets the ReadOnly field and marks it as non-optional; +// SetLeft sets the Left field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) SetReadOnly(readOnly bool) { - d.ReadOnly = readOnly - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldReadOnly) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRectFieldLeft) } -// SetLocked sets the Locked field and marks it as non-optional; +// SetBottom sets the Bottom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) SetLocked(locked bool) { - d.Locked = locked - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldLocked) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRectFieldBottom) } -// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// SetRight sets the Right field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) SetToggleNoView(toggleNoView bool) { - d.ToggleNoView = toggleNoView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldToggleNoView) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRectFieldRight) } -// SetLockedContents sets the LockedContents field and marks it as non-optional; +// SetTop sets the Top field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) SetLockedContents(lockedContents bool) { - d.LockedContents = lockedContents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlagsFieldLockedContents) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRectFieldTop) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -79589,8 +96544,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) Unma return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect var marshaler = struct { embed }{ @@ -79600,7 +96555,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) Mars return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) String() string { if d == nil { return "" } @@ -79615,66 +96570,44 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags) Stri return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQuality string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQuality = "durable" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQuality = "weak" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQuality, error) { - switch s { - case "durable": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQualityDurable, nil - case "weak": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQualityWeak, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQuality - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQuality { - return &d -} - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef struct { Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo) GetKind() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber { if d == nil { return nil } return d.ObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex { if d == nil { return nil } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo) UnmarshalJSON(data []byte) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -79687,19 +96620,19 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo) } switch unmarshaler.Kind { case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber) if err := json.Unmarshal(data, &value); err != nil { return err } d.ObjectNumber = value case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm) if err := json.Unmarshal(data, &value); err != nil { return err } d.Nm = value case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -79709,7 +96642,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo) return nil } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -79728,13 +96661,13 @@ func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo) M return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex) error +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) error } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToVisitor) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefVisitor) error { if d.ObjectNumber != nil { return visitor.VisitObjectNumber(d.ObjectNumber) } @@ -79747,7 +96680,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo) return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo) validate() error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -79788,15 +96721,15 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo) } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -79805,35 +96738,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision { if d == nil { return nil } return d.Revision } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -79842,32 +96775,248 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIn // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex) SetIndex(index int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) SetIndex(index int) { d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexFieldIndex) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexFieldIndex) } // SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision) { d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexFieldRevision) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexFieldRevision) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevisionFieldDocSessionID) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevisionFieldPageObjectNumber) +} + +// SetGeneration sets the Generation field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNmFieldNm = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNmFieldPageObjectNumber) +} + +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNmFieldNm) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -79877,8 +97026,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIn return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm var marshaler = struct { embed }{ @@ -79888,7 +97037,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIn return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm) String() string { if d == nil { return "" } @@ -79904,15 +97053,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIn } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -79921,69 +97068,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexR rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision) GetDocSessionID() string { - if d == nil { - return "" - } - return d.DocSessionID -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision) GetGeneration() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } - return d.Generation + return d.AnnotObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevisionFieldDocSessionID) -} - // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevisionFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumberFieldPageObjectNumber) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevisionFieldGeneration) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -79993,8 +97126,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIn return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber var marshaler = struct { embed }{ @@ -80004,7 +97137,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIn return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber) String() string { if d == nil { return "" } @@ -80019,14 +97152,36 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIn return fmt.Sprintf("%#v", d) } +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType = "reply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType = "group" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType, error) { + switch s { + case "reply": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyTypeReply, nil + case "group": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyTypeGroup, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType { + return &d +} + var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNmFieldNm = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItemFieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItemFieldY = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -80035,55 +97190,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm str rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem) GetX() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.X } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm) GetNm() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem) GetY() float64 { if d == nil { - return "" + return 0 } - return d.Nm + return d.Y } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNmFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItemFieldX) } -// SetNm sets the Nm field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNmFieldNm) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItemFieldY) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -80093,8 +97248,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem var marshaler = struct { embed }{ @@ -80104,7 +97259,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem) String() string { if d == nil { return "" } @@ -80120,13 +97275,73 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldIntent = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldMeasure = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldCaption = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldRef = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldPageObjectNumber = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldIndex = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldIdentityQuality = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldNm = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldFlags = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldRect = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldContents = big.NewInt(1 << 10) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldSubject = big.NewInt(1 << 11) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldAuthor = big.NewInt(1 << 12) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldCreated = big.NewInt(1 << 13) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldModified = big.NewInt(1 << 14) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldBlendMode = big.NewInt(1 << 15) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldInReplyTo = big.NewInt(1 << 16) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldReplyType = big.NewInt(1 << 17) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldUserID = big.NewInt(1 << 18) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldGroupID = big.NewInt(1 << 19) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldCreatedBy = big.NewInt(1 << 20) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldUpdatedBy = big.NewInt(1 << 21) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldActions = big.NewInt(1 << 22) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldColor = big.NewInt(1 << 23) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldOpacity = big.NewInt(1 << 24) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldStrokeWidth = big.NewInt(1 << 25) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldBorderStyle = big.NewInt(1 << 26) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldDashArray = big.NewInt(1 << 27) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldInteriorColor = big.NewInt(1 << 28) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldVertices = big.NewInt(1 << 29) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldRotation = big.NewInt(1 << 30) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldLineEndings = big.NewInt(1 << 31) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline struct { + Intent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIntent `json:"intent,omitempty" url:"intent,omitempty"` + Measure *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasure `json:"measure,omitempty" url:"measure,omitempty"` + Caption *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption `json:"caption,omitempty" url:"caption,omitempty"` + Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef `json:"ref" url:"ref"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality `json:"identityQuality" url:"identityQuality"` + Nm *string `json:"nm,omitempty" url:"nm,omitempty"` + Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags `json:"flags" url:"flags"` + Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect `json:"rect" url:"rect"` + Contents *string `json:"contents,omitempty" url:"contents,omitempty"` + Subject *string `json:"subject,omitempty" url:"subject,omitempty"` + Author *string `json:"author,omitempty" url:"author,omitempty"` + Created *time.Time `json:"created,omitempty" url:"created,omitempty"` + Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` + BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode `json:"blendMode" url:"blendMode"` + InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` + ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` + UserID *string `json:"userId,omitempty" url:"userId,omitempty"` + GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` + CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` + Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` + Color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor `json:"color" url:"color"` + Opacity float64 `json:"opacity" url:"opacity"` + StrokeWidth float64 `json:"strokeWidth" url:"strokeWidth"` + BorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle `json:"borderStyle" url:"borderStyle"` + DashArray []float64 `json:"dashArray,omitempty" url:"dashArray,omitempty"` + InteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor `json:"interiorColor,omitempty" url:"interiorColor,omitempty"` + Vertices []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem `json:"vertices" url:"vertices"` + Rotation *float64 `json:"rotation,omitempty" url:"rotation,omitempty"` + LineEndings *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings `json:"lineEndings" url:"lineEndings"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -80135,187 +97350,483 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObject rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetIntent() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIntent { + if d == nil { + return nil + } + return d.Intent +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetMeasure() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasure { + if d == nil { + return nil + } + return d.Measure +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetCaption() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption { + if d == nil { + return nil + } + return d.Caption +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef { + if d == nil { + return nil + } + return d.Ref +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetIndex() int { if d == nil { return 0 } - return d.AnnotObjectNumber + return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality { + if d == nil { + return "" + } + return d.IdentityQuality +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetNm() *string { + if d == nil { + return nil + } + return d.Nm +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags { + if d == nil { + return nil + } + return d.Flags +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect { + if d == nil { + return nil + } + return d.Rect +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetContents() *string { + if d == nil { + return nil + } + return d.Contents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetAuthor() *string { + if d == nil { + return nil + } + return d.Author +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetCreated() *time.Time { + if d == nil { + return nil + } + return d.Created +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetModified() *time.Time { + if d == nil { + return nil + } + return d.Modified +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode { + if d == nil { + return "" + } + return d.BlendMode +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo { + if d == nil { + return nil + } + return d.InReplyTo +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyType { + if d == nil { + return nil + } + return d.ReplyType +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetUserID() *string { + if d == nil { + return nil + } + return d.UserID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetGroupID() *string { + if d == nil { + return nil + } + return d.GroupID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetCreatedBy() *string { + if d == nil { + return nil + } + return d.CreatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetUpdatedBy() *string { + if d == nil { + return nil + } + return d.UpdatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetActions() *PdfAnnotationActions { + if d == nil { + return nil + } + return d.Actions +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor { + if d == nil { + return nil + } + return d.Color +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetOpacity() float64 { + if d == nil { + return 0 + } + return d.Opacity +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetStrokeWidth() float64 { + if d == nil { + return 0 + } + return d.StrokeWidth +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetBorderStyle() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle { + if d == nil { + return "" + } + return d.BorderStyle +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetDashArray() []float64 { + if d == nil { + return nil + } + return d.DashArray +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetInteriorColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor { + if d == nil { + return nil + } + return d.InteriorColor +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetVertices() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem { + if d == nil { + return nil + } + return d.Vertices +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetRotation() *float64 { + if d == nil { + return nil + } + return d.Rotation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetLineEndings() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings { + if d == nil { + return nil + } + return d.LineEndings +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } +// SetIntent sets the Intent field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetIntent(intent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIntent) { + d.Intent = intent + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldIntent) +} + +// SetMeasure sets the Measure field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetMeasure(measure *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasure) { + d.Measure = measure + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldMeasure) +} + +// SetCaption sets the Caption field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetCaption(caption *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption) { + d.Caption = caption + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldCaption) +} + +// SetRef sets the Ref field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef) { + d.Ref = ref + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldRef) +} + // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumberFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldPageObjectNumber) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumberFieldAnnotObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldIndex) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil +// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality) { + d.IdentityQuality = identityQuality + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldIdentityQuality) +} + +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetNm(nm *string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldNm) +} + +// SetFlags sets the Flags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) { + d.Flags = flags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldFlags) +} + +// SetRect sets the Rect field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect) { + d.Rect = rect + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldRect) +} + +// SetContents sets the Contents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetContents(contents *string) { + d.Contents = contents + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldContents) +} + +// SetSubject sets the Subject field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetSubject(subject *string) { + d.Subject = subject + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldSubject) +} + +// SetAuthor sets the Author field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetAuthor(author *string) { + d.Author = author + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldAuthor) +} + +// SetCreated sets the Created field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetCreated(created *time.Time) { + d.Created = created + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldCreated) +} + +// SetModified sets the Modified field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetModified(modified *time.Time) { + d.Modified = modified + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldModified) +} + +// SetBlendMode sets the BlendMode field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode) { + d.BlendMode = blendMode + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldBlendMode) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) +// SetInReplyTo sets the InReplyTo field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo) { + d.InReplyTo = inReplyTo + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldInReplyTo) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) +// SetReplyType sets the ReplyType field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyType) { + d.ReplyType = replyType + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldReplyType) } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRectFieldRight = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRectFieldTop = big.NewInt(1 << 3) -) +// SetUserID sets the UserID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetUserID(userID *string) { + d.UserID = userID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldUserID) +} -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect struct { - Left float64 `json:"left" url:"left"` - Bottom float64 `json:"bottom" url:"bottom"` - Right float64 `json:"right" url:"right"` - Top float64 `json:"top" url:"top"` +// SetGroupID sets the GroupID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetGroupID(groupID *string) { + d.GroupID = groupID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldGroupID) +} - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +// SetCreatedBy sets the CreatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetCreatedBy(createdBy *string) { + d.CreatedBy = createdBy + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldCreatedBy) +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetUpdatedBy(updatedBy *string) { + d.UpdatedBy = updatedBy + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldUpdatedBy) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) GetLeft() float64 { - if d == nil { - return 0 - } - return d.Left +// SetActions sets the Actions field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetActions(actions *PdfAnnotationActions) { + d.Actions = actions + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldActions) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) GetBottom() float64 { - if d == nil { - return 0 - } - return d.Bottom +// SetColor sets the Color field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetColor(color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor) { + d.Color = color + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldColor) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) GetRight() float64 { - if d == nil { - return 0 - } - return d.Right +// SetOpacity sets the Opacity field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetOpacity(opacity float64) { + d.Opacity = opacity + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldOpacity) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) GetTop() float64 { - if d == nil { - return 0 - } - return d.Top +// SetStrokeWidth sets the StrokeWidth field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetStrokeWidth(strokeWidth float64) { + d.StrokeWidth = strokeWidth + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldStrokeWidth) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties +// SetBorderStyle sets the BorderStyle field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetBorderStyle(borderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle) { + d.BorderStyle = borderStyle + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldBorderStyle) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) +// SetDashArray sets the DashArray field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetDashArray(dashArray []float64) { + d.DashArray = dashArray + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldDashArray) } -// SetLeft sets the Left field and marks it as non-optional; +// SetInteriorColor sets the InteriorColor field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) SetLeft(left float64) { - d.Left = left - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRectFieldLeft) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetInteriorColor(interiorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor) { + d.InteriorColor = interiorColor + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldInteriorColor) } -// SetBottom sets the Bottom field and marks it as non-optional; +// SetVertices sets the Vertices field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRectFieldBottom) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetVertices(vertices []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem) { + d.Vertices = vertices + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldVertices) } -// SetRight sets the Right field and marks it as non-optional; +// SetRotation sets the Rotation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) SetRight(right float64) { - d.Right = right - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRectFieldRight) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetRotation(rotation *float64) { + d.Rotation = rotation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldRotation) } -// SetTop sets the Top field and marks it as non-optional; +// SetLineEndings sets the LineEndings field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRectFieldTop) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetLineEndings(lineEndings *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings) { + d.LineEndings = lineEndings + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldLineEndings) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) UnmarshalJSON(data []byte) error { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + var unmarshaler = struct { + embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline(unmarshaler.embed) + d.Created = unmarshaler.Created.TimePtr() + d.Modified = unmarshaler.Modified.TimePtr() extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -80325,18 +97836,22 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) Unmar return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline var marshaler = struct { embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), + embed: embed(*d), + Created: internal.NewOptionalDateTime(d.Created), + Modified: internal.NewOptionalDateTime(d.Modified), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) String() string { if d == nil { return "" } @@ -80351,166 +97866,106 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect) Strin return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef struct { - Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex - - rawJSON json.RawMessage -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef) GetKind() string { - if d == nil { - return "" - } - return d.Kind -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber { - if d == nil { - return nil - } - return d.ObjectNumber -} +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode string -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm { - if d == nil { - return nil - } - return d.Nm -} +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode = "normal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode = "multiply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode = "screen" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode = "overlay" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode = "darken" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode = "lighten" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode = "color-dodge" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode = "color-burn" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode = "hard-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode = "soft-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode = "difference" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode = "exclusion" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode = "hue" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode = "saturation" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode = "color" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode = "luminosity" +) -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex { - if d == nil { - return nil +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode, error) { + switch s { + case "normal": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeNormal, nil + case "multiply": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeMultiply, nil + case "screen": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeScreen, nil + case "overlay": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeOverlay, nil + case "darken": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeDarken, nil + case "lighten": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeLighten, nil + case "color-dodge": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeColorDodge, nil + case "color-burn": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeColorBurn, nil + case "hard-light": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeHardLight, nil + case "soft-light": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeSoftLight, nil + case "difference": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeDifference, nil + case "exclusion": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeExclusion, nil + case "hue": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeHue, nil + case "saturation": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeSaturation, nil + case "color": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeColor, nil + case "luminosity": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeLuminosity, nil } - return d.Index + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Nm = value - case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Index = value - } - d.rawJSON = json.RawMessage(data) - return nil +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode { + return &d } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Nm != nil { - return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") - } - if d.Index != nil { - return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil - } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) -} +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle string -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) error -} +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyleSolid DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle = "solid" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyleDashed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle = "dashed" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyleBeveled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle = "beveled" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyleInset DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle = "inset" +) -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) - } - if d.Nm != nil { - return visitor.VisitNm(d.Nm) - } - if d.Index != nil { - return visitor.VisitIndex(d.Index) +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyleFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle, error) { + switch s { + case "solid": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyleSolid, nil + case "dashed": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyleDashed, nil + case "beveled": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyleBeveled, nil + case "inset": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyleInset, nil } - return fmt.Errorf("type %T does not define a non-empty union type", d) + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef) validate() error { - if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Nm != nil { - fields = append(fields, "nm") - } - if d.Index != nil { - fields = append(fields, "index") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } - } - return nil +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle { + return &d } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionFieldEnabled = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionFieldCenter = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption struct { + Enabled bool `json:"enabled" url:"enabled"` + Center *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter `json:"center,omitempty" url:"center,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -80519,69 +97974,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex struct rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption) GetEnabled() bool { if d == nil { - return 0 + return false } - return d.Index + return d.Enabled } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption) GetCenter() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter { if d == nil { return nil } - return d.Revision + return d.Center } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexFieldPageObjectNumber) -} - -// SetIndex sets the Index field and marks it as non-optional; +// SetEnabled sets the Enabled field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexFieldIndex) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption) SetEnabled(enabled bool) { + d.Enabled = enabled + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionFieldEnabled) } -// SetRevision sets the Revision field and marks it as non-optional; +// SetCenter sets the Center field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision) { - d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexFieldRevision) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption) SetCenter(center *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter) { + d.Center = center + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionFieldCenter) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -80591,8 +98032,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) U return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption var marshaler = struct { embed }{ @@ -80602,7 +98043,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) M return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption) String() string { if d == nil { return "" } @@ -80618,15 +98059,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex) S } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenterFieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenterFieldY = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -80635,69 +98074,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevisio rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision) GetDocSessionID() string { - if d == nil { - return "" - } - return d.DocSessionID -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter) GetX() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.X } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision) GetGeneration() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter) GetY() float64 { if d == nil { return 0 } - return d.Generation + return d.Y } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevisionFieldDocSessionID) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevisionFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenterFieldX) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevisionFieldGeneration) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenterFieldY) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -80707,8 +98132,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRev return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter var marshaler = struct { embed }{ @@ -80718,7 +98143,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRev return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter) String() string { if d == nil { return "" } @@ -80734,13 +98159,15 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRev } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNmFieldNm = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColorFieldB = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor struct { + R int `json:"r" url:"r"` + G int `json:"g" url:"g"` + B int `json:"b" url:"b"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -80749,55 +98176,69 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor) GetR() int { + if d == nil { + return 0 + } + return d.R +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor) GetG() int { if d == nil { return 0 } - return d.PageObjectNumber + return d.G } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm) GetNm() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor) GetB() int { if d == nil { - return "" + return 0 } - return d.Nm + return d.B } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetR sets the R field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNmFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor) SetR(r int) { + d.R = r + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColorFieldR) } -// SetNm sets the Nm field and marks it as non-optional; +// SetG sets the G field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNmFieldNm) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor) SetG(g int) { + d.G = g + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColorFieldG) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm +// SetB sets the B field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor) SetB(b int) { + d.B = b + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColorFieldB) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -80807,8 +98248,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm) Unma return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor var marshaler = struct { embed }{ @@ -80818,7 +98259,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm) Mars return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor) String() string { if d == nil { return "" } @@ -80834,13 +98275,29 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm) Stri } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldInvisible = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldHidden = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldPrint = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldNoZoom = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldNoRotate = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldNoView = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldReadOnly = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldLocked = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldToggleNoView = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldLockedContents = big.NewInt(1 << 9) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags struct { + Invisible bool `json:"invisible" url:"invisible"` + Hidden bool `json:"hidden" url:"hidden"` + Print bool `json:"print" url:"print"` + NoZoom bool `json:"noZoom" url:"noZoom"` + NoRotate bool `json:"noRotate" url:"noRotate"` + NoView bool `json:"noView" url:"noView"` + ReadOnly bool `json:"readOnly" url:"readOnly"` + Locked bool `json:"locked" url:"locked"` + ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` + LockedContents bool `json:"lockedContents" url:"lockedContents"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -80849,55 +98306,167 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) GetInvisible() bool { if d == nil { - return 0 + return false } - return d.PageObjectNumber + return d.Invisible } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) GetHidden() bool { if d == nil { - return 0 + return false } - return d.AnnotObjectNumber + return d.Hidden } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) GetPrint() bool { + if d == nil { + return false + } + return d.Print +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) GetNoZoom() bool { + if d == nil { + return false + } + return d.NoZoom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) GetNoRotate() bool { + if d == nil { + return false + } + return d.NoRotate +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) GetNoView() bool { + if d == nil { + return false + } + return d.NoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) GetReadOnly() bool { + if d == nil { + return false + } + return d.ReadOnly +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) GetLocked() bool { + if d == nil { + return false + } + return d.Locked +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) GetToggleNoView() bool { + if d == nil { + return false + } + return d.ToggleNoView +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) GetLockedContents() bool { + if d == nil { + return false + } + return d.LockedContents +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetInvisible sets the Invisible field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumberFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) SetInvisible(invisible bool) { + d.Invisible = invisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldInvisible) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetHidden sets the Hidden field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumberFieldAnnotObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) SetHidden(hidden bool) { + d.Hidden = hidden + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldHidden) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber +// SetPrint sets the Print field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) SetPrint(print bool) { + d.Print = print + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldPrint) +} + +// SetNoZoom sets the NoZoom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) SetNoZoom(noZoom bool) { + d.NoZoom = noZoom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldNoZoom) +} + +// SetNoRotate sets the NoRotate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) SetNoRotate(noRotate bool) { + d.NoRotate = noRotate + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldNoRotate) +} + +// SetNoView sets the NoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) SetNoView(noView bool) { + d.NoView = noView + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldNoView) +} + +// SetReadOnly sets the ReadOnly field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldReadOnly) +} + +// SetLocked sets the Locked field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) SetLocked(locked bool) { + d.Locked = locked + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldLocked) +} + +// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) SetToggleNoView(toggleNoView bool) { + d.ToggleNoView = toggleNoView + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldToggleNoView) +} + +// SetLockedContents sets the LockedContents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) SetLockedContents(lockedContents bool) { + d.LockedContents = lockedContents + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldLockedContents) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -80907,8 +98476,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNu return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags var marshaler = struct { embed }{ @@ -80918,7 +98487,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNu return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) String() string { if d == nil { return "" } @@ -80933,98 +98502,66 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNu return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyType string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyType = "reply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyType = "group" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality = "durable" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality = "weak" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyType, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality, error) { switch s { - case "reply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyTypeReply, nil - case "group": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyTypeGroup, nil + case "durable": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQualityDurable, nil + case "weak": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQualityWeak, nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyType + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyType { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality { return &d } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget struct { - Kind string - Goto *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto - URI *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI - GotoRemote *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote - Launch *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch - Javascript *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript - Named *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed - Unsupported *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget) GetKind() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget) GetGoto() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto { - if d == nil { - return nil - } - return d.Goto -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget) GetURI() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI { - if d == nil { - return nil - } - return d.URI -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget) GetGotoRemote() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote { - if d == nil { - return nil - } - return d.GotoRemote -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget) GetLaunch() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch { - if d == nil { - return nil - } - return d.Launch -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget) GetJavascript() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber { if d == nil { return nil } - return d.Javascript + return d.ObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget) GetNamed() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm { if d == nil { return nil } - return d.Named + return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget) GetUnsupported() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex { if d == nil { return nil } - return d.Unsupported + return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget) UnmarshalJSON(data []byte) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -81036,177 +98573,233 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget) Unm return fmt.Errorf("%T did not include discriminant kind", d) } switch unmarshaler.Kind { - case "goto": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Goto = value - case "uri": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.URI = value - case "goto-remote": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.GotoRemote = value - case "launch": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Launch = value - case "javascript": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript) + case "objectNumber": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber) if err := json.Unmarshal(data, &value); err != nil { return err } - d.Javascript = value - case "named": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed) + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm) if err := json.Unmarshal(data, &value); err != nil { return err } - d.Named = value - case "unsupported": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported) + d.Nm = value + case "index": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex) if err := json.Unmarshal(data, &value); err != nil { return err } - d.Unsupported = value + d.Index = value } d.rawJSON = json.RawMessage(data) return nil } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } - if d.Goto != nil { - return internal.MarshalJSONWithExtraProperty(d.Goto, "kind", "goto") + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") } - if d.URI != nil { - return internal.MarshalJSONWithExtraProperty(d.URI, "kind", "uri") + if d.Nm != nil { + return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") } - if d.GotoRemote != nil { - return internal.MarshalJSONWithExtraProperty(d.GotoRemote, "kind", "goto-remote") + if d.Index != nil { + return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") } - if d.Launch != nil { - return internal.MarshalJSONWithExtraProperty(d.Launch, "kind", "launch") + if len(d.rawJSON) > 0 { + return d.rawJSON, nil } - if d.Javascript != nil { - return internal.MarshalJSONWithExtraProperty(d.Javascript, "kind", "javascript") + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex) error +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) } - if d.Named != nil { - return internal.MarshalJSONWithExtraProperty(d.Named, "kind", "named") + if d.Nm != nil { + return visitor.VisitNm(d.Nm) } - if d.Unsupported != nil { - return internal.MarshalJSONWithExtraProperty(d.Unsupported, "kind", "unsupported") + if d.Index != nil { + return visitor.VisitIndex(d.Index) } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Nm != nil { + fields = append(fields, "nm") + } + if d.Index != nil { + fields = append(fields, "index") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetVisitor interface { - VisitGoto(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto) error - VisitURI(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI) error - VisitGotoRemote(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote) error - VisitLaunch(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch) error - VisitJavascript(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript) error - VisitNamed(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed) error - VisitUnsupported(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported) error +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexFieldRevision = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision `json:"revision" url:"revision"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexFieldPageObjectNumber) +} + +// SetIndex sets the Index field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexFieldIndex) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetVisitor) error { - if d.Goto != nil { - return visitor.VisitGoto(d.Goto) - } - if d.URI != nil { - return visitor.VisitURI(d.URI) - } - if d.GotoRemote != nil { - return visitor.VisitGotoRemote(d.GotoRemote) - } - if d.Launch != nil { - return visitor.VisitLaunch(d.Launch) - } - if d.Javascript != nil { - return visitor.VisitJavascript(d.Javascript) +// SetRevision sets the Revision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexFieldRevision) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - if d.Named != nil { - return visitor.VisitNamed(d.Named) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err } - if d.Unsupported != nil { - return visitor.VisitUnsupported(d.Unsupported) + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return fmt.Errorf("type %T does not define a non-empty union type", d) + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget) validate() error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex) String() string { if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.Goto != nil { - fields = append(fields, "goto") - } - if d.URI != nil { - fields = append(fields, "uri") - } - if d.GotoRemote != nil { - fields = append(fields, "goto-remote") - } - if d.Launch != nil { - fields = append(fields, "launch") - } - if d.Javascript != nil { - fields = append(fields, "javascript") - } - if d.Named != nil { - fields = append(fields, "named") - } - if d.Unsupported != nil { - fields = append(fields, "unsupported") + return "" } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } + if value, err := internal.StringifyJSON(d); err == nil { + return value } - return nil + return fmt.Sprintf("%#v", d) } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoFieldDestination = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto struct { - Destination *PdfDestination `json:"destination" url:"destination"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -81215,41 +98808,69 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto stru rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto) GetDestination() *PdfDestination { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision) GetDocSessionID() string { if d == nil { - return nil + return "" } - return d.Destination + return d.DocSessionID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDestination sets the Destination field and marks it as non-optional; +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto) SetDestination(destination *PdfDestination) { - d.Destination = destination - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoFieldDestination) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevisionFieldDocSessionID) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevisionFieldPageObjectNumber) +} + +// SetGeneration sets the Generation field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -81259,8 +98880,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto) return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision var marshaler = struct { embed }{ @@ -81270,7 +98891,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision) String() string { if d == nil { return "" } @@ -81286,11 +98907,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto) } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemoteFieldFile = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote struct { - File string `json:"file" url:"file"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -81299,41 +98922,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemot rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote) GetFile() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm) GetNm() string { if d == nil { return "" } - return d.File + return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetFile sets the File field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote) SetFile(file string) { - d.File = file - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemoteFieldFile) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNmFieldPageObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNmFieldNm) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -81343,8 +98980,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoR return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm var marshaler = struct { embed }{ @@ -81354,7 +98991,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoR return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm) String() string { if d == nil { return "" } @@ -81369,7 +99006,14 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoR return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript struct { +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -81378,27 +99022,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascrip rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumberFieldPageObjectNumber) +} + +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -81408,8 +99080,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavas return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber var marshaler = struct { embed }{ @@ -81419,7 +99091,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavas return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber) String() string { if d == nil { return "" } @@ -81434,12 +99106,35 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavas return fmt.Sprintf("%#v", d) } +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIntent string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIntentPolyLineDimension DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIntent = "PolyLineDimension" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIntentFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIntent, error) { + switch s { + case "PolyLineDimension": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIntentPolyLineDimension, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIntent + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIntent) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIntent { + return &d +} + var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunchFieldPath = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColorFieldB = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch struct { - Path string `json:"path" url:"path"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor struct { + R int `json:"r" url:"r"` + G int `json:"g" url:"g"` + B int `json:"b" url:"b"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -81448,41 +99143,69 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch st rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch) GetPath() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor) GetR() int { if d == nil { - return "" + return 0 } - return d.Path + return d.R } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor) GetG() int { + if d == nil { + return 0 + } + return d.G +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor) GetB() int { + if d == nil { + return 0 + } + return d.B +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPath sets the Path field and marks it as non-optional; +// SetR sets the R field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch) SetPath(path string) { - d.Path = path - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunchFieldPath) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor) SetR(r int) { + d.R = r + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColorFieldR) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch +// SetG sets the G field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor) SetG(g int) { + d.G = g + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColorFieldG) +} + +// SetB sets the B field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor) SetB(b int) { + d.B = b + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColorFieldB) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -81492,8 +99215,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunc return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor var marshaler = struct { embed }{ @@ -81503,7 +99226,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunc return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor) String() string { if d == nil { return "" } @@ -81519,11 +99242,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunc } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamedFieldName = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsFieldStart = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsFieldEnd = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed struct { - Name string `json:"name" url:"name"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings struct { + Start DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart `json:"start" url:"start"` + End DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd `json:"end" url:"end"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -81532,41 +99257,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed str rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed) GetName() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings) GetStart() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart { if d == nil { return "" } - return d.Name + return d.Start } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings) GetEnd() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd { + if d == nil { + return "" + } + return d.End +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetName sets the Name field and marks it as non-optional; +// SetStart sets the Start field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed) SetName(name string) { - d.Name = name - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamedFieldName) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings) SetStart(start DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart) { + d.Start = start + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsFieldStart) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed +// SetEnd sets the End field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings) SetEnd(end DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd) { + d.End = end + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsFieldEnd) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -81576,8 +99315,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings var marshaler = struct { embed }{ @@ -81587,7 +99326,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings) String() string { if d == nil { return "" } @@ -81602,77 +99341,249 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd string - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndNone DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd = "none" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndSquare DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd = "square" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndCircle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd = "circle" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndDiamond DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd = "diamond" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndOpenArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd = "open-arrow" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndClosedArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd = "closed-arrow" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndButt DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd = "butt" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndROpenArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd = "r-open-arrow" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndRClosedArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd = "r-closed-arrow" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndSlash DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd = "slash" +) - extraProperties map[string]interface{} - rawJSON json.RawMessage +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd, error) { + switch s { + case "none": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndNone, nil + case "square": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndSquare, nil + case "circle": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndCircle, nil + case "diamond": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndDiamond, nil + case "open-arrow": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndOpenArrow, nil + case "closed-arrow": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndClosedArrow, nil + case "butt": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndButt, nil + case "r-open-arrow": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndROpenArrow, nil + case "r-closed-arrow": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndRClosedArrow, nil + case "slash": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndSlash, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartNone DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart = "none" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartSquare DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart = "square" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartCircle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart = "circle" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartDiamond DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart = "diamond" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartOpenArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart = "open-arrow" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartClosedArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart = "closed-arrow" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartButt DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart = "butt" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartROpenArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart = "r-open-arrow" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartRClosedArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart = "r-closed-arrow" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartSlash DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart = "slash" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart, error) { + switch s { + case "none": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartNone, nil + case "square": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartSquare, nil + case "circle": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartCircle, nil + case "diamond": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartDiamond, nil + case "open-arrow": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartOpenArrow, nil + case "closed-arrow": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartClosedArrow, nil + case "butt": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartButt, nil + case "r-open-arrow": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartROpenArrow, nil + case "r-closed-arrow": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartRClosedArrow, nil + case "slash": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartSlash, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasure struct { + Subtype string + Rl *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl + Geo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureGeo + Unknown *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureUnknown + + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasure) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasure) GetRl() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl { + if d == nil { + return nil + } + return d.Rl } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasure) GetGeo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureGeo { if d == nil { return nil } - return d.extraProperties + return d.Geo } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasure) GetUnknown() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureUnknown { + if d == nil { + return nil } - d.explicitFields.Or(d.explicitFields, field) + return d.Unknown } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasure) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Subtype string `json:"subtype"` } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { + if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - d.extraProperties = extraProperties + d.Subtype = unmarshaler.Subtype + if unmarshaler.Subtype == "" { + return fmt.Errorf("%T did not include discriminant subtype", d) + } + switch unmarshaler.Subtype { + case "RL": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Rl = value + case "GEO": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureGeo) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Geo = value + case "unknown": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureUnknown) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Unknown = value + } d.rawJSON = json.RawMessage(data) return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasure) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + if d.Rl != nil { + return internal.MarshalJSONWithExtraProperty(d.Rl, "subtype", "RL") + } + if d.Geo != nil { + return internal.MarshalJSONWithExtraProperty(d.Geo, "subtype", "GEO") + } + if d.Unknown != nil { + return internal.MarshalJSONWithExtraProperty(d.Unknown, "subtype", "unknown") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported) String() string { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureVisitor interface { + VisitRl(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl) error + VisitGeo(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureGeo) error + VisitUnknown(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureUnknown) error +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasure) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureVisitor) error { + if d.Rl != nil { + return visitor.VisitRl(d.Rl) + } + if d.Geo != nil { + return visitor.VisitGeo(d.Geo) + } + if d.Unknown != nil { + return visitor.VisitUnknown(d.Unknown) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasure) validate() error { if d == nil { - return "" + return fmt.Errorf("type %T is nil", d) } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value + var fields []string + if d.Rl != nil { + fields = append(fields, "RL") + } + if d.Geo != nil { + fields = append(fields, "GEO") + } + if d.Unknown != nil { + fields = append(fields, "unknown") + } + if len(fields) == 0 { + if d.Subtype != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Subtype) } + return fmt.Errorf("type %T is empty", d) } - if value, err := internal.StringifyJSON(d); err == nil { - return value + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) } - return fmt.Sprintf("%#v", d) + if d.Subtype != "" { + field := fields[0] + if d.Subtype != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Subtype, + d, + ) + } + } + return nil } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURIFieldURI = big.NewInt(1 << 0) -) - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI struct { - URI string `json:"uri" url:"uri"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureGeo struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -81681,41 +99592,27 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI struc rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI) GetURI() string { - if d == nil { - return "" - } - return d.URI -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureGeo) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureGeo) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetURI sets the URI field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI) SetURI(uri string) { - d.URI = uri - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURIFieldURI) -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureGeo) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureGeo var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureGeo(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -81725,8 +99622,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI) return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureGeo) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureGeo var marshaler = struct { embed }{ @@ -81736,7 +99633,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureGeo) String() string { if d == nil { return "" } @@ -81752,67 +99649,27 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI) } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldRef = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldIndex = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldIdentityQuality = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldNm = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldFlags = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldRect = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldContents = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldSubject = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldAuthor = big.NewInt(1 << 9) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldCreated = big.NewInt(1 << 10) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldModified = big.NewInt(1 << 11) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldBlendMode = big.NewInt(1 << 12) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldInReplyTo = big.NewInt(1 << 13) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldReplyType = big.NewInt(1 << 14) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldUserID = big.NewInt(1 << 15) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldGroupID = big.NewInt(1 << 16) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldCreatedBy = big.NewInt(1 << 17) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldUpdatedBy = big.NewInt(1 << 18) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldActions = big.NewInt(1 << 19) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldColor = big.NewInt(1 << 20) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldOpacity = big.NewInt(1 << 21) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldStrokeWidth = big.NewInt(1 << 22) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldBorderStyle = big.NewInt(1 << 23) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldDashArray = big.NewInt(1 << 24) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldInteriorColor = big.NewInt(1 << 25) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldVertices = big.NewInt(1 << 26) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldRotation = big.NewInt(1 << 27) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldCloudyIntensity = big.NewInt(1 << 28) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlFieldRatio = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlFieldX = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlFieldY = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlFieldDistance = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlFieldArea = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlFieldAngle = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlFieldSlope = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlFieldOrigin = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlFieldCyx = big.NewInt(1 << 8) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon struct { - Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef `json:"ref" url:"ref"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality `json:"identityQuality" url:"identityQuality"` - Nm *string `json:"nm,omitempty" url:"nm,omitempty"` - Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags `json:"flags" url:"flags"` - Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect `json:"rect" url:"rect"` - Contents *string `json:"contents,omitempty" url:"contents,omitempty"` - Subject *string `json:"subject,omitempty" url:"subject,omitempty"` - Author *string `json:"author,omitempty" url:"author,omitempty"` - Created *time.Time `json:"created,omitempty" url:"created,omitempty"` - Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` - BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode `json:"blendMode" url:"blendMode"` - InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` - ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` - UserID *string `json:"userId,omitempty" url:"userId,omitempty"` - GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` - CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` - Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` - Color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor `json:"color" url:"color"` - Opacity float64 `json:"opacity" url:"opacity"` - StrokeWidth float64 `json:"strokeWidth" url:"strokeWidth"` - BorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle `json:"borderStyle" url:"borderStyle"` - DashArray []float64 `json:"dashArray,omitempty" url:"dashArray,omitempty"` - InteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor `json:"interiorColor,omitempty" url:"interiorColor,omitempty"` - Vertices []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem `json:"vertices" url:"vertices"` - Rotation *float64 `json:"rotation,omitempty" url:"rotation,omitempty"` - CloudyIntensity *float64 `json:"cloudyIntensity,omitempty" url:"cloudyIntensity,omitempty"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl struct { + Ratio *string `json:"ratio,omitempty" url:"ratio,omitempty"` + X []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem `json:"x" url:"x"` + Y []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem `json:"y,omitempty" url:"y,omitempty"` + Distance []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem `json:"distance" url:"distance"` + Area []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem `json:"area" url:"area"` + Angle []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem `json:"angle,omitempty" url:"angle,omitempty"` + Slope []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem `json:"slope,omitempty" url:"slope,omitempty"` + Origin *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin `json:"origin,omitempty" url:"origin,omitempty"` + Cyx *float64 `json:"cyx,omitempty" url:"cyx,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -81821,441 +99678,381 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl) GetRatio() *string { if d == nil { return nil } - return d.Ref + return d.Ratio } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl) GetX() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem { if d == nil { - return 0 + return nil } - return d.PageObjectNumber + return d.X } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl) GetY() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem { if d == nil { - return 0 + return nil } - return d.Index + return d.Y } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl) GetDistance() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem { if d == nil { - return "" + return nil } - return d.IdentityQuality + return d.Distance } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetNm() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl) GetArea() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem { if d == nil { return nil } - return d.Nm + return d.Area } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl) GetAngle() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem { if d == nil { return nil } - return d.Flags + return d.Angle } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl) GetSlope() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem { if d == nil { return nil } - return d.Rect + return d.Slope } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetContents() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl) GetOrigin() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin { if d == nil { return nil } - return d.Contents + return d.Origin } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetSubject() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl) GetCyx() *float64 { if d == nil { return nil } - return d.Subject + return d.Cyx } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetAuthor() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.Author + return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetCreated() *time.Time { - if d == nil { - return nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.Created + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetModified() *time.Time { - if d == nil { - return nil - } - return d.Modified +// SetRatio sets the Ratio field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl) SetRatio(ratio *string) { + d.Ratio = ratio + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlFieldRatio) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode { - if d == nil { - return "" - } - return d.BlendMode +// SetX sets the X field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl) SetX(x []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlFieldX) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo { - if d == nil { - return nil - } - return d.InReplyTo +// SetY sets the Y field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl) SetY(y []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlFieldY) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType { - if d == nil { - return nil - } - return d.ReplyType +// SetDistance sets the Distance field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl) SetDistance(distance []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem) { + d.Distance = distance + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlFieldDistance) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetUserID() *string { - if d == nil { - return nil - } - return d.UserID +// SetArea sets the Area field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl) SetArea(area []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem) { + d.Area = area + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlFieldArea) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetGroupID() *string { - if d == nil { - return nil +// SetAngle sets the Angle field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl) SetAngle(angle []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem) { + d.Angle = angle + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlFieldAngle) +} + +// SetSlope sets the Slope field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl) SetSlope(slope []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem) { + d.Slope = slope + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlFieldSlope) +} + +// SetOrigin sets the Origin field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl) SetOrigin(origin *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin) { + d.Origin = origin + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlFieldOrigin) +} + +// SetCyx sets the Cyx field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl) SetCyx(cyx *float64) { + d.Cyx = cyx + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlFieldCyx) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - return d.GroupID + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetCreatedBy() *string { - if d == nil { - return nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return d.CreatedBy + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetUpdatedBy() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl) String() string { if d == nil { - return nil + return "" } - return d.UpdatedBy + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetActions() *PdfAnnotationActions { +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFieldLabelPosition = big.NewInt(1 << 9) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem) GetUnit() string { if d == nil { - return nil + return "" } - return d.Actions + return d.Unit } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem) GetConversion() *float64 { if d == nil { return nil } - return d.Color + return d.Conversion } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetOpacity() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem) GetFraction() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFraction { if d == nil { - return 0 + return nil } - return d.Opacity + return d.Fraction } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetStrokeWidth() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem) GetPrecision() *int { if d == nil { - return 0 + return nil } - return d.StrokeWidth + return d.Precision } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetBorderStyle() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem) GetFixed() *bool { if d == nil { - return "" + return nil } - return d.BorderStyle + return d.Fixed } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetDashArray() []float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem) GetThousands() *string { if d == nil { return nil } - return d.DashArray + return d.Thousands } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetInteriorColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem) GetDecimal() *string { if d == nil { return nil } - return d.InteriorColor + return d.Decimal } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetVertices() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem) GetPrefixSpacing() *string { if d == nil { return nil } - return d.Vertices + return d.PrefixSpacing } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetRotation() *float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem) GetSuffixSpacing() *string { if d == nil { return nil } - return d.Rotation + return d.SuffixSpacing } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetCloudyIntensity() *float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem) GetLabelPosition() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemLabelPosition { if d == nil { return nil } - return d.CloudyIntensity + return d.LabelPosition } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetRef sets the Ref field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef) { - d.Ref = ref - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldRef) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldPageObjectNumber) -} - -// SetIndex sets the Index field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldIndex) -} - -// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality) { - d.IdentityQuality = identityQuality - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldIdentityQuality) -} - -// SetNm sets the Nm field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetNm(nm *string) { - d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldNm) -} - -// SetFlags sets the Flags field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) { - d.Flags = flags - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldFlags) -} - -// SetRect sets the Rect field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) { - d.Rect = rect - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldRect) -} - -// SetContents sets the Contents field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetContents(contents *string) { - d.Contents = contents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldContents) -} - -// SetSubject sets the Subject field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetSubject(subject *string) { - d.Subject = subject - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldSubject) -} - -// SetAuthor sets the Author field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetAuthor(author *string) { - d.Author = author - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldAuthor) -} - -// SetCreated sets the Created field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetCreated(created *time.Time) { - d.Created = created - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldCreated) -} - -// SetModified sets the Modified field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetModified(modified *time.Time) { - d.Modified = modified - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldModified) -} - -// SetBlendMode sets the BlendMode field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode) { - d.BlendMode = blendMode - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldBlendMode) -} - -// SetInReplyTo sets the InReplyTo field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo) { - d.InReplyTo = inReplyTo - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldInReplyTo) -} - -// SetReplyType sets the ReplyType field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType) { - d.ReplyType = replyType - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldReplyType) -} - -// SetUserID sets the UserID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetUserID(userID *string) { - d.UserID = userID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldUserID) -} - -// SetGroupID sets the GroupID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetGroupID(groupID *string) { - d.GroupID = groupID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldGroupID) -} - -// SetCreatedBy sets the CreatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetCreatedBy(createdBy *string) { - d.CreatedBy = createdBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldCreatedBy) -} - -// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetUpdatedBy(updatedBy *string) { - d.UpdatedBy = updatedBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldUpdatedBy) -} - -// SetActions sets the Actions field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetActions(actions *PdfAnnotationActions) { - d.Actions = actions - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldActions) -} - -// SetColor sets the Color field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetColor(color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) { - d.Color = color - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldColor) -} - -// SetOpacity sets the Opacity field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetOpacity(opacity float64) { - d.Opacity = opacity - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldOpacity) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFieldUnit) } -// SetStrokeWidth sets the StrokeWidth field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetStrokeWidth(strokeWidth float64) { - d.StrokeWidth = strokeWidth - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldStrokeWidth) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFieldConversion) } -// SetBorderStyle sets the BorderStyle field and marks it as non-optional; +// SetFraction sets the Fraction field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetBorderStyle(borderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle) { - d.BorderStyle = borderStyle - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldBorderStyle) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem) SetFraction(fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFieldFraction) } -// SetDashArray sets the DashArray field and marks it as non-optional; +// SetPrecision sets the Precision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetDashArray(dashArray []float64) { - d.DashArray = dashArray - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldDashArray) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFieldPrecision) } -// SetInteriorColor sets the InteriorColor field and marks it as non-optional; +// SetFixed sets the Fixed field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetInteriorColor(interiorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor) { - d.InteriorColor = interiorColor - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldInteriorColor) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFieldFixed) } -// SetVertices sets the Vertices field and marks it as non-optional; +// SetThousands sets the Thousands field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetVertices(vertices []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem) { - d.Vertices = vertices - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldVertices) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFieldThousands) } -// SetRotation sets the Rotation field and marks it as non-optional; +// SetDecimal sets the Decimal field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetRotation(rotation *float64) { - d.Rotation = rotation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldRotation) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFieldDecimal) } -// SetCloudyIntensity sets the CloudyIntensity field and marks it as non-optional; +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) SetCloudyIntensity(cloudyIntensity *float64) { - d.CloudyIntensity = cloudyIntensity - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFieldCloudyIntensity) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFieldPrefixSpacing) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) UnmarshalJSON(data []byte) error { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon - var unmarshaler = struct { - embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` - }{ - embed: embed(*d), - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem) SetLabelPosition(labelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFieldLabelPosition) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon(unmarshaler.embed) - d.Created = unmarshaler.Created.TimePtr() - d.Modified = unmarshaler.Modified.TimePtr() + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -82265,22 +100062,18 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) Unmars return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem var marshaler = struct { embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), - Created: internal.NewOptionalDateTime(d.Created), - Modified: internal.NewOptionalDateTime(d.Modified), + embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem) String() string { if d == nil { return "" } @@ -82295,108 +100088,80 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon) String return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFraction string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode = "normal" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode = "multiply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode = "screen" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode = "overlay" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode = "darken" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode = "lighten" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode = "color-dodge" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode = "color-burn" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode = "hard-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode = "soft-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode = "difference" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode = "exclusion" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode = "hue" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode = "saturation" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode = "color" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode = "luminosity" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFractionDecimal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFraction = "decimal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFractionFraction DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFraction = "fraction" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFractionRound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFraction = "round" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFractionTruncate DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFraction = "truncate" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFractionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFraction, error) { switch s { - case "normal": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeNormal, nil - case "multiply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeMultiply, nil - case "screen": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeScreen, nil - case "overlay": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeOverlay, nil - case "darken": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeDarken, nil - case "lighten": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeLighten, nil - case "color-dodge": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeColorDodge, nil - case "color-burn": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeColorBurn, nil - case "hard-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeHardLight, nil - case "soft-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeSoftLight, nil - case "difference": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeDifference, nil - case "exclusion": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeExclusion, nil - case "hue": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeHue, nil - case "saturation": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeSaturation, nil - case "color": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeColor, nil - case "luminosity": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendModeLuminosity, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode + case "decimal": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFractionDecimal, nil + case "fraction": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFractionFraction, nil + case "round": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFractionRound, nil + case "truncate": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFractionTruncate, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFraction return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFraction) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFraction { return &d } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemLabelPosition string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyleSolid DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle = "solid" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyleDashed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle = "dashed" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyleBeveled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle = "beveled" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyleInset DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle = "inset" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemLabelPositionSuffix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemLabelPosition = "suffix" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemLabelPositionPrefix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemLabelPosition = "prefix" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyleFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemLabelPositionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemLabelPosition, error) { switch s { - case "solid": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyleSolid, nil - case "dashed": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyleDashed, nil - case "beveled": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyleBeveled, nil - case "inset": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyleInset, nil + case "suffix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemLabelPositionPrefix, nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemLabelPosition return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemLabelPosition) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemLabelPosition { return &d } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColorFieldR = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColorFieldG = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColorFieldB = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFieldLabelPosition = big.NewInt(1 << 9) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor struct { - R int `json:"r" url:"r"` - G int `json:"g" url:"g"` - B int `json:"b" url:"b"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -82405,69 +100170,167 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor struct rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) GetR() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem) GetUnit() string { if d == nil { - return 0 + return "" } - return d.R + return d.Unit } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) GetG() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem) GetConversion() *float64 { if d == nil { - return 0 + return nil } - return d.G + return d.Conversion } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) GetB() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem) GetFraction() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFraction { if d == nil { - return 0 + return nil } - return d.B + return d.Fraction } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem) GetPrecision() *int { + if d == nil { + return nil + } + return d.Precision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem) GetFixed() *bool { + if d == nil { + return nil + } + return d.Fixed +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem) GetThousands() *string { + if d == nil { + return nil + } + return d.Thousands +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem) GetDecimal() *string { + if d == nil { + return nil + } + return d.Decimal +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem) GetPrefixSpacing() *string { + if d == nil { + return nil + } + return d.PrefixSpacing +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem) GetSuffixSpacing() *string { + if d == nil { + return nil + } + return d.SuffixSpacing +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem) GetLabelPosition() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemLabelPosition { + if d == nil { + return nil + } + return d.LabelPosition +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetR sets the R field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) SetR(r int) { - d.R = r - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColorFieldR) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFieldUnit) } -// SetG sets the G field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) SetG(g int) { - d.G = g - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColorFieldG) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFieldConversion) } -// SetB sets the B field and marks it as non-optional; +// SetFraction sets the Fraction field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) SetB(b int) { - d.B = b - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColorFieldB) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem) SetFraction(fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFieldFraction) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFieldPrecision) +} + +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem) SetLabelPosition(labelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFieldLabelPosition) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -82477,8 +100340,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) U return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem var marshaler = struct { embed }{ @@ -82488,7 +100351,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) M return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem) String() string { if d == nil { return "" } @@ -82503,30 +100366,80 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor) S return fmt.Sprintf("%#v", d) } +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFraction string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFractionDecimal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFraction = "decimal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFractionFraction DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFraction = "fraction" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFractionRound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFraction = "round" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFractionTruncate DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFraction = "truncate" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFractionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFraction, error) { + switch s { + case "decimal": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFractionDecimal, nil + case "fraction": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFractionFraction, nil + case "round": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFractionRound, nil + case "truncate": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFractionTruncate, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFraction) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFraction { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemLabelPosition string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemLabelPositionSuffix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemLabelPosition = "suffix" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemLabelPositionPrefix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemLabelPosition = "prefix" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemLabelPositionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemLabelPosition, error) { + switch s { + case "suffix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemLabelPositionPrefix, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemLabelPosition) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemLabelPosition { + return &d +} + var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldInvisible = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldHidden = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldPrint = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldNoZoom = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldNoRotate = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldNoView = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldReadOnly = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldLocked = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldToggleNoView = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldLockedContents = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFieldLabelPosition = big.NewInt(1 << 9) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags struct { - Invisible bool `json:"invisible" url:"invisible"` - Hidden bool `json:"hidden" url:"hidden"` - Print bool `json:"print" url:"print"` - NoZoom bool `json:"noZoom" url:"noZoom"` - NoRotate bool `json:"noRotate" url:"noRotate"` - NoView bool `json:"noView" url:"noView"` - ReadOnly bool `json:"readOnly" url:"readOnly"` - Locked bool `json:"locked" url:"locked"` - ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` - LockedContents bool `json:"lockedContents" url:"lockedContents"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -82535,167 +100448,167 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags struct rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) GetInvisible() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem) GetUnit() string { if d == nil { - return false + return "" } - return d.Invisible + return d.Unit } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) GetHidden() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem) GetConversion() *float64 { if d == nil { - return false + return nil } - return d.Hidden + return d.Conversion } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) GetPrint() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem) GetFraction() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFraction { if d == nil { - return false + return nil } - return d.Print + return d.Fraction } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) GetNoZoom() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem) GetPrecision() *int { if d == nil { - return false + return nil } - return d.NoZoom + return d.Precision } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) GetNoRotate() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem) GetFixed() *bool { if d == nil { - return false + return nil } - return d.NoRotate + return d.Fixed } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) GetNoView() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem) GetThousands() *string { if d == nil { - return false + return nil } - return d.NoView + return d.Thousands } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) GetReadOnly() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem) GetDecimal() *string { if d == nil { - return false + return nil } - return d.ReadOnly + return d.Decimal } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) GetLocked() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem) GetPrefixSpacing() *string { if d == nil { - return false + return nil } - return d.Locked + return d.PrefixSpacing } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) GetToggleNoView() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem) GetSuffixSpacing() *string { if d == nil { - return false + return nil } - return d.ToggleNoView + return d.SuffixSpacing } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) GetLockedContents() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem) GetLabelPosition() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemLabelPosition { if d == nil { - return false + return nil } - return d.LockedContents + return d.LabelPosition } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetInvisible sets the Invisible field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) SetInvisible(invisible bool) { - d.Invisible = invisible - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldInvisible) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFieldUnit) } -// SetHidden sets the Hidden field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) SetHidden(hidden bool) { - d.Hidden = hidden - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldHidden) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFieldConversion) } -// SetPrint sets the Print field and marks it as non-optional; +// SetFraction sets the Fraction field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) SetPrint(print bool) { - d.Print = print - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldPrint) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem) SetFraction(fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFieldFraction) } -// SetNoZoom sets the NoZoom field and marks it as non-optional; +// SetPrecision sets the Precision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) SetNoZoom(noZoom bool) { - d.NoZoom = noZoom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldNoZoom) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFieldPrecision) } -// SetNoRotate sets the NoRotate field and marks it as non-optional; +// SetFixed sets the Fixed field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) SetNoRotate(noRotate bool) { - d.NoRotate = noRotate - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldNoRotate) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFieldFixed) } -// SetNoView sets the NoView field and marks it as non-optional; +// SetThousands sets the Thousands field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) SetNoView(noView bool) { - d.NoView = noView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldNoView) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFieldThousands) } -// SetReadOnly sets the ReadOnly field and marks it as non-optional; +// SetDecimal sets the Decimal field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) SetReadOnly(readOnly bool) { - d.ReadOnly = readOnly - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldReadOnly) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFieldDecimal) } -// SetLocked sets the Locked field and marks it as non-optional; +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) SetLocked(locked bool) { - d.Locked = locked - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldLocked) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFieldPrefixSpacing) } -// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) SetToggleNoView(toggleNoView bool) { - d.ToggleNoView = toggleNoView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldToggleNoView) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFieldSuffixSpacing) } -// SetLockedContents sets the LockedContents field and marks it as non-optional; +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) SetLockedContents(lockedContents bool) { - d.LockedContents = lockedContents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlagsFieldLockedContents) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem) SetLabelPosition(labelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFieldLabelPosition) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -82705,8 +100618,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) U return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem var marshaler = struct { embed }{ @@ -82716,7 +100629,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) M return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem) String() string { if d == nil { return "" } @@ -82731,188 +100644,64 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags) S return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFraction string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality = "durable" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality = "weak" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFractionDecimal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFraction = "decimal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFractionFraction DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFraction = "fraction" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFractionRound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFraction = "round" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFractionTruncate DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFraction = "truncate" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFractionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFraction, error) { switch s { - case "durable": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQualityDurable, nil - case "weak": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQualityWeak, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality + case "decimal": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFractionDecimal, nil + case "fraction": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFractionFraction, nil + case "round": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFractionRound, nil + case "truncate": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFractionTruncate, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFraction return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFraction) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFraction { return &d } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo struct { - Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex - - rawJSON json.RawMessage -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo) GetKind() string { - if d == nil { - return "" - } - return d.Kind -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber { - if d == nil { - return nil - } - return d.ObjectNumber -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm { - if d == nil { - return nil - } - return d.Nm -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex { - if d == nil { - return nil - } - return d.Index -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Nm = value - case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Index = value - } - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Nm != nil { - return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") - } - if d.Index != nil { - return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil - } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) -} +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemLabelPosition string -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex) error -} +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemLabelPositionSuffix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemLabelPosition = "suffix" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemLabelPositionPrefix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemLabelPosition = "prefix" +) -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) - } - if d.Nm != nil { - return visitor.VisitNm(d.Nm) - } - if d.Index != nil { - return visitor.VisitIndex(d.Index) +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemLabelPositionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemLabelPosition, error) { + switch s { + case "suffix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemLabelPositionPrefix, nil } - return fmt.Errorf("type %T does not define a non-empty union type", d) + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo) validate() error { - if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Nm != nil { - fields = append(fields, "nm") - } - if d.Index != nil { - fields = append(fields, "index") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } - } - return nil +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemLabelPosition) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemLabelPosition { + return &d } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOriginFieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOriginFieldY = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -82921,69 +100710,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToInd rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin) GetX() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.X } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin) GetY() float64 { if d == nil { return 0 } - return d.Index -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision { - if d == nil { - return nil - } - return d.Revision + return d.Y } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexFieldPageObjectNumber) -} - -// SetIndex sets the Index field and marks it as non-optional; +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexFieldIndex) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOriginFieldX) } -// SetRevision sets the Revision field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) { - d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexFieldRevision) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOriginFieldY) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -82993,8 +100768,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyT return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin var marshaler = struct { embed }{ @@ -83004,7 +100779,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyT return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin) String() string { if d == nil { return "" } @@ -83020,15 +100795,29 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyT } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFieldLabelPosition = big.NewInt(1 << 9) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -83037,69 +100826,167 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToInd rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem) GetUnit() string { if d == nil { return "" } - return d.DocSessionID + return d.Unit } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem) GetConversion() *float64 { if d == nil { - return 0 + return nil } - return d.PageObjectNumber + return d.Conversion } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) GetGeneration() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem) GetFraction() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFraction { if d == nil { - return 0 + return nil } - return d.Generation + return d.Fraction } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem) GetPrecision() *int { + if d == nil { + return nil + } + return d.Precision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem) GetFixed() *bool { + if d == nil { + return nil + } + return d.Fixed +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem) GetThousands() *string { + if d == nil { + return nil + } + return d.Thousands +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem) GetDecimal() *string { + if d == nil { + return nil + } + return d.Decimal +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem) GetPrefixSpacing() *string { + if d == nil { + return nil + } + return d.PrefixSpacing +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem) GetSuffixSpacing() *string { + if d == nil { + return nil + } + return d.SuffixSpacing +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem) GetLabelPosition() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemLabelPosition { + if d == nil { + return nil + } + return d.LabelPosition +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevisionFieldDocSessionID) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFieldUnit) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevisionFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFieldConversion) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetFraction sets the Fraction field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevisionFieldGeneration) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem) SetFraction(fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFieldFraction) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFieldPrecision) +} + +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem) SetLabelPosition(labelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFieldLabelPosition) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -83109,8 +100996,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyT return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem var marshaler = struct { embed }{ @@ -83120,7 +101007,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyT return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem) String() string { if d == nil { return "" } @@ -83135,14 +101022,80 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyT return fmt.Sprintf("%#v", d) } +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFraction string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFractionDecimal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFraction = "decimal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFractionFraction DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFraction = "fraction" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFractionRound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFraction = "round" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFractionTruncate DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFraction = "truncate" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFractionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFraction, error) { + switch s { + case "decimal": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFractionDecimal, nil + case "fraction": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFractionFraction, nil + case "round": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFractionRound, nil + case "truncate": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFractionTruncate, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFraction) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFraction { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemLabelPosition string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemLabelPositionSuffix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemLabelPosition = "suffix" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemLabelPositionPrefix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemLabelPosition = "prefix" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemLabelPositionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemLabelPosition, error) { + switch s { + case "suffix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemLabelPositionPrefix, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemLabelPosition) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemLabelPosition { + return &d +} + var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNmFieldNm = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFieldLabelPosition = big.NewInt(1 << 9) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -83151,55 +101104,167 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem) GetUnit() string { if d == nil { - return 0 + return "" } - return d.PageObjectNumber + return d.Unit } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm) GetNm() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem) GetConversion() *float64 { if d == nil { - return "" + return nil } - return d.Nm + return d.Conversion } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem) GetFraction() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFraction { + if d == nil { + return nil + } + return d.Fraction +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem) GetPrecision() *int { + if d == nil { + return nil + } + return d.Precision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem) GetFixed() *bool { + if d == nil { + return nil + } + return d.Fixed +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem) GetThousands() *string { + if d == nil { + return nil + } + return d.Thousands +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem) GetDecimal() *string { + if d == nil { + return nil + } + return d.Decimal +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem) GetPrefixSpacing() *string { + if d == nil { + return nil + } + return d.PrefixSpacing +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem) GetSuffixSpacing() *string { + if d == nil { + return nil + } + return d.SuffixSpacing +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem) GetLabelPosition() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemLabelPosition { + if d == nil { + return nil + } + return d.LabelPosition +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNmFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFieldUnit) } -// SetNm sets the Nm field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNmFieldNm) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFieldConversion) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm +// SetFraction sets the Fraction field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem) SetFraction(fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFieldFraction) +} + +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFieldPrecision) +} + +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem) SetLabelPosition(labelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFieldLabelPosition) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -83209,8 +101274,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyT return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem var marshaler = struct { embed }{ @@ -83220,7 +101285,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyT return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem) String() string { if d == nil { return "" } @@ -83235,14 +101300,80 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyT return fmt.Sprintf("%#v", d) } +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFraction string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFractionDecimal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFraction = "decimal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFractionFraction DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFraction = "fraction" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFractionRound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFraction = "round" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFractionTruncate DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFraction = "truncate" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFractionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFraction, error) { + switch s { + case "decimal": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFractionDecimal, nil + case "fraction": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFractionFraction, nil + case "round": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFractionRound, nil + case "truncate": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFractionTruncate, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFraction) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFraction { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemLabelPosition string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemLabelPositionSuffix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemLabelPosition = "suffix" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemLabelPositionPrefix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemLabelPosition = "prefix" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemLabelPositionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemLabelPosition, error) { + switch s { + case "suffix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemLabelPositionPrefix, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemLabelPosition) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemLabelPosition { + return &d +} + var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFieldUnit = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFieldConversion = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFieldFraction = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFieldPrecision = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFieldFixed = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFieldThousands = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFieldDecimal = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFieldPrefixSpacing = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFieldSuffixSpacing = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFieldLabelPosition = big.NewInt(1 << 9) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -83251,55 +101382,167 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObj rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem) GetUnit() string { if d == nil { - return 0 + return "" } - return d.PageObjectNumber + return d.Unit } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem) GetConversion() *float64 { if d == nil { - return 0 + return nil } - return d.AnnotObjectNumber + return d.Conversion } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem) GetFraction() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFraction { + if d == nil { + return nil + } + return d.Fraction +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem) GetPrecision() *int { + if d == nil { + return nil + } + return d.Precision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem) GetFixed() *bool { + if d == nil { + return nil + } + return d.Fixed +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem) GetThousands() *string { + if d == nil { + return nil + } + return d.Thousands +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem) GetDecimal() *string { + if d == nil { + return nil + } + return d.Decimal +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem) GetPrefixSpacing() *string { + if d == nil { + return nil + } + return d.PrefixSpacing +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem) GetSuffixSpacing() *string { + if d == nil { + return nil + } + return d.SuffixSpacing +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem) GetLabelPosition() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemLabelPosition { + if d == nil { + return nil + } + return d.LabelPosition +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumberFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem) SetUnit(unit string) { + d.Unit = unit + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFieldUnit) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumberFieldAnnotObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFieldConversion) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber +// SetFraction sets the Fraction field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem) SetFraction(fraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFraction) { + d.Fraction = fraction + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFieldFraction) +} + +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFieldPrecision) +} + +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem) SetLabelPosition(labelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFieldLabelPosition) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -83309,8 +101552,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyT return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem var marshaler = struct { embed }{ @@ -83320,7 +101563,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyT return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem) String() string { if d == nil { return "" } @@ -83335,87 +101578,86 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyT return fmt.Sprintf("%#v", d) } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColorFieldR = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColorFieldG = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColorFieldB = big.NewInt(1 << 2) -) +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFraction string -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor struct { - R int `json:"r" url:"r"` - G int `json:"g" url:"g"` - B int `json:"b" url:"b"` +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFractionDecimal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFraction = "decimal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFractionFraction DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFraction = "fraction" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFractionRound DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFraction = "round" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFractionTruncate DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFraction = "truncate" +) - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFractionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFraction, error) { + switch s { + case "decimal": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFractionDecimal, nil + case "fraction": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFractionFraction, nil + case "round": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFractionRound, nil + case "truncate": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFractionTruncate, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFraction) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFraction { + return &d } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor) GetR() int { - if d == nil { - return 0 +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemLabelPosition string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemLabelPositionSuffix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemLabelPosition = "suffix" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemLabelPositionPrefix DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemLabelPosition = "prefix" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemLabelPositionFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemLabelPosition, error) { + switch s { + case "suffix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemLabelPositionSuffix, nil + case "prefix": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemLabelPositionPrefix, nil } - return d.R + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor) GetG() int { - if d == nil { - return 0 - } - return d.G +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemLabelPosition) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemLabelPosition { + return &d } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor) GetB() int { - if d == nil { - return 0 - } - return d.B +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureUnknown struct { + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureUnknown) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureUnknown) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetR sets the R field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor) SetR(r int) { - d.R = r - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColorFieldR) -} - -// SetG sets the G field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor) SetG(g int) { - d.G = g - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColorFieldG) -} - -// SetB sets the B field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor) SetB(b int) { - d.B = b - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColorFieldB) -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureUnknown) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureUnknown var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureUnknown(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -83425,8 +101667,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInterior return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureUnknown) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureUnknown var marshaler = struct { embed }{ @@ -83436,7 +101678,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInterior return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureUnknown) String() string { if d == nil { return "" } @@ -83452,13 +101694,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInterior } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRectFieldRight = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRectFieldTop = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRectFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRectFieldTop = big.NewInt(1 << 3) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect struct { Left float64 `json:"left" url:"left"` Bottom float64 `json:"bottom" url:"bottom"` Right float64 `json:"right" url:"right"` @@ -83471,42 +101713,42 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect struct rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) GetLeft() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect) GetLeft() float64 { if d == nil { return 0 } return d.Left } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) GetBottom() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect) GetBottom() float64 { if d == nil { return 0 } return d.Bottom } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) GetRight() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect) GetRight() float64 { if d == nil { return 0 } return d.Right } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) GetTop() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect) GetTop() float64 { if d == nil { return 0 } return d.Top } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -83515,39 +101757,39 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) re // SetLeft sets the Left field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) SetLeft(left float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect) SetLeft(left float64) { d.Left = left - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRectFieldLeft) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRectFieldLeft) } // SetBottom sets the Bottom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) SetBottom(bottom float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect) SetBottom(bottom float64) { d.Bottom = bottom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRectFieldBottom) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRectFieldBottom) } // SetRight sets the Right field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) SetRight(right float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect) SetRight(right float64) { d.Right = right - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRectFieldRight) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRectFieldRight) } // SetTop sets the Top field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) SetTop(top float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect) SetTop(top float64) { d.Top = top - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRectFieldTop) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRectFieldTop) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -83557,8 +101799,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) Un return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect var marshaler = struct { embed }{ @@ -83568,7 +101810,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) Ma return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect) String() string { if d == nil { return "" } @@ -83583,44 +101825,44 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect) St return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef struct { Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef) GetKind() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber { if d == nil { return nil } return d.ObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex { if d == nil { return nil } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef) UnmarshalJSON(data []byte) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -83633,19 +101875,19 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef) Unm } switch unmarshaler.Kind { case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber) if err := json.Unmarshal(data, &value); err != nil { return err } d.ObjectNumber = value case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm) if err := json.Unmarshal(data, &value); err != nil { return err } d.Nm = value case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -83655,7 +101897,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef) Unm return nil } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -83674,13 +101916,13 @@ func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef) Mars return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) error +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) error } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefVisitor) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefVisitor) error { if d.ObjectNumber != nil { return visitor.VisitObjectNumber(d.ObjectNumber) } @@ -83693,7 +101935,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef) Acc return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef) validate() error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -83734,15 +101976,15 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef) val } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -83751,35 +101993,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex str rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision { if d == nil { return nil } return d.Revision } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -83788,32 +102030,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) SetIndex(index int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) SetIndex(index int) { d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexFieldIndex) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexFieldIndex) } // SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision) { d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexFieldRevision) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexFieldRevision) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -83823,8 +102065,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex var marshaler = struct { embed }{ @@ -83834,7 +102076,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) String() string { if d == nil { return "" } @@ -83850,12 +102092,12 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision struct { DocSessionID string `json:"docSessionId" url:"docSessionId"` PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Generation int `json:"generation" url:"generation"` @@ -83867,35 +102109,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevi rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision) GetDocSessionID() string { if d == nil { return "" } return d.DocSessionID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision) GetGeneration() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision) GetGeneration() int { if d == nil { return 0 } return d.Generation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -83904,32 +102146,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex // SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision) SetDocSessionID(docSessionID string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision) SetDocSessionID(docSessionID string) { d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevisionFieldDocSessionID) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevisionFieldDocSessionID) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevisionFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevisionFieldPageObjectNumber) } // SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision) SetGeneration(generation int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision) SetGeneration(generation int) { d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevisionFieldGeneration) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevisionFieldGeneration) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -83939,8 +102181,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision var marshaler = struct { embed }{ @@ -83950,7 +102192,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision) String() string { if d == nil { return "" } @@ -83966,11 +102208,11 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNmFieldNm = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Nm string `json:"nm" url:"nm"` @@ -83981,28 +102223,28 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm struct rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm) GetNm() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm) GetNm() string { if d == nil { return "" } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -84011,25 +102253,25 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm) r // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNmFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNmFieldPageObjectNumber) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm) SetNm(nm string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm) SetNm(nm string) { d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNmFieldNm) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNmFieldNm) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -84039,8 +102281,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm) U return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm var marshaler = struct { embed }{ @@ -84050,7 +102292,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm) M return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm) String() string { if d == nil { return "" } @@ -84066,11 +102308,11 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm) S } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` @@ -84081,28 +102323,28 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNum rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } return d.AnnotObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -84111,25 +102353,25 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjec // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumberFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumberFieldPageObjectNumber) } // SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumberFieldAnnotObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -84139,8 +102381,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjec return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber var marshaler = struct { embed }{ @@ -84150,7 +102392,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjec return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber) String() string { if d == nil { return "" } @@ -84165,34 +102407,34 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjec return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyType string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType = "reply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType = "group" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyType = "reply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyType = "group" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyType, error) { switch s { case "reply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyTypeReply, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyTypeReply, nil case "group": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyTypeGroup, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyTypeGroup, nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyType return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyType { return &d } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItemFieldX = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItemFieldY = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItemFieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItemFieldY = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem struct { X float64 `json:"x" url:"x"` Y float64 `json:"y" url:"y"` @@ -84203,28 +102445,28 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem) GetX() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem) GetX() float64 { if d == nil { return 0 } return d.X } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem) GetY() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem) GetY() float64 { if d == nil { return 0 } return d.Y } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -84233,25 +102475,25 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVertices // SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem) SetX(x float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem) SetX(x float64) { d.X = x - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItemFieldX) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItemFieldX) } // SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem) SetY(y float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem) SetY(y float64) { d.Y = y - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItemFieldY) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItemFieldY) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -84261,8 +102503,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVertices return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem var marshaler = struct { embed }{ @@ -84272,7 +102514,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVertices return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem) String() string { if d == nil { return "" } @@ -84288,67 +102530,69 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVertices } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldRef = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldIndex = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldIdentityQuality = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldNm = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldFlags = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldRect = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldContents = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldSubject = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldAuthor = big.NewInt(1 << 9) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldCreated = big.NewInt(1 << 10) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldModified = big.NewInt(1 << 11) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldBlendMode = big.NewInt(1 << 12) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldInReplyTo = big.NewInt(1 << 13) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldReplyType = big.NewInt(1 << 14) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldUserID = big.NewInt(1 << 15) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldGroupID = big.NewInt(1 << 16) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldCreatedBy = big.NewInt(1 << 17) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldUpdatedBy = big.NewInt(1 << 18) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldActions = big.NewInt(1 << 19) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldColor = big.NewInt(1 << 20) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldOpacity = big.NewInt(1 << 21) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldStrokeWidth = big.NewInt(1 << 22) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldBorderStyle = big.NewInt(1 << 23) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldDashArray = big.NewInt(1 << 24) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldInteriorColor = big.NewInt(1 << 25) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldVertices = big.NewInt(1 << 26) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldRotation = big.NewInt(1 << 27) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldLineEndings = big.NewInt(1 << 28) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldRef = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldIndex = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldIdentityQuality = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldNm = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldFlags = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldRect = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldContents = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldSubject = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldAuthor = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldCreated = big.NewInt(1 << 10) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldModified = big.NewInt(1 << 11) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldBlendMode = big.NewInt(1 << 12) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldInReplyTo = big.NewInt(1 << 13) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldReplyType = big.NewInt(1 << 14) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldUserID = big.NewInt(1 << 15) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldGroupID = big.NewInt(1 << 16) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldCreatedBy = big.NewInt(1 << 17) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldUpdatedBy = big.NewInt(1 << 18) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldActions = big.NewInt(1 << 19) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldQuadPoints = big.NewInt(1 << 20) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldColor = big.NewInt(1 << 21) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldOpacity = big.NewInt(1 << 22) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldInteriorColor = big.NewInt(1 << 23) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldOverlayText = big.NewInt(1 << 24) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldRepeat = big.NewInt(1 << 25) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldFontFamily = big.NewInt(1 << 26) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldFontSize = big.NewInt(1 << 27) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldFontColor = big.NewInt(1 << 28) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldTextAlign = big.NewInt(1 << 29) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline struct { - Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef `json:"ref" url:"ref"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact struct { + Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef `json:"ref" url:"ref"` PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Index int `json:"index" url:"index"` - IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality `json:"identityQuality" url:"identityQuality"` + IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQuality `json:"identityQuality" url:"identityQuality"` Nm *string `json:"nm,omitempty" url:"nm,omitempty"` - Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags `json:"flags" url:"flags"` - Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect `json:"rect" url:"rect"` + Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags `json:"flags" url:"flags"` + Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect `json:"rect" url:"rect"` Contents *string `json:"contents,omitempty" url:"contents,omitempty"` Subject *string `json:"subject,omitempty" url:"subject,omitempty"` Author *string `json:"author,omitempty" url:"author,omitempty"` Created *time.Time `json:"created,omitempty" url:"created,omitempty"` Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` - BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode `json:"blendMode" url:"blendMode"` - InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` - ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` + BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode `json:"blendMode" url:"blendMode"` + InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` + ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` UserID *string `json:"userId,omitempty" url:"userId,omitempty"` GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` - Color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor `json:"color" url:"color"` + QuadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem `json:"quadPoints" url:"quadPoints"` + Color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor `json:"color" url:"color"` Opacity float64 `json:"opacity" url:"opacity"` - StrokeWidth float64 `json:"strokeWidth" url:"strokeWidth"` - BorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle `json:"borderStyle" url:"borderStyle"` - DashArray []float64 `json:"dashArray,omitempty" url:"dashArray,omitempty"` - InteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor `json:"interiorColor,omitempty" url:"interiorColor,omitempty"` - Vertices []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem `json:"vertices" url:"vertices"` - Rotation *float64 `json:"rotation,omitempty" url:"rotation,omitempty"` - LineEndings *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings `json:"lineEndings" url:"lineEndings"` + InteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor `json:"interiorColor,omitempty" url:"interiorColor,omitempty"` + OverlayText *string `json:"overlayText,omitempty" url:"overlayText,omitempty"` + Repeat bool `json:"repeat" url:"repeat"` + FontFamily DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily `json:"fontFamily" url:"fontFamily"` + FontSize float64 `json:"fontSize" url:"fontSize"` + FontColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor `json:"fontColor" url:"fontColor"` + TextAlign DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlign `json:"textAlign" url:"textAlign"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -84357,217 +102601,224 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef { if d == nil { return nil } return d.Ref } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQuality { if d == nil { return "" } return d.IdentityQuality } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetNm() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetNm() *string { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags { if d == nil { return nil } return d.Flags } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect { if d == nil { return nil } return d.Rect } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetContents() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetContents() *string { if d == nil { return nil } return d.Contents } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetSubject() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetSubject() *string { if d == nil { return nil } return d.Subject } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetAuthor() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetAuthor() *string { if d == nil { return nil } return d.Author } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetCreated() *time.Time { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetCreated() *time.Time { if d == nil { return nil } return d.Created } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetModified() *time.Time { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetModified() *time.Time { if d == nil { return nil } return d.Modified } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode { if d == nil { return "" } return d.BlendMode } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo { if d == nil { return nil } return d.InReplyTo } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyType { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType { if d == nil { return nil } return d.ReplyType } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetUserID() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetUserID() *string { if d == nil { return nil } return d.UserID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetGroupID() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetGroupID() *string { if d == nil { return nil } return d.GroupID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetCreatedBy() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetCreatedBy() *string { if d == nil { return nil } return d.CreatedBy } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetUpdatedBy() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetUpdatedBy() *string { if d == nil { return nil } return d.UpdatedBy } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetActions() *PdfAnnotationActions { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetActions() *PdfAnnotationActions { if d == nil { return nil } return d.Actions } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetQuadPoints() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem { + if d == nil { + return nil + } + return d.QuadPoints +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor { if d == nil { return nil } return d.Color } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetOpacity() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetOpacity() float64 { if d == nil { return 0 } return d.Opacity } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetStrokeWidth() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetInteriorColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor { if d == nil { - return 0 + return nil } - return d.StrokeWidth + return d.InteriorColor } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetBorderStyle() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetOverlayText() *string { if d == nil { - return "" + return nil } - return d.BorderStyle + return d.OverlayText } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetDashArray() []float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetRepeat() bool { if d == nil { - return nil + return false } - return d.DashArray + return d.Repeat } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetInteriorColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetFontFamily() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily { if d == nil { - return nil + return "" } - return d.InteriorColor + return d.FontFamily } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetVertices() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetFontSize() float64 { if d == nil { - return nil + return 0 } - return d.Vertices + return d.FontSize } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetRotation() *float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetFontColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor { if d == nil { return nil } - return d.Rotation + return d.FontColor } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetLineEndings() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetTextAlign() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlign { if d == nil { - return nil + return "" } - return d.LineEndings + return d.TextAlign } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -84576,209 +102827,216 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) requi // SetRef sets the Ref field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef) { d.Ref = ref - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldRef) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldRef) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetIndex(index int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetIndex(index int) { d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldIndex) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldIndex) } // SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQuality) { d.IdentityQuality = identityQuality - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldIdentityQuality) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldIdentityQuality) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetNm(nm *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetNm(nm *string) { d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldNm) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldNm) } // SetFlags sets the Flags field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) { d.Flags = flags - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldFlags) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldFlags) } // SetRect sets the Rect field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) { d.Rect = rect - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldRect) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldRect) } // SetContents sets the Contents field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetContents(contents *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetContents(contents *string) { d.Contents = contents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldContents) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldContents) } // SetSubject sets the Subject field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetSubject(subject *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetSubject(subject *string) { d.Subject = subject - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldSubject) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldSubject) } // SetAuthor sets the Author field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetAuthor(author *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetAuthor(author *string) { d.Author = author - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldAuthor) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldAuthor) } // SetCreated sets the Created field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetCreated(created *time.Time) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetCreated(created *time.Time) { d.Created = created - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldCreated) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldCreated) } // SetModified sets the Modified field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetModified(modified *time.Time) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetModified(modified *time.Time) { d.Modified = modified - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldModified) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldModified) } // SetBlendMode sets the BlendMode field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode) { d.BlendMode = blendMode - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldBlendMode) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldBlendMode) } // SetInReplyTo sets the InReplyTo field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo) { d.InReplyTo = inReplyTo - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldInReplyTo) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldInReplyTo) } // SetReplyType sets the ReplyType field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyType) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType) { d.ReplyType = replyType - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldReplyType) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldReplyType) } // SetUserID sets the UserID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetUserID(userID *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetUserID(userID *string) { d.UserID = userID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldUserID) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldUserID) } // SetGroupID sets the GroupID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetGroupID(groupID *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetGroupID(groupID *string) { d.GroupID = groupID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldGroupID) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldGroupID) } // SetCreatedBy sets the CreatedBy field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetCreatedBy(createdBy *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetCreatedBy(createdBy *string) { d.CreatedBy = createdBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldCreatedBy) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldCreatedBy) } // SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetUpdatedBy(updatedBy *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetUpdatedBy(updatedBy *string) { d.UpdatedBy = updatedBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldUpdatedBy) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldUpdatedBy) } // SetActions sets the Actions field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetActions(actions *PdfAnnotationActions) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetActions(actions *PdfAnnotationActions) { d.Actions = actions - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldActions) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldActions) +} + +// SetQuadPoints sets the QuadPoints field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetQuadPoints(quadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem) { + d.QuadPoints = quadPoints + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldQuadPoints) } // SetColor sets the Color field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetColor(color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetColor(color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) { d.Color = color - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldColor) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldColor) } // SetOpacity sets the Opacity field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetOpacity(opacity float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetOpacity(opacity float64) { d.Opacity = opacity - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldOpacity) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldOpacity) } -// SetStrokeWidth sets the StrokeWidth field and marks it as non-optional; +// SetInteriorColor sets the InteriorColor field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetStrokeWidth(strokeWidth float64) { - d.StrokeWidth = strokeWidth - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldStrokeWidth) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetInteriorColor(interiorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor) { + d.InteriorColor = interiorColor + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldInteriorColor) } -// SetBorderStyle sets the BorderStyle field and marks it as non-optional; +// SetOverlayText sets the OverlayText field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetBorderStyle(borderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle) { - d.BorderStyle = borderStyle - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldBorderStyle) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetOverlayText(overlayText *string) { + d.OverlayText = overlayText + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldOverlayText) } -// SetDashArray sets the DashArray field and marks it as non-optional; +// SetRepeat sets the Repeat field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetDashArray(dashArray []float64) { - d.DashArray = dashArray - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldDashArray) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetRepeat(repeat bool) { + d.Repeat = repeat + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldRepeat) } -// SetInteriorColor sets the InteriorColor field and marks it as non-optional; +// SetFontFamily sets the FontFamily field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetInteriorColor(interiorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor) { - d.InteriorColor = interiorColor - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldInteriorColor) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetFontFamily(fontFamily DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily) { + d.FontFamily = fontFamily + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldFontFamily) } -// SetVertices sets the Vertices field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetVertices(vertices []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem) { - d.Vertices = vertices - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldVertices) +// SetFontSize sets the FontSize field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetFontSize(fontSize float64) { + d.FontSize = fontSize + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldFontSize) } -// SetRotation sets the Rotation field and marks it as non-optional; +// SetFontColor sets the FontColor field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetRotation(rotation *float64) { - d.Rotation = rotation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldRotation) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetFontColor(fontColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor) { + d.FontColor = fontColor + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldFontColor) } -// SetLineEndings sets the LineEndings field and marks it as non-optional; +// SetTextAlign sets the TextAlign field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) SetLineEndings(lineEndings *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings) { - d.LineEndings = lineEndings - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFieldLineEndings) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetTextAlign(textAlign DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlign) { + d.TextAlign = textAlign + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldTextAlign) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) UnmarshalJSON(data []byte) error { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) UnmarshalJSON(data []byte) error { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact var unmarshaler = struct { embed Created *internal.DateTime `json:"created,omitempty"` @@ -84789,7 +103047,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) Unmar if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline(unmarshaler.embed) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(unmarshaler.embed) d.Created = unmarshaler.Created.TimePtr() d.Modified = unmarshaler.Modified.TimePtr() extraProperties, err := internal.ExtractExtraProperties(data, *d) @@ -84801,8 +103059,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) Unmar return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact var marshaler = struct { embed Created *internal.DateTime `json:"created,omitempty"` @@ -84816,7 +103074,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) Marsh return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) String() string { if d == nil { return "" } @@ -84831,105 +103089,77 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline) Strin return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode = "normal" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode = "multiply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode = "screen" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode = "overlay" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode = "darken" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode = "lighten" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode = "color-dodge" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode = "color-burn" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode = "hard-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode = "soft-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode = "difference" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode = "exclusion" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode = "hue" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode = "saturation" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode = "color" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode = "luminosity" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode = "normal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode = "multiply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode = "screen" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode = "overlay" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode = "darken" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode = "lighten" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode = "color-dodge" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode = "color-burn" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode = "hard-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode = "soft-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode = "difference" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode = "exclusion" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode = "hue" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode = "saturation" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode = "color" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode = "luminosity" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode, error) { switch s { case "normal": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeNormal, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeNormal, nil case "multiply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeMultiply, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeMultiply, nil case "screen": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeScreen, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeScreen, nil case "overlay": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeOverlay, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeOverlay, nil case "darken": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeDarken, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeDarken, nil case "lighten": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeLighten, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeLighten, nil case "color-dodge": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeColorDodge, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeColorDodge, nil case "color-burn": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeColorBurn, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeColorBurn, nil case "hard-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeHardLight, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeHardLight, nil case "soft-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeSoftLight, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeSoftLight, nil case "difference": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeDifference, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeDifference, nil case "exclusion": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeExclusion, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeExclusion, nil case "hue": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeHue, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeHue, nil case "saturation": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeSaturation, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeSaturation, nil case "color": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeColor, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeColor, nil case "luminosity": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendModeLuminosity, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode { - return &d -} - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyleSolid DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle = "solid" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyleDashed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle = "dashed" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyleBeveled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle = "beveled" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyleInset DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle = "inset" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyleFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle, error) { - switch s { - case "solid": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyleSolid, nil - case "dashed": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyleDashed, nil - case "beveled": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyleBeveled, nil - case "inset": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyleInset, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeLuminosity, nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode { return &d } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColorFieldR = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColorFieldG = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColorFieldB = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColorFieldB = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor struct { R int `json:"r" url:"r"` G int `json:"g" url:"g"` B int `json:"b" url:"b"` @@ -84941,35 +103171,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor struc rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor) GetR() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) GetR() int { if d == nil { return 0 } return d.R } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor) GetG() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) GetG() int { if d == nil { return 0 } return d.G } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor) GetB() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) GetB() int { if d == nil { return 0 } return d.B } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -84978,32 +103208,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor) // SetR sets the R field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor) SetR(r int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) SetR(r int) { d.R = r - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColorFieldR) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColorFieldR) } // SetG sets the G field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor) SetG(g int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) SetG(g int) { d.G = g - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColorFieldG) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColorFieldG) } // SetB sets the B field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor) SetB(b int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) SetB(b int) { d.B = b - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColorFieldB) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColorFieldB) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -85013,8 +103243,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor) return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor var marshaler = struct { embed }{ @@ -85024,7 +103254,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) String() string { if d == nil { return "" } @@ -85040,19 +103270,19 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor) } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldInvisible = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldHidden = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldPrint = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldNoZoom = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldNoRotate = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldNoView = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldReadOnly = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldLocked = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldToggleNoView = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldLockedContents = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldInvisible = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldHidden = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldPrint = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldNoZoom = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldNoRotate = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldNoView = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldReadOnly = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldLocked = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldToggleNoView = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldLockedContents = big.NewInt(1 << 9) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags struct { Invisible bool `json:"invisible" url:"invisible"` Hidden bool `json:"hidden" url:"hidden"` Print bool `json:"print" url:"print"` @@ -85071,84 +103301,84 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags struc rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) GetInvisible() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) GetInvisible() bool { if d == nil { return false } return d.Invisible } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) GetHidden() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) GetHidden() bool { if d == nil { return false } return d.Hidden } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) GetPrint() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) GetPrint() bool { if d == nil { return false } return d.Print } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) GetNoZoom() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) GetNoZoom() bool { if d == nil { return false } return d.NoZoom } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) GetNoRotate() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) GetNoRotate() bool { if d == nil { return false } return d.NoRotate } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) GetNoView() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) GetNoView() bool { if d == nil { return false } return d.NoView } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) GetReadOnly() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) GetReadOnly() bool { if d == nil { return false } return d.ReadOnly } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) GetLocked() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) GetLocked() bool { if d == nil { return false } return d.Locked } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) GetToggleNoView() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) GetToggleNoView() bool { if d == nil { return false } return d.ToggleNoView } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) GetLockedContents() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) GetLockedContents() bool { if d == nil { return false } return d.LockedContents } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -85157,81 +103387,81 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) // SetInvisible sets the Invisible field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) SetInvisible(invisible bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) SetInvisible(invisible bool) { d.Invisible = invisible - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldInvisible) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldInvisible) } // SetHidden sets the Hidden field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) SetHidden(hidden bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) SetHidden(hidden bool) { d.Hidden = hidden - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldHidden) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldHidden) } // SetPrint sets the Print field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) SetPrint(print bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) SetPrint(print bool) { d.Print = print - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldPrint) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldPrint) } // SetNoZoom sets the NoZoom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) SetNoZoom(noZoom bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) SetNoZoom(noZoom bool) { d.NoZoom = noZoom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldNoZoom) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldNoZoom) } // SetNoRotate sets the NoRotate field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) SetNoRotate(noRotate bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) SetNoRotate(noRotate bool) { d.NoRotate = noRotate - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldNoRotate) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldNoRotate) } // SetNoView sets the NoView field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) SetNoView(noView bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) SetNoView(noView bool) { d.NoView = noView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldNoView) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldNoView) } // SetReadOnly sets the ReadOnly field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) SetReadOnly(readOnly bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) SetReadOnly(readOnly bool) { d.ReadOnly = readOnly - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldReadOnly) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldReadOnly) } // SetLocked sets the Locked field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) SetLocked(locked bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) SetLocked(locked bool) { d.Locked = locked - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldLocked) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldLocked) } // SetToggleNoView sets the ToggleNoView field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) SetToggleNoView(toggleNoView bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) SetToggleNoView(toggleNoView bool) { d.ToggleNoView = toggleNoView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldToggleNoView) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldToggleNoView) } // SetLockedContents sets the LockedContents field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) SetLockedContents(lockedContents bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) SetLockedContents(lockedContents bool) { d.LockedContents = lockedContents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlagsFieldLockedContents) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldLockedContents) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -85241,8 +103471,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags var marshaler = struct { embed }{ @@ -85252,7 +103482,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) String() string { if d == nil { return "" } @@ -85267,66 +103497,240 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags) return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality string +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColorFieldB = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor struct { + R int `json:"r" url:"r"` + G int `json:"g" url:"g"` + B int `json:"b" url:"b"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor) GetR() int { + if d == nil { + return 0 + } + return d.R +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor) GetG() int { + if d == nil { + return 0 + } + return d.G +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor) GetB() int { + if d == nil { + return 0 + } + return d.B +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetR sets the R field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor) SetR(r int) { + d.R = r + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColorFieldR) +} + +// SetG sets the G field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor) SetG(g int) { + d.G = g + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColorFieldG) +} + +// SetB sets the B field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor) SetB(b int) { + d.B = b + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColorFieldB) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality = "durable" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality = "weak" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyCourier DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily = "courier" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyCourierBold DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily = "courier-bold" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyCourierBoldOblique DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily = "courier-bold-oblique" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyCourierOblique DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily = "courier-oblique" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyHelvetica DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily = "helvetica" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyHelveticaBold DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily = "helvetica-bold" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyHelveticaBoldOblique DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily = "helvetica-bold-oblique" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyHelveticaOblique DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily = "helvetica-oblique" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyTimesRoman DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily = "times-roman" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyTimesBold DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily = "times-bold" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyTimesBoldItalic DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily = "times-bold-italic" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyTimesItalic DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily = "times-italic" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilySymbol DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily = "symbol" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyZapfDingbats DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily = "zapf-dingbats" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily, error) { + switch s { + case "courier": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyCourier, nil + case "courier-bold": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyCourierBold, nil + case "courier-bold-oblique": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyCourierBoldOblique, nil + case "courier-oblique": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyCourierOblique, nil + case "helvetica": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyHelvetica, nil + case "helvetica-bold": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyHelveticaBold, nil + case "helvetica-bold-oblique": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyHelveticaBoldOblique, nil + case "helvetica-oblique": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyHelveticaOblique, nil + case "times-roman": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyTimesRoman, nil + case "times-bold": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyTimesBold, nil + case "times-bold-italic": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyTimesBoldItalic, nil + case "times-italic": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyTimesItalic, nil + case "symbol": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilySymbol, nil + case "zapf-dingbats": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyZapfDingbats, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQuality string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQuality = "durable" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQuality = "weak" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQuality, error) { switch s { case "durable": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQualityDurable, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQualityDurable, nil case "weak": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQualityWeak, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQualityWeak, nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQuality return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQuality { return &d } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo struct { Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo) GetKind() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber { if d == nil { return nil } return d.ObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex { if d == nil { return nil } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo) UnmarshalJSON(data []byte) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -85339,19 +103743,19 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReply } switch unmarshaler.Kind { case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber) if err := json.Unmarshal(data, &value); err != nil { return err } d.ObjectNumber = value case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm) if err := json.Unmarshal(data, &value); err != nil { return err } d.Nm = value case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -85361,7 +103765,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReply return nil } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -85380,13 +103784,13 @@ func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyT return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex) error +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) error } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToVisitor) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToVisitor) error { if d.ObjectNumber != nil { return visitor.VisitObjectNumber(d.ObjectNumber) } @@ -85399,7 +103803,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReply return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo) validate() error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -85440,15 +103844,15 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReply } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexFieldRevision = big.NewInt(1 << 2) -) - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision `json:"revision" url:"revision"` + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexFieldRevision = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -85457,35 +103861,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIn rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision { if d == nil { return nil } return d.Revision } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -85494,32 +103898,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReply // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex) SetIndex(index int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) SetIndex(index int) { d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexFieldIndex) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexFieldIndex) } // SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision) { d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexFieldRevision) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexFieldRevision) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -85529,8 +103933,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReply return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex var marshaler = struct { embed }{ @@ -85540,7 +103944,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReply return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) String() string { if d == nil { return "" } @@ -85556,12 +103960,12 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReply } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision struct { DocSessionID string `json:"docSessionId" url:"docSessionId"` PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Generation int `json:"generation" url:"generation"` @@ -85573,35 +103977,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIn rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision) GetDocSessionID() string { if d == nil { return "" } return d.DocSessionID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision) GetGeneration() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision) GetGeneration() int { if d == nil { return 0 } return d.Generation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -85610,32 +104014,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReply // SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision) SetDocSessionID(docSessionID string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision) SetDocSessionID(docSessionID string) { d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevisionFieldDocSessionID) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevisionFieldDocSessionID) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevisionFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevisionFieldPageObjectNumber) } // SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision) SetGeneration(generation int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision) SetGeneration(generation int) { d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevisionFieldGeneration) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevisionFieldGeneration) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -85645,8 +104049,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReply return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision var marshaler = struct { embed }{ @@ -85656,7 +104060,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReply return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision) String() string { if d == nil { return "" } @@ -85672,11 +104076,11 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReply } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNmFieldNm = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Nm string `json:"nm" url:"nm"` @@ -85687,28 +104091,28 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm) GetNm() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm) GetNm() string { if d == nil { return "" } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -85717,25 +104121,25 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReply // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNmFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNmFieldPageObjectNumber) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm) SetNm(nm string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm) SetNm(nm string) { d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNmFieldNm) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNmFieldNm) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -85745,8 +104149,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReply return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm var marshaler = struct { embed }{ @@ -85756,7 +104160,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReply return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm) String() string { if d == nil { return "" } @@ -85772,11 +104176,11 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReply } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` @@ -85787,28 +104191,28 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToOb rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } return d.AnnotObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -85817,25 +104221,25 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReply // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumberFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumberFieldPageObjectNumber) } // SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumberFieldAnnotObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -85845,8 +104249,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReply return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber var marshaler = struct { embed }{ @@ -85856,7 +104260,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReply return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber) String() string { if d == nil { return "" } @@ -85872,12 +104276,12 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReply } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColorFieldR = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColorFieldG = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColorFieldB = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColorFieldB = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor struct { R int `json:"r" url:"r"` G int `json:"g" url:"g"` B int `json:"b" url:"b"` @@ -85889,35 +104293,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorCol rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor) GetR() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor) GetR() int { if d == nil { return 0 } return d.R } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor) GetG() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor) GetG() int { if d == nil { return 0 } return d.G } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor) GetB() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor) GetB() int { if d == nil { return 0 } return d.B } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -85926,356 +104330,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInterio // SetR sets the R field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor) SetR(r int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor) SetR(r int) { d.R = r - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColorFieldR) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColorFieldR) } // SetG sets the G field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor) SetG(g int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor) SetG(g int) { d.G = g - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColorFieldG) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColorFieldG) } // SetB sets the B field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor) SetB(b int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor) SetB(b int) { d.B = b - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColorFieldB) -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) -} - -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsFieldStart = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsFieldEnd = big.NewInt(1 << 1) -) - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings struct { - Start DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart `json:"start" url:"start"` - End DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd `json:"end" url:"end"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings) GetStart() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart { - if d == nil { - return "" - } - return d.Start -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings) GetEnd() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd { - if d == nil { - return "" - } - return d.End -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetStart sets the Start field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings) SetStart(start DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart) { - d.Start = start - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsFieldStart) -} - -// SetEnd sets the End field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings) SetEnd(end DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd) { - d.End = end - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsFieldEnd) -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) -} - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndNone DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd = "none" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndSquare DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd = "square" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndCircle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd = "circle" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndDiamond DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd = "diamond" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndOpenArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd = "open-arrow" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndClosedArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd = "closed-arrow" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndButt DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd = "butt" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndROpenArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd = "r-open-arrow" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndRClosedArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd = "r-closed-arrow" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndSlash DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd = "slash" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd, error) { - switch s { - case "none": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndNone, nil - case "square": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndSquare, nil - case "circle": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndCircle, nil - case "diamond": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndDiamond, nil - case "open-arrow": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndOpenArrow, nil - case "closed-arrow": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndClosedArrow, nil - case "butt": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndButt, nil - case "r-open-arrow": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndROpenArrow, nil - case "r-closed-arrow": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndRClosedArrow, nil - case "slash": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEndSlash, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd { - return &d -} - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartNone DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart = "none" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartSquare DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart = "square" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartCircle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart = "circle" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartDiamond DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart = "diamond" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartOpenArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart = "open-arrow" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartClosedArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart = "closed-arrow" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartButt DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart = "butt" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartROpenArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart = "r-open-arrow" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartRClosedArrow DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart = "r-closed-arrow" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartSlash DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart = "slash" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart, error) { - switch s { - case "none": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartNone, nil - case "square": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartSquare, nil - case "circle": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartCircle, nil - case "diamond": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartDiamond, nil - case "open-arrow": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartOpenArrow, nil - case "closed-arrow": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartClosedArrow, nil - case "butt": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartButt, nil - case "r-open-arrow": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartROpenArrow, nil - case "r-closed-arrow": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartRClosedArrow, nil - case "slash": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStartSlash, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart { - return &d -} - -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRectFieldRight = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRectFieldTop = big.NewInt(1 << 3) -) - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect struct { - Left float64 `json:"left" url:"left"` - Bottom float64 `json:"bottom" url:"bottom"` - Right float64 `json:"right" url:"right"` - Top float64 `json:"top" url:"top"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect) GetLeft() float64 { - if d == nil { - return 0 - } - return d.Left -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect) GetBottom() float64 { - if d == nil { - return 0 - } - return d.Bottom -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect) GetRight() float64 { - if d == nil { - return 0 - } - return d.Right -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect) GetTop() float64 { - if d == nil { - return 0 - } - return d.Top -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetLeft sets the Left field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect) SetLeft(left float64) { - d.Left = left - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRectFieldLeft) -} - -// SetBottom sets the Bottom field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRectFieldBottom) -} - -// SetRight sets the Right field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect) SetRight(right float64) { - d.Right = right - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRectFieldRight) -} - -// SetTop sets the Top field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRectFieldTop) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColorFieldB) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -86285,8 +104365,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect) U return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor var marshaler = struct { embed }{ @@ -86296,7 +104376,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect) M return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor) String() string { if d == nil { return "" } @@ -86311,166 +104391,146 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect) S return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef struct { - Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemFieldP1 = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemFieldP2 = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemFieldP3 = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemFieldP4 = big.NewInt(1 << 3) +) - rawJSON json.RawMessage +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem struct { + P1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1 `json:"p1" url:"p1"` + P2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2 `json:"p2" url:"p2"` + P3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3 `json:"p3" url:"p3"` + P4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4 `json:"p4" url:"p4"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef) GetKind() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem) GetP1() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1 { if d == nil { - return "" + return nil } - return d.Kind + return d.P1 } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem) GetP2() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2 { if d == nil { return nil } - return d.ObjectNumber + return d.P2 } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem) GetP3() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3 { if d == nil { return nil } - return d.Nm + return d.P3 } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem) GetP4() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4 { if d == nil { return nil } - return d.Index + return d.P4 } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Nm = value - case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Index = value +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil } - d.rawJSON = json.RawMessage(data) - return nil + return d.extraProperties } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Nm != nil { - return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") - } - if d.Index != nil { - return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) + d.explicitFields.Or(d.explicitFields, field) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) error +// SetP1 sets the P1 field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem) SetP1(p1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1) { + d.P1 = p1 + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemFieldP1) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) +// SetP2 sets the P2 field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem) SetP2(p2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2) { + d.P2 = p2 + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemFieldP2) +} + +// SetP3 sets the P3 field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem) SetP3(p3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3) { + d.P3 = p3 + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemFieldP3) +} + +// SetP4 sets the P4 field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem) SetP4(p4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4) { + d.P4 = p4 + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemFieldP4) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - if d.Nm != nil { - return visitor.VisitNm(d.Nm) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err } - if d.Index != nil { - return visitor.VisitIndex(d.Index) + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return fmt.Errorf("type %T does not define a non-empty union type", d) + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef) validate() error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem) String() string { if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Nm != nil { - fields = append(fields, "nm") - } - if d.Index != nil { - fields = append(fields, "index") + return "" } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } + if value, err := internal.StringifyJSON(d); err == nil { + return value } - return nil + return fmt.Sprintf("%#v", d) } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1FieldY = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -86479,69 +104539,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex st rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1) GetX() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.X } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1) GetY() float64 { if d == nil { return 0 } - return d.Index -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision { - if d == nil { - return nil - } - return d.Revision + return d.Y } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexFieldPageObjectNumber) -} - -// SetIndex sets the Index field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexFieldIndex) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1FieldX) } -// SetRevision sets the Revision field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision) { - d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexFieldRevision) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1FieldY) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1 var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -86551,8 +104597,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefInde return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1 var marshaler = struct { embed }{ @@ -86562,7 +104608,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefInde return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1) String() string { if d == nil { return "" } @@ -86578,15 +104624,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefInde } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2FieldY = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -86595,69 +104639,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRev rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision) GetDocSessionID() string { - if d == nil { - return "" - } - return d.DocSessionID -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2) GetX() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.X } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision) GetGeneration() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2) GetY() float64 { if d == nil { return 0 } - return d.Generation + return d.Y } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevisionFieldDocSessionID) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevisionFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2FieldX) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevisionFieldGeneration) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2FieldY) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2 var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -86667,8 +104697,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefInde return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2 var marshaler = struct { embed }{ @@ -86678,7 +104708,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefInde return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2) String() string { if d == nil { return "" } @@ -86694,13 +104724,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefInde } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNmFieldNm = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3FieldY = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -86709,55 +104739,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm struc rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3) GetX() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.X } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm) GetNm() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3) GetY() float64 { if d == nil { - return "" + return 0 } - return d.Nm + return d.Y } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNmFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3FieldX) } -// SetNm sets the Nm field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNmFieldNm) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3FieldY) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3 var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -86767,8 +104797,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm) return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3 var marshaler = struct { embed }{ @@ -86778,7 +104808,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3) String() string { if d == nil { return "" } @@ -86794,13 +104824,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm) } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4FieldY = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -86809,55 +104839,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNu rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4) GetX() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.X } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4) GetY() float64 { if d == nil { return 0 } - return d.AnnotObjectNumber + return d.Y } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumberFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4FieldX) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumberFieldAnnotObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4FieldY) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4 var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -86867,8 +104897,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObje return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4 var marshaler = struct { embed }{ @@ -86878,7 +104908,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObje return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4) String() string { if d == nil { return "" } @@ -86893,36 +104923,18 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObje return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyType string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyType = "reply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyType = "group" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyType, error) { - switch s { - case "reply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyTypeReply, nil - case "group": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyTypeGroup, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyType - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyType { - return &d -} - var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItemFieldX = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItemFieldY = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRectFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRectFieldTop = big.NewInt(1 << 3) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect struct { + Left float64 `json:"left" url:"left"` + Bottom float64 `json:"bottom" url:"bottom"` + Right float64 `json:"right" url:"right"` + Top float64 `json:"top" url:"top"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -86931,55 +104943,83 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesIte rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem) GetX() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) GetLeft() float64 { if d == nil { return 0 } - return d.X + return d.Left } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem) GetY() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) GetBottom() float64 { if d == nil { return 0 } - return d.Y + return d.Bottom } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) GetRight() float64 { + if d == nil { + return 0 + } + return d.Right +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) GetTop() float64 { + if d == nil { + return 0 + } + return d.Top +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetX sets the X field and marks it as non-optional; +// SetLeft sets the Left field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRectFieldLeft) +} + +// SetBottom sets the Bottom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRectFieldBottom) +} + +// SetRight sets the Right field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem) SetX(x float64) { - d.X = x - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItemFieldX) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRectFieldRight) } -// SetY sets the Y field and marks it as non-optional; +// SetTop sets the Top field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem) SetY(y float64) { - d.Y = y - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItemFieldY) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRectFieldTop) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -86989,8 +105029,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVertice return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect var marshaler = struct { embed }{ @@ -87000,7 +105040,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVertice return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) String() string { if d == nil { return "" } @@ -87015,527 +105055,553 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVertice return fmt.Sprintf("%#v", d) } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldRef = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldIndex = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldIdentityQuality = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldNm = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldFlags = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldRect = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldContents = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldSubject = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldAuthor = big.NewInt(1 << 9) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldCreated = big.NewInt(1 << 10) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldModified = big.NewInt(1 << 11) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldBlendMode = big.NewInt(1 << 12) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldInReplyTo = big.NewInt(1 << 13) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldReplyType = big.NewInt(1 << 14) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldUserID = big.NewInt(1 << 15) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldGroupID = big.NewInt(1 << 16) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldCreatedBy = big.NewInt(1 << 17) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldUpdatedBy = big.NewInt(1 << 18) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldActions = big.NewInt(1 << 19) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldQuadPoints = big.NewInt(1 << 20) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldColor = big.NewInt(1 << 21) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldOpacity = big.NewInt(1 << 22) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldInteriorColor = big.NewInt(1 << 23) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldOverlayText = big.NewInt(1 << 24) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldRepeat = big.NewInt(1 << 25) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldFontFamily = big.NewInt(1 << 26) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldFontSize = big.NewInt(1 << 27) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldFontColor = big.NewInt(1 << 28) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldTextAlign = big.NewInt(1 << 29) -) - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact struct { - Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef `json:"ref" url:"ref"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQuality `json:"identityQuality" url:"identityQuality"` - Nm *string `json:"nm,omitempty" url:"nm,omitempty"` - Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags `json:"flags" url:"flags"` - Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect `json:"rect" url:"rect"` - Contents *string `json:"contents,omitempty" url:"contents,omitempty"` - Subject *string `json:"subject,omitempty" url:"subject,omitempty"` - Author *string `json:"author,omitempty" url:"author,omitempty"` - Created *time.Time `json:"created,omitempty" url:"created,omitempty"` - Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` - BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode `json:"blendMode" url:"blendMode"` - InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` - ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` - UserID *string `json:"userId,omitempty" url:"userId,omitempty"` - GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` - CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` - Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` - QuadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem `json:"quadPoints" url:"quadPoints"` - Color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor `json:"color" url:"color"` - Opacity float64 `json:"opacity" url:"opacity"` - InteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor `json:"interiorColor,omitempty" url:"interiorColor,omitempty"` - OverlayText *string `json:"overlayText,omitempty" url:"overlayText,omitempty"` - Repeat bool `json:"repeat" url:"repeat"` - FontFamily DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily `json:"fontFamily" url:"fontFamily"` - FontSize float64 `json:"fontSize" url:"fontSize"` - FontColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor `json:"fontColor" url:"fontColor"` - TextAlign DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlign `json:"textAlign" url:"textAlign"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef { - if d == nil { - return nil - } - return d.Ref -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber -} +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetIndex() int { - if d == nil { - return 0 - } - return d.Index + rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQuality { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef) GetKind() string { if d == nil { return "" } - return d.IdentityQuality + return d.Kind } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetNm() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber { if d == nil { return nil } - return d.Nm + return d.ObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm { if d == nil { return nil } - return d.Flags + return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex { if d == nil { return nil } - return d.Rect + return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetContents() *string { - if d == nil { - return nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` } - return d.Contents -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetSubject() *string { - if d == nil { - return nil + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err } - return d.Subject + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value + } + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetAuthor() *string { - if d == nil { - return nil +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err } - return d.Author + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Nm != nil { + return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + } + if d.Index != nil { + return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetCreated() *time.Time { - if d == nil { - return nil - } - return d.Created +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) error } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetModified() *time.Time { - if d == nil { - return nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) } - return d.Modified + if d.Nm != nil { + return visitor.VisitNm(d.Nm) + } + if d.Index != nil { + return visitor.VisitIndex(d.Index) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef) validate() error { if d == nil { - return "" + return fmt.Errorf("type %T is nil", d) } - return d.BlendMode + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Nm != nil { + fields = append(fields, "nm") + } + if d.Index != nil { + fields = append(fields, "index") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo { - if d == nil { - return nil - } - return d.InReplyTo +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexFieldRevision = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision `json:"revision" url:"revision"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) GetPageObjectNumber() int { if d == nil { - return nil + return 0 } - return d.ReplyType + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetUserID() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) GetIndex() int { if d == nil { - return nil + return 0 } - return d.UserID + return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetGroupID() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision { if d == nil { return nil } - return d.GroupID + return d.Revision } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetCreatedBy() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.CreatedBy + return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetUpdatedBy() *string { - if d == nil { - return nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.UpdatedBy + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetActions() *PdfAnnotationActions { - if d == nil { - return nil - } - return d.Actions +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexFieldPageObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetQuadPoints() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem { - if d == nil { - return nil - } - return d.QuadPoints +// SetIndex sets the Index field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexFieldIndex) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor { - if d == nil { - return nil - } - return d.Color +// SetRevision sets the Revision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexFieldRevision) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetOpacity() float64 { - if d == nil { - return 0 +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - return d.Opacity + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetInteriorColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor { - if d == nil { - return nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return d.InteriorColor + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetOverlayText() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) String() string { if d == nil { - return nil + return "" } - return d.OverlayText + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetRepeat() bool { - if d == nil { - return false - } - return d.Repeat +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetFontFamily() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision) GetDocSessionID() string { if d == nil { return "" } - return d.FontFamily + return d.DocSessionID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetFontSize() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } - return d.FontSize -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetFontColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor { - if d == nil { - return nil - } - return d.FontColor + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetTextAlign() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlign { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision) GetGeneration() int { if d == nil { - return "" + return 0 } - return d.TextAlign + return d.Generation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetRef sets the Ref field and marks it as non-optional; +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef) { - d.Ref = ref - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldRef) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevisionFieldDocSessionID) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldPageObjectNumber) -} - -// SetIndex sets the Index field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldIndex) -} - -// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQuality) { - d.IdentityQuality = identityQuality - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldIdentityQuality) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevisionFieldPageObjectNumber) } -// SetNm sets the Nm field and marks it as non-optional; +// SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetNm(nm *string) { - d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldNm) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevisionFieldGeneration) } -// SetFlags sets the Flags field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) { - d.Flags = flags - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldFlags) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -// SetRect sets the Rect field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) { - d.Rect = rect - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldRect) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -// SetContents sets the Contents field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetContents(contents *string) { - d.Contents = contents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldContents) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -// SetSubject sets the Subject field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetSubject(subject *string) { - d.Subject = subject - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldSubject) -} +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNmFieldNm = big.NewInt(1 << 1) +) -// SetAuthor sets the Author field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetAuthor(author *string) { - d.Author = author - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldAuthor) -} +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` -// SetCreated sets the Created field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetCreated(created *time.Time) { - d.Created = created - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldCreated) -} + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` -// SetModified sets the Modified field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetModified(modified *time.Time) { - d.Modified = modified - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldModified) + extraProperties map[string]interface{} + rawJSON json.RawMessage } -// SetBlendMode sets the BlendMode field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode) { - d.BlendMode = blendMode - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldBlendMode) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber } -// SetInReplyTo sets the InReplyTo field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo) { - d.InReplyTo = inReplyTo - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldInReplyTo) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm) GetNm() string { + if d == nil { + return "" + } + return d.Nm } -// SetReplyType sets the ReplyType field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType) { - d.ReplyType = replyType - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldReplyType) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties } -// SetUserID sets the UserID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetUserID(userID *string) { - d.UserID = userID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldUserID) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) } -// SetGroupID sets the GroupID field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetGroupID(groupID *string) { - d.GroupID = groupID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldGroupID) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNmFieldPageObjectNumber) } -// SetCreatedBy sets the CreatedBy field and marks it as non-optional; +// SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetCreatedBy(createdBy *string) { - d.CreatedBy = createdBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldCreatedBy) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNmFieldNm) } -// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetUpdatedBy(updatedBy *string) { - d.UpdatedBy = updatedBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldUpdatedBy) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -// SetActions sets the Actions field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetActions(actions *PdfAnnotationActions) { - d.Actions = actions - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldActions) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -// SetQuadPoints sets the QuadPoints field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetQuadPoints(quadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem) { - d.QuadPoints = quadPoints - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldQuadPoints) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -// SetColor sets the Color field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetColor(color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) { - d.Color = color - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldColor) -} +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) -// SetOpacity sets the Opacity field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetOpacity(opacity float64) { - d.Opacity = opacity - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldOpacity) -} +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` -// SetInteriorColor sets the InteriorColor field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetInteriorColor(interiorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor) { - d.InteriorColor = interiorColor - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldInteriorColor) + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -// SetOverlayText sets the OverlayText field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetOverlayText(overlayText *string) { - d.OverlayText = overlayText - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldOverlayText) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber } -// SetRepeat sets the Repeat field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetRepeat(repeat bool) { - d.Repeat = repeat - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldRepeat) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber } -// SetFontFamily sets the FontFamily field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetFontFamily(fontFamily DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily) { - d.FontFamily = fontFamily - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldFontFamily) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties } -// SetFontSize sets the FontSize field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetFontSize(fontSize float64) { - d.FontSize = fontSize - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldFontSize) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) } -// SetFontColor sets the FontColor field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetFontColor(fontColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor) { - d.FontColor = fontColor - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldFontColor) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumberFieldPageObjectNumber) } -// SetTextAlign sets the TextAlign field and marks it as non-optional; +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) SetTextAlign(textAlign DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlign) { - d.TextAlign = textAlign - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFieldTextAlign) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) UnmarshalJSON(data []byte) error { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact - var unmarshaler = struct { - embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` - }{ - embed: embed(*d), - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(unmarshaler.embed) - d.Created = unmarshaler.Created.TimePtr() - d.Modified = unmarshaler.Modified.TimePtr() + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -87545,22 +105611,18 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) Unmarsh return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber var marshaler = struct { embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), - Created: internal.NewOptionalDateTime(d.Created), - Modified: internal.NewOptionalDateTime(d.Modified), + embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber) String() string { if d == nil { return "" } @@ -87575,80 +105637,117 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact) String( return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode = "normal" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode = "multiply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode = "screen" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode = "overlay" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode = "darken" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode = "lighten" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode = "color-dodge" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode = "color-burn" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode = "hard-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode = "soft-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode = "difference" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode = "exclusion" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode = "hue" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode = "saturation" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode = "color" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode = "luminosity" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType = "reply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType = "group" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType, error) { switch s { - case "normal": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeNormal, nil - case "multiply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeMultiply, nil - case "screen": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeScreen, nil - case "overlay": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeOverlay, nil - case "darken": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeDarken, nil - case "lighten": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeLighten, nil - case "color-dodge": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeColorDodge, nil - case "color-burn": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeColorBurn, nil - case "hard-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeHardLight, nil - case "soft-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeSoftLight, nil - case "difference": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeDifference, nil - case "exclusion": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeExclusion, nil - case "hue": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeHue, nil - case "saturation": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeSaturation, nil - case "color": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeColor, nil - case "luminosity": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendModeLuminosity, nil + case "reply": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyTypeReply, nil + case "group": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyTypeGroup, nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlign string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlignLeft DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlign = "left" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlignCenter DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlign = "center" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlignRight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlign = "right" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlignFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlign, error) { + switch s { + case "left": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlignLeft, nil + case "center": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlignCenter, nil + case "right": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlignRight, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlign + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlign) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlign { return &d } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColorFieldR = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColorFieldG = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColorFieldB = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldRef = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldIndex = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldIdentityQuality = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldNm = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldFlags = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldRect = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldContents = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldSubject = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldAuthor = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldCreated = big.NewInt(1 << 10) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldModified = big.NewInt(1 << 11) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldBlendMode = big.NewInt(1 << 12) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldInReplyTo = big.NewInt(1 << 13) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldReplyType = big.NewInt(1 << 14) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldUserID = big.NewInt(1 << 15) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldGroupID = big.NewInt(1 << 16) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldCreatedBy = big.NewInt(1 << 17) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldUpdatedBy = big.NewInt(1 << 18) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldActions = big.NewInt(1 << 19) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldColor = big.NewInt(1 << 20) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldOpacity = big.NewInt(1 << 21) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldStrokeWidth = big.NewInt(1 << 22) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldBorderStyle = big.NewInt(1 << 23) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldDashArray = big.NewInt(1 << 24) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldInteriorColor = big.NewInt(1 << 25) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldCloudyIntensity = big.NewInt(1 << 26) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldRectDifferences = big.NewInt(1 << 27) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldRotation = big.NewInt(1 << 28) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldUnrotatedRect = big.NewInt(1 << 29) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor struct { - R int `json:"r" url:"r"` - G int `json:"g" url:"g"` - B int `json:"b" url:"b"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare struct { + Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef `json:"ref" url:"ref"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality `json:"identityQuality" url:"identityQuality"` + Nm *string `json:"nm,omitempty" url:"nm,omitempty"` + Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags `json:"flags" url:"flags"` + Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect `json:"rect" url:"rect"` + Contents *string `json:"contents,omitempty" url:"contents,omitempty"` + Subject *string `json:"subject,omitempty" url:"subject,omitempty"` + Author *string `json:"author,omitempty" url:"author,omitempty"` + Created *time.Time `json:"created,omitempty" url:"created,omitempty"` + Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` + BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode `json:"blendMode" url:"blendMode"` + InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` + ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` + UserID *string `json:"userId,omitempty" url:"userId,omitempty"` + GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` + CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` + Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` + Color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor `json:"color" url:"color"` + Opacity float64 `json:"opacity" url:"opacity"` + StrokeWidth float64 `json:"strokeWidth" url:"strokeWidth"` + BorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle `json:"borderStyle" url:"borderStyle"` + DashArray []float64 `json:"dashArray,omitempty" url:"dashArray,omitempty"` + InteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor `json:"interiorColor,omitempty" url:"interiorColor,omitempty"` + CloudyIntensity *float64 `json:"cloudyIntensity,omitempty" url:"cloudyIntensity,omitempty"` + RectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences `json:"rectDifferences,omitempty" url:"rectDifferences,omitempty"` + Rotation *float64 `json:"rotation,omitempty" url:"rotation,omitempty"` + UnrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect `json:"unrotatedRect,omitempty" url:"unrotatedRect,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -87657,688 +105756,596 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor struct rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) GetR() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef { if d == nil { - return 0 + return nil } - return d.R + return d.Ref } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) GetG() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetPageObjectNumber() int { if d == nil { return 0 } - return d.G + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) GetB() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetIndex() int { if d == nil { return 0 } - return d.B + return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality { + if d == nil { + return "" + } + return d.IdentityQuality +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetNm() *string { if d == nil { return nil } - return d.extraProperties + return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags { + if d == nil { + return nil } - d.explicitFields.Or(d.explicitFields, field) + return d.Flags } -// SetR sets the R field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) SetR(r int) { - d.R = r - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColorFieldR) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect { + if d == nil { + return nil + } + return d.Rect } -// SetG sets the G field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) SetG(g int) { - d.G = g - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColorFieldG) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetContents() *string { + if d == nil { + return nil + } + return d.Contents } -// SetB sets the B field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) SetB(b int) { - d.B = b - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColorFieldB) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetAuthor() *string { + if d == nil { + return nil } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err + return d.Author +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetCreated() *time.Time { + if d == nil { + return nil } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil + return d.Created +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetModified() *time.Time { + if d == nil { + return nil + } + return d.Modified +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode { + if d == nil { + return "" + } + return d.BlendMode } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo { + if d == nil { + return nil } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return d.InReplyTo } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyType { if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } + return nil } - if value, err := internal.StringifyJSON(d); err == nil { - return value + return d.ReplyType +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetUserID() *string { + if d == nil { + return nil } - return fmt.Sprintf("%#v", d) + return d.UserID } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldInvisible = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldHidden = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldPrint = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldNoZoom = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldNoRotate = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldNoView = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldReadOnly = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldLocked = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldToggleNoView = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldLockedContents = big.NewInt(1 << 9) -) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetGroupID() *string { + if d == nil { + return nil + } + return d.GroupID +} -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags struct { - Invisible bool `json:"invisible" url:"invisible"` - Hidden bool `json:"hidden" url:"hidden"` - Print bool `json:"print" url:"print"` - NoZoom bool `json:"noZoom" url:"noZoom"` - NoRotate bool `json:"noRotate" url:"noRotate"` - NoView bool `json:"noView" url:"noView"` - ReadOnly bool `json:"readOnly" url:"readOnly"` - Locked bool `json:"locked" url:"locked"` - ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` - LockedContents bool `json:"lockedContents" url:"lockedContents"` +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetCreatedBy() *string { + if d == nil { + return nil + } + return d.CreatedBy +} - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetUpdatedBy() *string { + if d == nil { + return nil + } + return d.UpdatedBy +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetActions() *PdfAnnotationActions { + if d == nil { + return nil + } + return d.Actions } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) GetInvisible() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor { if d == nil { - return false + return nil } - return d.Invisible + return d.Color } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) GetHidden() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetOpacity() float64 { if d == nil { - return false + return 0 } - return d.Hidden + return d.Opacity } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) GetPrint() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetStrokeWidth() float64 { if d == nil { - return false + return 0 } - return d.Print + return d.StrokeWidth } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) GetNoZoom() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetBorderStyle() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle { if d == nil { - return false + return "" } - return d.NoZoom + return d.BorderStyle } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) GetNoRotate() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetDashArray() []float64 { if d == nil { - return false + return nil } - return d.NoRotate + return d.DashArray } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) GetNoView() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetInteriorColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor { if d == nil { - return false + return nil } - return d.NoView + return d.InteriorColor } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) GetReadOnly() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetCloudyIntensity() *float64 { if d == nil { - return false + return nil } - return d.ReadOnly + return d.CloudyIntensity } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) GetLocked() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetRectDifferences() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences { if d == nil { - return false + return nil } - return d.Locked + return d.RectDifferences } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) GetToggleNoView() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetRotation() *float64 { if d == nil { - return false + return nil } - return d.ToggleNoView + return d.Rotation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) GetLockedContents() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetUnrotatedRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect { if d == nil { - return false + return nil } - return d.LockedContents + return d.UnrotatedRect } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetInvisible sets the Invisible field and marks it as non-optional; +// SetRef sets the Ref field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) SetInvisible(invisible bool) { - d.Invisible = invisible - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldInvisible) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef) { + d.Ref = ref + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldRef) } -// SetHidden sets the Hidden field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) SetHidden(hidden bool) { - d.Hidden = hidden - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldHidden) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldPageObjectNumber) } -// SetPrint sets the Print field and marks it as non-optional; +// SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) SetPrint(print bool) { - d.Print = print - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldPrint) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldIndex) } -// SetNoZoom sets the NoZoom field and marks it as non-optional; +// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) SetNoZoom(noZoom bool) { - d.NoZoom = noZoom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldNoZoom) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality) { + d.IdentityQuality = identityQuality + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldIdentityQuality) } -// SetNoRotate sets the NoRotate field and marks it as non-optional; +// SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) SetNoRotate(noRotate bool) { - d.NoRotate = noRotate - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldNoRotate) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetNm(nm *string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldNm) } -// SetNoView sets the NoView field and marks it as non-optional; +// SetFlags sets the Flags field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) SetNoView(noView bool) { - d.NoView = noView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldNoView) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) { + d.Flags = flags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldFlags) } -// SetReadOnly sets the ReadOnly field and marks it as non-optional; +// SetRect sets the Rect field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) SetReadOnly(readOnly bool) { - d.ReadOnly = readOnly - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldReadOnly) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect) { + d.Rect = rect + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldRect) } -// SetLocked sets the Locked field and marks it as non-optional; +// SetContents sets the Contents field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) SetLocked(locked bool) { - d.Locked = locked - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldLocked) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetContents(contents *string) { + d.Contents = contents + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldContents) } -// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// SetSubject sets the Subject field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) SetToggleNoView(toggleNoView bool) { - d.ToggleNoView = toggleNoView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldToggleNoView) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetSubject(subject *string) { + d.Subject = subject + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldSubject) } -// SetLockedContents sets the LockedContents field and marks it as non-optional; +// SetAuthor sets the Author field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) SetLockedContents(lockedContents bool) { - d.LockedContents = lockedContents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlagsFieldLockedContents) -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) -} - -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColorFieldR = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColorFieldG = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColorFieldB = big.NewInt(1 << 2) -) - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor struct { - R int `json:"r" url:"r"` - G int `json:"g" url:"g"` - B int `json:"b" url:"b"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetAuthor(author *string) { + d.Author = author + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldAuthor) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor) GetR() int { - if d == nil { - return 0 - } - return d.R +// SetCreated sets the Created field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetCreated(created *time.Time) { + d.Created = created + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldCreated) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor) GetG() int { - if d == nil { - return 0 - } - return d.G +// SetModified sets the Modified field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetModified(modified *time.Time) { + d.Modified = modified + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldModified) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor) GetB() int { - if d == nil { - return 0 - } - return d.B +// SetBlendMode sets the BlendMode field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode) { + d.BlendMode = blendMode + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldBlendMode) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties +// SetInReplyTo sets the InReplyTo field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo) { + d.InReplyTo = inReplyTo + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldInReplyTo) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) +// SetReplyType sets the ReplyType field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyType) { + d.ReplyType = replyType + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldReplyType) } -// SetR sets the R field and marks it as non-optional; +// SetUserID sets the UserID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor) SetR(r int) { - d.R = r - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColorFieldR) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetUserID(userID *string) { + d.UserID = userID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldUserID) } -// SetG sets the G field and marks it as non-optional; +// SetGroupID sets the GroupID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor) SetG(g int) { - d.G = g - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColorFieldG) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetGroupID(groupID *string) { + d.GroupID = groupID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldGroupID) } -// SetB sets the B field and marks it as non-optional; +// SetCreatedBy sets the CreatedBy field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor) SetB(b int) { - d.B = b - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColorFieldB) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetCreatedBy(createdBy *string) { + d.CreatedBy = createdBy + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldCreatedBy) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil +// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetUpdatedBy(updatedBy *string) { + d.UpdatedBy = updatedBy + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldUpdatedBy) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) +// SetActions sets the Actions field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetActions(actions *PdfAnnotationActions) { + d.Actions = actions + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldActions) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) +// SetColor sets the Color field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetColor(color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) { + d.Color = color + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldColor) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyCourier DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily = "courier" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyCourierBold DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily = "courier-bold" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyCourierBoldOblique DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily = "courier-bold-oblique" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyCourierOblique DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily = "courier-oblique" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyHelvetica DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily = "helvetica" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyHelveticaBold DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily = "helvetica-bold" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyHelveticaBoldOblique DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily = "helvetica-bold-oblique" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyHelveticaOblique DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily = "helvetica-oblique" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyTimesRoman DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily = "times-roman" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyTimesBold DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily = "times-bold" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyTimesBoldItalic DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily = "times-bold-italic" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyTimesItalic DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily = "times-italic" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilySymbol DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily = "symbol" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyZapfDingbats DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily = "zapf-dingbats" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily, error) { - switch s { - case "courier": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyCourier, nil - case "courier-bold": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyCourierBold, nil - case "courier-bold-oblique": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyCourierBoldOblique, nil - case "courier-oblique": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyCourierOblique, nil - case "helvetica": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyHelvetica, nil - case "helvetica-bold": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyHelveticaBold, nil - case "helvetica-bold-oblique": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyHelveticaBoldOblique, nil - case "helvetica-oblique": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyHelveticaOblique, nil - case "times-roman": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyTimesRoman, nil - case "times-bold": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyTimesBold, nil - case "times-bold-italic": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyTimesBoldItalic, nil - case "times-italic": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyTimesItalic, nil - case "symbol": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilySymbol, nil - case "zapf-dingbats": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamilyZapfDingbats, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily - return "", fmt.Errorf("%s is not a valid %T", s, t) +// SetOpacity sets the Opacity field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetOpacity(opacity float64) { + d.Opacity = opacity + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldOpacity) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily { - return &d +// SetStrokeWidth sets the StrokeWidth field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetStrokeWidth(strokeWidth float64) { + d.StrokeWidth = strokeWidth + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldStrokeWidth) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQuality string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQuality = "durable" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQuality = "weak" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQuality, error) { - switch s { - case "durable": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQualityDurable, nil - case "weak": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQualityWeak, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQuality - return "", fmt.Errorf("%s is not a valid %T", s, t) +// SetBorderStyle sets the BorderStyle field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetBorderStyle(borderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle) { + d.BorderStyle = borderStyle + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldBorderStyle) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQuality { - return &d +// SetDashArray sets the DashArray field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetDashArray(dashArray []float64) { + d.DashArray = dashArray + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldDashArray) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo struct { - Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex - - rawJSON json.RawMessage +// SetInteriorColor sets the InteriorColor field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetInteriorColor(interiorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor) { + d.InteriorColor = interiorColor + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldInteriorColor) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo) GetKind() string { - if d == nil { - return "" - } - return d.Kind +// SetCloudyIntensity sets the CloudyIntensity field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetCloudyIntensity(cloudyIntensity *float64) { + d.CloudyIntensity = cloudyIntensity + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldCloudyIntensity) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber { - if d == nil { - return nil - } - return d.ObjectNumber +// SetRectDifferences sets the RectDifferences field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetRectDifferences(rectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) { + d.RectDifferences = rectDifferences + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldRectDifferences) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm { - if d == nil { - return nil - } - return d.Nm +// SetRotation sets the Rotation field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetRotation(rotation *float64) { + d.Rotation = rotation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldRotation) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex { - if d == nil { - return nil - } - return d.Index +// SetUnrotatedRect sets the UnrotatedRect field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetUnrotatedRect(unrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect) { + d.UnrotatedRect = unrotatedRect + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldUnrotatedRect) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) UnmarshalJSON(data []byte) error { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare + var unmarshaler = struct { + embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), } if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Nm = value - case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Index = value + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(unmarshaler.embed) + d.Created = unmarshaler.Created.TimePtr() + d.Modified = unmarshaler.Modified.TimePtr() + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err } + d.extraProperties = extraProperties d.rawJSON = json.RawMessage(data) return nil } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare + var marshaler = struct { + embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), + Created: internal.NewOptionalDateTime(d.Created), + Modified: internal.NewOptionalDateTime(d.Modified), } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) String() string { + if d == nil { + return "" } - if d.Nm != nil { - return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } } - if d.Index != nil { - return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + if value, err := internal.StringifyJSON(d); err == nil { + return value } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode = "normal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode = "multiply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode = "screen" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode = "overlay" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode = "darken" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode = "lighten" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode = "color-dodge" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode = "color-burn" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode = "hard-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode = "soft-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode = "difference" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode = "exclusion" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode = "hue" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode = "saturation" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode = "color" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode = "luminosity" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode, error) { + switch s { + case "normal": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeNormal, nil + case "multiply": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeMultiply, nil + case "screen": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeScreen, nil + case "overlay": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeOverlay, nil + case "darken": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeDarken, nil + case "lighten": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeLighten, nil + case "color-dodge": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeColorDodge, nil + case "color-burn": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeColorBurn, nil + case "hard-light": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeHardLight, nil + case "soft-light": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeSoftLight, nil + case "difference": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeDifference, nil + case "exclusion": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeExclusion, nil + case "hue": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeHue, nil + case "saturation": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeSaturation, nil + case "color": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeColor, nil + case "luminosity": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeLuminosity, nil } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode + return "", fmt.Errorf("%s is not a valid %T", s, t) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) error +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode { + return &d } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) - } - if d.Nm != nil { - return visitor.VisitNm(d.Nm) - } - if d.Index != nil { - return visitor.VisitIndex(d.Index) +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyleSolid DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle = "solid" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyleDashed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle = "dashed" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyleBeveled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle = "beveled" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyleInset DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle = "inset" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyleFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle, error) { + switch s { + case "solid": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyleSolid, nil + case "dashed": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyleDashed, nil + case "beveled": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyleBeveled, nil + case "inset": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyleInset, nil } - return fmt.Errorf("type %T does not define a non-empty union type", d) + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo) validate() error { - if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Nm != nil { - fields = append(fields, "nm") - } - if d.Index != nil { - fields = append(fields, "index") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } - } - return nil +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle { + return &d } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColorFieldB = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor struct { + R int `json:"r" url:"r"` + G int `json:"g" url:"g"` + B int `json:"b" url:"b"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -88347,69 +106354,69 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToInde rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) GetR() int { if d == nil { return 0 } - return d.PageObjectNumber + return d.R } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) GetG() int { if d == nil { return 0 } - return d.Index + return d.G } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) GetB() int { if d == nil { - return nil + return 0 } - return d.Revision + return d.B } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetR sets the R field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) SetR(r int) { + d.R = r + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColorFieldR) } -// SetIndex sets the Index field and marks it as non-optional; +// SetG sets the G field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexFieldIndex) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) SetG(g int) { + d.G = g + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColorFieldG) } -// SetRevision sets the Revision field and marks it as non-optional; +// SetB sets the B field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision) { - d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexFieldRevision) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) SetB(b int) { + d.B = b + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColorFieldB) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -88419,8 +106426,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor var marshaler = struct { embed }{ @@ -88430,7 +106437,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) String() string { if d == nil { return "" } @@ -88446,15 +106453,29 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldInvisible = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldHidden = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldPrint = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldNoZoom = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldNoRotate = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldNoView = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldReadOnly = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldLocked = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldToggleNoView = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldLockedContents = big.NewInt(1 << 9) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags struct { + Invisible bool `json:"invisible" url:"invisible"` + Hidden bool `json:"hidden" url:"hidden"` + Print bool `json:"print" url:"print"` + NoZoom bool `json:"noZoom" url:"noZoom"` + NoRotate bool `json:"noRotate" url:"noRotate"` + NoView bool `json:"noView" url:"noView"` + ReadOnly bool `json:"readOnly" url:"readOnly"` + Locked bool `json:"locked" url:"locked"` + ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` + LockedContents bool `json:"lockedContents" url:"lockedContents"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -88463,169 +106484,167 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToInde rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) GetInvisible() bool { if d == nil { - return "" + return false } - return d.DocSessionID + return d.Invisible } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) GetHidden() bool { if d == nil { - return 0 + return false } - return d.PageObjectNumber + return d.Hidden } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision) GetGeneration() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) GetPrint() bool { if d == nil { - return 0 + return false } - return d.Generation + return d.Print } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) GetNoZoom() bool { if d == nil { - return nil + return false } - return d.extraProperties + return d.NoZoom } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) GetNoRotate() bool { + if d == nil { + return false } - d.explicitFields.Or(d.explicitFields, field) + return d.NoRotate } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevisionFieldDocSessionID) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) GetNoView() bool { + if d == nil { + return false + } + return d.NoView } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevisionFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) GetReadOnly() bool { + if d == nil { + return false + } + return d.ReadOnly } -// SetGeneration sets the Generation field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevisionFieldGeneration) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) GetLocked() bool { + if d == nil { + return false + } + return d.Locked } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) GetToggleNoView() bool { + if d == nil { + return false } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil + return d.ToggleNoView } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) GetLockedContents() bool { + if d == nil { + return false } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return d.LockedContents } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) GetExtraProperties() map[string]interface{} { if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value + return nil } - return fmt.Sprintf("%#v", d) + return d.extraProperties } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNmFieldNm = big.NewInt(1 << 1) -) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` +// SetInvisible sets the Invisible field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) SetInvisible(invisible bool) { + d.Invisible = invisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldInvisible) +} - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +// SetHidden sets the Hidden field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) SetHidden(hidden bool) { + d.Hidden = hidden + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldHidden) +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +// SetPrint sets the Print field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) SetPrint(print bool) { + d.Print = print + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldPrint) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber +// SetNoZoom sets the NoZoom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) SetNoZoom(noZoom bool) { + d.NoZoom = noZoom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldNoZoom) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm) GetNm() string { - if d == nil { - return "" - } - return d.Nm +// SetNoRotate sets the NoRotate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) SetNoRotate(noRotate bool) { + d.NoRotate = noRotate + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldNoRotate) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties +// SetNoView sets the NoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) SetNoView(noView bool) { + d.NoView = noView + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldNoView) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) +// SetReadOnly sets the ReadOnly field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldReadOnly) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetLocked sets the Locked field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNmFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) SetLocked(locked bool) { + d.Locked = locked + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldLocked) } -// SetNm sets the Nm field and marks it as non-optional; +// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNmFieldNm) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) SetToggleNoView(toggleNoView bool) { + d.ToggleNoView = toggleNoView + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldToggleNoView) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm +// SetLockedContents sets the LockedContents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) SetLockedContents(lockedContents bool) { + d.LockedContents = lockedContents + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldLockedContents) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -88635,8 +106654,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags var marshaler = struct { embed }{ @@ -88646,7 +106665,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) String() string { if d == nil { return "" } @@ -88661,116 +106680,188 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo return fmt.Sprintf("%#v", d) } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality = "durable" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality = "weak" ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality, error) { + switch s { + case "durable": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQualityDurable, nil + case "weak": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQualityWeak, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality + return "", fmt.Errorf("%s is not a valid %T", s, t) +} - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality { + return &d +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex + + rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo) GetKind() string { if d == nil { - return 0 + return "" } - return d.PageObjectNumber + return d.Kind } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber { if d == nil { - return 0 + return nil } - return d.AnnotObjectNumber + return d.ObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm { if d == nil { return nil } - return d.extraProperties + return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex { + if d == nil { + return nil } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumberFieldPageObjectNumber) -} - -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumberFieldAnnotObjectNumber) + return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { + if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - d.extraProperties = extraProperties + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value + } d.rawJSON = json.RawMessage(data) return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Nm != nil { + return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + } + if d.Index != nil { + return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber) String() string { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex) error +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) + } + if d.Nm != nil { + return visitor.VisitNm(d.Nm) + } + if d.Index != nil { + return visitor.VisitIndex(d.Index) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo) validate() error { if d == nil { - return "" + return fmt.Errorf("type %T is nil", d) } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Nm != nil { + fields = append(fields, "nm") + } + if d.Index != nil { + fields = append(fields, "index") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) } + return fmt.Errorf("type %T is empty", d) } - if value, err := internal.StringifyJSON(d); err == nil { - return value + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) } - return fmt.Sprintf("%#v", d) + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColorFieldR = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColorFieldG = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColorFieldB = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor struct { - R int `json:"r" url:"r"` - G int `json:"g" url:"g"` - B int `json:"b" url:"b"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -88779,69 +106870,69 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor) GetR() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex) GetPageObjectNumber() int { if d == nil { return 0 } - return d.R + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor) GetG() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex) GetIndex() int { if d == nil { return 0 } - return d.G + return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor) GetB() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision { if d == nil { - return 0 + return nil } - return d.B + return d.Revision } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetR sets the R field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor) SetR(r int) { - d.R = r - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColorFieldR) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexFieldPageObjectNumber) } -// SetG sets the G field and marks it as non-optional; +// SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor) SetG(g int) { - d.G = g - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColorFieldG) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexFieldIndex) } -// SetB sets the B field and marks it as non-optional; +// SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor) SetB(b int) { - d.B = b - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColorFieldB) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexFieldRevision) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -88851,8 +106942,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorC return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex var marshaler = struct { embed }{ @@ -88862,7 +106953,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorC return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex) String() string { if d == nil { return "" } @@ -88878,17 +106969,15 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorC } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemFieldP1 = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemFieldP2 = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemFieldP3 = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemFieldP4 = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem struct { - P1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1 `json:"p1" url:"p1"` - P2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2 `json:"p2" url:"p2"` - P3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3 `json:"p3" url:"p3"` - P4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4 `json:"p4" url:"p4"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -88897,83 +106986,69 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsIte rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem) GetP1() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1 { - if d == nil { - return nil - } - return d.P1 -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem) GetP2() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision) GetDocSessionID() string { if d == nil { - return nil + return "" } - return d.P2 + return d.DocSessionID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem) GetP3() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision) GetPageObjectNumber() int { if d == nil { - return nil + return 0 } - return d.P3 + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem) GetP4() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision) GetGeneration() int { if d == nil { - return nil + return 0 } - return d.P4 + return d.Generation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetP1 sets the P1 field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem) SetP1(p1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1) { - d.P1 = p1 - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemFieldP1) -} - -// SetP2 sets the P2 field and marks it as non-optional; +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem) SetP2(p2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2) { - d.P2 = p2 - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemFieldP2) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevisionFieldDocSessionID) } -// SetP3 sets the P3 field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem) SetP3(p3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3) { - d.P3 = p3 - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemFieldP3) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevisionFieldPageObjectNumber) } -// SetP4 sets the P4 field and marks it as non-optional; +// SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem) SetP4(p4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4) { - d.P4 = p4 - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemFieldP4) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevisionFieldGeneration) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -88983,8 +107058,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPoint return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision var marshaler = struct { embed }{ @@ -88994,7 +107069,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPoint return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision) String() string { if d == nil { return "" } @@ -89010,13 +107085,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPoint } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1FieldX = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1FieldY = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -89025,55 +107100,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsIte rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1) GetX() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm) GetPageObjectNumber() int { if d == nil { return 0 } - return d.X + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1) GetY() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm) GetNm() string { if d == nil { - return 0 + return "" } - return d.Y + return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetX sets the X field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1) SetX(x float64) { - d.X = x - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1FieldX) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNmFieldPageObjectNumber) } -// SetY sets the Y field and marks it as non-optional; +// SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1) SetY(y float64) { - d.Y = y - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1FieldY) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNmFieldNm) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1 +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -89083,8 +107158,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPoint return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1 +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm var marshaler = struct { embed }{ @@ -89094,7 +107169,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPoint return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm) String() string { if d == nil { return "" } @@ -89110,13 +107185,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPoint } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2FieldX = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2FieldY = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -89125,55 +107200,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsIte rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2) GetX() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } - return d.X + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2) GetY() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } - return d.Y + return d.AnnotObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetX sets the X field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2) SetX(x float64) { - d.X = x - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2FieldX) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumberFieldPageObjectNumber) } -// SetY sets the Y field and marks it as non-optional; +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2) SetY(y float64) { - d.Y = y - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2FieldY) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2 +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -89183,8 +107258,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPoint return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2 +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber var marshaler = struct { embed }{ @@ -89194,7 +107269,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPoint return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber) String() string { if d == nil { return "" } @@ -89210,13 +107285,15 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPoint } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3FieldX = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3FieldY = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColorFieldB = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor struct { + R int `json:"r" url:"r"` + G int `json:"g" url:"g"` + B int `json:"b" url:"b"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -89225,55 +107302,69 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsIte rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3) GetX() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor) GetR() int { if d == nil { return 0 } - return d.X + return d.R } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3) GetY() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor) GetG() int { if d == nil { return 0 } - return d.Y + return d.G } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor) GetB() int { + if d == nil { + return 0 + } + return d.B +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetX sets the X field and marks it as non-optional; +// SetR sets the R field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3) SetX(x float64) { - d.X = x - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3FieldX) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor) SetR(r int) { + d.R = r + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColorFieldR) } -// SetY sets the Y field and marks it as non-optional; +// SetG sets the G field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3) SetY(y float64) { - d.Y = y - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3FieldY) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor) SetG(g int) { + d.G = g + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColorFieldG) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3 +// SetB sets the B field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor) SetB(b int) { + d.B = b + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColorFieldB) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -89283,8 +107374,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPoint return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3 +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor var marshaler = struct { embed }{ @@ -89294,7 +107385,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPoint return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor) String() string { if d == nil { return "" } @@ -89310,13 +107401,17 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPoint } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4FieldX = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4FieldY = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectFieldTop = big.NewInt(1 << 3) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect struct { + Left float64 `json:"left" url:"left"` + Bottom float64 `json:"bottom" url:"bottom"` + Right float64 `json:"right" url:"right"` + Top float64 `json:"top" url:"top"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -89325,55 +107420,83 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsIte rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4) GetX() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect) GetLeft() float64 { if d == nil { return 0 } - return d.X + return d.Left } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4) GetY() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect) GetBottom() float64 { if d == nil { return 0 } - return d.Y + return d.Bottom } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect) GetRight() float64 { + if d == nil { + return 0 + } + return d.Right +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect) GetTop() float64 { + if d == nil { + return 0 + } + return d.Top +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetX sets the X field and marks it as non-optional; +// SetLeft sets the Left field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4) SetX(x float64) { - d.X = x - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4FieldX) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectFieldLeft) } -// SetY sets the Y field and marks it as non-optional; +// SetBottom sets the Bottom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4) SetY(y float64) { - d.Y = y - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4FieldY) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectFieldBottom) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4 +// SetRight sets the Right field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectFieldRight) +} + +// SetTop sets the Top field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectFieldTop) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -89383,8 +107506,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPoint return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4 +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect var marshaler = struct { embed }{ @@ -89394,7 +107517,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPoint return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect) String() string { if d == nil { return "" } @@ -89410,17 +107533,17 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPoint } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRectFieldRight = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRectFieldTop = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferencesFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferencesFieldTop = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferencesFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferencesFieldBottom = big.NewInt(1 << 3) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences struct { Left float64 `json:"left" url:"left"` - Bottom float64 `json:"bottom" url:"bottom"` - Right float64 `json:"right" url:"right"` Top float64 `json:"top" url:"top"` + Right float64 `json:"right" url:"right"` + Bottom float64 `json:"bottom" url:"bottom"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -89429,42 +107552,42 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) GetLeft() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) GetLeft() float64 { if d == nil { return 0 } return d.Left } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) GetBottom() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) GetTop() float64 { if d == nil { return 0 } - return d.Bottom + return d.Top } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) GetRight() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) GetRight() float64 { if d == nil { return 0 } return d.Right } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) GetTop() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) GetBottom() float64 { if d == nil { return 0 } - return d.Top + return d.Bottom } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -89473,39 +107596,39 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) req // SetLeft sets the Left field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) SetLeft(left float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) SetLeft(left float64) { d.Left = left - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRectFieldLeft) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferencesFieldLeft) } -// SetBottom sets the Bottom field and marks it as non-optional; +// SetTop sets the Top field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRectFieldBottom) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferencesFieldTop) } // SetRight sets the Right field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) SetRight(right float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) SetRight(right float64) { d.Right = right - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRectFieldRight) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferencesFieldRight) } -// SetTop sets the Top field and marks it as non-optional; +// SetBottom sets the Bottom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRectFieldTop) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferencesFieldBottom) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -89515,8 +107638,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) Unm return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences var marshaler = struct { embed }{ @@ -89526,7 +107649,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) Mar return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) String() string { if d == nil { return "" } @@ -89541,44 +107664,44 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect) Str return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef struct { Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef) GetKind() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber { if d == nil { return nil } return d.ObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex { if d == nil { return nil } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef) UnmarshalJSON(data []byte) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -89591,19 +107714,19 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef) Unma } switch unmarshaler.Kind { case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber) if err := json.Unmarshal(data, &value); err != nil { return err } d.ObjectNumber = value case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm) if err := json.Unmarshal(data, &value); err != nil { return err } d.Nm = value case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -89613,7 +107736,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef) Unma return nil } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -89632,13 +107755,13 @@ func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef) Marsh return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) error +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) error } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefVisitor) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefVisitor) error { if d.ObjectNumber != nil { return visitor.VisitObjectNumber(d.ObjectNumber) } @@ -89651,7 +107774,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef) Acce return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef) validate() error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -89692,15 +107815,15 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef) vali } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision `json:"revision" url:"revision"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -89709,35 +107832,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex stru rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision { if d == nil { return nil } return d.Revision } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -89746,32 +107869,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) SetIndex(index int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) SetIndex(index int) { d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexFieldIndex) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexFieldIndex) } // SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision) { d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexFieldRevision) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexFieldRevision) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -89781,8 +107904,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex var marshaler = struct { embed }{ @@ -89792,7 +107915,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) String() string { if d == nil { return "" } @@ -89808,12 +107931,12 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex) } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision struct { DocSessionID string `json:"docSessionId" url:"docSessionId"` PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Generation int `json:"generation" url:"generation"` @@ -89825,35 +107948,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevis rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision) GetDocSessionID() string { if d == nil { return "" } return d.DocSessionID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision) GetGeneration() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision) GetGeneration() int { if d == nil { return 0 } return d.Generation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -89862,32 +107985,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexR // SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision) SetDocSessionID(docSessionID string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision) SetDocSessionID(docSessionID string) { d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevisionFieldDocSessionID) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevisionFieldDocSessionID) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevisionFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevisionFieldPageObjectNumber) } // SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision) SetGeneration(generation int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision) SetGeneration(generation int) { d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevisionFieldGeneration) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevisionFieldGeneration) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -89897,8 +108020,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexR return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision var marshaler = struct { embed }{ @@ -89908,7 +108031,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexR return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision) String() string { if d == nil { return "" } @@ -89924,11 +108047,11 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexR } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNmFieldNm = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Nm string `json:"nm" url:"nm"` @@ -89939,28 +108062,28 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm struct rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm) GetNm() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm) GetNm() string { if d == nil { return "" } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -89969,25 +108092,25 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm) re // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNmFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNmFieldPageObjectNumber) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm) SetNm(nm string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm) SetNm(nm string) { d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNmFieldNm) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNmFieldNm) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -89997,8 +108120,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm) Un return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm var marshaler = struct { embed }{ @@ -90008,7 +108131,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm) Ma return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm) String() string { if d == nil { return "" } @@ -90024,11 +108147,11 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm) St } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` @@ -90039,55 +108162,209 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumb rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumberFieldPageObjectNumber) +} + +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyType = "reply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyType = "group" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyType, error) { + switch s { + case "reply": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyTypeReply, nil + case "group": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyTypeGroup, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyType { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRectFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRectFieldTop = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect struct { + Left float64 `json:"left" url:"left"` + Bottom float64 `json:"bottom" url:"bottom"` + Right float64 `json:"right" url:"right"` + Top float64 `json:"top" url:"top"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect) GetLeft() float64 { + if d == nil { + return 0 + } + return d.Left +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect) GetBottom() float64 { + if d == nil { + return 0 + } + return d.Bottom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect) GetRight() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.Right } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect) GetTop() float64 { if d == nil { return 0 } - return d.AnnotObjectNumber + return d.Top } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetLeft sets the Left field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumberFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRectFieldLeft) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetBottom sets the Bottom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumberFieldAnnotObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRectFieldBottom) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber +// SetRight sets the Right field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRectFieldRight) +} + +// SetTop sets the Top field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRectFieldTop) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -90097,8 +108374,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObject return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect var marshaler = struct { embed }{ @@ -90108,7 +108385,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObject return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect) String() string { if d == nil { return "" } @@ -90123,117 +108400,56 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObject return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType = "reply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType = "group" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType, error) { - switch s { - case "reply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyTypeReply, nil - case "group": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyTypeGroup, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType { - return &d -} - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlign string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlignLeft DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlign = "left" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlignCenter DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlign = "center" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlignRight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlign = "right" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlignFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlign, error) { - switch s { - case "left": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlignLeft, nil - case "center": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlignCenter, nil - case "right": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlignRight, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlign - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlign) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlign { - return &d -} - var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldRef = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldIndex = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldIdentityQuality = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldNm = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldFlags = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldRect = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldContents = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldSubject = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldAuthor = big.NewInt(1 << 9) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldCreated = big.NewInt(1 << 10) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldModified = big.NewInt(1 << 11) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldBlendMode = big.NewInt(1 << 12) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldInReplyTo = big.NewInt(1 << 13) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldReplyType = big.NewInt(1 << 14) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldUserID = big.NewInt(1 << 15) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldGroupID = big.NewInt(1 << 16) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldCreatedBy = big.NewInt(1 << 17) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldUpdatedBy = big.NewInt(1 << 18) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldActions = big.NewInt(1 << 19) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldColor = big.NewInt(1 << 20) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldOpacity = big.NewInt(1 << 21) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldStrokeWidth = big.NewInt(1 << 22) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldBorderStyle = big.NewInt(1 << 23) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldDashArray = big.NewInt(1 << 24) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldInteriorColor = big.NewInt(1 << 25) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldCloudyIntensity = big.NewInt(1 << 26) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldRectDifferences = big.NewInt(1 << 27) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldRotation = big.NewInt(1 << 28) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldUnrotatedRect = big.NewInt(1 << 29) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldRef = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldIndex = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldIdentityQuality = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldNm = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldFlags = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldRect = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldContents = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldSubject = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldAuthor = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldCreated = big.NewInt(1 << 10) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldModified = big.NewInt(1 << 11) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldBlendMode = big.NewInt(1 << 12) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldInReplyTo = big.NewInt(1 << 13) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldReplyType = big.NewInt(1 << 14) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldUserID = big.NewInt(1 << 15) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldGroupID = big.NewInt(1 << 16) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldCreatedBy = big.NewInt(1 << 17) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldUpdatedBy = big.NewInt(1 << 18) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldActions = big.NewInt(1 << 19) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldColor = big.NewInt(1 << 20) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldOpacity = big.NewInt(1 << 21) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldQuadPoints = big.NewInt(1 << 22) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare struct { - Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef `json:"ref" url:"ref"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality `json:"identityQuality" url:"identityQuality"` - Nm *string `json:"nm,omitempty" url:"nm,omitempty"` - Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags `json:"flags" url:"flags"` - Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect `json:"rect" url:"rect"` - Contents *string `json:"contents,omitempty" url:"contents,omitempty"` - Subject *string `json:"subject,omitempty" url:"subject,omitempty"` - Author *string `json:"author,omitempty" url:"author,omitempty"` - Created *time.Time `json:"created,omitempty" url:"created,omitempty"` - Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` - BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode `json:"blendMode" url:"blendMode"` - InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` - ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` - UserID *string `json:"userId,omitempty" url:"userId,omitempty"` - GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` - CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` - Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` - Color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor `json:"color" url:"color"` - Opacity float64 `json:"opacity" url:"opacity"` - StrokeWidth float64 `json:"strokeWidth" url:"strokeWidth"` - BorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle `json:"borderStyle" url:"borderStyle"` - DashArray []float64 `json:"dashArray,omitempty" url:"dashArray,omitempty"` - InteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor `json:"interiorColor,omitempty" url:"interiorColor,omitempty"` - CloudyIntensity *float64 `json:"cloudyIntensity,omitempty" url:"cloudyIntensity,omitempty"` - RectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences `json:"rectDifferences,omitempty" url:"rectDifferences,omitempty"` - Rotation *float64 `json:"rotation,omitempty" url:"rotation,omitempty"` - UnrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect `json:"unrotatedRect,omitempty" url:"unrotatedRect,omitempty"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly struct { + Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef `json:"ref" url:"ref"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality `json:"identityQuality" url:"identityQuality"` + Nm *string `json:"nm,omitempty" url:"nm,omitempty"` + Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags `json:"flags" url:"flags"` + Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect `json:"rect" url:"rect"` + Contents *string `json:"contents,omitempty" url:"contents,omitempty"` + Subject *string `json:"subject,omitempty" url:"subject,omitempty"` + Author *string `json:"author,omitempty" url:"author,omitempty"` + Created *time.Time `json:"created,omitempty" url:"created,omitempty"` + Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` + BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode `json:"blendMode" url:"blendMode"` + InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` + ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` + UserID *string `json:"userId,omitempty" url:"userId,omitempty"` + GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` + CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` + Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` + Color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor `json:"color" url:"color"` + Opacity float64 `json:"opacity" url:"opacity"` + QuadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem `json:"quadPoints" url:"quadPoints"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -90242,224 +108458,175 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef { if d == nil { return nil } return d.Ref } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality { if d == nil { return "" } return d.IdentityQuality } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetNm() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetNm() *string { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags { if d == nil { return nil } return d.Flags } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect { if d == nil { return nil } return d.Rect } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetContents() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetContents() *string { if d == nil { return nil } return d.Contents } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetSubject() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetSubject() *string { if d == nil { return nil } return d.Subject } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetAuthor() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetAuthor() *string { if d == nil { return nil } return d.Author } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetCreated() *time.Time { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetCreated() *time.Time { if d == nil { return nil } return d.Created } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetModified() *time.Time { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetModified() *time.Time { if d == nil { return nil } return d.Modified } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode { if d == nil { return "" } return d.BlendMode } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo { if d == nil { return nil } return d.InReplyTo } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyType { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType { if d == nil { return nil } return d.ReplyType } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetUserID() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetUserID() *string { if d == nil { return nil } return d.UserID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetGroupID() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetGroupID() *string { if d == nil { return nil } return d.GroupID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetCreatedBy() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetCreatedBy() *string { if d == nil { return nil } return d.CreatedBy } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetUpdatedBy() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetUpdatedBy() *string { if d == nil { return nil } return d.UpdatedBy } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetActions() *PdfAnnotationActions { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetActions() *PdfAnnotationActions { if d == nil { return nil } return d.Actions } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor { if d == nil { return nil } return d.Color } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetOpacity() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetOpacity() float64 { if d == nil { return 0 } return d.Opacity } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetStrokeWidth() float64 { - if d == nil { - return 0 - } - return d.StrokeWidth -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetBorderStyle() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle { - if d == nil { - return "" - } - return d.BorderStyle -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetDashArray() []float64 { - if d == nil { - return nil - } - return d.DashArray -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetInteriorColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor { - if d == nil { - return nil - } - return d.InteriorColor -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetCloudyIntensity() *float64 { - if d == nil { - return nil - } - return d.CloudyIntensity -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetRectDifferences() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences { - if d == nil { - return nil - } - return d.RectDifferences -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetRotation() *float64 { - if d == nil { - return nil - } - return d.Rotation -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetUnrotatedRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetQuadPoints() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem { if d == nil { return nil } - return d.UnrotatedRect + return d.QuadPoints } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -90468,216 +108635,167 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) require // SetRef sets the Ref field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef) { d.Ref = ref - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldRef) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldRef) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetIndex(index int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetIndex(index int) { d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldIndex) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldIndex) } // SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality) { d.IdentityQuality = identityQuality - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldIdentityQuality) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldIdentityQuality) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetNm(nm *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetNm(nm *string) { d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldNm) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldNm) } // SetFlags sets the Flags field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) { d.Flags = flags - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldFlags) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldFlags) } // SetRect sets the Rect field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) { d.Rect = rect - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldRect) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldRect) } // SetContents sets the Contents field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetContents(contents *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetContents(contents *string) { d.Contents = contents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldContents) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldContents) } // SetSubject sets the Subject field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetSubject(subject *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetSubject(subject *string) { d.Subject = subject - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldSubject) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldSubject) } // SetAuthor sets the Author field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetAuthor(author *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetAuthor(author *string) { d.Author = author - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldAuthor) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldAuthor) } // SetCreated sets the Created field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetCreated(created *time.Time) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetCreated(created *time.Time) { d.Created = created - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldCreated) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldCreated) } // SetModified sets the Modified field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetModified(modified *time.Time) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetModified(modified *time.Time) { d.Modified = modified - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldModified) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldModified) } // SetBlendMode sets the BlendMode field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode) { d.BlendMode = blendMode - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldBlendMode) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldBlendMode) } // SetInReplyTo sets the InReplyTo field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo) { d.InReplyTo = inReplyTo - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldInReplyTo) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldInReplyTo) } // SetReplyType sets the ReplyType field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyType) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType) { d.ReplyType = replyType - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldReplyType) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldReplyType) } // SetUserID sets the UserID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetUserID(userID *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetUserID(userID *string) { d.UserID = userID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldUserID) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldUserID) } // SetGroupID sets the GroupID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetGroupID(groupID *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetGroupID(groupID *string) { d.GroupID = groupID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldGroupID) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldGroupID) } // SetCreatedBy sets the CreatedBy field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetCreatedBy(createdBy *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetCreatedBy(createdBy *string) { d.CreatedBy = createdBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldCreatedBy) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldCreatedBy) } // SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetUpdatedBy(updatedBy *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetUpdatedBy(updatedBy *string) { d.UpdatedBy = updatedBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldUpdatedBy) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldUpdatedBy) } // SetActions sets the Actions field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetActions(actions *PdfAnnotationActions) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetActions(actions *PdfAnnotationActions) { d.Actions = actions - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldActions) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldActions) } // SetColor sets the Color field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetColor(color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetColor(color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) { d.Color = color - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldColor) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldColor) } // SetOpacity sets the Opacity field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetOpacity(opacity float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetOpacity(opacity float64) { d.Opacity = opacity - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldOpacity) -} - -// SetStrokeWidth sets the StrokeWidth field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetStrokeWidth(strokeWidth float64) { - d.StrokeWidth = strokeWidth - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldStrokeWidth) -} - -// SetBorderStyle sets the BorderStyle field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetBorderStyle(borderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle) { - d.BorderStyle = borderStyle - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldBorderStyle) -} - -// SetDashArray sets the DashArray field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetDashArray(dashArray []float64) { - d.DashArray = dashArray - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldDashArray) -} - -// SetInteriorColor sets the InteriorColor field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetInteriorColor(interiorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor) { - d.InteriorColor = interiorColor - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldInteriorColor) -} - -// SetCloudyIntensity sets the CloudyIntensity field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetCloudyIntensity(cloudyIntensity *float64) { - d.CloudyIntensity = cloudyIntensity - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldCloudyIntensity) -} - -// SetRectDifferences sets the RectDifferences field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetRectDifferences(rectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) { - d.RectDifferences = rectDifferences - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldRectDifferences) -} - -// SetRotation sets the Rotation field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetRotation(rotation *float64) { - d.Rotation = rotation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldRotation) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldOpacity) } -// SetUnrotatedRect sets the UnrotatedRect field and marks it as non-optional; +// SetQuadPoints sets the QuadPoints field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) SetUnrotatedRect(unrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect) { - d.UnrotatedRect = unrotatedRect - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFieldUnrotatedRect) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetQuadPoints(quadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) { + d.QuadPoints = quadPoints + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldQuadPoints) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) UnmarshalJSON(data []byte) error { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) UnmarshalJSON(data []byte) error { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly var unmarshaler = struct { embed Created *internal.DateTime `json:"created,omitempty"` @@ -90688,7 +108806,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) Unmarsh if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(unmarshaler.embed) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly(unmarshaler.embed) d.Created = unmarshaler.Created.TimePtr() d.Modified = unmarshaler.Modified.TimePtr() extraProperties, err := internal.ExtractExtraProperties(data, *d) @@ -90700,8 +108818,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) Unmarsh return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly var marshaler = struct { embed Created *internal.DateTime `json:"created,omitempty"` @@ -90715,7 +108833,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) Marshal return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) String() string { if d == nil { return "" } @@ -90730,105 +108848,77 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare) String( return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode = "normal" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode = "multiply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode = "screen" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode = "overlay" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode = "darken" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode = "lighten" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode = "color-dodge" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode = "color-burn" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode = "hard-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode = "soft-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode = "difference" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode = "exclusion" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode = "hue" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode = "saturation" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode = "color" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode = "luminosity" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode = "normal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode = "multiply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode = "screen" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode = "overlay" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode = "darken" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode = "lighten" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode = "color-dodge" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode = "color-burn" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode = "hard-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode = "soft-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode = "difference" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode = "exclusion" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode = "hue" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode = "saturation" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode = "color" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode = "luminosity" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode, error) { switch s { case "normal": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeNormal, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeNormal, nil case "multiply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeMultiply, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeMultiply, nil case "screen": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeScreen, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeScreen, nil case "overlay": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeOverlay, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeOverlay, nil case "darken": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeDarken, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeDarken, nil case "lighten": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeLighten, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeLighten, nil case "color-dodge": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeColorDodge, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeColorDodge, nil case "color-burn": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeColorBurn, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeColorBurn, nil case "hard-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeHardLight, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeHardLight, nil case "soft-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeSoftLight, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeSoftLight, nil case "difference": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeDifference, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeDifference, nil case "exclusion": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeExclusion, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeExclusion, nil case "hue": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeHue, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeHue, nil case "saturation": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeSaturation, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeSaturation, nil case "color": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeColor, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeColor, nil case "luminosity": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendModeLuminosity, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode { - return &d -} - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyleSolid DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle = "solid" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyleDashed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle = "dashed" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyleBeveled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle = "beveled" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyleInset DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle = "inset" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyleFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle, error) { - switch s { - case "solid": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyleSolid, nil - case "dashed": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyleDashed, nil - case "beveled": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyleBeveled, nil - case "inset": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyleInset, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeLuminosity, nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode { return &d } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColorFieldR = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColorFieldG = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColorFieldB = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColorFieldB = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor struct { R int `json:"r" url:"r"` G int `json:"g" url:"g"` B int `json:"b" url:"b"` @@ -90840,35 +108930,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor struct rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) GetR() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) GetR() int { if d == nil { return 0 } return d.R } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) GetG() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) GetG() int { if d == nil { return 0 } return d.G } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) GetB() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) GetB() int { if d == nil { return 0 } return d.B } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -90877,32 +108967,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) re // SetR sets the R field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) SetR(r int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) SetR(r int) { d.R = r - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColorFieldR) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColorFieldR) } // SetG sets the G field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) SetG(g int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) SetG(g int) { d.G = g - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColorFieldG) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColorFieldG) } // SetB sets the B field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) SetB(b int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) SetB(b int) { d.B = b - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColorFieldB) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColorFieldB) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -90912,8 +109002,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) Un return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor var marshaler = struct { embed }{ @@ -90923,7 +109013,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) Ma return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) String() string { if d == nil { return "" } @@ -90939,19 +109029,19 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor) St } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldInvisible = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldHidden = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldPrint = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldNoZoom = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldNoRotate = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldNoView = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldReadOnly = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldLocked = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldToggleNoView = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldLockedContents = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldInvisible = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldHidden = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldPrint = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldNoZoom = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldNoRotate = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldNoView = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldReadOnly = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldLocked = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldToggleNoView = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldLockedContents = big.NewInt(1 << 9) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags struct { Invisible bool `json:"invisible" url:"invisible"` Hidden bool `json:"hidden" url:"hidden"` Print bool `json:"print" url:"print"` @@ -90970,84 +109060,84 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags struct rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) GetInvisible() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) GetInvisible() bool { if d == nil { return false } return d.Invisible } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) GetHidden() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) GetHidden() bool { if d == nil { return false } return d.Hidden } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) GetPrint() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) GetPrint() bool { if d == nil { return false } return d.Print } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) GetNoZoom() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) GetNoZoom() bool { if d == nil { return false } return d.NoZoom } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) GetNoRotate() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) GetNoRotate() bool { if d == nil { return false } return d.NoRotate } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) GetNoView() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) GetNoView() bool { if d == nil { return false } return d.NoView } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) GetReadOnly() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) GetReadOnly() bool { if d == nil { return false } return d.ReadOnly } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) GetLocked() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) GetLocked() bool { if d == nil { return false } return d.Locked } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) GetToggleNoView() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) GetToggleNoView() bool { if d == nil { return false } return d.ToggleNoView } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) GetLockedContents() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) GetLockedContents() bool { if d == nil { return false } return d.LockedContents } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -91056,81 +109146,81 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) re // SetInvisible sets the Invisible field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) SetInvisible(invisible bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) SetInvisible(invisible bool) { d.Invisible = invisible - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldInvisible) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldInvisible) } // SetHidden sets the Hidden field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) SetHidden(hidden bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) SetHidden(hidden bool) { d.Hidden = hidden - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldHidden) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldHidden) } // SetPrint sets the Print field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) SetPrint(print bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) SetPrint(print bool) { d.Print = print - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldPrint) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldPrint) } // SetNoZoom sets the NoZoom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) SetNoZoom(noZoom bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) SetNoZoom(noZoom bool) { d.NoZoom = noZoom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldNoZoom) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldNoZoom) } // SetNoRotate sets the NoRotate field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) SetNoRotate(noRotate bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) SetNoRotate(noRotate bool) { d.NoRotate = noRotate - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldNoRotate) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldNoRotate) } // SetNoView sets the NoView field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) SetNoView(noView bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) SetNoView(noView bool) { d.NoView = noView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldNoView) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldNoView) } // SetReadOnly sets the ReadOnly field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) SetReadOnly(readOnly bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) SetReadOnly(readOnly bool) { d.ReadOnly = readOnly - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldReadOnly) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldReadOnly) } // SetLocked sets the Locked field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) SetLocked(locked bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) SetLocked(locked bool) { d.Locked = locked - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldLocked) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldLocked) } // SetToggleNoView sets the ToggleNoView field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) SetToggleNoView(toggleNoView bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) SetToggleNoView(toggleNoView bool) { d.ToggleNoView = toggleNoView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldToggleNoView) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldToggleNoView) } // SetLockedContents sets the LockedContents field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) SetLockedContents(lockedContents bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) SetLockedContents(lockedContents bool) { d.LockedContents = lockedContents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlagsFieldLockedContents) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldLockedContents) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -91140,8 +109230,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) Un return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags var marshaler = struct { embed }{ @@ -91151,7 +109241,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) Ma return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) String() string { if d == nil { return "" } @@ -91166,66 +109256,66 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags) St return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality = "durable" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality = "weak" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality = "durable" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality = "weak" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality, error) { switch s { case "durable": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQualityDurable, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQualityDurable, nil case "weak": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQualityWeak, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQualityWeak, nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality { return &d } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo struct { Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo) GetKind() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber { if d == nil { return nil } return d.ObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex { if d == nil { return nil } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo) UnmarshalJSON(data []byte) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -91238,19 +109328,19 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo } switch unmarshaler.Kind { case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber) if err := json.Unmarshal(data, &value); err != nil { return err } d.ObjectNumber = value case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm) if err := json.Unmarshal(data, &value); err != nil { return err } d.Nm = value case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -91260,7 +109350,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo return nil } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -91279,13 +109369,13 @@ func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo) return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex) error +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) error } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToVisitor) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToVisitor) error { if d.ObjectNumber != nil { return visitor.VisitObjectNumber(d.ObjectNumber) } @@ -91298,7 +109388,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo) validate() error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -91339,15 +109429,15 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -91356,35 +109446,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToInde rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision { if d == nil { return nil } return d.Revision } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -91393,248 +109483,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex) SetIndex(index int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) SetIndex(index int) { d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexFieldIndex) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexFieldIndex) } // SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision) { d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexFieldRevision) -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) -} - -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) -) - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision) GetDocSessionID() string { - if d == nil { - return "" - } - return d.DocSessionID -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision) GetGeneration() int { - if d == nil { - return 0 - } - return d.Generation -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevisionFieldDocSessionID) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevisionFieldPageObjectNumber) -} - -// SetGeneration sets the Generation field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevisionFieldGeneration) -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) -} - -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNmFieldNm = big.NewInt(1 << 1) -) - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm) GetNm() string { - if d == nil { - return "" - } - return d.Nm -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNmFieldPageObjectNumber) -} - -// SetNm sets the Nm field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNmFieldNm) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexFieldRevision) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -91644,8 +109518,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex var marshaler = struct { embed }{ @@ -91655,7 +109529,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) String() string { if d == nil { return "" } @@ -91671,13 +109545,15 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -91686,55 +109562,69 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObje rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision) GetGeneration() int { if d == nil { return 0 } - return d.AnnotObjectNumber + return d.Generation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevisionFieldDocSessionID) +} + // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumberFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevisionFieldPageObjectNumber) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumberFieldAnnotObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevisionFieldGeneration) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -91744,8 +109634,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision var marshaler = struct { embed }{ @@ -91755,7 +109645,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision) String() string { if d == nil { return "" } @@ -91771,15 +109661,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColorFieldR = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColorFieldG = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColorFieldB = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor struct { - R int `json:"r" url:"r"` - G int `json:"g" url:"g"` - B int `json:"b" url:"b"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -91788,69 +109676,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor) GetR() int { - if d == nil { - return 0 - } - return d.R -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor) GetG() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm) GetPageObjectNumber() int { if d == nil { return 0 } - return d.G + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor) GetB() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm) GetNm() string { if d == nil { - return 0 + return "" } - return d.B + return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetR sets the R field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor) SetR(r int) { - d.R = r - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColorFieldR) -} - -// SetG sets the G field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor) SetG(g int) { - d.G = g - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColorFieldG) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNmFieldPageObjectNumber) } -// SetB sets the B field and marks it as non-optional; +// SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor) SetB(b int) { - d.B = b - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColorFieldB) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNmFieldNm) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -91860,8 +109734,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorC return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm var marshaler = struct { embed }{ @@ -91871,7 +109745,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorC return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm) String() string { if d == nil { return "" } @@ -91887,17 +109761,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorC } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectFieldRight = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectFieldTop = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect struct { - Left float64 `json:"left" url:"left"` - Bottom float64 `json:"bottom" url:"bottom"` - Right float64 `json:"right" url:"right"` - Top float64 `json:"top" url:"top"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -91906,83 +109776,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect) GetLeft() float64 { - if d == nil { - return 0 - } - return d.Left -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect) GetBottom() float64 { - if d == nil { - return 0 - } - return d.Bottom -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect) GetRight() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } - return d.Right + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect) GetTop() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } - return d.Top + return d.AnnotObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetLeft sets the Left field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect) SetLeft(left float64) { - d.Left = left - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectFieldLeft) -} - -// SetBottom sets the Bottom field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectFieldBottom) -} - -// SetRight sets the Right field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect) SetRight(right float64) { - d.Right = right - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectFieldRight) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumberFieldPageObjectNumber) } -// SetTop sets the Top field and marks it as non-optional; +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectFieldTop) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -91992,8 +109834,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect) Unm return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber var marshaler = struct { embed }{ @@ -92003,7 +109845,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect) Mar return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber) String() string { if d == nil { return "" } @@ -92019,17 +109861,17 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect) Str } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferencesFieldLeft = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferencesFieldTop = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferencesFieldRight = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferencesFieldBottom = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemFieldP1 = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemFieldP2 = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemFieldP3 = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemFieldP4 = big.NewInt(1 << 3) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences struct { - Left float64 `json:"left" url:"left"` - Top float64 `json:"top" url:"top"` - Right float64 `json:"right" url:"right"` - Bottom float64 `json:"bottom" url:"bottom"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem struct { + P1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1 `json:"p1" url:"p1"` + P2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2 `json:"p2" url:"p2"` + P3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3 `json:"p3" url:"p3"` + P4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4 `json:"p4" url:"p4"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -92038,83 +109880,83 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferenc rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) GetLeft() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) GetP1() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1 { if d == nil { - return 0 + return nil } - return d.Left + return d.P1 } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) GetTop() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) GetP2() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2 { if d == nil { - return 0 + return nil } - return d.Top + return d.P2 } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) GetRight() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) GetP3() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3 { if d == nil { - return 0 + return nil } - return d.Right + return d.P3 } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) GetBottom() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) GetP4() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4 { if d == nil { - return 0 + return nil } - return d.Bottom + return d.P4 } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetLeft sets the Left field and marks it as non-optional; +// SetP1 sets the P1 field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) SetLeft(left float64) { - d.Left = left - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferencesFieldLeft) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) SetP1(p1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1) { + d.P1 = p1 + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemFieldP1) } -// SetTop sets the Top field and marks it as non-optional; +// SetP2 sets the P2 field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferencesFieldTop) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) SetP2(p2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2) { + d.P2 = p2 + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemFieldP2) } -// SetRight sets the Right field and marks it as non-optional; +// SetP3 sets the P3 field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) SetRight(right float64) { - d.Right = right - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferencesFieldRight) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) SetP3(p3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3) { + d.P3 = p3 + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemFieldP3) } -// SetBottom sets the Bottom field and marks it as non-optional; +// SetP4 sets the P4 field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferencesFieldBottom) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) SetP4(p4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4) { + d.P4 = p4 + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemFieldP4) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -92124,8 +109966,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDiffe return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem var marshaler = struct { embed }{ @@ -92135,7 +109977,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDiffe return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) String() string { if d == nil { return "" } @@ -92150,166 +109992,14 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDiffe return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef struct { - Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex - - rawJSON json.RawMessage -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef) GetKind() string { - if d == nil { - return "" - } - return d.Kind -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber { - if d == nil { - return nil - } - return d.ObjectNumber -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm { - if d == nil { - return nil - } - return d.Nm -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex { - if d == nil { - return nil - } - return d.Index -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Nm = value - case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Index = value - } - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Nm != nil { - return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") - } - if d.Index != nil { - return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil - } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) -} - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) error -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) - } - if d.Nm != nil { - return visitor.VisitNm(d.Nm) - } - if d.Index != nil { - return visitor.VisitIndex(d.Index) - } - return fmt.Errorf("type %T does not define a non-empty union type", d) -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef) validate() error { - if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Nm != nil { - fields = append(fields, "nm") - } - if d.Index != nil { - fields = append(fields, "index") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } - } - return nil -} - var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1FieldY = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -92318,69 +110008,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex stru rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1) GetX() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.X } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1) GetY() float64 { if d == nil { return 0 } - return d.Index -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision { - if d == nil { - return nil - } - return d.Revision + return d.Y } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexFieldPageObjectNumber) -} - -// SetIndex sets the Index field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexFieldIndex) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1FieldX) } -// SetRevision sets the Revision field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision) { - d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexFieldRevision) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1FieldY) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1 var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -92390,8 +110066,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1 var marshaler = struct { embed }{ @@ -92401,7 +110077,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1) String() string { if d == nil { return "" } @@ -92417,15 +110093,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex) } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2FieldY = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -92434,69 +110108,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevis rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision) GetDocSessionID() string { - if d == nil { - return "" - } - return d.DocSessionID -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2) GetX() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.X } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision) GetGeneration() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2) GetY() float64 { if d == nil { return 0 } - return d.Generation + return d.Y } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevisionFieldDocSessionID) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevisionFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2FieldX) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevisionFieldGeneration) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2FieldY) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2 var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -92506,8 +110166,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexR return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2 var marshaler = struct { embed }{ @@ -92517,7 +110177,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexR return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2) String() string { if d == nil { return "" } @@ -92533,13 +110193,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexR } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNmFieldNm = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3FieldY = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -92548,55 +110208,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm struct rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3) GetX() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.X } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm) GetNm() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3) GetY() float64 { if d == nil { - return "" + return 0 } - return d.Nm + return d.Y } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNmFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3FieldX) } -// SetNm sets the Nm field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNmFieldNm) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3FieldY) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3 var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -92606,8 +110266,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm) Un return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3 var marshaler = struct { embed }{ @@ -92617,7 +110277,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm) Ma return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3) String() string { if d == nil { return "" } @@ -92633,13 +110293,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm) St } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4FieldY = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -92648,55 +110308,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumb rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4) GetX() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.X } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4) GetY() float64 { if d == nil { return 0 } - return d.AnnotObjectNumber + return d.Y } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumberFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4FieldX) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumberFieldAnnotObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4FieldY) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4 var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -92706,8 +110366,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObject return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4 var marshaler = struct { embed }{ @@ -92717,7 +110377,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObject return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4) String() string { if d == nil { return "" } @@ -92732,36 +110392,14 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObject return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyType string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyType = "reply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyType = "group" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyType, error) { - switch s { - case "reply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyTypeReply, nil - case "group": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyTypeGroup, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyType - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyType { - return &d -} - var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRectFieldRight = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRectFieldTop = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRectFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRectFieldTop = big.NewInt(1 << 3) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect struct { Left float64 `json:"left" url:"left"` Bottom float64 `json:"bottom" url:"bottom"` Right float64 `json:"right" url:"right"` @@ -92774,42 +110412,42 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect) GetLeft() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) GetLeft() float64 { if d == nil { return 0 } return d.Left } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect) GetBottom() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) GetBottom() float64 { if d == nil { return 0 } return d.Bottom } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect) GetRight() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) GetRight() float64 { if d == nil { return 0 } return d.Right } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect) GetTop() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) GetTop() float64 { if d == nil { return 0 } return d.Top } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -92818,39 +110456,39 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotated // SetLeft sets the Left field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect) SetLeft(left float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) SetLeft(left float64) { d.Left = left - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRectFieldLeft) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRectFieldLeft) } // SetBottom sets the Bottom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect) SetBottom(bottom float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) SetBottom(bottom float64) { d.Bottom = bottom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRectFieldBottom) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRectFieldBottom) } // SetRight sets the Right field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect) SetRight(right float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) SetRight(right float64) { d.Right = right - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRectFieldRight) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRectFieldRight) } // SetTop sets the Top field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect) SetTop(top float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) SetTop(top float64) { d.Top = top - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRectFieldTop) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRectFieldTop) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -92860,8 +110498,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotated return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect var marshaler = struct { embed }{ @@ -92871,7 +110509,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotated return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) String() string { if d == nil { return "" } @@ -92886,415 +110524,237 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotated return fmt.Sprintf("%#v", d) } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldRef = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldIndex = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldIdentityQuality = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldNm = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldFlags = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldRect = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldContents = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldSubject = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldAuthor = big.NewInt(1 << 9) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldCreated = big.NewInt(1 << 10) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldModified = big.NewInt(1 << 11) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldBlendMode = big.NewInt(1 << 12) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldInReplyTo = big.NewInt(1 << 13) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldReplyType = big.NewInt(1 << 14) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldUserID = big.NewInt(1 << 15) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldGroupID = big.NewInt(1 << 16) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldCreatedBy = big.NewInt(1 << 17) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldUpdatedBy = big.NewInt(1 << 18) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldActions = big.NewInt(1 << 19) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldColor = big.NewInt(1 << 20) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldOpacity = big.NewInt(1 << 21) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldQuadPoints = big.NewInt(1 << 22) -) - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly struct { - Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef `json:"ref" url:"ref"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality `json:"identityQuality" url:"identityQuality"` - Nm *string `json:"nm,omitempty" url:"nm,omitempty"` - Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags `json:"flags" url:"flags"` - Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect `json:"rect" url:"rect"` - Contents *string `json:"contents,omitempty" url:"contents,omitempty"` - Subject *string `json:"subject,omitempty" url:"subject,omitempty"` - Author *string `json:"author,omitempty" url:"author,omitempty"` - Created *time.Time `json:"created,omitempty" url:"created,omitempty"` - Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` - BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode `json:"blendMode" url:"blendMode"` - InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` - ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` - UserID *string `json:"userId,omitempty" url:"userId,omitempty"` - GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` - CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` - Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` - Color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor `json:"color" url:"color"` - Opacity float64 `json:"opacity" url:"opacity"` - QuadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem `json:"quadPoints" url:"quadPoints"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef { - if d == nil { - return nil - } - return d.Ref -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber -} +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetIndex() int { - if d == nil { - return 0 - } - return d.Index + rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef) GetKind() string { if d == nil { return "" } - return d.IdentityQuality + return d.Kind } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetNm() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber { if d == nil { return nil } - return d.Nm + return d.ObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm { if d == nil { return nil } - return d.Flags + return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex { if d == nil { return nil } - return d.Rect + return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetContents() *string { - if d == nil { - return nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` } - return d.Contents -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetSubject() *string { - if d == nil { - return nil + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err } - return d.Subject -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetAuthor() *string { - if d == nil { - return nil + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) } - return d.Author -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetCreated() *time.Time { - if d == nil { - return nil + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value } - return d.Created + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetModified() *time.Time { - if d == nil { - return nil +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err } - return d.Modified -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode { - if d == nil { - return "" + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") } - return d.BlendMode -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo { - if d == nil { - return nil + if d.Nm != nil { + return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") } - return d.InReplyTo -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType { - if d == nil { - return nil + if d.Index != nil { + return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") } - return d.ReplyType -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetUserID() *string { - if d == nil { - return nil + if len(d.rawJSON) > 0 { + return d.rawJSON, nil } - return d.UserID + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetGroupID() *string { - if d == nil { - return nil - } - return d.GroupID +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) error } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetCreatedBy() *string { - if d == nil { - return nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) } - return d.CreatedBy + if d.Nm != nil { + return visitor.VisitNm(d.Nm) + } + if d.Index != nil { + return visitor.VisitIndex(d.Index) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetUpdatedBy() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef) validate() error { if d == nil { - return nil + return fmt.Errorf("type %T is nil", d) } - return d.UpdatedBy + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Nm != nil { + fields = append(fields, "nm") + } + if d.Index != nil { + fields = append(fields, "index") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetActions() *PdfAnnotationActions { - if d == nil { - return nil - } - return d.Actions +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexFieldRevision = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision `json:"revision" url:"revision"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) GetPageObjectNumber() int { if d == nil { - return nil + return 0 } - return d.Color + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetOpacity() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) GetIndex() int { if d == nil { return 0 } - return d.Opacity + return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetQuadPoints() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision { if d == nil { return nil } - return d.QuadPoints + return d.Revision } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetRef sets the Ref field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef) { - d.Ref = ref - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldRef) -} - // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetIndex(index int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) SetIndex(index int) { d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldIndex) -} - -// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality) { - d.IdentityQuality = identityQuality - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldIdentityQuality) -} - -// SetNm sets the Nm field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetNm(nm *string) { - d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldNm) -} - -// SetFlags sets the Flags field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) { - d.Flags = flags - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldFlags) -} - -// SetRect sets the Rect field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) { - d.Rect = rect - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldRect) -} - -// SetContents sets the Contents field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetContents(contents *string) { - d.Contents = contents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldContents) -} - -// SetSubject sets the Subject field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetSubject(subject *string) { - d.Subject = subject - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldSubject) -} - -// SetAuthor sets the Author field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetAuthor(author *string) { - d.Author = author - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldAuthor) -} - -// SetCreated sets the Created field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetCreated(created *time.Time) { - d.Created = created - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldCreated) -} - -// SetModified sets the Modified field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetModified(modified *time.Time) { - d.Modified = modified - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldModified) -} - -// SetBlendMode sets the BlendMode field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode) { - d.BlendMode = blendMode - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldBlendMode) -} - -// SetInReplyTo sets the InReplyTo field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo) { - d.InReplyTo = inReplyTo - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldInReplyTo) -} - -// SetReplyType sets the ReplyType field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType) { - d.ReplyType = replyType - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldReplyType) -} - -// SetUserID sets the UserID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetUserID(userID *string) { - d.UserID = userID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldUserID) -} - -// SetGroupID sets the GroupID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetGroupID(groupID *string) { - d.GroupID = groupID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldGroupID) -} - -// SetCreatedBy sets the CreatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetCreatedBy(createdBy *string) { - d.CreatedBy = createdBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldCreatedBy) -} - -// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetUpdatedBy(updatedBy *string) { - d.UpdatedBy = updatedBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldUpdatedBy) -} - -// SetActions sets the Actions field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetActions(actions *PdfAnnotationActions) { - d.Actions = actions - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldActions) -} - -// SetColor sets the Color field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetColor(color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) { - d.Color = color - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldColor) -} - -// SetOpacity sets the Opacity field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetOpacity(opacity float64) { - d.Opacity = opacity - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldOpacity) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexFieldIndex) } -// SetQuadPoints sets the QuadPoints field and marks it as non-optional; +// SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) SetQuadPoints(quadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) { - d.QuadPoints = quadPoints - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFieldQuadPoints) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexFieldRevision) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) UnmarshalJSON(data []byte) error { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly - var unmarshaler = struct { - embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` - }{ - embed: embed(*d), - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly(unmarshaler.embed) - d.Created = unmarshaler.Created.TimePtr() - d.Modified = unmarshaler.Modified.TimePtr() + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -93304,22 +110764,18 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) Unmar return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex var marshaler = struct { embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), - Created: internal.NewOptionalDateTime(d.Created), - Modified: internal.NewOptionalDateTime(d.Modified), + embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) String() string { if d == nil { return "" } @@ -93334,80 +110790,16 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly) Strin return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode = "normal" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode = "multiply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode = "screen" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode = "overlay" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode = "darken" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode = "lighten" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode = "color-dodge" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode = "color-burn" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode = "hard-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode = "soft-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode = "difference" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode = "exclusion" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode = "hue" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode = "saturation" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode = "color" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode = "luminosity" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode, error) { - switch s { - case "normal": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeNormal, nil - case "multiply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeMultiply, nil - case "screen": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeScreen, nil - case "overlay": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeOverlay, nil - case "darken": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeDarken, nil - case "lighten": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeLighten, nil - case "color-dodge": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeColorDodge, nil - case "color-burn": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeColorBurn, nil - case "hard-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeHardLight, nil - case "soft-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeSoftLight, nil - case "difference": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeDifference, nil - case "exclusion": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeExclusion, nil - case "hue": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeHue, nil - case "saturation": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeSaturation, nil - case "color": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeColor, nil - case "luminosity": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendModeLuminosity, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode { - return &d -} - var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColorFieldR = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColorFieldG = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColorFieldB = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor struct { - R int `json:"r" url:"r"` - G int `json:"g" url:"g"` - B int `json:"b" url:"b"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -93416,69 +110808,69 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor struc rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) GetR() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision) GetDocSessionID() string { if d == nil { - return 0 + return "" } - return d.R + return d.DocSessionID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) GetG() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } - return d.G + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) GetB() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision) GetGeneration() int { if d == nil { return 0 } - return d.B + return d.Generation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetR sets the R field and marks it as non-optional; +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) SetR(r int) { - d.R = r - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColorFieldR) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevisionFieldDocSessionID) } -// SetG sets the G field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) SetG(g int) { - d.G = g - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColorFieldG) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevisionFieldPageObjectNumber) } -// SetB sets the B field and marks it as non-optional; +// SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) SetB(b int) { - d.B = b - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColorFieldB) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevisionFieldGeneration) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -93488,8 +110880,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision var marshaler = struct { embed }{ @@ -93499,7 +110891,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision) String() string { if d == nil { return "" } @@ -93515,29 +110907,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor) } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldInvisible = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldHidden = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldPrint = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldNoZoom = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldNoRotate = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldNoView = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldReadOnly = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldLocked = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldToggleNoView = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldLockedContents = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags struct { - Invisible bool `json:"invisible" url:"invisible"` - Hidden bool `json:"hidden" url:"hidden"` - Print bool `json:"print" url:"print"` - NoZoom bool `json:"noZoom" url:"noZoom"` - NoRotate bool `json:"noRotate" url:"noRotate"` - NoView bool `json:"noView" url:"noView"` - ReadOnly bool `json:"readOnly" url:"readOnly"` - Locked bool `json:"locked" url:"locked"` - ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` - LockedContents bool `json:"lockedContents" url:"lockedContents"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -93546,167 +110922,155 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags struc rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) GetInvisible() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm) GetPageObjectNumber() int { if d == nil { - return false + return 0 } - return d.Invisible + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) GetHidden() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm) GetNm() string { if d == nil { - return false + return "" } - return d.Hidden + return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) GetPrint() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm) GetExtraProperties() map[string]interface{} { if d == nil { - return false + return nil } - return d.Print + return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) GetNoZoom() bool { - if d == nil { - return false +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.NoZoom + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) GetNoRotate() bool { - if d == nil { - return false - } - return d.NoRotate +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNmFieldPageObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) GetNoView() bool { - if d == nil { - return false - } - return d.NoView +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNmFieldNm) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) GetReadOnly() bool { - if d == nil { - return false +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - return d.ReadOnly -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) GetLocked() bool { - if d == nil { - return false + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err } - return d.Locked + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) GetToggleNoView() bool { - if d == nil { - return false +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return d.ToggleNoView + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) GetLockedContents() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm) String() string { if d == nil { - return false + return "" } - return d.LockedContents -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } } - return d.extraProperties -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) + if value, err := internal.StringifyJSON(d); err == nil { + return value } - d.explicitFields.Or(d.explicitFields, field) + return fmt.Sprintf("%#v", d) } -// SetInvisible sets the Invisible field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) SetInvisible(invisible bool) { - d.Invisible = invisible - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldInvisible) -} +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) -// SetHidden sets the Hidden field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) SetHidden(hidden bool) { - d.Hidden = hidden - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldHidden) -} +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` -// SetPrint sets the Print field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) SetPrint(print bool) { - d.Print = print - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldPrint) -} + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` -// SetNoZoom sets the NoZoom field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) SetNoZoom(noZoom bool) { - d.NoZoom = noZoom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldNoZoom) + extraProperties map[string]interface{} + rawJSON json.RawMessage } - -// SetNoRotate sets the NoRotate field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) SetNoRotate(noRotate bool) { - d.NoRotate = noRotate - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldNoRotate) + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber } -// SetNoView sets the NoView field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) SetNoView(noView bool) { - d.NoView = noView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldNoView) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber } -// SetReadOnly sets the ReadOnly field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) SetReadOnly(readOnly bool) { - d.ReadOnly = readOnly - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldReadOnly) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties } -// SetLocked sets the Locked field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) SetLocked(locked bool) { - d.Locked = locked - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldLocked) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) } -// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) SetToggleNoView(toggleNoView bool) { - d.ToggleNoView = toggleNoView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldToggleNoView) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumberFieldPageObjectNumber) } -// SetLockedContents sets the LockedContents field and marks it as non-optional; +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) SetLockedContents(lockedContents bool) { - d.LockedContents = lockedContents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlagsFieldLockedContents) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -93716,8 +111080,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber var marshaler = struct { embed }{ @@ -93727,7 +111091,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber) String() string { if d == nil { return "" } @@ -93742,259 +111106,437 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags) return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality = "durable" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality = "weak" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType = "reply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType = "group" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType, error) { switch s { - case "durable": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQualityDurable, nil - case "weak": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQualityWeak, nil + case "reply": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyTypeReply, nil + case "group": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyTypeGroup, nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType { return &d } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo struct { - Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldRef = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldIndex = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldIdentityQuality = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldNm = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldFlags = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldRect = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldContents = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldSubject = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldAuthor = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldCreated = big.NewInt(1 << 10) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldModified = big.NewInt(1 << 11) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldBlendMode = big.NewInt(1 << 12) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldInReplyTo = big.NewInt(1 << 13) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldReplyType = big.NewInt(1 << 14) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldUserID = big.NewInt(1 << 15) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldGroupID = big.NewInt(1 << 16) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldCreatedBy = big.NewInt(1 << 17) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldUpdatedBy = big.NewInt(1 << 18) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldActions = big.NewInt(1 << 19) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldName = big.NewInt(1 << 20) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldRotation = big.NewInt(1 << 21) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldUnrotatedRect = big.NewInt(1 << 22) +) - rawJSON json.RawMessage +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp struct { + Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef `json:"ref" url:"ref"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality `json:"identityQuality" url:"identityQuality"` + Nm *string `json:"nm,omitempty" url:"nm,omitempty"` + Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags `json:"flags" url:"flags"` + Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect `json:"rect" url:"rect"` + Contents *string `json:"contents,omitempty" url:"contents,omitempty"` + Subject *string `json:"subject,omitempty" url:"subject,omitempty"` + Author *string `json:"author,omitempty" url:"author,omitempty"` + Created *time.Time `json:"created,omitempty" url:"created,omitempty"` + Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` + BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode `json:"blendMode" url:"blendMode"` + InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` + ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` + UserID *string `json:"userId,omitempty" url:"userId,omitempty"` + GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` + CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` + Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` + Name *string `json:"name,omitempty" url:"name,omitempty"` + Rotation *float64 `json:"rotation,omitempty" url:"rotation,omitempty"` + UnrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect `json:"unrotatedRect,omitempty" url:"unrotatedRect,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo) GetKind() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef { if d == nil { - return "" + return nil } - return d.Kind + return d.Ref } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetPageObjectNumber() int { if d == nil { - return nil + return 0 } - return d.ObjectNumber + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality { + if d == nil { + return "" + } + return d.IdentityQuality +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetNm() *string { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags { if d == nil { return nil } - return d.Index + return d.Flags } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Nm = value - case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Index = value +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect { + if d == nil { + return nil } - d.rawJSON = json.RawMessage(data) - return nil + return d.Rect } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Nm != nil { - return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") - } - if d.Index != nil { - return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetContents() *string { + if d == nil { + return nil } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) + return d.Contents } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) error +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) - } - if d.Nm != nil { - return visitor.VisitNm(d.Nm) - } - if d.Index != nil { - return visitor.VisitIndex(d.Index) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetAuthor() *string { + if d == nil { + return nil } - return fmt.Errorf("type %T does not define a non-empty union type", d) + return d.Author } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo) validate() error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetCreated() *time.Time { if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") + return nil } - if d.Nm != nil { - fields = append(fields, "nm") + return d.Created +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetModified() *time.Time { + if d == nil { + return nil } - if d.Index != nil { - fields = append(fields, "index") + return d.Modified +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode { + if d == nil { + return "" } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) + return d.BlendMode +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo { + if d == nil { + return nil } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + return d.InReplyTo +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyType { + if d == nil { + return nil } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } + return d.ReplyType +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetUserID() *string { + if d == nil { + return nil } - return nil + return d.UserID } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexFieldRevision = big.NewInt(1 << 2) -) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetGroupID() *string { + if d == nil { + return nil + } + return d.GroupID +} -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision `json:"revision" url:"revision"` +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetCreatedBy() *string { + if d == nil { + return nil + } + return d.CreatedBy +} - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetUpdatedBy() *string { + if d == nil { + return nil + } + return d.UpdatedBy +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetActions() *PdfAnnotationActions { + if d == nil { + return nil + } + return d.Actions } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetName() *string { if d == nil { - return 0 + return nil } - return d.PageObjectNumber + return d.Name } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetRotation() *float64 { if d == nil { - return 0 + return nil } - return d.Index + return d.Rotation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetUnrotatedRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect { if d == nil { return nil } - return d.Revision + return d.UnrotatedRect } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRef sets the Ref field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef) { + d.Ref = ref + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldRef) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldPageObjectNumber) +} + +// SetIndex sets the Index field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldIndex) +} + +// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality) { + d.IdentityQuality = identityQuality + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldIdentityQuality) +} + +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetNm(nm *string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldNm) +} + +// SetFlags sets the Flags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) { + d.Flags = flags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldFlags) +} + +// SetRect sets the Rect field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) { + d.Rect = rect + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldRect) +} + +// SetContents sets the Contents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetContents(contents *string) { + d.Contents = contents + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldContents) +} + +// SetSubject sets the Subject field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetSubject(subject *string) { + d.Subject = subject + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldSubject) +} + +// SetAuthor sets the Author field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetAuthor(author *string) { + d.Author = author + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldAuthor) +} + +// SetCreated sets the Created field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetCreated(created *time.Time) { + d.Created = created + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldCreated) +} + +// SetModified sets the Modified field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetModified(modified *time.Time) { + d.Modified = modified + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldModified) +} + +// SetBlendMode sets the BlendMode field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode) { + d.BlendMode = blendMode + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldBlendMode) +} + +// SetInReplyTo sets the InReplyTo field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo) { + d.InReplyTo = inReplyTo + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldInReplyTo) +} + +// SetReplyType sets the ReplyType field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyType) { + d.ReplyType = replyType + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldReplyType) +} + +// SetUserID sets the UserID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetUserID(userID *string) { + d.UserID = userID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldUserID) +} + +// SetGroupID sets the GroupID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetGroupID(groupID *string) { + d.GroupID = groupID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldGroupID) +} + +// SetCreatedBy sets the CreatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetCreatedBy(createdBy *string) { + d.CreatedBy = createdBy + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldCreatedBy) +} + +// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetUpdatedBy(updatedBy *string) { + d.UpdatedBy = updatedBy + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldUpdatedBy) +} + +// SetActions sets the Actions field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetActions(actions *PdfAnnotationActions) { + d.Actions = actions + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldActions) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetName(name *string) { + d.Name = name + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldName) } -// SetIndex sets the Index field and marks it as non-optional; +// SetRotation sets the Rotation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexFieldIndex) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetRotation(rotation *float64) { + d.Rotation = rotation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldRotation) } -// SetRevision sets the Revision field and marks it as non-optional; +// SetUnrotatedRect sets the UnrotatedRect field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision) { - d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexFieldRevision) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetUnrotatedRect(unrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect) { + d.UnrotatedRect = unrotatedRect + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldUnrotatedRect) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) UnmarshalJSON(data []byte) error { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp + var unmarshaler = struct { + embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(unmarshaler.embed) + d.Created = unmarshaler.Created.TimePtr() + d.Modified = unmarshaler.Modified.TimePtr() extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -94004,18 +111546,22 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReply return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp var marshaler = struct { embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), + embed: embed(*d), + Created: internal.NewOptionalDateTime(d.Created), + Modified: internal.NewOptionalDateTime(d.Modified), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) String() string { if d == nil { return "" } @@ -94030,16 +111576,94 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReply return fmt.Sprintf("%#v", d) } +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode = "normal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode = "multiply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode = "screen" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode = "overlay" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode = "darken" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode = "lighten" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode = "color-dodge" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode = "color-burn" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode = "hard-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode = "soft-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode = "difference" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode = "exclusion" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode = "hue" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode = "saturation" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode = "color" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode = "luminosity" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode, error) { + switch s { + case "normal": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeNormal, nil + case "multiply": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeMultiply, nil + case "screen": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeScreen, nil + case "overlay": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeOverlay, nil + case "darken": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeDarken, nil + case "lighten": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeLighten, nil + case "color-dodge": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeColorDodge, nil + case "color-burn": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeColorBurn, nil + case "hard-light": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeHardLight, nil + case "soft-light": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeSoftLight, nil + case "difference": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeDifference, nil + case "exclusion": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeExclusion, nil + case "hue": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeHue, nil + case "saturation": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeSaturation, nil + case "color": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeColor, nil + case "luminosity": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeLuminosity, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode { + return &d +} + var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldInvisible = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldHidden = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldPrint = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldNoZoom = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldNoRotate = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldNoView = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldReadOnly = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldLocked = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldToggleNoView = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldLockedContents = big.NewInt(1 << 9) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags struct { + Invisible bool `json:"invisible" url:"invisible"` + Hidden bool `json:"hidden" url:"hidden"` + Print bool `json:"print" url:"print"` + NoZoom bool `json:"noZoom" url:"noZoom"` + NoRotate bool `json:"noRotate" url:"noRotate"` + NoView bool `json:"noView" url:"noView"` + ReadOnly bool `json:"readOnly" url:"readOnly"` + Locked bool `json:"locked" url:"locked"` + ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` + LockedContents bool `json:"lockedContents" url:"lockedContents"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -94048,269 +111672,167 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIn rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) GetInvisible() bool { if d == nil { - return "" + return false } - return d.DocSessionID + return d.Invisible } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) GetHidden() bool { if d == nil { - return 0 + return false } - return d.PageObjectNumber + return d.Hidden } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision) GetGeneration() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) GetPrint() bool { if d == nil { - return 0 + return false } - return d.Generation + return d.Print } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) GetNoZoom() bool { if d == nil { - return nil + return false } - return d.extraProperties + return d.NoZoom } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) GetNoRotate() bool { + if d == nil { + return false } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevisionFieldDocSessionID) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevisionFieldPageObjectNumber) -} - -// SetGeneration sets the Generation field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevisionFieldGeneration) + return d.NoRotate } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) GetNoView() bool { + if d == nil { + return false } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil + return d.NoView } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) GetReadOnly() bool { + if d == nil { + return false } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return d.ReadOnly } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) GetLocked() bool { if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value + return false } - return fmt.Sprintf("%#v", d) -} - -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNmFieldNm = big.NewInt(1 << 1) -) - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage + return d.Locked } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) GetToggleNoView() bool { if d == nil { - return 0 + return false } - return d.PageObjectNumber + return d.ToggleNoView } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm) GetNm() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) GetLockedContents() bool { if d == nil { - return "" + return false } - return d.Nm + return d.LockedContents } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetInvisible sets the Invisible field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNmFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) SetInvisible(invisible bool) { + d.Invisible = invisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldInvisible) } -// SetNm sets the Nm field and marks it as non-optional; +// SetHidden sets the Hidden field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNmFieldNm) -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) SetHidden(hidden bool) { + d.Hidden = hidden + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldHidden) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) +// SetPrint sets the Print field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) SetPrint(print bool) { + d.Print = print + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldPrint) } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) -) - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage +// SetNoZoom sets the NoZoom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) SetNoZoom(noZoom bool) { + d.NoZoom = noZoom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldNoZoom) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber +// SetNoRotate sets the NoRotate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) SetNoRotate(noRotate bool) { + d.NoRotate = noRotate + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldNoRotate) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber) GetAnnotObjectNumber() int { - if d == nil { - return 0 - } - return d.AnnotObjectNumber +// SetNoView sets the NoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) SetNoView(noView bool) { + d.NoView = noView + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldNoView) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties +// SetReadOnly sets the ReadOnly field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldReadOnly) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) +// SetLocked sets the Locked field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) SetLocked(locked bool) { + d.Locked = locked + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldLocked) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumberFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) SetToggleNoView(toggleNoView bool) { + d.ToggleNoView = toggleNoView + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldToggleNoView) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetLockedContents sets the LockedContents field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumberFieldAnnotObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) SetLockedContents(lockedContents bool) { + d.LockedContents = lockedContents + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldLockedContents) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -94320,8 +111842,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReply return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags var marshaler = struct { embed }{ @@ -94331,7 +111853,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReply return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) String() string { if d == nil { return "" } @@ -94346,146 +111868,188 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReply return fmt.Sprintf("%#v", d) } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemFieldP1 = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemFieldP2 = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemFieldP3 = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemFieldP4 = big.NewInt(1 << 3) -) - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem struct { - P1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1 `json:"p1" url:"p1"` - P2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2 `json:"p2" url:"p2"` - P3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3 `json:"p3" url:"p3"` - P4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4 `json:"p4" url:"p4"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality string - extraProperties map[string]interface{} - rawJSON json.RawMessage -} +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality = "durable" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality = "weak" +) -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) GetP1() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1 { - if d == nil { - return nil +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality, error) { + switch s { + case "durable": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQualityDurable, nil + case "weak": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQualityWeak, nil } - return d.P1 + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) GetP2() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2 { - if d == nil { - return nil - } - return d.P2 +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality { + return &d } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) GetP3() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3 { - if d == nil { - return nil - } - return d.P3 -} +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) GetP4() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4 { - if d == nil { - return nil - } - return d.P4 + rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo) GetKind() string { if d == nil { - return nil - } - return d.extraProperties -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetP1 sets the P1 field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) SetP1(p1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1) { - d.P1 = p1 - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemFieldP1) + return "" + } + return d.Kind } -// SetP2 sets the P2 field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) SetP2(p2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2) { - d.P2 = p2 - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemFieldP2) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber } -// SetP3 sets the P3 field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) SetP3(p3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3) { - d.P3 = p3 - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemFieldP3) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm { + if d == nil { + return nil + } + return d.Nm } -// SetP4 sets the P4 field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) SetP4(p4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4) { - d.P4 = p4 - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemFieldP4) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex { + if d == nil { + return nil + } + return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { + if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - d.extraProperties = extraProperties + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value + } d.rawJSON = json.RawMessage(data) return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Nm != nil { + return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + } + if d.Index != nil { + return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem) String() string { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex) error +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) + } + if d.Nm != nil { + return visitor.VisitNm(d.Nm) + } + if d.Index != nil { + return visitor.VisitIndex(d.Index) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo) validate() error { if d == nil { - return "" + return fmt.Errorf("type %T is nil", d) } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Nm != nil { + fields = append(fields, "nm") + } + if d.Index != nil { + fields = append(fields, "index") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) } + return fmt.Errorf("type %T is empty", d) } - if value, err := internal.StringifyJSON(d); err == nil { - return value + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) } - return fmt.Sprintf("%#v", d) + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1FieldX = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1FieldY = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -94494,55 +112058,69 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsI rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1) GetX() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex) GetPageObjectNumber() int { if d == nil { return 0 } - return d.X + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1) GetY() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex) GetIndex() int { if d == nil { return 0 } - return d.Y + return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetX sets the X field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1) SetX(x float64) { - d.X = x - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1FieldX) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexFieldPageObjectNumber) } -// SetY sets the Y field and marks it as non-optional; +// SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1) SetY(y float64) { - d.Y = y - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1FieldY) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexFieldIndex) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1 +// SetRevision sets the Revision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexFieldRevision) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -94552,8 +112130,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPoi return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1 +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex var marshaler = struct { embed }{ @@ -94563,7 +112141,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPoi return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex) String() string { if d == nil { return "" } @@ -94579,13 +112157,15 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPoi } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2FieldX = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2FieldY = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -94594,55 +112174,69 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsI rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2) GetX() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } - return d.X + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2) GetY() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision) GetGeneration() int { if d == nil { return 0 } - return d.Y + return d.Generation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetX sets the X field and marks it as non-optional; +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2) SetX(x float64) { - d.X = x - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2FieldX) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevisionFieldDocSessionID) } -// SetY sets the Y field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2) SetY(y float64) { - d.Y = y - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2FieldY) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevisionFieldPageObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2 +// SetGeneration sets the Generation field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -94652,8 +112246,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPoi return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2 +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision var marshaler = struct { embed }{ @@ -94663,7 +112257,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPoi return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision) String() string { if d == nil { return "" } @@ -94679,13 +112273,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPoi } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3FieldX = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3FieldY = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -94694,55 +112288,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsI rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3) GetX() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm) GetPageObjectNumber() int { if d == nil { return 0 } - return d.X + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3) GetY() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm) GetNm() string { if d == nil { - return 0 + return "" } - return d.Y + return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetX sets the X field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3) SetX(x float64) { - d.X = x - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3FieldX) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNmFieldPageObjectNumber) } -// SetY sets the Y field and marks it as non-optional; +// SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3) SetY(y float64) { - d.Y = y - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3FieldY) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNmFieldNm) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3 +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -94752,8 +112346,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPoi return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3 +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm var marshaler = struct { embed }{ @@ -94763,7 +112357,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPoi return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm) String() string { if d == nil { return "" } @@ -94779,13 +112373,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPoi } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4FieldX = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4FieldY = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -94794,55 +112388,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsI rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4) GetX() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } - return d.X + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4) GetY() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } - return d.Y + return d.AnnotObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetX sets the X field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4) SetX(x float64) { - d.X = x - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4FieldX) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumberFieldPageObjectNumber) } -// SetY sets the Y field and marks it as non-optional; +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4) SetY(y float64) { - d.Y = y - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4FieldY) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4 +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -94852,8 +112446,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPoi return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4 +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber var marshaler = struct { embed }{ @@ -94863,7 +112457,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPoi return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber) String() string { if d == nil { return "" } @@ -94879,13 +112473,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPoi } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRectFieldRight = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRectFieldTop = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRectFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRectFieldTop = big.NewInt(1 << 3) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect struct { Left float64 `json:"left" url:"left"` Bottom float64 `json:"bottom" url:"bottom"` Right float64 `json:"right" url:"right"` @@ -94898,42 +112492,42 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect struct rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) GetLeft() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) GetLeft() float64 { if d == nil { return 0 } return d.Left } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) GetBottom() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) GetBottom() float64 { if d == nil { return 0 } return d.Bottom } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) GetRight() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) GetRight() float64 { if d == nil { return 0 } return d.Right } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) GetTop() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) GetTop() float64 { if d == nil { return 0 } return d.Top } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -94942,39 +112536,39 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) r // SetLeft sets the Left field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) SetLeft(left float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) SetLeft(left float64) { d.Left = left - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRectFieldLeft) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRectFieldLeft) } // SetBottom sets the Bottom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) SetBottom(bottom float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) SetBottom(bottom float64) { d.Bottom = bottom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRectFieldBottom) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRectFieldBottom) } // SetRight sets the Right field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) SetRight(right float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) SetRight(right float64) { d.Right = right - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRectFieldRight) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRectFieldRight) } // SetTop sets the Top field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) SetTop(top float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) SetTop(top float64) { d.Top = top - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRectFieldTop) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRectFieldTop) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -94984,8 +112578,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) U return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect var marshaler = struct { embed }{ @@ -94995,7 +112589,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) M return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) String() string { if d == nil { return "" } @@ -95010,44 +112604,44 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect) S return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef struct { Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef) GetKind() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber { if d == nil { return nil } return d.ObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex { if d == nil { return nil } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef) UnmarshalJSON(data []byte) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -95060,19 +112654,19 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef) Un } switch unmarshaler.Kind { case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber) if err := json.Unmarshal(data, &value); err != nil { return err } d.ObjectNumber = value case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm) if err := json.Unmarshal(data, &value); err != nil { return err } d.Nm = value case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -95082,7 +112676,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef) Un return nil } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -95101,13 +112695,13 @@ func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef) Mar return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) error +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) error } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefVisitor) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefVisitor) error { if d.ObjectNumber != nil { return visitor.VisitObjectNumber(d.ObjectNumber) } @@ -95120,7 +112714,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef) Ac return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef) validate() error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -95161,15 +112755,15 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef) va } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -95178,35 +112772,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex st rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision { if d == nil { return nil } return d.Revision } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -95215,32 +112809,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefInde // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) SetIndex(index int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) SetIndex(index int) { d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexFieldIndex) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexFieldIndex) } // SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision) { d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexFieldRevision) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexFieldRevision) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -95250,8 +112844,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefInde return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex var marshaler = struct { embed }{ @@ -95261,7 +112855,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefInde return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) String() string { if d == nil { return "" } @@ -95277,12 +112871,12 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefInde } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision struct { DocSessionID string `json:"docSessionId" url:"docSessionId"` PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Generation int `json:"generation" url:"generation"` @@ -95294,35 +112888,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRev rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision) GetDocSessionID() string { if d == nil { return "" } return d.DocSessionID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision) GetGeneration() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision) GetGeneration() int { if d == nil { return 0 } return d.Generation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -95331,32 +112925,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefInde // SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision) SetDocSessionID(docSessionID string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision) SetDocSessionID(docSessionID string) { d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevisionFieldDocSessionID) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevisionFieldDocSessionID) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevisionFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevisionFieldPageObjectNumber) } // SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision) SetGeneration(generation int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision) SetGeneration(generation int) { d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevisionFieldGeneration) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevisionFieldGeneration) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -95366,8 +112960,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefInde return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision var marshaler = struct { embed }{ @@ -95377,7 +112971,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefInde return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision) String() string { if d == nil { return "" } @@ -95393,11 +112987,11 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefInde } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNmFieldNm = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Nm string `json:"nm" url:"nm"` @@ -95408,28 +113002,28 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm struc rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm) GetNm() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm) GetNm() string { if d == nil { return "" } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -95438,25 +113032,25 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm) // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNmFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNmFieldPageObjectNumber) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm) SetNm(nm string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm) SetNm(nm string) { d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNmFieldNm) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNmFieldNm) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -95466,8 +113060,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm) return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm var marshaler = struct { embed }{ @@ -95477,7 +113071,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm) String() string { if d == nil { return "" } @@ -95493,11 +113087,11 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm) } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` @@ -95508,28 +113102,28 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNu rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } return d.AnnotObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -95538,25 +113132,25 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObje // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumberFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumberFieldPageObjectNumber) } // SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumberFieldAnnotObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -95566,8 +113160,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObje return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber var marshaler = struct { embed }{ @@ -95577,7 +113171,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObje return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber) String() string { if d == nil { return "" } @@ -95592,78 +113186,40 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObje return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyType string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType = "reply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType = "group" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyType = "reply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyType = "group" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyType, error) { switch s { case "reply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyTypeReply, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyTypeReply, nil case "group": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyTypeGroup, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyTypeGroup, nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyType return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyType { return &d } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldRef = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldIndex = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldIdentityQuality = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldNm = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldFlags = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldRect = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldContents = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldSubject = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldAuthor = big.NewInt(1 << 9) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldCreated = big.NewInt(1 << 10) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldModified = big.NewInt(1 << 11) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldBlendMode = big.NewInt(1 << 12) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldInReplyTo = big.NewInt(1 << 13) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldReplyType = big.NewInt(1 << 14) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldUserID = big.NewInt(1 << 15) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldGroupID = big.NewInt(1 << 16) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldCreatedBy = big.NewInt(1 << 17) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldUpdatedBy = big.NewInt(1 << 18) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldActions = big.NewInt(1 << 19) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldName = big.NewInt(1 << 20) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldRotation = big.NewInt(1 << 21) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldUnrotatedRect = big.NewInt(1 << 22) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRectFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRectFieldTop = big.NewInt(1 << 3) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp struct { - Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef `json:"ref" url:"ref"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality `json:"identityQuality" url:"identityQuality"` - Nm *string `json:"nm,omitempty" url:"nm,omitempty"` - Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags `json:"flags" url:"flags"` - Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect `json:"rect" url:"rect"` - Contents *string `json:"contents,omitempty" url:"contents,omitempty"` - Subject *string `json:"subject,omitempty" url:"subject,omitempty"` - Author *string `json:"author,omitempty" url:"author,omitempty"` - Created *time.Time `json:"created,omitempty" url:"created,omitempty"` - Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` - BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode `json:"blendMode" url:"blendMode"` - InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` - ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` - UserID *string `json:"userId,omitempty" url:"userId,omitempty"` - GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` - CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` - Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` - Name *string `json:"name,omitempty" url:"name,omitempty"` - Rotation *float64 `json:"rotation,omitempty" url:"rotation,omitempty"` - UnrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect `json:"unrotatedRect,omitempty" url:"unrotatedRect,omitempty"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect struct { + Left float64 `json:"left" url:"left"` + Bottom float64 `json:"bottom" url:"bottom"` + Right float64 `json:"right" url:"right"` + Top float64 `json:"top" url:"top"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -95672,175 +113228,354 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect) GetLeft() float64 { + if d == nil { + return 0 + } + return d.Left +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect) GetBottom() float64 { + if d == nil { + return 0 + } + return d.Bottom +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect) GetRight() float64 { + if d == nil { + return 0 + } + return d.Right +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect) GetTop() float64 { + if d == nil { + return 0 + } + return d.Top +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetLeft sets the Left field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRectFieldLeft) +} + +// SetBottom sets the Bottom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRectFieldBottom) +} + +// SetRight sets the Right field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRectFieldRight) +} + +// SetTop sets the Top field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRectFieldTop) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldRef = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldIndex = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldIdentityQuality = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldNm = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldFlags = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldRect = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldContents = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldSubject = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldAuthor = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldCreated = big.NewInt(1 << 10) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldModified = big.NewInt(1 << 11) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldBlendMode = big.NewInt(1 << 12) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldInReplyTo = big.NewInt(1 << 13) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldReplyType = big.NewInt(1 << 14) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldUserID = big.NewInt(1 << 15) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldGroupID = big.NewInt(1 << 16) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldCreatedBy = big.NewInt(1 << 17) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldUpdatedBy = big.NewInt(1 << 18) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldActions = big.NewInt(1 << 19) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldColor = big.NewInt(1 << 20) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldOpacity = big.NewInt(1 << 21) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldQuadPoints = big.NewInt(1 << 22) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldIntent = big.NewInt(1 << 23) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout struct { + Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef `json:"ref" url:"ref"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQuality `json:"identityQuality" url:"identityQuality"` + Nm *string `json:"nm,omitempty" url:"nm,omitempty"` + Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags `json:"flags" url:"flags"` + Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect `json:"rect" url:"rect"` + Contents *string `json:"contents,omitempty" url:"contents,omitempty"` + Subject *string `json:"subject,omitempty" url:"subject,omitempty"` + Author *string `json:"author,omitempty" url:"author,omitempty"` + Created *time.Time `json:"created,omitempty" url:"created,omitempty"` + Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` + BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode `json:"blendMode" url:"blendMode"` + InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` + ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` + UserID *string `json:"userId,omitempty" url:"userId,omitempty"` + GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` + CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` + Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` + Color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor `json:"color" url:"color"` + Opacity float64 `json:"opacity" url:"opacity"` + QuadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem `json:"quadPoints" url:"quadPoints"` + Intent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntent `json:"intent,omitempty" url:"intent,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef { if d == nil { return nil } return d.Ref } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQuality { if d == nil { return "" } return d.IdentityQuality } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetNm() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetNm() *string { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags { if d == nil { return nil } return d.Flags } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect { if d == nil { return nil } return d.Rect } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetContents() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetContents() *string { if d == nil { return nil } return d.Contents } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetSubject() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetSubject() *string { if d == nil { return nil } return d.Subject } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetAuthor() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetAuthor() *string { if d == nil { return nil } return d.Author } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetCreated() *time.Time { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetCreated() *time.Time { if d == nil { return nil } return d.Created } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetModified() *time.Time { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetModified() *time.Time { if d == nil { return nil } return d.Modified } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode { if d == nil { return "" } return d.BlendMode } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo { if d == nil { return nil } return d.InReplyTo } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyType { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType { if d == nil { return nil } return d.ReplyType } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetUserID() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetUserID() *string { if d == nil { return nil } return d.UserID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetGroupID() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetGroupID() *string { if d == nil { return nil } return d.GroupID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetCreatedBy() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetCreatedBy() *string { if d == nil { return nil } return d.CreatedBy } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetUpdatedBy() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetUpdatedBy() *string { if d == nil { return nil } return d.UpdatedBy } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetActions() *PdfAnnotationActions { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetActions() *PdfAnnotationActions { if d == nil { return nil } return d.Actions } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetName() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor { if d == nil { return nil } - return d.Name + return d.Color } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetRotation() *float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetOpacity() float64 { + if d == nil { + return 0 + } + return d.Opacity +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetQuadPoints() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem { if d == nil { return nil } - return d.Rotation + return d.QuadPoints } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetUnrotatedRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetIntent() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntent { if d == nil { return nil } - return d.UnrotatedRect + return d.Intent } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -95849,167 +113584,174 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) require( // SetRef sets the Ref field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef) { d.Ref = ref - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldRef) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldRef) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetIndex(index int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetIndex(index int) { d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldIndex) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldIndex) } // SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQuality) { d.IdentityQuality = identityQuality - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldIdentityQuality) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldIdentityQuality) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetNm(nm *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetNm(nm *string) { d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldNm) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldNm) } // SetFlags sets the Flags field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) { d.Flags = flags - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldFlags) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldFlags) } // SetRect sets the Rect field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) { d.Rect = rect - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldRect) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldRect) } // SetContents sets the Contents field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetContents(contents *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetContents(contents *string) { d.Contents = contents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldContents) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldContents) } // SetSubject sets the Subject field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetSubject(subject *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetSubject(subject *string) { d.Subject = subject - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldSubject) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldSubject) } // SetAuthor sets the Author field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetAuthor(author *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetAuthor(author *string) { d.Author = author - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldAuthor) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldAuthor) } // SetCreated sets the Created field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetCreated(created *time.Time) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetCreated(created *time.Time) { d.Created = created - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldCreated) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldCreated) } // SetModified sets the Modified field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetModified(modified *time.Time) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetModified(modified *time.Time) { d.Modified = modified - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldModified) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldModified) } // SetBlendMode sets the BlendMode field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode) { d.BlendMode = blendMode - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldBlendMode) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldBlendMode) } // SetInReplyTo sets the InReplyTo field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo) { d.InReplyTo = inReplyTo - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldInReplyTo) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldInReplyTo) } // SetReplyType sets the ReplyType field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyType) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType) { d.ReplyType = replyType - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldReplyType) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldReplyType) } // SetUserID sets the UserID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetUserID(userID *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetUserID(userID *string) { d.UserID = userID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldUserID) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldUserID) } // SetGroupID sets the GroupID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetGroupID(groupID *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetGroupID(groupID *string) { d.GroupID = groupID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldGroupID) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldGroupID) } // SetCreatedBy sets the CreatedBy field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetCreatedBy(createdBy *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetCreatedBy(createdBy *string) { d.CreatedBy = createdBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldCreatedBy) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldCreatedBy) } // SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetUpdatedBy(updatedBy *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetUpdatedBy(updatedBy *string) { d.UpdatedBy = updatedBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldUpdatedBy) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldUpdatedBy) } // SetActions sets the Actions field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetActions(actions *PdfAnnotationActions) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetActions(actions *PdfAnnotationActions) { d.Actions = actions - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldActions) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldActions) +} + +// SetColor sets the Color field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetColor(color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor) { + d.Color = color + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldColor) } -// SetName sets the Name field and marks it as non-optional; +// SetOpacity sets the Opacity field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetName(name *string) { - d.Name = name - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldName) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetOpacity(opacity float64) { + d.Opacity = opacity + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldOpacity) } -// SetRotation sets the Rotation field and marks it as non-optional; +// SetQuadPoints sets the QuadPoints field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetRotation(rotation *float64) { - d.Rotation = rotation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldRotation) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetQuadPoints(quadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) { + d.QuadPoints = quadPoints + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldQuadPoints) } -// SetUnrotatedRect sets the UnrotatedRect field and marks it as non-optional; +// SetIntent sets the Intent field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) SetUnrotatedRect(unrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect) { - d.UnrotatedRect = unrotatedRect - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFieldUnrotatedRect) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetIntent(intent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntent) { + d.Intent = intent + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldIntent) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) UnmarshalJSON(data []byte) error { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) UnmarshalJSON(data []byte) error { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout var unmarshaler = struct { embed Created *internal.DateTime `json:"created,omitempty"` @@ -96020,7 +113762,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) Unmarsha if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(unmarshaler.embed) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout(unmarshaler.embed) d.Created = unmarshaler.Created.TimePtr() d.Modified = unmarshaler.Modified.TimePtr() extraProperties, err := internal.ExtractExtraProperties(data, *d) @@ -96032,8 +113774,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) Unmarsha return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout var marshaler = struct { embed Created *internal.DateTime `json:"created,omitempty"` @@ -96047,7 +113789,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) MarshalJ return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) String() string { if d == nil { return "" } @@ -96062,84 +113804,200 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp) String() return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode = "normal" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode = "multiply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode = "screen" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode = "overlay" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode = "darken" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode = "lighten" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode = "color-dodge" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode = "color-burn" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode = "hard-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode = "soft-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode = "difference" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode = "exclusion" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode = "hue" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode = "saturation" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode = "color" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode = "luminosity" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode = "normal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode = "multiply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode = "screen" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode = "overlay" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode = "darken" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode = "lighten" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode = "color-dodge" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode = "color-burn" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode = "hard-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode = "soft-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode = "difference" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode = "exclusion" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode = "hue" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode = "saturation" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode = "color" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode = "luminosity" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode, error) { switch s { case "normal": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeNormal, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeNormal, nil case "multiply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeMultiply, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeMultiply, nil case "screen": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeScreen, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeScreen, nil case "overlay": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeOverlay, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeOverlay, nil case "darken": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeDarken, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeDarken, nil case "lighten": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeLighten, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeLighten, nil case "color-dodge": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeColorDodge, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeColorDodge, nil case "color-burn": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeColorBurn, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeColorBurn, nil case "hard-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeHardLight, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeHardLight, nil case "soft-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeSoftLight, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeSoftLight, nil case "difference": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeDifference, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeDifference, nil case "exclusion": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeExclusion, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeExclusion, nil case "hue": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeHue, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeHue, nil case "saturation": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeSaturation, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeSaturation, nil case "color": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeColor, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeColor, nil case "luminosity": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendModeLuminosity, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeLuminosity, nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode { return &d } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldInvisible = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldHidden = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldPrint = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldNoZoom = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldNoRotate = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldNoView = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldReadOnly = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldLocked = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldToggleNoView = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldLockedContents = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColorFieldB = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor struct { + R int `json:"r" url:"r"` + G int `json:"g" url:"g"` + B int `json:"b" url:"b"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor) GetR() int { + if d == nil { + return 0 + } + return d.R +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor) GetG() int { + if d == nil { + return 0 + } + return d.G +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor) GetB() int { + if d == nil { + return 0 + } + return d.B +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetR sets the R field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor) SetR(r int) { + d.R = r + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColorFieldR) +} + +// SetG sets the G field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor) SetG(g int) { + d.G = g + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColorFieldG) +} + +// SetB sets the B field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor) SetB(b int) { + d.B = b + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColorFieldB) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldInvisible = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldHidden = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldPrint = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldNoZoom = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldNoRotate = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldNoView = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldReadOnly = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldLocked = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldToggleNoView = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldLockedContents = big.NewInt(1 << 9) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags struct { Invisible bool `json:"invisible" url:"invisible"` Hidden bool `json:"hidden" url:"hidden"` Print bool `json:"print" url:"print"` @@ -96158,84 +114016,84 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) GetInvisible() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) GetInvisible() bool { if d == nil { return false } return d.Invisible } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) GetHidden() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) GetHidden() bool { if d == nil { return false } return d.Hidden } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) GetPrint() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) GetPrint() bool { if d == nil { return false } return d.Print } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) GetNoZoom() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) GetNoZoom() bool { if d == nil { return false } return d.NoZoom } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) GetNoRotate() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) GetNoRotate() bool { if d == nil { return false } return d.NoRotate } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) GetNoView() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) GetNoView() bool { if d == nil { return false } return d.NoView } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) GetReadOnly() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) GetReadOnly() bool { if d == nil { return false } return d.ReadOnly } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) GetLocked() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) GetLocked() bool { if d == nil { return false } return d.Locked } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) GetToggleNoView() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) GetToggleNoView() bool { if d == nil { return false } return d.ToggleNoView } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) GetLockedContents() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) GetLockedContents() bool { if d == nil { return false } return d.LockedContents } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -96244,81 +114102,81 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) req // SetInvisible sets the Invisible field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) SetInvisible(invisible bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) SetInvisible(invisible bool) { d.Invisible = invisible - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldInvisible) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldInvisible) } // SetHidden sets the Hidden field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) SetHidden(hidden bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) SetHidden(hidden bool) { d.Hidden = hidden - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldHidden) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldHidden) } // SetPrint sets the Print field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) SetPrint(print bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) SetPrint(print bool) { d.Print = print - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldPrint) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldPrint) } // SetNoZoom sets the NoZoom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) SetNoZoom(noZoom bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) SetNoZoom(noZoom bool) { d.NoZoom = noZoom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldNoZoom) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldNoZoom) } // SetNoRotate sets the NoRotate field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) SetNoRotate(noRotate bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) SetNoRotate(noRotate bool) { d.NoRotate = noRotate - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldNoRotate) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldNoRotate) } // SetNoView sets the NoView field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) SetNoView(noView bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) SetNoView(noView bool) { d.NoView = noView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldNoView) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldNoView) } // SetReadOnly sets the ReadOnly field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) SetReadOnly(readOnly bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) SetReadOnly(readOnly bool) { d.ReadOnly = readOnly - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldReadOnly) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldReadOnly) } // SetLocked sets the Locked field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) SetLocked(locked bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) SetLocked(locked bool) { d.Locked = locked - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldLocked) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldLocked) } // SetToggleNoView sets the ToggleNoView field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) SetToggleNoView(toggleNoView bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) SetToggleNoView(toggleNoView bool) { d.ToggleNoView = toggleNoView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldToggleNoView) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldToggleNoView) } // SetLockedContents sets the LockedContents field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) SetLockedContents(lockedContents bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) SetLockedContents(lockedContents bool) { d.LockedContents = lockedContents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlagsFieldLockedContents) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldLockedContents) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -96328,8 +114186,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) Unm return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags var marshaler = struct { embed }{ @@ -96339,7 +114197,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) Mar return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) String() string { if d == nil { return "" } @@ -96354,66 +114212,66 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags) Str return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQuality string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality = "durable" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality = "weak" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQuality = "durable" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQuality = "weak" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQuality, error) { switch s { case "durable": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQualityDurable, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQualityDurable, nil case "weak": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQualityWeak, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQualityWeak, nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQuality return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQuality { return &d } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo struct { Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo) GetKind() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber { if d == nil { return nil } return d.ObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex { if d == nil { return nil } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo) UnmarshalJSON(data []byte) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -96426,19 +114284,19 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo) } switch unmarshaler.Kind { case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber) if err := json.Unmarshal(data, &value); err != nil { return err } d.ObjectNumber = value case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm) if err := json.Unmarshal(data, &value); err != nil { return err } d.Nm = value case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -96448,7 +114306,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo) return nil } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -96467,13 +114325,13 @@ func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo) return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex) error +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) error } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToVisitor) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToVisitor) error { if d.ObjectNumber != nil { return visitor.VisitObjectNumber(d.ObjectNumber) } @@ -96486,7 +114344,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo) return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo) validate() error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -96527,15 +114385,15 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo) } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -96544,35 +114402,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision { if d == nil { return nil } return d.Revision } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -96581,32 +114439,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToI // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex) SetIndex(index int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) SetIndex(index int) { d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexFieldIndex) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexFieldIndex) } // SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) { d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexFieldRevision) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexFieldRevision) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -96616,8 +114474,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToI return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex var marshaler = struct { embed }{ @@ -96627,7 +114485,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToI return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) String() string { if d == nil { return "" } @@ -96643,12 +114501,12 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToI } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision struct { DocSessionID string `json:"docSessionId" url:"docSessionId"` PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Generation int `json:"generation" url:"generation"` @@ -96660,35 +114518,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) GetDocSessionID() string { if d == nil { return "" } return d.DocSessionID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision) GetGeneration() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) GetGeneration() int { if d == nil { return 0 } return d.Generation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -96697,32 +114555,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToI // SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision) SetDocSessionID(docSessionID string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) SetDocSessionID(docSessionID string) { d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevisionFieldDocSessionID) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevisionFieldDocSessionID) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevisionFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevisionFieldPageObjectNumber) } // SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision) SetGeneration(generation int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) SetGeneration(generation int) { d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevisionFieldGeneration) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevisionFieldGeneration) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -96732,8 +114590,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToI return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision var marshaler = struct { embed }{ @@ -96743,7 +114601,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToI return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) String() string { if d == nil { return "" } @@ -96759,11 +114617,11 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToI } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNmFieldNm = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Nm string `json:"nm" url:"nm"` @@ -96774,28 +114632,28 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm st rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm) GetNm() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm) GetNm() string { if d == nil { return "" } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -96804,25 +114662,25 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToN // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNmFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNmFieldPageObjectNumber) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm) SetNm(nm string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm) SetNm(nm string) { d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNmFieldNm) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNmFieldNm) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -96832,8 +114690,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToN return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm var marshaler = struct { embed }{ @@ -96843,7 +114701,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToN return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm) String() string { if d == nil { return "" } @@ -96859,11 +114717,11 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToN } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` @@ -96874,28 +114732,28 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjec rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } return d.AnnotObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -96904,25 +114762,25 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToO // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumberFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumberFieldPageObjectNumber) } // SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumberFieldAnnotObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -96932,8 +114790,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToO return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber var marshaler = struct { embed }{ @@ -96943,7 +114801,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToO return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber) String() string { if d == nil { return "" } @@ -96958,18 +114816,37 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToO return fmt.Sprintf("%#v", d) } +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntent string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntentStrikeoutTextEdit DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntent = "strikeout-text-edit" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntentFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntent, error) { + switch s { + case "strikeout-text-edit": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntentStrikeoutTextEdit, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntent + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntent) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntent { + return &d +} + var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRectFieldRight = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRectFieldTop = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemFieldP1 = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemFieldP2 = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemFieldP3 = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemFieldP4 = big.NewInt(1 << 3) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect struct { - Left float64 `json:"left" url:"left"` - Bottom float64 `json:"bottom" url:"bottom"` - Right float64 `json:"right" url:"right"` - Top float64 `json:"top" url:"top"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem struct { + P1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1 `json:"p1" url:"p1"` + P2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2 `json:"p2" url:"p2"` + P3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3 `json:"p3" url:"p3"` + P4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4 `json:"p4" url:"p4"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -96978,83 +114855,83 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) GetLeft() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) GetP1() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1 { if d == nil { - return 0 + return nil } - return d.Left + return d.P1 } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) GetBottom() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) GetP2() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2 { if d == nil { - return 0 + return nil } - return d.Bottom + return d.P2 } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) GetRight() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) GetP3() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3 { if d == nil { - return 0 + return nil } - return d.Right + return d.P3 } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) GetTop() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) GetP4() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4 { if d == nil { - return 0 + return nil } - return d.Top + return d.P4 } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetLeft sets the Left field and marks it as non-optional; +// SetP1 sets the P1 field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) SetLeft(left float64) { - d.Left = left - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRectFieldLeft) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) SetP1(p1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1) { + d.P1 = p1 + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemFieldP1) } -// SetBottom sets the Bottom field and marks it as non-optional; +// SetP2 sets the P2 field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRectFieldBottom) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) SetP2(p2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2) { + d.P2 = p2 + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemFieldP2) } -// SetRight sets the Right field and marks it as non-optional; +// SetP3 sets the P3 field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) SetRight(right float64) { - d.Right = right - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRectFieldRight) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) SetP3(p3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3) { + d.P3 = p3 + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemFieldP3) } -// SetTop sets the Top field and marks it as non-optional; +// SetP4 sets the P4 field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRectFieldTop) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) SetP4(p4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4) { + d.P4 = p4 + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemFieldP4) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -97064,8 +114941,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) Unma return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem var marshaler = struct { embed }{ @@ -97075,7 +114952,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) Mars return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) String() string { if d == nil { return "" } @@ -97090,166 +114967,14 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect) Stri return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef struct { - Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex - - rawJSON json.RawMessage -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef) GetKind() string { - if d == nil { - return "" - } - return d.Kind -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber { - if d == nil { - return nil - } - return d.ObjectNumber -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm { - if d == nil { - return nil - } - return d.Nm -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex { - if d == nil { - return nil - } - return d.Index -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Nm = value - case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Index = value - } - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Nm != nil { - return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") - } - if d.Index != nil { - return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil - } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) -} - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) error -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) - } - if d.Nm != nil { - return visitor.VisitNm(d.Nm) - } - if d.Index != nil { - return visitor.VisitIndex(d.Index) - } - return fmt.Errorf("type %T does not define a non-empty union type", d) -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef) validate() error { - if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Nm != nil { - fields = append(fields, "nm") - } - if d.Index != nil { - fields = append(fields, "index") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } - } - return nil -} - var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1FieldY = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -97258,69 +114983,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex struc rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1) GetX() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.X } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1) GetY() float64 { if d == nil { return 0 } - return d.Index -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision { - if d == nil { - return nil - } - return d.Revision + return d.Y } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexFieldPageObjectNumber) -} - -// SetIndex sets the Index field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexFieldIndex) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1FieldX) } -// SetRevision sets the Revision field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision) { - d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexFieldRevision) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1FieldY) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1 var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -97330,8 +115041,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1 var marshaler = struct { embed }{ @@ -97341,7 +115052,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1) String() string { if d == nil { return "" } @@ -97357,15 +115068,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex) } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2FieldY = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -97374,69 +115083,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevisi rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision) GetDocSessionID() string { - if d == nil { - return "" - } - return d.DocSessionID -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2) GetX() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.X } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision) GetGeneration() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2) GetY() float64 { if d == nil { return 0 } - return d.Generation + return d.Y } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevisionFieldDocSessionID) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevisionFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2FieldX) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevisionFieldGeneration) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2FieldY) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2 var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -97446,8 +115141,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRe return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2 var marshaler = struct { embed }{ @@ -97457,7 +115152,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRe return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2) String() string { if d == nil { return "" } @@ -97473,13 +115168,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRe } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNmFieldNm = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3FieldY = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -97488,55 +115183,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3) GetX() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.X } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm) GetNm() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3) GetY() float64 { if d == nil { - return "" + return 0 } - return d.Nm + return d.Y } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNmFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3FieldX) } -// SetNm sets the Nm field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNmFieldNm) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3FieldY) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3 var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -97546,8 +115241,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm) Unm return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3 var marshaler = struct { embed }{ @@ -97557,7 +115252,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm) Mar return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3) String() string { if d == nil { return "" } @@ -97573,13 +115268,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm) Str } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4FieldY = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -97588,55 +115283,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumbe rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4) GetX() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.X } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4) GetY() float64 { if d == nil { return 0 } - return d.AnnotObjectNumber + return d.Y } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumberFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4FieldX) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumberFieldAnnotObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4FieldY) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4 var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -97646,8 +115341,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectN return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4 var marshaler = struct { embed }{ @@ -97657,7 +115352,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectN return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4) String() string { if d == nil { return "" } @@ -97672,36 +115367,14 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectN return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyType string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyType = "reply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyType = "group" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyType, error) { - switch s { - case "reply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyTypeReply, nil - case "group": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyTypeGroup, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyType - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyType { - return &d -} - var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRectFieldRight = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRectFieldTop = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRectFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRectFieldTop = big.NewInt(1 << 3) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect struct { Left float64 `json:"left" url:"left"` Bottom float64 `json:"bottom" url:"bottom"` Right float64 `json:"right" url:"right"` @@ -97714,42 +115387,42 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect) GetLeft() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) GetLeft() float64 { if d == nil { return 0 } return d.Left } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect) GetBottom() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) GetBottom() float64 { if d == nil { return 0 } return d.Bottom } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect) GetRight() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) GetRight() float64 { if d == nil { return 0 } return d.Right } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect) GetTop() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) GetTop() float64 { if d == nil { return 0 } return d.Top } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -97758,39 +115431,39 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedR // SetLeft sets the Left field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect) SetLeft(left float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) SetLeft(left float64) { d.Left = left - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRectFieldLeft) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRectFieldLeft) } // SetBottom sets the Bottom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect) SetBottom(bottom float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) SetBottom(bottom float64) { d.Bottom = bottom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRectFieldBottom) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRectFieldBottom) } // SetRight sets the Right field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect) SetRight(right float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) SetRight(right float64) { d.Right = right - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRectFieldRight) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRectFieldRight) } // SetTop sets the Top field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect) SetTop(top float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) SetTop(top float64) { d.Top = top - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRectFieldTop) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRectFieldTop) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -97800,8 +115473,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedR return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect var marshaler = struct { embed }{ @@ -97811,7 +115484,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedR return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) String() string { if d == nil { return "" } @@ -97826,431 +115499,553 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedR return fmt.Sprintf("%#v", d) } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldRef = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldIndex = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldIdentityQuality = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldNm = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldFlags = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldRect = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldContents = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldSubject = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldAuthor = big.NewInt(1 << 9) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldCreated = big.NewInt(1 << 10) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldModified = big.NewInt(1 << 11) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldBlendMode = big.NewInt(1 << 12) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldInReplyTo = big.NewInt(1 << 13) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldReplyType = big.NewInt(1 << 14) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldUserID = big.NewInt(1 << 15) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldGroupID = big.NewInt(1 << 16) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldCreatedBy = big.NewInt(1 << 17) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldUpdatedBy = big.NewInt(1 << 18) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldActions = big.NewInt(1 << 19) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldColor = big.NewInt(1 << 20) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldOpacity = big.NewInt(1 << 21) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldQuadPoints = big.NewInt(1 << 22) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldIntent = big.NewInt(1 << 23) -) - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout struct { - Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef `json:"ref" url:"ref"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQuality `json:"identityQuality" url:"identityQuality"` - Nm *string `json:"nm,omitempty" url:"nm,omitempty"` - Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags `json:"flags" url:"flags"` - Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect `json:"rect" url:"rect"` - Contents *string `json:"contents,omitempty" url:"contents,omitempty"` - Subject *string `json:"subject,omitempty" url:"subject,omitempty"` - Author *string `json:"author,omitempty" url:"author,omitempty"` - Created *time.Time `json:"created,omitempty" url:"created,omitempty"` - Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` - BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode `json:"blendMode" url:"blendMode"` - InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` - ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` - UserID *string `json:"userId,omitempty" url:"userId,omitempty"` - GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` - CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` - Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` - Color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor `json:"color" url:"color"` - Opacity float64 `json:"opacity" url:"opacity"` - QuadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem `json:"quadPoints" url:"quadPoints"` - Intent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntent `json:"intent,omitempty" url:"intent,omitempty"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` + rawJSON json.RawMessage +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef) GetKind() string { + if d == nil { + return "" + } + return d.Kind } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber { if d == nil { return nil } - return d.Ref + return d.ObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm { if d == nil { - return 0 + return nil } - return d.PageObjectNumber + return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex { if d == nil { - return 0 + return nil } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQuality { - if d == nil { - return "" +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` } - return d.IdentityQuality + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value + } + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetNm() *string { - if d == nil { - return nil +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err } - return d.Nm + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Nm != nil { + return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + } + if d.Index != nil { + return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags { - if d == nil { - return nil +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex) error +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) } - return d.Flags + if d.Nm != nil { + return visitor.VisitNm(d.Nm) + } + if d.Index != nil { + return visitor.VisitIndex(d.Index) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef) validate() error { if d == nil { - return nil + return fmt.Errorf("type %T is nil", d) } - return d.Rect + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Nm != nil { + fields = append(fields, "nm") + } + if d.Index != nil { + fields = append(fields, "index") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetContents() *string { +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexFieldRevision = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision `json:"revision" url:"revision"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex) GetPageObjectNumber() int { if d == nil { - return nil + return 0 } - return d.Contents + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetSubject() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex) GetIndex() int { if d == nil { - return nil + return 0 } - return d.Subject + return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetAuthor() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision { if d == nil { return nil } - return d.Author + return d.Revision } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetCreated() *time.Time { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.Created + return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetModified() *time.Time { - if d == nil { - return nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.Modified + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode { - if d == nil { - return "" +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexFieldPageObjectNumber) +} + +// SetIndex sets the Index field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexFieldIndex) +} + +// SetRevision sets the Revision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexFieldRevision) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - return d.BlendMode + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo { - if d == nil { - return nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return d.InReplyTo + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex) String() string { if d == nil { - return nil + return "" } - return d.ReplyType + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetUserID() *string { +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision) GetDocSessionID() string { if d == nil { - return nil + return "" } - return d.UserID + return d.DocSessionID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetGroupID() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision) GetPageObjectNumber() int { if d == nil { - return nil + return 0 } - return d.GroupID + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetCreatedBy() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision) GetGeneration() int { if d == nil { - return nil + return 0 } - return d.CreatedBy + return d.Generation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetUpdatedBy() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.UpdatedBy + return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetActions() *PdfAnnotationActions { - if d == nil { - return nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.Actions + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor { +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevisionFieldDocSessionID) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevisionFieldPageObjectNumber) +} + +// SetGeneration sets the Generation field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision) String() string { if d == nil { - return nil + return "" } - return d.Color + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNmFieldNm = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetOpacity() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm) GetPageObjectNumber() int { if d == nil { return 0 } - return d.Opacity -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetQuadPoints() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem { - if d == nil { - return nil - } - return d.QuadPoints + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetIntent() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntent { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm) GetNm() string { if d == nil { - return nil + return "" } - return d.Intent + return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetRef sets the Ref field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef) { - d.Ref = ref - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldRef) -} - // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldPageObjectNumber) -} - -// SetIndex sets the Index field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldIndex) -} - -// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQuality) { - d.IdentityQuality = identityQuality - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldIdentityQuality) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNmFieldPageObjectNumber) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetNm(nm *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm) SetNm(nm string) { d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldNm) -} - -// SetFlags sets the Flags field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) { - d.Flags = flags - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldFlags) -} - -// SetRect sets the Rect field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) { - d.Rect = rect - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldRect) -} - -// SetContents sets the Contents field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetContents(contents *string) { - d.Contents = contents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldContents) -} - -// SetSubject sets the Subject field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetSubject(subject *string) { - d.Subject = subject - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldSubject) -} - -// SetAuthor sets the Author field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetAuthor(author *string) { - d.Author = author - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldAuthor) -} - -// SetCreated sets the Created field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetCreated(created *time.Time) { - d.Created = created - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldCreated) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNmFieldNm) } -// SetModified sets the Modified field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetModified(modified *time.Time) { - d.Modified = modified - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldModified) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -// SetBlendMode sets the BlendMode field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode) { - d.BlendMode = blendMode - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldBlendMode) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -// SetInReplyTo sets the InReplyTo field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo) { - d.InReplyTo = inReplyTo - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldInReplyTo) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -// SetReplyType sets the ReplyType field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType) { - d.ReplyType = replyType - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldReplyType) -} +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) -// SetUserID sets the UserID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetUserID(userID *string) { - d.UserID = userID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldUserID) -} +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` -// SetGroupID sets the GroupID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetGroupID(groupID *string) { - d.GroupID = groupID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldGroupID) -} + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` -// SetCreatedBy sets the CreatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetCreatedBy(createdBy *string) { - d.CreatedBy = createdBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldCreatedBy) + extraProperties map[string]interface{} + rawJSON json.RawMessage } -// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetUpdatedBy(updatedBy *string) { - d.UpdatedBy = updatedBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldUpdatedBy) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber } -// SetActions sets the Actions field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetActions(actions *PdfAnnotationActions) { - d.Actions = actions - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldActions) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber } -// SetColor sets the Color field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetColor(color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor) { - d.Color = color - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldColor) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties } -// SetOpacity sets the Opacity field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetOpacity(opacity float64) { - d.Opacity = opacity - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldOpacity) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) } -// SetQuadPoints sets the QuadPoints field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetQuadPoints(quadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) { - d.QuadPoints = quadPoints - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldQuadPoints) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumberFieldPageObjectNumber) } -// SetIntent sets the Intent field and marks it as non-optional; +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) SetIntent(intent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntent) { - d.Intent = intent - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFieldIntent) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) UnmarshalJSON(data []byte) error { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout - var unmarshaler = struct { - embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` - }{ - embed: embed(*d), - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout(unmarshaler.embed) - d.Created = unmarshaler.Created.TimePtr() - d.Modified = unmarshaler.Modified.TimePtr() + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -98260,22 +116055,18 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) Unma return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber var marshaler = struct { embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), - Created: internal.NewOptionalDateTime(d.Created), - Modified: internal.NewOptionalDateTime(d.Modified), + embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber) String() string { if d == nil { return "" } @@ -98290,80 +116081,82 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout) Stri return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode = "normal" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode = "multiply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode = "screen" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode = "overlay" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode = "darken" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode = "lighten" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode = "color-dodge" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode = "color-burn" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode = "hard-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode = "soft-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode = "difference" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode = "exclusion" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode = "hue" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode = "saturation" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode = "color" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode = "luminosity" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType = "reply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType = "group" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType, error) { switch s { - case "normal": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeNormal, nil - case "multiply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeMultiply, nil - case "screen": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeScreen, nil - case "overlay": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeOverlay, nil - case "darken": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeDarken, nil - case "lighten": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeLighten, nil - case "color-dodge": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeColorDodge, nil - case "color-burn": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeColorBurn, nil - case "hard-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeHardLight, nil - case "soft-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeSoftLight, nil - case "difference": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeDifference, nil - case "exclusion": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeExclusion, nil - case "hue": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeHue, nil - case "saturation": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeSaturation, nil - case "color": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeColor, nil - case "luminosity": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendModeLuminosity, nil + case "reply": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyTypeReply, nil + case "group": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyTypeGroup, nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType { return &d } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColorFieldR = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColorFieldG = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColorFieldB = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldRef = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldIndex = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldIdentityQuality = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldNm = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldFlags = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldRect = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldContents = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldSubject = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldAuthor = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldCreated = big.NewInt(1 << 10) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldModified = big.NewInt(1 << 11) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldBlendMode = big.NewInt(1 << 12) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldInReplyTo = big.NewInt(1 << 13) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldReplyType = big.NewInt(1 << 14) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldUserID = big.NewInt(1 << 15) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldGroupID = big.NewInt(1 << 16) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldCreatedBy = big.NewInt(1 << 17) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldUpdatedBy = big.NewInt(1 << 18) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldActions = big.NewInt(1 << 19) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldColor = big.NewInt(1 << 20) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldOpacity = big.NewInt(1 << 21) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldIcon = big.NewInt(1 << 22) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldState = big.NewInt(1 << 23) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldStateModel = big.NewInt(1 << 24) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor struct { - R int `json:"r" url:"r"` - G int `json:"g" url:"g"` - B int `json:"b" url:"b"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText struct { + Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef `json:"ref" url:"ref"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality `json:"identityQuality" url:"identityQuality"` + Nm *string `json:"nm,omitempty" url:"nm,omitempty"` + Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags `json:"flags" url:"flags"` + Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect `json:"rect" url:"rect"` + Contents *string `json:"contents,omitempty" url:"contents,omitempty"` + Subject *string `json:"subject,omitempty" url:"subject,omitempty"` + Author *string `json:"author,omitempty" url:"author,omitempty"` + Created *time.Time `json:"created,omitempty" url:"created,omitempty"` + Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` + BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode `json:"blendMode" url:"blendMode"` + InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` + ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` + UserID *string `json:"userId,omitempty" url:"userId,omitempty"` + GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` + CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` + Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` + Color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor `json:"color" url:"color"` + Opacity float64 `json:"opacity" url:"opacity"` + Icon DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon `json:"icon" url:"icon"` + State *string `json:"state,omitempty" url:"state,omitempty"` + StateModel *string `json:"stateModel,omitempty" url:"stateModel,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -98372,585 +116165,385 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor stru rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor) GetR() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef { if d == nil { - return 0 + return nil } - return d.R + return d.Ref } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor) GetG() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetPageObjectNumber() int { if d == nil { return 0 } - return d.G + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor) GetB() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetIndex() int { if d == nil { return 0 } - return d.B + return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality { if d == nil { - return nil + return "" } - return d.extraProperties + return d.IdentityQuality } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetNm() *string { + if d == nil { + return nil } - d.explicitFields.Or(d.explicitFields, field) + return d.Nm } -// SetR sets the R field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor) SetR(r int) { - d.R = r - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColorFieldR) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags { + if d == nil { + return nil + } + return d.Flags } -// SetG sets the G field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor) SetG(g int) { - d.G = g - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColorFieldG) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect { + if d == nil { + return nil + } + return d.Rect } -// SetB sets the B field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor) SetB(b int) { - d.B = b - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColorFieldB) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetContents() *string { + if d == nil { + return nil + } + return d.Contents } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetSubject() *string { + if d == nil { + return nil } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil + return d.Subject } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetAuthor() *string { + if d == nil { + return nil } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return d.Author } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetCreated() *time.Time { if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value + return nil } - return fmt.Sprintf("%#v", d) + return d.Created } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldInvisible = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldHidden = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldPrint = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldNoZoom = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldNoRotate = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldNoView = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldReadOnly = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldLocked = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldToggleNoView = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldLockedContents = big.NewInt(1 << 9) -) - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags struct { - Invisible bool `json:"invisible" url:"invisible"` - Hidden bool `json:"hidden" url:"hidden"` - Print bool `json:"print" url:"print"` - NoZoom bool `json:"noZoom" url:"noZoom"` - NoRotate bool `json:"noRotate" url:"noRotate"` - NoView bool `json:"noView" url:"noView"` - ReadOnly bool `json:"readOnly" url:"readOnly"` - Locked bool `json:"locked" url:"locked"` - ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` - LockedContents bool `json:"lockedContents" url:"lockedContents"` +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetModified() *time.Time { + if d == nil { + return nil + } + return d.Modified +} - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode { + if d == nil { + return "" + } + return d.BlendMode +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo { + if d == nil { + return nil + } + return d.InReplyTo } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) GetInvisible() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType { if d == nil { - return false + return nil } - return d.Invisible + return d.ReplyType } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) GetHidden() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetUserID() *string { if d == nil { - return false + return nil } - return d.Hidden + return d.UserID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) GetPrint() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetGroupID() *string { if d == nil { - return false + return nil } - return d.Print + return d.GroupID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) GetNoZoom() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetCreatedBy() *string { if d == nil { - return false + return nil } - return d.NoZoom + return d.CreatedBy } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) GetNoRotate() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetUpdatedBy() *string { if d == nil { - return false + return nil } - return d.NoRotate + return d.UpdatedBy } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) GetNoView() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetActions() *PdfAnnotationActions { if d == nil { - return false + return nil } - return d.NoView + return d.Actions } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) GetReadOnly() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor { if d == nil { - return false + return nil } - return d.ReadOnly + return d.Color } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) GetLocked() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetOpacity() float64 { if d == nil { - return false + return 0 } - return d.Locked + return d.Opacity } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) GetToggleNoView() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetIcon() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon { if d == nil { - return false + return "" } - return d.ToggleNoView + return d.Icon } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) GetLockedContents() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetState() *string { if d == nil { - return false + return nil } - return d.LockedContents + return d.State } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetStateModel() *string { + if d == nil { + return nil + } + return d.StateModel +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetInvisible sets the Invisible field and marks it as non-optional; +// SetRef sets the Ref field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) SetInvisible(invisible bool) { - d.Invisible = invisible - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldInvisible) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef) { + d.Ref = ref + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldRef) } -// SetHidden sets the Hidden field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) SetHidden(hidden bool) { - d.Hidden = hidden - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldHidden) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldPageObjectNumber) } -// SetPrint sets the Print field and marks it as non-optional; +// SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) SetPrint(print bool) { - d.Print = print - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldPrint) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldIndex) } -// SetNoZoom sets the NoZoom field and marks it as non-optional; +// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) SetNoZoom(noZoom bool) { - d.NoZoom = noZoom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldNoZoom) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality) { + d.IdentityQuality = identityQuality + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldIdentityQuality) } -// SetNoRotate sets the NoRotate field and marks it as non-optional; +// SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) SetNoRotate(noRotate bool) { - d.NoRotate = noRotate - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldNoRotate) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetNm(nm *string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldNm) } -// SetNoView sets the NoView field and marks it as non-optional; +// SetFlags sets the Flags field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) SetNoView(noView bool) { - d.NoView = noView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldNoView) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) { + d.Flags = flags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldFlags) } -// SetReadOnly sets the ReadOnly field and marks it as non-optional; +// SetRect sets the Rect field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) SetReadOnly(readOnly bool) { - d.ReadOnly = readOnly - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldReadOnly) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect) { + d.Rect = rect + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldRect) } -// SetLocked sets the Locked field and marks it as non-optional; +// SetContents sets the Contents field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) SetLocked(locked bool) { - d.Locked = locked - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldLocked) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetContents(contents *string) { + d.Contents = contents + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldContents) } -// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// SetSubject sets the Subject field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) SetToggleNoView(toggleNoView bool) { - d.ToggleNoView = toggleNoView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldToggleNoView) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetSubject(subject *string) { + d.Subject = subject + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldSubject) } -// SetLockedContents sets the LockedContents field and marks it as non-optional; +// SetAuthor sets the Author field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) SetLockedContents(lockedContents bool) { - d.LockedContents = lockedContents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlagsFieldLockedContents) -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) -} - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQuality string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQuality = "durable" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQuality = "weak" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQuality, error) { - switch s { - case "durable": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQualityDurable, nil - case "weak": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQualityWeak, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQuality - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQuality { - return &d -} - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo struct { - Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex - - rawJSON json.RawMessage -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo) GetKind() string { - if d == nil { - return "" - } - return d.Kind -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber { - if d == nil { - return nil - } - return d.ObjectNumber -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm { - if d == nil { - return nil - } - return d.Nm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetAuthor(author *string) { + d.Author = author + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldAuthor) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex { - if d == nil { - return nil - } - return d.Index +// SetCreated sets the Created field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetCreated(created *time.Time) { + d.Created = created + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldCreated) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Nm = value - case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Index = value - } - d.rawJSON = json.RawMessage(data) - return nil +// SetModified sets the Modified field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetModified(modified *time.Time) { + d.Modified = modified + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldModified) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Nm != nil { - return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") - } - if d.Index != nil { - return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil - } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +// SetBlendMode sets the BlendMode field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode) { + d.BlendMode = blendMode + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldBlendMode) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) error +// SetInReplyTo sets the InReplyTo field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo) { + d.InReplyTo = inReplyTo + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldInReplyTo) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) - } - if d.Nm != nil { - return visitor.VisitNm(d.Nm) - } - if d.Index != nil { - return visitor.VisitIndex(d.Index) - } - return fmt.Errorf("type %T does not define a non-empty union type", d) +// SetReplyType sets the ReplyType field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType) { + d.ReplyType = replyType + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldReplyType) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo) validate() error { - if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Nm != nil { - fields = append(fields, "nm") - } - if d.Index != nil { - fields = append(fields, "index") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } - } - return nil +// SetUserID sets the UserID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetUserID(userID *string) { + d.UserID = userID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldUserID) } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexFieldRevision = big.NewInt(1 << 2) -) - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision `json:"revision" url:"revision"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage +// SetGroupID sets the GroupID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetGroupID(groupID *string) { + d.GroupID = groupID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldGroupID) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber +// SetCreatedBy sets the CreatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetCreatedBy(createdBy *string) { + d.CreatedBy = createdBy + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldCreatedBy) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) GetIndex() int { - if d == nil { - return 0 - } - return d.Index +// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetUpdatedBy(updatedBy *string) { + d.UpdatedBy = updatedBy + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldUpdatedBy) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision { - if d == nil { - return nil - } - return d.Revision +// SetActions sets the Actions field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetActions(actions *PdfAnnotationActions) { + d.Actions = actions + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldActions) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties +// SetColor sets the Color field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetColor(color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) { + d.Color = color + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldColor) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) +// SetOpacity sets the Opacity field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetOpacity(opacity float64) { + d.Opacity = opacity + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldOpacity) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetIcon sets the Icon field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetIcon(icon DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon) { + d.Icon = icon + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldIcon) } -// SetIndex sets the Index field and marks it as non-optional; +// SetState sets the State field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexFieldIndex) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetState(state *string) { + d.State = state + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldState) } -// SetRevision sets the Revision field and marks it as non-optional; +// SetStateModel sets the StateModel field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) { - d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexFieldRevision) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetStateModel(stateModel *string) { + d.StateModel = stateModel + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldStateModel) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) UnmarshalJSON(data []byte) error { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText + var unmarshaler = struct { + embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(unmarshaler.embed) + d.Created = unmarshaler.Created.TimePtr() + d.Modified = unmarshaler.Modified.TimePtr() extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -98960,18 +116553,22 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInRepl return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText var marshaler = struct { embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), + embed: embed(*d), + Created: internal.NewOptionalDateTime(d.Created), + Modified: internal.NewOptionalDateTime(d.Modified), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) String() string { if d == nil { return "" } @@ -98986,16 +116583,80 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInRepl return fmt.Sprintf("%#v", d) } +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode = "normal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode = "multiply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode = "screen" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode = "overlay" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode = "darken" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode = "lighten" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode = "color-dodge" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode = "color-burn" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode = "hard-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode = "soft-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode = "difference" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode = "exclusion" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode = "hue" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode = "saturation" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode = "color" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode = "luminosity" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode, error) { + switch s { + case "normal": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeNormal, nil + case "multiply": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeMultiply, nil + case "screen": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeScreen, nil + case "overlay": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeOverlay, nil + case "darken": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeDarken, nil + case "lighten": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeLighten, nil + case "color-dodge": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeColorDodge, nil + case "color-burn": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeColorBurn, nil + case "hard-light": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeHardLight, nil + case "soft-light": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeSoftLight, nil + case "difference": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeDifference, nil + case "exclusion": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeExclusion, nil + case "hue": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeHue, nil + case "saturation": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeSaturation, nil + case "color": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeColor, nil + case "luminosity": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeLuminosity, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode { + return &d +} + var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColorFieldB = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor struct { + R int `json:"r" url:"r"` + G int `json:"g" url:"g"` + B int `json:"b" url:"b"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -99004,69 +116665,69 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToI rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) GetR() int { if d == nil { - return "" + return 0 } - return d.DocSessionID + return d.R } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) GetG() int { if d == nil { return 0 } - return d.PageObjectNumber + return d.G } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) GetGeneration() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) GetB() int { if d == nil { return 0 } - return d.Generation + return d.B } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// SetR sets the R field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevisionFieldDocSessionID) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) SetR(r int) { + d.R = r + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColorFieldR) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetG sets the G field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevisionFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) SetG(g int) { + d.G = g + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColorFieldG) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetB sets the B field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevisionFieldGeneration) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) SetB(b int) { + d.B = b + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColorFieldB) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -99076,8 +116737,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInRepl return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor var marshaler = struct { embed }{ @@ -99087,7 +116748,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInRepl return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) String() string { if d == nil { return "" } @@ -99103,13 +116764,29 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInRepl } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNmFieldNm = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldInvisible = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldHidden = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldPrint = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldNoZoom = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldNoRotate = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldNoView = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldReadOnly = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldLocked = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldToggleNoView = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldLockedContents = big.NewInt(1 << 9) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags struct { + Invisible bool `json:"invisible" url:"invisible"` + Hidden bool `json:"hidden" url:"hidden"` + Print bool `json:"print" url:"print"` + NoZoom bool `json:"noZoom" url:"noZoom"` + NoRotate bool `json:"noRotate" url:"noRotate"` + NoView bool `json:"noView" url:"noView"` + ReadOnly bool `json:"readOnly" url:"readOnly"` + Locked bool `json:"locked" url:"locked"` + ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` + LockedContents bool `json:"lockedContents" url:"lockedContents"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -99118,155 +116795,167 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToN rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) GetInvisible() bool { if d == nil { - return 0 + return false } - return d.PageObjectNumber + return d.Invisible } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm) GetNm() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) GetHidden() bool { if d == nil { - return "" + return false } - return d.Nm + return d.Hidden } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) GetPrint() bool { if d == nil { - return nil + return false } - return d.extraProperties + return d.Print } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) GetNoZoom() bool { + if d == nil { + return false } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNmFieldPageObjectNumber) -} - -// SetNm sets the Nm field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNmFieldNm) + return d.NoZoom } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) GetNoRotate() bool { + if d == nil { + return false } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil + return d.NoRotate } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) GetNoView() bool { + if d == nil { + return false } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return d.NoView } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) GetReadOnly() bool { if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value + return false } - return fmt.Sprintf("%#v", d) + return d.ReadOnly } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) -) - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) GetLocked() bool { + if d == nil { + return false + } + return d.Locked } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) GetToggleNoView() bool { if d == nil { - return 0 + return false } - return d.PageObjectNumber + return d.ToggleNoView } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) GetLockedContents() bool { if d == nil { - return 0 + return false } - return d.AnnotObjectNumber + return d.LockedContents } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetInvisible sets the Invisible field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumberFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) SetInvisible(invisible bool) { + d.Invisible = invisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldInvisible) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetHidden sets the Hidden field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumberFieldAnnotObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) SetHidden(hidden bool) { + d.Hidden = hidden + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldHidden) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber +// SetPrint sets the Print field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) SetPrint(print bool) { + d.Print = print + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldPrint) +} + +// SetNoZoom sets the NoZoom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) SetNoZoom(noZoom bool) { + d.NoZoom = noZoom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldNoZoom) +} + +// SetNoRotate sets the NoRotate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) SetNoRotate(noRotate bool) { + d.NoRotate = noRotate + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldNoRotate) +} + +// SetNoView sets the NoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) SetNoView(noView bool) { + d.NoView = noView + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldNoView) +} + +// SetReadOnly sets the ReadOnly field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldReadOnly) +} + +// SetLocked sets the Locked field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) SetLocked(locked bool) { + d.Locked = locked + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldLocked) +} + +// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) SetToggleNoView(toggleNoView bool) { + d.ToggleNoView = toggleNoView + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldToggleNoView) +} + +// SetLockedContents sets the LockedContents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) SetLockedContents(lockedContents bool) { + d.LockedContents = lockedContents + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldLockedContents) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -99276,8 +116965,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInRepl return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags var marshaler = struct { embed }{ @@ -99287,7 +116976,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInRepl return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) String() string { if d == nil { return "" } @@ -99302,165 +116991,225 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInRepl return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntent string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntentStrikeoutTextEdit DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntent = "strikeout-text-edit" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconComment DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon = "comment" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconKey DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon = "key" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconNote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon = "note" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconHelp DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon = "help" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconNewParagraph DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon = "new-paragraph" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconParagraph DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon = "paragraph" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconInsert DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon = "insert" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntentFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntent, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon, error) { switch s { - case "strikeout-text-edit": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntentStrikeoutTextEdit, nil + case "comment": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconComment, nil + case "key": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconKey, nil + case "note": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconNote, nil + case "help": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconHelp, nil + case "new-paragraph": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconNewParagraph, nil + case "paragraph": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconParagraph, nil + case "insert": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconInsert, nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntent + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntent) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntent { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon { return &d } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemFieldP1 = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemFieldP2 = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemFieldP3 = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemFieldP4 = big.NewInt(1 << 3) -) +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality string -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem struct { - P1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1 `json:"p1" url:"p1"` - P2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2 `json:"p2" url:"p2"` - P3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3 `json:"p3" url:"p3"` - P4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4 `json:"p4" url:"p4"` +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality = "durable" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality = "weak" +) - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality, error) { + switch s { + case "durable": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQualityDurable, nil + case "weak": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQualityWeak, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality + return "", fmt.Errorf("%s is not a valid %T", s, t) +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality { + return &d } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) GetP1() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1 { - if d == nil { - return nil - } - return d.P1 +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex + + rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) GetP2() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo) GetKind() string { if d == nil { - return nil + return "" } - return d.P2 + return d.Kind } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) GetP3() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber { if d == nil { return nil } - return d.P3 + return d.ObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) GetP4() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm { if d == nil { return nil } - return d.P4 + return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex { if d == nil { return nil } - return d.extraProperties + return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetP1 sets the P1 field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) SetP1(p1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1) { - d.P1 = p1 - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemFieldP1) -} - -// SetP2 sets the P2 field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) SetP2(p2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2) { - d.P2 = p2 - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemFieldP2) + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value + } + d.rawJSON = json.RawMessage(data) + return nil } -// SetP3 sets the P3 field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) SetP3(p3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3) { - d.P3 = p3 - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemFieldP3) +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err + } + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Nm != nil { + return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + } + if d.Index != nil { + return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -// SetP4 sets the P4 field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) SetP4(p4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4) { - d.P4 = p4 - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemFieldP4) +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex) error } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err + if d.Nm != nil { + return visitor.VisitNm(d.Nm) } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem - var marshaler = struct { - embed - }{ - embed: embed(*d), + if d.Index != nil { + return visitor.VisitIndex(d.Index) } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo) validate() error { if d == nil { - return "" + return fmt.Errorf("type %T is nil", d) } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Nm != nil { + fields = append(fields, "nm") + } + if d.Index != nil { + fields = append(fields, "index") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) } + return fmt.Errorf("type %T is empty", d) } - if value, err := internal.StringifyJSON(d); err == nil { - return value + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) } - return fmt.Sprintf("%#v", d) + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1FieldX = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1FieldY = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -99469,55 +117218,69 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPoints rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1) GetX() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex) GetPageObjectNumber() int { if d == nil { return 0 } - return d.X + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1) GetY() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex) GetIndex() int { if d == nil { return 0 } - return d.Y + return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetX sets the X field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1) SetX(x float64) { - d.X = x - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1FieldX) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexFieldPageObjectNumber) } -// SetY sets the Y field and marks it as non-optional; +// SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1) SetY(y float64) { - d.Y = y - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1FieldY) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexFieldIndex) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1 +// SetRevision sets the Revision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexFieldRevision) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -99527,8 +117290,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPo return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1 +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex var marshaler = struct { embed }{ @@ -99538,7 +117301,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPo return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex) String() string { if d == nil { return "" } @@ -99554,13 +117317,15 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPo } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2FieldX = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2FieldY = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -99569,55 +117334,69 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPoints rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2) GetX() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } - return d.X + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2) GetY() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision) GetGeneration() int { if d == nil { return 0 } - return d.Y + return d.Generation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetX sets the X field and marks it as non-optional; +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2) SetX(x float64) { - d.X = x - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2FieldX) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevisionFieldDocSessionID) } -// SetY sets the Y field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2) SetY(y float64) { - d.Y = y - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2FieldY) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevisionFieldPageObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2 +// SetGeneration sets the Generation field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -99627,8 +117406,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPo return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2 +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision var marshaler = struct { embed }{ @@ -99638,7 +117417,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPo return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision) String() string { if d == nil { return "" } @@ -99654,13 +117433,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPo } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3FieldX = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3FieldY = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -99669,55 +117448,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPoints rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3) GetX() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm) GetPageObjectNumber() int { if d == nil { return 0 } - return d.X + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3) GetY() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm) GetNm() string { if d == nil { - return 0 + return "" } - return d.Y + return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetX sets the X field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3) SetX(x float64) { - d.X = x - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3FieldX) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNmFieldPageObjectNumber) } -// SetY sets the Y field and marks it as non-optional; +// SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3) SetY(y float64) { - d.Y = y - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3FieldY) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNmFieldNm) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3 +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -99727,8 +117506,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPo return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3 +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm var marshaler = struct { embed }{ @@ -99738,7 +117517,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPo return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm) String() string { if d == nil { return "" } @@ -99754,13 +117533,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPo } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4FieldX = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4FieldY = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -99769,55 +117548,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPoints rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4) GetX() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } - return d.X + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4) GetY() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } - return d.Y + return d.AnnotObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetX sets the X field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4) SetX(x float64) { - d.X = x - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4FieldX) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumberFieldPageObjectNumber) } -// SetY sets the Y field and marks it as non-optional; +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4) SetY(y float64) { - d.Y = y - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4FieldY) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4 +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -99827,8 +117606,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPo return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4 +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber var marshaler = struct { embed }{ @@ -99838,7 +117617,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPo return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber) String() string { if d == nil { return "" } @@ -99854,13 +117633,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPo } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRectFieldRight = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRectFieldTop = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRectFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRectFieldTop = big.NewInt(1 << 3) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect struct { Left float64 `json:"left" url:"left"` Bottom float64 `json:"bottom" url:"bottom"` Right float64 `json:"right" url:"right"` @@ -99873,42 +117652,42 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect struc rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) GetLeft() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect) GetLeft() float64 { if d == nil { return 0 } return d.Left } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) GetBottom() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect) GetBottom() float64 { if d == nil { return 0 } return d.Bottom } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) GetRight() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect) GetRight() float64 { if d == nil { return 0 } return d.Right } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) GetTop() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect) GetTop() float64 { if d == nil { return 0 } return d.Top } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -99917,39 +117696,39 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) // SetLeft sets the Left field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) SetLeft(left float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect) SetLeft(left float64) { d.Left = left - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRectFieldLeft) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRectFieldLeft) } // SetBottom sets the Bottom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) SetBottom(bottom float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect) SetBottom(bottom float64) { d.Bottom = bottom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRectFieldBottom) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRectFieldBottom) } // SetRight sets the Right field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) SetRight(right float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect) SetRight(right float64) { d.Right = right - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRectFieldRight) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRectFieldRight) } // SetTop sets the Top field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) SetTop(top float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect) SetTop(top float64) { d.Top = top - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRectFieldTop) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRectFieldTop) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -99959,8 +117738,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect var marshaler = struct { embed }{ @@ -99970,7 +117749,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect) String() string { if d == nil { return "" } @@ -99985,44 +117764,44 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect) return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef struct { Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef) GetKind() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber { if d == nil { return nil } return d.ObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex { if d == nil { return nil } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef) UnmarshalJSON(data []byte) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -100035,19 +117814,19 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef) U } switch unmarshaler.Kind { case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber) if err := json.Unmarshal(data, &value); err != nil { return err } d.ObjectNumber = value case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm) if err := json.Unmarshal(data, &value); err != nil { return err } d.Nm = value case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -100057,7 +117836,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef) U return nil } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -100076,13 +117855,13 @@ func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef) Ma return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex) error +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) error } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefVisitor) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefVisitor) error { if d.ObjectNumber != nil { return visitor.VisitObjectNumber(d.ObjectNumber) } @@ -100095,7 +117874,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef) A return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef) validate() error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -100136,15 +117915,15 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef) v } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -100153,35 +117932,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex s rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision { if d == nil { return nil } return d.Revision } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -100190,32 +117969,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefInd // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex) SetIndex(index int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) SetIndex(index int) { d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexFieldIndex) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexFieldIndex) } // SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision) { d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexFieldRevision) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexFieldRevision) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -100225,8 +118004,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefInd return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex var marshaler = struct { embed }{ @@ -100236,7 +118015,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefInd return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) String() string { if d == nil { return "" } @@ -100252,12 +118031,12 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefInd } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision struct { DocSessionID string `json:"docSessionId" url:"docSessionId"` PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Generation int `json:"generation" url:"generation"` @@ -100269,35 +118048,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRe rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision) GetDocSessionID() string { if d == nil { return "" } return d.DocSessionID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision) GetGeneration() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision) GetGeneration() int { if d == nil { return 0 } return d.Generation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -100306,32 +118085,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefInd // SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision) SetDocSessionID(docSessionID string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision) SetDocSessionID(docSessionID string) { d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevisionFieldDocSessionID) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevisionFieldDocSessionID) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevisionFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevisionFieldPageObjectNumber) } // SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision) SetGeneration(generation int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision) SetGeneration(generation int) { d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevisionFieldGeneration) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevisionFieldGeneration) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -100341,8 +118120,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefInd return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision var marshaler = struct { embed }{ @@ -100352,7 +118131,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefInd return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision) String() string { if d == nil { return "" } @@ -100368,11 +118147,11 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefInd } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNmFieldNm = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Nm string `json:"nm" url:"nm"` @@ -100383,28 +118162,28 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm stru rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm) GetNm() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm) GetNm() string { if d == nil { return "" } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -100413,25 +118192,25 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm) // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNmFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNmFieldPageObjectNumber) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm) SetNm(nm string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm) SetNm(nm string) { d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNmFieldNm) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNmFieldNm) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -100441,8 +118220,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm) return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm var marshaler = struct { embed }{ @@ -100452,7 +118231,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm) String() string { if d == nil { return "" } @@ -100468,11 +118247,11 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm) } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` @@ -100483,28 +118262,28 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectN rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } return d.AnnotObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -100513,25 +118292,25 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObj // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumberFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumberFieldPageObjectNumber) } // SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumberFieldAnnotObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -100541,8 +118320,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObj return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber var marshaler = struct { embed }{ @@ -100552,7 +118331,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObj return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber) String() string { if d == nil { return "" } @@ -100567,82 +118346,78 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObj return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType = "reply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType = "group" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType = "reply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType = "group" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType, error) { switch s { case "reply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyTypeReply, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyTypeReply, nil case "group": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyTypeGroup, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyTypeGroup, nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType { return &d } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldRef = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldIndex = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldIdentityQuality = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldNm = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldFlags = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldRect = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldContents = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldSubject = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldAuthor = big.NewInt(1 << 9) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldCreated = big.NewInt(1 << 10) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldModified = big.NewInt(1 << 11) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldBlendMode = big.NewInt(1 << 12) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldInReplyTo = big.NewInt(1 << 13) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldReplyType = big.NewInt(1 << 14) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldUserID = big.NewInt(1 << 15) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldGroupID = big.NewInt(1 << 16) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldCreatedBy = big.NewInt(1 << 17) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldUpdatedBy = big.NewInt(1 << 18) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldActions = big.NewInt(1 << 19) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldColor = big.NewInt(1 << 20) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldOpacity = big.NewInt(1 << 21) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldIcon = big.NewInt(1 << 22) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldState = big.NewInt(1 << 23) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldStateModel = big.NewInt(1 << 24) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldRef = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldIndex = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldIdentityQuality = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldNm = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldFlags = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldRect = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldContents = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldSubject = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldAuthor = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldCreated = big.NewInt(1 << 10) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldModified = big.NewInt(1 << 11) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldBlendMode = big.NewInt(1 << 12) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldInReplyTo = big.NewInt(1 << 13) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldReplyType = big.NewInt(1 << 14) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldUserID = big.NewInt(1 << 15) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldGroupID = big.NewInt(1 << 16) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldCreatedBy = big.NewInt(1 << 17) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldUpdatedBy = big.NewInt(1 << 18) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldActions = big.NewInt(1 << 19) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldColor = big.NewInt(1 << 20) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldOpacity = big.NewInt(1 << 21) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldQuadPoints = big.NewInt(1 << 22) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText struct { - Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef `json:"ref" url:"ref"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality `json:"identityQuality" url:"identityQuality"` - Nm *string `json:"nm,omitempty" url:"nm,omitempty"` - Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags `json:"flags" url:"flags"` - Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect `json:"rect" url:"rect"` - Contents *string `json:"contents,omitempty" url:"contents,omitempty"` - Subject *string `json:"subject,omitempty" url:"subject,omitempty"` - Author *string `json:"author,omitempty" url:"author,omitempty"` - Created *time.Time `json:"created,omitempty" url:"created,omitempty"` - Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` - BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode `json:"blendMode" url:"blendMode"` - InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` - ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` - UserID *string `json:"userId,omitempty" url:"userId,omitempty"` - GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` - CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` - Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` - Color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor `json:"color" url:"color"` - Opacity float64 `json:"opacity" url:"opacity"` - Icon DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon `json:"icon" url:"icon"` - State *string `json:"state,omitempty" url:"state,omitempty"` - StateModel *string `json:"stateModel,omitempty" url:"stateModel,omitempty"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline struct { + Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef `json:"ref" url:"ref"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality `json:"identityQuality" url:"identityQuality"` + Nm *string `json:"nm,omitempty" url:"nm,omitempty"` + Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags `json:"flags" url:"flags"` + Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect `json:"rect" url:"rect"` + Contents *string `json:"contents,omitempty" url:"contents,omitempty"` + Subject *string `json:"subject,omitempty" url:"subject,omitempty"` + Author *string `json:"author,omitempty" url:"author,omitempty"` + Created *time.Time `json:"created,omitempty" url:"created,omitempty"` + Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` + BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode `json:"blendMode" url:"blendMode"` + InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` + ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` + UserID *string `json:"userId,omitempty" url:"userId,omitempty"` + GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` + CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` + Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` + Color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor `json:"color" url:"color"` + Opacity float64 `json:"opacity" url:"opacity"` + QuadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem `json:"quadPoints" url:"quadPoints"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -100651,189 +118426,175 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef { if d == nil { return nil } return d.Ref } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality { if d == nil { return "" } return d.IdentityQuality } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetNm() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetNm() *string { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags { if d == nil { return nil } return d.Flags } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect { if d == nil { return nil } return d.Rect } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetContents() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetContents() *string { if d == nil { return nil } return d.Contents } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetSubject() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetSubject() *string { if d == nil { return nil } return d.Subject } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetAuthor() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetAuthor() *string { if d == nil { return nil } return d.Author } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetCreated() *time.Time { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetCreated() *time.Time { if d == nil { return nil } return d.Created } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetModified() *time.Time { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetModified() *time.Time { if d == nil { return nil } return d.Modified } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode { if d == nil { return "" } return d.BlendMode } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo { if d == nil { return nil } return d.InReplyTo } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType { if d == nil { return nil } return d.ReplyType } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetUserID() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetUserID() *string { if d == nil { return nil } return d.UserID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetGroupID() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetGroupID() *string { if d == nil { return nil } return d.GroupID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetCreatedBy() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetCreatedBy() *string { if d == nil { return nil } return d.CreatedBy } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetUpdatedBy() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetUpdatedBy() *string { if d == nil { return nil } return d.UpdatedBy } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetActions() *PdfAnnotationActions { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetActions() *PdfAnnotationActions { if d == nil { return nil } return d.Actions } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor { if d == nil { return nil } return d.Color } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetOpacity() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetOpacity() float64 { if d == nil { return 0 } return d.Opacity } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetIcon() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon { - if d == nil { - return "" - } - return d.Icon -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetState() *string { - if d == nil { - return nil - } - return d.State -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetStateModel() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetQuadPoints() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem { if d == nil { return nil } - return d.StateModel + return d.QuadPoints } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -100842,181 +118603,167 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) require(f // SetRef sets the Ref field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef) { d.Ref = ref - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldRef) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldRef) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetIndex(index int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetIndex(index int) { d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldIndex) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldIndex) } // SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality) { d.IdentityQuality = identityQuality - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldIdentityQuality) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldIdentityQuality) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetNm(nm *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetNm(nm *string) { d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldNm) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldNm) } // SetFlags sets the Flags field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) { d.Flags = flags - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldFlags) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldFlags) } // SetRect sets the Rect field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) { d.Rect = rect - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldRect) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldRect) } // SetContents sets the Contents field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetContents(contents *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetContents(contents *string) { d.Contents = contents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldContents) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldContents) } // SetSubject sets the Subject field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetSubject(subject *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetSubject(subject *string) { d.Subject = subject - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldSubject) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldSubject) } // SetAuthor sets the Author field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetAuthor(author *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetAuthor(author *string) { d.Author = author - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldAuthor) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldAuthor) } // SetCreated sets the Created field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetCreated(created *time.Time) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetCreated(created *time.Time) { d.Created = created - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldCreated) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldCreated) } // SetModified sets the Modified field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetModified(modified *time.Time) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetModified(modified *time.Time) { d.Modified = modified - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldModified) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldModified) } // SetBlendMode sets the BlendMode field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode) { d.BlendMode = blendMode - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldBlendMode) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldBlendMode) } // SetInReplyTo sets the InReplyTo field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo) { d.InReplyTo = inReplyTo - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldInReplyTo) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldInReplyTo) } // SetReplyType sets the ReplyType field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType) { d.ReplyType = replyType - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldReplyType) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldReplyType) } // SetUserID sets the UserID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetUserID(userID *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetUserID(userID *string) { d.UserID = userID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldUserID) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldUserID) } // SetGroupID sets the GroupID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetGroupID(groupID *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetGroupID(groupID *string) { d.GroupID = groupID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldGroupID) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldGroupID) } // SetCreatedBy sets the CreatedBy field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetCreatedBy(createdBy *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetCreatedBy(createdBy *string) { d.CreatedBy = createdBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldCreatedBy) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldCreatedBy) } // SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetUpdatedBy(updatedBy *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetUpdatedBy(updatedBy *string) { d.UpdatedBy = updatedBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldUpdatedBy) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldUpdatedBy) } // SetActions sets the Actions field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetActions(actions *PdfAnnotationActions) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetActions(actions *PdfAnnotationActions) { d.Actions = actions - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldActions) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldActions) } // SetColor sets the Color field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetColor(color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetColor(color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) { d.Color = color - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldColor) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldColor) } // SetOpacity sets the Opacity field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetOpacity(opacity float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetOpacity(opacity float64) { d.Opacity = opacity - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldOpacity) -} - -// SetIcon sets the Icon field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetIcon(icon DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon) { - d.Icon = icon - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldIcon) -} - -// SetState sets the State field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetState(state *string) { - d.State = state - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldState) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldOpacity) } -// SetStateModel sets the StateModel field and marks it as non-optional; +// SetQuadPoints sets the QuadPoints field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) SetStateModel(stateModel *string) { - d.StateModel = stateModel - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFieldStateModel) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetQuadPoints(quadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) { + d.QuadPoints = quadPoints + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldQuadPoints) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) UnmarshalJSON(data []byte) error { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) UnmarshalJSON(data []byte) error { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline var unmarshaler = struct { embed Created *internal.DateTime `json:"created,omitempty"` @@ -101027,7 +118774,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) Unmarshal if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(unmarshaler.embed) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline(unmarshaler.embed) d.Created = unmarshaler.Created.TimePtr() d.Modified = unmarshaler.Modified.TimePtr() extraProperties, err := internal.ExtractExtraProperties(data, *d) @@ -101039,8 +118786,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) Unmarshal return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline var marshaler = struct { embed Created *internal.DateTime `json:"created,omitempty"` @@ -101054,7 +118801,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) MarshalJS return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) String() string { if d == nil { return "" } @@ -101069,77 +118816,77 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText) String() return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode = "normal" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode = "multiply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode = "screen" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode = "overlay" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode = "darken" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode = "lighten" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode = "color-dodge" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode = "color-burn" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode = "hard-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode = "soft-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode = "difference" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode = "exclusion" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode = "hue" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode = "saturation" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode = "color" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode = "luminosity" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode = "normal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode = "multiply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode = "screen" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode = "overlay" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode = "darken" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode = "lighten" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode = "color-dodge" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode = "color-burn" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode = "hard-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode = "soft-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode = "difference" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode = "exclusion" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode = "hue" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode = "saturation" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode = "color" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode = "luminosity" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode, error) { switch s { case "normal": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeNormal, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeNormal, nil case "multiply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeMultiply, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeMultiply, nil case "screen": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeScreen, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeScreen, nil case "overlay": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeOverlay, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeOverlay, nil case "darken": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeDarken, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeDarken, nil case "lighten": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeLighten, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeLighten, nil case "color-dodge": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeColorDodge, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeColorDodge, nil case "color-burn": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeColorBurn, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeColorBurn, nil case "hard-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeHardLight, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeHardLight, nil case "soft-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeSoftLight, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeSoftLight, nil case "difference": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeDifference, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeDifference, nil case "exclusion": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeExclusion, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeExclusion, nil case "hue": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeHue, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeHue, nil case "saturation": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeSaturation, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeSaturation, nil case "color": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeColor, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeColor, nil case "luminosity": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendModeLuminosity, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeLuminosity, nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode { return &d } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColorFieldR = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColorFieldG = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColorFieldB = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColorFieldB = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor struct { R int `json:"r" url:"r"` G int `json:"g" url:"g"` B int `json:"b" url:"b"` @@ -101151,35 +118898,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) GetR() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) GetR() int { if d == nil { return 0 } return d.R } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) GetG() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) GetG() int { if d == nil { return 0 } return d.G } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) GetB() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) GetB() int { if d == nil { return 0 } return d.B } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -101188,32 +118935,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) requ // SetR sets the R field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) SetR(r int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) SetR(r int) { d.R = r - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColorFieldR) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColorFieldR) } // SetG sets the G field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) SetG(g int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) SetG(g int) { d.G = g - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColorFieldG) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColorFieldG) } // SetB sets the B field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) SetB(b int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) SetB(b int) { d.B = b - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColorFieldB) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColorFieldB) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -101223,8 +118970,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) Unma return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor var marshaler = struct { embed }{ @@ -101234,7 +118981,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) Mars return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) String() string { if d == nil { return "" } @@ -101250,19 +118997,19 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor) Stri } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldInvisible = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldHidden = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldPrint = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldNoZoom = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldNoRotate = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldNoView = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldReadOnly = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldLocked = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldToggleNoView = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldLockedContents = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldInvisible = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldHidden = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldPrint = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldNoZoom = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldNoRotate = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldNoView = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldReadOnly = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldLocked = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldToggleNoView = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldLockedContents = big.NewInt(1 << 9) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags struct { Invisible bool `json:"invisible" url:"invisible"` Hidden bool `json:"hidden" url:"hidden"` Print bool `json:"print" url:"print"` @@ -101281,84 +119028,84 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) GetInvisible() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) GetInvisible() bool { if d == nil { return false } return d.Invisible } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) GetHidden() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) GetHidden() bool { if d == nil { return false } return d.Hidden } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) GetPrint() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) GetPrint() bool { if d == nil { return false } return d.Print } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) GetNoZoom() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) GetNoZoom() bool { if d == nil { return false } return d.NoZoom } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) GetNoRotate() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) GetNoRotate() bool { if d == nil { return false } return d.NoRotate } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) GetNoView() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) GetNoView() bool { if d == nil { return false } return d.NoView } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) GetReadOnly() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) GetReadOnly() bool { if d == nil { return false } return d.ReadOnly } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) GetLocked() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) GetLocked() bool { if d == nil { return false } return d.Locked } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) GetToggleNoView() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) GetToggleNoView() bool { if d == nil { return false } return d.ToggleNoView } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) GetLockedContents() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) GetLockedContents() bool { if d == nil { return false } return d.LockedContents } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -101367,81 +119114,81 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) requ // SetInvisible sets the Invisible field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) SetInvisible(invisible bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) SetInvisible(invisible bool) { d.Invisible = invisible - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldInvisible) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldInvisible) } // SetHidden sets the Hidden field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) SetHidden(hidden bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) SetHidden(hidden bool) { d.Hidden = hidden - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldHidden) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldHidden) } // SetPrint sets the Print field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) SetPrint(print bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) SetPrint(print bool) { d.Print = print - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldPrint) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldPrint) } // SetNoZoom sets the NoZoom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) SetNoZoom(noZoom bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) SetNoZoom(noZoom bool) { d.NoZoom = noZoom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldNoZoom) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldNoZoom) } // SetNoRotate sets the NoRotate field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) SetNoRotate(noRotate bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) SetNoRotate(noRotate bool) { d.NoRotate = noRotate - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldNoRotate) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldNoRotate) } // SetNoView sets the NoView field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) SetNoView(noView bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) SetNoView(noView bool) { d.NoView = noView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldNoView) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldNoView) } // SetReadOnly sets the ReadOnly field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) SetReadOnly(readOnly bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) SetReadOnly(readOnly bool) { d.ReadOnly = readOnly - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldReadOnly) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldReadOnly) } // SetLocked sets the Locked field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) SetLocked(locked bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) SetLocked(locked bool) { d.Locked = locked - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldLocked) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldLocked) } // SetToggleNoView sets the ToggleNoView field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) SetToggleNoView(toggleNoView bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) SetToggleNoView(toggleNoView bool) { d.ToggleNoView = toggleNoView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldToggleNoView) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldToggleNoView) } // SetLockedContents sets the LockedContents field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) SetLockedContents(lockedContents bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) SetLockedContents(lockedContents bool) { d.LockedContents = lockedContents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlagsFieldLockedContents) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldLockedContents) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -101451,8 +119198,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) Unma return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags var marshaler = struct { embed }{ @@ -101462,7 +119209,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) Mars return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) String() string { if d == nil { return "" } @@ -101477,103 +119224,66 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags) Stri return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconComment DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon = "comment" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconKey DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon = "key" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconNote DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon = "note" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconHelp DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon = "help" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconNewParagraph DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon = "new-paragraph" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconParagraph DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon = "paragraph" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconInsert DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon = "insert" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon, error) { - switch s { - case "comment": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconComment, nil - case "key": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconKey, nil - case "note": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconNote, nil - case "help": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconHelp, nil - case "new-paragraph": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconNewParagraph, nil - case "paragraph": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconParagraph, nil - case "insert": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIconInsert, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon { - return &d -} - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality = "durable" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality = "weak" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality = "durable" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality = "weak" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality, error) { switch s { case "durable": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQualityDurable, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQualityDurable, nil case "weak": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQualityWeak, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQualityWeak, nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality { return &d } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo struct { Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo) GetKind() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber { if d == nil { return nil } return d.ObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex { if d == nil { return nil } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo) UnmarshalJSON(data []byte) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -101586,19 +119296,19 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo) } switch unmarshaler.Kind { case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber) if err := json.Unmarshal(data, &value); err != nil { return err } d.ObjectNumber = value case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm) if err := json.Unmarshal(data, &value); err != nil { return err } d.Nm = value case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -101608,7 +119318,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo) return nil } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -101627,13 +119337,13 @@ func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo) M return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex) error +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex) error } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToVisitor) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToVisitor) error { if d.ObjectNumber != nil { return visitor.VisitObjectNumber(d.ObjectNumber) } @@ -101646,7 +119356,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo) return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo) validate() error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -101687,15 +119397,15 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo) } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -101704,35 +119414,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision { if d == nil { return nil } return d.Revision } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -101741,32 +119451,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIn // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex) SetIndex(index int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex) SetIndex(index int) { d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexFieldIndex) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexFieldIndex) } // SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) { d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexFieldRevision) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexFieldRevision) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -101776,8 +119486,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIn return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex var marshaler = struct { embed }{ @@ -101787,7 +119497,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIn return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex) String() string { if d == nil { return "" } @@ -101803,12 +119513,12 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIn } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision struct { DocSessionID string `json:"docSessionId" url:"docSessionId"` PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Generation int `json:"generation" url:"generation"` @@ -101820,35 +119530,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexR rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) GetDocSessionID() string { if d == nil { return "" } return d.DocSessionID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision) GetGeneration() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) GetGeneration() int { if d == nil { return 0 } return d.Generation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -101857,32 +119567,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIn // SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision) SetDocSessionID(docSessionID string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) SetDocSessionID(docSessionID string) { d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevisionFieldDocSessionID) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevisionFieldDocSessionID) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevisionFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevisionFieldPageObjectNumber) } // SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision) SetGeneration(generation int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) SetGeneration(generation int) { d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevisionFieldGeneration) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevisionFieldGeneration) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -101892,8 +119602,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIn return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision var marshaler = struct { embed }{ @@ -101903,7 +119613,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIn return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) String() string { if d == nil { return "" } @@ -101919,11 +119629,11 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIn } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNmFieldNm = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Nm string `json:"nm" url:"nm"` @@ -101934,28 +119644,28 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm str rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm) GetNm() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm) GetNm() string { if d == nil { return "" } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -101964,25 +119674,25 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNmFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNmFieldPageObjectNumber) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm) SetNm(nm string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm) SetNm(nm string) { d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNmFieldNm) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNmFieldNm) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -101992,8 +119702,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm var marshaler = struct { embed }{ @@ -102003,7 +119713,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm) String() string { if d == nil { return "" } @@ -102019,11 +119729,11 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` @@ -102034,28 +119744,28 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObject rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } return d.AnnotObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -102064,25 +119774,25 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToOb // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumberFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumberFieldPageObjectNumber) } // SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumberFieldAnnotObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -102092,8 +119802,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToOb return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber var marshaler = struct { embed }{ @@ -102103,7 +119813,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToOb return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber) String() string { if d == nil { return "" } @@ -102119,17 +119829,17 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToOb } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRectFieldRight = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRectFieldTop = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemFieldP1 = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemFieldP2 = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemFieldP3 = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemFieldP4 = big.NewInt(1 << 3) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect struct { - Left float64 `json:"left" url:"left"` - Bottom float64 `json:"bottom" url:"bottom"` - Right float64 `json:"right" url:"right"` - Top float64 `json:"top" url:"top"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem struct { + P1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1 `json:"p1" url:"p1"` + P2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2 `json:"p2" url:"p2"` + P3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3 `json:"p3" url:"p3"` + P4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4 `json:"p4" url:"p4"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -102138,278 +119848,126 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect) GetLeft() float64 { - if d == nil { - return 0 - } - return d.Left -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect) GetBottom() float64 { - if d == nil { - return 0 - } - return d.Bottom -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect) GetRight() float64 { - if d == nil { - return 0 - } - return d.Right -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect) GetTop() float64 { - if d == nil { - return 0 - } - return d.Top -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) GetP1() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1 { if d == nil { return nil } - return d.extraProperties -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetLeft sets the Left field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect) SetLeft(left float64) { - d.Left = left - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRectFieldLeft) -} - -// SetBottom sets the Bottom field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRectFieldBottom) -} - -// SetRight sets the Right field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect) SetRight(right float64) { - d.Right = right - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRectFieldRight) -} - -// SetTop sets the Top field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRectFieldTop) -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) -} - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef struct { - Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex - - rawJSON json.RawMessage + return d.P1 } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef) GetKind() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) GetP2() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2 { if d == nil { - return "" + return nil } - return d.Kind + return d.P2 } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) GetP3() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3 { if d == nil { return nil } - return d.ObjectNumber + return d.P3 } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) GetP4() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4 { if d == nil { return nil } - return d.Nm + return d.P4 } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.Index -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Nm = value - case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Index = value - } - d.rawJSON = json.RawMessage(data) - return nil + return d.extraProperties } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Nm != nil { - return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") - } - if d.Index != nil { - return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) + d.explicitFields.Or(d.explicitFields, field) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) error +// SetP1 sets the P1 field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) SetP1(p1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1) { + d.P1 = p1 + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemFieldP1) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) +// SetP2 sets the P2 field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) SetP2(p2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2) { + d.P2 = p2 + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemFieldP2) +} + +// SetP3 sets the P3 field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) SetP3(p3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3) { + d.P3 = p3 + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemFieldP3) +} + +// SetP4 sets the P4 field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) SetP4(p4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4) { + d.P4 = p4 + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemFieldP4) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - if d.Nm != nil { - return visitor.VisitNm(d.Nm) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err } - if d.Index != nil { - return visitor.VisitIndex(d.Index) + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return fmt.Errorf("type %T does not define a non-empty union type", d) + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef) validate() error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) String() string { if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Nm != nil { - fields = append(fields, "nm") - } - if d.Index != nil { - fields = append(fields, "index") + return "" } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } + if value, err := internal.StringifyJSON(d); err == nil { + return value } - return nil + return fmt.Sprintf("%#v", d) } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1FieldY = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -102418,69 +119976,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex struct rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1) GetX() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.X } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1) GetY() float64 { if d == nil { return 0 } - return d.Index -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision { - if d == nil { - return nil - } - return d.Revision + return d.Y } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexFieldPageObjectNumber) -} - -// SetIndex sets the Index field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexFieldIndex) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1FieldX) } -// SetRevision sets the Revision field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision) { - d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexFieldRevision) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1FieldY) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1 var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -102490,8 +120034,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) U return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1 var marshaler = struct { embed }{ @@ -102501,7 +120045,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) M return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1) String() string { if d == nil { return "" } @@ -102517,15 +120061,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex) S } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2FieldY = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -102534,69 +120076,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevisio rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision) GetDocSessionID() string { - if d == nil { - return "" - } - return d.DocSessionID -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2) GetX() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.X } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision) GetGeneration() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2) GetY() float64 { if d == nil { return 0 } - return d.Generation + return d.Y } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevisionFieldDocSessionID) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevisionFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2FieldX) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevisionFieldGeneration) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2FieldY) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2 var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -102606,8 +120134,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRev return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2 var marshaler = struct { embed }{ @@ -102617,7 +120145,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRev return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2) String() string { if d == nil { return "" } @@ -102633,13 +120161,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRev } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNmFieldNm = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3FieldY = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -102648,55 +120176,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3) GetX() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.X } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm) GetNm() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3) GetY() float64 { if d == nil { - return "" + return 0 } - return d.Nm + return d.Y } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNmFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3FieldX) } -// SetNm sets the Nm field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNmFieldNm) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3FieldY) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3 var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -102706,8 +120234,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm) Unma return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3 var marshaler = struct { embed }{ @@ -102717,7 +120245,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm) Mars return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3) String() string { if d == nil { return "" } @@ -102733,13 +120261,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm) Stri } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4FieldX = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4FieldY = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4 struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -102748,55 +120276,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4) GetX() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.X } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4) GetY() float64 { if d == nil { return 0 } - return d.AnnotObjectNumber + return d.Y } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumberFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4) SetX(x float64) { + d.X = x + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4FieldX) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumberFieldAnnotObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4) SetY(y float64) { + d.Y = y + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4FieldY) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4 var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -102806,8 +120334,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNu return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4 var marshaler = struct { embed }{ @@ -102817,7 +120345,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNu return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4) String() string { if d == nil { return "" } @@ -102832,437 +120360,369 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNu return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType = "reply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType = "group" +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRectFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRectFieldTop = big.NewInt(1 << 3) ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType, error) { - switch s { - case "reply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyTypeReply, nil - case "group": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyTypeGroup, nil +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect struct { + Left float64 `json:"left" url:"left"` + Bottom float64 `json:"bottom" url:"bottom"` + Right float64 `json:"right" url:"right"` + Top float64 `json:"top" url:"top"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) GetLeft() float64 { + if d == nil { + return 0 } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType - return "", fmt.Errorf("%s is not a valid %T", s, t) + return d.Left } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType { - return &d +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) GetBottom() float64 { + if d == nil { + return 0 + } + return d.Bottom } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldRef = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldIndex = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldIdentityQuality = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldNm = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldFlags = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldRect = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldContents = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldSubject = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldAuthor = big.NewInt(1 << 9) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldCreated = big.NewInt(1 << 10) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldModified = big.NewInt(1 << 11) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldBlendMode = big.NewInt(1 << 12) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldInReplyTo = big.NewInt(1 << 13) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldReplyType = big.NewInt(1 << 14) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldUserID = big.NewInt(1 << 15) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldGroupID = big.NewInt(1 << 16) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldCreatedBy = big.NewInt(1 << 17) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldUpdatedBy = big.NewInt(1 << 18) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldActions = big.NewInt(1 << 19) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldColor = big.NewInt(1 << 20) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldOpacity = big.NewInt(1 << 21) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldQuadPoints = big.NewInt(1 << 22) -) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) GetRight() float64 { + if d == nil { + return 0 + } + return d.Right +} -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline struct { - Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef `json:"ref" url:"ref"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality `json:"identityQuality" url:"identityQuality"` - Nm *string `json:"nm,omitempty" url:"nm,omitempty"` - Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags `json:"flags" url:"flags"` - Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect `json:"rect" url:"rect"` - Contents *string `json:"contents,omitempty" url:"contents,omitempty"` - Subject *string `json:"subject,omitempty" url:"subject,omitempty"` - Author *string `json:"author,omitempty" url:"author,omitempty"` - Created *time.Time `json:"created,omitempty" url:"created,omitempty"` - Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` - BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode `json:"blendMode" url:"blendMode"` - InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` - ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` - UserID *string `json:"userId,omitempty" url:"userId,omitempty"` - GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` - CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` - Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` - Color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor `json:"color" url:"color"` - Opacity float64 `json:"opacity" url:"opacity"` - QuadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem `json:"quadPoints" url:"quadPoints"` +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) GetTop() float64 { + if d == nil { + return 0 + } + return d.Top +} - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetLeft sets the Left field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) SetLeft(left float64) { + d.Left = left + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRectFieldLeft) +} + +// SetBottom sets the Bottom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRectFieldBottom) +} + +// SetRight sets the Right field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) SetRight(right float64) { + d.Right = right + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRectFieldRight) +} + +// SetTop sets the Top field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) SetTop(top float64) { + d.Top = top + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRectFieldTop) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef { - if d == nil { - return nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return d.Ref + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) String() string { if d == nil { - return 0 + return "" } - return d.PageObjectNumber + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetIndex() int { - if d == nil { - return 0 - } - return d.Index +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex + + rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef) GetKind() string { if d == nil { return "" } - return d.IdentityQuality + return d.Kind } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetNm() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber { if d == nil { return nil } - return d.Nm + return d.ObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm { if d == nil { return nil } - return d.Flags + return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex { if d == nil { return nil } - return d.Rect + return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetContents() *string { - if d == nil { - return nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` } - return d.Contents -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetSubject() *string { - if d == nil { - return nil + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err } - return d.Subject -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetAuthor() *string { - if d == nil { - return nil + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) } - return d.Author -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetCreated() *time.Time { - if d == nil { - return nil + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value } - return d.Created + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetModified() *time.Time { - if d == nil { - return nil +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err } - return d.Modified -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode { - if d == nil { - return "" + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") } - return d.BlendMode -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo { - if d == nil { - return nil + if d.Nm != nil { + return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") } - return d.InReplyTo -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType { - if d == nil { - return nil + if d.Index != nil { + return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") } - return d.ReplyType -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetUserID() *string { - if d == nil { - return nil + if len(d.rawJSON) > 0 { + return d.rawJSON, nil } - return d.UserID + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetGroupID() *string { - if d == nil { - return nil - } - return d.GroupID +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) error } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetCreatedBy() *string { - if d == nil { - return nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) } - return d.CreatedBy + if d.Nm != nil { + return visitor.VisitNm(d.Nm) + } + if d.Index != nil { + return visitor.VisitIndex(d.Index) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetUpdatedBy() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef) validate() error { if d == nil { - return nil + return fmt.Errorf("type %T is nil", d) } - return d.UpdatedBy + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Nm != nil { + fields = append(fields, "nm") + } + if d.Index != nil { + fields = append(fields, "index") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetActions() *PdfAnnotationActions { - if d == nil { - return nil - } - return d.Actions +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexFieldRevision = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision `json:"revision" url:"revision"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) GetPageObjectNumber() int { if d == nil { - return nil + return 0 } - return d.Color + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetOpacity() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) GetIndex() int { if d == nil { return 0 } - return d.Opacity + return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetQuadPoints() []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision { if d == nil { return nil } - return d.QuadPoints + return d.Revision } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetRef sets the Ref field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef) { - d.Ref = ref - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldRef) -} - // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetIndex(index int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) SetIndex(index int) { d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldIndex) -} - -// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality) { - d.IdentityQuality = identityQuality - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldIdentityQuality) -} - -// SetNm sets the Nm field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetNm(nm *string) { - d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldNm) -} - -// SetFlags sets the Flags field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) { - d.Flags = flags - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldFlags) -} - -// SetRect sets the Rect field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) { - d.Rect = rect - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldRect) -} - -// SetContents sets the Contents field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetContents(contents *string) { - d.Contents = contents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldContents) -} - -// SetSubject sets the Subject field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetSubject(subject *string) { - d.Subject = subject - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldSubject) -} - -// SetAuthor sets the Author field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetAuthor(author *string) { - d.Author = author - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldAuthor) -} - -// SetCreated sets the Created field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetCreated(created *time.Time) { - d.Created = created - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldCreated) -} - -// SetModified sets the Modified field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetModified(modified *time.Time) { - d.Modified = modified - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldModified) -} - -// SetBlendMode sets the BlendMode field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode) { - d.BlendMode = blendMode - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldBlendMode) -} - -// SetInReplyTo sets the InReplyTo field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo) { - d.InReplyTo = inReplyTo - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldInReplyTo) -} - -// SetReplyType sets the ReplyType field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType) { - d.ReplyType = replyType - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldReplyType) -} - -// SetUserID sets the UserID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetUserID(userID *string) { - d.UserID = userID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldUserID) -} - -// SetGroupID sets the GroupID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetGroupID(groupID *string) { - d.GroupID = groupID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldGroupID) -} - -// SetCreatedBy sets the CreatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetCreatedBy(createdBy *string) { - d.CreatedBy = createdBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldCreatedBy) -} - -// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetUpdatedBy(updatedBy *string) { - d.UpdatedBy = updatedBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldUpdatedBy) -} - -// SetActions sets the Actions field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetActions(actions *PdfAnnotationActions) { - d.Actions = actions - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldActions) -} - -// SetColor sets the Color field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetColor(color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) { - d.Color = color - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldColor) -} - -// SetOpacity sets the Opacity field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetOpacity(opacity float64) { - d.Opacity = opacity - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldOpacity) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexFieldIndex) } -// SetQuadPoints sets the QuadPoints field and marks it as non-optional; +// SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) SetQuadPoints(quadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) { - d.QuadPoints = quadPoints - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFieldQuadPoints) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexFieldRevision) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) UnmarshalJSON(data []byte) error { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline - var unmarshaler = struct { - embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` - }{ - embed: embed(*d), - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline(unmarshaler.embed) - d.Created = unmarshaler.Created.TimePtr() - d.Modified = unmarshaler.Modified.TimePtr() + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -103272,110 +120732,42 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) Unma return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex var marshaler = struct { embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), - Created: internal.NewOptionalDateTime(d.Created), - Modified: internal.NewOptionalDateTime(d.Modified), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) -} - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode = "normal" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode = "multiply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode = "screen" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode = "overlay" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode = "darken" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode = "lighten" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode = "color-dodge" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode = "color-burn" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode = "hard-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode = "soft-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode = "difference" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode = "exclusion" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode = "hue" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode = "saturation" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode = "color" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode = "luminosity" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode, error) { - switch s { - case "normal": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeNormal, nil - case "multiply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeMultiply, nil - case "screen": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeScreen, nil - case "overlay": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeOverlay, nil - case "darken": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeDarken, nil - case "lighten": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeLighten, nil - case "color-dodge": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeColorDodge, nil - case "color-burn": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeColorBurn, nil - case "hard-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeHardLight, nil - case "soft-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeSoftLight, nil - case "difference": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeDifference, nil - case "exclusion": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeExclusion, nil - case "hue": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeHue, nil - case "saturation": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeSaturation, nil - case "color": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeColor, nil - case "luminosity": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendModeLuminosity, nil + embed: embed(*d), } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode - return "", fmt.Errorf("%s is not a valid %T", s, t) + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode { - return &d +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColorFieldR = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColorFieldG = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColorFieldB = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor struct { - R int `json:"r" url:"r"` - G int `json:"g" url:"g"` - B int `json:"b" url:"b"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -103384,69 +120776,69 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor stru rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) GetR() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision) GetDocSessionID() string { if d == nil { - return 0 + return "" } - return d.R + return d.DocSessionID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) GetG() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } - return d.G + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) GetB() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision) GetGeneration() int { if d == nil { return 0 } - return d.B + return d.Generation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetR sets the R field and marks it as non-optional; +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) SetR(r int) { - d.R = r - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColorFieldR) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevisionFieldDocSessionID) } -// SetG sets the G field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) SetG(g int) { - d.G = g - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColorFieldG) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevisionFieldPageObjectNumber) } -// SetB sets the B field and marks it as non-optional; +// SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) SetB(b int) { - d.B = b - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColorFieldB) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevisionFieldGeneration) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -103456,8 +120848,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision var marshaler = struct { embed }{ @@ -103467,7 +120859,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision) String() string { if d == nil { return "" } @@ -103483,29 +120875,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor) } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldInvisible = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldHidden = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldPrint = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldNoZoom = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldNoRotate = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldNoView = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldReadOnly = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldLocked = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldToggleNoView = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldLockedContents = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags struct { - Invisible bool `json:"invisible" url:"invisible"` - Hidden bool `json:"hidden" url:"hidden"` - Print bool `json:"print" url:"print"` - NoZoom bool `json:"noZoom" url:"noZoom"` - NoRotate bool `json:"noRotate" url:"noRotate"` - NoView bool `json:"noView" url:"noView"` - ReadOnly bool `json:"readOnly" url:"readOnly"` - Locked bool `json:"locked" url:"locked"` - ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` - LockedContents bool `json:"lockedContents" url:"lockedContents"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -103514,167 +120890,155 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags stru rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) GetInvisible() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm) GetPageObjectNumber() int { if d == nil { - return false + return 0 } - return d.Invisible + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) GetHidden() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm) GetNm() string { if d == nil { - return false + return "" } - return d.Hidden + return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) GetPrint() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm) GetExtraProperties() map[string]interface{} { if d == nil { - return false + return nil } - return d.Print + return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) GetNoZoom() bool { - if d == nil { - return false +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.NoZoom + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) GetNoRotate() bool { - if d == nil { - return false - } - return d.NoRotate +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNmFieldPageObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) GetNoView() bool { - if d == nil { - return false +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNmFieldNm) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - return d.NoView + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) GetReadOnly() bool { - if d == nil { - return false +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return d.ReadOnly + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) GetLocked() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm) String() string { if d == nil { - return false + return "" } - return d.Locked + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) GetToggleNoView() bool { +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber) GetPageObjectNumber() int { if d == nil { - return false + return 0 } - return d.ToggleNoView + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) GetLockedContents() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber) GetAnnotObjectNumber() int { if d == nil { - return false + return 0 } - return d.LockedContents + return d.AnnotObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetInvisible sets the Invisible field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) SetInvisible(invisible bool) { - d.Invisible = invisible - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldInvisible) -} - -// SetHidden sets the Hidden field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) SetHidden(hidden bool) { - d.Hidden = hidden - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldHidden) -} - -// SetPrint sets the Print field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) SetPrint(print bool) { - d.Print = print - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldPrint) -} - -// SetNoZoom sets the NoZoom field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) SetNoZoom(noZoom bool) { - d.NoZoom = noZoom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldNoZoom) -} - -// SetNoRotate sets the NoRotate field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) SetNoRotate(noRotate bool) { - d.NoRotate = noRotate - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldNoRotate) -} - -// SetNoView sets the NoView field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) SetNoView(noView bool) { - d.NoView = noView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldNoView) -} - -// SetReadOnly sets the ReadOnly field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) SetReadOnly(readOnly bool) { - d.ReadOnly = readOnly - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldReadOnly) -} - -// SetLocked sets the Locked field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) SetLocked(locked bool) { - d.Locked = locked - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldLocked) -} - -// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) SetToggleNoView(toggleNoView bool) { - d.ToggleNoView = toggleNoView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldToggleNoView) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumberFieldPageObjectNumber) } -// SetLockedContents sets the LockedContents field and marks it as non-optional; +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) SetLockedContents(lockedContents bool) { - d.LockedContents = lockedContents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlagsFieldLockedContents) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -103684,8 +121048,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber var marshaler = struct { embed }{ @@ -103695,7 +121059,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber) String() string { if d == nil { return "" } @@ -103710,375 +121074,421 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags) return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality = "durable" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality = "weak" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType = "reply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType = "group" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType, error) { switch s { - case "durable": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQualityDurable, nil - case "weak": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQualityWeak, nil + case "reply": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyTypeReply, nil + case "group": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyTypeGroup, nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType { return &d } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo struct { - Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldRef = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldIndex = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldIdentityQuality = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldNm = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldFlags = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldRect = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldContents = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldSubject = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldAuthor = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldCreated = big.NewInt(1 << 10) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldModified = big.NewInt(1 << 11) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldBlendMode = big.NewInt(1 << 12) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldInReplyTo = big.NewInt(1 << 13) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldReplyType = big.NewInt(1 << 14) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldUserID = big.NewInt(1 << 15) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldGroupID = big.NewInt(1 << 16) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldCreatedBy = big.NewInt(1 << 17) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldUpdatedBy = big.NewInt(1 << 18) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldActions = big.NewInt(1 << 19) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldRawSubtypeCode = big.NewInt(1 << 20) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldRawSubtypeName = big.NewInt(1 << 21) +) - rawJSON json.RawMessage +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported struct { + Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef `json:"ref" url:"ref"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality `json:"identityQuality" url:"identityQuality"` + Nm *string `json:"nm,omitempty" url:"nm,omitempty"` + Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags `json:"flags" url:"flags"` + Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect `json:"rect" url:"rect"` + Contents *string `json:"contents,omitempty" url:"contents,omitempty"` + Subject *string `json:"subject,omitempty" url:"subject,omitempty"` + Author *string `json:"author,omitempty" url:"author,omitempty"` + Created *time.Time `json:"created,omitempty" url:"created,omitempty"` + Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` + BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode `json:"blendMode" url:"blendMode"` + InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` + ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` + UserID *string `json:"userId,omitempty" url:"userId,omitempty"` + GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` + CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` + Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` + RawSubtypeCode int `json:"rawSubtypeCode" url:"rawSubtypeCode"` + RawSubtypeName *string `json:"rawSubtypeName,omitempty" url:"rawSubtypeName,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo) GetKind() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef { if d == nil { - return "" + return nil } - return d.Kind + return d.Ref } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetPageObjectNumber() int { if d == nil { - return nil + return 0 } - return d.ObjectNumber + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetIndex() int { + if d == nil { + return 0 + } + return d.Index +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality { + if d == nil { + return "" + } + return d.IdentityQuality +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetNm() *string { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags { if d == nil { return nil } - return d.Index + return d.Flags } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Nm = value - case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Index = value +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect { + if d == nil { + return nil } - d.rawJSON = json.RawMessage(data) - return nil + return d.Rect } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Nm != nil { - return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") - } - if d.Index != nil { - return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetContents() *string { + if d == nil { + return nil } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) + return d.Contents } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex) error +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetSubject() *string { + if d == nil { + return nil + } + return d.Subject } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetAuthor() *string { + if d == nil { + return nil } - if d.Nm != nil { - return visitor.VisitNm(d.Nm) + return d.Author +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetCreated() *time.Time { + if d == nil { + return nil } - if d.Index != nil { - return visitor.VisitIndex(d.Index) + return d.Created +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetModified() *time.Time { + if d == nil { + return nil } - return fmt.Errorf("type %T does not define a non-empty union type", d) + return d.Modified } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo) validate() error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode { if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Nm != nil { - fields = append(fields, "nm") - } - if d.Index != nil { - fields = append(fields, "index") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) + return "" } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + return d.BlendMode +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo { + if d == nil { + return nil } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } + return d.InReplyTo +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyType { + if d == nil { + return nil } - return nil + return d.ReplyType } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexFieldRevision = big.NewInt(1 << 2) -) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetUserID() *string { + if d == nil { + return nil + } + return d.UserID +} -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision `json:"revision" url:"revision"` +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetGroupID() *string { + if d == nil { + return nil + } + return d.GroupID +} - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetCreatedBy() *string { + if d == nil { + return nil + } + return d.CreatedBy +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetUpdatedBy() *string { + if d == nil { + return nil + } + return d.UpdatedBy } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetActions() *PdfAnnotationActions { if d == nil { - return 0 + return nil } - return d.PageObjectNumber + return d.Actions } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetRawSubtypeCode() int { if d == nil { return 0 } - return d.Index + return d.RawSubtypeCode } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetRawSubtypeName() *string { if d == nil { return nil } - return d.Revision + return d.RawSubtypeName } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } +// SetRef sets the Ref field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef) { + d.Ref = ref + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldRef) +} + // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex) SetIndex(index int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetIndex(index int) { d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexFieldIndex) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldIndex) } -// SetRevision sets the Revision field and marks it as non-optional; +// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) { - d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexFieldRevision) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality) { + d.IdentityQuality = identityQuality + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldIdentityQuality) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetNm(nm *string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldNm) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) +// SetFlags sets the Flags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) { + d.Flags = flags + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldFlags) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) +// SetRect sets the Rect field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) { + d.Rect = rect + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldRect) } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) -) +// SetContents sets the Contents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetContents(contents *string) { + d.Contents = contents + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldContents) +} -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +// SetSubject sets the Subject field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetSubject(subject *string) { + d.Subject = subject + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldSubject) +} - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +// SetAuthor sets the Author field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetAuthor(author *string) { + d.Author = author + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldAuthor) +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +// SetCreated sets the Created field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetCreated(created *time.Time) { + d.Created = created + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldCreated) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) GetDocSessionID() string { - if d == nil { - return "" - } - return d.DocSessionID +// SetModified sets the Modified field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetModified(modified *time.Time) { + d.Modified = modified + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldModified) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber +// SetBlendMode sets the BlendMode field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode) { + d.BlendMode = blendMode + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldBlendMode) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) GetGeneration() int { - if d == nil { - return 0 - } - return d.Generation +// SetInReplyTo sets the InReplyTo field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo) { + d.InReplyTo = inReplyTo + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldInReplyTo) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties +// SetReplyType sets the ReplyType field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyType) { + d.ReplyType = replyType + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldReplyType) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) +// SetUserID sets the UserID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetUserID(userID *string) { + d.UserID = userID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldUserID) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// SetGroupID sets the GroupID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevisionFieldDocSessionID) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetGroupID(groupID *string) { + d.GroupID = groupID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldGroupID) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetCreatedBy sets the CreatedBy field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevisionFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetCreatedBy(createdBy *string) { + d.CreatedBy = createdBy + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldCreatedBy) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevisionFieldGeneration) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetUpdatedBy(updatedBy *string) { + d.UpdatedBy = updatedBy + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldUpdatedBy) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { +// SetActions sets the Actions field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetActions(actions *PdfAnnotationActions) { + d.Actions = actions + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldActions) +} + +// SetRawSubtypeCode sets the RawSubtypeCode field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetRawSubtypeCode(rawSubtypeCode int) { + d.RawSubtypeCode = rawSubtypeCode + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldRawSubtypeCode) +} + +// SetRawSubtypeName sets the RawSubtypeName field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetRawSubtypeName(rawSubtypeName *string) { + d.RawSubtypeName = rawSubtypeName + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldRawSubtypeName) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) UnmarshalJSON(data []byte) error { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported + var unmarshaler = struct { + embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported(unmarshaler.embed) + d.Created = unmarshaler.Created.TimePtr() + d.Modified = unmarshaler.Modified.TimePtr() extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -104088,18 +121498,22 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInRepl return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported var marshaler = struct { embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), + embed: embed(*d), + Created: internal.NewOptionalDateTime(d.Created), + Modified: internal.NewOptionalDateTime(d.Modified), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) String() string { if d == nil { return "" } @@ -104114,14 +121528,94 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInRepl return fmt.Sprintf("%#v", d) } +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode = "normal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode = "multiply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode = "screen" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode = "overlay" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode = "darken" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode = "lighten" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode = "color-dodge" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode = "color-burn" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode = "hard-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode = "soft-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode = "difference" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode = "exclusion" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode = "hue" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode = "saturation" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode = "color" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode = "luminosity" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode, error) { + switch s { + case "normal": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeNormal, nil + case "multiply": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeMultiply, nil + case "screen": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeScreen, nil + case "overlay": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeOverlay, nil + case "darken": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeDarken, nil + case "lighten": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeLighten, nil + case "color-dodge": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeColorDodge, nil + case "color-burn": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeColorBurn, nil + case "hard-light": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeHardLight, nil + case "soft-light": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeSoftLight, nil + case "difference": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeDifference, nil + case "exclusion": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeExclusion, nil + case "hue": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeHue, nil + case "saturation": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeSaturation, nil + case "color": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeColor, nil + case "luminosity": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeLuminosity, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode { + return &d +} + var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNmFieldNm = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldInvisible = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldHidden = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldPrint = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldNoZoom = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldNoRotate = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldNoView = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldReadOnly = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldLocked = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldToggleNoView = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldLockedContents = big.NewInt(1 << 9) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags struct { + Invisible bool `json:"invisible" url:"invisible"` + Hidden bool `json:"hidden" url:"hidden"` + Print bool `json:"print" url:"print"` + NoZoom bool `json:"noZoom" url:"noZoom"` + NoRotate bool `json:"noRotate" url:"noRotate"` + NoView bool `json:"noView" url:"noView"` + ReadOnly bool `json:"readOnly" url:"readOnly"` + Locked bool `json:"locked" url:"locked"` + ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` + LockedContents bool `json:"lockedContents" url:"lockedContents"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -104130,155 +121624,167 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToN rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) GetInvisible() bool { if d == nil { - return 0 + return false } - return d.PageObjectNumber + return d.Invisible } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm) GetNm() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) GetHidden() bool { if d == nil { - return "" + return false } - return d.Nm + return d.Hidden } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) GetPrint() bool { if d == nil { - return nil - } - return d.extraProperties -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) + return false } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNmFieldPageObjectNumber) -} - -// SetNm sets the Nm field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNmFieldNm) + return d.Print } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) GetNoZoom() bool { + if d == nil { + return false } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil + return d.NoZoom } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) GetNoRotate() bool { + if d == nil { + return false } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return d.NoRotate } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) GetNoView() bool { if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value + return false } - return fmt.Sprintf("%#v", d) + return d.NoView } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) -) - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) GetReadOnly() bool { + if d == nil { + return false + } + return d.ReadOnly +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) GetLocked() bool { + if d == nil { + return false + } + return d.Locked } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) GetToggleNoView() bool { if d == nil { - return 0 + return false } - return d.PageObjectNumber + return d.ToggleNoView } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) GetLockedContents() bool { if d == nil { - return 0 + return false } - return d.AnnotObjectNumber + return d.LockedContents } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetInvisible sets the Invisible field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumberFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) SetInvisible(invisible bool) { + d.Invisible = invisible + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldInvisible) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetHidden sets the Hidden field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumberFieldAnnotObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) SetHidden(hidden bool) { + d.Hidden = hidden + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldHidden) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber +// SetPrint sets the Print field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) SetPrint(print bool) { + d.Print = print + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldPrint) +} + +// SetNoZoom sets the NoZoom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) SetNoZoom(noZoom bool) { + d.NoZoom = noZoom + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldNoZoom) +} + +// SetNoRotate sets the NoRotate field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) SetNoRotate(noRotate bool) { + d.NoRotate = noRotate + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldNoRotate) +} + +// SetNoView sets the NoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) SetNoView(noView bool) { + d.NoView = noView + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldNoView) +} + +// SetReadOnly sets the ReadOnly field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldReadOnly) +} + +// SetLocked sets the Locked field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) SetLocked(locked bool) { + d.Locked = locked + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldLocked) +} + +// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) SetToggleNoView(toggleNoView bool) { + d.ToggleNoView = toggleNoView + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldToggleNoView) +} + +// SetLockedContents sets the LockedContents field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) SetLockedContents(lockedContents bool) { + d.LockedContents = lockedContents + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldLockedContents) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -104288,8 +121794,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInRepl return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags var marshaler = struct { embed }{ @@ -104299,7 +121805,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInRepl return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) String() string { if d == nil { return "" } @@ -104314,146 +121820,188 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInRepl return fmt.Sprintf("%#v", d) } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemFieldP1 = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemFieldP2 = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemFieldP3 = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemFieldP4 = big.NewInt(1 << 3) -) +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality string -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem struct { - P1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1 `json:"p1" url:"p1"` - P2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2 `json:"p2" url:"p2"` - P3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3 `json:"p3" url:"p3"` - P4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4 `json:"p4" url:"p4"` +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality = "durable" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality = "weak" +) - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality, error) { + switch s { + case "durable": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQualityDurable, nil + case "weak": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQualityWeak, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality + return "", fmt.Errorf("%s is not a valid %T", s, t) +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality { + return &d } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) GetP1() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1 { - if d == nil { - return nil - } - return d.P1 +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo struct { + Kind string + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex + + rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) GetP2() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo) GetKind() string { if d == nil { - return nil + return "" } - return d.P2 + return d.Kind } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) GetP3() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber { if d == nil { return nil } - return d.P3 + return d.ObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) GetP4() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm { if d == nil { return nil } - return d.P4 + return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex { if d == nil { return nil } - return d.extraProperties + return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetP1 sets the P1 field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) SetP1(p1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1) { - d.P1 = p1 - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemFieldP1) -} - -// SetP2 sets the P2 field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) SetP2(p2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2) { - d.P2 = p2 - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemFieldP2) + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "nm": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Nm = value + case "index": + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Index = value + } + d.rawJSON = json.RawMessage(data) + return nil } -// SetP3 sets the P3 field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) SetP3(p3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3) { - d.P3 = p3 - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemFieldP3) +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err + } + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Nm != nil { + return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + } + if d.Index != nil { + return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -// SetP4 sets the P4 field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) SetP4(p4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4) { - d.P4 = p4 - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemFieldP4) +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex) error } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err + if d.Nm != nil { + return visitor.VisitNm(d.Nm) } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem - var marshaler = struct { - embed - }{ - embed: embed(*d), + if d.Index != nil { + return visitor.VisitIndex(d.Index) } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo) validate() error { if d == nil { - return "" + return fmt.Errorf("type %T is nil", d) } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Nm != nil { + fields = append(fields, "nm") + } + if d.Index != nil { + fields = append(fields, "index") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) } + return fmt.Errorf("type %T is empty", d) } - if value, err := internal.StringifyJSON(d); err == nil { - return value + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) } - return fmt.Sprintf("%#v", d) + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1FieldX = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1FieldY = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -104462,55 +122010,69 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPoints rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1) GetX() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex) GetPageObjectNumber() int { if d == nil { return 0 } - return d.X + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1) GetY() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex) GetIndex() int { if d == nil { return 0 } - return d.Y + return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetX sets the X field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1) SetX(x float64) { - d.X = x - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1FieldX) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexFieldPageObjectNumber) } -// SetY sets the Y field and marks it as non-optional; +// SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1) SetY(y float64) { - d.Y = y - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1FieldY) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex) SetIndex(index int) { + d.Index = index + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexFieldIndex) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1 +// SetRevision sets the Revision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexFieldRevision) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -104520,8 +122082,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPo return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1 +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex var marshaler = struct { embed }{ @@ -104531,7 +122093,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPo return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex) String() string { if d == nil { return "" } @@ -104547,13 +122109,15 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPo } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2FieldX = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2FieldY = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -104562,55 +122126,69 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPoints rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2) GetX() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } - return d.X + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2) GetY() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision) GetGeneration() int { if d == nil { return 0 } - return d.Y + return d.Generation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetX sets the X field and marks it as non-optional; +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2) SetX(x float64) { - d.X = x - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2FieldX) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevisionFieldDocSessionID) } -// SetY sets the Y field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2) SetY(y float64) { - d.Y = y - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2FieldY) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevisionFieldPageObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2 +// SetGeneration sets the Generation field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevisionFieldGeneration) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -104620,8 +122198,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPo return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2 +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision var marshaler = struct { embed }{ @@ -104631,7 +122209,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPo return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision) String() string { if d == nil { return "" } @@ -104647,13 +122225,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPo } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3FieldX = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3FieldY = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Nm string `json:"nm" url:"nm"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -104662,55 +122240,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPoints rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3) GetX() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm) GetPageObjectNumber() int { if d == nil { return 0 } - return d.X + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3) GetY() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm) GetNm() string { if d == nil { - return 0 + return "" } - return d.Y + return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetX sets the X field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3) SetX(x float64) { - d.X = x - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3FieldX) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNmFieldPageObjectNumber) } -// SetY sets the Y field and marks it as non-optional; +// SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3) SetY(y float64) { - d.Y = y - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3FieldY) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNmFieldNm) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3 +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -104720,8 +122298,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPo return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3 +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm var marshaler = struct { embed }{ @@ -104731,7 +122309,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPo return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm) String() string { if d == nil { return "" } @@ -104747,13 +122325,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPo } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4FieldX = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4FieldY = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4 struct { - X float64 `json:"x" url:"x"` - Y float64 `json:"y" url:"y"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -104762,55 +122340,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPoints rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4) GetX() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } - return d.X + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4) GetY() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } - return d.Y + return d.AnnotObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetX sets the X field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4) SetX(x float64) { - d.X = x - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4FieldX) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumberFieldPageObjectNumber) } -// SetY sets the Y field and marks it as non-optional; +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4) SetY(y float64) { - d.Y = y - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4FieldY) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4 +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -104820,8 +122398,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPo return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4 +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber var marshaler = struct { embed }{ @@ -104831,7 +122409,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPo return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber) String() string { if d == nil { return "" } @@ -104847,13 +122425,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPo } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRectFieldRight = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRectFieldTop = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRectFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRectFieldTop = big.NewInt(1 << 3) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect struct { Left float64 `json:"left" url:"left"` Bottom float64 `json:"bottom" url:"bottom"` Right float64 `json:"right" url:"right"` @@ -104866,42 +122444,42 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect struc rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) GetLeft() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) GetLeft() float64 { if d == nil { return 0 } return d.Left } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) GetBottom() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) GetBottom() float64 { if d == nil { return 0 } return d.Bottom } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) GetRight() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) GetRight() float64 { if d == nil { return 0 } return d.Right } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) GetTop() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) GetTop() float64 { if d == nil { return 0 } return d.Top } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -104910,39 +122488,39 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) // SetLeft sets the Left field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) SetLeft(left float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) SetLeft(left float64) { d.Left = left - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRectFieldLeft) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRectFieldLeft) } // SetBottom sets the Bottom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) SetBottom(bottom float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) SetBottom(bottom float64) { d.Bottom = bottom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRectFieldBottom) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRectFieldBottom) } // SetRight sets the Right field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) SetRight(right float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) SetRight(right float64) { d.Right = right - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRectFieldRight) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRectFieldRight) } // SetTop sets the Top field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) SetTop(top float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) SetTop(top float64) { d.Top = top - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRectFieldTop) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRectFieldTop) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -104952,8 +122530,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect var marshaler = struct { embed }{ @@ -104963,7 +122541,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) String() string { if d == nil { return "" } @@ -104978,44 +122556,44 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect) return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef struct { Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef) GetKind() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber { if d == nil { return nil } return d.ObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex { if d == nil { return nil } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef) UnmarshalJSON(data []byte) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -105028,19 +122606,19 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef) U } switch unmarshaler.Kind { case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber) if err := json.Unmarshal(data, &value); err != nil { return err } d.ObjectNumber = value case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm) if err := json.Unmarshal(data, &value); err != nil { return err } d.Nm = value case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -105050,7 +122628,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef) U return nil } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -105069,13 +122647,13 @@ func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef) Ma return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) error +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) error } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefVisitor) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefVisitor) error { if d.ObjectNumber != nil { return visitor.VisitObjectNumber(d.ObjectNumber) } @@ -105088,7 +122666,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef) A return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef) validate() error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -105129,15 +122707,15 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef) v } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -105146,35 +122724,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex s rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision { if d == nil { return nil } return d.Revision } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -105183,32 +122761,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefInd // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) SetIndex(index int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) SetIndex(index int) { d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexFieldIndex) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexFieldIndex) } // SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) { d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexFieldRevision) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexFieldRevision) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -105218,8 +122796,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefInd return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex var marshaler = struct { embed }{ @@ -105229,7 +122807,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefInd return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) String() string { if d == nil { return "" } @@ -105245,12 +122823,12 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefInd } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision struct { DocSessionID string `json:"docSessionId" url:"docSessionId"` PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Generation int `json:"generation" url:"generation"` @@ -105262,35 +122840,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRe rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) GetDocSessionID() string { if d == nil { return "" } return d.DocSessionID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision) GetGeneration() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) GetGeneration() int { if d == nil { return 0 } return d.Generation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -105299,32 +122877,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefInd // SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision) SetDocSessionID(docSessionID string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) SetDocSessionID(docSessionID string) { d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevisionFieldDocSessionID) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevisionFieldDocSessionID) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevisionFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevisionFieldPageObjectNumber) } // SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision) SetGeneration(generation int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) SetGeneration(generation int) { d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevisionFieldGeneration) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevisionFieldGeneration) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -105334,8 +122912,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefInd return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision var marshaler = struct { embed }{ @@ -105345,7 +122923,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefInd return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) String() string { if d == nil { return "" } @@ -105361,11 +122939,11 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefInd } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNmFieldNm = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Nm string `json:"nm" url:"nm"` @@ -105376,28 +122954,28 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm stru rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm) GetNm() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm) GetNm() string { if d == nil { return "" } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -105406,25 +122984,25 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm) // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNmFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNmFieldPageObjectNumber) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm) SetNm(nm string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm) SetNm(nm string) { d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNmFieldNm) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNmFieldNm) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -105434,8 +123012,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm) return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm var marshaler = struct { embed }{ @@ -105445,7 +123023,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm) String() string { if d == nil { return "" } @@ -105461,11 +123039,11 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm) } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` @@ -105476,28 +123054,28 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectN rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber) GetAnnotObjectNumber() int { if d == nil { return 0 } return d.AnnotObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -105506,25 +123084,25 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObj // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumberFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumberFieldPageObjectNumber) } // SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumberFieldAnnotObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumberFieldAnnotObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -105534,8 +123112,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObj return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber var marshaler = struct { embed }{ @@ -105545,7 +123123,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObj return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber) String() string { if d == nil { return "" } @@ -105560,76 +123138,92 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObj return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyType string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType = "reply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType = "group" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyType = "reply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyType = "group" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyType, error) { switch s { case "reply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyTypeReply, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyTypeReply, nil case "group": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyTypeGroup, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyTypeGroup, nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyType return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyType { return &d } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldRef = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldIndex = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldIdentityQuality = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldNm = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldFlags = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldRect = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldContents = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldSubject = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldAuthor = big.NewInt(1 << 9) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldCreated = big.NewInt(1 << 10) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldModified = big.NewInt(1 << 11) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldBlendMode = big.NewInt(1 << 12) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldInReplyTo = big.NewInt(1 << 13) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldReplyType = big.NewInt(1 << 14) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldUserID = big.NewInt(1 << 15) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldGroupID = big.NewInt(1 << 16) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldCreatedBy = big.NewInt(1 << 17) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldUpdatedBy = big.NewInt(1 << 18) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldActions = big.NewInt(1 << 19) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldRawSubtypeCode = big.NewInt(1 << 20) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldRawSubtypeName = big.NewInt(1 << 21) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldRef = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldIndex = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldIdentityQuality = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldNm = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFlags = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldRect = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldContents = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldSubject = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldAuthor = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldCreated = big.NewInt(1 << 10) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldModified = big.NewInt(1 << 11) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldBlendMode = big.NewInt(1 << 12) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldInReplyTo = big.NewInt(1 << 13) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldReplyType = big.NewInt(1 << 14) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldUserID = big.NewInt(1 << 15) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldGroupID = big.NewInt(1 << 16) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldCreatedBy = big.NewInt(1 << 17) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldUpdatedBy = big.NewInt(1 << 18) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldActions = big.NewInt(1 << 19) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldColor = big.NewInt(1 << 20) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldInteriorColor = big.NewInt(1 << 21) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldStrokeWidth = big.NewInt(1 << 22) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldBorderStyle = big.NewInt(1 << 23) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFontFamily = big.NewInt(1 << 24) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFontSize = big.NewInt(1 << 25) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFontColor = big.NewInt(1 << 26) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldTextAlign = big.NewInt(1 << 27) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFieldObjectNumber = big.NewInt(1 << 28) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFieldFamily = big.NewInt(1 << 29) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported struct { - Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef `json:"ref" url:"ref"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality `json:"identityQuality" url:"identityQuality"` - Nm *string `json:"nm,omitempty" url:"nm,omitempty"` - Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags `json:"flags" url:"flags"` - Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect `json:"rect" url:"rect"` - Contents *string `json:"contents,omitempty" url:"contents,omitempty"` - Subject *string `json:"subject,omitempty" url:"subject,omitempty"` - Author *string `json:"author,omitempty" url:"author,omitempty"` - Created *time.Time `json:"created,omitempty" url:"created,omitempty"` - Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` - BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode `json:"blendMode" url:"blendMode"` - InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` - ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` - UserID *string `json:"userId,omitempty" url:"userId,omitempty"` - GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` - CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` - Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` - RawSubtypeCode int `json:"rawSubtypeCode" url:"rawSubtypeCode"` - RawSubtypeName *string `json:"rawSubtypeName,omitempty" url:"rawSubtypeName,omitempty"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget struct { + Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef `json:"ref" url:"ref"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality `json:"identityQuality" url:"identityQuality"` + Nm *string `json:"nm,omitempty" url:"nm,omitempty"` + Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags `json:"flags" url:"flags"` + Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect `json:"rect" url:"rect"` + Contents *string `json:"contents,omitempty" url:"contents,omitempty"` + Subject *string `json:"subject,omitempty" url:"subject,omitempty"` + Author *string `json:"author,omitempty" url:"author,omitempty"` + Created *time.Time `json:"created,omitempty" url:"created,omitempty"` + Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` + BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode `json:"blendMode" url:"blendMode"` + InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` + ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` + UserID *string `json:"userId,omitempty" url:"userId,omitempty"` + GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` + CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` + Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` + Color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor `json:"color,omitempty" url:"color,omitempty"` + InteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor `json:"interiorColor,omitempty" url:"interiorColor,omitempty"` + StrokeWidth float64 `json:"strokeWidth" url:"strokeWidth"` + BorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle `json:"borderStyle" url:"borderStyle"` + FontFamily *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily `json:"fontFamily,omitempty" url:"fontFamily,omitempty"` + FontSize *float64 `json:"fontSize,omitempty" url:"fontSize,omitempty"` + FontColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor `json:"fontColor,omitempty" url:"fontColor,omitempty"` + TextAlign DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign `json:"textAlign" url:"textAlign"` + FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` + FieldFamily DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily `json:"fieldFamily" url:"fieldFamily"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -105638,168 +123232,224 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported struct rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef { if d == nil { return nil } return d.Ref } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality { if d == nil { return "" } return d.IdentityQuality } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetNm() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetNm() *string { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags { if d == nil { return nil } return d.Flags } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect { if d == nil { return nil } return d.Rect } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetContents() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetContents() *string { if d == nil { return nil } return d.Contents } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetSubject() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetSubject() *string { if d == nil { return nil } return d.Subject } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetAuthor() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetAuthor() *string { if d == nil { return nil } return d.Author } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetCreated() *time.Time { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetCreated() *time.Time { if d == nil { return nil } return d.Created } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetModified() *time.Time { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetModified() *time.Time { if d == nil { return nil } return d.Modified } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode { if d == nil { return "" } - return d.BlendMode + return d.BlendMode +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo { + if d == nil { + return nil + } + return d.InReplyTo +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType { + if d == nil { + return nil + } + return d.ReplyType +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetUserID() *string { + if d == nil { + return nil + } + return d.UserID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetGroupID() *string { + if d == nil { + return nil + } + return d.GroupID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetCreatedBy() *string { + if d == nil { + return nil + } + return d.CreatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetUpdatedBy() *string { + if d == nil { + return nil + } + return d.UpdatedBy +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetActions() *PdfAnnotationActions { + if d == nil { + return nil + } + return d.Actions +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor { + if d == nil { + return nil + } + return d.Color } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetInteriorColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor { if d == nil { return nil } - return d.InReplyTo + return d.InteriorColor } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyType { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetStrokeWidth() float64 { if d == nil { - return nil + return 0 } - return d.ReplyType + return d.StrokeWidth } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetUserID() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetBorderStyle() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle { if d == nil { - return nil + return "" } - return d.UserID + return d.BorderStyle } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetGroupID() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetFontFamily() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily { if d == nil { return nil } - return d.GroupID + return d.FontFamily } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetCreatedBy() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetFontSize() *float64 { if d == nil { return nil } - return d.CreatedBy + return d.FontSize } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetUpdatedBy() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetFontColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor { if d == nil { return nil } - return d.UpdatedBy + return d.FontColor } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetActions() *PdfAnnotationActions { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetTextAlign() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign { if d == nil { - return nil + return "" } - return d.Actions + return d.TextAlign } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetRawSubtypeCode() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetFieldObjectNumber() int { if d == nil { return 0 } - return d.RawSubtypeCode + return d.FieldObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetRawSubtypeName() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetFieldFamily() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily { if d == nil { - return nil + return "" } - return d.RawSubtypeName + return d.FieldFamily } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -105808,160 +123458,216 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) re // SetRef sets the Ref field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef) { d.Ref = ref - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldRef) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldRef) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetIndex(index int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetIndex(index int) { d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldIndex) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldIndex) } // SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality) { d.IdentityQuality = identityQuality - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldIdentityQuality) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldIdentityQuality) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetNm(nm *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetNm(nm *string) { d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldNm) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldNm) } // SetFlags sets the Flags field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) { d.Flags = flags - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldFlags) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFlags) } // SetRect sets the Rect field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) { d.Rect = rect - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldRect) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldRect) } // SetContents sets the Contents field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetContents(contents *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetContents(contents *string) { d.Contents = contents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldContents) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldContents) } // SetSubject sets the Subject field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetSubject(subject *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetSubject(subject *string) { d.Subject = subject - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldSubject) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldSubject) } // SetAuthor sets the Author field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetAuthor(author *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetAuthor(author *string) { d.Author = author - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldAuthor) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldAuthor) } // SetCreated sets the Created field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetCreated(created *time.Time) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetCreated(created *time.Time) { d.Created = created - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldCreated) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldCreated) } // SetModified sets the Modified field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetModified(modified *time.Time) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetModified(modified *time.Time) { d.Modified = modified - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldModified) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldModified) } // SetBlendMode sets the BlendMode field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode) { d.BlendMode = blendMode - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldBlendMode) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldBlendMode) } // SetInReplyTo sets the InReplyTo field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo) { d.InReplyTo = inReplyTo - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldInReplyTo) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldInReplyTo) } // SetReplyType sets the ReplyType field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyType) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType) { d.ReplyType = replyType - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldReplyType) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldReplyType) } // SetUserID sets the UserID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetUserID(userID *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetUserID(userID *string) { d.UserID = userID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldUserID) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldUserID) } // SetGroupID sets the GroupID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetGroupID(groupID *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetGroupID(groupID *string) { d.GroupID = groupID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldGroupID) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldGroupID) } // SetCreatedBy sets the CreatedBy field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetCreatedBy(createdBy *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetCreatedBy(createdBy *string) { d.CreatedBy = createdBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldCreatedBy) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldCreatedBy) } // SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetUpdatedBy(updatedBy *string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetUpdatedBy(updatedBy *string) { d.UpdatedBy = updatedBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldUpdatedBy) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldUpdatedBy) } // SetActions sets the Actions field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetActions(actions *PdfAnnotationActions) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetActions(actions *PdfAnnotationActions) { d.Actions = actions - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldActions) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldActions) } -// SetRawSubtypeCode sets the RawSubtypeCode field and marks it as non-optional; +// SetColor sets the Color field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetRawSubtypeCode(rawSubtypeCode int) { - d.RawSubtypeCode = rawSubtypeCode - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldRawSubtypeCode) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetColor(color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor) { + d.Color = color + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldColor) } -// SetRawSubtypeName sets the RawSubtypeName field and marks it as non-optional; +// SetInteriorColor sets the InteriorColor field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) SetRawSubtypeName(rawSubtypeName *string) { - d.RawSubtypeName = rawSubtypeName - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFieldRawSubtypeName) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetInteriorColor(interiorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor) { + d.InteriorColor = interiorColor + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldInteriorColor) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) UnmarshalJSON(data []byte) error { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported +// SetStrokeWidth sets the StrokeWidth field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetStrokeWidth(strokeWidth float64) { + d.StrokeWidth = strokeWidth + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldStrokeWidth) +} + +// SetBorderStyle sets the BorderStyle field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetBorderStyle(borderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle) { + d.BorderStyle = borderStyle + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldBorderStyle) +} + +// SetFontFamily sets the FontFamily field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetFontFamily(fontFamily *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily) { + d.FontFamily = fontFamily + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFontFamily) +} + +// SetFontSize sets the FontSize field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetFontSize(fontSize *float64) { + d.FontSize = fontSize + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFontSize) +} + +// SetFontColor sets the FontColor field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetFontColor(fontColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor) { + d.FontColor = fontColor + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFontColor) +} + +// SetTextAlign sets the TextAlign field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetTextAlign(textAlign DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign) { + d.TextAlign = textAlign + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldTextAlign) +} + +// SetFieldObjectNumber sets the FieldObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetFieldObjectNumber(fieldObjectNumber int) { + d.FieldObjectNumber = fieldObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFieldObjectNumber) +} + +// SetFieldFamily sets the FieldFamily field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetFieldFamily(fieldFamily DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily) { + d.FieldFamily = fieldFamily + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFieldFamily) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) UnmarshalJSON(data []byte) error { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget var unmarshaler = struct { embed Created *internal.DateTime `json:"created,omitempty"` @@ -105972,7 +123678,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) Un if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported(unmarshaler.embed) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget(unmarshaler.embed) d.Created = unmarshaler.Created.TimePtr() d.Modified = unmarshaler.Modified.TimePtr() extraProperties, err := internal.ExtractExtraProperties(data, *d) @@ -105984,8 +123690,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) Un return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget var marshaler = struct { embed Created *internal.DateTime `json:"created,omitempty"` @@ -105999,7 +123705,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) Ma return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) String() string { if d == nil { return "" } @@ -106014,84 +123720,268 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported) St return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode string +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode = "normal" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode = "multiply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode = "screen" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode = "overlay" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode = "darken" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode = "lighten" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode = "color-dodge" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode = "color-burn" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode = "hard-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode = "soft-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode = "difference" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode = "exclusion" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode = "hue" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode = "saturation" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode = "color" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode = "luminosity" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode = "normal" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode = "multiply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode = "screen" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode = "overlay" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode = "darken" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode = "lighten" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode = "color-dodge" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode = "color-burn" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode = "hard-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode = "soft-light" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode = "difference" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode = "exclusion" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode = "hue" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode = "saturation" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode = "color" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode = "luminosity" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode, error) { switch s { case "normal": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeNormal, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeNormal, nil case "multiply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeMultiply, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeMultiply, nil case "screen": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeScreen, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeScreen, nil case "overlay": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeOverlay, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeOverlay, nil case "darken": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeDarken, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeDarken, nil case "lighten": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeLighten, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeLighten, nil case "color-dodge": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeColorDodge, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeColorDodge, nil case "color-burn": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeColorBurn, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeColorBurn, nil case "hard-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeHardLight, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeHardLight, nil case "soft-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeSoftLight, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeSoftLight, nil case "difference": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeDifference, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeDifference, nil case "exclusion": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeExclusion, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeExclusion, nil case "hue": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeHue, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeHue, nil case "saturation": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeSaturation, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeSaturation, nil case "color": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeColor, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeColor, nil case "luminosity": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendModeLuminosity, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeLuminosity, nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyleSolid DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle = "solid" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyleDashed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle = "dashed" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyleBeveled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle = "beveled" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyleInset DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle = "inset" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyleFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle, error) { + switch s { + case "solid": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyleSolid, nil + case "dashed": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyleDashed, nil + case "beveled": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyleBeveled, nil + case "inset": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyleInset, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle { return &d } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldInvisible = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldHidden = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldPrint = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldNoZoom = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldNoRotate = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldNoView = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldReadOnly = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldLocked = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldToggleNoView = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldLockedContents = big.NewInt(1 << 9) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColorFieldB = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor struct { + R int `json:"r" url:"r"` + G int `json:"g" url:"g"` + B int `json:"b" url:"b"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor) GetR() int { + if d == nil { + return 0 + } + return d.R +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor) GetG() int { + if d == nil { + return 0 + } + return d.G +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor) GetB() int { + if d == nil { + return 0 + } + return d.B +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetR sets the R field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor) SetR(r int) { + d.R = r + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColorFieldR) +} + +// SetG sets the G field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor) SetG(g int) { + d.G = g + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColorFieldG) +} + +// SetB sets the B field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor) SetB(b int) { + d.B = b + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColorFieldB) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyText DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily = "text" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyCheckbox DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily = "checkbox" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyRadio DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily = "radio" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyCombobox DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily = "combobox" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyListbox DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily = "listbox" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyPushbutton DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily = "pushbutton" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilySignature DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily = "signature" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily = "unknown" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily, error) { + switch s { + case "text": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyText, nil + case "checkbox": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyCheckbox, nil + case "radio": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyRadio, nil + case "combobox": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyCombobox, nil + case "listbox": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyListbox, nil + case "pushbutton": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyPushbutton, nil + case "signature": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilySignature, nil + case "unknown": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyUnknown, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldInvisible = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldHidden = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldPrint = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldNoZoom = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldNoRotate = big.NewInt(1 << 4) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldNoView = big.NewInt(1 << 5) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldReadOnly = big.NewInt(1 << 6) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldLocked = big.NewInt(1 << 7) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldToggleNoView = big.NewInt(1 << 8) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldLockedContents = big.NewInt(1 << 9) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags struct { Invisible bool `json:"invisible" url:"invisible"` Hidden bool `json:"hidden" url:"hidden"` Print bool `json:"print" url:"print"` @@ -106110,84 +124000,84 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags st rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) GetInvisible() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) GetInvisible() bool { if d == nil { return false } return d.Invisible } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) GetHidden() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) GetHidden() bool { if d == nil { return false } return d.Hidden } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) GetPrint() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) GetPrint() bool { if d == nil { return false } return d.Print } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) GetNoZoom() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) GetNoZoom() bool { if d == nil { return false } return d.NoZoom } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) GetNoRotate() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) GetNoRotate() bool { if d == nil { return false } return d.NoRotate } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) GetNoView() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) GetNoView() bool { if d == nil { return false } return d.NoView } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) GetReadOnly() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) GetReadOnly() bool { if d == nil { return false } return d.ReadOnly } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) GetLocked() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) GetLocked() bool { if d == nil { return false } return d.Locked } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) GetToggleNoView() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) GetToggleNoView() bool { if d == nil { return false } return d.ToggleNoView } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) GetLockedContents() bool { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) GetLockedContents() bool { if d == nil { return false } return d.LockedContents } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -106196,81 +124086,81 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlag // SetInvisible sets the Invisible field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) SetInvisible(invisible bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) SetInvisible(invisible bool) { d.Invisible = invisible - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldInvisible) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldInvisible) } // SetHidden sets the Hidden field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) SetHidden(hidden bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) SetHidden(hidden bool) { d.Hidden = hidden - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldHidden) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldHidden) } // SetPrint sets the Print field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) SetPrint(print bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) SetPrint(print bool) { d.Print = print - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldPrint) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldPrint) } // SetNoZoom sets the NoZoom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) SetNoZoom(noZoom bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) SetNoZoom(noZoom bool) { d.NoZoom = noZoom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldNoZoom) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldNoZoom) } // SetNoRotate sets the NoRotate field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) SetNoRotate(noRotate bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) SetNoRotate(noRotate bool) { d.NoRotate = noRotate - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldNoRotate) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldNoRotate) } // SetNoView sets the NoView field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) SetNoView(noView bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) SetNoView(noView bool) { d.NoView = noView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldNoView) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldNoView) } // SetReadOnly sets the ReadOnly field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) SetReadOnly(readOnly bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) SetReadOnly(readOnly bool) { d.ReadOnly = readOnly - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldReadOnly) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldReadOnly) } // SetLocked sets the Locked field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) SetLocked(locked bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) SetLocked(locked bool) { d.Locked = locked - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldLocked) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldLocked) } // SetToggleNoView sets the ToggleNoView field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) SetToggleNoView(toggleNoView bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) SetToggleNoView(toggleNoView bool) { d.ToggleNoView = toggleNoView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldToggleNoView) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldToggleNoView) } // SetLockedContents sets the LockedContents field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) SetLockedContents(lockedContents bool) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) SetLockedContents(lockedContents bool) { d.LockedContents = lockedContents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlagsFieldLockedContents) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldLockedContents) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -106280,8 +124170,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlag return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags var marshaler = struct { embed }{ @@ -106291,7 +124181,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlag return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) String() string { if d == nil { return "" } @@ -106306,66 +124196,240 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlag return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality string +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColorFieldB = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor struct { + R int `json:"r" url:"r"` + G int `json:"g" url:"g"` + B int `json:"b" url:"b"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor) GetR() int { + if d == nil { + return 0 + } + return d.R +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor) GetG() int { + if d == nil { + return 0 + } + return d.G +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor) GetB() int { + if d == nil { + return 0 + } + return d.B +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetR sets the R field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor) SetR(r int) { + d.R = r + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColorFieldR) +} + +// SetG sets the G field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor) SetG(g int) { + d.G = g + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColorFieldG) +} + +// SetB sets the B field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor) SetB(b int) { + d.B = b + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColorFieldB) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality = "durable" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality = "weak" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyCourier DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily = "courier" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyCourierBold DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily = "courier-bold" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyCourierBoldOblique DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily = "courier-bold-oblique" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyCourierOblique DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily = "courier-oblique" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyHelvetica DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily = "helvetica" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyHelveticaBold DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily = "helvetica-bold" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyHelveticaBoldOblique DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily = "helvetica-bold-oblique" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyHelveticaOblique DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily = "helvetica-oblique" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyTimesRoman DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily = "times-roman" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyTimesBold DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily = "times-bold" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyTimesBoldItalic DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily = "times-bold-italic" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyTimesItalic DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily = "times-italic" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilySymbol DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily = "symbol" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyZapfDingbats DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily = "zapf-dingbats" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality, error) { +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily, error) { + switch s { + case "courier": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyCourier, nil + case "courier-bold": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyCourierBold, nil + case "courier-bold-oblique": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyCourierBoldOblique, nil + case "courier-oblique": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyCourierOblique, nil + case "helvetica": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyHelvetica, nil + case "helvetica-bold": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyHelveticaBold, nil + case "helvetica-bold-oblique": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyHelveticaBoldOblique, nil + case "helvetica-oblique": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyHelveticaOblique, nil + case "times-roman": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyTimesRoman, nil + case "times-bold": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyTimesBold, nil + case "times-bold-italic": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyTimesBoldItalic, nil + case "times-italic": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyTimesItalic, nil + case "symbol": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilySymbol, nil + case "zapf-dingbats": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyZapfDingbats, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality = "durable" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality = "weak" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality, error) { switch s { case "durable": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQualityDurable, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQualityDurable, nil case "weak": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQualityWeak, nil + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQualityWeak, nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality { return &d } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo struct { Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo) GetKind() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber { if d == nil { return nil } return d.ObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex { if d == nil { return nil } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo) UnmarshalJSON(data []byte) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -106378,19 +124442,19 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInRe } switch unmarshaler.Kind { case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber) if err := json.Unmarshal(data, &value); err != nil { return err } d.ObjectNumber = value case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm) if err := json.Unmarshal(data, &value); err != nil { return err } d.Nm = value case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -106400,7 +124464,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInRe return nil } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -106419,13 +124483,13 @@ func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInRep return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex) error +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) error } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToVisitor) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToVisitor) error { if d.ObjectNumber != nil { return visitor.VisitObjectNumber(d.ObjectNumber) } @@ -106438,7 +124502,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInRe return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo) validate() error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -106479,15 +124543,15 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInRe } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -106496,35 +124560,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyT rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision { if d == nil { return nil } return d.Revision } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -106533,32 +124597,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInRe // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex) SetIndex(index int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) SetIndex(index int) { d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexFieldIndex) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexFieldIndex) } // SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) { d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexFieldRevision) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexFieldRevision) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -106568,8 +124632,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInRe return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex var marshaler = struct { embed }{ @@ -106579,7 +124643,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInRe return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) String() string { if d == nil { return "" } @@ -106595,12 +124659,12 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInRe } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision struct { DocSessionID string `json:"docSessionId" url:"docSessionId"` PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Generation int `json:"generation" url:"generation"` @@ -106612,35 +124676,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyT rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) GetDocSessionID() string { if d == nil { return "" } return d.DocSessionID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision) GetGeneration() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) GetGeneration() int { if d == nil { return 0 } return d.Generation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -106649,32 +124713,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInRe // SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision) SetDocSessionID(docSessionID string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) SetDocSessionID(docSessionID string) { d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevisionFieldDocSessionID) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevisionFieldDocSessionID) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevisionFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevisionFieldPageObjectNumber) } // SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision) SetGeneration(generation int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) SetGeneration(generation int) { d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevisionFieldGeneration) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevisionFieldGeneration) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -106684,8 +124748,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInRe return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision var marshaler = struct { embed }{ @@ -106695,7 +124759,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInRe return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) String() string { if d == nil { return "" } @@ -106711,11 +124775,11 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInRe } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNmFieldNm = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Nm string `json:"nm" url:"nm"` @@ -106726,28 +124790,28 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyT rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm) GetNm() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm) GetNm() string { if d == nil { return "" } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -106756,25 +124820,25 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInRe // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNmFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNmFieldPageObjectNumber) } // SetNm sets the Nm field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm) SetNm(nm string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm) SetNm(nm string) { d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNmFieldNm) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNmFieldNm) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -106784,8 +124848,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInRe return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm var marshaler = struct { embed }{ @@ -106795,7 +124859,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInRe return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm) String() string { if d == nil { return "" } @@ -106811,11 +124875,11 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInRe } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` @@ -106826,55 +124890,171 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyT rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumberFieldPageObjectNumber) +} + +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColorFieldR = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColorFieldG = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColorFieldB = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor struct { + R int `json:"r" url:"r"` + G int `json:"g" url:"g"` + B int `json:"b" url:"b"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor) GetR() int { if d == nil { return 0 } - return d.PageObjectNumber + return d.R } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor) GetG() int { if d == nil { return 0 } - return d.AnnotObjectNumber + return d.G } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor) GetB() int { + if d == nil { + return 0 + } + return d.B +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetR sets the R field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumberFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor) SetR(r int) { + d.R = r + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColorFieldR) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetG sets the G field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumberFieldAnnotObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor) SetG(g int) { + d.G = g + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColorFieldG) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber +// SetB sets the B field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor) SetB(b int) { + d.B = b + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColorFieldB) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -106884,8 +125064,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInRe return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor var marshaler = struct { embed }{ @@ -106895,7 +125075,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInRe return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor) String() string { if d == nil { return "" } @@ -106911,13 +125091,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInRe } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRectFieldRight = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRectFieldTop = big.NewInt(1 << 3) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRectFieldLeft = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRectFieldBottom = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRectFieldRight = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRectFieldTop = big.NewInt(1 << 3) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect struct { Left float64 `json:"left" url:"left"` Bottom float64 `json:"bottom" url:"bottom"` Right float64 `json:"right" url:"right"` @@ -106930,42 +125110,42 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect str rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) GetLeft() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) GetLeft() float64 { if d == nil { return 0 } return d.Left } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) GetBottom() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) GetBottom() float64 { if d == nil { return 0 } return d.Bottom } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) GetRight() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) GetRight() float64 { if d == nil { return 0 } return d.Right } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) GetTop() float64 { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) GetTop() float64 { if d == nil { return 0 } return d.Top } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -106974,39 +125154,39 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect // SetLeft sets the Left field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) SetLeft(left float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) SetLeft(left float64) { d.Left = left - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRectFieldLeft) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRectFieldLeft) } // SetBottom sets the Bottom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) SetBottom(bottom float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) SetBottom(bottom float64) { d.Bottom = bottom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRectFieldBottom) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRectFieldBottom) } // SetRight sets the Right field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) SetRight(right float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) SetRight(right float64) { d.Right = right - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRectFieldRight) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRectFieldRight) } // SetTop sets the Top field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) SetTop(top float64) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) SetTop(top float64) { d.Top = top - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRectFieldTop) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRectFieldTop) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -107016,8 +125196,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect var marshaler = struct { embed }{ @@ -107027,7 +125207,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) String() string { if d == nil { return "" } @@ -107042,44 +125222,44 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef struct { Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex + ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber + Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm + Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef) GetKind() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber { if d == nil { return nil } return d.ObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm { if d == nil { return nil } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex { if d == nil { return nil } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef) UnmarshalJSON(data []byte) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -107092,19 +125272,19 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef) } switch unmarshaler.Kind { case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber) if err := json.Unmarshal(data, &value); err != nil { return err } d.ObjectNumber = value case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm) if err := json.Unmarshal(data, &value); err != nil { return err } d.Nm = value case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) + value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -107114,7 +125294,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef) return nil } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -107133,13 +125313,13 @@ func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef) return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) error +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefVisitor interface { + VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber) error + VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm) error + VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) error } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefVisitor) error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefVisitor) error { if d.ObjectNumber != nil { return visitor.VisitObjectNumber(d.ObjectNumber) } @@ -107152,7 +125332,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef) return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef) validate() error { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -107193,15 +125373,15 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef) } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexFieldIndex = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexFieldRevision = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Index int `json:"index" url:"index"` + Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision `json:"revision" url:"revision"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -107210,35 +125390,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) GetIndex() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) GetIndex() int { if d == nil { return 0 } return d.Index } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision { if d == nil { return nil } return d.Revision } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -107247,32 +125427,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefI // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexFieldPageObjectNumber) } // SetIndex sets the Index field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) SetIndex(index int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) SetIndex(index int) { d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexFieldIndex) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexFieldIndex) } // SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) { d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexFieldRevision) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexFieldRevision) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -107282,8 +125462,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefI return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex var marshaler = struct { embed }{ @@ -107293,7 +125473,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefI return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) String() string { if d == nil { return "" } @@ -107309,12 +125489,12 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefI } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision struct { DocSessionID string `json:"docSessionId" url:"docSessionId"` PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Generation int `json:"generation" url:"generation"` @@ -107326,35 +125506,35 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) GetDocSessionID() string { if d == nil { return "" } return d.DocSessionID } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) GetGeneration() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) GetGeneration() int { if d == nil { return 0 } return d.Generation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -107363,32 +125543,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefI // SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) SetDocSessionID(docSessionID string) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) SetDocSessionID(docSessionID string) { d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevisionFieldDocSessionID) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevisionFieldDocSessionID) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevisionFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevisionFieldPageObjectNumber) } // SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) SetGeneration(generation int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) SetGeneration(generation int) { d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevisionFieldGeneration) + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevisionFieldGeneration) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision(value) + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -107398,8 +125578,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefI return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision var marshaler = struct { embed }{ @@ -107409,7 +125589,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefI return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) String() string { if d == nil { return "" } @@ -107425,11 +125605,11 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefI } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNmFieldNm = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNmFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNmFieldNm = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm struct { +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Nm string `json:"nm" url:"nm"` @@ -107440,55 +125620,318 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm st rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm) GetNm() string { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm) GetNm() string { if d == nil { return "" } return d.Nm } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNmFieldPageObjectNumber) +} + +// SetNm sets the Nm field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm) SetNm(nm string) { + d.Nm = nm + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNmFieldNm) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) +) + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumberFieldPageObjectNumber) +} + +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumberFieldAnnotObjectNumber) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType = "reply" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType = "group" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType, error) { + switch s { + case "reply": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyTypeReply, nil + case "group": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyTypeGroup, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType { + return &d +} + +type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign string + +const ( + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlignLeft DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign = "left" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlignCenter DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign = "center" + DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlignRight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign = "right" +) + +func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlignFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign, error) { + switch s { + case "left": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlignLeft, nil + case "center": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlignCenter, nil + case "right": + return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlignRight, nil + } + var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign { + return &d +} + +var ( + docAnnotationsListAll200ResponsePagesItemPageStateFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemPageStateFieldRevision = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemPageStateFieldWeakAnnotationState = big.NewInt(1 << 2) +) + +type DocAnnotationsListAll200ResponsePagesItemPageState struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Revision *DocAnnotationsListAll200ResponsePagesItemPageStateRevision `json:"revision" url:"revision"` + WeakAnnotationState *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState `json:"weakAnnotationState" url:"weakAnnotationState"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsListAll200ResponsePagesItemPageState) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsListAll200ResponsePagesItemPageState) GetRevision() *DocAnnotationsListAll200ResponsePagesItemPageStateRevision { + if d == nil { + return nil + } + return d.Revision +} + +func (d *DocAnnotationsListAll200ResponsePagesItemPageState) GetWeakAnnotationState() *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState { + if d == nil { + return nil + } + return d.WeakAnnotationState +} + +func (d *DocAnnotationsListAll200ResponsePagesItemPageState) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsListAll200ResponsePagesItemPageState) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemPageState) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsListAll200ResponsePagesItemPageStateFieldPageObjectNumber) +} + +// SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNmFieldPageObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemPageState) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) { + d.Revision = revision + d.require(docAnnotationsListAll200ResponsePagesItemPageStateFieldRevision) } -// SetNm sets the Nm field and marks it as non-optional; +// SetWeakAnnotationState sets the WeakAnnotationState field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNmFieldNm) +func (d *DocAnnotationsListAll200ResponsePagesItemPageState) SetWeakAnnotationState(weakAnnotationState *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState) { + d.WeakAnnotationState = weakAnnotationState + d.require(docAnnotationsListAll200ResponsePagesItemPageStateFieldWeakAnnotationState) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm +func (d *DocAnnotationsListAll200ResponsePagesItemPageState) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemPageState var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm(value) + *d = DocAnnotationsListAll200ResponsePagesItemPageState(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -107498,8 +125941,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefN return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm +func (d *DocAnnotationsListAll200ResponsePagesItemPageState) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemPageState var marshaler = struct { embed }{ @@ -107509,7 +125952,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefN return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemPageState) String() string { if d == nil { return "" } @@ -107525,13 +125968,15 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefN } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemPageStateRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsListAll200ResponsePagesItemPageStateRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsListAll200ResponsePagesItemPageStateRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` +type DocAnnotationsListAll200ResponsePagesItemPageStateRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -107540,55 +125985,69 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjec rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) GetGeneration() int { if d == nil { return 0 } - return d.AnnotObjectNumber + return d.Generation } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsListAll200ResponsePagesItemPageStateRevisionFieldDocSessionID) +} + // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumberFieldPageObjectNumber) + d.require(docAnnotationsListAll200ResponsePagesItemPageStateRevisionFieldPageObjectNumber) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumberFieldAnnotObjectNumber) +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsListAll200ResponsePagesItemPageStateRevisionFieldGeneration) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemPageStateRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber(value) + *d = DocAnnotationsListAll200ResponsePagesItemPageStateRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -107598,8 +126057,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefO return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemPageStateRevision var marshaler = struct { embed }{ @@ -107609,7 +126068,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefO return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber) String() string { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) String() string { if d == nil { return "" } @@ -107624,549 +126083,620 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefO return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyType string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyType = "reply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyType = "group" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyType, error) { - switch s { - case "reply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyTypeReply, nil - case "group": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyTypeGroup, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyType - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyType { - return &d -} - -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldRef = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldIndex = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldIdentityQuality = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldNm = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFlags = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldRect = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldContents = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldSubject = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldAuthor = big.NewInt(1 << 9) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldCreated = big.NewInt(1 << 10) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldModified = big.NewInt(1 << 11) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldBlendMode = big.NewInt(1 << 12) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldInReplyTo = big.NewInt(1 << 13) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldReplyType = big.NewInt(1 << 14) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldUserID = big.NewInt(1 << 15) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldGroupID = big.NewInt(1 << 16) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldCreatedBy = big.NewInt(1 << 17) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldUpdatedBy = big.NewInt(1 << 18) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldActions = big.NewInt(1 << 19) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldColor = big.NewInt(1 << 20) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldInteriorColor = big.NewInt(1 << 21) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldStrokeWidth = big.NewInt(1 << 22) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldBorderStyle = big.NewInt(1 << 23) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFontFamily = big.NewInt(1 << 24) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFontSize = big.NewInt(1 << 25) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFontColor = big.NewInt(1 << 26) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldTextAlign = big.NewInt(1 << 27) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFieldObjectNumber = big.NewInt(1 << 28) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFieldFamily = big.NewInt(1 << 29) -) - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget struct { - Ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef `json:"ref" url:"ref"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - IdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality `json:"identityQuality" url:"identityQuality"` - Nm *string `json:"nm,omitempty" url:"nm,omitempty"` - Flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags `json:"flags" url:"flags"` - Rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect `json:"rect" url:"rect"` - Contents *string `json:"contents,omitempty" url:"contents,omitempty"` - Subject *string `json:"subject,omitempty" url:"subject,omitempty"` - Author *string `json:"author,omitempty" url:"author,omitempty"` - Created *time.Time `json:"created,omitempty" url:"created,omitempty"` - Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` - BlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode `json:"blendMode" url:"blendMode"` - InReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo `json:"inReplyTo,omitempty" url:"inReplyTo,omitempty"` - ReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType `json:"replyType,omitempty" url:"replyType,omitempty"` - UserID *string `json:"userId,omitempty" url:"userId,omitempty"` - GroupID *string `json:"groupId,omitempty" url:"groupId,omitempty"` - CreatedBy *string `json:"createdBy,omitempty" url:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty" url:"updatedBy,omitempty"` - Actions *PdfAnnotationActions `json:"actions,omitempty" url:"actions,omitempty"` - Color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor `json:"color,omitempty" url:"color,omitempty"` - InteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor `json:"interiorColor,omitempty" url:"interiorColor,omitempty"` - StrokeWidth float64 `json:"strokeWidth" url:"strokeWidth"` - BorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle `json:"borderStyle" url:"borderStyle"` - FontFamily *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily `json:"fontFamily,omitempty" url:"fontFamily,omitempty"` - FontSize *float64 `json:"fontSize,omitempty" url:"fontSize,omitempty"` - FontColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor `json:"fontColor,omitempty" url:"fontColor,omitempty"` - TextAlign DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign `json:"textAlign" url:"textAlign"` - FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` - FieldFamily DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily `json:"fieldFamily" url:"fieldFamily"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetRef() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef { - if d == nil { - return nil - } - return d.Ref -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber -} +type DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState struct { + Kind string + Unknown *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown + Known *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetIndex() int { - if d == nil { - return 0 - } - return d.Index + rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetIdentityQuality() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState) GetKind() string { if d == nil { return "" } - return d.IdentityQuality + return d.Kind } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetNm() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState) GetUnknown() *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown { if d == nil { return nil } - return d.Nm + return d.Unknown } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetFlags() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState) GetKnown() *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown { if d == nil { return nil } - return d.Flags + return d.Known } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetRect() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect { - if d == nil { - return nil +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` } - return d.Rect + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "unknown": + value := new(DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Unknown = value + case "known": + value := new(DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Known = value + } + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetContents() *string { - if d == nil { - return nil +func (d DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err } - return d.Contents + if d.Unknown != nil { + return internal.MarshalJSONWithExtraProperty(d.Unknown, "kind", "unknown") + } + if d.Known != nil { + return internal.MarshalJSONWithExtraProperty(d.Known, "kind", "known") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetSubject() *string { - if d == nil { - return nil - } - return d.Subject +type DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateVisitor interface { + VisitUnknown(*DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown) error + VisitKnown(*DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown) error } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetAuthor() *string { - if d == nil { - return nil +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState) Accept(visitor DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateVisitor) error { + if d.Unknown != nil { + return visitor.VisitUnknown(d.Unknown) } - return d.Author + if d.Known != nil { + return visitor.VisitKnown(d.Known) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetCreated() *time.Time { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState) validate() error { if d == nil { - return nil + return fmt.Errorf("type %T is nil", d) } - return d.Created + var fields []string + if d.Unknown != nil { + fields = append(fields, "unknown") + } + if d.Known != nil { + fields = append(fields, "known") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetModified() *time.Time { - if d == nil { - return nil - } - return d.Modified +var ( + docAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnownFieldHasAnyWeakAnnotations = big.NewInt(1 << 0) +) + +type DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown struct { + HasAnyWeakAnnotations bool `json:"hasAnyWeakAnnotations" url:"hasAnyWeakAnnotations"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetBlendMode() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown) GetHasAnyWeakAnnotations() bool { if d == nil { - return "" + return false } - return d.BlendMode + return d.HasAnyWeakAnnotations } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetInReplyTo() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.InReplyTo + return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetReplyType() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType { - if d == nil { - return nil +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.ReplyType + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetUserID() *string { - if d == nil { - return nil - } - return d.UserID +// SetHasAnyWeakAnnotations sets the HasAnyWeakAnnotations field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown) SetHasAnyWeakAnnotations(hasAnyWeakAnnotations bool) { + d.HasAnyWeakAnnotations = hasAnyWeakAnnotations + d.require(docAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnownFieldHasAnyWeakAnnotations) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetGroupID() *string { - if d == nil { - return nil +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - return d.GroupID + *d = DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetCreatedBy() *string { - if d == nil { - return nil +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return d.CreatedBy + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetUpdatedBy() *string { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown) String() string { if d == nil { - return nil + return "" } - return d.UpdatedBy + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetActions() *PdfAnnotationActions { - if d == nil { - return nil - } - return d.Actions +type DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown struct { + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.Color + return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetInteriorColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor { - if d == nil { - return nil +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.InteriorColor + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetStrokeWidth() float64 { - if d == nil { - return 0 +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - return d.StrokeWidth + *d = DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetBorderStyle() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle { - if d == nil { - return "" +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return d.BorderStyle + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetFontFamily() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily { +func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown) String() string { if d == nil { - return nil + return "" } - return d.FontFamily + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetFontSize() *float64 { - if d == nil { - return nil - } - return d.FontSize +var ( + docAnnotationsListAll404ResponseFieldName = big.NewInt(1 << 0) + docAnnotationsListAll404ResponseFieldCode = big.NewInt(1 << 1) + docAnnotationsListAll404ResponseFieldMessage = big.NewInt(1 << 2) + docAnnotationsListAll404ResponseFieldDetails = big.NewInt(1 << 3) +) + +type DocAnnotationsListAll404Response struct { + Name DocAnnotationsListAll404ResponseName `json:"name" url:"name"` + Code DocAnnotationsListAll404ResponseCode `json:"code" url:"code"` + Message string `json:"message" url:"message"` + Details map[string]any `json:"details,omitempty" url:"details,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetFontColor() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor { +func (d *DocAnnotationsListAll404Response) GetName() DocAnnotationsListAll404ResponseName { if d == nil { - return nil + return "" } - return d.FontColor + return d.Name } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetTextAlign() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign { +func (d *DocAnnotationsListAll404Response) GetCode() DocAnnotationsListAll404ResponseCode { if d == nil { return "" } - return d.TextAlign + return d.Code } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetFieldObjectNumber() int { +func (d *DocAnnotationsListAll404Response) GetMessage() string { if d == nil { - return 0 + return "" } - return d.FieldObjectNumber + return d.Message } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetFieldFamily() DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily { +func (d *DocAnnotationsListAll404Response) GetDetails() map[string]any { if d == nil { - return "" + return nil } - return d.FieldFamily + return d.Details } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsListAll404Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) require(field *big.Int) { +func (d *DocAnnotationsListAll404Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetRef sets the Ref field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetRef(ref *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef) { - d.Ref = ref - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldRef) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldPageObjectNumber) +func (d *DocAnnotationsListAll404Response) SetName(name DocAnnotationsListAll404ResponseName) { + d.Name = name + d.require(docAnnotationsListAll404ResponseFieldName) } -// SetIndex sets the Index field and marks it as non-optional; +// SetCode sets the Code field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldIndex) +func (d *DocAnnotationsListAll404Response) SetCode(code DocAnnotationsListAll404ResponseCode) { + d.Code = code + d.require(docAnnotationsListAll404ResponseFieldCode) } -// SetIdentityQuality sets the IdentityQuality field and marks it as non-optional; +// SetMessage sets the Message field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetIdentityQuality(identityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality) { - d.IdentityQuality = identityQuality - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldIdentityQuality) +func (d *DocAnnotationsListAll404Response) SetMessage(message string) { + d.Message = message + d.require(docAnnotationsListAll404ResponseFieldMessage) } -// SetNm sets the Nm field and marks it as non-optional; +// SetDetails sets the Details field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetNm(nm *string) { - d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldNm) +func (d *DocAnnotationsListAll404Response) SetDetails(details map[string]any) { + d.Details = details + d.require(docAnnotationsListAll404ResponseFieldDetails) } -// SetFlags sets the Flags field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetFlags(flags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) { - d.Flags = flags - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFlags) +func (d *DocAnnotationsListAll404Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll404Response + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsListAll404Response(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -// SetRect sets the Rect field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetRect(rect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) { - d.Rect = rect - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldRect) +func (d *DocAnnotationsListAll404Response) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll404Response + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -// SetContents sets the Contents field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetContents(contents *string) { - d.Contents = contents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldContents) +func (d *DocAnnotationsListAll404Response) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -// SetSubject sets the Subject field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetSubject(subject *string) { - d.Subject = subject - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldSubject) -} +type DocAnnotationsListAll404ResponseCode string -// SetAuthor sets the Author field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetAuthor(author *string) { - d.Author = author - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldAuthor) -} +const ( + DocAnnotationsListAll404ResponseCodeUnknown DocAnnotationsListAll404ResponseCode = "Unknown" + DocAnnotationsListAll404ResponseCodeInvalidArg DocAnnotationsListAll404ResponseCode = "InvalidArg" + DocAnnotationsListAll404ResponseCodeDocNotOpen DocAnnotationsListAll404ResponseCode = "DocNotOpen" + DocAnnotationsListAll404ResponseCodeDocOpenFailed DocAnnotationsListAll404ResponseCode = "DocOpenFailed" + DocAnnotationsListAll404ResponseCodeDocPasswordRequired DocAnnotationsListAll404ResponseCode = "DocPasswordRequired" + DocAnnotationsListAll404ResponseCodeDocPasswordIncorrect DocAnnotationsListAll404ResponseCode = "DocPasswordIncorrect" + DocAnnotationsListAll404ResponseCodeSharePasswordRequired DocAnnotationsListAll404ResponseCode = "SharePasswordRequired" + DocAnnotationsListAll404ResponseCodeAborted DocAnnotationsListAll404ResponseCode = "Aborted" + DocAnnotationsListAll404ResponseCodeNetwork DocAnnotationsListAll404ResponseCode = "Network" + DocAnnotationsListAll404ResponseCodeUnauthenticated DocAnnotationsListAll404ResponseCode = "Unauthenticated" + DocAnnotationsListAll404ResponseCodeForbidden DocAnnotationsListAll404ResponseCode = "Forbidden" + DocAnnotationsListAll404ResponseCodeNotFound DocAnnotationsListAll404ResponseCode = "NotFound" + DocAnnotationsListAll404ResponseCodeWireFormat DocAnnotationsListAll404ResponseCode = "WireFormat" + DocAnnotationsListAll404ResponseCodeRuntimeUnavailable DocAnnotationsListAll404ResponseCode = "RuntimeUnavailable" + DocAnnotationsListAll404ResponseCodeInvalidReference DocAnnotationsListAll404ResponseCode = "InvalidReference" + DocAnnotationsListAll404ResponseCodeWeakAnnotationSessionConflict DocAnnotationsListAll404ResponseCode = "WeakAnnotationSessionConflict" + DocAnnotationsListAll404ResponseCodeLayerVersionConflict DocAnnotationsListAll404ResponseCode = "LayerVersionConflict" + DocAnnotationsListAll404ResponseCodeNotImplemented DocAnnotationsListAll404ResponseCode = "NotImplemented" + DocAnnotationsListAll404ResponseCodeMalformedPdf DocAnnotationsListAll404ResponseCode = "MalformedPdf" + DocAnnotationsListAll404ResponseCodeSigningPending DocAnnotationsListAll404ResponseCode = "SigningPending" + DocAnnotationsListAll404ResponseCodeSigningExpired DocAnnotationsListAll404ResponseCode = "SigningExpired" + DocAnnotationsListAll404ResponseCodeSigningVersionMismatch DocAnnotationsListAll404ResponseCode = "SigningVersionMismatch" + DocAnnotationsListAll404ResponseCodeSignatureRefused DocAnnotationsListAll404ResponseCode = "SignatureRefused" + DocAnnotationsListAll404ResponseCodeProtectedDocument DocAnnotationsListAll404ResponseCode = "ProtectedDocument" + DocAnnotationsListAll404ResponseCodeStaleBase DocAnnotationsListAll404ResponseCode = "StaleBase" +) -// SetCreated sets the Created field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetCreated(created *time.Time) { - d.Created = created - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldCreated) +func NewDocAnnotationsListAll404ResponseCodeFromString(s string) (DocAnnotationsListAll404ResponseCode, error) { + switch s { + case "Unknown": + return DocAnnotationsListAll404ResponseCodeUnknown, nil + case "InvalidArg": + return DocAnnotationsListAll404ResponseCodeInvalidArg, nil + case "DocNotOpen": + return DocAnnotationsListAll404ResponseCodeDocNotOpen, nil + case "DocOpenFailed": + return DocAnnotationsListAll404ResponseCodeDocOpenFailed, nil + case "DocPasswordRequired": + return DocAnnotationsListAll404ResponseCodeDocPasswordRequired, nil + case "DocPasswordIncorrect": + return DocAnnotationsListAll404ResponseCodeDocPasswordIncorrect, nil + case "SharePasswordRequired": + return DocAnnotationsListAll404ResponseCodeSharePasswordRequired, nil + case "Aborted": + return DocAnnotationsListAll404ResponseCodeAborted, nil + case "Network": + return DocAnnotationsListAll404ResponseCodeNetwork, nil + case "Unauthenticated": + return DocAnnotationsListAll404ResponseCodeUnauthenticated, nil + case "Forbidden": + return DocAnnotationsListAll404ResponseCodeForbidden, nil + case "NotFound": + return DocAnnotationsListAll404ResponseCodeNotFound, nil + case "WireFormat": + return DocAnnotationsListAll404ResponseCodeWireFormat, nil + case "RuntimeUnavailable": + return DocAnnotationsListAll404ResponseCodeRuntimeUnavailable, nil + case "InvalidReference": + return DocAnnotationsListAll404ResponseCodeInvalidReference, nil + case "WeakAnnotationSessionConflict": + return DocAnnotationsListAll404ResponseCodeWeakAnnotationSessionConflict, nil + case "LayerVersionConflict": + return DocAnnotationsListAll404ResponseCodeLayerVersionConflict, nil + case "NotImplemented": + return DocAnnotationsListAll404ResponseCodeNotImplemented, nil + case "MalformedPdf": + return DocAnnotationsListAll404ResponseCodeMalformedPdf, nil + case "SigningPending": + return DocAnnotationsListAll404ResponseCodeSigningPending, nil + case "SigningExpired": + return DocAnnotationsListAll404ResponseCodeSigningExpired, nil + case "SigningVersionMismatch": + return DocAnnotationsListAll404ResponseCodeSigningVersionMismatch, nil + case "SignatureRefused": + return DocAnnotationsListAll404ResponseCodeSignatureRefused, nil + case "ProtectedDocument": + return DocAnnotationsListAll404ResponseCodeProtectedDocument, nil + case "StaleBase": + return DocAnnotationsListAll404ResponseCodeStaleBase, nil + } + var t DocAnnotationsListAll404ResponseCode + return "", fmt.Errorf("%s is not a valid %T", s, t) } -// SetModified sets the Modified field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetModified(modified *time.Time) { - d.Modified = modified - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldModified) +func (d DocAnnotationsListAll404ResponseCode) Ptr() *DocAnnotationsListAll404ResponseCode { + return &d } -// SetBlendMode sets the BlendMode field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetBlendMode(blendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode) { - d.BlendMode = blendMode - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldBlendMode) -} +type DocAnnotationsListAll404ResponseName string -// SetInReplyTo sets the InReplyTo field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetInReplyTo(inReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo) { - d.InReplyTo = inReplyTo - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldInReplyTo) -} +const ( + DocAnnotationsListAll404ResponseNameEngineError DocAnnotationsListAll404ResponseName = "EngineError" +) -// SetReplyType sets the ReplyType field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetReplyType(replyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType) { - d.ReplyType = replyType - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldReplyType) +func NewDocAnnotationsListAll404ResponseNameFromString(s string) (DocAnnotationsListAll404ResponseName, error) { + switch s { + case "EngineError": + return DocAnnotationsListAll404ResponseNameEngineError, nil + } + var t DocAnnotationsListAll404ResponseName + return "", fmt.Errorf("%s is not a valid %T", s, t) } -// SetUserID sets the UserID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetUserID(userID *string) { - d.UserID = userID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldUserID) +func (d DocAnnotationsListAll404ResponseName) Ptr() *DocAnnotationsListAll404ResponseName { + return &d } -// SetGroupID sets the GroupID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetGroupID(groupID *string) { - d.GroupID = groupID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldGroupID) -} +var ( + docAnnotationsListAll409ResponseFieldName = big.NewInt(1 << 0) + docAnnotationsListAll409ResponseFieldCode = big.NewInt(1 << 1) + docAnnotationsListAll409ResponseFieldMessage = big.NewInt(1 << 2) + docAnnotationsListAll409ResponseFieldDetails = big.NewInt(1 << 3) +) -// SetCreatedBy sets the CreatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetCreatedBy(createdBy *string) { - d.CreatedBy = createdBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldCreatedBy) -} +type DocAnnotationsListAll409Response struct { + Name DocAnnotationsListAll409ResponseName `json:"name" url:"name"` + Code DocAnnotationsListAll409ResponseCode `json:"code" url:"code"` + Message string `json:"message" url:"message"` + Details map[string]any `json:"details,omitempty" url:"details,omitempty"` -// SetUpdatedBy sets the UpdatedBy field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetUpdatedBy(updatedBy *string) { - d.UpdatedBy = updatedBy - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldUpdatedBy) -} + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` -// SetActions sets the Actions field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetActions(actions *PdfAnnotationActions) { - d.Actions = actions - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldActions) + extraProperties map[string]interface{} + rawJSON json.RawMessage } -// SetColor sets the Color field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetColor(color *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor) { - d.Color = color - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldColor) +func (d *DocAnnotationsListAll409Response) GetName() DocAnnotationsListAll409ResponseName { + if d == nil { + return "" + } + return d.Name } -// SetInteriorColor sets the InteriorColor field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetInteriorColor(interiorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor) { - d.InteriorColor = interiorColor - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldInteriorColor) +func (d *DocAnnotationsListAll409Response) GetCode() DocAnnotationsListAll409ResponseCode { + if d == nil { + return "" + } + return d.Code } -// SetStrokeWidth sets the StrokeWidth field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetStrokeWidth(strokeWidth float64) { - d.StrokeWidth = strokeWidth - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldStrokeWidth) +func (d *DocAnnotationsListAll409Response) GetMessage() string { + if d == nil { + return "" + } + return d.Message } -// SetBorderStyle sets the BorderStyle field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetBorderStyle(borderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle) { - d.BorderStyle = borderStyle - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldBorderStyle) +func (d *DocAnnotationsListAll409Response) GetDetails() map[string]any { + if d == nil { + return nil + } + return d.Details } -// SetFontFamily sets the FontFamily field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetFontFamily(fontFamily *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily) { - d.FontFamily = fontFamily - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFontFamily) +func (d *DocAnnotationsListAll409Response) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties } -// SetFontSize sets the FontSize field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetFontSize(fontSize *float64) { - d.FontSize = fontSize - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFontSize) +func (d *DocAnnotationsListAll409Response) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) } -// SetFontColor sets the FontColor field and marks it as non-optional; +// SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetFontColor(fontColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor) { - d.FontColor = fontColor - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFontColor) +func (d *DocAnnotationsListAll409Response) SetName(name DocAnnotationsListAll409ResponseName) { + d.Name = name + d.require(docAnnotationsListAll409ResponseFieldName) } -// SetTextAlign sets the TextAlign field and marks it as non-optional; +// SetCode sets the Code field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetTextAlign(textAlign DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign) { - d.TextAlign = textAlign - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldTextAlign) +func (d *DocAnnotationsListAll409Response) SetCode(code DocAnnotationsListAll409ResponseCode) { + d.Code = code + d.require(docAnnotationsListAll409ResponseFieldCode) } -// SetFieldObjectNumber sets the FieldObjectNumber field and marks it as non-optional; +// SetMessage sets the Message field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetFieldObjectNumber(fieldObjectNumber int) { - d.FieldObjectNumber = fieldObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFieldObjectNumber) +func (d *DocAnnotationsListAll409Response) SetMessage(message string) { + d.Message = message + d.require(docAnnotationsListAll409ResponseFieldMessage) } -// SetFieldFamily sets the FieldFamily field and marks it as non-optional; +// SetDetails sets the Details field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) SetFieldFamily(fieldFamily DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily) { - d.FieldFamily = fieldFamily - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFieldFamily) +func (d *DocAnnotationsListAll409Response) SetDetails(details map[string]any) { + d.Details = details + d.require(docAnnotationsListAll409ResponseFieldDetails) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) UnmarshalJSON(data []byte) error { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget - var unmarshaler = struct { - embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` - }{ - embed: embed(*d), - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +func (d *DocAnnotationsListAll409Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsListAll409Response + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget(unmarshaler.embed) - d.Created = unmarshaler.Created.TimePtr() - d.Modified = unmarshaler.Modified.TimePtr() + *d = DocAnnotationsListAll409Response(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -108176,22 +126706,18 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) Unmarsh return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget +func (d *DocAnnotationsListAll409Response) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsListAll409Response var marshaler = struct { embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), - Created: internal.NewOptionalDateTime(d.Created), - Modified: internal.NewOptionalDateTime(d.Modified), + embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) String() string { +func (d *DocAnnotationsListAll409Response) String() string { if d == nil { return "" } @@ -108206,200 +126732,191 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget) String( return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode string +type DocAnnotationsListAll409ResponseCode string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeNormal DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode = "normal" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeMultiply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode = "multiply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeScreen DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode = "screen" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeOverlay DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode = "overlay" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeDarken DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode = "darken" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeLighten DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode = "lighten" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeColorDodge DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode = "color-dodge" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeColorBurn DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode = "color-burn" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeHardLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode = "hard-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeSoftLight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode = "soft-light" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeDifference DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode = "difference" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeExclusion DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode = "exclusion" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeHue DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode = "hue" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeSaturation DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode = "saturation" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeColor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode = "color" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeLuminosity DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode = "luminosity" + DocAnnotationsListAll409ResponseCodeUnknown DocAnnotationsListAll409ResponseCode = "Unknown" + DocAnnotationsListAll409ResponseCodeInvalidArg DocAnnotationsListAll409ResponseCode = "InvalidArg" + DocAnnotationsListAll409ResponseCodeDocNotOpen DocAnnotationsListAll409ResponseCode = "DocNotOpen" + DocAnnotationsListAll409ResponseCodeDocOpenFailed DocAnnotationsListAll409ResponseCode = "DocOpenFailed" + DocAnnotationsListAll409ResponseCodeDocPasswordRequired DocAnnotationsListAll409ResponseCode = "DocPasswordRequired" + DocAnnotationsListAll409ResponseCodeDocPasswordIncorrect DocAnnotationsListAll409ResponseCode = "DocPasswordIncorrect" + DocAnnotationsListAll409ResponseCodeSharePasswordRequired DocAnnotationsListAll409ResponseCode = "SharePasswordRequired" + DocAnnotationsListAll409ResponseCodeAborted DocAnnotationsListAll409ResponseCode = "Aborted" + DocAnnotationsListAll409ResponseCodeNetwork DocAnnotationsListAll409ResponseCode = "Network" + DocAnnotationsListAll409ResponseCodeUnauthenticated DocAnnotationsListAll409ResponseCode = "Unauthenticated" + DocAnnotationsListAll409ResponseCodeForbidden DocAnnotationsListAll409ResponseCode = "Forbidden" + DocAnnotationsListAll409ResponseCodeNotFound DocAnnotationsListAll409ResponseCode = "NotFound" + DocAnnotationsListAll409ResponseCodeWireFormat DocAnnotationsListAll409ResponseCode = "WireFormat" + DocAnnotationsListAll409ResponseCodeRuntimeUnavailable DocAnnotationsListAll409ResponseCode = "RuntimeUnavailable" + DocAnnotationsListAll409ResponseCodeInvalidReference DocAnnotationsListAll409ResponseCode = "InvalidReference" + DocAnnotationsListAll409ResponseCodeWeakAnnotationSessionConflict DocAnnotationsListAll409ResponseCode = "WeakAnnotationSessionConflict" + DocAnnotationsListAll409ResponseCodeLayerVersionConflict DocAnnotationsListAll409ResponseCode = "LayerVersionConflict" + DocAnnotationsListAll409ResponseCodeNotImplemented DocAnnotationsListAll409ResponseCode = "NotImplemented" + DocAnnotationsListAll409ResponseCodeMalformedPdf DocAnnotationsListAll409ResponseCode = "MalformedPdf" + DocAnnotationsListAll409ResponseCodeSigningPending DocAnnotationsListAll409ResponseCode = "SigningPending" + DocAnnotationsListAll409ResponseCodeSigningExpired DocAnnotationsListAll409ResponseCode = "SigningExpired" + DocAnnotationsListAll409ResponseCodeSigningVersionMismatch DocAnnotationsListAll409ResponseCode = "SigningVersionMismatch" + DocAnnotationsListAll409ResponseCodeSignatureRefused DocAnnotationsListAll409ResponseCode = "SignatureRefused" + DocAnnotationsListAll409ResponseCodeProtectedDocument DocAnnotationsListAll409ResponseCode = "ProtectedDocument" + DocAnnotationsListAll409ResponseCodeStaleBase DocAnnotationsListAll409ResponseCode = "StaleBase" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode, error) { +func NewDocAnnotationsListAll409ResponseCodeFromString(s string) (DocAnnotationsListAll409ResponseCode, error) { switch s { - case "normal": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeNormal, nil - case "multiply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeMultiply, nil - case "screen": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeScreen, nil - case "overlay": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeOverlay, nil - case "darken": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeDarken, nil - case "lighten": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeLighten, nil - case "color-dodge": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeColorDodge, nil - case "color-burn": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeColorBurn, nil - case "hard-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeHardLight, nil - case "soft-light": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeSoftLight, nil - case "difference": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeDifference, nil - case "exclusion": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeExclusion, nil - case "hue": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeHue, nil - case "saturation": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeSaturation, nil - case "color": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeColor, nil - case "luminosity": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendModeLuminosity, nil + case "Unknown": + return DocAnnotationsListAll409ResponseCodeUnknown, nil + case "InvalidArg": + return DocAnnotationsListAll409ResponseCodeInvalidArg, nil + case "DocNotOpen": + return DocAnnotationsListAll409ResponseCodeDocNotOpen, nil + case "DocOpenFailed": + return DocAnnotationsListAll409ResponseCodeDocOpenFailed, nil + case "DocPasswordRequired": + return DocAnnotationsListAll409ResponseCodeDocPasswordRequired, nil + case "DocPasswordIncorrect": + return DocAnnotationsListAll409ResponseCodeDocPasswordIncorrect, nil + case "SharePasswordRequired": + return DocAnnotationsListAll409ResponseCodeSharePasswordRequired, nil + case "Aborted": + return DocAnnotationsListAll409ResponseCodeAborted, nil + case "Network": + return DocAnnotationsListAll409ResponseCodeNetwork, nil + case "Unauthenticated": + return DocAnnotationsListAll409ResponseCodeUnauthenticated, nil + case "Forbidden": + return DocAnnotationsListAll409ResponseCodeForbidden, nil + case "NotFound": + return DocAnnotationsListAll409ResponseCodeNotFound, nil + case "WireFormat": + return DocAnnotationsListAll409ResponseCodeWireFormat, nil + case "RuntimeUnavailable": + return DocAnnotationsListAll409ResponseCodeRuntimeUnavailable, nil + case "InvalidReference": + return DocAnnotationsListAll409ResponseCodeInvalidReference, nil + case "WeakAnnotationSessionConflict": + return DocAnnotationsListAll409ResponseCodeWeakAnnotationSessionConflict, nil + case "LayerVersionConflict": + return DocAnnotationsListAll409ResponseCodeLayerVersionConflict, nil + case "NotImplemented": + return DocAnnotationsListAll409ResponseCodeNotImplemented, nil + case "MalformedPdf": + return DocAnnotationsListAll409ResponseCodeMalformedPdf, nil + case "SigningPending": + return DocAnnotationsListAll409ResponseCodeSigningPending, nil + case "SigningExpired": + return DocAnnotationsListAll409ResponseCodeSigningExpired, nil + case "SigningVersionMismatch": + return DocAnnotationsListAll409ResponseCodeSigningVersionMismatch, nil + case "SignatureRefused": + return DocAnnotationsListAll409ResponseCodeSignatureRefused, nil + case "ProtectedDocument": + return DocAnnotationsListAll409ResponseCodeProtectedDocument, nil + case "StaleBase": + return DocAnnotationsListAll409ResponseCodeStaleBase, nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode + var t DocAnnotationsListAll409ResponseCode return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode { +func (d DocAnnotationsListAll409ResponseCode) Ptr() *DocAnnotationsListAll409ResponseCode { return &d } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle string +type DocAnnotationsListAll409ResponseName string const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyleSolid DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle = "solid" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyleDashed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle = "dashed" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyleBeveled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle = "beveled" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyleInset DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle = "inset" + DocAnnotationsListAll409ResponseNameEngineError DocAnnotationsListAll409ResponseName = "EngineError" ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyleFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle, error) { +func NewDocAnnotationsListAll409ResponseNameFromString(s string) (DocAnnotationsListAll409ResponseName, error) { switch s { - case "solid": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyleSolid, nil - case "dashed": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyleDashed, nil - case "beveled": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyleBeveled, nil - case "inset": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyleInset, nil + case "EngineError": + return DocAnnotationsListAll409ResponseNameEngineError, nil } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle + var t DocAnnotationsListAll409ResponseName return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle { +func (d DocAnnotationsListAll409ResponseName) Ptr() *DocAnnotationsListAll409ResponseName { return &d } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColorFieldR = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColorFieldG = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColorFieldB = big.NewInt(1 << 2) + docAnnotationsUpdate200ResponseFieldMeta = big.NewInt(1 << 0) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor struct { - R int `json:"r" url:"r"` - G int `json:"g" url:"g"` - B int `json:"b" url:"b"` +type DocAnnotationsUpdate200Response struct { + Meta *DocAnnotationsUpdate200ResponseMeta `json:"meta" url:"meta"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` - extraProperties map[string]interface{} - rawJSON json.RawMessage -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor) GetR() int { - if d == nil { - return 0 - } - return d.R -} + ExtraProperties map[string]interface{} `json:"-" url:"-"` -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor) GetG() int { - if d == nil { - return 0 - } - return d.G + rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor) GetB() int { +func (d *DocAnnotationsUpdate200Response) GetMeta() *DocAnnotationsUpdate200ResponseMeta { if d == nil { - return 0 + return nil } - return d.B + return d.Meta } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsUpdate200Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.extraProperties + return d.ExtraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor) require(field *big.Int) { +func (d *DocAnnotationsUpdate200Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetR sets the R field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor) SetR(r int) { - d.R = r - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColorFieldR) -} - -// SetG sets the G field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor) SetG(g int) { - d.G = g - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColorFieldG) -} - -// SetB sets the B field and marks it as non-optional; +// SetMeta sets the Meta field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor) SetB(b int) { - d.B = b - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColorFieldB) +func (d *DocAnnotationsUpdate200Response) SetMeta(meta *DocAnnotationsUpdate200ResponseMeta) { + d.Meta = meta + d.require(docAnnotationsUpdate200ResponseFieldMeta) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { +func (d *DocAnnotationsUpdate200Response) UnmarshalJSON(data []byte) error { + type embed DocAnnotationsUpdate200Response + var unmarshaler = struct { + embed + }{ + embed: embed(*d), + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor(value) + *d = DocAnnotationsUpdate200Response(unmarshaler.embed) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err } - d.extraProperties = extraProperties + d.ExtraProperties = extraProperties d.rawJSON = json.RawMessage(data) return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor +func (d *DocAnnotationsUpdate200Response) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsUpdate200Response var marshaler = struct { embed }{ embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return internal.MarshalJSONWithExtraProperties(explicitMarshaler, d.ExtraProperties) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor) String() string { +func (d *DocAnnotationsUpdate200Response) String() string { if d == nil { return "" } @@ -108414,70 +126931,14 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor) St return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyText DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily = "text" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyCheckbox DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily = "checkbox" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyRadio DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily = "radio" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyCombobox DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily = "combobox" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyListbox DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily = "listbox" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyPushbutton DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily = "pushbutton" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilySignature DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily = "signature" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyUnknown DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily = "unknown" -) - -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily, error) { - switch s { - case "text": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyText, nil - case "checkbox": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyCheckbox, nil - case "radio": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyRadio, nil - case "combobox": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyCombobox, nil - case "listbox": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyListbox, nil - case "pushbutton": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyPushbutton, nil - case "signature": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilySignature, nil - case "unknown": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamilyUnknown, nil - } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily { - return &d -} - var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldInvisible = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldHidden = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldPrint = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldNoZoom = big.NewInt(1 << 3) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldNoRotate = big.NewInt(1 << 4) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldNoView = big.NewInt(1 << 5) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldReadOnly = big.NewInt(1 << 6) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldLocked = big.NewInt(1 << 7) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldToggleNoView = big.NewInt(1 << 8) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldLockedContents = big.NewInt(1 << 9) + docAnnotationsUpdate200ResponseMetaFieldAffectedPages = big.NewInt(1 << 0) + docAnnotationsUpdate200ResponseMetaFieldCacheDelta = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags struct { - Invisible bool `json:"invisible" url:"invisible"` - Hidden bool `json:"hidden" url:"hidden"` - Print bool `json:"print" url:"print"` - NoZoom bool `json:"noZoom" url:"noZoom"` - NoRotate bool `json:"noRotate" url:"noRotate"` - NoView bool `json:"noView" url:"noView"` - ReadOnly bool `json:"readOnly" url:"readOnly"` - Locked bool `json:"locked" url:"locked"` - ToggleNoView bool `json:"toggleNoView" url:"toggleNoView"` - LockedContents bool `json:"lockedContents" url:"lockedContents"` +type DocAnnotationsUpdate200ResponseMeta struct { + AffectedPages []*DocAnnotationsUpdate200ResponseMetaAffectedPagesItem `json:"affectedPages" url:"affectedPages"` + CacheDelta *DocAnnotationsUpdate200ResponseMetaCacheDelta `json:"cacheDelta,omitempty" url:"cacheDelta,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -108486,167 +126947,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags struct rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) GetInvisible() bool { - if d == nil { - return false - } - return d.Invisible -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) GetHidden() bool { - if d == nil { - return false - } - return d.Hidden -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) GetPrint() bool { - if d == nil { - return false - } - return d.Print -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) GetNoZoom() bool { - if d == nil { - return false - } - return d.NoZoom -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) GetNoRotate() bool { - if d == nil { - return false - } - return d.NoRotate -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) GetNoView() bool { - if d == nil { - return false - } - return d.NoView -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) GetReadOnly() bool { - if d == nil { - return false - } - return d.ReadOnly -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) GetLocked() bool { - if d == nil { - return false - } - return d.Locked -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) GetToggleNoView() bool { +func (d *DocAnnotationsUpdate200ResponseMeta) GetAffectedPages() []*DocAnnotationsUpdate200ResponseMetaAffectedPagesItem { if d == nil { - return false + return nil } - return d.ToggleNoView + return d.AffectedPages } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) GetLockedContents() bool { +func (d *DocAnnotationsUpdate200ResponseMeta) GetCacheDelta() *DocAnnotationsUpdate200ResponseMetaCacheDelta { if d == nil { - return false + return nil } - return d.LockedContents + return d.CacheDelta } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsUpdate200ResponseMeta) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) require(field *big.Int) { +func (d *DocAnnotationsUpdate200ResponseMeta) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetInvisible sets the Invisible field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) SetInvisible(invisible bool) { - d.Invisible = invisible - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldInvisible) -} - -// SetHidden sets the Hidden field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) SetHidden(hidden bool) { - d.Hidden = hidden - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldHidden) -} - -// SetPrint sets the Print field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) SetPrint(print bool) { - d.Print = print - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldPrint) -} - -// SetNoZoom sets the NoZoom field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) SetNoZoom(noZoom bool) { - d.NoZoom = noZoom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldNoZoom) -} - -// SetNoRotate sets the NoRotate field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) SetNoRotate(noRotate bool) { - d.NoRotate = noRotate - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldNoRotate) -} - -// SetNoView sets the NoView field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) SetNoView(noView bool) { - d.NoView = noView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldNoView) -} - -// SetReadOnly sets the ReadOnly field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) SetReadOnly(readOnly bool) { - d.ReadOnly = readOnly - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldReadOnly) -} - -// SetLocked sets the Locked field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) SetLocked(locked bool) { - d.Locked = locked - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldLocked) -} - -// SetToggleNoView sets the ToggleNoView field and marks it as non-optional; +// SetAffectedPages sets the AffectedPages field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) SetToggleNoView(toggleNoView bool) { - d.ToggleNoView = toggleNoView - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldToggleNoView) +func (d *DocAnnotationsUpdate200ResponseMeta) SetAffectedPages(affectedPages []*DocAnnotationsUpdate200ResponseMetaAffectedPagesItem) { + d.AffectedPages = affectedPages + d.require(docAnnotationsUpdate200ResponseMetaFieldAffectedPages) } -// SetLockedContents sets the LockedContents field and marks it as non-optional; +// SetCacheDelta sets the CacheDelta field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) SetLockedContents(lockedContents bool) { - d.LockedContents = lockedContents - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlagsFieldLockedContents) +func (d *DocAnnotationsUpdate200ResponseMeta) SetCacheDelta(cacheDelta *DocAnnotationsUpdate200ResponseMetaCacheDelta) { + d.CacheDelta = cacheDelta + d.require(docAnnotationsUpdate200ResponseMetaFieldCacheDelta) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags +func (d *DocAnnotationsUpdate200ResponseMeta) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsUpdate200ResponseMeta var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags(value) + *d = DocAnnotationsUpdate200ResponseMeta(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -108656,8 +127005,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) Un return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags +func (d *DocAnnotationsUpdate200ResponseMeta) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsUpdate200ResponseMeta var marshaler = struct { embed }{ @@ -108667,7 +127016,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) Ma return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) String() string { +func (d *DocAnnotationsUpdate200ResponseMeta) String() string { if d == nil { return "" } @@ -108683,15 +127032,15 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags) St } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColorFieldR = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColorFieldG = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColorFieldB = big.NewInt(1 << 2) + docAnnotationsUpdate200ResponseMetaAffectedPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsUpdate200ResponseMetaAffectedPagesItemFieldRevision = big.NewInt(1 << 1) + docAnnotationsUpdate200ResponseMetaAffectedPagesItemFieldWeakAnnotationState = big.NewInt(1 << 2) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor struct { - R int `json:"r" url:"r"` - G int `json:"g" url:"g"` - B int `json:"b" url:"b"` +type DocAnnotationsUpdate200ResponseMetaAffectedPagesItem struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Revision *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision `json:"revision" url:"revision"` + WeakAnnotationState *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState `json:"weakAnnotationState" url:"weakAnnotationState"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -108700,69 +127049,69 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor str rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor) GetR() int { +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem) GetPageObjectNumber() int { if d == nil { return 0 } - return d.R + return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor) GetG() int { +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem) GetRevision() *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision { if d == nil { - return 0 + return nil } - return d.G + return d.Revision } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor) GetB() int { +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem) GetWeakAnnotationState() *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState { if d == nil { - return 0 + return nil } - return d.B + return d.WeakAnnotationState } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor) require(field *big.Int) { +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetR sets the R field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor) SetR(r int) { - d.R = r - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColorFieldR) +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsUpdate200ResponseMetaAffectedPagesItemFieldPageObjectNumber) } -// SetG sets the G field and marks it as non-optional; +// SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor) SetG(g int) { - d.G = g - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColorFieldG) +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem) SetRevision(revision *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision) { + d.Revision = revision + d.require(docAnnotationsUpdate200ResponseMetaAffectedPagesItemFieldRevision) } -// SetB sets the B field and marks it as non-optional; +// SetWeakAnnotationState sets the WeakAnnotationState field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor) SetB(b int) { - d.B = b - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColorFieldB) +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem) SetWeakAnnotationState(weakAnnotationState *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState) { + d.WeakAnnotationState = weakAnnotationState + d.require(docAnnotationsUpdate200ResponseMetaAffectedPagesItemFieldWeakAnnotationState) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsUpdate200ResponseMetaAffectedPagesItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor(value) + *d = DocAnnotationsUpdate200ResponseMetaAffectedPagesItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -108772,8 +127121,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsUpdate200ResponseMetaAffectedPagesItem var marshaler = struct { embed }{ @@ -108783,7 +127132,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor) String() string { +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem) String() string { if d == nil { return "" } @@ -108798,124 +127147,152 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily string - -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyCourier DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily = "courier" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyCourierBold DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily = "courier-bold" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyCourierBoldOblique DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily = "courier-bold-oblique" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyCourierOblique DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily = "courier-oblique" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyHelvetica DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily = "helvetica" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyHelveticaBold DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily = "helvetica-bold" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyHelveticaBoldOblique DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily = "helvetica-bold-oblique" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyHelveticaOblique DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily = "helvetica-oblique" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyTimesRoman DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily = "times-roman" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyTimesBold DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily = "times-bold" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyTimesBoldItalic DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily = "times-bold-italic" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyTimesItalic DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily = "times-italic" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilySymbol DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily = "symbol" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyZapfDingbats DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily = "zapf-dingbats" +var ( + docAnnotationsUpdate200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID = big.NewInt(1 << 0) + docAnnotationsUpdate200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docAnnotationsUpdate200ResponseMetaAffectedPagesItemRevisionFieldGeneration = big.NewInt(1 << 2) ) -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily, error) { - switch s { - case "courier": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyCourier, nil - case "courier-bold": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyCourierBold, nil - case "courier-bold-oblique": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyCourierBoldOblique, nil - case "courier-oblique": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyCourierOblique, nil - case "helvetica": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyHelvetica, nil - case "helvetica-bold": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyHelveticaBold, nil - case "helvetica-bold-oblique": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyHelveticaBoldOblique, nil - case "helvetica-oblique": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyHelveticaOblique, nil - case "times-roman": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyTimesRoman, nil - case "times-bold": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyTimesBold, nil - case "times-bold-italic": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyTimesBoldItalic, nil - case "times-italic": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyTimesItalic, nil - case "symbol": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilySymbol, nil - case "zapf-dingbats": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamilyZapfDingbats, nil +type DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily - return "", fmt.Errorf("%s is not a valid %T", s, t) + d.explicitFields.Or(d.explicitFields, field) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily { - return &d +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docAnnotationsUpdate200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality string +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docAnnotationsUpdate200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber) +} -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQualityDurable DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality = "durable" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQualityWeak DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality = "weak" -) +// SetGeneration sets the Generation field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docAnnotationsUpdate200ResponseMetaAffectedPagesItemRevisionFieldGeneration) +} -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQualityFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality, error) { - switch s { - case "durable": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQualityDurable, nil - case "weak": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQualityWeak, nil +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality - return "", fmt.Errorf("%s is not a valid %T", s, t) + *d = DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality { - return &d +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo struct { - Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState struct { + Kind string + Unknown *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + Known *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo) GetKind() string { +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber { - if d == nil { - return nil - } - return d.ObjectNumber -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm { +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState) GetUnknown() *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown { if d == nil { return nil } - return d.Nm + return d.Unknown } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex { +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKnown() *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown { if d == nil { return nil } - return d.Index + return d.Known } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo) UnmarshalJSON(data []byte) error { +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -108927,41 +127304,32 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo return fmt.Errorf("%T did not include discriminant kind", d) } switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm) + case "unknown": + value := new(DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) if err := json.Unmarshal(data, &value); err != nil { return err } - d.Nm = value - case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) + d.Unknown = value + case "known": + value := new(DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) if err := json.Unmarshal(data, &value); err != nil { return err } - d.Index = value + d.Known = value } d.rawJSON = json.RawMessage(data) return nil } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo) MarshalJSON() ([]byte, error) { +func (d DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Nm != nil { - return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") + if d.Unknown != nil { + return internal.MarshalJSONWithExtraProperty(d.Unknown, "kind", "unknown") } - if d.Index != nil { - return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") + if d.Known != nil { + return internal.MarshalJSONWithExtraProperty(d.Known, "kind", "known") } if len(d.rawJSON) > 0 { return d.rawJSON, nil @@ -108969,38 +127337,31 @@ func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo) return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) error +type DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor interface { + VisitUnknown(*DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) error + VisitKnown(*DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) error } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) - } - if d.Nm != nil { - return visitor.VisitNm(d.Nm) +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState) Accept(visitor DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor) error { + if d.Unknown != nil { + return visitor.VisitUnknown(d.Unknown) } - if d.Index != nil { - return visitor.VisitIndex(d.Index) + if d.Known != nil { + return visitor.VisitKnown(d.Known) } return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo) validate() error { +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Nm != nil { - fields = append(fields, "nm") + if d.Unknown != nil { + fields = append(fields, "unknown") } - if d.Index != nil { - fields = append(fields, "index") + if d.Known != nil { + fields = append(fields, "known") } if len(fields) == 0 { if d.Kind != "" { @@ -109029,15 +127390,11 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexFieldRevision = big.NewInt(1 << 2) + docAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations = big.NewInt(1 << 0) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision `json:"revision" url:"revision"` +type DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown struct { + HasAnyWeakAnnotations bool `json:"hasAnyWeakAnnotations" url:"hasAnyWeakAnnotations"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -109046,69 +127403,106 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToInde rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) GetPageObjectNumber() int { +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetHasAnyWeakAnnotations() bool { if d == nil { - return 0 + return false } - return d.PageObjectNumber + return d.HasAnyWeakAnnotations } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) GetIndex() int { +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetExtraProperties() map[string]interface{} { if d == nil { - return 0 + return nil } - return d.Index + return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision { +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetHasAnyWeakAnnotations sets the HasAnyWeakAnnotations field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) SetHasAnyWeakAnnotations(hasAnyWeakAnnotations bool) { + d.HasAnyWeakAnnotations = hasAnyWeakAnnotations + d.require(docAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations) +} + +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) String() string { if d == nil { - return nil + return "" } - return d.Revision + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) GetExtraProperties() map[string]interface{} { +type DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown struct { + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) require(field *big.Int) { +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexFieldPageObjectNumber) -} - -// SetIndex sets the Index field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexFieldIndex) -} - -// SetRevision sets the Revision field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) { - d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexFieldRevision) -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex(value) + *d = DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -109118,8 +127512,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown var marshaler = struct { embed }{ @@ -109129,7 +127523,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex) String() string { +func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) String() string { if d == nil { return "" } @@ -109145,15 +127539,21 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docAnnotationsUpdate200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) + docAnnotationsUpdate200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) + docAnnotationsUpdate200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) + docAnnotationsUpdate200ResponseMetaCacheDeltaFieldLayerVersion = big.NewInt(1 << 3) + docAnnotationsUpdate200ResponseMetaCacheDeltaFieldWorking = big.NewInt(1 << 4) + docAnnotationsUpdate200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 5) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocAnnotationsUpdate200ResponseMetaCacheDelta struct { + PreviousDocVersion int `json:"previousDocVersion" url:"previousDocVersion"` + DocVersion int `json:"docVersion" url:"docVersion"` + AnnotationsVersion *int `json:"annotationsVersion,omitempty" url:"annotationsVersion,omitempty"` + LayerVersion *int `json:"layerVersion,omitempty" url:"layerVersion,omitempty"` + Working *bool `json:"working,omitempty" url:"working,omitempty"` + Pages []*DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -109162,69 +127562,111 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToInde rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) GetDocSessionID() string { +func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) GetPreviousDocVersion() int { if d == nil { - return "" + return 0 } - return d.DocSessionID + return d.PreviousDocVersion } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) GetPageObjectNumber() int { +func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) GetDocVersion() int { if d == nil { return 0 } - return d.PageObjectNumber + return d.DocVersion } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) GetGeneration() int { +func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { if d == nil { - return 0 + return nil } - return d.Generation + return d.AnnotationsVersion } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) GetLayerVersion() *int { + if d == nil { + return nil + } + return d.LayerVersion +} + +func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) GetWorking() *bool { + if d == nil { + return nil + } + return d.Working +} + +func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) GetPages() []*DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem { + if d == nil { + return nil + } + return d.Pages +} + +func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) require(field *big.Int) { +func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// SetPreviousDocVersion sets the PreviousDocVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevisionFieldDocSessionID) +func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) SetPreviousDocVersion(previousDocVersion int) { + d.PreviousDocVersion = previousDocVersion + d.require(docAnnotationsUpdate200ResponseMetaCacheDeltaFieldPreviousDocVersion) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetDocVersion sets the DocVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevisionFieldPageObjectNumber) +func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) SetDocVersion(docVersion int) { + d.DocVersion = docVersion + d.require(docAnnotationsUpdate200ResponseMetaCacheDeltaFieldDocVersion) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetAnnotationsVersion sets the AnnotationsVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevisionFieldGeneration) +func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) SetAnnotationsVersion(annotationsVersion *int) { + d.AnnotationsVersion = annotationsVersion + d.require(docAnnotationsUpdate200ResponseMetaCacheDeltaFieldAnnotationsVersion) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision +// SetLayerVersion sets the LayerVersion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) SetLayerVersion(layerVersion *int) { + d.LayerVersion = layerVersion + d.require(docAnnotationsUpdate200ResponseMetaCacheDeltaFieldLayerVersion) +} + +// SetWorking sets the Working field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) SetWorking(working *bool) { + d.Working = working + d.require(docAnnotationsUpdate200ResponseMetaCacheDeltaFieldWorking) +} + +// SetPages sets the Pages field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) SetPages(pages []*DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem) { + d.Pages = pages + d.require(docAnnotationsUpdate200ResponseMetaCacheDeltaFieldPages) +} + +func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsUpdate200ResponseMetaCacheDelta var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision(value) + *d = DocAnnotationsUpdate200ResponseMetaCacheDelta(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -109234,8 +127676,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision +func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsUpdate200ResponseMetaCacheDelta var marshaler = struct { embed }{ @@ -109245,7 +127687,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision) String() string { +func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) String() string { if d == nil { return "" } @@ -109261,13 +127703,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNmFieldNm = big.NewInt(1 << 1) + docAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) + docAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemFieldCache = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` +type DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Cache *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache `json:"cache" url:"cache"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -109276,28 +127718,28 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm s rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm) GetPageObjectNumber() int { +func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm) GetNm() string { +func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem) GetCache() *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache { if d == nil { - return "" + return nil } - return d.Nm + return d.Cache } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm) require(field *big.Int) { +func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -109306,25 +127748,25 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNmFieldPageObjectNumber) + d.require(docAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber) } -// SetNm sets the Nm field and marks it as non-optional; +// SetCache sets the Cache field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNmFieldNm) +func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem) SetCache(cache *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache) { + d.Cache = cache + d.require(docAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemFieldCache) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm +func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm(value) + *d = DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -109334,8 +127776,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm +func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem var marshaler = struct { embed }{ @@ -109345,7 +127787,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm) String() string { +func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem) String() string { if d == nil { return "" } @@ -109361,13 +127803,13 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion = big.NewInt(1 << 0) + docAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion = big.NewInt(1 << 1) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` +type DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache struct { + ContentVersion int `json:"contentVersion" url:"contentVersion"` + AnnotationVersion int `json:"annotationVersion" url:"annotationVersion"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -109376,55 +127818,55 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObje rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber) GetPageObjectNumber() int { +func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache) GetContentVersion() int { if d == nil { return 0 } - return d.PageObjectNumber + return d.ContentVersion } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber) GetAnnotObjectNumber() int { +func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache) GetAnnotationVersion() int { if d == nil { return 0 } - return d.AnnotObjectNumber + return d.AnnotationVersion } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber) require(field *big.Int) { +func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetContentVersion sets the ContentVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumberFieldPageObjectNumber) +func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache) SetContentVersion(contentVersion int) { + d.ContentVersion = contentVersion + d.require(docAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetAnnotationVersion sets the AnnotationVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumberFieldAnnotObjectNumber) +func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache) SetAnnotationVersion(annotationVersion int) { + d.AnnotationVersion = annotationVersion + d.require(docAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber +func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber(value) + *d = DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -109434,8 +127876,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber +func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache var marshaler = struct { embed }{ @@ -109445,7 +127887,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber) String() string { +func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache) String() string { if d == nil { return "" } @@ -109461,15 +127903,17 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColorFieldR = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColorFieldG = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColorFieldB = big.NewInt(1 << 2) + docAnnotationsUpdate400ResponseFieldName = big.NewInt(1 << 0) + docAnnotationsUpdate400ResponseFieldCode = big.NewInt(1 << 1) + docAnnotationsUpdate400ResponseFieldMessage = big.NewInt(1 << 2) + docAnnotationsUpdate400ResponseFieldDetails = big.NewInt(1 << 3) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor struct { - R int `json:"r" url:"r"` - G int `json:"g" url:"g"` - B int `json:"b" url:"b"` +type DocAnnotationsUpdate400Response struct { + Name DocAnnotationsUpdate400ResponseName `json:"name" url:"name"` + Code DocAnnotationsUpdate400ResponseCode `json:"code" url:"code"` + Message string `json:"message" url:"message"` + Details map[string]any `json:"details,omitempty" url:"details,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -109478,69 +127922,83 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor) GetR() int { +func (d *DocAnnotationsUpdate400Response) GetName() DocAnnotationsUpdate400ResponseName { if d == nil { - return 0 + return "" } - return d.R + return d.Name } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor) GetG() int { +func (d *DocAnnotationsUpdate400Response) GetCode() DocAnnotationsUpdate400ResponseCode { if d == nil { - return 0 + return "" } - return d.G + return d.Code } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor) GetB() int { +func (d *DocAnnotationsUpdate400Response) GetMessage() string { if d == nil { - return 0 + return "" } - return d.B + return d.Message } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsUpdate400Response) GetDetails() map[string]any { + if d == nil { + return nil + } + return d.Details +} + +func (d *DocAnnotationsUpdate400Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor) require(field *big.Int) { +func (d *DocAnnotationsUpdate400Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetR sets the R field and marks it as non-optional; +// SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor) SetR(r int) { - d.R = r - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColorFieldR) +func (d *DocAnnotationsUpdate400Response) SetName(name DocAnnotationsUpdate400ResponseName) { + d.Name = name + d.require(docAnnotationsUpdate400ResponseFieldName) } -// SetG sets the G field and marks it as non-optional; +// SetCode sets the Code field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor) SetG(g int) { - d.G = g - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColorFieldG) +func (d *DocAnnotationsUpdate400Response) SetCode(code DocAnnotationsUpdate400ResponseCode) { + d.Code = code + d.require(docAnnotationsUpdate400ResponseFieldCode) } -// SetB sets the B field and marks it as non-optional; +// SetMessage sets the Message field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor) SetB(b int) { - d.B = b - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColorFieldB) +func (d *DocAnnotationsUpdate400Response) SetMessage(message string) { + d.Message = message + d.require(docAnnotationsUpdate400ResponseFieldMessage) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor +// SetDetails sets the Details field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocAnnotationsUpdate400Response) SetDetails(details map[string]any) { + d.Details = details + d.require(docAnnotationsUpdate400ResponseFieldDetails) +} + +func (d *DocAnnotationsUpdate400Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsUpdate400Response var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor(value) + *d = DocAnnotationsUpdate400Response(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -109550,8 +128008,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorC return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor +func (d *DocAnnotationsUpdate400Response) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsUpdate400Response var marshaler = struct { embed }{ @@ -109561,7 +128019,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorC return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor) String() string { +func (d *DocAnnotationsUpdate400Response) String() string { if d == nil { return "" } @@ -109576,18 +128034,128 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorC return fmt.Sprintf("%#v", d) } +type DocAnnotationsUpdate400ResponseCode string + +const ( + DocAnnotationsUpdate400ResponseCodeUnknown DocAnnotationsUpdate400ResponseCode = "Unknown" + DocAnnotationsUpdate400ResponseCodeInvalidArg DocAnnotationsUpdate400ResponseCode = "InvalidArg" + DocAnnotationsUpdate400ResponseCodeDocNotOpen DocAnnotationsUpdate400ResponseCode = "DocNotOpen" + DocAnnotationsUpdate400ResponseCodeDocOpenFailed DocAnnotationsUpdate400ResponseCode = "DocOpenFailed" + DocAnnotationsUpdate400ResponseCodeDocPasswordRequired DocAnnotationsUpdate400ResponseCode = "DocPasswordRequired" + DocAnnotationsUpdate400ResponseCodeDocPasswordIncorrect DocAnnotationsUpdate400ResponseCode = "DocPasswordIncorrect" + DocAnnotationsUpdate400ResponseCodeSharePasswordRequired DocAnnotationsUpdate400ResponseCode = "SharePasswordRequired" + DocAnnotationsUpdate400ResponseCodeAborted DocAnnotationsUpdate400ResponseCode = "Aborted" + DocAnnotationsUpdate400ResponseCodeNetwork DocAnnotationsUpdate400ResponseCode = "Network" + DocAnnotationsUpdate400ResponseCodeUnauthenticated DocAnnotationsUpdate400ResponseCode = "Unauthenticated" + DocAnnotationsUpdate400ResponseCodeForbidden DocAnnotationsUpdate400ResponseCode = "Forbidden" + DocAnnotationsUpdate400ResponseCodeNotFound DocAnnotationsUpdate400ResponseCode = "NotFound" + DocAnnotationsUpdate400ResponseCodeWireFormat DocAnnotationsUpdate400ResponseCode = "WireFormat" + DocAnnotationsUpdate400ResponseCodeRuntimeUnavailable DocAnnotationsUpdate400ResponseCode = "RuntimeUnavailable" + DocAnnotationsUpdate400ResponseCodeInvalidReference DocAnnotationsUpdate400ResponseCode = "InvalidReference" + DocAnnotationsUpdate400ResponseCodeWeakAnnotationSessionConflict DocAnnotationsUpdate400ResponseCode = "WeakAnnotationSessionConflict" + DocAnnotationsUpdate400ResponseCodeLayerVersionConflict DocAnnotationsUpdate400ResponseCode = "LayerVersionConflict" + DocAnnotationsUpdate400ResponseCodeNotImplemented DocAnnotationsUpdate400ResponseCode = "NotImplemented" + DocAnnotationsUpdate400ResponseCodeMalformedPdf DocAnnotationsUpdate400ResponseCode = "MalformedPdf" + DocAnnotationsUpdate400ResponseCodeSigningPending DocAnnotationsUpdate400ResponseCode = "SigningPending" + DocAnnotationsUpdate400ResponseCodeSigningExpired DocAnnotationsUpdate400ResponseCode = "SigningExpired" + DocAnnotationsUpdate400ResponseCodeSigningVersionMismatch DocAnnotationsUpdate400ResponseCode = "SigningVersionMismatch" + DocAnnotationsUpdate400ResponseCodeSignatureRefused DocAnnotationsUpdate400ResponseCode = "SignatureRefused" + DocAnnotationsUpdate400ResponseCodeProtectedDocument DocAnnotationsUpdate400ResponseCode = "ProtectedDocument" + DocAnnotationsUpdate400ResponseCodeStaleBase DocAnnotationsUpdate400ResponseCode = "StaleBase" +) + +func NewDocAnnotationsUpdate400ResponseCodeFromString(s string) (DocAnnotationsUpdate400ResponseCode, error) { + switch s { + case "Unknown": + return DocAnnotationsUpdate400ResponseCodeUnknown, nil + case "InvalidArg": + return DocAnnotationsUpdate400ResponseCodeInvalidArg, nil + case "DocNotOpen": + return DocAnnotationsUpdate400ResponseCodeDocNotOpen, nil + case "DocOpenFailed": + return DocAnnotationsUpdate400ResponseCodeDocOpenFailed, nil + case "DocPasswordRequired": + return DocAnnotationsUpdate400ResponseCodeDocPasswordRequired, nil + case "DocPasswordIncorrect": + return DocAnnotationsUpdate400ResponseCodeDocPasswordIncorrect, nil + case "SharePasswordRequired": + return DocAnnotationsUpdate400ResponseCodeSharePasswordRequired, nil + case "Aborted": + return DocAnnotationsUpdate400ResponseCodeAborted, nil + case "Network": + return DocAnnotationsUpdate400ResponseCodeNetwork, nil + case "Unauthenticated": + return DocAnnotationsUpdate400ResponseCodeUnauthenticated, nil + case "Forbidden": + return DocAnnotationsUpdate400ResponseCodeForbidden, nil + case "NotFound": + return DocAnnotationsUpdate400ResponseCodeNotFound, nil + case "WireFormat": + return DocAnnotationsUpdate400ResponseCodeWireFormat, nil + case "RuntimeUnavailable": + return DocAnnotationsUpdate400ResponseCodeRuntimeUnavailable, nil + case "InvalidReference": + return DocAnnotationsUpdate400ResponseCodeInvalidReference, nil + case "WeakAnnotationSessionConflict": + return DocAnnotationsUpdate400ResponseCodeWeakAnnotationSessionConflict, nil + case "LayerVersionConflict": + return DocAnnotationsUpdate400ResponseCodeLayerVersionConflict, nil + case "NotImplemented": + return DocAnnotationsUpdate400ResponseCodeNotImplemented, nil + case "MalformedPdf": + return DocAnnotationsUpdate400ResponseCodeMalformedPdf, nil + case "SigningPending": + return DocAnnotationsUpdate400ResponseCodeSigningPending, nil + case "SigningExpired": + return DocAnnotationsUpdate400ResponseCodeSigningExpired, nil + case "SigningVersionMismatch": + return DocAnnotationsUpdate400ResponseCodeSigningVersionMismatch, nil + case "SignatureRefused": + return DocAnnotationsUpdate400ResponseCodeSignatureRefused, nil + case "ProtectedDocument": + return DocAnnotationsUpdate400ResponseCodeProtectedDocument, nil + case "StaleBase": + return DocAnnotationsUpdate400ResponseCodeStaleBase, nil + } + var t DocAnnotationsUpdate400ResponseCode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsUpdate400ResponseCode) Ptr() *DocAnnotationsUpdate400ResponseCode { + return &d +} + +type DocAnnotationsUpdate400ResponseName string + +const ( + DocAnnotationsUpdate400ResponseNameEngineError DocAnnotationsUpdate400ResponseName = "EngineError" +) + +func NewDocAnnotationsUpdate400ResponseNameFromString(s string) (DocAnnotationsUpdate400ResponseName, error) { + switch s { + case "EngineError": + return DocAnnotationsUpdate400ResponseNameEngineError, nil + } + var t DocAnnotationsUpdate400ResponseName + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsUpdate400ResponseName) Ptr() *DocAnnotationsUpdate400ResponseName { + return &d +} + var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRectFieldLeft = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRectFieldBottom = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRectFieldRight = big.NewInt(1 << 2) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRectFieldTop = big.NewInt(1 << 3) + docAnnotationsUpdate404ResponseFieldName = big.NewInt(1 << 0) + docAnnotationsUpdate404ResponseFieldCode = big.NewInt(1 << 1) + docAnnotationsUpdate404ResponseFieldMessage = big.NewInt(1 << 2) + docAnnotationsUpdate404ResponseFieldDetails = big.NewInt(1 << 3) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect struct { - Left float64 `json:"left" url:"left"` - Bottom float64 `json:"bottom" url:"bottom"` - Right float64 `json:"right" url:"right"` - Top float64 `json:"top" url:"top"` +type DocAnnotationsUpdate404Response struct { + Name DocAnnotationsUpdate404ResponseName `json:"name" url:"name"` + Code DocAnnotationsUpdate404ResponseCode `json:"code" url:"code"` + Message string `json:"message" url:"message"` + Details map[string]any `json:"details,omitempty" url:"details,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -109596,83 +128164,83 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) GetLeft() float64 { +func (d *DocAnnotationsUpdate404Response) GetName() DocAnnotationsUpdate404ResponseName { if d == nil { - return 0 + return "" } - return d.Left + return d.Name } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) GetBottom() float64 { +func (d *DocAnnotationsUpdate404Response) GetCode() DocAnnotationsUpdate404ResponseCode { if d == nil { - return 0 + return "" } - return d.Bottom + return d.Code } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) GetRight() float64 { +func (d *DocAnnotationsUpdate404Response) GetMessage() string { if d == nil { - return 0 + return "" } - return d.Right + return d.Message } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) GetTop() float64 { +func (d *DocAnnotationsUpdate404Response) GetDetails() map[string]any { if d == nil { - return 0 + return nil } - return d.Top + return d.Details } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) GetExtraProperties() map[string]interface{} { +func (d *DocAnnotationsUpdate404Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) require(field *big.Int) { +func (d *DocAnnotationsUpdate404Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetLeft sets the Left field and marks it as non-optional; +// SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) SetLeft(left float64) { - d.Left = left - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRectFieldLeft) +func (d *DocAnnotationsUpdate404Response) SetName(name DocAnnotationsUpdate404ResponseName) { + d.Name = name + d.require(docAnnotationsUpdate404ResponseFieldName) } -// SetBottom sets the Bottom field and marks it as non-optional; +// SetCode sets the Code field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) SetBottom(bottom float64) { - d.Bottom = bottom - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRectFieldBottom) +func (d *DocAnnotationsUpdate404Response) SetCode(code DocAnnotationsUpdate404ResponseCode) { + d.Code = code + d.require(docAnnotationsUpdate404ResponseFieldCode) } -// SetRight sets the Right field and marks it as non-optional; +// SetMessage sets the Message field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) SetRight(right float64) { - d.Right = right - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRectFieldRight) +func (d *DocAnnotationsUpdate404Response) SetMessage(message string) { + d.Message = message + d.require(docAnnotationsUpdate404ResponseFieldMessage) } -// SetTop sets the Top field and marks it as non-optional; +// SetDetails sets the Details field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) SetTop(top float64) { - d.Top = top - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRectFieldTop) +func (d *DocAnnotationsUpdate404Response) SetDetails(details map[string]any) { + d.Details = details + d.require(docAnnotationsUpdate404ResponseFieldDetails) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect +func (d *DocAnnotationsUpdate404Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocAnnotationsUpdate404Response var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect(value) + *d = DocAnnotationsUpdate404Response(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -109682,8 +128250,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) Unm return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect +func (d *DocAnnotationsUpdate404Response) MarshalJSON() ([]byte, error) { + type embed DocAnnotationsUpdate404Response var marshaler = struct { embed }{ @@ -109693,7 +128261,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) Mar return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) String() string { +func (d *DocAnnotationsUpdate404Response) String() string { if d == nil { return "" } @@ -109708,166 +128276,130 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect) Str return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef struct { - Kind string - ObjectNumber *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber - Nm *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm - Index *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex - - rawJSON json.RawMessage -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef) GetKind() string { - if d == nil { - return "" - } - return d.Kind -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef) GetObjectNumber() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber { - if d == nil { - return nil - } - return d.ObjectNumber -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef) GetNm() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm { - if d == nil { - return nil - } - return d.Nm -} +type DocAnnotationsUpdate404ResponseCode string -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef) GetIndex() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex { - if d == nil { - return nil - } - return d.Index -} +const ( + DocAnnotationsUpdate404ResponseCodeUnknown DocAnnotationsUpdate404ResponseCode = "Unknown" + DocAnnotationsUpdate404ResponseCodeInvalidArg DocAnnotationsUpdate404ResponseCode = "InvalidArg" + DocAnnotationsUpdate404ResponseCodeDocNotOpen DocAnnotationsUpdate404ResponseCode = "DocNotOpen" + DocAnnotationsUpdate404ResponseCodeDocOpenFailed DocAnnotationsUpdate404ResponseCode = "DocOpenFailed" + DocAnnotationsUpdate404ResponseCodeDocPasswordRequired DocAnnotationsUpdate404ResponseCode = "DocPasswordRequired" + DocAnnotationsUpdate404ResponseCodeDocPasswordIncorrect DocAnnotationsUpdate404ResponseCode = "DocPasswordIncorrect" + DocAnnotationsUpdate404ResponseCodeSharePasswordRequired DocAnnotationsUpdate404ResponseCode = "SharePasswordRequired" + DocAnnotationsUpdate404ResponseCodeAborted DocAnnotationsUpdate404ResponseCode = "Aborted" + DocAnnotationsUpdate404ResponseCodeNetwork DocAnnotationsUpdate404ResponseCode = "Network" + DocAnnotationsUpdate404ResponseCodeUnauthenticated DocAnnotationsUpdate404ResponseCode = "Unauthenticated" + DocAnnotationsUpdate404ResponseCodeForbidden DocAnnotationsUpdate404ResponseCode = "Forbidden" + DocAnnotationsUpdate404ResponseCodeNotFound DocAnnotationsUpdate404ResponseCode = "NotFound" + DocAnnotationsUpdate404ResponseCodeWireFormat DocAnnotationsUpdate404ResponseCode = "WireFormat" + DocAnnotationsUpdate404ResponseCodeRuntimeUnavailable DocAnnotationsUpdate404ResponseCode = "RuntimeUnavailable" + DocAnnotationsUpdate404ResponseCodeInvalidReference DocAnnotationsUpdate404ResponseCode = "InvalidReference" + DocAnnotationsUpdate404ResponseCodeWeakAnnotationSessionConflict DocAnnotationsUpdate404ResponseCode = "WeakAnnotationSessionConflict" + DocAnnotationsUpdate404ResponseCodeLayerVersionConflict DocAnnotationsUpdate404ResponseCode = "LayerVersionConflict" + DocAnnotationsUpdate404ResponseCodeNotImplemented DocAnnotationsUpdate404ResponseCode = "NotImplemented" + DocAnnotationsUpdate404ResponseCodeMalformedPdf DocAnnotationsUpdate404ResponseCode = "MalformedPdf" + DocAnnotationsUpdate404ResponseCodeSigningPending DocAnnotationsUpdate404ResponseCode = "SigningPending" + DocAnnotationsUpdate404ResponseCodeSigningExpired DocAnnotationsUpdate404ResponseCode = "SigningExpired" + DocAnnotationsUpdate404ResponseCodeSigningVersionMismatch DocAnnotationsUpdate404ResponseCode = "SigningVersionMismatch" + DocAnnotationsUpdate404ResponseCodeSignatureRefused DocAnnotationsUpdate404ResponseCode = "SignatureRefused" + DocAnnotationsUpdate404ResponseCodeProtectedDocument DocAnnotationsUpdate404ResponseCode = "ProtectedDocument" + DocAnnotationsUpdate404ResponseCodeStaleBase DocAnnotationsUpdate404ResponseCode = "StaleBase" +) -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "nm": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Nm = value - case "index": - value := new(DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Index = value +func NewDocAnnotationsUpdate404ResponseCodeFromString(s string) (DocAnnotationsUpdate404ResponseCode, error) { + switch s { + case "Unknown": + return DocAnnotationsUpdate404ResponseCodeUnknown, nil + case "InvalidArg": + return DocAnnotationsUpdate404ResponseCodeInvalidArg, nil + case "DocNotOpen": + return DocAnnotationsUpdate404ResponseCodeDocNotOpen, nil + case "DocOpenFailed": + return DocAnnotationsUpdate404ResponseCodeDocOpenFailed, nil + case "DocPasswordRequired": + return DocAnnotationsUpdate404ResponseCodeDocPasswordRequired, nil + case "DocPasswordIncorrect": + return DocAnnotationsUpdate404ResponseCodeDocPasswordIncorrect, nil + case "SharePasswordRequired": + return DocAnnotationsUpdate404ResponseCodeSharePasswordRequired, nil + case "Aborted": + return DocAnnotationsUpdate404ResponseCodeAborted, nil + case "Network": + return DocAnnotationsUpdate404ResponseCodeNetwork, nil + case "Unauthenticated": + return DocAnnotationsUpdate404ResponseCodeUnauthenticated, nil + case "Forbidden": + return DocAnnotationsUpdate404ResponseCodeForbidden, nil + case "NotFound": + return DocAnnotationsUpdate404ResponseCodeNotFound, nil + case "WireFormat": + return DocAnnotationsUpdate404ResponseCodeWireFormat, nil + case "RuntimeUnavailable": + return DocAnnotationsUpdate404ResponseCodeRuntimeUnavailable, nil + case "InvalidReference": + return DocAnnotationsUpdate404ResponseCodeInvalidReference, nil + case "WeakAnnotationSessionConflict": + return DocAnnotationsUpdate404ResponseCodeWeakAnnotationSessionConflict, nil + case "LayerVersionConflict": + return DocAnnotationsUpdate404ResponseCodeLayerVersionConflict, nil + case "NotImplemented": + return DocAnnotationsUpdate404ResponseCodeNotImplemented, nil + case "MalformedPdf": + return DocAnnotationsUpdate404ResponseCodeMalformedPdf, nil + case "SigningPending": + return DocAnnotationsUpdate404ResponseCodeSigningPending, nil + case "SigningExpired": + return DocAnnotationsUpdate404ResponseCodeSigningExpired, nil + case "SigningVersionMismatch": + return DocAnnotationsUpdate404ResponseCodeSigningVersionMismatch, nil + case "SignatureRefused": + return DocAnnotationsUpdate404ResponseCodeSignatureRefused, nil + case "ProtectedDocument": + return DocAnnotationsUpdate404ResponseCodeProtectedDocument, nil + case "StaleBase": + return DocAnnotationsUpdate404ResponseCodeStaleBase, nil } - d.rawJSON = json.RawMessage(data) - return nil + var t DocAnnotationsUpdate404ResponseCode + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Nm != nil { - return internal.MarshalJSONWithExtraProperty(d.Nm, "kind", "nm") - } - if d.Index != nil { - return internal.MarshalJSONWithExtraProperty(d.Index, "kind", "index") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil - } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +func (d DocAnnotationsUpdate404ResponseCode) Ptr() *DocAnnotationsUpdate404ResponseCode { + return &d } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefVisitor interface { - VisitObjectNumber(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber) error - VisitNm(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm) error - VisitIndex(*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) error -} +type DocAnnotationsUpdate404ResponseName string -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef) Accept(visitor DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) - } - if d.Nm != nil { - return visitor.VisitNm(d.Nm) - } - if d.Index != nil { - return visitor.VisitIndex(d.Index) - } - return fmt.Errorf("type %T does not define a non-empty union type", d) -} +const ( + DocAnnotationsUpdate404ResponseNameEngineError DocAnnotationsUpdate404ResponseName = "EngineError" +) -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef) validate() error { - if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Nm != nil { - fields = append(fields, "nm") - } - if d.Index != nil { - fields = append(fields, "index") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } +func NewDocAnnotationsUpdate404ResponseNameFromString(s string) (DocAnnotationsUpdate404ResponseName, error) { + switch s { + case "EngineError": + return DocAnnotationsUpdate404ResponseNameEngineError, nil } - return nil + var t DocAnnotationsUpdate404ResponseName + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocAnnotationsUpdate404ResponseName) Ptr() *DocAnnotationsUpdate404ResponseName { + return &d } +type DocAnnotationsUpdateRequest = map[string]any + var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexFieldIndex = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexFieldRevision = big.NewInt(1 << 2) + docDownloadResponseFieldName = big.NewInt(1 << 0) + docDownloadResponseFieldCode = big.NewInt(1 << 1) + docDownloadResponseFieldMessage = big.NewInt(1 << 2) + docDownloadResponseFieldDetails = big.NewInt(1 << 3) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Index int `json:"index" url:"index"` - Revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision `json:"revision" url:"revision"` +type DocDownloadResponse struct { + Name DocDownloadResponseName `json:"name" url:"name"` + Code DocDownloadResponseCode `json:"code" url:"code"` + Message string `json:"message" url:"message"` + Details map[string]any `json:"details,omitempty" url:"details,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -109876,69 +128408,83 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex stru rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) GetPageObjectNumber() int { +func (d *DocDownloadResponse) GetName() DocDownloadResponseName { if d == nil { - return 0 + return "" } - return d.PageObjectNumber + return d.Name } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) GetIndex() int { +func (d *DocDownloadResponse) GetCode() DocDownloadResponseCode { if d == nil { - return 0 + return "" } - return d.Index + return d.Code } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) GetRevision() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision { +func (d *DocDownloadResponse) GetMessage() string { + if d == nil { + return "" + } + return d.Message +} + +func (d *DocDownloadResponse) GetDetails() map[string]any { if d == nil { return nil } - return d.Revision + return d.Details } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) GetExtraProperties() map[string]interface{} { +func (d *DocDownloadResponse) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) require(field *big.Int) { +func (d *DocDownloadResponse) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexFieldPageObjectNumber) +func (d *DocDownloadResponse) SetName(name DocDownloadResponseName) { + d.Name = name + d.require(docDownloadResponseFieldName) } -// SetIndex sets the Index field and marks it as non-optional; +// SetCode sets the Code field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) SetIndex(index int) { - d.Index = index - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexFieldIndex) +func (d *DocDownloadResponse) SetCode(code DocDownloadResponseCode) { + d.Code = code + d.require(docDownloadResponseFieldCode) } -// SetRevision sets the Revision field and marks it as non-optional; +// SetMessage sets the Message field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) { - d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexFieldRevision) +func (d *DocDownloadResponse) SetMessage(message string) { + d.Message = message + d.require(docDownloadResponseFieldMessage) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex +// SetDetails sets the Details field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocDownloadResponse) SetDetails(details map[string]any) { + d.Details = details + d.require(docDownloadResponseFieldDetails) +} + +func (d *DocDownloadResponse) UnmarshalJSON(data []byte) error { + type unmarshaler DocDownloadResponse var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex(value) + *d = DocDownloadResponse(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -109948,8 +128494,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex +func (d *DocDownloadResponse) MarshalJSON() ([]byte, error) { + type embed DocDownloadResponse var marshaler = struct { embed }{ @@ -109959,7 +128505,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) String() string { +func (d *DocDownloadResponse) String() string { if d == nil { return "" } @@ -109974,16 +128520,128 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex) return fmt.Sprintf("%#v", d) } +type DocDownloadResponseCode string + +const ( + DocDownloadResponseCodeUnknown DocDownloadResponseCode = "Unknown" + DocDownloadResponseCodeInvalidArg DocDownloadResponseCode = "InvalidArg" + DocDownloadResponseCodeDocNotOpen DocDownloadResponseCode = "DocNotOpen" + DocDownloadResponseCodeDocOpenFailed DocDownloadResponseCode = "DocOpenFailed" + DocDownloadResponseCodeDocPasswordRequired DocDownloadResponseCode = "DocPasswordRequired" + DocDownloadResponseCodeDocPasswordIncorrect DocDownloadResponseCode = "DocPasswordIncorrect" + DocDownloadResponseCodeSharePasswordRequired DocDownloadResponseCode = "SharePasswordRequired" + DocDownloadResponseCodeAborted DocDownloadResponseCode = "Aborted" + DocDownloadResponseCodeNetwork DocDownloadResponseCode = "Network" + DocDownloadResponseCodeUnauthenticated DocDownloadResponseCode = "Unauthenticated" + DocDownloadResponseCodeForbidden DocDownloadResponseCode = "Forbidden" + DocDownloadResponseCodeNotFound DocDownloadResponseCode = "NotFound" + DocDownloadResponseCodeWireFormat DocDownloadResponseCode = "WireFormat" + DocDownloadResponseCodeRuntimeUnavailable DocDownloadResponseCode = "RuntimeUnavailable" + DocDownloadResponseCodeInvalidReference DocDownloadResponseCode = "InvalidReference" + DocDownloadResponseCodeWeakAnnotationSessionConflict DocDownloadResponseCode = "WeakAnnotationSessionConflict" + DocDownloadResponseCodeLayerVersionConflict DocDownloadResponseCode = "LayerVersionConflict" + DocDownloadResponseCodeNotImplemented DocDownloadResponseCode = "NotImplemented" + DocDownloadResponseCodeMalformedPdf DocDownloadResponseCode = "MalformedPdf" + DocDownloadResponseCodeSigningPending DocDownloadResponseCode = "SigningPending" + DocDownloadResponseCodeSigningExpired DocDownloadResponseCode = "SigningExpired" + DocDownloadResponseCodeSigningVersionMismatch DocDownloadResponseCode = "SigningVersionMismatch" + DocDownloadResponseCodeSignatureRefused DocDownloadResponseCode = "SignatureRefused" + DocDownloadResponseCodeProtectedDocument DocDownloadResponseCode = "ProtectedDocument" + DocDownloadResponseCodeStaleBase DocDownloadResponseCode = "StaleBase" +) + +func NewDocDownloadResponseCodeFromString(s string) (DocDownloadResponseCode, error) { + switch s { + case "Unknown": + return DocDownloadResponseCodeUnknown, nil + case "InvalidArg": + return DocDownloadResponseCodeInvalidArg, nil + case "DocNotOpen": + return DocDownloadResponseCodeDocNotOpen, nil + case "DocOpenFailed": + return DocDownloadResponseCodeDocOpenFailed, nil + case "DocPasswordRequired": + return DocDownloadResponseCodeDocPasswordRequired, nil + case "DocPasswordIncorrect": + return DocDownloadResponseCodeDocPasswordIncorrect, nil + case "SharePasswordRequired": + return DocDownloadResponseCodeSharePasswordRequired, nil + case "Aborted": + return DocDownloadResponseCodeAborted, nil + case "Network": + return DocDownloadResponseCodeNetwork, nil + case "Unauthenticated": + return DocDownloadResponseCodeUnauthenticated, nil + case "Forbidden": + return DocDownloadResponseCodeForbidden, nil + case "NotFound": + return DocDownloadResponseCodeNotFound, nil + case "WireFormat": + return DocDownloadResponseCodeWireFormat, nil + case "RuntimeUnavailable": + return DocDownloadResponseCodeRuntimeUnavailable, nil + case "InvalidReference": + return DocDownloadResponseCodeInvalidReference, nil + case "WeakAnnotationSessionConflict": + return DocDownloadResponseCodeWeakAnnotationSessionConflict, nil + case "LayerVersionConflict": + return DocDownloadResponseCodeLayerVersionConflict, nil + case "NotImplemented": + return DocDownloadResponseCodeNotImplemented, nil + case "MalformedPdf": + return DocDownloadResponseCodeMalformedPdf, nil + case "SigningPending": + return DocDownloadResponseCodeSigningPending, nil + case "SigningExpired": + return DocDownloadResponseCodeSigningExpired, nil + case "SigningVersionMismatch": + return DocDownloadResponseCodeSigningVersionMismatch, nil + case "SignatureRefused": + return DocDownloadResponseCodeSignatureRefused, nil + case "ProtectedDocument": + return DocDownloadResponseCodeProtectedDocument, nil + case "StaleBase": + return DocDownloadResponseCodeStaleBase, nil + } + var t DocDownloadResponseCode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocDownloadResponseCode) Ptr() *DocDownloadResponseCode { + return &d +} + +type DocDownloadResponseName string + +const ( + DocDownloadResponseNameEngineError DocDownloadResponseName = "EngineError" +) + +func NewDocDownloadResponseNameFromString(s string) (DocDownloadResponseName, error) { + switch s { + case "EngineError": + return DocDownloadResponseNameEngineError, nil + } + var t DocDownloadResponseName + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocDownloadResponseName) Ptr() *DocDownloadResponseName { + return &d +} + var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevisionFieldGeneration = big.NewInt(1 << 2) + docFormsExportDataResponseFieldName = big.NewInt(1 << 0) + docFormsExportDataResponseFieldCode = big.NewInt(1 << 1) + docFormsExportDataResponseFieldMessage = big.NewInt(1 << 2) + docFormsExportDataResponseFieldDetails = big.NewInt(1 << 3) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocFormsExportDataResponse struct { + Name DocFormsExportDataResponseName `json:"name" url:"name"` + Code DocFormsExportDataResponseCode `json:"code" url:"code"` + Message string `json:"message" url:"message"` + Details map[string]any `json:"details,omitempty" url:"details,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -109992,69 +128650,83 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevis rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) GetDocSessionID() string { +func (d *DocFormsExportDataResponse) GetName() DocFormsExportDataResponseName { if d == nil { return "" } - return d.DocSessionID + return d.Name } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) GetPageObjectNumber() int { +func (d *DocFormsExportDataResponse) GetCode() DocFormsExportDataResponseCode { if d == nil { - return 0 + return "" } - return d.PageObjectNumber + return d.Code } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) GetGeneration() int { +func (d *DocFormsExportDataResponse) GetMessage() string { if d == nil { - return 0 + return "" } - return d.Generation + return d.Message } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) GetExtraProperties() map[string]interface{} { +func (d *DocFormsExportDataResponse) GetDetails() map[string]any { + if d == nil { + return nil + } + return d.Details +} + +func (d *DocFormsExportDataResponse) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) require(field *big.Int) { +func (d *DocFormsExportDataResponse) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevisionFieldDocSessionID) +func (d *DocFormsExportDataResponse) SetName(name DocFormsExportDataResponseName) { + d.Name = name + d.require(docFormsExportDataResponseFieldName) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetCode sets the Code field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevisionFieldPageObjectNumber) +func (d *DocFormsExportDataResponse) SetCode(code DocFormsExportDataResponseCode) { + d.Code = code + d.require(docFormsExportDataResponseFieldCode) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetMessage sets the Message field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevisionFieldGeneration) +func (d *DocFormsExportDataResponse) SetMessage(message string) { + d.Message = message + d.require(docFormsExportDataResponseFieldMessage) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision +// SetDetails sets the Details field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsExportDataResponse) SetDetails(details map[string]any) { + d.Details = details + d.require(docFormsExportDataResponseFieldDetails) +} + +func (d *DocFormsExportDataResponse) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsExportDataResponse var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision(value) + *d = DocFormsExportDataResponse(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -110064,8 +128736,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexR return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision +func (d *DocFormsExportDataResponse) MarshalJSON() ([]byte, error) { + type embed DocFormsExportDataResponse var marshaler = struct { embed }{ @@ -110075,7 +128747,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexR return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision) String() string { +func (d *DocFormsExportDataResponse) String() string { if d == nil { return "" } @@ -110090,114 +128762,128 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexR return fmt.Sprintf("%#v", d) } -var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNmFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNmFieldNm = big.NewInt(1 << 1) -) - -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Nm string `json:"nm" url:"nm"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber -} - -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm) GetNm() string { - if d == nil { - return "" - } - return d.Nm -} +type DocFormsExportDataResponseCode string -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties -} +const ( + DocFormsExportDataResponseCodeUnknown DocFormsExportDataResponseCode = "Unknown" + DocFormsExportDataResponseCodeInvalidArg DocFormsExportDataResponseCode = "InvalidArg" + DocFormsExportDataResponseCodeDocNotOpen DocFormsExportDataResponseCode = "DocNotOpen" + DocFormsExportDataResponseCodeDocOpenFailed DocFormsExportDataResponseCode = "DocOpenFailed" + DocFormsExportDataResponseCodeDocPasswordRequired DocFormsExportDataResponseCode = "DocPasswordRequired" + DocFormsExportDataResponseCodeDocPasswordIncorrect DocFormsExportDataResponseCode = "DocPasswordIncorrect" + DocFormsExportDataResponseCodeSharePasswordRequired DocFormsExportDataResponseCode = "SharePasswordRequired" + DocFormsExportDataResponseCodeAborted DocFormsExportDataResponseCode = "Aborted" + DocFormsExportDataResponseCodeNetwork DocFormsExportDataResponseCode = "Network" + DocFormsExportDataResponseCodeUnauthenticated DocFormsExportDataResponseCode = "Unauthenticated" + DocFormsExportDataResponseCodeForbidden DocFormsExportDataResponseCode = "Forbidden" + DocFormsExportDataResponseCodeNotFound DocFormsExportDataResponseCode = "NotFound" + DocFormsExportDataResponseCodeWireFormat DocFormsExportDataResponseCode = "WireFormat" + DocFormsExportDataResponseCodeRuntimeUnavailable DocFormsExportDataResponseCode = "RuntimeUnavailable" + DocFormsExportDataResponseCodeInvalidReference DocFormsExportDataResponseCode = "InvalidReference" + DocFormsExportDataResponseCodeWeakAnnotationSessionConflict DocFormsExportDataResponseCode = "WeakAnnotationSessionConflict" + DocFormsExportDataResponseCodeLayerVersionConflict DocFormsExportDataResponseCode = "LayerVersionConflict" + DocFormsExportDataResponseCodeNotImplemented DocFormsExportDataResponseCode = "NotImplemented" + DocFormsExportDataResponseCodeMalformedPdf DocFormsExportDataResponseCode = "MalformedPdf" + DocFormsExportDataResponseCodeSigningPending DocFormsExportDataResponseCode = "SigningPending" + DocFormsExportDataResponseCodeSigningExpired DocFormsExportDataResponseCode = "SigningExpired" + DocFormsExportDataResponseCodeSigningVersionMismatch DocFormsExportDataResponseCode = "SigningVersionMismatch" + DocFormsExportDataResponseCodeSignatureRefused DocFormsExportDataResponseCode = "SignatureRefused" + DocFormsExportDataResponseCodeProtectedDocument DocFormsExportDataResponseCode = "ProtectedDocument" + DocFormsExportDataResponseCodeStaleBase DocFormsExportDataResponseCode = "StaleBase" +) -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func NewDocFormsExportDataResponseCodeFromString(s string) (DocFormsExportDataResponseCode, error) { + switch s { + case "Unknown": + return DocFormsExportDataResponseCodeUnknown, nil + case "InvalidArg": + return DocFormsExportDataResponseCodeInvalidArg, nil + case "DocNotOpen": + return DocFormsExportDataResponseCodeDocNotOpen, nil + case "DocOpenFailed": + return DocFormsExportDataResponseCodeDocOpenFailed, nil + case "DocPasswordRequired": + return DocFormsExportDataResponseCodeDocPasswordRequired, nil + case "DocPasswordIncorrect": + return DocFormsExportDataResponseCodeDocPasswordIncorrect, nil + case "SharePasswordRequired": + return DocFormsExportDataResponseCodeSharePasswordRequired, nil + case "Aborted": + return DocFormsExportDataResponseCodeAborted, nil + case "Network": + return DocFormsExportDataResponseCodeNetwork, nil + case "Unauthenticated": + return DocFormsExportDataResponseCodeUnauthenticated, nil + case "Forbidden": + return DocFormsExportDataResponseCodeForbidden, nil + case "NotFound": + return DocFormsExportDataResponseCodeNotFound, nil + case "WireFormat": + return DocFormsExportDataResponseCodeWireFormat, nil + case "RuntimeUnavailable": + return DocFormsExportDataResponseCodeRuntimeUnavailable, nil + case "InvalidReference": + return DocFormsExportDataResponseCodeInvalidReference, nil + case "WeakAnnotationSessionConflict": + return DocFormsExportDataResponseCodeWeakAnnotationSessionConflict, nil + case "LayerVersionConflict": + return DocFormsExportDataResponseCodeLayerVersionConflict, nil + case "NotImplemented": + return DocFormsExportDataResponseCodeNotImplemented, nil + case "MalformedPdf": + return DocFormsExportDataResponseCodeMalformedPdf, nil + case "SigningPending": + return DocFormsExportDataResponseCodeSigningPending, nil + case "SigningExpired": + return DocFormsExportDataResponseCodeSigningExpired, nil + case "SigningVersionMismatch": + return DocFormsExportDataResponseCodeSigningVersionMismatch, nil + case "SignatureRefused": + return DocFormsExportDataResponseCodeSignatureRefused, nil + case "ProtectedDocument": + return DocFormsExportDataResponseCodeProtectedDocument, nil + case "StaleBase": + return DocFormsExportDataResponseCodeStaleBase, nil } - d.explicitFields.Or(d.explicitFields, field) + var t DocFormsExportDataResponseCode + return "", fmt.Errorf("%s is not a valid %T", s, t) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNmFieldPageObjectNumber) +func (d DocFormsExportDataResponseCode) Ptr() *DocFormsExportDataResponseCode { + return &d } -// SetNm sets the Nm field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm) SetNm(nm string) { - d.Nm = nm - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNmFieldNm) -} +type DocFormsExportDataResponseName string -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil -} +const ( + DocFormsExportDataResponseNameEngineError DocFormsExportDataResponseName = "EngineError" +) -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm - var marshaler = struct { - embed - }{ - embed: embed(*d), +func NewDocFormsExportDataResponseNameFromString(s string) (DocFormsExportDataResponseName, error) { + switch s { + case "EngineError": + return DocFormsExportDataResponseNameEngineError, nil } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + var t DocFormsExportDataResponseName + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) +func (d DocFormsExportDataResponseName) Ptr() *DocFormsExportDataResponseName { + return &d } var ( - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumberFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumberFieldAnnotObjectNumber = big.NewInt(1 << 1) + docFormsGet200ResponseFieldFormKind = big.NewInt(1 << 0) + docFormsGet200ResponseFieldNeedsAppearances = big.NewInt(1 << 1) + docFormsGet200ResponseFieldFields = big.NewInt(1 << 2) + docFormsGet200ResponseFieldCalculationOrder = big.NewInt(1 << 3) ) -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` +type DocFormsGet200Response struct { + FormKind DocFormsGet200ResponseFormKind `json:"formKind" url:"formKind"` + NeedsAppearances bool `json:"needsAppearances" url:"needsAppearances"` + Fields []*DocFormsGet200ResponseFieldsItem `json:"fields" url:"fields"` + CalculationOrder []*DocFormsGet200ResponseCalculationOrderItem `json:"calculationOrder" url:"calculationOrder"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -110206,55 +128892,83 @@ type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumb rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber) GetPageObjectNumber() int { +func (d *DocFormsGet200Response) GetFormKind() DocFormsGet200ResponseFormKind { if d == nil { - return 0 + return "" } - return d.PageObjectNumber + return d.FormKind } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber) GetAnnotObjectNumber() int { +func (d *DocFormsGet200Response) GetNeedsAppearances() bool { if d == nil { - return 0 + return false + } + return d.NeedsAppearances +} + +func (d *DocFormsGet200Response) GetFields() []*DocFormsGet200ResponseFieldsItem { + if d == nil { + return nil + } + return d.Fields +} + +func (d *DocFormsGet200Response) GetCalculationOrder() []*DocFormsGet200ResponseCalculationOrderItem { + if d == nil { + return nil } - return d.AnnotObjectNumber + return d.CalculationOrder } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber) require(field *big.Int) { +func (d *DocFormsGet200Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetFormKind sets the FormKind field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumberFieldPageObjectNumber) +func (d *DocFormsGet200Response) SetFormKind(formKind DocFormsGet200ResponseFormKind) { + d.FormKind = formKind + d.require(docFormsGet200ResponseFieldFormKind) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetNeedsAppearances sets the NeedsAppearances field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumberFieldAnnotObjectNumber) +func (d *DocFormsGet200Response) SetNeedsAppearances(needsAppearances bool) { + d.NeedsAppearances = needsAppearances + d.require(docFormsGet200ResponseFieldNeedsAppearances) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber +// SetFields sets the Fields field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200Response) SetFields(fields []*DocFormsGet200ResponseFieldsItem) { + d.Fields = fields + d.require(docFormsGet200ResponseFieldFields) +} + +// SetCalculationOrder sets the CalculationOrder field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200Response) SetCalculationOrder(calculationOrder []*DocFormsGet200ResponseCalculationOrderItem) { + d.CalculationOrder = calculationOrder + d.require(docFormsGet200ResponseFieldCalculationOrder) +} + +func (d *DocFormsGet200Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200Response var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber(value) + *d = DocFormsGet200Response(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -110264,8 +128978,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObject return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber +func (d *DocFormsGet200Response) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200Response var marshaler = struct { embed }{ @@ -110275,7 +128989,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObject return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber) String() string { +func (d *DocFormsGet200Response) String() string { if d == nil { return "" } @@ -110290,63 +129004,138 @@ func (d *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObject return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType string +type DocFormsGet200ResponseCalculationOrderItem struct { + Kind string + ObjectNumber *DocFormsGet200ResponseCalculationOrderItemObjectNumber + Fqn *DocFormsGet200ResponseCalculationOrderItemFqn -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyTypeReply DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType = "reply" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyTypeGroup DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType = "group" -) + rawJSON json.RawMessage +} -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyTypeFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType, error) { - switch s { - case "reply": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyTypeReply, nil - case "group": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyTypeGroup, nil +func (d *DocFormsGet200ResponseCalculationOrderItem) GetKind() string { + if d == nil { + return "" } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType - return "", fmt.Errorf("%s is not a valid %T", s, t) + return d.Kind } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType { - return &d +func (d *DocFormsGet200ResponseCalculationOrderItem) GetObjectNumber() *DocFormsGet200ResponseCalculationOrderItemObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber } -type DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign string +func (d *DocFormsGet200ResponseCalculationOrderItem) GetFqn() *DocFormsGet200ResponseCalculationOrderItemFqn { + if d == nil { + return nil + } + return d.Fqn +} -const ( - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlignLeft DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign = "left" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlignCenter DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign = "center" - DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlignRight DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign = "right" -) +func (d *DocFormsGet200ResponseCalculationOrderItem) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocFormsGet200ResponseCalculationOrderItemObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "fqn": + value := new(DocFormsGet200ResponseCalculationOrderItemFqn) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Fqn = value + } + d.rawJSON = json.RawMessage(data) + return nil +} -func NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlignFromString(s string) (DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign, error) { - switch s { - case "left": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlignLeft, nil - case "center": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlignCenter, nil - case "right": - return DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlignRight, nil +func (d DocFormsGet200ResponseCalculationOrderItem) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err } - var t DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign - return "", fmt.Errorf("%s is not a valid %T", s, t) + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Fqn != nil { + return internal.MarshalJSONWithExtraProperty(d.Fqn, "kind", "fqn") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign) Ptr() *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign { - return &d +type DocFormsGet200ResponseCalculationOrderItemVisitor interface { + VisitObjectNumber(*DocFormsGet200ResponseCalculationOrderItemObjectNumber) error + VisitFqn(*DocFormsGet200ResponseCalculationOrderItemFqn) error +} + +func (d *DocFormsGet200ResponseCalculationOrderItem) Accept(visitor DocFormsGet200ResponseCalculationOrderItemVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) + } + if d.Fqn != nil { + return visitor.VisitFqn(d.Fqn) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocFormsGet200ResponseCalculationOrderItem) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Fqn != nil { + fields = append(fields, "fqn") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil } var ( - docAnnotationsListAll200ResponsePagesItemPageStateFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemPageStateFieldRevision = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemPageStateFieldWeakAnnotationState = big.NewInt(1 << 2) + docFormsGet200ResponseCalculationOrderItemFqnFieldName = big.NewInt(1 << 0) ) -type DocAnnotationsListAll200ResponsePagesItemPageState struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Revision *DocAnnotationsListAll200ResponsePagesItemPageStateRevision `json:"revision" url:"revision"` - WeakAnnotationState *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState `json:"weakAnnotationState" url:"weakAnnotationState"` +type DocFormsGet200ResponseCalculationOrderItemFqn struct { + Name string `json:"name" url:"name"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -110355,69 +129144,41 @@ type DocAnnotationsListAll200ResponsePagesItemPageState struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemPageState) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber -} - -func (d *DocAnnotationsListAll200ResponsePagesItemPageState) GetRevision() *DocAnnotationsListAll200ResponsePagesItemPageStateRevision { - if d == nil { - return nil - } - return d.Revision -} - -func (d *DocAnnotationsListAll200ResponsePagesItemPageState) GetWeakAnnotationState() *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState { +func (d *DocFormsGet200ResponseCalculationOrderItemFqn) GetName() string { if d == nil { - return nil + return "" } - return d.WeakAnnotationState + return d.Name } -func (d *DocAnnotationsListAll200ResponsePagesItemPageState) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseCalculationOrderItemFqn) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemPageState) require(field *big.Int) { +func (d *DocFormsGet200ResponseCalculationOrderItemFqn) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemPageState) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemPageStateFieldPageObjectNumber) -} - -// SetRevision sets the Revision field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemPageState) SetRevision(revision *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) { - d.Revision = revision - d.require(docAnnotationsListAll200ResponsePagesItemPageStateFieldRevision) -} - -// SetWeakAnnotationState sets the WeakAnnotationState field and marks it as non-optional; +// SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemPageState) SetWeakAnnotationState(weakAnnotationState *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState) { - d.WeakAnnotationState = weakAnnotationState - d.require(docAnnotationsListAll200ResponsePagesItemPageStateFieldWeakAnnotationState) +func (d *DocFormsGet200ResponseCalculationOrderItemFqn) SetName(name string) { + d.Name = name + d.require(docFormsGet200ResponseCalculationOrderItemFqnFieldName) } -func (d *DocAnnotationsListAll200ResponsePagesItemPageState) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemPageState +func (d *DocFormsGet200ResponseCalculationOrderItemFqn) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseCalculationOrderItemFqn var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemPageState(value) + *d = DocFormsGet200ResponseCalculationOrderItemFqn(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -110427,8 +129188,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemPageState) UnmarshalJSON(data return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemPageState) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemPageState +func (d *DocFormsGet200ResponseCalculationOrderItemFqn) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseCalculationOrderItemFqn var marshaler = struct { embed }{ @@ -110438,7 +129199,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemPageState) MarshalJSON() ([]by return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemPageState) String() string { +func (d *DocFormsGet200ResponseCalculationOrderItemFqn) String() string { if d == nil { return "" } @@ -110454,15 +129215,11 @@ func (d *DocAnnotationsListAll200ResponsePagesItemPageState) String() string { } var ( - docAnnotationsListAll200ResponsePagesItemPageStateRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsListAll200ResponsePagesItemPageStateRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsListAll200ResponsePagesItemPageStateRevisionFieldGeneration = big.NewInt(1 << 2) + docFormsGet200ResponseCalculationOrderItemObjectNumberFieldFieldObjectNumber = big.NewInt(1 << 0) ) -type DocAnnotationsListAll200ResponsePagesItemPageStateRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocFormsGet200ResponseCalculationOrderItemObjectNumber struct { + FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -110471,69 +129228,41 @@ type DocAnnotationsListAll200ResponsePagesItemPageStateRevision struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) GetDocSessionID() string { - if d == nil { - return "" - } - return d.DocSessionID -} - -func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber -} - -func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) GetGeneration() int { +func (d *DocFormsGet200ResponseCalculationOrderItemObjectNumber) GetFieldObjectNumber() int { if d == nil { return 0 } - return d.Generation + return d.FieldObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseCalculationOrderItemObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) require(field *big.Int) { +func (d *DocFormsGet200ResponseCalculationOrderItemObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsListAll200ResponsePagesItemPageStateRevisionFieldDocSessionID) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsListAll200ResponsePagesItemPageStateRevisionFieldPageObjectNumber) -} - -// SetGeneration sets the Generation field and marks it as non-optional; +// SetFieldObjectNumber sets the FieldObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsListAll200ResponsePagesItemPageStateRevisionFieldGeneration) +func (d *DocFormsGet200ResponseCalculationOrderItemObjectNumber) SetFieldObjectNumber(fieldObjectNumber int) { + d.FieldObjectNumber = fieldObjectNumber + d.require(docFormsGet200ResponseCalculationOrderItemObjectNumberFieldFieldObjectNumber) } -func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemPageStateRevision +func (d *DocFormsGet200ResponseCalculationOrderItemObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseCalculationOrderItemObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll200ResponsePagesItemPageStateRevision(value) + *d = DocFormsGet200ResponseCalculationOrderItemObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -110543,8 +129272,8 @@ func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) UnmarshalJS return nil } -func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemPageStateRevision +func (d *DocFormsGet200ResponseCalculationOrderItemObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseCalculationOrderItemObjectNumber var marshaler = struct { embed }{ @@ -110554,7 +129283,7 @@ func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) MarshalJSON return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) String() string { +func (d *DocFormsGet200ResponseCalculationOrderItemObjectNumber) String() string { if d == nil { return "" } @@ -110569,125 +129298,269 @@ func (d *DocAnnotationsListAll200ResponsePagesItemPageStateRevision) String() st return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState struct { - Kind string - Unknown *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown - Known *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown +type DocFormsGet200ResponseFieldsItem struct { + Family string + Text *DocFormsGet200ResponseFieldsItemText + Checkbox *DocFormsGet200ResponseFieldsItemCheckbox + Radio *DocFormsGet200ResponseFieldsItemRadio + Combobox *DocFormsGet200ResponseFieldsItemCombobox + Listbox *DocFormsGet200ResponseFieldsItemListbox + Pushbutton *DocFormsGet200ResponseFieldsItemPushbutton + Signature *DocFormsGet200ResponseFieldsItemSignature + Unknown *DocFormsGet200ResponseFieldsItemUnknown rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState) GetKind() string { +func (d *DocFormsGet200ResponseFieldsItem) GetFamily() string { if d == nil { return "" } - return d.Kind + return d.Family } -func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState) GetUnknown() *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown { +func (d *DocFormsGet200ResponseFieldsItem) GetText() *DocFormsGet200ResponseFieldsItemText { if d == nil { return nil } - return d.Unknown + return d.Text } -func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState) GetKnown() *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown { +func (d *DocFormsGet200ResponseFieldsItem) GetCheckbox() *DocFormsGet200ResponseFieldsItemCheckbox { if d == nil { return nil } - return d.Known + return d.Checkbox } -func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState) UnmarshalJSON(data []byte) error { +func (d *DocFormsGet200ResponseFieldsItem) GetRadio() *DocFormsGet200ResponseFieldsItemRadio { + if d == nil { + return nil + } + return d.Radio +} + +func (d *DocFormsGet200ResponseFieldsItem) GetCombobox() *DocFormsGet200ResponseFieldsItemCombobox { + if d == nil { + return nil + } + return d.Combobox +} + +func (d *DocFormsGet200ResponseFieldsItem) GetListbox() *DocFormsGet200ResponseFieldsItemListbox { + if d == nil { + return nil + } + return d.Listbox +} + +func (d *DocFormsGet200ResponseFieldsItem) GetPushbutton() *DocFormsGet200ResponseFieldsItemPushbutton { + if d == nil { + return nil + } + return d.Pushbutton +} + +func (d *DocFormsGet200ResponseFieldsItem) GetSignature() *DocFormsGet200ResponseFieldsItemSignature { + if d == nil { + return nil + } + return d.Signature +} + +func (d *DocFormsGet200ResponseFieldsItem) GetUnknown() *DocFormsGet200ResponseFieldsItemUnknown { + if d == nil { + return nil + } + return d.Unknown +} + +func (d *DocFormsGet200ResponseFieldsItem) UnmarshalJSON(data []byte) error { var unmarshaler struct { - Kind string `json:"kind"` + Family string `json:"family"` } if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) + d.Family = unmarshaler.Family + if unmarshaler.Family == "" { + return fmt.Errorf("%T did not include discriminant family", d) } - switch unmarshaler.Kind { - case "unknown": - value := new(DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown) + switch unmarshaler.Family { + case "text": + value := new(DocFormsGet200ResponseFieldsItemText) if err := json.Unmarshal(data, &value); err != nil { return err } - d.Unknown = value - case "known": - value := new(DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown) + d.Text = value + case "checkbox": + value := new(DocFormsGet200ResponseFieldsItemCheckbox) if err := json.Unmarshal(data, &value); err != nil { return err } - d.Known = value + d.Checkbox = value + case "radio": + value := new(DocFormsGet200ResponseFieldsItemRadio) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Radio = value + case "combobox": + value := new(DocFormsGet200ResponseFieldsItemCombobox) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Combobox = value + case "listbox": + value := new(DocFormsGet200ResponseFieldsItemListbox) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Listbox = value + case "pushbutton": + value := new(DocFormsGet200ResponseFieldsItemPushbutton) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Pushbutton = value + case "signature": + value := new(DocFormsGet200ResponseFieldsItemSignature) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Signature = value + case "unknown": + value := new(DocFormsGet200ResponseFieldsItemUnknown) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Unknown = value + } + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d DocFormsGet200ResponseFieldsItem) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err + } + if d.Text != nil { + return internal.MarshalJSONWithExtraProperty(d.Text, "family", "text") + } + if d.Checkbox != nil { + return internal.MarshalJSONWithExtraProperty(d.Checkbox, "family", "checkbox") + } + if d.Radio != nil { + return internal.MarshalJSONWithExtraProperty(d.Radio, "family", "radio") + } + if d.Combobox != nil { + return internal.MarshalJSONWithExtraProperty(d.Combobox, "family", "combobox") + } + if d.Listbox != nil { + return internal.MarshalJSONWithExtraProperty(d.Listbox, "family", "listbox") + } + if d.Pushbutton != nil { + return internal.MarshalJSONWithExtraProperty(d.Pushbutton, "family", "pushbutton") + } + if d.Signature != nil { + return internal.MarshalJSONWithExtraProperty(d.Signature, "family", "signature") + } + if d.Unknown != nil { + return internal.MarshalJSONWithExtraProperty(d.Unknown, "family", "unknown") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +} + +type DocFormsGet200ResponseFieldsItemVisitor interface { + VisitText(*DocFormsGet200ResponseFieldsItemText) error + VisitCheckbox(*DocFormsGet200ResponseFieldsItemCheckbox) error + VisitRadio(*DocFormsGet200ResponseFieldsItemRadio) error + VisitCombobox(*DocFormsGet200ResponseFieldsItemCombobox) error + VisitListbox(*DocFormsGet200ResponseFieldsItemListbox) error + VisitPushbutton(*DocFormsGet200ResponseFieldsItemPushbutton) error + VisitSignature(*DocFormsGet200ResponseFieldsItemSignature) error + VisitUnknown(*DocFormsGet200ResponseFieldsItemUnknown) error +} + +func (d *DocFormsGet200ResponseFieldsItem) Accept(visitor DocFormsGet200ResponseFieldsItemVisitor) error { + if d.Text != nil { + return visitor.VisitText(d.Text) + } + if d.Checkbox != nil { + return visitor.VisitCheckbox(d.Checkbox) + } + if d.Radio != nil { + return visitor.VisitRadio(d.Radio) } - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err + if d.Combobox != nil { + return visitor.VisitCombobox(d.Combobox) } - if d.Unknown != nil { - return internal.MarshalJSONWithExtraProperty(d.Unknown, "kind", "unknown") + if d.Listbox != nil { + return visitor.VisitListbox(d.Listbox) } - if d.Known != nil { - return internal.MarshalJSONWithExtraProperty(d.Known, "kind", "known") + if d.Pushbutton != nil { + return visitor.VisitPushbutton(d.Pushbutton) } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil + if d.Signature != nil { + return visitor.VisitSignature(d.Signature) } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) -} - -type DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateVisitor interface { - VisitUnknown(*DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown) error - VisitKnown(*DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown) error -} - -func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState) Accept(visitor DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateVisitor) error { if d.Unknown != nil { return visitor.VisitUnknown(d.Unknown) } - if d.Known != nil { - return visitor.VisitKnown(d.Known) - } return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState) validate() error { +func (d *DocFormsGet200ResponseFieldsItem) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } var fields []string + if d.Text != nil { + fields = append(fields, "text") + } + if d.Checkbox != nil { + fields = append(fields, "checkbox") + } + if d.Radio != nil { + fields = append(fields, "radio") + } + if d.Combobox != nil { + fields = append(fields, "combobox") + } + if d.Listbox != nil { + fields = append(fields, "listbox") + } + if d.Pushbutton != nil { + fields = append(fields, "pushbutton") + } + if d.Signature != nil { + fields = append(fields, "signature") + } if d.Unknown != nil { fields = append(fields, "unknown") } - if d.Known != nil { - fields = append(fields, "known") - } if len(fields) == 0 { - if d.Kind != "" { + if d.Family != "" { if len(d.rawJSON) > 0 { return nil } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Family) } return fmt.Errorf("type %T is empty", d) } if len(fields) > 1 { return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) } - if d.Kind != "" { + if d.Family != "" { field := fields[0] - if d.Kind != field { + if d.Family != field { return fmt.Errorf( "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", d, - d.Kind, + d.Family, d, ) } @@ -110696,11 +129569,35 @@ func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState) } var ( - docAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnownFieldHasAnyWeakAnnotations = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemCheckboxFieldRef = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemCheckboxFieldFieldObjectNumber = big.NewInt(1 << 1) + docFormsGet200ResponseFieldsItemCheckboxFieldName = big.NewInt(1 << 2) + docFormsGet200ResponseFieldsItemCheckboxFieldOrigin = big.NewInt(1 << 3) + docFormsGet200ResponseFieldsItemCheckboxFieldFlags = big.NewInt(1 << 4) + docFormsGet200ResponseFieldsItemCheckboxFieldAlternateName = big.NewInt(1 << 5) + docFormsGet200ResponseFieldsItemCheckboxFieldMappingName = big.NewInt(1 << 6) + docFormsGet200ResponseFieldsItemCheckboxFieldValueEntry = big.NewInt(1 << 7) + docFormsGet200ResponseFieldsItemCheckboxFieldDefaultValueEntry = big.NewInt(1 << 8) + docFormsGet200ResponseFieldsItemCheckboxFieldActions = big.NewInt(1 << 9) + docFormsGet200ResponseFieldsItemCheckboxFieldWidgets = big.NewInt(1 << 10) + docFormsGet200ResponseFieldsItemCheckboxFieldChecked = big.NewInt(1 << 11) + docFormsGet200ResponseFieldsItemCheckboxFieldExportValue = big.NewInt(1 << 12) ) -type DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown struct { - HasAnyWeakAnnotations bool `json:"hasAnyWeakAnnotations" url:"hasAnyWeakAnnotations"` +type DocFormsGet200ResponseFieldsItemCheckbox struct { + Ref *DocFormsGet200ResponseFieldsItemCheckboxRef `json:"ref" url:"ref"` + FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` + Name string `json:"name" url:"name"` + Origin DocFormsGet200ResponseFieldsItemCheckboxOrigin `json:"origin" url:"origin"` + Flags *DocFormsGet200ResponseFieldsItemCheckboxFlags `json:"flags" url:"flags"` + AlternateName *string `json:"alternateName,omitempty" url:"alternateName,omitempty"` + MappingName *string `json:"mappingName,omitempty" url:"mappingName,omitempty"` + ValueEntry *DocFormsGet200ResponseFieldsItemCheckboxValueEntry `json:"valueEntry" url:"valueEntry"` + DefaultValueEntry *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry `json:"defaultValueEntry" url:"defaultValueEntry"` + Actions *PdfFieldActions `json:"actions,omitempty" url:"actions,omitempty"` + Widgets []*DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem `json:"widgets" url:"widgets"` + Checked bool `json:"checked" url:"checked"` + ExportValue string `json:"exportValue" url:"exportValue"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -110709,238 +129606,209 @@ type DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown rawJSON json.RawMessage } -func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown) GetHasAnyWeakAnnotations() bool { - if d == nil { - return false - } - return d.HasAnyWeakAnnotations -} - -func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemCheckbox) GetRef() *DocFormsGet200ResponseFieldsItemCheckboxRef { if d == nil { return nil } - return d.extraProperties -} - -func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetHasAnyWeakAnnotations sets the HasAnyWeakAnnotations field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown) SetHasAnyWeakAnnotations(hasAnyWeakAnnotations bool) { - d.HasAnyWeakAnnotations = hasAnyWeakAnnotations - d.require(docAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnownFieldHasAnyWeakAnnotations) + return d.Ref } -func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err +func (d *DocFormsGet200ResponseFieldsItemCheckbox) GetFieldObjectNumber() int { + if d == nil { + return 0 } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil + return d.FieldObjectNumber } -func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d *DocFormsGet200ResponseFieldsItemCheckbox) GetName() string { + if d == nil { + return "" } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return d.Name } -func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown) String() string { +func (d *DocFormsGet200ResponseFieldsItemCheckbox) GetOrigin() DocFormsGet200ResponseFieldsItemCheckboxOrigin { if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value + return "" } - return fmt.Sprintf("%#v", d) -} - -type DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown struct { - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage + return d.Origin } -func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemCheckbox) GetFlags() *DocFormsGet200ResponseFieldsItemCheckboxFlags { if d == nil { return nil } - return d.extraProperties + return d.Flags } -func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocFormsGet200ResponseFieldsItemCheckbox) GetAlternateName() *string { + if d == nil { + return nil } - d.explicitFields.Or(d.explicitFields, field) + return d.AlternateName } -func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err +func (d *DocFormsGet200ResponseFieldsItemCheckbox) GetMappingName() *string { + if d == nil { + return nil } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil + return d.MappingName } -func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d *DocFormsGet200ResponseFieldsItemCheckbox) GetValueEntry() *DocFormsGet200ResponseFieldsItemCheckboxValueEntry { + if d == nil { + return nil } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return d.ValueEntry } -func (d *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown) String() string { +func (d *DocFormsGet200ResponseFieldsItemCheckbox) GetDefaultValueEntry() *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry { if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value + return nil } - return fmt.Sprintf("%#v", d) -} - -var ( - docAnnotationsListAll404ResponseFieldName = big.NewInt(1 << 0) - docAnnotationsListAll404ResponseFieldCode = big.NewInt(1 << 1) - docAnnotationsListAll404ResponseFieldMessage = big.NewInt(1 << 2) - docAnnotationsListAll404ResponseFieldDetails = big.NewInt(1 << 3) -) - -type DocAnnotationsListAll404Response struct { - Name DocAnnotationsListAll404ResponseName `json:"name" url:"name"` - Code DocAnnotationsListAll404ResponseCode `json:"code" url:"code"` - Message string `json:"message" url:"message"` - Details map[string]any `json:"details,omitempty" url:"details,omitempty"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage + return d.DefaultValueEntry } -func (d *DocAnnotationsListAll404Response) GetName() DocAnnotationsListAll404ResponseName { +func (d *DocFormsGet200ResponseFieldsItemCheckbox) GetActions() *PdfFieldActions { if d == nil { - return "" + return nil } - return d.Name + return d.Actions } -func (d *DocAnnotationsListAll404Response) GetCode() DocAnnotationsListAll404ResponseCode { +func (d *DocFormsGet200ResponseFieldsItemCheckbox) GetWidgets() []*DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem { if d == nil { - return "" + return nil } - return d.Code + return d.Widgets } -func (d *DocAnnotationsListAll404Response) GetMessage() string { +func (d *DocFormsGet200ResponseFieldsItemCheckbox) GetChecked() bool { if d == nil { - return "" + return false } - return d.Message + return d.Checked } -func (d *DocAnnotationsListAll404Response) GetDetails() map[string]any { +func (d *DocFormsGet200ResponseFieldsItemCheckbox) GetExportValue() string { if d == nil { - return nil + return "" } - return d.Details + return d.ExportValue } -func (d *DocAnnotationsListAll404Response) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemCheckbox) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll404Response) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemCheckbox) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } +// SetRef sets the Ref field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemCheckbox) SetRef(ref *DocFormsGet200ResponseFieldsItemCheckboxRef) { + d.Ref = ref + d.require(docFormsGet200ResponseFieldsItemCheckboxFieldRef) +} + +// SetFieldObjectNumber sets the FieldObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemCheckbox) SetFieldObjectNumber(fieldObjectNumber int) { + d.FieldObjectNumber = fieldObjectNumber + d.require(docFormsGet200ResponseFieldsItemCheckboxFieldFieldObjectNumber) +} + // SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll404Response) SetName(name DocAnnotationsListAll404ResponseName) { +func (d *DocFormsGet200ResponseFieldsItemCheckbox) SetName(name string) { d.Name = name - d.require(docAnnotationsListAll404ResponseFieldName) + d.require(docFormsGet200ResponseFieldsItemCheckboxFieldName) } -// SetCode sets the Code field and marks it as non-optional; +// SetOrigin sets the Origin field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll404Response) SetCode(code DocAnnotationsListAll404ResponseCode) { - d.Code = code - d.require(docAnnotationsListAll404ResponseFieldCode) +func (d *DocFormsGet200ResponseFieldsItemCheckbox) SetOrigin(origin DocFormsGet200ResponseFieldsItemCheckboxOrigin) { + d.Origin = origin + d.require(docFormsGet200ResponseFieldsItemCheckboxFieldOrigin) } -// SetMessage sets the Message field and marks it as non-optional; +// SetFlags sets the Flags field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll404Response) SetMessage(message string) { - d.Message = message - d.require(docAnnotationsListAll404ResponseFieldMessage) +func (d *DocFormsGet200ResponseFieldsItemCheckbox) SetFlags(flags *DocFormsGet200ResponseFieldsItemCheckboxFlags) { + d.Flags = flags + d.require(docFormsGet200ResponseFieldsItemCheckboxFieldFlags) } -// SetDetails sets the Details field and marks it as non-optional; +// SetAlternateName sets the AlternateName field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll404Response) SetDetails(details map[string]any) { - d.Details = details - d.require(docAnnotationsListAll404ResponseFieldDetails) +func (d *DocFormsGet200ResponseFieldsItemCheckbox) SetAlternateName(alternateName *string) { + d.AlternateName = alternateName + d.require(docFormsGet200ResponseFieldsItemCheckboxFieldAlternateName) } -func (d *DocAnnotationsListAll404Response) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll404Response +// SetMappingName sets the MappingName field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemCheckbox) SetMappingName(mappingName *string) { + d.MappingName = mappingName + d.require(docFormsGet200ResponseFieldsItemCheckboxFieldMappingName) +} + +// SetValueEntry sets the ValueEntry field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemCheckbox) SetValueEntry(valueEntry *DocFormsGet200ResponseFieldsItemCheckboxValueEntry) { + d.ValueEntry = valueEntry + d.require(docFormsGet200ResponseFieldsItemCheckboxFieldValueEntry) +} + +// SetDefaultValueEntry sets the DefaultValueEntry field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemCheckbox) SetDefaultValueEntry(defaultValueEntry *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry) { + d.DefaultValueEntry = defaultValueEntry + d.require(docFormsGet200ResponseFieldsItemCheckboxFieldDefaultValueEntry) +} + +// SetActions sets the Actions field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemCheckbox) SetActions(actions *PdfFieldActions) { + d.Actions = actions + d.require(docFormsGet200ResponseFieldsItemCheckboxFieldActions) +} + +// SetWidgets sets the Widgets field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemCheckbox) SetWidgets(widgets []*DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem) { + d.Widgets = widgets + d.require(docFormsGet200ResponseFieldsItemCheckboxFieldWidgets) +} + +// SetChecked sets the Checked field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemCheckbox) SetChecked(checked bool) { + d.Checked = checked + d.require(docFormsGet200ResponseFieldsItemCheckboxFieldChecked) +} + +// SetExportValue sets the ExportValue field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemCheckbox) SetExportValue(exportValue string) { + d.ExportValue = exportValue + d.require(docFormsGet200ResponseFieldsItemCheckboxFieldExportValue) +} + +func (d *DocFormsGet200ResponseFieldsItemCheckbox) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemCheckbox var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll404Response(value) + *d = DocFormsGet200ResponseFieldsItemCheckbox(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -110950,8 +129818,8 @@ func (d *DocAnnotationsListAll404Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocAnnotationsListAll404Response) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll404Response +func (d *DocFormsGet200ResponseFieldsItemCheckbox) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemCheckbox var marshaler = struct { embed }{ @@ -110961,7 +129829,7 @@ func (d *DocAnnotationsListAll404Response) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll404Response) String() string { +func (d *DocFormsGet200ResponseFieldsItemCheckbox) String() string { if d == nil { return "" } @@ -110976,128 +129844,186 @@ func (d *DocAnnotationsListAll404Response) String() string { return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll404ResponseCode string +type DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry struct { + Kind string + None *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone + Scalar *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar + Array *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray + Unsupported *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported -const ( - DocAnnotationsListAll404ResponseCodeUnknown DocAnnotationsListAll404ResponseCode = "Unknown" - DocAnnotationsListAll404ResponseCodeInvalidArg DocAnnotationsListAll404ResponseCode = "InvalidArg" - DocAnnotationsListAll404ResponseCodeDocNotOpen DocAnnotationsListAll404ResponseCode = "DocNotOpen" - DocAnnotationsListAll404ResponseCodeDocOpenFailed DocAnnotationsListAll404ResponseCode = "DocOpenFailed" - DocAnnotationsListAll404ResponseCodeDocPasswordRequired DocAnnotationsListAll404ResponseCode = "DocPasswordRequired" - DocAnnotationsListAll404ResponseCodeDocPasswordIncorrect DocAnnotationsListAll404ResponseCode = "DocPasswordIncorrect" - DocAnnotationsListAll404ResponseCodeSharePasswordRequired DocAnnotationsListAll404ResponseCode = "SharePasswordRequired" - DocAnnotationsListAll404ResponseCodeAborted DocAnnotationsListAll404ResponseCode = "Aborted" - DocAnnotationsListAll404ResponseCodeNetwork DocAnnotationsListAll404ResponseCode = "Network" - DocAnnotationsListAll404ResponseCodeUnauthenticated DocAnnotationsListAll404ResponseCode = "Unauthenticated" - DocAnnotationsListAll404ResponseCodeForbidden DocAnnotationsListAll404ResponseCode = "Forbidden" - DocAnnotationsListAll404ResponseCodeNotFound DocAnnotationsListAll404ResponseCode = "NotFound" - DocAnnotationsListAll404ResponseCodeWireFormat DocAnnotationsListAll404ResponseCode = "WireFormat" - DocAnnotationsListAll404ResponseCodeRuntimeUnavailable DocAnnotationsListAll404ResponseCode = "RuntimeUnavailable" - DocAnnotationsListAll404ResponseCodeInvalidReference DocAnnotationsListAll404ResponseCode = "InvalidReference" - DocAnnotationsListAll404ResponseCodeWeakAnnotationSessionConflict DocAnnotationsListAll404ResponseCode = "WeakAnnotationSessionConflict" - DocAnnotationsListAll404ResponseCodeLayerVersionConflict DocAnnotationsListAll404ResponseCode = "LayerVersionConflict" - DocAnnotationsListAll404ResponseCodeNotImplemented DocAnnotationsListAll404ResponseCode = "NotImplemented" - DocAnnotationsListAll404ResponseCodeMalformedPdf DocAnnotationsListAll404ResponseCode = "MalformedPdf" - DocAnnotationsListAll404ResponseCodeSigningPending DocAnnotationsListAll404ResponseCode = "SigningPending" - DocAnnotationsListAll404ResponseCodeSigningExpired DocAnnotationsListAll404ResponseCode = "SigningExpired" - DocAnnotationsListAll404ResponseCodeSigningVersionMismatch DocAnnotationsListAll404ResponseCode = "SigningVersionMismatch" - DocAnnotationsListAll404ResponseCodeSignatureRefused DocAnnotationsListAll404ResponseCode = "SignatureRefused" - DocAnnotationsListAll404ResponseCodeProtectedDocument DocAnnotationsListAll404ResponseCode = "ProtectedDocument" - DocAnnotationsListAll404ResponseCodeStaleBase DocAnnotationsListAll404ResponseCode = "StaleBase" -) + rawJSON json.RawMessage +} -func NewDocAnnotationsListAll404ResponseCodeFromString(s string) (DocAnnotationsListAll404ResponseCode, error) { - switch s { - case "Unknown": - return DocAnnotationsListAll404ResponseCodeUnknown, nil - case "InvalidArg": - return DocAnnotationsListAll404ResponseCodeInvalidArg, nil - case "DocNotOpen": - return DocAnnotationsListAll404ResponseCodeDocNotOpen, nil - case "DocOpenFailed": - return DocAnnotationsListAll404ResponseCodeDocOpenFailed, nil - case "DocPasswordRequired": - return DocAnnotationsListAll404ResponseCodeDocPasswordRequired, nil - case "DocPasswordIncorrect": - return DocAnnotationsListAll404ResponseCodeDocPasswordIncorrect, nil - case "SharePasswordRequired": - return DocAnnotationsListAll404ResponseCodeSharePasswordRequired, nil - case "Aborted": - return DocAnnotationsListAll404ResponseCodeAborted, nil - case "Network": - return DocAnnotationsListAll404ResponseCodeNetwork, nil - case "Unauthenticated": - return DocAnnotationsListAll404ResponseCodeUnauthenticated, nil - case "Forbidden": - return DocAnnotationsListAll404ResponseCodeForbidden, nil - case "NotFound": - return DocAnnotationsListAll404ResponseCodeNotFound, nil - case "WireFormat": - return DocAnnotationsListAll404ResponseCodeWireFormat, nil - case "RuntimeUnavailable": - return DocAnnotationsListAll404ResponseCodeRuntimeUnavailable, nil - case "InvalidReference": - return DocAnnotationsListAll404ResponseCodeInvalidReference, nil - case "WeakAnnotationSessionConflict": - return DocAnnotationsListAll404ResponseCodeWeakAnnotationSessionConflict, nil - case "LayerVersionConflict": - return DocAnnotationsListAll404ResponseCodeLayerVersionConflict, nil - case "NotImplemented": - return DocAnnotationsListAll404ResponseCodeNotImplemented, nil - case "MalformedPdf": - return DocAnnotationsListAll404ResponseCodeMalformedPdf, nil - case "SigningPending": - return DocAnnotationsListAll404ResponseCodeSigningPending, nil - case "SigningExpired": - return DocAnnotationsListAll404ResponseCodeSigningExpired, nil - case "SigningVersionMismatch": - return DocAnnotationsListAll404ResponseCodeSigningVersionMismatch, nil - case "SignatureRefused": - return DocAnnotationsListAll404ResponseCodeSignatureRefused, nil - case "ProtectedDocument": - return DocAnnotationsListAll404ResponseCodeProtectedDocument, nil - case "StaleBase": - return DocAnnotationsListAll404ResponseCodeStaleBase, nil +func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry) GetNone() *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone { + if d == nil { + return nil + } + return d.None +} + +func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry) GetScalar() *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar { + if d == nil { + return nil + } + return d.Scalar +} + +func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry) GetArray() *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray { + if d == nil { + return nil + } + return d.Array +} + +func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry) GetUnsupported() *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported { + if d == nil { + return nil + } + return d.Unsupported +} + +func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err } - var t DocAnnotationsListAll404ResponseCode - return "", fmt.Errorf("%s is not a valid %T", s, t) + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "none": + value := new(DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.None = value + case "scalar": + value := new(DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Scalar = value + case "array": + value := new(DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Array = value + case "unsupported": + value := new(DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Unsupported = value + } + d.rawJSON = json.RawMessage(data) + return nil } -func (d DocAnnotationsListAll404ResponseCode) Ptr() *DocAnnotationsListAll404ResponseCode { - return &d +func (d DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err + } + if d.None != nil { + return internal.MarshalJSONWithExtraProperty(d.None, "kind", "none") + } + if d.Scalar != nil { + return internal.MarshalJSONWithExtraProperty(d.Scalar, "kind", "scalar") + } + if d.Array != nil { + return internal.MarshalJSONWithExtraProperty(d.Array, "kind", "array") + } + if d.Unsupported != nil { + return internal.MarshalJSONWithExtraProperty(d.Unsupported, "kind", "unsupported") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsListAll404ResponseName string - -const ( - DocAnnotationsListAll404ResponseNameEngineError DocAnnotationsListAll404ResponseName = "EngineError" -) +type DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryVisitor interface { + VisitNone(*DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone) error + VisitScalar(*DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar) error + VisitArray(*DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray) error + VisitUnsupported(*DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported) error +} -func NewDocAnnotationsListAll404ResponseNameFromString(s string) (DocAnnotationsListAll404ResponseName, error) { - switch s { - case "EngineError": - return DocAnnotationsListAll404ResponseNameEngineError, nil +func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry) Accept(visitor DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryVisitor) error { + if d.None != nil { + return visitor.VisitNone(d.None) } - var t DocAnnotationsListAll404ResponseName - return "", fmt.Errorf("%s is not a valid %T", s, t) + if d.Scalar != nil { + return visitor.VisitScalar(d.Scalar) + } + if d.Array != nil { + return visitor.VisitArray(d.Array) + } + if d.Unsupported != nil { + return visitor.VisitUnsupported(d.Unsupported) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d DocAnnotationsListAll404ResponseName) Ptr() *DocAnnotationsListAll404ResponseName { - return &d +func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.None != nil { + fields = append(fields, "none") + } + if d.Scalar != nil { + fields = append(fields, "scalar") + } + if d.Array != nil { + fields = append(fields, "array") + } + if d.Unsupported != nil { + fields = append(fields, "unsupported") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil } var ( - docAnnotationsListAll409ResponseFieldName = big.NewInt(1 << 0) - docAnnotationsListAll409ResponseFieldCode = big.NewInt(1 << 1) - docAnnotationsListAll409ResponseFieldMessage = big.NewInt(1 << 2) - docAnnotationsListAll409ResponseFieldDetails = big.NewInt(1 << 3) + docFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArrayFieldValues = big.NewInt(1 << 0) ) -type DocAnnotationsListAll409Response struct { - Name DocAnnotationsListAll409ResponseName `json:"name" url:"name"` - Code DocAnnotationsListAll409ResponseCode `json:"code" url:"code"` - Message string `json:"message" url:"message"` - Details map[string]any `json:"details,omitempty" url:"details,omitempty"` +type DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray struct { + Values []string `json:"values" url:"values"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -111106,83 +130032,41 @@ type DocAnnotationsListAll409Response struct { rawJSON json.RawMessage } -func (d *DocAnnotationsListAll409Response) GetName() DocAnnotationsListAll409ResponseName { - if d == nil { - return "" - } - return d.Name -} - -func (d *DocAnnotationsListAll409Response) GetCode() DocAnnotationsListAll409ResponseCode { - if d == nil { - return "" - } - return d.Code -} - -func (d *DocAnnotationsListAll409Response) GetMessage() string { - if d == nil { - return "" - } - return d.Message -} - -func (d *DocAnnotationsListAll409Response) GetDetails() map[string]any { +func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray) GetValues() []string { if d == nil { return nil } - return d.Details + return d.Values } -func (d *DocAnnotationsListAll409Response) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsListAll409Response) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetName sets the Name field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll409Response) SetName(name DocAnnotationsListAll409ResponseName) { - d.Name = name - d.require(docAnnotationsListAll409ResponseFieldName) -} - -// SetCode sets the Code field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll409Response) SetCode(code DocAnnotationsListAll409ResponseCode) { - d.Code = code - d.require(docAnnotationsListAll409ResponseFieldCode) -} - -// SetMessage sets the Message field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll409Response) SetMessage(message string) { - d.Message = message - d.require(docAnnotationsListAll409ResponseFieldMessage) -} - -// SetDetails sets the Details field and marks it as non-optional; +// SetValues sets the Values field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsListAll409Response) SetDetails(details map[string]any) { - d.Details = details - d.require(docAnnotationsListAll409ResponseFieldDetails) +func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray) SetValues(values []string) { + d.Values = values + d.require(docFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArrayFieldValues) } -func (d *DocAnnotationsListAll409Response) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsListAll409Response +func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsListAll409Response(value) + *d = DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -111192,8 +130076,8 @@ func (d *DocAnnotationsListAll409Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocAnnotationsListAll409Response) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsListAll409Response +func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray var marshaler = struct { embed }{ @@ -111203,7 +130087,7 @@ func (d *DocAnnotationsListAll409Response) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsListAll409Response) String() string { +func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray) String() string { if d == nil { return "" } @@ -111218,191 +130102,57 @@ func (d *DocAnnotationsListAll409Response) String() string { return fmt.Sprintf("%#v", d) } -type DocAnnotationsListAll409ResponseCode string - -const ( - DocAnnotationsListAll409ResponseCodeUnknown DocAnnotationsListAll409ResponseCode = "Unknown" - DocAnnotationsListAll409ResponseCodeInvalidArg DocAnnotationsListAll409ResponseCode = "InvalidArg" - DocAnnotationsListAll409ResponseCodeDocNotOpen DocAnnotationsListAll409ResponseCode = "DocNotOpen" - DocAnnotationsListAll409ResponseCodeDocOpenFailed DocAnnotationsListAll409ResponseCode = "DocOpenFailed" - DocAnnotationsListAll409ResponseCodeDocPasswordRequired DocAnnotationsListAll409ResponseCode = "DocPasswordRequired" - DocAnnotationsListAll409ResponseCodeDocPasswordIncorrect DocAnnotationsListAll409ResponseCode = "DocPasswordIncorrect" - DocAnnotationsListAll409ResponseCodeSharePasswordRequired DocAnnotationsListAll409ResponseCode = "SharePasswordRequired" - DocAnnotationsListAll409ResponseCodeAborted DocAnnotationsListAll409ResponseCode = "Aborted" - DocAnnotationsListAll409ResponseCodeNetwork DocAnnotationsListAll409ResponseCode = "Network" - DocAnnotationsListAll409ResponseCodeUnauthenticated DocAnnotationsListAll409ResponseCode = "Unauthenticated" - DocAnnotationsListAll409ResponseCodeForbidden DocAnnotationsListAll409ResponseCode = "Forbidden" - DocAnnotationsListAll409ResponseCodeNotFound DocAnnotationsListAll409ResponseCode = "NotFound" - DocAnnotationsListAll409ResponseCodeWireFormat DocAnnotationsListAll409ResponseCode = "WireFormat" - DocAnnotationsListAll409ResponseCodeRuntimeUnavailable DocAnnotationsListAll409ResponseCode = "RuntimeUnavailable" - DocAnnotationsListAll409ResponseCodeInvalidReference DocAnnotationsListAll409ResponseCode = "InvalidReference" - DocAnnotationsListAll409ResponseCodeWeakAnnotationSessionConflict DocAnnotationsListAll409ResponseCode = "WeakAnnotationSessionConflict" - DocAnnotationsListAll409ResponseCodeLayerVersionConflict DocAnnotationsListAll409ResponseCode = "LayerVersionConflict" - DocAnnotationsListAll409ResponseCodeNotImplemented DocAnnotationsListAll409ResponseCode = "NotImplemented" - DocAnnotationsListAll409ResponseCodeMalformedPdf DocAnnotationsListAll409ResponseCode = "MalformedPdf" - DocAnnotationsListAll409ResponseCodeSigningPending DocAnnotationsListAll409ResponseCode = "SigningPending" - DocAnnotationsListAll409ResponseCodeSigningExpired DocAnnotationsListAll409ResponseCode = "SigningExpired" - DocAnnotationsListAll409ResponseCodeSigningVersionMismatch DocAnnotationsListAll409ResponseCode = "SigningVersionMismatch" - DocAnnotationsListAll409ResponseCodeSignatureRefused DocAnnotationsListAll409ResponseCode = "SignatureRefused" - DocAnnotationsListAll409ResponseCodeProtectedDocument DocAnnotationsListAll409ResponseCode = "ProtectedDocument" - DocAnnotationsListAll409ResponseCodeStaleBase DocAnnotationsListAll409ResponseCode = "StaleBase" -) - -func NewDocAnnotationsListAll409ResponseCodeFromString(s string) (DocAnnotationsListAll409ResponseCode, error) { - switch s { - case "Unknown": - return DocAnnotationsListAll409ResponseCodeUnknown, nil - case "InvalidArg": - return DocAnnotationsListAll409ResponseCodeInvalidArg, nil - case "DocNotOpen": - return DocAnnotationsListAll409ResponseCodeDocNotOpen, nil - case "DocOpenFailed": - return DocAnnotationsListAll409ResponseCodeDocOpenFailed, nil - case "DocPasswordRequired": - return DocAnnotationsListAll409ResponseCodeDocPasswordRequired, nil - case "DocPasswordIncorrect": - return DocAnnotationsListAll409ResponseCodeDocPasswordIncorrect, nil - case "SharePasswordRequired": - return DocAnnotationsListAll409ResponseCodeSharePasswordRequired, nil - case "Aborted": - return DocAnnotationsListAll409ResponseCodeAborted, nil - case "Network": - return DocAnnotationsListAll409ResponseCodeNetwork, nil - case "Unauthenticated": - return DocAnnotationsListAll409ResponseCodeUnauthenticated, nil - case "Forbidden": - return DocAnnotationsListAll409ResponseCodeForbidden, nil - case "NotFound": - return DocAnnotationsListAll409ResponseCodeNotFound, nil - case "WireFormat": - return DocAnnotationsListAll409ResponseCodeWireFormat, nil - case "RuntimeUnavailable": - return DocAnnotationsListAll409ResponseCodeRuntimeUnavailable, nil - case "InvalidReference": - return DocAnnotationsListAll409ResponseCodeInvalidReference, nil - case "WeakAnnotationSessionConflict": - return DocAnnotationsListAll409ResponseCodeWeakAnnotationSessionConflict, nil - case "LayerVersionConflict": - return DocAnnotationsListAll409ResponseCodeLayerVersionConflict, nil - case "NotImplemented": - return DocAnnotationsListAll409ResponseCodeNotImplemented, nil - case "MalformedPdf": - return DocAnnotationsListAll409ResponseCodeMalformedPdf, nil - case "SigningPending": - return DocAnnotationsListAll409ResponseCodeSigningPending, nil - case "SigningExpired": - return DocAnnotationsListAll409ResponseCodeSigningExpired, nil - case "SigningVersionMismatch": - return DocAnnotationsListAll409ResponseCodeSigningVersionMismatch, nil - case "SignatureRefused": - return DocAnnotationsListAll409ResponseCodeSignatureRefused, nil - case "ProtectedDocument": - return DocAnnotationsListAll409ResponseCodeProtectedDocument, nil - case "StaleBase": - return DocAnnotationsListAll409ResponseCodeStaleBase, nil - } - var t DocAnnotationsListAll409ResponseCode - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll409ResponseCode) Ptr() *DocAnnotationsListAll409ResponseCode { - return &d -} - -type DocAnnotationsListAll409ResponseName string - -const ( - DocAnnotationsListAll409ResponseNameEngineError DocAnnotationsListAll409ResponseName = "EngineError" -) - -func NewDocAnnotationsListAll409ResponseNameFromString(s string) (DocAnnotationsListAll409ResponseName, error) { - switch s { - case "EngineError": - return DocAnnotationsListAll409ResponseNameEngineError, nil - } - var t DocAnnotationsListAll409ResponseName - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsListAll409ResponseName) Ptr() *DocAnnotationsListAll409ResponseName { - return &d -} - -var ( - docAnnotationsUpdate200ResponseFieldMeta = big.NewInt(1 << 0) -) - -type DocAnnotationsUpdate200Response struct { - Meta *DocAnnotationsUpdate200ResponseMeta `json:"meta" url:"meta"` +type DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` - ExtraProperties map[string]interface{} `json:"-" url:"-"` - - rawJSON json.RawMessage -} - -func (d *DocAnnotationsUpdate200Response) GetMeta() *DocAnnotationsUpdate200ResponseMeta { - if d == nil { - return nil - } - return d.Meta + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocAnnotationsUpdate200Response) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.ExtraProperties + return d.extraProperties } -func (d *DocAnnotationsUpdate200Response) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetMeta sets the Meta field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsUpdate200Response) SetMeta(meta *DocAnnotationsUpdate200ResponseMeta) { - d.Meta = meta - d.require(docAnnotationsUpdate200ResponseFieldMeta) -} - -func (d *DocAnnotationsUpdate200Response) UnmarshalJSON(data []byte) error { - type embed DocAnnotationsUpdate200Response - var unmarshaler = struct { - embed - }{ - embed: embed(*d), - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsUpdate200Response(unmarshaler.embed) + *d = DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err } - d.ExtraProperties = extraProperties + d.extraProperties = extraProperties d.rawJSON = json.RawMessage(data) return nil } -func (d *DocAnnotationsUpdate200Response) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsUpdate200Response +func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone var marshaler = struct { embed }{ embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return internal.MarshalJSONWithExtraProperties(explicitMarshaler, d.ExtraProperties) + return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsUpdate200Response) String() string { +func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone) String() string { if d == nil { return "" } @@ -111418,13 +130168,11 @@ func (d *DocAnnotationsUpdate200Response) String() string { } var ( - docAnnotationsUpdate200ResponseMetaFieldAffectedPages = big.NewInt(1 << 0) - docAnnotationsUpdate200ResponseMetaFieldCacheDelta = big.NewInt(1 << 1) + docFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalarFieldValue = big.NewInt(1 << 0) ) -type DocAnnotationsUpdate200ResponseMeta struct { - AffectedPages []*DocAnnotationsUpdate200ResponseMetaAffectedPagesItem `json:"affectedPages" url:"affectedPages"` - CacheDelta *DocAnnotationsUpdate200ResponseMetaCacheDelta `json:"cacheDelta,omitempty" url:"cacheDelta,omitempty"` +type DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar struct { + Value string `json:"value" url:"value"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -111433,55 +130181,41 @@ type DocAnnotationsUpdate200ResponseMeta struct { rawJSON json.RawMessage } -func (d *DocAnnotationsUpdate200ResponseMeta) GetAffectedPages() []*DocAnnotationsUpdate200ResponseMetaAffectedPagesItem { - if d == nil { - return nil - } - return d.AffectedPages -} - -func (d *DocAnnotationsUpdate200ResponseMeta) GetCacheDelta() *DocAnnotationsUpdate200ResponseMetaCacheDelta { +func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar) GetValue() string { if d == nil { - return nil + return "" } - return d.CacheDelta + return d.Value } -func (d *DocAnnotationsUpdate200ResponseMeta) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsUpdate200ResponseMeta) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetAffectedPages sets the AffectedPages field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsUpdate200ResponseMeta) SetAffectedPages(affectedPages []*DocAnnotationsUpdate200ResponseMetaAffectedPagesItem) { - d.AffectedPages = affectedPages - d.require(docAnnotationsUpdate200ResponseMetaFieldAffectedPages) -} - -// SetCacheDelta sets the CacheDelta field and marks it as non-optional; +// SetValue sets the Value field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsUpdate200ResponseMeta) SetCacheDelta(cacheDelta *DocAnnotationsUpdate200ResponseMetaCacheDelta) { - d.CacheDelta = cacheDelta - d.require(docAnnotationsUpdate200ResponseMetaFieldCacheDelta) +func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar) SetValue(value string) { + d.Value = value + d.require(docFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalarFieldValue) } -func (d *DocAnnotationsUpdate200ResponseMeta) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsUpdate200ResponseMeta +func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsUpdate200ResponseMeta(value) + *d = DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -111491,8 +130225,8 @@ func (d *DocAnnotationsUpdate200ResponseMeta) UnmarshalJSON(data []byte) error { return nil } -func (d *DocAnnotationsUpdate200ResponseMeta) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsUpdate200ResponseMeta +func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar var marshaler = struct { embed }{ @@ -111502,7 +130236,7 @@ func (d *DocAnnotationsUpdate200ResponseMeta) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsUpdate200ResponseMeta) String() string { +func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar) String() string { if d == nil { return "" } @@ -111517,16 +130251,7 @@ func (d *DocAnnotationsUpdate200ResponseMeta) String() string { return fmt.Sprintf("%#v", d) } -var ( - docAnnotationsUpdate200ResponseMetaAffectedPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsUpdate200ResponseMetaAffectedPagesItemFieldRevision = big.NewInt(1 << 1) - docAnnotationsUpdate200ResponseMetaAffectedPagesItemFieldWeakAnnotationState = big.NewInt(1 << 2) -) - -type DocAnnotationsUpdate200ResponseMetaAffectedPagesItem struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Revision *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision `json:"revision" url:"revision"` - WeakAnnotationState *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState `json:"weakAnnotationState" url:"weakAnnotationState"` +type DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -111535,69 +130260,27 @@ type DocAnnotationsUpdate200ResponseMetaAffectedPagesItem struct { rawJSON json.RawMessage } -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber -} - -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem) GetRevision() *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision { - if d == nil { - return nil - } - return d.Revision -} - -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem) GetWeakAnnotationState() *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState { - if d == nil { - return nil - } - return d.WeakAnnotationState -} - -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsUpdate200ResponseMetaAffectedPagesItemFieldPageObjectNumber) -} - -// SetRevision sets the Revision field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem) SetRevision(revision *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision) { - d.Revision = revision - d.require(docAnnotationsUpdate200ResponseMetaAffectedPagesItemFieldRevision) -} - -// SetWeakAnnotationState sets the WeakAnnotationState field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem) SetWeakAnnotationState(weakAnnotationState *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState) { - d.WeakAnnotationState = weakAnnotationState - d.require(docAnnotationsUpdate200ResponseMetaAffectedPagesItemFieldWeakAnnotationState) -} - -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsUpdate200ResponseMetaAffectedPagesItem +func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsUpdate200ResponseMetaAffectedPagesItem(value) + *d = DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -111607,8 +130290,8 @@ func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem) UnmarshalJSON(dat return nil } -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsUpdate200ResponseMetaAffectedPagesItem +func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported var marshaler = struct { embed }{ @@ -111618,7 +130301,7 @@ func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem) MarshalJSON() ([] return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem) String() string { +func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported) String() string { if d == nil { return "" } @@ -111634,15 +130317,17 @@ func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem) String() string { } var ( - docAnnotationsUpdate200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID = big.NewInt(1 << 0) - docAnnotationsUpdate200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docAnnotationsUpdate200ResponseMetaAffectedPagesItemRevisionFieldGeneration = big.NewInt(1 << 2) -) - -type DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` + docFormsGet200ResponseFieldsItemCheckboxFlagsFieldReadOnly = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemCheckboxFlagsFieldRequired = big.NewInt(1 << 1) + docFormsGet200ResponseFieldsItemCheckboxFlagsFieldNoExport = big.NewInt(1 << 2) + docFormsGet200ResponseFieldsItemCheckboxFlagsFieldRaw = big.NewInt(1 << 3) +) + +type DocFormsGet200ResponseFieldsItemCheckboxFlags struct { + ReadOnly bool `json:"readOnly" url:"readOnly"` + Required bool `json:"required" url:"required"` + NoExport bool `json:"noExport" url:"noExport"` + Raw int `json:"raw" url:"raw"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -111651,69 +130336,83 @@ type DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision struct { rawJSON json.RawMessage } -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision) GetDocSessionID() string { +func (d *DocFormsGet200ResponseFieldsItemCheckboxFlags) GetReadOnly() bool { if d == nil { - return "" + return false } - return d.DocSessionID + return d.ReadOnly } -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision) GetPageObjectNumber() int { +func (d *DocFormsGet200ResponseFieldsItemCheckboxFlags) GetRequired() bool { if d == nil { - return 0 + return false } - return d.PageObjectNumber + return d.Required } -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision) GetGeneration() int { +func (d *DocFormsGet200ResponseFieldsItemCheckboxFlags) GetNoExport() bool { + if d == nil { + return false + } + return d.NoExport +} + +func (d *DocFormsGet200ResponseFieldsItemCheckboxFlags) GetRaw() int { if d == nil { return 0 } - return d.Generation + return d.Raw } -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemCheckboxFlags) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemCheckboxFlags) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// SetReadOnly sets the ReadOnly field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docAnnotationsUpdate200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID) +func (d *DocFormsGet200ResponseFieldsItemCheckboxFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + d.require(docFormsGet200ResponseFieldsItemCheckboxFlagsFieldReadOnly) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetRequired sets the Required field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsUpdate200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber) +func (d *DocFormsGet200ResponseFieldsItemCheckboxFlags) SetRequired(required bool) { + d.Required = required + d.require(docFormsGet200ResponseFieldsItemCheckboxFlagsFieldRequired) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetNoExport sets the NoExport field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docAnnotationsUpdate200ResponseMetaAffectedPagesItemRevisionFieldGeneration) +func (d *DocFormsGet200ResponseFieldsItemCheckboxFlags) SetNoExport(noExport bool) { + d.NoExport = noExport + d.require(docFormsGet200ResponseFieldsItemCheckboxFlagsFieldNoExport) } -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision +// SetRaw sets the Raw field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemCheckboxFlags) SetRaw(raw int) { + d.Raw = raw + d.require(docFormsGet200ResponseFieldsItemCheckboxFlagsFieldRaw) +} + +func (d *DocFormsGet200ResponseFieldsItemCheckboxFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemCheckboxFlags var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision(value) + *d = DocFormsGet200ResponseFieldsItemCheckboxFlags(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -111723,8 +130422,8 @@ func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision) Unmarshal return nil } -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision +func (d *DocFormsGet200ResponseFieldsItemCheckboxFlags) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemCheckboxFlags var marshaler = struct { embed }{ @@ -111734,7 +130433,7 @@ func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision) MarshalJS return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision) String() string { +func (d *DocFormsGet200ResponseFieldsItemCheckboxFlags) String() string { if d == nil { return "" } @@ -111749,36 +130448,58 @@ func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision) String() return fmt.Sprintf("%#v", d) } -type DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState struct { - Kind string - Unknown *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - Known *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown +type DocFormsGet200ResponseFieldsItemCheckboxOrigin string + +const ( + DocFormsGet200ResponseFieldsItemCheckboxOriginAcroform DocFormsGet200ResponseFieldsItemCheckboxOrigin = "acroform" + DocFormsGet200ResponseFieldsItemCheckboxOriginRecovered DocFormsGet200ResponseFieldsItemCheckboxOrigin = "recovered" +) + +func NewDocFormsGet200ResponseFieldsItemCheckboxOriginFromString(s string) (DocFormsGet200ResponseFieldsItemCheckboxOrigin, error) { + switch s { + case "acroform": + return DocFormsGet200ResponseFieldsItemCheckboxOriginAcroform, nil + case "recovered": + return DocFormsGet200ResponseFieldsItemCheckboxOriginRecovered, nil + } + var t DocFormsGet200ResponseFieldsItemCheckboxOrigin + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocFormsGet200ResponseFieldsItemCheckboxOrigin) Ptr() *DocFormsGet200ResponseFieldsItemCheckboxOrigin { + return &d +} + +type DocFormsGet200ResponseFieldsItemCheckboxRef struct { + Kind string + ObjectNumber *DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber + Fqn *DocFormsGet200ResponseFieldsItemCheckboxRefFqn rawJSON json.RawMessage } -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKind() string { +func (d *DocFormsGet200ResponseFieldsItemCheckboxRef) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState) GetUnknown() *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown { +func (d *DocFormsGet200ResponseFieldsItemCheckboxRef) GetObjectNumber() *DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber { if d == nil { return nil } - return d.Unknown + return d.ObjectNumber } -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKnown() *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown { +func (d *DocFormsGet200ResponseFieldsItemCheckboxRef) GetFqn() *DocFormsGet200ResponseFieldsItemCheckboxRefFqn { if d == nil { return nil } - return d.Known + return d.Fqn } -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState) UnmarshalJSON(data []byte) error { +func (d *DocFormsGet200ResponseFieldsItemCheckboxRef) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -111790,32 +130511,32 @@ func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState return fmt.Errorf("%T did not include discriminant kind", d) } switch unmarshaler.Kind { - case "unknown": - value := new(DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) + case "objectNumber": + value := new(DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber) if err := json.Unmarshal(data, &value); err != nil { return err } - d.Unknown = value - case "known": - value := new(DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) + d.ObjectNumber = value + case "fqn": + value := new(DocFormsGet200ResponseFieldsItemCheckboxRefFqn) if err := json.Unmarshal(data, &value); err != nil { return err } - d.Known = value + d.Fqn = value } d.rawJSON = json.RawMessage(data) return nil } -func (d DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState) MarshalJSON() ([]byte, error) { +func (d DocFormsGet200ResponseFieldsItemCheckboxRef) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } - if d.Unknown != nil { - return internal.MarshalJSONWithExtraProperty(d.Unknown, "kind", "unknown") + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") } - if d.Known != nil { - return internal.MarshalJSONWithExtraProperty(d.Known, "kind", "known") + if d.Fqn != nil { + return internal.MarshalJSONWithExtraProperty(d.Fqn, "kind", "fqn") } if len(d.rawJSON) > 0 { return d.rawJSON, nil @@ -111823,31 +130544,31 @@ func (d DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState) return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor interface { - VisitUnknown(*DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) error - VisitKnown(*DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) error +type DocFormsGet200ResponseFieldsItemCheckboxRefVisitor interface { + VisitObjectNumber(*DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber) error + VisitFqn(*DocFormsGet200ResponseFieldsItemCheckboxRefFqn) error } -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState) Accept(visitor DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor) error { - if d.Unknown != nil { - return visitor.VisitUnknown(d.Unknown) +func (d *DocFormsGet200ResponseFieldsItemCheckboxRef) Accept(visitor DocFormsGet200ResponseFieldsItemCheckboxRefVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) } - if d.Known != nil { - return visitor.VisitKnown(d.Known) + if d.Fqn != nil { + return visitor.VisitFqn(d.Fqn) } return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState) validate() error { +func (d *DocFormsGet200ResponseFieldsItemCheckboxRef) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } var fields []string - if d.Unknown != nil { - fields = append(fields, "unknown") + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") } - if d.Known != nil { - fields = append(fields, "known") + if d.Fqn != nil { + fields = append(fields, "fqn") } if len(fields) == 0 { if d.Kind != "" { @@ -111876,11 +130597,11 @@ func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState } var ( - docAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemCheckboxRefFqnFieldName = big.NewInt(1 << 0) ) -type DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown struct { - HasAnyWeakAnnotations bool `json:"hasAnyWeakAnnotations" url:"hasAnyWeakAnnotations"` +type DocFormsGet200ResponseFieldsItemCheckboxRefFqn struct { + Name string `json:"name" url:"name"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -111889,41 +130610,41 @@ type DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnow rawJSON json.RawMessage } -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetHasAnyWeakAnnotations() bool { +func (d *DocFormsGet200ResponseFieldsItemCheckboxRefFqn) GetName() string { if d == nil { - return false + return "" } - return d.HasAnyWeakAnnotations + return d.Name } -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemCheckboxRefFqn) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemCheckboxRefFqn) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetHasAnyWeakAnnotations sets the HasAnyWeakAnnotations field and marks it as non-optional; +// SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) SetHasAnyWeakAnnotations(hasAnyWeakAnnotations bool) { - d.HasAnyWeakAnnotations = hasAnyWeakAnnotations - d.require(docAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations) +func (d *DocFormsGet200ResponseFieldsItemCheckboxRefFqn) SetName(name string) { + d.Name = name + d.require(docFormsGet200ResponseFieldsItemCheckboxRefFqnFieldName) } -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown +func (d *DocFormsGet200ResponseFieldsItemCheckboxRefFqn) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemCheckboxRefFqn var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(value) + *d = DocFormsGet200ResponseFieldsItemCheckboxRefFqn(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -111933,8 +130654,8 @@ func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState return nil } -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown +func (d *DocFormsGet200ResponseFieldsItemCheckboxRefFqn) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemCheckboxRefFqn var marshaler = struct { embed }{ @@ -111944,7 +130665,7 @@ func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) String() string { +func (d *DocFormsGet200ResponseFieldsItemCheckboxRefFqn) String() string { if d == nil { return "" } @@ -111959,7 +130680,12 @@ func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState return fmt.Sprintf("%#v", d) } -type DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown struct { +var ( + docFormsGet200ResponseFieldsItemCheckboxRefObjectNumberFieldFieldObjectNumber = big.NewInt(1 << 0) +) + +type DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber struct { + FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -111968,27 +130694,41 @@ type DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnkn rawJSON json.RawMessage } -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber) GetFieldObjectNumber() int { + if d == nil { + return 0 + } + return d.FieldObjectNumber +} + +func (d *DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown +// SetFieldObjectNumber sets the FieldObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber) SetFieldObjectNumber(fieldObjectNumber int) { + d.FieldObjectNumber = fieldObjectNumber + d.require(docFormsGet200ResponseFieldsItemCheckboxRefObjectNumberFieldFieldObjectNumber) +} + +func (d *DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(value) + *d = DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -111998,8 +130738,8 @@ func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState return nil } -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown +func (d *DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber var marshaler = struct { embed }{ @@ -112009,7 +130749,7 @@ func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) String() string { +func (d *DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber) String() string { if d == nil { return "" } @@ -112024,135 +130764,294 @@ func (d *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState return fmt.Sprintf("%#v", d) } -var ( - docAnnotationsUpdate200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) - docAnnotationsUpdate200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) - docAnnotationsUpdate200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) - docAnnotationsUpdate200ResponseMetaCacheDeltaFieldLayerVersion = big.NewInt(1 << 3) - docAnnotationsUpdate200ResponseMetaCacheDeltaFieldWorking = big.NewInt(1 << 4) - docAnnotationsUpdate200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 5) -) - -type DocAnnotationsUpdate200ResponseMetaCacheDelta struct { - PreviousDocVersion int `json:"previousDocVersion" url:"previousDocVersion"` - DocVersion int `json:"docVersion" url:"docVersion"` - AnnotationsVersion *int `json:"annotationsVersion,omitempty" url:"annotationsVersion,omitempty"` - LayerVersion *int `json:"layerVersion,omitempty" url:"layerVersion,omitempty"` - Working *bool `json:"working,omitempty" url:"working,omitempty"` - Pages []*DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +type DocFormsGet200ResponseFieldsItemCheckboxValueEntry struct { + Kind string + None *DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone + Scalar *DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar + Array *DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray + Unsupported *DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported - extraProperties map[string]interface{} - rawJSON json.RawMessage + rawJSON json.RawMessage } -func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) GetPreviousDocVersion() int { +func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntry) GetKind() string { if d == nil { - return 0 + return "" } - return d.PreviousDocVersion + return d.Kind } -func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) GetDocVersion() int { +func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntry) GetNone() *DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone { if d == nil { - return 0 + return nil } - return d.DocVersion + return d.None } -func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { +func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntry) GetScalar() *DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar { if d == nil { return nil } - return d.AnnotationsVersion + return d.Scalar } -func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) GetLayerVersion() *int { +func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntry) GetArray() *DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray { if d == nil { return nil } - return d.LayerVersion + return d.Array } -func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) GetWorking() *bool { +func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntry) GetUnsupported() *DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported { if d == nil { return nil } - return d.Working + return d.Unsupported } -func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) GetPages() []*DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem { +func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntry) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "none": + value := new(DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.None = value + case "scalar": + value := new(DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Scalar = value + case "array": + value := new(DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Array = value + case "unsupported": + value := new(DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Unsupported = value + } + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d DocFormsGet200ResponseFieldsItemCheckboxValueEntry) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err + } + if d.None != nil { + return internal.MarshalJSONWithExtraProperty(d.None, "kind", "none") + } + if d.Scalar != nil { + return internal.MarshalJSONWithExtraProperty(d.Scalar, "kind", "scalar") + } + if d.Array != nil { + return internal.MarshalJSONWithExtraProperty(d.Array, "kind", "array") + } + if d.Unsupported != nil { + return internal.MarshalJSONWithExtraProperty(d.Unsupported, "kind", "unsupported") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +} + +type DocFormsGet200ResponseFieldsItemCheckboxValueEntryVisitor interface { + VisitNone(*DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone) error + VisitScalar(*DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar) error + VisitArray(*DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray) error + VisitUnsupported(*DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported) error +} + +func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntry) Accept(visitor DocFormsGet200ResponseFieldsItemCheckboxValueEntryVisitor) error { + if d.None != nil { + return visitor.VisitNone(d.None) + } + if d.Scalar != nil { + return visitor.VisitScalar(d.Scalar) + } + if d.Array != nil { + return visitor.VisitArray(d.Array) + } + if d.Unsupported != nil { + return visitor.VisitUnsupported(d.Unsupported) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntry) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.None != nil { + fields = append(fields, "none") + } + if d.Scalar != nil { + fields = append(fields, "scalar") + } + if d.Array != nil { + fields = append(fields, "array") + } + if d.Unsupported != nil { + fields = append(fields, "unsupported") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil +} + +var ( + docFormsGet200ResponseFieldsItemCheckboxValueEntryArrayFieldValues = big.NewInt(1 << 0) +) + +type DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray struct { + Values []string `json:"values" url:"values"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray) GetValues() []string { if d == nil { return nil } - return d.Pages + return d.Values } -func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPreviousDocVersion sets the PreviousDocVersion field and marks it as non-optional; +// SetValues sets the Values field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) SetPreviousDocVersion(previousDocVersion int) { - d.PreviousDocVersion = previousDocVersion - d.require(docAnnotationsUpdate200ResponseMetaCacheDeltaFieldPreviousDocVersion) +func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray) SetValues(values []string) { + d.Values = values + d.require(docFormsGet200ResponseFieldsItemCheckboxValueEntryArrayFieldValues) } -// SetDocVersion sets the DocVersion field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) SetDocVersion(docVersion int) { - d.DocVersion = docVersion - d.require(docAnnotationsUpdate200ResponseMetaCacheDeltaFieldDocVersion) +func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -// SetAnnotationsVersion sets the AnnotationsVersion field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) SetAnnotationsVersion(annotationsVersion *int) { - d.AnnotationsVersion = annotationsVersion - d.require(docAnnotationsUpdate200ResponseMetaCacheDeltaFieldAnnotationsVersion) +func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -// SetLayerVersion sets the LayerVersion field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) SetLayerVersion(layerVersion *int) { - d.LayerVersion = layerVersion - d.require(docAnnotationsUpdate200ResponseMetaCacheDeltaFieldLayerVersion) +func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -// SetWorking sets the Working field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) SetWorking(working *bool) { - d.Working = working - d.require(docAnnotationsUpdate200ResponseMetaCacheDeltaFieldWorking) +type DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone struct { + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -// SetPages sets the Pages field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) SetPages(pages []*DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem) { - d.Pages = pages - d.require(docAnnotationsUpdate200ResponseMetaCacheDeltaFieldPages) +func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties } -func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsUpdate200ResponseMetaCacheDelta +func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsUpdate200ResponseMetaCacheDelta(value) + *d = DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -112162,8 +131061,8 @@ func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) UnmarshalJSON(data []byt return nil } -func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsUpdate200ResponseMetaCacheDelta +func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone var marshaler = struct { embed }{ @@ -112173,7 +131072,7 @@ func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) MarshalJSON() ([]byte, e return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) String() string { +func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone) String() string { if d == nil { return "" } @@ -112189,13 +131088,11 @@ func (d *DocAnnotationsUpdate200ResponseMetaCacheDelta) String() string { } var ( - docAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) - docAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemFieldCache = big.NewInt(1 << 1) + docFormsGet200ResponseFieldsItemCheckboxValueEntryScalarFieldValue = big.NewInt(1 << 0) ) -type DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Cache *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache `json:"cache" url:"cache"` +type DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar struct { + Value string `json:"value" url:"value"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -112204,55 +131101,41 @@ type DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem struct { rawJSON json.RawMessage } -func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber -} - -func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem) GetCache() *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache { +func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar) GetValue() string { if d == nil { - return nil + return "" } - return d.Cache + return d.Value } -func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber) -} - -// SetCache sets the Cache field and marks it as non-optional; +// SetValue sets the Value field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem) SetCache(cache *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache) { - d.Cache = cache - d.require(docAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemFieldCache) +func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar) SetValue(value string) { + d.Value = value + d.require(docFormsGet200ResponseFieldsItemCheckboxValueEntryScalarFieldValue) } -func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem +func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem(value) + *d = DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -112262,8 +131145,8 @@ func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem) UnmarshalJSON(d return nil } -func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem +func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar var marshaler = struct { embed }{ @@ -112273,7 +131156,7 @@ func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem) MarshalJSON() ( return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem) String() string { +func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar) String() string { if d == nil { return "" } @@ -112288,14 +131171,7 @@ func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem) String() string return fmt.Sprintf("%#v", d) } -var ( - docAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion = big.NewInt(1 << 0) - docAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion = big.NewInt(1 << 1) -) - -type DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache struct { - ContentVersion int `json:"contentVersion" url:"contentVersion"` - AnnotationVersion int `json:"annotationVersion" url:"annotationVersion"` +type DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -112304,55 +131180,27 @@ type DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache struct { rawJSON json.RawMessage } -func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache) GetContentVersion() int { - if d == nil { - return 0 - } - return d.ContentVersion -} - -func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache) GetAnnotationVersion() int { - if d == nil { - return 0 - } - return d.AnnotationVersion -} - -func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetContentVersion sets the ContentVersion field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache) SetContentVersion(contentVersion int) { - d.ContentVersion = contentVersion - d.require(docAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion) -} - -// SetAnnotationVersion sets the AnnotationVersion field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache) SetAnnotationVersion(annotationVersion int) { - d.AnnotationVersion = annotationVersion - d.require(docAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion) -} - -func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache +func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache(value) + *d = DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -112362,8 +131210,8 @@ func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJ return nil } -func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache +func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported var marshaler = struct { embed }{ @@ -112373,7 +131221,7 @@ func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache) MarshalJSO return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache) String() string { +func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported) String() string { if d == nil { return "" } @@ -112389,17 +131237,19 @@ func (d *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache) String() s } var ( - docAnnotationsUpdate400ResponseFieldName = big.NewInt(1 << 0) - docAnnotationsUpdate400ResponseFieldCode = big.NewInt(1 << 1) - docAnnotationsUpdate400ResponseFieldMessage = big.NewInt(1 << 2) - docAnnotationsUpdate400ResponseFieldDetails = big.NewInt(1 << 3) + docFormsGet200ResponseFieldsItemCheckboxWidgetsItemFieldAnnotObjectNumber = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemCheckboxWidgetsItemFieldPageObjectNumber = big.NewInt(1 << 1) + docFormsGet200ResponseFieldsItemCheckboxWidgetsItemFieldOnState = big.NewInt(1 << 2) + docFormsGet200ResponseFieldsItemCheckboxWidgetsItemFieldExportValue = big.NewInt(1 << 3) + docFormsGet200ResponseFieldsItemCheckboxWidgetsItemFieldChecked = big.NewInt(1 << 4) ) -type DocAnnotationsUpdate400Response struct { - Name DocAnnotationsUpdate400ResponseName `json:"name" url:"name"` - Code DocAnnotationsUpdate400ResponseCode `json:"code" url:"code"` - Message string `json:"message" url:"message"` - Details map[string]any `json:"details,omitempty" url:"details,omitempty"` +type DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem struct { + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + OnState string `json:"onState" url:"onState"` + ExportValue string `json:"exportValue" url:"exportValue"` + Checked bool `json:"checked" url:"checked"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -112408,83 +131258,97 @@ type DocAnnotationsUpdate400Response struct { rawJSON json.RawMessage } -func (d *DocAnnotationsUpdate400Response) GetName() DocAnnotationsUpdate400ResponseName { +func (d *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem) GetAnnotObjectNumber() int { if d == nil { - return "" + return 0 } - return d.Name + return d.AnnotObjectNumber } -func (d *DocAnnotationsUpdate400Response) GetCode() DocAnnotationsUpdate400ResponseCode { +func (d *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem) GetOnState() string { if d == nil { return "" } - return d.Code + return d.OnState } -func (d *DocAnnotationsUpdate400Response) GetMessage() string { +func (d *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem) GetExportValue() string { if d == nil { return "" } - return d.Message + return d.ExportValue } -func (d *DocAnnotationsUpdate400Response) GetDetails() map[string]any { +func (d *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem) GetChecked() bool { if d == nil { - return nil + return false } - return d.Details + return d.Checked } -func (d *DocAnnotationsUpdate400Response) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocAnnotationsUpdate400Response) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetName sets the Name field and marks it as non-optional; +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsUpdate400Response) SetName(name DocAnnotationsUpdate400ResponseName) { - d.Name = name - d.require(docAnnotationsUpdate400ResponseFieldName) +func (d *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docFormsGet200ResponseFieldsItemCheckboxWidgetsItemFieldAnnotObjectNumber) } -// SetCode sets the Code field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsUpdate400Response) SetCode(code DocAnnotationsUpdate400ResponseCode) { - d.Code = code - d.require(docAnnotationsUpdate400ResponseFieldCode) +func (d *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docFormsGet200ResponseFieldsItemCheckboxWidgetsItemFieldPageObjectNumber) } -// SetMessage sets the Message field and marks it as non-optional; +// SetOnState sets the OnState field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsUpdate400Response) SetMessage(message string) { - d.Message = message - d.require(docAnnotationsUpdate400ResponseFieldMessage) +func (d *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem) SetOnState(onState string) { + d.OnState = onState + d.require(docFormsGet200ResponseFieldsItemCheckboxWidgetsItemFieldOnState) } -// SetDetails sets the Details field and marks it as non-optional; +// SetExportValue sets the ExportValue field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsUpdate400Response) SetDetails(details map[string]any) { - d.Details = details - d.require(docAnnotationsUpdate400ResponseFieldDetails) +func (d *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem) SetExportValue(exportValue string) { + d.ExportValue = exportValue + d.require(docFormsGet200ResponseFieldsItemCheckboxWidgetsItemFieldExportValue) } -func (d *DocAnnotationsUpdate400Response) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsUpdate400Response +// SetChecked sets the Checked field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem) SetChecked(checked bool) { + d.Checked = checked + d.require(docFormsGet200ResponseFieldsItemCheckboxWidgetsItemFieldChecked) +} + +func (d *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsUpdate400Response(value) + *d = DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -112494,8 +131358,8 @@ func (d *DocAnnotationsUpdate400Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocAnnotationsUpdate400Response) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsUpdate400Response +func (d *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem var marshaler = struct { embed }{ @@ -112505,7 +131369,7 @@ func (d *DocAnnotationsUpdate400Response) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsUpdate400Response) String() string { +func (d *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem) String() string { if d == nil { return "" } @@ -112520,213 +131384,279 @@ func (d *DocAnnotationsUpdate400Response) String() string { return fmt.Sprintf("%#v", d) } -type DocAnnotationsUpdate400ResponseCode string - -const ( - DocAnnotationsUpdate400ResponseCodeUnknown DocAnnotationsUpdate400ResponseCode = "Unknown" - DocAnnotationsUpdate400ResponseCodeInvalidArg DocAnnotationsUpdate400ResponseCode = "InvalidArg" - DocAnnotationsUpdate400ResponseCodeDocNotOpen DocAnnotationsUpdate400ResponseCode = "DocNotOpen" - DocAnnotationsUpdate400ResponseCodeDocOpenFailed DocAnnotationsUpdate400ResponseCode = "DocOpenFailed" - DocAnnotationsUpdate400ResponseCodeDocPasswordRequired DocAnnotationsUpdate400ResponseCode = "DocPasswordRequired" - DocAnnotationsUpdate400ResponseCodeDocPasswordIncorrect DocAnnotationsUpdate400ResponseCode = "DocPasswordIncorrect" - DocAnnotationsUpdate400ResponseCodeSharePasswordRequired DocAnnotationsUpdate400ResponseCode = "SharePasswordRequired" - DocAnnotationsUpdate400ResponseCodeAborted DocAnnotationsUpdate400ResponseCode = "Aborted" - DocAnnotationsUpdate400ResponseCodeNetwork DocAnnotationsUpdate400ResponseCode = "Network" - DocAnnotationsUpdate400ResponseCodeUnauthenticated DocAnnotationsUpdate400ResponseCode = "Unauthenticated" - DocAnnotationsUpdate400ResponseCodeForbidden DocAnnotationsUpdate400ResponseCode = "Forbidden" - DocAnnotationsUpdate400ResponseCodeNotFound DocAnnotationsUpdate400ResponseCode = "NotFound" - DocAnnotationsUpdate400ResponseCodeWireFormat DocAnnotationsUpdate400ResponseCode = "WireFormat" - DocAnnotationsUpdate400ResponseCodeRuntimeUnavailable DocAnnotationsUpdate400ResponseCode = "RuntimeUnavailable" - DocAnnotationsUpdate400ResponseCodeInvalidReference DocAnnotationsUpdate400ResponseCode = "InvalidReference" - DocAnnotationsUpdate400ResponseCodeWeakAnnotationSessionConflict DocAnnotationsUpdate400ResponseCode = "WeakAnnotationSessionConflict" - DocAnnotationsUpdate400ResponseCodeLayerVersionConflict DocAnnotationsUpdate400ResponseCode = "LayerVersionConflict" - DocAnnotationsUpdate400ResponseCodeNotImplemented DocAnnotationsUpdate400ResponseCode = "NotImplemented" - DocAnnotationsUpdate400ResponseCodeMalformedPdf DocAnnotationsUpdate400ResponseCode = "MalformedPdf" - DocAnnotationsUpdate400ResponseCodeSigningPending DocAnnotationsUpdate400ResponseCode = "SigningPending" - DocAnnotationsUpdate400ResponseCodeSigningExpired DocAnnotationsUpdate400ResponseCode = "SigningExpired" - DocAnnotationsUpdate400ResponseCodeSigningVersionMismatch DocAnnotationsUpdate400ResponseCode = "SigningVersionMismatch" - DocAnnotationsUpdate400ResponseCodeSignatureRefused DocAnnotationsUpdate400ResponseCode = "SignatureRefused" - DocAnnotationsUpdate400ResponseCodeProtectedDocument DocAnnotationsUpdate400ResponseCode = "ProtectedDocument" - DocAnnotationsUpdate400ResponseCodeStaleBase DocAnnotationsUpdate400ResponseCode = "StaleBase" +var ( + docFormsGet200ResponseFieldsItemComboboxFieldRef = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemComboboxFieldFieldObjectNumber = big.NewInt(1 << 1) + docFormsGet200ResponseFieldsItemComboboxFieldName = big.NewInt(1 << 2) + docFormsGet200ResponseFieldsItemComboboxFieldOrigin = big.NewInt(1 << 3) + docFormsGet200ResponseFieldsItemComboboxFieldFlags = big.NewInt(1 << 4) + docFormsGet200ResponseFieldsItemComboboxFieldAlternateName = big.NewInt(1 << 5) + docFormsGet200ResponseFieldsItemComboboxFieldMappingName = big.NewInt(1 << 6) + docFormsGet200ResponseFieldsItemComboboxFieldValueEntry = big.NewInt(1 << 7) + docFormsGet200ResponseFieldsItemComboboxFieldDefaultValueEntry = big.NewInt(1 << 8) + docFormsGet200ResponseFieldsItemComboboxFieldActions = big.NewInt(1 << 9) + docFormsGet200ResponseFieldsItemComboboxFieldWidgets = big.NewInt(1 << 10) + docFormsGet200ResponseFieldsItemComboboxFieldValue = big.NewInt(1 << 11) + docFormsGet200ResponseFieldsItemComboboxFieldDefaultValue = big.NewInt(1 << 12) + docFormsGet200ResponseFieldsItemComboboxFieldEdit = big.NewInt(1 << 13) + docFormsGet200ResponseFieldsItemComboboxFieldOptions = big.NewInt(1 << 14) ) -func NewDocAnnotationsUpdate400ResponseCodeFromString(s string) (DocAnnotationsUpdate400ResponseCode, error) { - switch s { - case "Unknown": - return DocAnnotationsUpdate400ResponseCodeUnknown, nil - case "InvalidArg": - return DocAnnotationsUpdate400ResponseCodeInvalidArg, nil - case "DocNotOpen": - return DocAnnotationsUpdate400ResponseCodeDocNotOpen, nil - case "DocOpenFailed": - return DocAnnotationsUpdate400ResponseCodeDocOpenFailed, nil - case "DocPasswordRequired": - return DocAnnotationsUpdate400ResponseCodeDocPasswordRequired, nil - case "DocPasswordIncorrect": - return DocAnnotationsUpdate400ResponseCodeDocPasswordIncorrect, nil - case "SharePasswordRequired": - return DocAnnotationsUpdate400ResponseCodeSharePasswordRequired, nil - case "Aborted": - return DocAnnotationsUpdate400ResponseCodeAborted, nil - case "Network": - return DocAnnotationsUpdate400ResponseCodeNetwork, nil - case "Unauthenticated": - return DocAnnotationsUpdate400ResponseCodeUnauthenticated, nil - case "Forbidden": - return DocAnnotationsUpdate400ResponseCodeForbidden, nil - case "NotFound": - return DocAnnotationsUpdate400ResponseCodeNotFound, nil - case "WireFormat": - return DocAnnotationsUpdate400ResponseCodeWireFormat, nil - case "RuntimeUnavailable": - return DocAnnotationsUpdate400ResponseCodeRuntimeUnavailable, nil - case "InvalidReference": - return DocAnnotationsUpdate400ResponseCodeInvalidReference, nil - case "WeakAnnotationSessionConflict": - return DocAnnotationsUpdate400ResponseCodeWeakAnnotationSessionConflict, nil - case "LayerVersionConflict": - return DocAnnotationsUpdate400ResponseCodeLayerVersionConflict, nil - case "NotImplemented": - return DocAnnotationsUpdate400ResponseCodeNotImplemented, nil - case "MalformedPdf": - return DocAnnotationsUpdate400ResponseCodeMalformedPdf, nil - case "SigningPending": - return DocAnnotationsUpdate400ResponseCodeSigningPending, nil - case "SigningExpired": - return DocAnnotationsUpdate400ResponseCodeSigningExpired, nil - case "SigningVersionMismatch": - return DocAnnotationsUpdate400ResponseCodeSigningVersionMismatch, nil - case "SignatureRefused": - return DocAnnotationsUpdate400ResponseCodeSignatureRefused, nil - case "ProtectedDocument": - return DocAnnotationsUpdate400ResponseCodeProtectedDocument, nil - case "StaleBase": - return DocAnnotationsUpdate400ResponseCodeStaleBase, nil +type DocFormsGet200ResponseFieldsItemCombobox struct { + Ref *DocFormsGet200ResponseFieldsItemComboboxRef `json:"ref" url:"ref"` + FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` + Name string `json:"name" url:"name"` + Origin DocFormsGet200ResponseFieldsItemComboboxOrigin `json:"origin" url:"origin"` + Flags *DocFormsGet200ResponseFieldsItemComboboxFlags `json:"flags" url:"flags"` + AlternateName *string `json:"alternateName,omitempty" url:"alternateName,omitempty"` + MappingName *string `json:"mappingName,omitempty" url:"mappingName,omitempty"` + ValueEntry *DocFormsGet200ResponseFieldsItemComboboxValueEntry `json:"valueEntry" url:"valueEntry"` + DefaultValueEntry *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry `json:"defaultValueEntry" url:"defaultValueEntry"` + Actions *PdfFieldActions `json:"actions,omitempty" url:"actions,omitempty"` + Widgets []*DocFormsGet200ResponseFieldsItemComboboxWidgetsItem `json:"widgets" url:"widgets"` + Value string `json:"value" url:"value"` + DefaultValue string `json:"defaultValue" url:"defaultValue"` + Edit bool `json:"edit" url:"edit"` + Options []*DocFormsGet200ResponseFieldsItemComboboxOptionsItem `json:"options" url:"options"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocFormsGet200ResponseFieldsItemCombobox) GetRef() *DocFormsGet200ResponseFieldsItemComboboxRef { + if d == nil { + return nil } - var t DocAnnotationsUpdate400ResponseCode - return "", fmt.Errorf("%s is not a valid %T", s, t) + return d.Ref } -func (d DocAnnotationsUpdate400ResponseCode) Ptr() *DocAnnotationsUpdate400ResponseCode { - return &d +func (d *DocFormsGet200ResponseFieldsItemCombobox) GetFieldObjectNumber() int { + if d == nil { + return 0 + } + return d.FieldObjectNumber } -type DocAnnotationsUpdate400ResponseName string +func (d *DocFormsGet200ResponseFieldsItemCombobox) GetName() string { + if d == nil { + return "" + } + return d.Name +} -const ( - DocAnnotationsUpdate400ResponseNameEngineError DocAnnotationsUpdate400ResponseName = "EngineError" -) +func (d *DocFormsGet200ResponseFieldsItemCombobox) GetOrigin() DocFormsGet200ResponseFieldsItemComboboxOrigin { + if d == nil { + return "" + } + return d.Origin +} -func NewDocAnnotationsUpdate400ResponseNameFromString(s string) (DocAnnotationsUpdate400ResponseName, error) { - switch s { - case "EngineError": - return DocAnnotationsUpdate400ResponseNameEngineError, nil +func (d *DocFormsGet200ResponseFieldsItemCombobox) GetFlags() *DocFormsGet200ResponseFieldsItemComboboxFlags { + if d == nil { + return nil } - var t DocAnnotationsUpdate400ResponseName - return "", fmt.Errorf("%s is not a valid %T", s, t) + return d.Flags } -func (d DocAnnotationsUpdate400ResponseName) Ptr() *DocAnnotationsUpdate400ResponseName { - return &d +func (d *DocFormsGet200ResponseFieldsItemCombobox) GetAlternateName() *string { + if d == nil { + return nil + } + return d.AlternateName } -var ( - docAnnotationsUpdate404ResponseFieldName = big.NewInt(1 << 0) - docAnnotationsUpdate404ResponseFieldCode = big.NewInt(1 << 1) - docAnnotationsUpdate404ResponseFieldMessage = big.NewInt(1 << 2) - docAnnotationsUpdate404ResponseFieldDetails = big.NewInt(1 << 3) -) +func (d *DocFormsGet200ResponseFieldsItemCombobox) GetMappingName() *string { + if d == nil { + return nil + } + return d.MappingName +} -type DocAnnotationsUpdate404Response struct { - Name DocAnnotationsUpdate404ResponseName `json:"name" url:"name"` - Code DocAnnotationsUpdate404ResponseCode `json:"code" url:"code"` - Message string `json:"message" url:"message"` - Details map[string]any `json:"details,omitempty" url:"details,omitempty"` +func (d *DocFormsGet200ResponseFieldsItemCombobox) GetValueEntry() *DocFormsGet200ResponseFieldsItemComboboxValueEntry { + if d == nil { + return nil + } + return d.ValueEntry +} - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +func (d *DocFormsGet200ResponseFieldsItemCombobox) GetDefaultValueEntry() *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry { + if d == nil { + return nil + } + return d.DefaultValueEntry +} + +func (d *DocFormsGet200ResponseFieldsItemCombobox) GetActions() *PdfFieldActions { + if d == nil { + return nil + } + return d.Actions +} + +func (d *DocFormsGet200ResponseFieldsItemCombobox) GetWidgets() []*DocFormsGet200ResponseFieldsItemComboboxWidgetsItem { + if d == nil { + return nil + } + return d.Widgets +} + +func (d *DocFormsGet200ResponseFieldsItemCombobox) GetValue() string { + if d == nil { + return "" + } + return d.Value +} + +func (d *DocFormsGet200ResponseFieldsItemCombobox) GetDefaultValue() string { + if d == nil { + return "" + } + return d.DefaultValue +} + +func (d *DocFormsGet200ResponseFieldsItemCombobox) GetEdit() bool { + if d == nil { + return false + } + return d.Edit +} + +func (d *DocFormsGet200ResponseFieldsItemCombobox) GetOptions() []*DocFormsGet200ResponseFieldsItemComboboxOptionsItem { + if d == nil { + return nil + } + return d.Options +} + +func (d *DocFormsGet200ResponseFieldsItemCombobox) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocFormsGet200ResponseFieldsItemCombobox) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetRef sets the Ref field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemCombobox) SetRef(ref *DocFormsGet200ResponseFieldsItemComboboxRef) { + d.Ref = ref + d.require(docFormsGet200ResponseFieldsItemComboboxFieldRef) +} + +// SetFieldObjectNumber sets the FieldObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemCombobox) SetFieldObjectNumber(fieldObjectNumber int) { + d.FieldObjectNumber = fieldObjectNumber + d.require(docFormsGet200ResponseFieldsItemComboboxFieldFieldObjectNumber) +} + +// SetName sets the Name field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemCombobox) SetName(name string) { + d.Name = name + d.require(docFormsGet200ResponseFieldsItemComboboxFieldName) +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +// SetOrigin sets the Origin field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemCombobox) SetOrigin(origin DocFormsGet200ResponseFieldsItemComboboxOrigin) { + d.Origin = origin + d.require(docFormsGet200ResponseFieldsItemComboboxFieldOrigin) } -func (d *DocAnnotationsUpdate404Response) GetName() DocAnnotationsUpdate404ResponseName { - if d == nil { - return "" - } - return d.Name +// SetFlags sets the Flags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemCombobox) SetFlags(flags *DocFormsGet200ResponseFieldsItemComboboxFlags) { + d.Flags = flags + d.require(docFormsGet200ResponseFieldsItemComboboxFieldFlags) } -func (d *DocAnnotationsUpdate404Response) GetCode() DocAnnotationsUpdate404ResponseCode { - if d == nil { - return "" - } - return d.Code +// SetAlternateName sets the AlternateName field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemCombobox) SetAlternateName(alternateName *string) { + d.AlternateName = alternateName + d.require(docFormsGet200ResponseFieldsItemComboboxFieldAlternateName) } -func (d *DocAnnotationsUpdate404Response) GetMessage() string { - if d == nil { - return "" - } - return d.Message +// SetMappingName sets the MappingName field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemCombobox) SetMappingName(mappingName *string) { + d.MappingName = mappingName + d.require(docFormsGet200ResponseFieldsItemComboboxFieldMappingName) } -func (d *DocAnnotationsUpdate404Response) GetDetails() map[string]any { - if d == nil { - return nil - } - return d.Details +// SetValueEntry sets the ValueEntry field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemCombobox) SetValueEntry(valueEntry *DocFormsGet200ResponseFieldsItemComboboxValueEntry) { + d.ValueEntry = valueEntry + d.require(docFormsGet200ResponseFieldsItemComboboxFieldValueEntry) } -func (d *DocAnnotationsUpdate404Response) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties +// SetDefaultValueEntry sets the DefaultValueEntry field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemCombobox) SetDefaultValueEntry(defaultValueEntry *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry) { + d.DefaultValueEntry = defaultValueEntry + d.require(docFormsGet200ResponseFieldsItemComboboxFieldDefaultValueEntry) } -func (d *DocAnnotationsUpdate404Response) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) +// SetActions sets the Actions field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemCombobox) SetActions(actions *PdfFieldActions) { + d.Actions = actions + d.require(docFormsGet200ResponseFieldsItemComboboxFieldActions) } -// SetName sets the Name field and marks it as non-optional; +// SetWidgets sets the Widgets field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsUpdate404Response) SetName(name DocAnnotationsUpdate404ResponseName) { - d.Name = name - d.require(docAnnotationsUpdate404ResponseFieldName) +func (d *DocFormsGet200ResponseFieldsItemCombobox) SetWidgets(widgets []*DocFormsGet200ResponseFieldsItemComboboxWidgetsItem) { + d.Widgets = widgets + d.require(docFormsGet200ResponseFieldsItemComboboxFieldWidgets) } -// SetCode sets the Code field and marks it as non-optional; +// SetValue sets the Value field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsUpdate404Response) SetCode(code DocAnnotationsUpdate404ResponseCode) { - d.Code = code - d.require(docAnnotationsUpdate404ResponseFieldCode) +func (d *DocFormsGet200ResponseFieldsItemCombobox) SetValue(value string) { + d.Value = value + d.require(docFormsGet200ResponseFieldsItemComboboxFieldValue) } -// SetMessage sets the Message field and marks it as non-optional; +// SetDefaultValue sets the DefaultValue field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsUpdate404Response) SetMessage(message string) { - d.Message = message - d.require(docAnnotationsUpdate404ResponseFieldMessage) +func (d *DocFormsGet200ResponseFieldsItemCombobox) SetDefaultValue(defaultValue string) { + d.DefaultValue = defaultValue + d.require(docFormsGet200ResponseFieldsItemComboboxFieldDefaultValue) } -// SetDetails sets the Details field and marks it as non-optional; +// SetEdit sets the Edit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocAnnotationsUpdate404Response) SetDetails(details map[string]any) { - d.Details = details - d.require(docAnnotationsUpdate404ResponseFieldDetails) +func (d *DocFormsGet200ResponseFieldsItemCombobox) SetEdit(edit bool) { + d.Edit = edit + d.require(docFormsGet200ResponseFieldsItemComboboxFieldEdit) } -func (d *DocAnnotationsUpdate404Response) UnmarshalJSON(data []byte) error { - type unmarshaler DocAnnotationsUpdate404Response +// SetOptions sets the Options field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemCombobox) SetOptions(options []*DocFormsGet200ResponseFieldsItemComboboxOptionsItem) { + d.Options = options + d.require(docFormsGet200ResponseFieldsItemComboboxFieldOptions) +} + +func (d *DocFormsGet200ResponseFieldsItemCombobox) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemCombobox var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocAnnotationsUpdate404Response(value) + *d = DocFormsGet200ResponseFieldsItemCombobox(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -112736,8 +131666,8 @@ func (d *DocAnnotationsUpdate404Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocAnnotationsUpdate404Response) MarshalJSON() ([]byte, error) { - type embed DocAnnotationsUpdate404Response +func (d *DocFormsGet200ResponseFieldsItemCombobox) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemCombobox var marshaler = struct { embed }{ @@ -112747,7 +131677,7 @@ func (d *DocAnnotationsUpdate404Response) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocAnnotationsUpdate404Response) String() string { +func (d *DocFormsGet200ResponseFieldsItemCombobox) String() string { if d == nil { return "" } @@ -112762,372 +131692,186 @@ func (d *DocAnnotationsUpdate404Response) String() string { return fmt.Sprintf("%#v", d) } -type DocAnnotationsUpdate404ResponseCode string - -const ( - DocAnnotationsUpdate404ResponseCodeUnknown DocAnnotationsUpdate404ResponseCode = "Unknown" - DocAnnotationsUpdate404ResponseCodeInvalidArg DocAnnotationsUpdate404ResponseCode = "InvalidArg" - DocAnnotationsUpdate404ResponseCodeDocNotOpen DocAnnotationsUpdate404ResponseCode = "DocNotOpen" - DocAnnotationsUpdate404ResponseCodeDocOpenFailed DocAnnotationsUpdate404ResponseCode = "DocOpenFailed" - DocAnnotationsUpdate404ResponseCodeDocPasswordRequired DocAnnotationsUpdate404ResponseCode = "DocPasswordRequired" - DocAnnotationsUpdate404ResponseCodeDocPasswordIncorrect DocAnnotationsUpdate404ResponseCode = "DocPasswordIncorrect" - DocAnnotationsUpdate404ResponseCodeSharePasswordRequired DocAnnotationsUpdate404ResponseCode = "SharePasswordRequired" - DocAnnotationsUpdate404ResponseCodeAborted DocAnnotationsUpdate404ResponseCode = "Aborted" - DocAnnotationsUpdate404ResponseCodeNetwork DocAnnotationsUpdate404ResponseCode = "Network" - DocAnnotationsUpdate404ResponseCodeUnauthenticated DocAnnotationsUpdate404ResponseCode = "Unauthenticated" - DocAnnotationsUpdate404ResponseCodeForbidden DocAnnotationsUpdate404ResponseCode = "Forbidden" - DocAnnotationsUpdate404ResponseCodeNotFound DocAnnotationsUpdate404ResponseCode = "NotFound" - DocAnnotationsUpdate404ResponseCodeWireFormat DocAnnotationsUpdate404ResponseCode = "WireFormat" - DocAnnotationsUpdate404ResponseCodeRuntimeUnavailable DocAnnotationsUpdate404ResponseCode = "RuntimeUnavailable" - DocAnnotationsUpdate404ResponseCodeInvalidReference DocAnnotationsUpdate404ResponseCode = "InvalidReference" - DocAnnotationsUpdate404ResponseCodeWeakAnnotationSessionConflict DocAnnotationsUpdate404ResponseCode = "WeakAnnotationSessionConflict" - DocAnnotationsUpdate404ResponseCodeLayerVersionConflict DocAnnotationsUpdate404ResponseCode = "LayerVersionConflict" - DocAnnotationsUpdate404ResponseCodeNotImplemented DocAnnotationsUpdate404ResponseCode = "NotImplemented" - DocAnnotationsUpdate404ResponseCodeMalformedPdf DocAnnotationsUpdate404ResponseCode = "MalformedPdf" - DocAnnotationsUpdate404ResponseCodeSigningPending DocAnnotationsUpdate404ResponseCode = "SigningPending" - DocAnnotationsUpdate404ResponseCodeSigningExpired DocAnnotationsUpdate404ResponseCode = "SigningExpired" - DocAnnotationsUpdate404ResponseCodeSigningVersionMismatch DocAnnotationsUpdate404ResponseCode = "SigningVersionMismatch" - DocAnnotationsUpdate404ResponseCodeSignatureRefused DocAnnotationsUpdate404ResponseCode = "SignatureRefused" - DocAnnotationsUpdate404ResponseCodeProtectedDocument DocAnnotationsUpdate404ResponseCode = "ProtectedDocument" - DocAnnotationsUpdate404ResponseCodeStaleBase DocAnnotationsUpdate404ResponseCode = "StaleBase" -) - -func NewDocAnnotationsUpdate404ResponseCodeFromString(s string) (DocAnnotationsUpdate404ResponseCode, error) { - switch s { - case "Unknown": - return DocAnnotationsUpdate404ResponseCodeUnknown, nil - case "InvalidArg": - return DocAnnotationsUpdate404ResponseCodeInvalidArg, nil - case "DocNotOpen": - return DocAnnotationsUpdate404ResponseCodeDocNotOpen, nil - case "DocOpenFailed": - return DocAnnotationsUpdate404ResponseCodeDocOpenFailed, nil - case "DocPasswordRequired": - return DocAnnotationsUpdate404ResponseCodeDocPasswordRequired, nil - case "DocPasswordIncorrect": - return DocAnnotationsUpdate404ResponseCodeDocPasswordIncorrect, nil - case "SharePasswordRequired": - return DocAnnotationsUpdate404ResponseCodeSharePasswordRequired, nil - case "Aborted": - return DocAnnotationsUpdate404ResponseCodeAborted, nil - case "Network": - return DocAnnotationsUpdate404ResponseCodeNetwork, nil - case "Unauthenticated": - return DocAnnotationsUpdate404ResponseCodeUnauthenticated, nil - case "Forbidden": - return DocAnnotationsUpdate404ResponseCodeForbidden, nil - case "NotFound": - return DocAnnotationsUpdate404ResponseCodeNotFound, nil - case "WireFormat": - return DocAnnotationsUpdate404ResponseCodeWireFormat, nil - case "RuntimeUnavailable": - return DocAnnotationsUpdate404ResponseCodeRuntimeUnavailable, nil - case "InvalidReference": - return DocAnnotationsUpdate404ResponseCodeInvalidReference, nil - case "WeakAnnotationSessionConflict": - return DocAnnotationsUpdate404ResponseCodeWeakAnnotationSessionConflict, nil - case "LayerVersionConflict": - return DocAnnotationsUpdate404ResponseCodeLayerVersionConflict, nil - case "NotImplemented": - return DocAnnotationsUpdate404ResponseCodeNotImplemented, nil - case "MalformedPdf": - return DocAnnotationsUpdate404ResponseCodeMalformedPdf, nil - case "SigningPending": - return DocAnnotationsUpdate404ResponseCodeSigningPending, nil - case "SigningExpired": - return DocAnnotationsUpdate404ResponseCodeSigningExpired, nil - case "SigningVersionMismatch": - return DocAnnotationsUpdate404ResponseCodeSigningVersionMismatch, nil - case "SignatureRefused": - return DocAnnotationsUpdate404ResponseCodeSignatureRefused, nil - case "ProtectedDocument": - return DocAnnotationsUpdate404ResponseCodeProtectedDocument, nil - case "StaleBase": - return DocAnnotationsUpdate404ResponseCodeStaleBase, nil - } - var t DocAnnotationsUpdate404ResponseCode - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsUpdate404ResponseCode) Ptr() *DocAnnotationsUpdate404ResponseCode { - return &d -} - -type DocAnnotationsUpdate404ResponseName string - -const ( - DocAnnotationsUpdate404ResponseNameEngineError DocAnnotationsUpdate404ResponseName = "EngineError" -) - -func NewDocAnnotationsUpdate404ResponseNameFromString(s string) (DocAnnotationsUpdate404ResponseName, error) { - switch s { - case "EngineError": - return DocAnnotationsUpdate404ResponseNameEngineError, nil - } - var t DocAnnotationsUpdate404ResponseName - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocAnnotationsUpdate404ResponseName) Ptr() *DocAnnotationsUpdate404ResponseName { - return &d -} - -type DocAnnotationsUpdateRequest = map[string]any - -var ( - docDownloadResponseFieldName = big.NewInt(1 << 0) - docDownloadResponseFieldCode = big.NewInt(1 << 1) - docDownloadResponseFieldMessage = big.NewInt(1 << 2) - docDownloadResponseFieldDetails = big.NewInt(1 << 3) -) - -type DocDownloadResponse struct { - Name DocDownloadResponseName `json:"name" url:"name"` - Code DocDownloadResponseCode `json:"code" url:"code"` - Message string `json:"message" url:"message"` - Details map[string]any `json:"details,omitempty" url:"details,omitempty"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +type DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry struct { + Kind string + None *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone + Scalar *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar + Array *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray + Unsupported *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported - extraProperties map[string]interface{} - rawJSON json.RawMessage + rawJSON json.RawMessage } -func (d *DocDownloadResponse) GetName() DocDownloadResponseName { +func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry) GetKind() string { if d == nil { return "" } - return d.Name + return d.Kind } -func (d *DocDownloadResponse) GetCode() DocDownloadResponseCode { +func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry) GetNone() *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone { if d == nil { - return "" + return nil } - return d.Code + return d.None } -func (d *DocDownloadResponse) GetMessage() string { +func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry) GetScalar() *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar { if d == nil { - return "" + return nil } - return d.Message + return d.Scalar } -func (d *DocDownloadResponse) GetDetails() map[string]any { +func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry) GetArray() *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray { if d == nil { return nil } - return d.Details + return d.Array } -func (d *DocDownloadResponse) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry) GetUnsupported() *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported { if d == nil { return nil } - return d.extraProperties + return d.Unsupported } -func (d *DocDownloadResponse) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetName sets the Name field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocDownloadResponse) SetName(name DocDownloadResponseName) { - d.Name = name - d.require(docDownloadResponseFieldName) -} - -// SetCode sets the Code field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocDownloadResponse) SetCode(code DocDownloadResponseCode) { - d.Code = code - d.require(docDownloadResponseFieldCode) -} - -// SetMessage sets the Message field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocDownloadResponse) SetMessage(message string) { - d.Message = message - d.require(docDownloadResponseFieldMessage) -} - -// SetDetails sets the Details field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocDownloadResponse) SetDetails(details map[string]any) { - d.Details = details - d.require(docDownloadResponseFieldDetails) -} - -func (d *DocDownloadResponse) UnmarshalJSON(data []byte) error { - type unmarshaler DocDownloadResponse - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { + if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocDownloadResponse(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "none": + value := new(DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.None = value + case "scalar": + value := new(DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Scalar = value + case "array": + value := new(DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Array = value + case "unsupported": + value := new(DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Unsupported = value } - d.extraProperties = extraProperties d.rawJSON = json.RawMessage(data) return nil } -func (d *DocDownloadResponse) MarshalJSON() ([]byte, error) { - type embed DocDownloadResponse - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) -} - -func (d *DocDownloadResponse) String() string { - if d == nil { - return "" + if d.None != nil { + return internal.MarshalJSONWithExtraProperty(d.None, "kind", "none") } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } + if d.Scalar != nil { + return internal.MarshalJSONWithExtraProperty(d.Scalar, "kind", "scalar") } - if value, err := internal.StringifyJSON(d); err == nil { - return value + if d.Array != nil { + return internal.MarshalJSONWithExtraProperty(d.Array, "kind", "array") } - return fmt.Sprintf("%#v", d) + if d.Unsupported != nil { + return internal.MarshalJSONWithExtraProperty(d.Unsupported, "kind", "unsupported") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocDownloadResponseCode string +type DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryVisitor interface { + VisitNone(*DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone) error + VisitScalar(*DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar) error + VisitArray(*DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray) error + VisitUnsupported(*DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported) error +} -const ( - DocDownloadResponseCodeUnknown DocDownloadResponseCode = "Unknown" - DocDownloadResponseCodeInvalidArg DocDownloadResponseCode = "InvalidArg" - DocDownloadResponseCodeDocNotOpen DocDownloadResponseCode = "DocNotOpen" - DocDownloadResponseCodeDocOpenFailed DocDownloadResponseCode = "DocOpenFailed" - DocDownloadResponseCodeDocPasswordRequired DocDownloadResponseCode = "DocPasswordRequired" - DocDownloadResponseCodeDocPasswordIncorrect DocDownloadResponseCode = "DocPasswordIncorrect" - DocDownloadResponseCodeSharePasswordRequired DocDownloadResponseCode = "SharePasswordRequired" - DocDownloadResponseCodeAborted DocDownloadResponseCode = "Aborted" - DocDownloadResponseCodeNetwork DocDownloadResponseCode = "Network" - DocDownloadResponseCodeUnauthenticated DocDownloadResponseCode = "Unauthenticated" - DocDownloadResponseCodeForbidden DocDownloadResponseCode = "Forbidden" - DocDownloadResponseCodeNotFound DocDownloadResponseCode = "NotFound" - DocDownloadResponseCodeWireFormat DocDownloadResponseCode = "WireFormat" - DocDownloadResponseCodeRuntimeUnavailable DocDownloadResponseCode = "RuntimeUnavailable" - DocDownloadResponseCodeInvalidReference DocDownloadResponseCode = "InvalidReference" - DocDownloadResponseCodeWeakAnnotationSessionConflict DocDownloadResponseCode = "WeakAnnotationSessionConflict" - DocDownloadResponseCodeLayerVersionConflict DocDownloadResponseCode = "LayerVersionConflict" - DocDownloadResponseCodeNotImplemented DocDownloadResponseCode = "NotImplemented" - DocDownloadResponseCodeMalformedPdf DocDownloadResponseCode = "MalformedPdf" - DocDownloadResponseCodeSigningPending DocDownloadResponseCode = "SigningPending" - DocDownloadResponseCodeSigningExpired DocDownloadResponseCode = "SigningExpired" - DocDownloadResponseCodeSigningVersionMismatch DocDownloadResponseCode = "SigningVersionMismatch" - DocDownloadResponseCodeSignatureRefused DocDownloadResponseCode = "SignatureRefused" - DocDownloadResponseCodeProtectedDocument DocDownloadResponseCode = "ProtectedDocument" - DocDownloadResponseCodeStaleBase DocDownloadResponseCode = "StaleBase" -) +func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry) Accept(visitor DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryVisitor) error { + if d.None != nil { + return visitor.VisitNone(d.None) + } + if d.Scalar != nil { + return visitor.VisitScalar(d.Scalar) + } + if d.Array != nil { + return visitor.VisitArray(d.Array) + } + if d.Unsupported != nil { + return visitor.VisitUnsupported(d.Unsupported) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} -func NewDocDownloadResponseCodeFromString(s string) (DocDownloadResponseCode, error) { - switch s { - case "Unknown": - return DocDownloadResponseCodeUnknown, nil - case "InvalidArg": - return DocDownloadResponseCodeInvalidArg, nil - case "DocNotOpen": - return DocDownloadResponseCodeDocNotOpen, nil - case "DocOpenFailed": - return DocDownloadResponseCodeDocOpenFailed, nil - case "DocPasswordRequired": - return DocDownloadResponseCodeDocPasswordRequired, nil - case "DocPasswordIncorrect": - return DocDownloadResponseCodeDocPasswordIncorrect, nil - case "SharePasswordRequired": - return DocDownloadResponseCodeSharePasswordRequired, nil - case "Aborted": - return DocDownloadResponseCodeAborted, nil - case "Network": - return DocDownloadResponseCodeNetwork, nil - case "Unauthenticated": - return DocDownloadResponseCodeUnauthenticated, nil - case "Forbidden": - return DocDownloadResponseCodeForbidden, nil - case "NotFound": - return DocDownloadResponseCodeNotFound, nil - case "WireFormat": - return DocDownloadResponseCodeWireFormat, nil - case "RuntimeUnavailable": - return DocDownloadResponseCodeRuntimeUnavailable, nil - case "InvalidReference": - return DocDownloadResponseCodeInvalidReference, nil - case "WeakAnnotationSessionConflict": - return DocDownloadResponseCodeWeakAnnotationSessionConflict, nil - case "LayerVersionConflict": - return DocDownloadResponseCodeLayerVersionConflict, nil - case "NotImplemented": - return DocDownloadResponseCodeNotImplemented, nil - case "MalformedPdf": - return DocDownloadResponseCodeMalformedPdf, nil - case "SigningPending": - return DocDownloadResponseCodeSigningPending, nil - case "SigningExpired": - return DocDownloadResponseCodeSigningExpired, nil - case "SigningVersionMismatch": - return DocDownloadResponseCodeSigningVersionMismatch, nil - case "SignatureRefused": - return DocDownloadResponseCodeSignatureRefused, nil - case "ProtectedDocument": - return DocDownloadResponseCodeProtectedDocument, nil - case "StaleBase": - return DocDownloadResponseCodeStaleBase, nil +func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.None != nil { + fields = append(fields, "none") + } + if d.Scalar != nil { + fields = append(fields, "scalar") + } + if d.Array != nil { + fields = append(fields, "array") + } + if d.Unsupported != nil { + fields = append(fields, "unsupported") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) } - var t DocDownloadResponseCode - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocDownloadResponseCode) Ptr() *DocDownloadResponseCode { - return &d -} - -type DocDownloadResponseName string - -const ( - DocDownloadResponseNameEngineError DocDownloadResponseName = "EngineError" -) - -func NewDocDownloadResponseNameFromString(s string) (DocDownloadResponseName, error) { - switch s { - case "EngineError": - return DocDownloadResponseNameEngineError, nil + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) } - var t DocDownloadResponseName - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocDownloadResponseName) Ptr() *DocDownloadResponseName { - return &d + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil } var ( - docFormsExportDataResponseFieldName = big.NewInt(1 << 0) - docFormsExportDataResponseFieldCode = big.NewInt(1 << 1) - docFormsExportDataResponseFieldMessage = big.NewInt(1 << 2) - docFormsExportDataResponseFieldDetails = big.NewInt(1 << 3) + docFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArrayFieldValues = big.NewInt(1 << 0) ) -type DocFormsExportDataResponse struct { - Name DocFormsExportDataResponseName `json:"name" url:"name"` - Code DocFormsExportDataResponseCode `json:"code" url:"code"` - Message string `json:"message" url:"message"` - Details map[string]any `json:"details,omitempty" url:"details,omitempty"` +type DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray struct { + Values []string `json:"values" url:"values"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -113136,83 +131880,41 @@ type DocFormsExportDataResponse struct { rawJSON json.RawMessage } -func (d *DocFormsExportDataResponse) GetName() DocFormsExportDataResponseName { - if d == nil { - return "" - } - return d.Name -} - -func (d *DocFormsExportDataResponse) GetCode() DocFormsExportDataResponseCode { - if d == nil { - return "" - } - return d.Code -} - -func (d *DocFormsExportDataResponse) GetMessage() string { - if d == nil { - return "" - } - return d.Message -} - -func (d *DocFormsExportDataResponse) GetDetails() map[string]any { +func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray) GetValues() []string { if d == nil { return nil } - return d.Details + return d.Values } -func (d *DocFormsExportDataResponse) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsExportDataResponse) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetName sets the Name field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsExportDataResponse) SetName(name DocFormsExportDataResponseName) { - d.Name = name - d.require(docFormsExportDataResponseFieldName) -} - -// SetCode sets the Code field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsExportDataResponse) SetCode(code DocFormsExportDataResponseCode) { - d.Code = code - d.require(docFormsExportDataResponseFieldCode) -} - -// SetMessage sets the Message field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsExportDataResponse) SetMessage(message string) { - d.Message = message - d.require(docFormsExportDataResponseFieldMessage) -} - -// SetDetails sets the Details field and marks it as non-optional; +// SetValues sets the Values field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsExportDataResponse) SetDetails(details map[string]any) { - d.Details = details - d.require(docFormsExportDataResponseFieldDetails) +func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray) SetValues(values []string) { + d.Values = values + d.require(docFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArrayFieldValues) } -func (d *DocFormsExportDataResponse) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsExportDataResponse +func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsExportDataResponse(value) + *d = DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -113222,8 +131924,8 @@ func (d *DocFormsExportDataResponse) UnmarshalJSON(data []byte) error { return nil } -func (d *DocFormsExportDataResponse) MarshalJSON() ([]byte, error) { - type embed DocFormsExportDataResponse +func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray var marshaler = struct { embed }{ @@ -113233,7 +131935,7 @@ func (d *DocFormsExportDataResponse) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocFormsExportDataResponse) String() string { +func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray) String() string { if d == nil { return "" } @@ -113248,128 +131950,77 @@ func (d *DocFormsExportDataResponse) String() string { return fmt.Sprintf("%#v", d) } -type DocFormsExportDataResponseCode string +type DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone struct { -const ( - DocFormsExportDataResponseCodeUnknown DocFormsExportDataResponseCode = "Unknown" - DocFormsExportDataResponseCodeInvalidArg DocFormsExportDataResponseCode = "InvalidArg" - DocFormsExportDataResponseCodeDocNotOpen DocFormsExportDataResponseCode = "DocNotOpen" - DocFormsExportDataResponseCodeDocOpenFailed DocFormsExportDataResponseCode = "DocOpenFailed" - DocFormsExportDataResponseCodeDocPasswordRequired DocFormsExportDataResponseCode = "DocPasswordRequired" - DocFormsExportDataResponseCodeDocPasswordIncorrect DocFormsExportDataResponseCode = "DocPasswordIncorrect" - DocFormsExportDataResponseCodeSharePasswordRequired DocFormsExportDataResponseCode = "SharePasswordRequired" - DocFormsExportDataResponseCodeAborted DocFormsExportDataResponseCode = "Aborted" - DocFormsExportDataResponseCodeNetwork DocFormsExportDataResponseCode = "Network" - DocFormsExportDataResponseCodeUnauthenticated DocFormsExportDataResponseCode = "Unauthenticated" - DocFormsExportDataResponseCodeForbidden DocFormsExportDataResponseCode = "Forbidden" - DocFormsExportDataResponseCodeNotFound DocFormsExportDataResponseCode = "NotFound" - DocFormsExportDataResponseCodeWireFormat DocFormsExportDataResponseCode = "WireFormat" - DocFormsExportDataResponseCodeRuntimeUnavailable DocFormsExportDataResponseCode = "RuntimeUnavailable" - DocFormsExportDataResponseCodeInvalidReference DocFormsExportDataResponseCode = "InvalidReference" - DocFormsExportDataResponseCodeWeakAnnotationSessionConflict DocFormsExportDataResponseCode = "WeakAnnotationSessionConflict" - DocFormsExportDataResponseCodeLayerVersionConflict DocFormsExportDataResponseCode = "LayerVersionConflict" - DocFormsExportDataResponseCodeNotImplemented DocFormsExportDataResponseCode = "NotImplemented" - DocFormsExportDataResponseCodeMalformedPdf DocFormsExportDataResponseCode = "MalformedPdf" - DocFormsExportDataResponseCodeSigningPending DocFormsExportDataResponseCode = "SigningPending" - DocFormsExportDataResponseCodeSigningExpired DocFormsExportDataResponseCode = "SigningExpired" - DocFormsExportDataResponseCodeSigningVersionMismatch DocFormsExportDataResponseCode = "SigningVersionMismatch" - DocFormsExportDataResponseCodeSignatureRefused DocFormsExportDataResponseCode = "SignatureRefused" - DocFormsExportDataResponseCodeProtectedDocument DocFormsExportDataResponseCode = "ProtectedDocument" - DocFormsExportDataResponseCodeStaleBase DocFormsExportDataResponseCode = "StaleBase" -) + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` -func NewDocFormsExportDataResponseCodeFromString(s string) (DocFormsExportDataResponseCode, error) { - switch s { - case "Unknown": - return DocFormsExportDataResponseCodeUnknown, nil - case "InvalidArg": - return DocFormsExportDataResponseCodeInvalidArg, nil - case "DocNotOpen": - return DocFormsExportDataResponseCodeDocNotOpen, nil - case "DocOpenFailed": - return DocFormsExportDataResponseCodeDocOpenFailed, nil - case "DocPasswordRequired": - return DocFormsExportDataResponseCodeDocPasswordRequired, nil - case "DocPasswordIncorrect": - return DocFormsExportDataResponseCodeDocPasswordIncorrect, nil - case "SharePasswordRequired": - return DocFormsExportDataResponseCodeSharePasswordRequired, nil - case "Aborted": - return DocFormsExportDataResponseCodeAborted, nil - case "Network": - return DocFormsExportDataResponseCodeNetwork, nil - case "Unauthenticated": - return DocFormsExportDataResponseCodeUnauthenticated, nil - case "Forbidden": - return DocFormsExportDataResponseCodeForbidden, nil - case "NotFound": - return DocFormsExportDataResponseCodeNotFound, nil - case "WireFormat": - return DocFormsExportDataResponseCodeWireFormat, nil - case "RuntimeUnavailable": - return DocFormsExportDataResponseCodeRuntimeUnavailable, nil - case "InvalidReference": - return DocFormsExportDataResponseCodeInvalidReference, nil - case "WeakAnnotationSessionConflict": - return DocFormsExportDataResponseCodeWeakAnnotationSessionConflict, nil - case "LayerVersionConflict": - return DocFormsExportDataResponseCodeLayerVersionConflict, nil - case "NotImplemented": - return DocFormsExportDataResponseCodeNotImplemented, nil - case "MalformedPdf": - return DocFormsExportDataResponseCodeMalformedPdf, nil - case "SigningPending": - return DocFormsExportDataResponseCodeSigningPending, nil - case "SigningExpired": - return DocFormsExportDataResponseCodeSigningExpired, nil - case "SigningVersionMismatch": - return DocFormsExportDataResponseCodeSigningVersionMismatch, nil - case "SignatureRefused": - return DocFormsExportDataResponseCodeSignatureRefused, nil - case "ProtectedDocument": - return DocFormsExportDataResponseCodeProtectedDocument, nil - case "StaleBase": - return DocFormsExportDataResponseCodeStaleBase, nil - } - var t DocFormsExportDataResponseCode - return "", fmt.Errorf("%s is not a valid %T", s, t) + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d DocFormsExportDataResponseCode) Ptr() *DocFormsExportDataResponseCode { - return &d +func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties } -type DocFormsExportDataResponseName string +func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} -const ( - DocFormsExportDataResponseNameEngineError DocFormsExportDataResponseName = "EngineError" -) +func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} -func NewDocFormsExportDataResponseNameFromString(s string) (DocFormsExportDataResponseName, error) { - switch s { - case "EngineError": - return DocFormsExportDataResponseNameEngineError, nil +func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone + var marshaler = struct { + embed + }{ + embed: embed(*d), } - var t DocFormsExportDataResponseName - return "", fmt.Errorf("%s is not a valid %T", s, t) + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d DocFormsExportDataResponseName) Ptr() *DocFormsExportDataResponseName { - return &d +func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } var ( - docFormsGet200ResponseFieldFormKind = big.NewInt(1 << 0) - docFormsGet200ResponseFieldNeedsAppearances = big.NewInt(1 << 1) - docFormsGet200ResponseFieldFields = big.NewInt(1 << 2) - docFormsGet200ResponseFieldCalculationOrder = big.NewInt(1 << 3) + docFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalarFieldValue = big.NewInt(1 << 0) ) -type DocFormsGet200Response struct { - FormKind DocFormsGet200ResponseFormKind `json:"formKind" url:"formKind"` - NeedsAppearances bool `json:"needsAppearances" url:"needsAppearances"` - Fields []*DocFormsGet200ResponseFieldsItem `json:"fields" url:"fields"` - CalculationOrder []*DocFormsGet200ResponseCalculationOrderItem `json:"calculationOrder" url:"calculationOrder"` +type DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar struct { + Value string `json:"value" url:"value"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -113378,83 +132029,41 @@ type DocFormsGet200Response struct { rawJSON json.RawMessage } -func (d *DocFormsGet200Response) GetFormKind() DocFormsGet200ResponseFormKind { +func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar) GetValue() string { if d == nil { return "" } - return d.FormKind -} - -func (d *DocFormsGet200Response) GetNeedsAppearances() bool { - if d == nil { - return false - } - return d.NeedsAppearances -} - -func (d *DocFormsGet200Response) GetFields() []*DocFormsGet200ResponseFieldsItem { - if d == nil { - return nil - } - return d.Fields -} - -func (d *DocFormsGet200Response) GetCalculationOrder() []*DocFormsGet200ResponseCalculationOrderItem { - if d == nil { - return nil - } - return d.CalculationOrder + return d.Value } -func (d *DocFormsGet200Response) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200Response) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetFormKind sets the FormKind field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200Response) SetFormKind(formKind DocFormsGet200ResponseFormKind) { - d.FormKind = formKind - d.require(docFormsGet200ResponseFieldFormKind) -} - -// SetNeedsAppearances sets the NeedsAppearances field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200Response) SetNeedsAppearances(needsAppearances bool) { - d.NeedsAppearances = needsAppearances - d.require(docFormsGet200ResponseFieldNeedsAppearances) -} - -// SetFields sets the Fields field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200Response) SetFields(fields []*DocFormsGet200ResponseFieldsItem) { - d.Fields = fields - d.require(docFormsGet200ResponseFieldFields) -} - -// SetCalculationOrder sets the CalculationOrder field and marks it as non-optional; +// SetValue sets the Value field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200Response) SetCalculationOrder(calculationOrder []*DocFormsGet200ResponseCalculationOrderItem) { - d.CalculationOrder = calculationOrder - d.require(docFormsGet200ResponseFieldCalculationOrder) +func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar) SetValue(value string) { + d.Value = value + d.require(docFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalarFieldValue) } -func (d *DocFormsGet200Response) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200Response +func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200Response(value) + *d = DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -113464,8 +132073,8 @@ func (d *DocFormsGet200Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocFormsGet200Response) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200Response +func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar var marshaler = struct { embed }{ @@ -113475,7 +132084,7 @@ func (d *DocFormsGet200Response) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200Response) String() string { +func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar) String() string { if d == nil { return "" } @@ -113490,181 +132099,168 @@ func (d *DocFormsGet200Response) String() string { return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseCalculationOrderItem struct { - Kind string - ObjectNumber *DocFormsGet200ResponseCalculationOrderItemObjectNumber - Fqn *DocFormsGet200ResponseCalculationOrderItemFqn +type DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported struct { - rawJSON json.RawMessage -} + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` -func (d *DocFormsGet200ResponseCalculationOrderItem) GetKind() string { - if d == nil { - return "" - } - return d.Kind + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseCalculationOrderItem) GetObjectNumber() *DocFormsGet200ResponseCalculationOrderItemObjectNumber { +func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.ObjectNumber + return d.extraProperties } -func (d *DocFormsGet200ResponseCalculationOrderItem) GetFqn() *DocFormsGet200ResponseCalculationOrderItemFqn { - if d == nil { - return nil +func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.Fqn + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocFormsGet200ResponseCalculationOrderItem) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocFormsGet200ResponseCalculationOrderItemObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "fqn": - value := new(DocFormsGet200ResponseCalculationOrderItemFqn) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Fqn = value + *d = DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err } + d.extraProperties = extraProperties d.rawJSON = json.RawMessage(data) return nil } -func (d DocFormsGet200ResponseCalculationOrderItem) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Fqn != nil { - return internal.MarshalJSONWithExtraProperty(d.Fqn, "kind", "fqn") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil - } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) -} - -type DocFormsGet200ResponseCalculationOrderItemVisitor interface { - VisitObjectNumber(*DocFormsGet200ResponseCalculationOrderItemObjectNumber) error - VisitFqn(*DocFormsGet200ResponseCalculationOrderItemFqn) error -} - -func (d *DocFormsGet200ResponseCalculationOrderItem) Accept(visitor DocFormsGet200ResponseCalculationOrderItemVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) - } - if d.Fqn != nil { - return visitor.VisitFqn(d.Fqn) +func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return fmt.Errorf("type %T does not define a non-empty union type", d) + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseCalculationOrderItem) validate() error { +func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported) String() string { if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Fqn != nil { - fields = append(fields, "fqn") + return "" } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } + if value, err := internal.StringifyJSON(d); err == nil { + return value } - return nil + return fmt.Sprintf("%#v", d) } var ( - docFormsGet200ResponseCalculationOrderItemFqnFieldName = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemComboboxFlagsFieldReadOnly = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemComboboxFlagsFieldRequired = big.NewInt(1 << 1) + docFormsGet200ResponseFieldsItemComboboxFlagsFieldNoExport = big.NewInt(1 << 2) + docFormsGet200ResponseFieldsItemComboboxFlagsFieldRaw = big.NewInt(1 << 3) ) -type DocFormsGet200ResponseCalculationOrderItemFqn struct { - Name string `json:"name" url:"name"` +type DocFormsGet200ResponseFieldsItemComboboxFlags struct { + ReadOnly bool `json:"readOnly" url:"readOnly"` + Required bool `json:"required" url:"required"` + NoExport bool `json:"noExport" url:"noExport"` + Raw int `json:"raw" url:"raw"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocFormsGet200ResponseFieldsItemComboboxFlags) GetReadOnly() bool { + if d == nil { + return false + } + return d.ReadOnly +} - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +func (d *DocFormsGet200ResponseFieldsItemComboboxFlags) GetRequired() bool { + if d == nil { + return false + } + return d.Required +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocFormsGet200ResponseFieldsItemComboboxFlags) GetNoExport() bool { + if d == nil { + return false + } + return d.NoExport } -func (d *DocFormsGet200ResponseCalculationOrderItemFqn) GetName() string { +func (d *DocFormsGet200ResponseFieldsItemComboboxFlags) GetRaw() int { if d == nil { - return "" + return 0 } - return d.Name + return d.Raw } -func (d *DocFormsGet200ResponseCalculationOrderItemFqn) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemComboboxFlags) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseCalculationOrderItemFqn) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemComboboxFlags) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetName sets the Name field and marks it as non-optional; +// SetReadOnly sets the ReadOnly field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseCalculationOrderItemFqn) SetName(name string) { - d.Name = name - d.require(docFormsGet200ResponseCalculationOrderItemFqnFieldName) +func (d *DocFormsGet200ResponseFieldsItemComboboxFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + d.require(docFormsGet200ResponseFieldsItemComboboxFlagsFieldReadOnly) } -func (d *DocFormsGet200ResponseCalculationOrderItemFqn) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseCalculationOrderItemFqn +// SetRequired sets the Required field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemComboboxFlags) SetRequired(required bool) { + d.Required = required + d.require(docFormsGet200ResponseFieldsItemComboboxFlagsFieldRequired) +} + +// SetNoExport sets the NoExport field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemComboboxFlags) SetNoExport(noExport bool) { + d.NoExport = noExport + d.require(docFormsGet200ResponseFieldsItemComboboxFlagsFieldNoExport) +} + +// SetRaw sets the Raw field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemComboboxFlags) SetRaw(raw int) { + d.Raw = raw + d.require(docFormsGet200ResponseFieldsItemComboboxFlagsFieldRaw) +} + +func (d *DocFormsGet200ResponseFieldsItemComboboxFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemComboboxFlags var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseCalculationOrderItemFqn(value) + *d = DocFormsGet200ResponseFieldsItemComboboxFlags(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -113674,8 +132270,8 @@ func (d *DocFormsGet200ResponseCalculationOrderItemFqn) UnmarshalJSON(data []byt return nil } -func (d *DocFormsGet200ResponseCalculationOrderItemFqn) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseCalculationOrderItemFqn +func (d *DocFormsGet200ResponseFieldsItemComboboxFlags) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemComboboxFlags var marshaler = struct { embed }{ @@ -113685,7 +132281,7 @@ func (d *DocFormsGet200ResponseCalculationOrderItemFqn) MarshalJSON() ([]byte, e return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseCalculationOrderItemFqn) String() string { +func (d *DocFormsGet200ResponseFieldsItemComboboxFlags) String() string { if d == nil { return "" } @@ -113701,11 +132297,15 @@ func (d *DocFormsGet200ResponseCalculationOrderItemFqn) String() string { } var ( - docFormsGet200ResponseCalculationOrderItemObjectNumberFieldFieldObjectNumber = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemComboboxOptionsItemFieldLabel = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemComboboxOptionsItemFieldValue = big.NewInt(1 << 1) + docFormsGet200ResponseFieldsItemComboboxOptionsItemFieldSelected = big.NewInt(1 << 2) ) -type DocFormsGet200ResponseCalculationOrderItemObjectNumber struct { - FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` +type DocFormsGet200ResponseFieldsItemComboboxOptionsItem struct { + Label string `json:"label" url:"label"` + Value string `json:"value" url:"value"` + Selected bool `json:"selected" url:"selected"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -113714,41 +132314,69 @@ type DocFormsGet200ResponseCalculationOrderItemObjectNumber struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseCalculationOrderItemObjectNumber) GetFieldObjectNumber() int { +func (d *DocFormsGet200ResponseFieldsItemComboboxOptionsItem) GetLabel() string { if d == nil { - return 0 + return "" } - return d.FieldObjectNumber + return d.Label } -func (d *DocFormsGet200ResponseCalculationOrderItemObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemComboboxOptionsItem) GetValue() string { + if d == nil { + return "" + } + return d.Value +} + +func (d *DocFormsGet200ResponseFieldsItemComboboxOptionsItem) GetSelected() bool { + if d == nil { + return false + } + return d.Selected +} + +func (d *DocFormsGet200ResponseFieldsItemComboboxOptionsItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseCalculationOrderItemObjectNumber) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemComboboxOptionsItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetFieldObjectNumber sets the FieldObjectNumber field and marks it as non-optional; +// SetLabel sets the Label field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseCalculationOrderItemObjectNumber) SetFieldObjectNumber(fieldObjectNumber int) { - d.FieldObjectNumber = fieldObjectNumber - d.require(docFormsGet200ResponseCalculationOrderItemObjectNumberFieldFieldObjectNumber) +func (d *DocFormsGet200ResponseFieldsItemComboboxOptionsItem) SetLabel(label string) { + d.Label = label + d.require(docFormsGet200ResponseFieldsItemComboboxOptionsItemFieldLabel) } -func (d *DocFormsGet200ResponseCalculationOrderItemObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseCalculationOrderItemObjectNumber +// SetValue sets the Value field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemComboboxOptionsItem) SetValue(value string) { + d.Value = value + d.require(docFormsGet200ResponseFieldsItemComboboxOptionsItemFieldValue) +} + +// SetSelected sets the Selected field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemComboboxOptionsItem) SetSelected(selected bool) { + d.Selected = selected + d.require(docFormsGet200ResponseFieldsItemComboboxOptionsItemFieldSelected) +} + +func (d *DocFormsGet200ResponseFieldsItemComboboxOptionsItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemComboboxOptionsItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseCalculationOrderItemObjectNumber(value) + *d = DocFormsGet200ResponseFieldsItemComboboxOptionsItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -113758,8 +132386,8 @@ func (d *DocFormsGet200ResponseCalculationOrderItemObjectNumber) UnmarshalJSON(d return nil } -func (d *DocFormsGet200ResponseCalculationOrderItemObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseCalculationOrderItemObjectNumber +func (d *DocFormsGet200ResponseFieldsItemComboboxOptionsItem) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemComboboxOptionsItem var marshaler = struct { embed }{ @@ -113769,7 +132397,7 @@ func (d *DocFormsGet200ResponseCalculationOrderItemObjectNumber) MarshalJSON() ( return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseCalculationOrderItemObjectNumber) String() string { +func (d *DocFormsGet200ResponseFieldsItemComboboxOptionsItem) String() string { if d == nil { return "" } @@ -113784,175 +132412,95 @@ func (d *DocFormsGet200ResponseCalculationOrderItemObjectNumber) String() string return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItem struct { - Family string - Text *DocFormsGet200ResponseFieldsItemText - Checkbox *DocFormsGet200ResponseFieldsItemCheckbox - Radio *DocFormsGet200ResponseFieldsItemRadio - Combobox *DocFormsGet200ResponseFieldsItemCombobox - Listbox *DocFormsGet200ResponseFieldsItemListbox - Pushbutton *DocFormsGet200ResponseFieldsItemPushbutton - Signature *DocFormsGet200ResponseFieldsItemSignature - Unknown *DocFormsGet200ResponseFieldsItemUnknown - - rawJSON json.RawMessage -} - -func (d *DocFormsGet200ResponseFieldsItem) GetFamily() string { - if d == nil { - return "" - } - return d.Family -} +type DocFormsGet200ResponseFieldsItemComboboxOrigin string -func (d *DocFormsGet200ResponseFieldsItem) GetText() *DocFormsGet200ResponseFieldsItemText { - if d == nil { - return nil - } - return d.Text -} +const ( + DocFormsGet200ResponseFieldsItemComboboxOriginAcroform DocFormsGet200ResponseFieldsItemComboboxOrigin = "acroform" + DocFormsGet200ResponseFieldsItemComboboxOriginRecovered DocFormsGet200ResponseFieldsItemComboboxOrigin = "recovered" +) -func (d *DocFormsGet200ResponseFieldsItem) GetCheckbox() *DocFormsGet200ResponseFieldsItemCheckbox { - if d == nil { - return nil +func NewDocFormsGet200ResponseFieldsItemComboboxOriginFromString(s string) (DocFormsGet200ResponseFieldsItemComboboxOrigin, error) { + switch s { + case "acroform": + return DocFormsGet200ResponseFieldsItemComboboxOriginAcroform, nil + case "recovered": + return DocFormsGet200ResponseFieldsItemComboboxOriginRecovered, nil } - return d.Checkbox + var t DocFormsGet200ResponseFieldsItemComboboxOrigin + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocFormsGet200ResponseFieldsItem) GetRadio() *DocFormsGet200ResponseFieldsItemRadio { - if d == nil { - return nil - } - return d.Radio +func (d DocFormsGet200ResponseFieldsItemComboboxOrigin) Ptr() *DocFormsGet200ResponseFieldsItemComboboxOrigin { + return &d } -func (d *DocFormsGet200ResponseFieldsItem) GetCombobox() *DocFormsGet200ResponseFieldsItemCombobox { - if d == nil { - return nil - } - return d.Combobox -} +type DocFormsGet200ResponseFieldsItemComboboxRef struct { + Kind string + ObjectNumber *DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber + Fqn *DocFormsGet200ResponseFieldsItemComboboxRefFqn -func (d *DocFormsGet200ResponseFieldsItem) GetListbox() *DocFormsGet200ResponseFieldsItemListbox { - if d == nil { - return nil - } - return d.Listbox + rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItem) GetPushbutton() *DocFormsGet200ResponseFieldsItemPushbutton { +func (d *DocFormsGet200ResponseFieldsItemComboboxRef) GetKind() string { if d == nil { - return nil + return "" } - return d.Pushbutton + return d.Kind } -func (d *DocFormsGet200ResponseFieldsItem) GetSignature() *DocFormsGet200ResponseFieldsItemSignature { +func (d *DocFormsGet200ResponseFieldsItemComboboxRef) GetObjectNumber() *DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber { if d == nil { return nil } - return d.Signature + return d.ObjectNumber } -func (d *DocFormsGet200ResponseFieldsItem) GetUnknown() *DocFormsGet200ResponseFieldsItemUnknown { +func (d *DocFormsGet200ResponseFieldsItemComboboxRef) GetFqn() *DocFormsGet200ResponseFieldsItemComboboxRefFqn { if d == nil { return nil } - return d.Unknown + return d.Fqn } -func (d *DocFormsGet200ResponseFieldsItem) UnmarshalJSON(data []byte) error { +func (d *DocFormsGet200ResponseFieldsItemComboboxRef) UnmarshalJSON(data []byte) error { var unmarshaler struct { - Family string `json:"family"` + Kind string `json:"kind"` } if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - d.Family = unmarshaler.Family - if unmarshaler.Family == "" { - return fmt.Errorf("%T did not include discriminant family", d) + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) } - switch unmarshaler.Family { - case "text": - value := new(DocFormsGet200ResponseFieldsItemText) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Text = value - case "checkbox": - value := new(DocFormsGet200ResponseFieldsItemCheckbox) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Checkbox = value - case "radio": - value := new(DocFormsGet200ResponseFieldsItemRadio) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Radio = value - case "combobox": - value := new(DocFormsGet200ResponseFieldsItemCombobox) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Combobox = value - case "listbox": - value := new(DocFormsGet200ResponseFieldsItemListbox) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Listbox = value - case "pushbutton": - value := new(DocFormsGet200ResponseFieldsItemPushbutton) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Pushbutton = value - case "signature": - value := new(DocFormsGet200ResponseFieldsItemSignature) + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber) if err := json.Unmarshal(data, &value); err != nil { return err } - d.Signature = value - case "unknown": - value := new(DocFormsGet200ResponseFieldsItemUnknown) + d.ObjectNumber = value + case "fqn": + value := new(DocFormsGet200ResponseFieldsItemComboboxRefFqn) if err := json.Unmarshal(data, &value); err != nil { return err } - d.Unknown = value + d.Fqn = value } d.rawJSON = json.RawMessage(data) return nil } -func (d DocFormsGet200ResponseFieldsItem) MarshalJSON() ([]byte, error) { +func (d DocFormsGet200ResponseFieldsItemComboboxRef) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } - if d.Text != nil { - return internal.MarshalJSONWithExtraProperty(d.Text, "family", "text") - } - if d.Checkbox != nil { - return internal.MarshalJSONWithExtraProperty(d.Checkbox, "family", "checkbox") - } - if d.Radio != nil { - return internal.MarshalJSONWithExtraProperty(d.Radio, "family", "radio") - } - if d.Combobox != nil { - return internal.MarshalJSONWithExtraProperty(d.Combobox, "family", "combobox") - } - if d.Listbox != nil { - return internal.MarshalJSONWithExtraProperty(d.Listbox, "family", "listbox") - } - if d.Pushbutton != nil { - return internal.MarshalJSONWithExtraProperty(d.Pushbutton, "family", "pushbutton") - } - if d.Signature != nil { - return internal.MarshalJSONWithExtraProperty(d.Signature, "family", "signature") + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") } - if d.Unknown != nil { - return internal.MarshalJSONWithExtraProperty(d.Unknown, "family", "unknown") + if d.Fqn != nil { + return internal.MarshalJSONWithExtraProperty(d.Fqn, "kind", "fqn") } if len(d.rawJSON) > 0 { return d.rawJSON, nil @@ -113960,93 +132508,51 @@ func (d DocFormsGet200ResponseFieldsItem) MarshalJSON() ([]byte, error) { return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocFormsGet200ResponseFieldsItemVisitor interface { - VisitText(*DocFormsGet200ResponseFieldsItemText) error - VisitCheckbox(*DocFormsGet200ResponseFieldsItemCheckbox) error - VisitRadio(*DocFormsGet200ResponseFieldsItemRadio) error - VisitCombobox(*DocFormsGet200ResponseFieldsItemCombobox) error - VisitListbox(*DocFormsGet200ResponseFieldsItemListbox) error - VisitPushbutton(*DocFormsGet200ResponseFieldsItemPushbutton) error - VisitSignature(*DocFormsGet200ResponseFieldsItemSignature) error - VisitUnknown(*DocFormsGet200ResponseFieldsItemUnknown) error +type DocFormsGet200ResponseFieldsItemComboboxRefVisitor interface { + VisitObjectNumber(*DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber) error + VisitFqn(*DocFormsGet200ResponseFieldsItemComboboxRefFqn) error } -func (d *DocFormsGet200ResponseFieldsItem) Accept(visitor DocFormsGet200ResponseFieldsItemVisitor) error { - if d.Text != nil { - return visitor.VisitText(d.Text) - } - if d.Checkbox != nil { - return visitor.VisitCheckbox(d.Checkbox) - } - if d.Radio != nil { - return visitor.VisitRadio(d.Radio) - } - if d.Combobox != nil { - return visitor.VisitCombobox(d.Combobox) - } - if d.Listbox != nil { - return visitor.VisitListbox(d.Listbox) - } - if d.Pushbutton != nil { - return visitor.VisitPushbutton(d.Pushbutton) - } - if d.Signature != nil { - return visitor.VisitSignature(d.Signature) +func (d *DocFormsGet200ResponseFieldsItemComboboxRef) Accept(visitor DocFormsGet200ResponseFieldsItemComboboxRefVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) } - if d.Unknown != nil { - return visitor.VisitUnknown(d.Unknown) + if d.Fqn != nil { + return visitor.VisitFqn(d.Fqn) } return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocFormsGet200ResponseFieldsItem) validate() error { +func (d *DocFormsGet200ResponseFieldsItemComboboxRef) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } var fields []string - if d.Text != nil { - fields = append(fields, "text") - } - if d.Checkbox != nil { - fields = append(fields, "checkbox") - } - if d.Radio != nil { - fields = append(fields, "radio") - } - if d.Combobox != nil { - fields = append(fields, "combobox") - } - if d.Listbox != nil { - fields = append(fields, "listbox") - } - if d.Pushbutton != nil { - fields = append(fields, "pushbutton") - } - if d.Signature != nil { - fields = append(fields, "signature") + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") } - if d.Unknown != nil { - fields = append(fields, "unknown") + if d.Fqn != nil { + fields = append(fields, "fqn") } if len(fields) == 0 { - if d.Family != "" { + if d.Kind != "" { if len(d.rawJSON) > 0 { return nil } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Family) + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) } return fmt.Errorf("type %T is empty", d) } if len(fields) > 1 { return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) } - if d.Family != "" { + if d.Kind != "" { field := fields[0] - if d.Family != field { + if d.Kind != field { return fmt.Errorf( "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", d, - d.Family, + d.Kind, d, ) } @@ -114055,35 +132561,11 @@ func (d *DocFormsGet200ResponseFieldsItem) validate() error { } var ( - docFormsGet200ResponseFieldsItemCheckboxFieldRef = big.NewInt(1 << 0) - docFormsGet200ResponseFieldsItemCheckboxFieldFieldObjectNumber = big.NewInt(1 << 1) - docFormsGet200ResponseFieldsItemCheckboxFieldName = big.NewInt(1 << 2) - docFormsGet200ResponseFieldsItemCheckboxFieldOrigin = big.NewInt(1 << 3) - docFormsGet200ResponseFieldsItemCheckboxFieldFlags = big.NewInt(1 << 4) - docFormsGet200ResponseFieldsItemCheckboxFieldAlternateName = big.NewInt(1 << 5) - docFormsGet200ResponseFieldsItemCheckboxFieldMappingName = big.NewInt(1 << 6) - docFormsGet200ResponseFieldsItemCheckboxFieldValueEntry = big.NewInt(1 << 7) - docFormsGet200ResponseFieldsItemCheckboxFieldDefaultValueEntry = big.NewInt(1 << 8) - docFormsGet200ResponseFieldsItemCheckboxFieldActions = big.NewInt(1 << 9) - docFormsGet200ResponseFieldsItemCheckboxFieldWidgets = big.NewInt(1 << 10) - docFormsGet200ResponseFieldsItemCheckboxFieldChecked = big.NewInt(1 << 11) - docFormsGet200ResponseFieldsItemCheckboxFieldExportValue = big.NewInt(1 << 12) + docFormsGet200ResponseFieldsItemComboboxRefFqnFieldName = big.NewInt(1 << 0) ) -type DocFormsGet200ResponseFieldsItemCheckbox struct { - Ref *DocFormsGet200ResponseFieldsItemCheckboxRef `json:"ref" url:"ref"` - FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` - Name string `json:"name" url:"name"` - Origin DocFormsGet200ResponseFieldsItemCheckboxOrigin `json:"origin" url:"origin"` - Flags *DocFormsGet200ResponseFieldsItemCheckboxFlags `json:"flags" url:"flags"` - AlternateName *string `json:"alternateName,omitempty" url:"alternateName,omitempty"` - MappingName *string `json:"mappingName,omitempty" url:"mappingName,omitempty"` - ValueEntry *DocFormsGet200ResponseFieldsItemCheckboxValueEntry `json:"valueEntry" url:"valueEntry"` - DefaultValueEntry *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry `json:"defaultValueEntry" url:"defaultValueEntry"` - Actions *PdfFieldActions `json:"actions,omitempty" url:"actions,omitempty"` - Widgets []*DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem `json:"widgets" url:"widgets"` - Checked bool `json:"checked" url:"checked"` - ExportValue string `json:"exportValue" url:"exportValue"` +type DocFormsGet200ResponseFieldsItemComboboxRefFqn struct { + Name string `json:"name" url:"name"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -114092,209 +132574,125 @@ type DocFormsGet200ResponseFieldsItemCheckbox struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemCheckbox) GetRef() *DocFormsGet200ResponseFieldsItemCheckboxRef { - if d == nil { - return nil - } - return d.Ref -} - -func (d *DocFormsGet200ResponseFieldsItemCheckbox) GetFieldObjectNumber() int { - if d == nil { - return 0 - } - return d.FieldObjectNumber -} - -func (d *DocFormsGet200ResponseFieldsItemCheckbox) GetName() string { +func (d *DocFormsGet200ResponseFieldsItemComboboxRefFqn) GetName() string { if d == nil { return "" } return d.Name } -func (d *DocFormsGet200ResponseFieldsItemCheckbox) GetOrigin() DocFormsGet200ResponseFieldsItemCheckboxOrigin { - if d == nil { - return "" - } - return d.Origin -} - -func (d *DocFormsGet200ResponseFieldsItemCheckbox) GetFlags() *DocFormsGet200ResponseFieldsItemCheckboxFlags { +func (d *DocFormsGet200ResponseFieldsItemComboboxRefFqn) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.Flags + return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemCheckbox) GetAlternateName() *string { - if d == nil { - return nil +func (d *DocFormsGet200ResponseFieldsItemComboboxRefFqn) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.AlternateName + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocFormsGet200ResponseFieldsItemCheckbox) GetMappingName() *string { - if d == nil { - return nil - } - return d.MappingName +// SetName sets the Name field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemComboboxRefFqn) SetName(name string) { + d.Name = name + d.require(docFormsGet200ResponseFieldsItemComboboxRefFqnFieldName) } -func (d *DocFormsGet200ResponseFieldsItemCheckbox) GetValueEntry() *DocFormsGet200ResponseFieldsItemCheckboxValueEntry { - if d == nil { - return nil +func (d *DocFormsGet200ResponseFieldsItemComboboxRefFqn) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemComboboxRefFqn + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - return d.ValueEntry -} - -func (d *DocFormsGet200ResponseFieldsItemCheckbox) GetDefaultValueEntry() *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry { - if d == nil { - return nil + *d = DocFormsGet200ResponseFieldsItemComboboxRefFqn(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err } - return d.DefaultValueEntry + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocFormsGet200ResponseFieldsItemCheckbox) GetActions() *PdfFieldActions { - if d == nil { - return nil +func (d *DocFormsGet200ResponseFieldsItemComboboxRefFqn) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemComboboxRefFqn + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return d.Actions + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemCheckbox) GetWidgets() []*DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem { +func (d *DocFormsGet200ResponseFieldsItemComboboxRefFqn) String() string { if d == nil { - return nil + return "" } - return d.Widgets + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -func (d *DocFormsGet200ResponseFieldsItemCheckbox) GetChecked() bool { - if d == nil { - return false - } - return d.Checked +var ( + docFormsGet200ResponseFieldsItemComboboxRefObjectNumberFieldFieldObjectNumber = big.NewInt(1 << 0) +) + +type DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber struct { + FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemCheckbox) GetExportValue() string { +func (d *DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber) GetFieldObjectNumber() int { if d == nil { - return "" + return 0 } - return d.ExportValue + return d.FieldObjectNumber } -func (d *DocFormsGet200ResponseFieldsItemCheckbox) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemCheckbox) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetRef sets the Ref field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCheckbox) SetRef(ref *DocFormsGet200ResponseFieldsItemCheckboxRef) { - d.Ref = ref - d.require(docFormsGet200ResponseFieldsItemCheckboxFieldRef) -} - // SetFieldObjectNumber sets the FieldObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCheckbox) SetFieldObjectNumber(fieldObjectNumber int) { +func (d *DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber) SetFieldObjectNumber(fieldObjectNumber int) { d.FieldObjectNumber = fieldObjectNumber - d.require(docFormsGet200ResponseFieldsItemCheckboxFieldFieldObjectNumber) -} - -// SetName sets the Name field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCheckbox) SetName(name string) { - d.Name = name - d.require(docFormsGet200ResponseFieldsItemCheckboxFieldName) -} - -// SetOrigin sets the Origin field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCheckbox) SetOrigin(origin DocFormsGet200ResponseFieldsItemCheckboxOrigin) { - d.Origin = origin - d.require(docFormsGet200ResponseFieldsItemCheckboxFieldOrigin) -} - -// SetFlags sets the Flags field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCheckbox) SetFlags(flags *DocFormsGet200ResponseFieldsItemCheckboxFlags) { - d.Flags = flags - d.require(docFormsGet200ResponseFieldsItemCheckboxFieldFlags) -} - -// SetAlternateName sets the AlternateName field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCheckbox) SetAlternateName(alternateName *string) { - d.AlternateName = alternateName - d.require(docFormsGet200ResponseFieldsItemCheckboxFieldAlternateName) -} - -// SetMappingName sets the MappingName field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCheckbox) SetMappingName(mappingName *string) { - d.MappingName = mappingName - d.require(docFormsGet200ResponseFieldsItemCheckboxFieldMappingName) -} - -// SetValueEntry sets the ValueEntry field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCheckbox) SetValueEntry(valueEntry *DocFormsGet200ResponseFieldsItemCheckboxValueEntry) { - d.ValueEntry = valueEntry - d.require(docFormsGet200ResponseFieldsItemCheckboxFieldValueEntry) -} - -// SetDefaultValueEntry sets the DefaultValueEntry field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCheckbox) SetDefaultValueEntry(defaultValueEntry *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry) { - d.DefaultValueEntry = defaultValueEntry - d.require(docFormsGet200ResponseFieldsItemCheckboxFieldDefaultValueEntry) -} - -// SetActions sets the Actions field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCheckbox) SetActions(actions *PdfFieldActions) { - d.Actions = actions - d.require(docFormsGet200ResponseFieldsItemCheckboxFieldActions) -} - -// SetWidgets sets the Widgets field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCheckbox) SetWidgets(widgets []*DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem) { - d.Widgets = widgets - d.require(docFormsGet200ResponseFieldsItemCheckboxFieldWidgets) -} - -// SetChecked sets the Checked field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCheckbox) SetChecked(checked bool) { - d.Checked = checked - d.require(docFormsGet200ResponseFieldsItemCheckboxFieldChecked) -} - -// SetExportValue sets the ExportValue field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCheckbox) SetExportValue(exportValue string) { - d.ExportValue = exportValue - d.require(docFormsGet200ResponseFieldsItemCheckboxFieldExportValue) + d.require(docFormsGet200ResponseFieldsItemComboboxRefObjectNumberFieldFieldObjectNumber) } -func (d *DocFormsGet200ResponseFieldsItemCheckbox) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemCheckbox +func (d *DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemCheckbox(value) + *d = DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -114304,8 +132702,8 @@ func (d *DocFormsGet200ResponseFieldsItemCheckbox) UnmarshalJSON(data []byte) er return nil } -func (d *DocFormsGet200ResponseFieldsItemCheckbox) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemCheckbox +func (d *DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber var marshaler = struct { embed }{ @@ -114315,7 +132713,7 @@ func (d *DocFormsGet200ResponseFieldsItemCheckbox) MarshalJSON() ([]byte, error) return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemCheckbox) String() string { +func (d *DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber) String() string { if d == nil { return "" } @@ -114330,52 +132728,52 @@ func (d *DocFormsGet200ResponseFieldsItemCheckbox) String() string { return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry struct { +type DocFormsGet200ResponseFieldsItemComboboxValueEntry struct { Kind string - None *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone - Scalar *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar - Array *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray - Unsupported *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported + None *DocFormsGet200ResponseFieldsItemComboboxValueEntryNone + Scalar *DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar + Array *DocFormsGet200ResponseFieldsItemComboboxValueEntryArray + Unsupported *DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry) GetKind() string { +func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntry) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry) GetNone() *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone { +func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntry) GetNone() *DocFormsGet200ResponseFieldsItemComboboxValueEntryNone { if d == nil { return nil } return d.None } -func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry) GetScalar() *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar { +func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntry) GetScalar() *DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar { if d == nil { return nil } return d.Scalar } -func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry) GetArray() *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray { +func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntry) GetArray() *DocFormsGet200ResponseFieldsItemComboboxValueEntryArray { if d == nil { return nil } return d.Array } -func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry) GetUnsupported() *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported { +func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntry) GetUnsupported() *DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported { if d == nil { return nil } return d.Unsupported } -func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry) UnmarshalJSON(data []byte) error { +func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntry) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -114388,25 +132786,25 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry) UnmarshalJSO } switch unmarshaler.Kind { case "none": - value := new(DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone) + value := new(DocFormsGet200ResponseFieldsItemComboboxValueEntryNone) if err := json.Unmarshal(data, &value); err != nil { return err } d.None = value case "scalar": - value := new(DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar) + value := new(DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar) if err := json.Unmarshal(data, &value); err != nil { return err } d.Scalar = value case "array": - value := new(DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray) + value := new(DocFormsGet200ResponseFieldsItemComboboxValueEntryArray) if err := json.Unmarshal(data, &value); err != nil { return err } d.Array = value case "unsupported": - value := new(DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported) + value := new(DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -114416,7 +132814,7 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry) UnmarshalJSO return nil } -func (d DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry) MarshalJSON() ([]byte, error) { +func (d DocFormsGet200ResponseFieldsItemComboboxValueEntry) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -114438,14 +132836,14 @@ func (d DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry) MarshalJSON() return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryVisitor interface { - VisitNone(*DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone) error - VisitScalar(*DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar) error - VisitArray(*DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray) error - VisitUnsupported(*DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported) error +type DocFormsGet200ResponseFieldsItemComboboxValueEntryVisitor interface { + VisitNone(*DocFormsGet200ResponseFieldsItemComboboxValueEntryNone) error + VisitScalar(*DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar) error + VisitArray(*DocFormsGet200ResponseFieldsItemComboboxValueEntryArray) error + VisitUnsupported(*DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported) error } -func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry) Accept(visitor DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryVisitor) error { +func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntry) Accept(visitor DocFormsGet200ResponseFieldsItemComboboxValueEntryVisitor) error { if d.None != nil { return visitor.VisitNone(d.None) } @@ -114461,7 +132859,7 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry) Accept(visit return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry) validate() error { +func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntry) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -114505,10 +132903,10 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry) validate() e } var ( - docFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArrayFieldValues = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemComboboxValueEntryArrayFieldValues = big.NewInt(1 << 0) ) -type DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray struct { +type DocFormsGet200ResponseFieldsItemComboboxValueEntryArray struct { Values []string `json:"values" url:"values"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -114518,21 +132916,21 @@ type DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray) GetValues() []string { +func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryArray) GetValues() []string { if d == nil { return nil } return d.Values } -func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryArray) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryArray) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -114541,18 +132939,18 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray) require // SetValues sets the Values field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray) SetValues(values []string) { +func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryArray) SetValues(values []string) { d.Values = values - d.require(docFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArrayFieldValues) + d.require(docFormsGet200ResponseFieldsItemComboboxValueEntryArrayFieldValues) } -func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray +func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryArray) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemComboboxValueEntryArray var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray(value) + *d = DocFormsGet200ResponseFieldsItemComboboxValueEntryArray(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -114562,8 +132960,8 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray) Unmarsh return nil } -func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray +func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryArray) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemComboboxValueEntryArray var marshaler = struct { embed }{ @@ -114573,7 +132971,7 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray) Marshal return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray) String() string { +func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryArray) String() string { if d == nil { return "" } @@ -114588,7 +132986,7 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray) String( return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone struct { +type DocFormsGet200ResponseFieldsItemComboboxValueEntryNone struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -114597,27 +132995,27 @@ type DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryNone) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryNone) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone +func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryNone) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemComboboxValueEntryNone var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone(value) + *d = DocFormsGet200ResponseFieldsItemComboboxValueEntryNone(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -114627,8 +133025,8 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone) Unmarsha return nil } -func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone +func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryNone) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemComboboxValueEntryNone var marshaler = struct { embed }{ @@ -114638,7 +133036,7 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone) MarshalJ return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone) String() string { +func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryNone) String() string { if d == nil { return "" } @@ -114654,10 +133052,10 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone) String() } var ( - docFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalarFieldValue = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemComboboxValueEntryScalarFieldValue = big.NewInt(1 << 0) ) -type DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar struct { +type DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar struct { Value string `json:"value" url:"value"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -114667,21 +133065,21 @@ type DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar) GetValue() string { +func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar) GetValue() string { if d == nil { return "" } return d.Value } -func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -114690,18 +133088,18 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar) requir // SetValue sets the Value field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar) SetValue(value string) { +func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar) SetValue(value string) { d.Value = value - d.require(docFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalarFieldValue) + d.require(docFormsGet200ResponseFieldsItemComboboxValueEntryScalarFieldValue) } -func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar +func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar(value) + *d = DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -114711,8 +133109,8 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar) Unmars return nil } -func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar +func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar var marshaler = struct { embed }{ @@ -114722,7 +133120,7 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar) Marsha return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar) String() string { +func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar) String() string { if d == nil { return "" } @@ -114737,7 +133135,7 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar) String return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported struct { +type DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -114746,27 +133144,27 @@ type DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported struct rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported +func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported(value) + *d = DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -114776,8 +133174,8 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported) U return nil } -func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported +func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported var marshaler = struct { embed }{ @@ -114787,7 +133185,7 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported) M return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported) String() string { +func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported) String() string { if d == nil { return "" } @@ -114803,17 +133201,13 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported) S } var ( - docFormsGet200ResponseFieldsItemCheckboxFlagsFieldReadOnly = big.NewInt(1 << 0) - docFormsGet200ResponseFieldsItemCheckboxFlagsFieldRequired = big.NewInt(1 << 1) - docFormsGet200ResponseFieldsItemCheckboxFlagsFieldNoExport = big.NewInt(1 << 2) - docFormsGet200ResponseFieldsItemCheckboxFlagsFieldRaw = big.NewInt(1 << 3) + docFormsGet200ResponseFieldsItemComboboxWidgetsItemFieldAnnotObjectNumber = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemComboboxWidgetsItemFieldPageObjectNumber = big.NewInt(1 << 1) ) -type DocFormsGet200ResponseFieldsItemCheckboxFlags struct { - ReadOnly bool `json:"readOnly" url:"readOnly"` - Required bool `json:"required" url:"required"` - NoExport bool `json:"noExport" url:"noExport"` - Raw int `json:"raw" url:"raw"` +type DocFormsGet200ResponseFieldsItemComboboxWidgetsItem struct { + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -114822,83 +133216,55 @@ type DocFormsGet200ResponseFieldsItemCheckboxFlags struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemCheckboxFlags) GetReadOnly() bool { - if d == nil { - return false - } - return d.ReadOnly -} - -func (d *DocFormsGet200ResponseFieldsItemCheckboxFlags) GetRequired() bool { - if d == nil { - return false - } - return d.Required -} - -func (d *DocFormsGet200ResponseFieldsItemCheckboxFlags) GetNoExport() bool { +func (d *DocFormsGet200ResponseFieldsItemComboboxWidgetsItem) GetAnnotObjectNumber() int { if d == nil { - return false + return 0 } - return d.NoExport + return d.AnnotObjectNumber } -func (d *DocFormsGet200ResponseFieldsItemCheckboxFlags) GetRaw() int { +func (d *DocFormsGet200ResponseFieldsItemComboboxWidgetsItem) GetPageObjectNumber() int { if d == nil { return 0 } - return d.Raw + return d.PageObjectNumber } -func (d *DocFormsGet200ResponseFieldsItemCheckboxFlags) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemComboboxWidgetsItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemCheckboxFlags) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemComboboxWidgetsItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetReadOnly sets the ReadOnly field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCheckboxFlags) SetReadOnly(readOnly bool) { - d.ReadOnly = readOnly - d.require(docFormsGet200ResponseFieldsItemCheckboxFlagsFieldReadOnly) -} - -// SetRequired sets the Required field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCheckboxFlags) SetRequired(required bool) { - d.Required = required - d.require(docFormsGet200ResponseFieldsItemCheckboxFlagsFieldRequired) -} - -// SetNoExport sets the NoExport field and marks it as non-optional; +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCheckboxFlags) SetNoExport(noExport bool) { - d.NoExport = noExport - d.require(docFormsGet200ResponseFieldsItemCheckboxFlagsFieldNoExport) +func (d *DocFormsGet200ResponseFieldsItemComboboxWidgetsItem) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docFormsGet200ResponseFieldsItemComboboxWidgetsItemFieldAnnotObjectNumber) } -// SetRaw sets the Raw field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCheckboxFlags) SetRaw(raw int) { - d.Raw = raw - d.require(docFormsGet200ResponseFieldsItemCheckboxFlagsFieldRaw) +func (d *DocFormsGet200ResponseFieldsItemComboboxWidgetsItem) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docFormsGet200ResponseFieldsItemComboboxWidgetsItemFieldPageObjectNumber) } -func (d *DocFormsGet200ResponseFieldsItemCheckboxFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemCheckboxFlags +func (d *DocFormsGet200ResponseFieldsItemComboboxWidgetsItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemComboboxWidgetsItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemCheckboxFlags(value) + *d = DocFormsGet200ResponseFieldsItemComboboxWidgetsItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -114908,8 +133274,8 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxFlags) UnmarshalJSON(data []byt return nil } -func (d *DocFormsGet200ResponseFieldsItemCheckboxFlags) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemCheckboxFlags +func (d *DocFormsGet200ResponseFieldsItemComboboxWidgetsItem) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemComboboxWidgetsItem var marshaler = struct { embed }{ @@ -114919,7 +133285,7 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxFlags) MarshalJSON() ([]byte, e return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemCheckboxFlags) String() string { +func (d *DocFormsGet200ResponseFieldsItemComboboxWidgetsItem) String() string { if d == nil { return "" } @@ -114934,160 +133300,38 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxFlags) String() string { return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemCheckboxOrigin string - -const ( - DocFormsGet200ResponseFieldsItemCheckboxOriginAcroform DocFormsGet200ResponseFieldsItemCheckboxOrigin = "acroform" - DocFormsGet200ResponseFieldsItemCheckboxOriginRecovered DocFormsGet200ResponseFieldsItemCheckboxOrigin = "recovered" -) - -func NewDocFormsGet200ResponseFieldsItemCheckboxOriginFromString(s string) (DocFormsGet200ResponseFieldsItemCheckboxOrigin, error) { - switch s { - case "acroform": - return DocFormsGet200ResponseFieldsItemCheckboxOriginAcroform, nil - case "recovered": - return DocFormsGet200ResponseFieldsItemCheckboxOriginRecovered, nil - } - var t DocFormsGet200ResponseFieldsItemCheckboxOrigin - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocFormsGet200ResponseFieldsItemCheckboxOrigin) Ptr() *DocFormsGet200ResponseFieldsItemCheckboxOrigin { - return &d -} - -type DocFormsGet200ResponseFieldsItemCheckboxRef struct { - Kind string - ObjectNumber *DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber - Fqn *DocFormsGet200ResponseFieldsItemCheckboxRefFqn - - rawJSON json.RawMessage -} - -func (d *DocFormsGet200ResponseFieldsItemCheckboxRef) GetKind() string { - if d == nil { - return "" - } - return d.Kind -} - -func (d *DocFormsGet200ResponseFieldsItemCheckboxRef) GetObjectNumber() *DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber { - if d == nil { - return nil - } - return d.ObjectNumber -} - -func (d *DocFormsGet200ResponseFieldsItemCheckboxRef) GetFqn() *DocFormsGet200ResponseFieldsItemCheckboxRefFqn { - if d == nil { - return nil - } - return d.Fqn -} - -func (d *DocFormsGet200ResponseFieldsItemCheckboxRef) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "fqn": - value := new(DocFormsGet200ResponseFieldsItemCheckboxRefFqn) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Fqn = value - } - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d DocFormsGet200ResponseFieldsItemCheckboxRef) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Fqn != nil { - return internal.MarshalJSONWithExtraProperty(d.Fqn, "kind", "fqn") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil - } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) -} - -type DocFormsGet200ResponseFieldsItemCheckboxRefVisitor interface { - VisitObjectNumber(*DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber) error - VisitFqn(*DocFormsGet200ResponseFieldsItemCheckboxRefFqn) error -} - -func (d *DocFormsGet200ResponseFieldsItemCheckboxRef) Accept(visitor DocFormsGet200ResponseFieldsItemCheckboxRefVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) - } - if d.Fqn != nil { - return visitor.VisitFqn(d.Fqn) - } - return fmt.Errorf("type %T does not define a non-empty union type", d) -} - -func (d *DocFormsGet200ResponseFieldsItemCheckboxRef) validate() error { - if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Fqn != nil { - fields = append(fields, "fqn") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } - } - return nil -} - var ( - docFormsGet200ResponseFieldsItemCheckboxRefFqnFieldName = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemListboxFieldRef = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemListboxFieldFieldObjectNumber = big.NewInt(1 << 1) + docFormsGet200ResponseFieldsItemListboxFieldName = big.NewInt(1 << 2) + docFormsGet200ResponseFieldsItemListboxFieldOrigin = big.NewInt(1 << 3) + docFormsGet200ResponseFieldsItemListboxFieldFlags = big.NewInt(1 << 4) + docFormsGet200ResponseFieldsItemListboxFieldAlternateName = big.NewInt(1 << 5) + docFormsGet200ResponseFieldsItemListboxFieldMappingName = big.NewInt(1 << 6) + docFormsGet200ResponseFieldsItemListboxFieldValueEntry = big.NewInt(1 << 7) + docFormsGet200ResponseFieldsItemListboxFieldDefaultValueEntry = big.NewInt(1 << 8) + docFormsGet200ResponseFieldsItemListboxFieldActions = big.NewInt(1 << 9) + docFormsGet200ResponseFieldsItemListboxFieldWidgets = big.NewInt(1 << 10) + docFormsGet200ResponseFieldsItemListboxFieldSelectedValues = big.NewInt(1 << 11) + docFormsGet200ResponseFieldsItemListboxFieldMultiSelect = big.NewInt(1 << 12) + docFormsGet200ResponseFieldsItemListboxFieldOptions = big.NewInt(1 << 13) ) -type DocFormsGet200ResponseFieldsItemCheckboxRefFqn struct { - Name string `json:"name" url:"name"` +type DocFormsGet200ResponseFieldsItemListbox struct { + Ref *DocFormsGet200ResponseFieldsItemListboxRef `json:"ref" url:"ref"` + FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` + Name string `json:"name" url:"name"` + Origin DocFormsGet200ResponseFieldsItemListboxOrigin `json:"origin" url:"origin"` + Flags *DocFormsGet200ResponseFieldsItemListboxFlags `json:"flags" url:"flags"` + AlternateName *string `json:"alternateName,omitempty" url:"alternateName,omitempty"` + MappingName *string `json:"mappingName,omitempty" url:"mappingName,omitempty"` + ValueEntry *DocFormsGet200ResponseFieldsItemListboxValueEntry `json:"valueEntry" url:"valueEntry"` + DefaultValueEntry *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry `json:"defaultValueEntry" url:"defaultValueEntry"` + Actions *PdfFieldActions `json:"actions,omitempty" url:"actions,omitempty"` + Widgets []*DocFormsGet200ResponseFieldsItemListboxWidgetsItem `json:"widgets" url:"widgets"` + SelectedValues []string `json:"selectedValues" url:"selectedValues"` + MultiSelect bool `json:"multiSelect" url:"multiSelect"` + Options []*DocFormsGet200ResponseFieldsItemListboxOptionsItem `json:"options" url:"options"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -115096,125 +133340,223 @@ type DocFormsGet200ResponseFieldsItemCheckboxRefFqn struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemCheckboxRefFqn) GetName() string { +func (d *DocFormsGet200ResponseFieldsItemListbox) GetRef() *DocFormsGet200ResponseFieldsItemListboxRef { if d == nil { - return "" + return nil } - return d.Name + return d.Ref } -func (d *DocFormsGet200ResponseFieldsItemCheckboxRefFqn) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemListbox) GetFieldObjectNumber() int { if d == nil { - return nil + return 0 } - return d.extraProperties + return d.FieldObjectNumber } -func (d *DocFormsGet200ResponseFieldsItemCheckboxRefFqn) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocFormsGet200ResponseFieldsItemListbox) GetName() string { + if d == nil { + return "" } - d.explicitFields.Or(d.explicitFields, field) + return d.Name } -// SetName sets the Name field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCheckboxRefFqn) SetName(name string) { - d.Name = name - d.require(docFormsGet200ResponseFieldsItemCheckboxRefFqnFieldName) +func (d *DocFormsGet200ResponseFieldsItemListbox) GetOrigin() DocFormsGet200ResponseFieldsItemListboxOrigin { + if d == nil { + return "" + } + return d.Origin } -func (d *DocFormsGet200ResponseFieldsItemCheckboxRefFqn) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemCheckboxRefFqn - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocFormsGet200ResponseFieldsItemCheckboxRefFqn(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err +func (d *DocFormsGet200ResponseFieldsItemListbox) GetFlags() *DocFormsGet200ResponseFieldsItemListboxFlags { + if d == nil { + return nil } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil + return d.Flags } -func (d *DocFormsGet200ResponseFieldsItemCheckboxRefFqn) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemCheckboxRefFqn - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d *DocFormsGet200ResponseFieldsItemListbox) GetAlternateName() *string { + if d == nil { + return nil } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return d.AlternateName } -func (d *DocFormsGet200ResponseFieldsItemCheckboxRefFqn) String() string { +func (d *DocFormsGet200ResponseFieldsItemListbox) GetMappingName() *string { if d == nil { - return "" + return nil } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } + return d.MappingName +} + +func (d *DocFormsGet200ResponseFieldsItemListbox) GetValueEntry() *DocFormsGet200ResponseFieldsItemListboxValueEntry { + if d == nil { + return nil } - if value, err := internal.StringifyJSON(d); err == nil { - return value + return d.ValueEntry +} + +func (d *DocFormsGet200ResponseFieldsItemListbox) GetDefaultValueEntry() *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry { + if d == nil { + return nil } - return fmt.Sprintf("%#v", d) + return d.DefaultValueEntry } -var ( - docFormsGet200ResponseFieldsItemCheckboxRefObjectNumberFieldFieldObjectNumber = big.NewInt(1 << 0) -) +func (d *DocFormsGet200ResponseFieldsItemListbox) GetActions() *PdfFieldActions { + if d == nil { + return nil + } + return d.Actions +} -type DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber struct { - FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` +func (d *DocFormsGet200ResponseFieldsItemListbox) GetWidgets() []*DocFormsGet200ResponseFieldsItemListboxWidgetsItem { + if d == nil { + return nil + } + return d.Widgets +} - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +func (d *DocFormsGet200ResponseFieldsItemListbox) GetSelectedValues() []string { + if d == nil { + return nil + } + return d.SelectedValues +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocFormsGet200ResponseFieldsItemListbox) GetMultiSelect() bool { + if d == nil { + return false + } + return d.MultiSelect } -func (d *DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber) GetFieldObjectNumber() int { +func (d *DocFormsGet200ResponseFieldsItemListbox) GetOptions() []*DocFormsGet200ResponseFieldsItemListboxOptionsItem { if d == nil { - return 0 + return nil } - return d.FieldObjectNumber + return d.Options } -func (d *DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemListbox) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemListbox) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } +// SetRef sets the Ref field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemListbox) SetRef(ref *DocFormsGet200ResponseFieldsItemListboxRef) { + d.Ref = ref + d.require(docFormsGet200ResponseFieldsItemListboxFieldRef) +} + // SetFieldObjectNumber sets the FieldObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber) SetFieldObjectNumber(fieldObjectNumber int) { +func (d *DocFormsGet200ResponseFieldsItemListbox) SetFieldObjectNumber(fieldObjectNumber int) { d.FieldObjectNumber = fieldObjectNumber - d.require(docFormsGet200ResponseFieldsItemCheckboxRefObjectNumberFieldFieldObjectNumber) + d.require(docFormsGet200ResponseFieldsItemListboxFieldFieldObjectNumber) } -func (d *DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber +// SetName sets the Name field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemListbox) SetName(name string) { + d.Name = name + d.require(docFormsGet200ResponseFieldsItemListboxFieldName) +} + +// SetOrigin sets the Origin field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemListbox) SetOrigin(origin DocFormsGet200ResponseFieldsItemListboxOrigin) { + d.Origin = origin + d.require(docFormsGet200ResponseFieldsItemListboxFieldOrigin) +} + +// SetFlags sets the Flags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemListbox) SetFlags(flags *DocFormsGet200ResponseFieldsItemListboxFlags) { + d.Flags = flags + d.require(docFormsGet200ResponseFieldsItemListboxFieldFlags) +} + +// SetAlternateName sets the AlternateName field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemListbox) SetAlternateName(alternateName *string) { + d.AlternateName = alternateName + d.require(docFormsGet200ResponseFieldsItemListboxFieldAlternateName) +} + +// SetMappingName sets the MappingName field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemListbox) SetMappingName(mappingName *string) { + d.MappingName = mappingName + d.require(docFormsGet200ResponseFieldsItemListboxFieldMappingName) +} + +// SetValueEntry sets the ValueEntry field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemListbox) SetValueEntry(valueEntry *DocFormsGet200ResponseFieldsItemListboxValueEntry) { + d.ValueEntry = valueEntry + d.require(docFormsGet200ResponseFieldsItemListboxFieldValueEntry) +} + +// SetDefaultValueEntry sets the DefaultValueEntry field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemListbox) SetDefaultValueEntry(defaultValueEntry *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry) { + d.DefaultValueEntry = defaultValueEntry + d.require(docFormsGet200ResponseFieldsItemListboxFieldDefaultValueEntry) +} + +// SetActions sets the Actions field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemListbox) SetActions(actions *PdfFieldActions) { + d.Actions = actions + d.require(docFormsGet200ResponseFieldsItemListboxFieldActions) +} + +// SetWidgets sets the Widgets field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemListbox) SetWidgets(widgets []*DocFormsGet200ResponseFieldsItemListboxWidgetsItem) { + d.Widgets = widgets + d.require(docFormsGet200ResponseFieldsItemListboxFieldWidgets) +} + +// SetSelectedValues sets the SelectedValues field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemListbox) SetSelectedValues(selectedValues []string) { + d.SelectedValues = selectedValues + d.require(docFormsGet200ResponseFieldsItemListboxFieldSelectedValues) +} + +// SetMultiSelect sets the MultiSelect field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemListbox) SetMultiSelect(multiSelect bool) { + d.MultiSelect = multiSelect + d.require(docFormsGet200ResponseFieldsItemListboxFieldMultiSelect) +} + +// SetOptions sets the Options field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemListbox) SetOptions(options []*DocFormsGet200ResponseFieldsItemListboxOptionsItem) { + d.Options = options + d.require(docFormsGet200ResponseFieldsItemListboxFieldOptions) +} + +func (d *DocFormsGet200ResponseFieldsItemListbox) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemListbox var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber(value) + *d = DocFormsGet200ResponseFieldsItemListbox(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -115224,8 +133566,8 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber) UnmarshalJSON( return nil } -func (d *DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber +func (d *DocFormsGet200ResponseFieldsItemListbox) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemListbox var marshaler = struct { embed }{ @@ -115235,7 +133577,7 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber) MarshalJSON() return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber) String() string { +func (d *DocFormsGet200ResponseFieldsItemListbox) String() string { if d == nil { return "" } @@ -115250,52 +133592,52 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber) String() strin return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemCheckboxValueEntry struct { +type DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry struct { Kind string - None *DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone - Scalar *DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar - Array *DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray - Unsupported *DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported + None *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone + Scalar *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar + Array *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray + Unsupported *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntry) GetKind() string { +func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntry) GetNone() *DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone { +func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry) GetNone() *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone { if d == nil { return nil } return d.None } -func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntry) GetScalar() *DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar { +func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry) GetScalar() *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar { if d == nil { return nil } return d.Scalar } -func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntry) GetArray() *DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray { +func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry) GetArray() *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray { if d == nil { return nil } return d.Array } -func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntry) GetUnsupported() *DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported { +func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry) GetUnsupported() *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported { if d == nil { return nil } return d.Unsupported } -func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntry) UnmarshalJSON(data []byte) error { +func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -115308,25 +133650,25 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntry) UnmarshalJSON(data } switch unmarshaler.Kind { case "none": - value := new(DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone) + value := new(DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone) if err := json.Unmarshal(data, &value); err != nil { return err } d.None = value case "scalar": - value := new(DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar) + value := new(DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar) if err := json.Unmarshal(data, &value); err != nil { return err } d.Scalar = value case "array": - value := new(DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray) + value := new(DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray) if err := json.Unmarshal(data, &value); err != nil { return err } d.Array = value case "unsupported": - value := new(DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported) + value := new(DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -115336,7 +133678,7 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntry) UnmarshalJSON(data return nil } -func (d DocFormsGet200ResponseFieldsItemCheckboxValueEntry) MarshalJSON() ([]byte, error) { +func (d DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -115358,14 +133700,14 @@ func (d DocFormsGet200ResponseFieldsItemCheckboxValueEntry) MarshalJSON() ([]byt return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocFormsGet200ResponseFieldsItemCheckboxValueEntryVisitor interface { - VisitNone(*DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone) error - VisitScalar(*DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar) error - VisitArray(*DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray) error - VisitUnsupported(*DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported) error +type DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryVisitor interface { + VisitNone(*DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone) error + VisitScalar(*DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar) error + VisitArray(*DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray) error + VisitUnsupported(*DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported) error } -func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntry) Accept(visitor DocFormsGet200ResponseFieldsItemCheckboxValueEntryVisitor) error { +func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry) Accept(visitor DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryVisitor) error { if d.None != nil { return visitor.VisitNone(d.None) } @@ -115381,7 +133723,7 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntry) Accept(visitor DocF return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntry) validate() error { +func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -115425,10 +133767,10 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntry) validate() error { } var ( - docFormsGet200ResponseFieldsItemCheckboxValueEntryArrayFieldValues = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemListboxDefaultValueEntryArrayFieldValues = big.NewInt(1 << 0) ) -type DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray struct { +type DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray struct { Values []string `json:"values" url:"values"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -115438,21 +133780,21 @@ type DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray) GetValues() []string { +func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray) GetValues() []string { if d == nil { return nil } return d.Values } -func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -115461,18 +133803,18 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray) require(field // SetValues sets the Values field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray) SetValues(values []string) { +func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray) SetValues(values []string) { d.Values = values - d.require(docFormsGet200ResponseFieldsItemCheckboxValueEntryArrayFieldValues) + d.require(docFormsGet200ResponseFieldsItemListboxDefaultValueEntryArrayFieldValues) } -func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray +func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray(value) + *d = DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -115482,8 +133824,8 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray) UnmarshalJSON( return nil } -func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray +func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray var marshaler = struct { embed }{ @@ -115493,7 +133835,7 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray) MarshalJSON() return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray) String() string { +func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray) String() string { if d == nil { return "" } @@ -115508,7 +133850,7 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray) String() strin return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone struct { +type DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -115517,27 +133859,27 @@ type DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone +func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone(value) + *d = DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -115547,8 +133889,8 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone) UnmarshalJSON(d return nil } -func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone +func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone var marshaler = struct { embed }{ @@ -115558,7 +133900,7 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone) MarshalJSON() ( return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone) String() string { +func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone) String() string { if d == nil { return "" } @@ -115574,10 +133916,10 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone) String() string } var ( - docFormsGet200ResponseFieldsItemCheckboxValueEntryScalarFieldValue = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalarFieldValue = big.NewInt(1 << 0) ) -type DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar struct { +type DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar struct { Value string `json:"value" url:"value"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -115587,21 +133929,21 @@ type DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar) GetValue() string { +func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar) GetValue() string { if d == nil { return "" } return d.Value } -func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -115610,18 +133952,18 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar) require(field // SetValue sets the Value field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar) SetValue(value string) { +func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar) SetValue(value string) { d.Value = value - d.require(docFormsGet200ResponseFieldsItemCheckboxValueEntryScalarFieldValue) + d.require(docFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalarFieldValue) } -func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar +func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar(value) + *d = DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -115631,8 +133973,8 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar) UnmarshalJSON return nil } -func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar +func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar var marshaler = struct { embed }{ @@ -115642,7 +133984,7 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar) MarshalJSON() return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar) String() string { +func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar) String() string { if d == nil { return "" } @@ -115657,7 +133999,7 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar) String() stri return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported struct { +type DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -115666,27 +134008,27 @@ type DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported +func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported(value) + *d = DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -115696,8 +134038,8 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported) Unmarsha return nil } -func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported +func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported var marshaler = struct { embed }{ @@ -115707,7 +134049,7 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported) MarshalJ return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported) String() string { +func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported) String() string { if d == nil { return "" } @@ -115723,19 +134065,147 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported) String() } var ( - docFormsGet200ResponseFieldsItemCheckboxWidgetsItemFieldAnnotObjectNumber = big.NewInt(1 << 0) - docFormsGet200ResponseFieldsItemCheckboxWidgetsItemFieldPageObjectNumber = big.NewInt(1 << 1) - docFormsGet200ResponseFieldsItemCheckboxWidgetsItemFieldOnState = big.NewInt(1 << 2) - docFormsGet200ResponseFieldsItemCheckboxWidgetsItemFieldExportValue = big.NewInt(1 << 3) - docFormsGet200ResponseFieldsItemCheckboxWidgetsItemFieldChecked = big.NewInt(1 << 4) + docFormsGet200ResponseFieldsItemListboxFlagsFieldReadOnly = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemListboxFlagsFieldRequired = big.NewInt(1 << 1) + docFormsGet200ResponseFieldsItemListboxFlagsFieldNoExport = big.NewInt(1 << 2) + docFormsGet200ResponseFieldsItemListboxFlagsFieldRaw = big.NewInt(1 << 3) +) + +type DocFormsGet200ResponseFieldsItemListboxFlags struct { + ReadOnly bool `json:"readOnly" url:"readOnly"` + Required bool `json:"required" url:"required"` + NoExport bool `json:"noExport" url:"noExport"` + Raw int `json:"raw" url:"raw"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocFormsGet200ResponseFieldsItemListboxFlags) GetReadOnly() bool { + if d == nil { + return false + } + return d.ReadOnly +} + +func (d *DocFormsGet200ResponseFieldsItemListboxFlags) GetRequired() bool { + if d == nil { + return false + } + return d.Required +} + +func (d *DocFormsGet200ResponseFieldsItemListboxFlags) GetNoExport() bool { + if d == nil { + return false + } + return d.NoExport +} + +func (d *DocFormsGet200ResponseFieldsItemListboxFlags) GetRaw() int { + if d == nil { + return 0 + } + return d.Raw +} + +func (d *DocFormsGet200ResponseFieldsItemListboxFlags) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocFormsGet200ResponseFieldsItemListboxFlags) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetReadOnly sets the ReadOnly field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemListboxFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + d.require(docFormsGet200ResponseFieldsItemListboxFlagsFieldReadOnly) +} + +// SetRequired sets the Required field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemListboxFlags) SetRequired(required bool) { + d.Required = required + d.require(docFormsGet200ResponseFieldsItemListboxFlagsFieldRequired) +} + +// SetNoExport sets the NoExport field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemListboxFlags) SetNoExport(noExport bool) { + d.NoExport = noExport + d.require(docFormsGet200ResponseFieldsItemListboxFlagsFieldNoExport) +} + +// SetRaw sets the Raw field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemListboxFlags) SetRaw(raw int) { + d.Raw = raw + d.require(docFormsGet200ResponseFieldsItemListboxFlagsFieldRaw) +} + +func (d *DocFormsGet200ResponseFieldsItemListboxFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemListboxFlags + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocFormsGet200ResponseFieldsItemListboxFlags(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocFormsGet200ResponseFieldsItemListboxFlags) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemListboxFlags + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocFormsGet200ResponseFieldsItemListboxFlags) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docFormsGet200ResponseFieldsItemListboxOptionsItemFieldLabel = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemListboxOptionsItemFieldValue = big.NewInt(1 << 1) + docFormsGet200ResponseFieldsItemListboxOptionsItemFieldSelected = big.NewInt(1 << 2) ) -type DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem struct { - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - OnState string `json:"onState" url:"onState"` - ExportValue string `json:"exportValue" url:"exportValue"` - Checked bool `json:"checked" url:"checked"` +type DocFormsGet200ResponseFieldsItemListboxOptionsItem struct { + Label string `json:"label" url:"label"` + Value string `json:"value" url:"value"` + Selected bool `json:"selected" url:"selected"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -115744,97 +134214,69 @@ type DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem) GetAnnotObjectNumber() int { - if d == nil { - return 0 - } - return d.AnnotObjectNumber -} - -func (d *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber -} - -func (d *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem) GetOnState() string { +func (d *DocFormsGet200ResponseFieldsItemListboxOptionsItem) GetLabel() string { if d == nil { return "" } - return d.OnState + return d.Label } -func (d *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem) GetExportValue() string { +func (d *DocFormsGet200ResponseFieldsItemListboxOptionsItem) GetValue() string { if d == nil { return "" } - return d.ExportValue + return d.Value } -func (d *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem) GetChecked() bool { +func (d *DocFormsGet200ResponseFieldsItemListboxOptionsItem) GetSelected() bool { if d == nil { return false } - return d.Checked + return d.Selected } -func (d *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemListboxOptionsItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemListboxOptionsItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docFormsGet200ResponseFieldsItemCheckboxWidgetsItemFieldAnnotObjectNumber) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docFormsGet200ResponseFieldsItemCheckboxWidgetsItemFieldPageObjectNumber) -} - -// SetOnState sets the OnState field and marks it as non-optional; +// SetLabel sets the Label field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem) SetOnState(onState string) { - d.OnState = onState - d.require(docFormsGet200ResponseFieldsItemCheckboxWidgetsItemFieldOnState) +func (d *DocFormsGet200ResponseFieldsItemListboxOptionsItem) SetLabel(label string) { + d.Label = label + d.require(docFormsGet200ResponseFieldsItemListboxOptionsItemFieldLabel) } -// SetExportValue sets the ExportValue field and marks it as non-optional; +// SetValue sets the Value field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem) SetExportValue(exportValue string) { - d.ExportValue = exportValue - d.require(docFormsGet200ResponseFieldsItemCheckboxWidgetsItemFieldExportValue) +func (d *DocFormsGet200ResponseFieldsItemListboxOptionsItem) SetValue(value string) { + d.Value = value + d.require(docFormsGet200ResponseFieldsItemListboxOptionsItemFieldValue) } -// SetChecked sets the Checked field and marks it as non-optional; +// SetSelected sets the Selected field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem) SetChecked(checked bool) { - d.Checked = checked - d.require(docFormsGet200ResponseFieldsItemCheckboxWidgetsItemFieldChecked) +func (d *DocFormsGet200ResponseFieldsItemListboxOptionsItem) SetSelected(selected bool) { + d.Selected = selected + d.require(docFormsGet200ResponseFieldsItemListboxOptionsItemFieldSelected) } -func (d *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem +func (d *DocFormsGet200ResponseFieldsItemListboxOptionsItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemListboxOptionsItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem(value) + *d = DocFormsGet200ResponseFieldsItemListboxOptionsItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -115844,8 +134286,8 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem) UnmarshalJSON(data return nil } -func (d *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem +func (d *DocFormsGet200ResponseFieldsItemListboxOptionsItem) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemListboxOptionsItem var marshaler = struct { embed }{ @@ -115855,7 +134297,7 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem) MarshalJSON() ([]b return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem) String() string { +func (d *DocFormsGet200ResponseFieldsItemListboxOptionsItem) String() string { if d == nil { return "" } @@ -115870,279 +134312,287 @@ func (d *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem) String() string { return fmt.Sprintf("%#v", d) } -var ( - docFormsGet200ResponseFieldsItemComboboxFieldRef = big.NewInt(1 << 0) - docFormsGet200ResponseFieldsItemComboboxFieldFieldObjectNumber = big.NewInt(1 << 1) - docFormsGet200ResponseFieldsItemComboboxFieldName = big.NewInt(1 << 2) - docFormsGet200ResponseFieldsItemComboboxFieldOrigin = big.NewInt(1 << 3) - docFormsGet200ResponseFieldsItemComboboxFieldFlags = big.NewInt(1 << 4) - docFormsGet200ResponseFieldsItemComboboxFieldAlternateName = big.NewInt(1 << 5) - docFormsGet200ResponseFieldsItemComboboxFieldMappingName = big.NewInt(1 << 6) - docFormsGet200ResponseFieldsItemComboboxFieldValueEntry = big.NewInt(1 << 7) - docFormsGet200ResponseFieldsItemComboboxFieldDefaultValueEntry = big.NewInt(1 << 8) - docFormsGet200ResponseFieldsItemComboboxFieldActions = big.NewInt(1 << 9) - docFormsGet200ResponseFieldsItemComboboxFieldWidgets = big.NewInt(1 << 10) - docFormsGet200ResponseFieldsItemComboboxFieldValue = big.NewInt(1 << 11) - docFormsGet200ResponseFieldsItemComboboxFieldDefaultValue = big.NewInt(1 << 12) - docFormsGet200ResponseFieldsItemComboboxFieldEdit = big.NewInt(1 << 13) - docFormsGet200ResponseFieldsItemComboboxFieldOptions = big.NewInt(1 << 14) -) - -type DocFormsGet200ResponseFieldsItemCombobox struct { - Ref *DocFormsGet200ResponseFieldsItemComboboxRef `json:"ref" url:"ref"` - FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` - Name string `json:"name" url:"name"` - Origin DocFormsGet200ResponseFieldsItemComboboxOrigin `json:"origin" url:"origin"` - Flags *DocFormsGet200ResponseFieldsItemComboboxFlags `json:"flags" url:"flags"` - AlternateName *string `json:"alternateName,omitempty" url:"alternateName,omitempty"` - MappingName *string `json:"mappingName,omitempty" url:"mappingName,omitempty"` - ValueEntry *DocFormsGet200ResponseFieldsItemComboboxValueEntry `json:"valueEntry" url:"valueEntry"` - DefaultValueEntry *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry `json:"defaultValueEntry" url:"defaultValueEntry"` - Actions *PdfFieldActions `json:"actions,omitempty" url:"actions,omitempty"` - Widgets []*DocFormsGet200ResponseFieldsItemComboboxWidgetsItem `json:"widgets" url:"widgets"` - Value string `json:"value" url:"value"` - DefaultValue string `json:"defaultValue" url:"defaultValue"` - Edit bool `json:"edit" url:"edit"` - Options []*DocFormsGet200ResponseFieldsItemComboboxOptionsItem `json:"options" url:"options"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +type DocFormsGet200ResponseFieldsItemListboxOrigin string - extraProperties map[string]interface{} - rawJSON json.RawMessage -} +const ( + DocFormsGet200ResponseFieldsItemListboxOriginAcroform DocFormsGet200ResponseFieldsItemListboxOrigin = "acroform" + DocFormsGet200ResponseFieldsItemListboxOriginRecovered DocFormsGet200ResponseFieldsItemListboxOrigin = "recovered" +) -func (d *DocFormsGet200ResponseFieldsItemCombobox) GetRef() *DocFormsGet200ResponseFieldsItemComboboxRef { - if d == nil { - return nil +func NewDocFormsGet200ResponseFieldsItemListboxOriginFromString(s string) (DocFormsGet200ResponseFieldsItemListboxOrigin, error) { + switch s { + case "acroform": + return DocFormsGet200ResponseFieldsItemListboxOriginAcroform, nil + case "recovered": + return DocFormsGet200ResponseFieldsItemListboxOriginRecovered, nil } - return d.Ref + var t DocFormsGet200ResponseFieldsItemListboxOrigin + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocFormsGet200ResponseFieldsItemCombobox) GetFieldObjectNumber() int { - if d == nil { - return 0 - } - return d.FieldObjectNumber +func (d DocFormsGet200ResponseFieldsItemListboxOrigin) Ptr() *DocFormsGet200ResponseFieldsItemListboxOrigin { + return &d } -func (d *DocFormsGet200ResponseFieldsItemCombobox) GetName() string { - if d == nil { - return "" - } - return d.Name +type DocFormsGet200ResponseFieldsItemListboxRef struct { + Kind string + ObjectNumber *DocFormsGet200ResponseFieldsItemListboxRefObjectNumber + Fqn *DocFormsGet200ResponseFieldsItemListboxRefFqn + + rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemCombobox) GetOrigin() DocFormsGet200ResponseFieldsItemComboboxOrigin { +func (d *DocFormsGet200ResponseFieldsItemListboxRef) GetKind() string { if d == nil { return "" } - return d.Origin + return d.Kind } -func (d *DocFormsGet200ResponseFieldsItemCombobox) GetFlags() *DocFormsGet200ResponseFieldsItemComboboxFlags { +func (d *DocFormsGet200ResponseFieldsItemListboxRef) GetObjectNumber() *DocFormsGet200ResponseFieldsItemListboxRefObjectNumber { if d == nil { return nil } - return d.Flags + return d.ObjectNumber } -func (d *DocFormsGet200ResponseFieldsItemCombobox) GetAlternateName() *string { +func (d *DocFormsGet200ResponseFieldsItemListboxRef) GetFqn() *DocFormsGet200ResponseFieldsItemListboxRefFqn { if d == nil { return nil } - return d.AlternateName + return d.Fqn } -func (d *DocFormsGet200ResponseFieldsItemCombobox) GetMappingName() *string { - if d == nil { - return nil +func (d *DocFormsGet200ResponseFieldsItemListboxRef) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` } - return d.MappingName -} - -func (d *DocFormsGet200ResponseFieldsItemCombobox) GetValueEntry() *DocFormsGet200ResponseFieldsItemComboboxValueEntry { - if d == nil { - return nil + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err } - return d.ValueEntry -} - -func (d *DocFormsGet200ResponseFieldsItemCombobox) GetDefaultValueEntry() *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry { - if d == nil { - return nil + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) } - return d.DefaultValueEntry + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocFormsGet200ResponseFieldsItemListboxRefObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "fqn": + value := new(DocFormsGet200ResponseFieldsItemListboxRefFqn) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Fqn = value + } + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocFormsGet200ResponseFieldsItemCombobox) GetActions() *PdfFieldActions { - if d == nil { - return nil +func (d DocFormsGet200ResponseFieldsItemListboxRef) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err } - return d.Actions + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Fqn != nil { + return internal.MarshalJSONWithExtraProperty(d.Fqn, "kind", "fqn") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocFormsGet200ResponseFieldsItemCombobox) GetWidgets() []*DocFormsGet200ResponseFieldsItemComboboxWidgetsItem { - if d == nil { - return nil - } - return d.Widgets +type DocFormsGet200ResponseFieldsItemListboxRefVisitor interface { + VisitObjectNumber(*DocFormsGet200ResponseFieldsItemListboxRefObjectNumber) error + VisitFqn(*DocFormsGet200ResponseFieldsItemListboxRefFqn) error } -func (d *DocFormsGet200ResponseFieldsItemCombobox) GetValue() string { - if d == nil { - return "" +func (d *DocFormsGet200ResponseFieldsItemListboxRef) Accept(visitor DocFormsGet200ResponseFieldsItemListboxRefVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) } - return d.Value + if d.Fqn != nil { + return visitor.VisitFqn(d.Fqn) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocFormsGet200ResponseFieldsItemCombobox) GetDefaultValue() string { +func (d *DocFormsGet200ResponseFieldsItemListboxRef) validate() error { if d == nil { - return "" + return fmt.Errorf("type %T is nil", d) } - return d.DefaultValue + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Fqn != nil { + fields = append(fields, "fqn") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil } -func (d *DocFormsGet200ResponseFieldsItemCombobox) GetEdit() bool { - if d == nil { - return false - } - return d.Edit +var ( + docFormsGet200ResponseFieldsItemListboxRefFqnFieldName = big.NewInt(1 << 0) +) + +type DocFormsGet200ResponseFieldsItemListboxRefFqn struct { + Name string `json:"name" url:"name"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemCombobox) GetOptions() []*DocFormsGet200ResponseFieldsItemComboboxOptionsItem { +func (d *DocFormsGet200ResponseFieldsItemListboxRefFqn) GetName() string { if d == nil { - return nil + return "" } - return d.Options + return d.Name } -func (d *DocFormsGet200ResponseFieldsItemCombobox) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemListboxRefFqn) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemCombobox) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemListboxRefFqn) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetRef sets the Ref field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCombobox) SetRef(ref *DocFormsGet200ResponseFieldsItemComboboxRef) { - d.Ref = ref - d.require(docFormsGet200ResponseFieldsItemComboboxFieldRef) -} - -// SetFieldObjectNumber sets the FieldObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCombobox) SetFieldObjectNumber(fieldObjectNumber int) { - d.FieldObjectNumber = fieldObjectNumber - d.require(docFormsGet200ResponseFieldsItemComboboxFieldFieldObjectNumber) -} - // SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCombobox) SetName(name string) { +func (d *DocFormsGet200ResponseFieldsItemListboxRefFqn) SetName(name string) { d.Name = name - d.require(docFormsGet200ResponseFieldsItemComboboxFieldName) -} - -// SetOrigin sets the Origin field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCombobox) SetOrigin(origin DocFormsGet200ResponseFieldsItemComboboxOrigin) { - d.Origin = origin - d.require(docFormsGet200ResponseFieldsItemComboboxFieldOrigin) + d.require(docFormsGet200ResponseFieldsItemListboxRefFqnFieldName) } -// SetFlags sets the Flags field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCombobox) SetFlags(flags *DocFormsGet200ResponseFieldsItemComboboxFlags) { - d.Flags = flags - d.require(docFormsGet200ResponseFieldsItemComboboxFieldFlags) +func (d *DocFormsGet200ResponseFieldsItemListboxRefFqn) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemListboxRefFqn + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocFormsGet200ResponseFieldsItemListboxRefFqn(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -// SetAlternateName sets the AlternateName field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCombobox) SetAlternateName(alternateName *string) { - d.AlternateName = alternateName - d.require(docFormsGet200ResponseFieldsItemComboboxFieldAlternateName) +func (d *DocFormsGet200ResponseFieldsItemListboxRefFqn) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemListboxRefFqn + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -// SetMappingName sets the MappingName field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCombobox) SetMappingName(mappingName *string) { - d.MappingName = mappingName - d.require(docFormsGet200ResponseFieldsItemComboboxFieldMappingName) +func (d *DocFormsGet200ResponseFieldsItemListboxRefFqn) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -// SetValueEntry sets the ValueEntry field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCombobox) SetValueEntry(valueEntry *DocFormsGet200ResponseFieldsItemComboboxValueEntry) { - d.ValueEntry = valueEntry - d.require(docFormsGet200ResponseFieldsItemComboboxFieldValueEntry) -} +var ( + docFormsGet200ResponseFieldsItemListboxRefObjectNumberFieldFieldObjectNumber = big.NewInt(1 << 0) +) -// SetDefaultValueEntry sets the DefaultValueEntry field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCombobox) SetDefaultValueEntry(defaultValueEntry *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry) { - d.DefaultValueEntry = defaultValueEntry - d.require(docFormsGet200ResponseFieldsItemComboboxFieldDefaultValueEntry) -} +type DocFormsGet200ResponseFieldsItemListboxRefObjectNumber struct { + FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` -// SetActions sets the Actions field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCombobox) SetActions(actions *PdfFieldActions) { - d.Actions = actions - d.require(docFormsGet200ResponseFieldsItemComboboxFieldActions) -} + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` -// SetWidgets sets the Widgets field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCombobox) SetWidgets(widgets []*DocFormsGet200ResponseFieldsItemComboboxWidgetsItem) { - d.Widgets = widgets - d.require(docFormsGet200ResponseFieldsItemComboboxFieldWidgets) + extraProperties map[string]interface{} + rawJSON json.RawMessage } -// SetValue sets the Value field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCombobox) SetValue(value string) { - d.Value = value - d.require(docFormsGet200ResponseFieldsItemComboboxFieldValue) +func (d *DocFormsGet200ResponseFieldsItemListboxRefObjectNumber) GetFieldObjectNumber() int { + if d == nil { + return 0 + } + return d.FieldObjectNumber } -// SetDefaultValue sets the DefaultValue field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCombobox) SetDefaultValue(defaultValue string) { - d.DefaultValue = defaultValue - d.require(docFormsGet200ResponseFieldsItemComboboxFieldDefaultValue) +func (d *DocFormsGet200ResponseFieldsItemListboxRefObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties } -// SetEdit sets the Edit field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCombobox) SetEdit(edit bool) { - d.Edit = edit - d.require(docFormsGet200ResponseFieldsItemComboboxFieldEdit) +func (d *DocFormsGet200ResponseFieldsItemListboxRefObjectNumber) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) } -// SetOptions sets the Options field and marks it as non-optional; +// SetFieldObjectNumber sets the FieldObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemCombobox) SetOptions(options []*DocFormsGet200ResponseFieldsItemComboboxOptionsItem) { - d.Options = options - d.require(docFormsGet200ResponseFieldsItemComboboxFieldOptions) +func (d *DocFormsGet200ResponseFieldsItemListboxRefObjectNumber) SetFieldObjectNumber(fieldObjectNumber int) { + d.FieldObjectNumber = fieldObjectNumber + d.require(docFormsGet200ResponseFieldsItemListboxRefObjectNumberFieldFieldObjectNumber) } -func (d *DocFormsGet200ResponseFieldsItemCombobox) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemCombobox +func (d *DocFormsGet200ResponseFieldsItemListboxRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemListboxRefObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemCombobox(value) + *d = DocFormsGet200ResponseFieldsItemListboxRefObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -116152,8 +134602,8 @@ func (d *DocFormsGet200ResponseFieldsItemCombobox) UnmarshalJSON(data []byte) er return nil } -func (d *DocFormsGet200ResponseFieldsItemCombobox) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemCombobox +func (d *DocFormsGet200ResponseFieldsItemListboxRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemListboxRefObjectNumber var marshaler = struct { embed }{ @@ -116163,7 +134613,7 @@ func (d *DocFormsGet200ResponseFieldsItemCombobox) MarshalJSON() ([]byte, error) return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemCombobox) String() string { +func (d *DocFormsGet200ResponseFieldsItemListboxRefObjectNumber) String() string { if d == nil { return "" } @@ -116178,52 +134628,52 @@ func (d *DocFormsGet200ResponseFieldsItemCombobox) String() string { return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry struct { +type DocFormsGet200ResponseFieldsItemListboxValueEntry struct { Kind string - None *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone - Scalar *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar - Array *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray - Unsupported *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported + None *DocFormsGet200ResponseFieldsItemListboxValueEntryNone + Scalar *DocFormsGet200ResponseFieldsItemListboxValueEntryScalar + Array *DocFormsGet200ResponseFieldsItemListboxValueEntryArray + Unsupported *DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry) GetKind() string { +func (d *DocFormsGet200ResponseFieldsItemListboxValueEntry) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry) GetNone() *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone { +func (d *DocFormsGet200ResponseFieldsItemListboxValueEntry) GetNone() *DocFormsGet200ResponseFieldsItemListboxValueEntryNone { if d == nil { return nil } return d.None } -func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry) GetScalar() *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar { +func (d *DocFormsGet200ResponseFieldsItemListboxValueEntry) GetScalar() *DocFormsGet200ResponseFieldsItemListboxValueEntryScalar { if d == nil { return nil } return d.Scalar } -func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry) GetArray() *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray { +func (d *DocFormsGet200ResponseFieldsItemListboxValueEntry) GetArray() *DocFormsGet200ResponseFieldsItemListboxValueEntryArray { if d == nil { return nil } return d.Array } -func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry) GetUnsupported() *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported { +func (d *DocFormsGet200ResponseFieldsItemListboxValueEntry) GetUnsupported() *DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported { if d == nil { return nil } return d.Unsupported } -func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry) UnmarshalJSON(data []byte) error { +func (d *DocFormsGet200ResponseFieldsItemListboxValueEntry) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -116236,25 +134686,25 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry) UnmarshalJSO } switch unmarshaler.Kind { case "none": - value := new(DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone) + value := new(DocFormsGet200ResponseFieldsItemListboxValueEntryNone) if err := json.Unmarshal(data, &value); err != nil { return err } d.None = value case "scalar": - value := new(DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar) + value := new(DocFormsGet200ResponseFieldsItemListboxValueEntryScalar) if err := json.Unmarshal(data, &value); err != nil { return err } d.Scalar = value case "array": - value := new(DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray) + value := new(DocFormsGet200ResponseFieldsItemListboxValueEntryArray) if err := json.Unmarshal(data, &value); err != nil { return err } d.Array = value case "unsupported": - value := new(DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported) + value := new(DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -116264,7 +134714,7 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry) UnmarshalJSO return nil } -func (d DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry) MarshalJSON() ([]byte, error) { +func (d DocFormsGet200ResponseFieldsItemListboxValueEntry) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -116285,15 +134735,15 @@ func (d DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry) MarshalJSON() } return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } - -type DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryVisitor interface { - VisitNone(*DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone) error - VisitScalar(*DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar) error - VisitArray(*DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray) error - VisitUnsupported(*DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported) error + +type DocFormsGet200ResponseFieldsItemListboxValueEntryVisitor interface { + VisitNone(*DocFormsGet200ResponseFieldsItemListboxValueEntryNone) error + VisitScalar(*DocFormsGet200ResponseFieldsItemListboxValueEntryScalar) error + VisitArray(*DocFormsGet200ResponseFieldsItemListboxValueEntryArray) error + VisitUnsupported(*DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported) error } -func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry) Accept(visitor DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryVisitor) error { +func (d *DocFormsGet200ResponseFieldsItemListboxValueEntry) Accept(visitor DocFormsGet200ResponseFieldsItemListboxValueEntryVisitor) error { if d.None != nil { return visitor.VisitNone(d.None) } @@ -116309,7 +134759,7 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry) Accept(visit return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry) validate() error { +func (d *DocFormsGet200ResponseFieldsItemListboxValueEntry) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -116353,10 +134803,10 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry) validate() e } var ( - docFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArrayFieldValues = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemListboxValueEntryArrayFieldValues = big.NewInt(1 << 0) ) -type DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray struct { +type DocFormsGet200ResponseFieldsItemListboxValueEntryArray struct { Values []string `json:"values" url:"values"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -116366,21 +134816,21 @@ type DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray) GetValues() []string { +func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryArray) GetValues() []string { if d == nil { return nil } return d.Values } -func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryArray) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryArray) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -116389,18 +134839,18 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray) require // SetValues sets the Values field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray) SetValues(values []string) { +func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryArray) SetValues(values []string) { d.Values = values - d.require(docFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArrayFieldValues) + d.require(docFormsGet200ResponseFieldsItemListboxValueEntryArrayFieldValues) } -func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray +func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryArray) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemListboxValueEntryArray var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray(value) + *d = DocFormsGet200ResponseFieldsItemListboxValueEntryArray(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -116410,8 +134860,8 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray) Unmarsh return nil } -func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray +func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryArray) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemListboxValueEntryArray var marshaler = struct { embed }{ @@ -116421,7 +134871,7 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray) Marshal return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray) String() string { +func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryArray) String() string { if d == nil { return "" } @@ -116436,7 +134886,7 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray) String( return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone struct { +type DocFormsGet200ResponseFieldsItemListboxValueEntryNone struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -116445,27 +134895,27 @@ type DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryNone) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryNone) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone +func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryNone) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemListboxValueEntryNone var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone(value) + *d = DocFormsGet200ResponseFieldsItemListboxValueEntryNone(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -116475,8 +134925,8 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone) Unmarsha return nil } -func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone +func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryNone) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemListboxValueEntryNone var marshaler = struct { embed }{ @@ -116486,7 +134936,7 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone) MarshalJ return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone) String() string { +func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryNone) String() string { if d == nil { return "" } @@ -116502,10 +134952,10 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone) String() } var ( - docFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalarFieldValue = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemListboxValueEntryScalarFieldValue = big.NewInt(1 << 0) ) -type DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar struct { +type DocFormsGet200ResponseFieldsItemListboxValueEntryScalar struct { Value string `json:"value" url:"value"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -116515,21 +134965,21 @@ type DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar) GetValue() string { +func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryScalar) GetValue() string { if d == nil { return "" } return d.Value } -func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryScalar) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryScalar) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -116538,18 +134988,18 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar) requir // SetValue sets the Value field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar) SetValue(value string) { +func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryScalar) SetValue(value string) { d.Value = value - d.require(docFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalarFieldValue) + d.require(docFormsGet200ResponseFieldsItemListboxValueEntryScalarFieldValue) } -func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar +func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryScalar) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemListboxValueEntryScalar var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar(value) + *d = DocFormsGet200ResponseFieldsItemListboxValueEntryScalar(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -116559,8 +135009,8 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar) Unmars return nil } -func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar +func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryScalar) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemListboxValueEntryScalar var marshaler = struct { embed }{ @@ -116570,7 +135020,7 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar) Marsha return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar) String() string { +func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryScalar) String() string { if d == nil { return "" } @@ -116585,7 +135035,7 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar) String return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported struct { +type DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -116594,27 +135044,27 @@ type DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported struct rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported +func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported(value) + *d = DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -116624,8 +135074,8 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported) U return nil } -func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported +func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported var marshaler = struct { embed }{ @@ -116635,7 +135085,7 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported) M return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported) String() string { +func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported) String() string { if d == nil { return "" } @@ -116651,17 +135101,13 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported) S } var ( - docFormsGet200ResponseFieldsItemComboboxFlagsFieldReadOnly = big.NewInt(1 << 0) - docFormsGet200ResponseFieldsItemComboboxFlagsFieldRequired = big.NewInt(1 << 1) - docFormsGet200ResponseFieldsItemComboboxFlagsFieldNoExport = big.NewInt(1 << 2) - docFormsGet200ResponseFieldsItemComboboxFlagsFieldRaw = big.NewInt(1 << 3) + docFormsGet200ResponseFieldsItemListboxWidgetsItemFieldAnnotObjectNumber = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemListboxWidgetsItemFieldPageObjectNumber = big.NewInt(1 << 1) ) -type DocFormsGet200ResponseFieldsItemComboboxFlags struct { - ReadOnly bool `json:"readOnly" url:"readOnly"` - Required bool `json:"required" url:"required"` - NoExport bool `json:"noExport" url:"noExport"` - Raw int `json:"raw" url:"raw"` +type DocFormsGet200ResponseFieldsItemListboxWidgetsItem struct { + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -116670,83 +135116,55 @@ type DocFormsGet200ResponseFieldsItemComboboxFlags struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemComboboxFlags) GetReadOnly() bool { - if d == nil { - return false - } - return d.ReadOnly -} - -func (d *DocFormsGet200ResponseFieldsItemComboboxFlags) GetRequired() bool { - if d == nil { - return false - } - return d.Required -} - -func (d *DocFormsGet200ResponseFieldsItemComboboxFlags) GetNoExport() bool { +func (d *DocFormsGet200ResponseFieldsItemListboxWidgetsItem) GetAnnotObjectNumber() int { if d == nil { - return false + return 0 } - return d.NoExport + return d.AnnotObjectNumber } -func (d *DocFormsGet200ResponseFieldsItemComboboxFlags) GetRaw() int { +func (d *DocFormsGet200ResponseFieldsItemListboxWidgetsItem) GetPageObjectNumber() int { if d == nil { return 0 } - return d.Raw + return d.PageObjectNumber } -func (d *DocFormsGet200ResponseFieldsItemComboboxFlags) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemListboxWidgetsItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemComboboxFlags) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemListboxWidgetsItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetReadOnly sets the ReadOnly field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemComboboxFlags) SetReadOnly(readOnly bool) { - d.ReadOnly = readOnly - d.require(docFormsGet200ResponseFieldsItemComboboxFlagsFieldReadOnly) -} - -// SetRequired sets the Required field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemComboboxFlags) SetRequired(required bool) { - d.Required = required - d.require(docFormsGet200ResponseFieldsItemComboboxFlagsFieldRequired) -} - -// SetNoExport sets the NoExport field and marks it as non-optional; +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemComboboxFlags) SetNoExport(noExport bool) { - d.NoExport = noExport - d.require(docFormsGet200ResponseFieldsItemComboboxFlagsFieldNoExport) +func (d *DocFormsGet200ResponseFieldsItemListboxWidgetsItem) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docFormsGet200ResponseFieldsItemListboxWidgetsItemFieldAnnotObjectNumber) } -// SetRaw sets the Raw field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemComboboxFlags) SetRaw(raw int) { - d.Raw = raw - d.require(docFormsGet200ResponseFieldsItemComboboxFlagsFieldRaw) +func (d *DocFormsGet200ResponseFieldsItemListboxWidgetsItem) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docFormsGet200ResponseFieldsItemListboxWidgetsItemFieldPageObjectNumber) } -func (d *DocFormsGet200ResponseFieldsItemComboboxFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemComboboxFlags +func (d *DocFormsGet200ResponseFieldsItemListboxWidgetsItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemListboxWidgetsItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemComboboxFlags(value) + *d = DocFormsGet200ResponseFieldsItemListboxWidgetsItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -116756,8 +135174,8 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxFlags) UnmarshalJSON(data []byt return nil } -func (d *DocFormsGet200ResponseFieldsItemComboboxFlags) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemComboboxFlags +func (d *DocFormsGet200ResponseFieldsItemListboxWidgetsItem) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemListboxWidgetsItem var marshaler = struct { embed }{ @@ -116767,7 +135185,7 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxFlags) MarshalJSON() ([]byte, e return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemComboboxFlags) String() string { +func (d *DocFormsGet200ResponseFieldsItemListboxWidgetsItem) String() string { if d == nil { return "" } @@ -116783,15 +135201,31 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxFlags) String() string { } var ( - docFormsGet200ResponseFieldsItemComboboxOptionsItemFieldLabel = big.NewInt(1 << 0) - docFormsGet200ResponseFieldsItemComboboxOptionsItemFieldValue = big.NewInt(1 << 1) - docFormsGet200ResponseFieldsItemComboboxOptionsItemFieldSelected = big.NewInt(1 << 2) + docFormsGet200ResponseFieldsItemPushbuttonFieldRef = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemPushbuttonFieldFieldObjectNumber = big.NewInt(1 << 1) + docFormsGet200ResponseFieldsItemPushbuttonFieldName = big.NewInt(1 << 2) + docFormsGet200ResponseFieldsItemPushbuttonFieldOrigin = big.NewInt(1 << 3) + docFormsGet200ResponseFieldsItemPushbuttonFieldFlags = big.NewInt(1 << 4) + docFormsGet200ResponseFieldsItemPushbuttonFieldAlternateName = big.NewInt(1 << 5) + docFormsGet200ResponseFieldsItemPushbuttonFieldMappingName = big.NewInt(1 << 6) + docFormsGet200ResponseFieldsItemPushbuttonFieldValueEntry = big.NewInt(1 << 7) + docFormsGet200ResponseFieldsItemPushbuttonFieldDefaultValueEntry = big.NewInt(1 << 8) + docFormsGet200ResponseFieldsItemPushbuttonFieldActions = big.NewInt(1 << 9) + docFormsGet200ResponseFieldsItemPushbuttonFieldWidgets = big.NewInt(1 << 10) ) -type DocFormsGet200ResponseFieldsItemComboboxOptionsItem struct { - Label string `json:"label" url:"label"` - Value string `json:"value" url:"value"` - Selected bool `json:"selected" url:"selected"` +type DocFormsGet200ResponseFieldsItemPushbutton struct { + Ref *DocFormsGet200ResponseFieldsItemPushbuttonRef `json:"ref" url:"ref"` + FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` + Name string `json:"name" url:"name"` + Origin DocFormsGet200ResponseFieldsItemPushbuttonOrigin `json:"origin" url:"origin"` + Flags *DocFormsGet200ResponseFieldsItemPushbuttonFlags `json:"flags" url:"flags"` + AlternateName *string `json:"alternateName,omitempty" url:"alternateName,omitempty"` + MappingName *string `json:"mappingName,omitempty" url:"mappingName,omitempty"` + ValueEntry *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry `json:"valueEntry" url:"valueEntry"` + DefaultValueEntry *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry `json:"defaultValueEntry" url:"defaultValueEntry"` + Actions *PdfFieldActions `json:"actions,omitempty" url:"actions,omitempty"` + Widgets []*DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem `json:"widgets" url:"widgets"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -116800,385 +135234,181 @@ type DocFormsGet200ResponseFieldsItemComboboxOptionsItem struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemComboboxOptionsItem) GetLabel() string { - if d == nil { - return "" - } - return d.Label -} - -func (d *DocFormsGet200ResponseFieldsItemComboboxOptionsItem) GetValue() string { - if d == nil { - return "" - } - return d.Value -} - -func (d *DocFormsGet200ResponseFieldsItemComboboxOptionsItem) GetSelected() bool { - if d == nil { - return false - } - return d.Selected -} - -func (d *DocFormsGet200ResponseFieldsItemComboboxOptionsItem) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemPushbutton) GetRef() *DocFormsGet200ResponseFieldsItemPushbuttonRef { if d == nil { return nil } - return d.extraProperties -} - -func (d *DocFormsGet200ResponseFieldsItemComboboxOptionsItem) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetLabel sets the Label field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemComboboxOptionsItem) SetLabel(label string) { - d.Label = label - d.require(docFormsGet200ResponseFieldsItemComboboxOptionsItemFieldLabel) -} - -// SetValue sets the Value field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemComboboxOptionsItem) SetValue(value string) { - d.Value = value - d.require(docFormsGet200ResponseFieldsItemComboboxOptionsItemFieldValue) -} - -// SetSelected sets the Selected field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemComboboxOptionsItem) SetSelected(selected bool) { - d.Selected = selected - d.require(docFormsGet200ResponseFieldsItemComboboxOptionsItemFieldSelected) -} - -func (d *DocFormsGet200ResponseFieldsItemComboboxOptionsItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemComboboxOptionsItem - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocFormsGet200ResponseFieldsItemComboboxOptionsItem(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d *DocFormsGet200ResponseFieldsItemComboboxOptionsItem) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemComboboxOptionsItem - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return d.Ref } -func (d *DocFormsGet200ResponseFieldsItemComboboxOptionsItem) String() string { +func (d *DocFormsGet200ResponseFieldsItemPushbutton) GetFieldObjectNumber() int { if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) -} - -type DocFormsGet200ResponseFieldsItemComboboxOrigin string - -const ( - DocFormsGet200ResponseFieldsItemComboboxOriginAcroform DocFormsGet200ResponseFieldsItemComboboxOrigin = "acroform" - DocFormsGet200ResponseFieldsItemComboboxOriginRecovered DocFormsGet200ResponseFieldsItemComboboxOrigin = "recovered" -) - -func NewDocFormsGet200ResponseFieldsItemComboboxOriginFromString(s string) (DocFormsGet200ResponseFieldsItemComboboxOrigin, error) { - switch s { - case "acroform": - return DocFormsGet200ResponseFieldsItemComboboxOriginAcroform, nil - case "recovered": - return DocFormsGet200ResponseFieldsItemComboboxOriginRecovered, nil + return 0 } - var t DocFormsGet200ResponseFieldsItemComboboxOrigin - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocFormsGet200ResponseFieldsItemComboboxOrigin) Ptr() *DocFormsGet200ResponseFieldsItemComboboxOrigin { - return &d -} - -type DocFormsGet200ResponseFieldsItemComboboxRef struct { - Kind string - ObjectNumber *DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber - Fqn *DocFormsGet200ResponseFieldsItemComboboxRefFqn - - rawJSON json.RawMessage + return d.FieldObjectNumber } -func (d *DocFormsGet200ResponseFieldsItemComboboxRef) GetKind() string { +func (d *DocFormsGet200ResponseFieldsItemPushbutton) GetName() string { if d == nil { return "" } - return d.Kind + return d.Name } -func (d *DocFormsGet200ResponseFieldsItemComboboxRef) GetObjectNumber() *DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber { +func (d *DocFormsGet200ResponseFieldsItemPushbutton) GetOrigin() DocFormsGet200ResponseFieldsItemPushbuttonOrigin { if d == nil { - return nil + return "" } - return d.ObjectNumber + return d.Origin } -func (d *DocFormsGet200ResponseFieldsItemComboboxRef) GetFqn() *DocFormsGet200ResponseFieldsItemComboboxRefFqn { +func (d *DocFormsGet200ResponseFieldsItemPushbutton) GetFlags() *DocFormsGet200ResponseFieldsItemPushbuttonFlags { if d == nil { return nil } - return d.Fqn -} - -func (d *DocFormsGet200ResponseFieldsItemComboboxRef) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "fqn": - value := new(DocFormsGet200ResponseFieldsItemComboboxRefFqn) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Fqn = value - } - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d DocFormsGet200ResponseFieldsItemComboboxRef) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Fqn != nil { - return internal.MarshalJSONWithExtraProperty(d.Fqn, "kind", "fqn") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil - } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) -} - -type DocFormsGet200ResponseFieldsItemComboboxRefVisitor interface { - VisitObjectNumber(*DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber) error - VisitFqn(*DocFormsGet200ResponseFieldsItemComboboxRefFqn) error -} - -func (d *DocFormsGet200ResponseFieldsItemComboboxRef) Accept(visitor DocFormsGet200ResponseFieldsItemComboboxRefVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) - } - if d.Fqn != nil { - return visitor.VisitFqn(d.Fqn) - } - return fmt.Errorf("type %T does not define a non-empty union type", d) -} - -func (d *DocFormsGet200ResponseFieldsItemComboboxRef) validate() error { - if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Fqn != nil { - fields = append(fields, "fqn") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } - } - return nil -} - -var ( - docFormsGet200ResponseFieldsItemComboboxRefFqnFieldName = big.NewInt(1 << 0) -) - -type DocFormsGet200ResponseFieldsItemComboboxRefFqn struct { - Name string `json:"name" url:"name"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage + return d.Flags } -func (d *DocFormsGet200ResponseFieldsItemComboboxRefFqn) GetName() string { +func (d *DocFormsGet200ResponseFieldsItemPushbutton) GetAlternateName() *string { if d == nil { - return "" + return nil } - return d.Name + return d.AlternateName } -func (d *DocFormsGet200ResponseFieldsItemComboboxRefFqn) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemPushbutton) GetMappingName() *string { if d == nil { return nil } - return d.extraProperties -} - -func (d *DocFormsGet200ResponseFieldsItemComboboxRefFqn) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetName sets the Name field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemComboboxRefFqn) SetName(name string) { - d.Name = name - d.require(docFormsGet200ResponseFieldsItemComboboxRefFqnFieldName) -} - -func (d *DocFormsGet200ResponseFieldsItemComboboxRefFqn) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemComboboxRefFqn - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocFormsGet200ResponseFieldsItemComboboxRefFqn(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d *DocFormsGet200ResponseFieldsItemComboboxRefFqn) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemComboboxRefFqn - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return d.MappingName } -func (d *DocFormsGet200ResponseFieldsItemComboboxRefFqn) String() string { +func (d *DocFormsGet200ResponseFieldsItemPushbutton) GetValueEntry() *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry { if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value + return nil } - return fmt.Sprintf("%#v", d) + return d.ValueEntry } -var ( - docFormsGet200ResponseFieldsItemComboboxRefObjectNumberFieldFieldObjectNumber = big.NewInt(1 << 0) -) - -type DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber struct { - FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +func (d *DocFormsGet200ResponseFieldsItemPushbutton) GetDefaultValueEntry() *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry { + if d == nil { + return nil + } + return d.DefaultValueEntry +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocFormsGet200ResponseFieldsItemPushbutton) GetActions() *PdfFieldActions { + if d == nil { + return nil + } + return d.Actions } -func (d *DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber) GetFieldObjectNumber() int { +func (d *DocFormsGet200ResponseFieldsItemPushbutton) GetWidgets() []*DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem { if d == nil { - return 0 + return nil } - return d.FieldObjectNumber + return d.Widgets } -func (d *DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemPushbutton) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemPushbutton) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } +// SetRef sets the Ref field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemPushbutton) SetRef(ref *DocFormsGet200ResponseFieldsItemPushbuttonRef) { + d.Ref = ref + d.require(docFormsGet200ResponseFieldsItemPushbuttonFieldRef) +} + // SetFieldObjectNumber sets the FieldObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber) SetFieldObjectNumber(fieldObjectNumber int) { +func (d *DocFormsGet200ResponseFieldsItemPushbutton) SetFieldObjectNumber(fieldObjectNumber int) { d.FieldObjectNumber = fieldObjectNumber - d.require(docFormsGet200ResponseFieldsItemComboboxRefObjectNumberFieldFieldObjectNumber) + d.require(docFormsGet200ResponseFieldsItemPushbuttonFieldFieldObjectNumber) } -func (d *DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber +// SetName sets the Name field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemPushbutton) SetName(name string) { + d.Name = name + d.require(docFormsGet200ResponseFieldsItemPushbuttonFieldName) +} + +// SetOrigin sets the Origin field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemPushbutton) SetOrigin(origin DocFormsGet200ResponseFieldsItemPushbuttonOrigin) { + d.Origin = origin + d.require(docFormsGet200ResponseFieldsItemPushbuttonFieldOrigin) +} + +// SetFlags sets the Flags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemPushbutton) SetFlags(flags *DocFormsGet200ResponseFieldsItemPushbuttonFlags) { + d.Flags = flags + d.require(docFormsGet200ResponseFieldsItemPushbuttonFieldFlags) +} + +// SetAlternateName sets the AlternateName field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemPushbutton) SetAlternateName(alternateName *string) { + d.AlternateName = alternateName + d.require(docFormsGet200ResponseFieldsItemPushbuttonFieldAlternateName) +} + +// SetMappingName sets the MappingName field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemPushbutton) SetMappingName(mappingName *string) { + d.MappingName = mappingName + d.require(docFormsGet200ResponseFieldsItemPushbuttonFieldMappingName) +} + +// SetValueEntry sets the ValueEntry field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemPushbutton) SetValueEntry(valueEntry *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry) { + d.ValueEntry = valueEntry + d.require(docFormsGet200ResponseFieldsItemPushbuttonFieldValueEntry) +} + +// SetDefaultValueEntry sets the DefaultValueEntry field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemPushbutton) SetDefaultValueEntry(defaultValueEntry *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry) { + d.DefaultValueEntry = defaultValueEntry + d.require(docFormsGet200ResponseFieldsItemPushbuttonFieldDefaultValueEntry) +} + +// SetActions sets the Actions field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemPushbutton) SetActions(actions *PdfFieldActions) { + d.Actions = actions + d.require(docFormsGet200ResponseFieldsItemPushbuttonFieldActions) +} + +// SetWidgets sets the Widgets field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemPushbutton) SetWidgets(widgets []*DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem) { + d.Widgets = widgets + d.require(docFormsGet200ResponseFieldsItemPushbuttonFieldWidgets) +} + +func (d *DocFormsGet200ResponseFieldsItemPushbutton) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemPushbutton var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber(value) + *d = DocFormsGet200ResponseFieldsItemPushbutton(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -117188,8 +135418,8 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber) UnmarshalJSON( return nil } -func (d *DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber +func (d *DocFormsGet200ResponseFieldsItemPushbutton) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemPushbutton var marshaler = struct { embed }{ @@ -117199,7 +135429,7 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber) MarshalJSON() return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber) String() string { +func (d *DocFormsGet200ResponseFieldsItemPushbutton) String() string { if d == nil { return "" } @@ -117214,52 +135444,52 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber) String() strin return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemComboboxValueEntry struct { +type DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry struct { Kind string - None *DocFormsGet200ResponseFieldsItemComboboxValueEntryNone - Scalar *DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar - Array *DocFormsGet200ResponseFieldsItemComboboxValueEntryArray - Unsupported *DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported + None *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone + Scalar *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar + Array *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray + Unsupported *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntry) GetKind() string { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntry) GetNone() *DocFormsGet200ResponseFieldsItemComboboxValueEntryNone { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry) GetNone() *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone { if d == nil { return nil } return d.None } -func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntry) GetScalar() *DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry) GetScalar() *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar { if d == nil { return nil } return d.Scalar } -func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntry) GetArray() *DocFormsGet200ResponseFieldsItemComboboxValueEntryArray { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry) GetArray() *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray { if d == nil { return nil } return d.Array } -func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntry) GetUnsupported() *DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry) GetUnsupported() *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported { if d == nil { return nil } return d.Unsupported } -func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntry) UnmarshalJSON(data []byte) error { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -117272,25 +135502,25 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntry) UnmarshalJSON(data } switch unmarshaler.Kind { case "none": - value := new(DocFormsGet200ResponseFieldsItemComboboxValueEntryNone) + value := new(DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone) if err := json.Unmarshal(data, &value); err != nil { return err } d.None = value case "scalar": - value := new(DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar) + value := new(DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar) if err := json.Unmarshal(data, &value); err != nil { return err } d.Scalar = value case "array": - value := new(DocFormsGet200ResponseFieldsItemComboboxValueEntryArray) + value := new(DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray) if err := json.Unmarshal(data, &value); err != nil { return err } d.Array = value case "unsupported": - value := new(DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported) + value := new(DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -117300,7 +135530,7 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntry) UnmarshalJSON(data return nil } -func (d DocFormsGet200ResponseFieldsItemComboboxValueEntry) MarshalJSON() ([]byte, error) { +func (d DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -117322,14 +135552,14 @@ func (d DocFormsGet200ResponseFieldsItemComboboxValueEntry) MarshalJSON() ([]byt return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocFormsGet200ResponseFieldsItemComboboxValueEntryVisitor interface { - VisitNone(*DocFormsGet200ResponseFieldsItemComboboxValueEntryNone) error - VisitScalar(*DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar) error - VisitArray(*DocFormsGet200ResponseFieldsItemComboboxValueEntryArray) error - VisitUnsupported(*DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported) error +type DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryVisitor interface { + VisitNone(*DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone) error + VisitScalar(*DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar) error + VisitArray(*DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray) error + VisitUnsupported(*DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported) error } -func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntry) Accept(visitor DocFormsGet200ResponseFieldsItemComboboxValueEntryVisitor) error { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry) Accept(visitor DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryVisitor) error { if d.None != nil { return visitor.VisitNone(d.None) } @@ -117345,7 +135575,7 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntry) Accept(visitor DocF return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntry) validate() error { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -117389,10 +135619,10 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntry) validate() error { } var ( - docFormsGet200ResponseFieldsItemComboboxValueEntryArrayFieldValues = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArrayFieldValues = big.NewInt(1 << 0) ) -type DocFormsGet200ResponseFieldsItemComboboxValueEntryArray struct { +type DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray struct { Values []string `json:"values" url:"values"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -117402,21 +135632,21 @@ type DocFormsGet200ResponseFieldsItemComboboxValueEntryArray struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryArray) GetValues() []string { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray) GetValues() []string { if d == nil { return nil } return d.Values } -func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryArray) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryArray) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -117425,18 +135655,18 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryArray) require(field // SetValues sets the Values field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryArray) SetValues(values []string) { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray) SetValues(values []string) { d.Values = values - d.require(docFormsGet200ResponseFieldsItemComboboxValueEntryArrayFieldValues) + d.require(docFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArrayFieldValues) } -func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryArray) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemComboboxValueEntryArray +func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemComboboxValueEntryArray(value) + *d = DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -117446,8 +135676,8 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryArray) UnmarshalJSON( return nil } -func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryArray) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemComboboxValueEntryArray +func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray var marshaler = struct { embed }{ @@ -117457,7 +135687,7 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryArray) MarshalJSON() return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryArray) String() string { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray) String() string { if d == nil { return "" } @@ -117472,7 +135702,7 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryArray) String() strin return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemComboboxValueEntryNone struct { +type DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -117481,27 +135711,27 @@ type DocFormsGet200ResponseFieldsItemComboboxValueEntryNone struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryNone) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryNone) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryNone) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemComboboxValueEntryNone +func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemComboboxValueEntryNone(value) + *d = DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -117511,8 +135741,8 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryNone) UnmarshalJSON(d return nil } -func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryNone) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemComboboxValueEntryNone +func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone var marshaler = struct { embed }{ @@ -117522,7 +135752,7 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryNone) MarshalJSON() ( return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryNone) String() string { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone) String() string { if d == nil { return "" } @@ -117538,10 +135768,10 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryNone) String() string } var ( - docFormsGet200ResponseFieldsItemComboboxValueEntryScalarFieldValue = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalarFieldValue = big.NewInt(1 << 0) ) -type DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar struct { +type DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar struct { Value string `json:"value" url:"value"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -117551,21 +135781,21 @@ type DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar) GetValue() string { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar) GetValue() string { if d == nil { return "" } return d.Value } -func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -117574,18 +135804,18 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar) require(field // SetValue sets the Value field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar) SetValue(value string) { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar) SetValue(value string) { d.Value = value - d.require(docFormsGet200ResponseFieldsItemComboboxValueEntryScalarFieldValue) + d.require(docFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalarFieldValue) } -func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar +func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar(value) + *d = DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -117595,8 +135825,8 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar) UnmarshalJSON return nil } -func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar +func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar var marshaler = struct { embed }{ @@ -117606,7 +135836,7 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar) MarshalJSON() return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar) String() string { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar) String() string { if d == nil { return "" } @@ -117621,7 +135851,7 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar) String() stri return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported struct { +type DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -117630,27 +135860,27 @@ type DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported +func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported(value) + *d = DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -117660,40 +135890,318 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported) Unmarsha return nil } -func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported +func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docFormsGet200ResponseFieldsItemPushbuttonFlagsFieldReadOnly = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemPushbuttonFlagsFieldRequired = big.NewInt(1 << 1) + docFormsGet200ResponseFieldsItemPushbuttonFlagsFieldNoExport = big.NewInt(1 << 2) + docFormsGet200ResponseFieldsItemPushbuttonFlagsFieldRaw = big.NewInt(1 << 3) +) + +type DocFormsGet200ResponseFieldsItemPushbuttonFlags struct { + ReadOnly bool `json:"readOnly" url:"readOnly"` + Required bool `json:"required" url:"required"` + NoExport bool `json:"noExport" url:"noExport"` + Raw int `json:"raw" url:"raw"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocFormsGet200ResponseFieldsItemPushbuttonFlags) GetReadOnly() bool { + if d == nil { + return false + } + return d.ReadOnly +} + +func (d *DocFormsGet200ResponseFieldsItemPushbuttonFlags) GetRequired() bool { + if d == nil { + return false + } + return d.Required +} + +func (d *DocFormsGet200ResponseFieldsItemPushbuttonFlags) GetNoExport() bool { + if d == nil { + return false + } + return d.NoExport +} + +func (d *DocFormsGet200ResponseFieldsItemPushbuttonFlags) GetRaw() int { + if d == nil { + return 0 + } + return d.Raw +} + +func (d *DocFormsGet200ResponseFieldsItemPushbuttonFlags) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocFormsGet200ResponseFieldsItemPushbuttonFlags) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetReadOnly sets the ReadOnly field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemPushbuttonFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + d.require(docFormsGet200ResponseFieldsItemPushbuttonFlagsFieldReadOnly) +} + +// SetRequired sets the Required field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemPushbuttonFlags) SetRequired(required bool) { + d.Required = required + d.require(docFormsGet200ResponseFieldsItemPushbuttonFlagsFieldRequired) +} + +// SetNoExport sets the NoExport field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemPushbuttonFlags) SetNoExport(noExport bool) { + d.NoExport = noExport + d.require(docFormsGet200ResponseFieldsItemPushbuttonFlagsFieldNoExport) +} + +// SetRaw sets the Raw field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemPushbuttonFlags) SetRaw(raw int) { + d.Raw = raw + d.require(docFormsGet200ResponseFieldsItemPushbuttonFlagsFieldRaw) +} + +func (d *DocFormsGet200ResponseFieldsItemPushbuttonFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemPushbuttonFlags + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocFormsGet200ResponseFieldsItemPushbuttonFlags(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocFormsGet200ResponseFieldsItemPushbuttonFlags) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemPushbuttonFlags var marshaler = struct { embed }{ embed: embed(*d), } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocFormsGet200ResponseFieldsItemPushbuttonFlags) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocFormsGet200ResponseFieldsItemPushbuttonOrigin string + +const ( + DocFormsGet200ResponseFieldsItemPushbuttonOriginAcroform DocFormsGet200ResponseFieldsItemPushbuttonOrigin = "acroform" + DocFormsGet200ResponseFieldsItemPushbuttonOriginRecovered DocFormsGet200ResponseFieldsItemPushbuttonOrigin = "recovered" +) + +func NewDocFormsGet200ResponseFieldsItemPushbuttonOriginFromString(s string) (DocFormsGet200ResponseFieldsItemPushbuttonOrigin, error) { + switch s { + case "acroform": + return DocFormsGet200ResponseFieldsItemPushbuttonOriginAcroform, nil + case "recovered": + return DocFormsGet200ResponseFieldsItemPushbuttonOriginRecovered, nil + } + var t DocFormsGet200ResponseFieldsItemPushbuttonOrigin + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocFormsGet200ResponseFieldsItemPushbuttonOrigin) Ptr() *DocFormsGet200ResponseFieldsItemPushbuttonOrigin { + return &d +} + +type DocFormsGet200ResponseFieldsItemPushbuttonRef struct { + Kind string + ObjectNumber *DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber + Fqn *DocFormsGet200ResponseFieldsItemPushbuttonRefFqn + + rawJSON json.RawMessage +} + +func (d *DocFormsGet200ResponseFieldsItemPushbuttonRef) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocFormsGet200ResponseFieldsItemPushbuttonRef) GetObjectNumber() *DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber { + if d == nil { + return nil + } + return d.ObjectNumber +} + +func (d *DocFormsGet200ResponseFieldsItemPushbuttonRef) GetFqn() *DocFormsGet200ResponseFieldsItemPushbuttonRefFqn { + if d == nil { + return nil + } + return d.Fqn +} + +func (d *DocFormsGet200ResponseFieldsItemPushbuttonRef) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "fqn": + value := new(DocFormsGet200ResponseFieldsItemPushbuttonRefFqn) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Fqn = value + } + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d DocFormsGet200ResponseFieldsItemPushbuttonRef) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err + } + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Fqn != nil { + return internal.MarshalJSONWithExtraProperty(d.Fqn, "kind", "fqn") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +} + +type DocFormsGet200ResponseFieldsItemPushbuttonRefVisitor interface { + VisitObjectNumber(*DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber) error + VisitFqn(*DocFormsGet200ResponseFieldsItemPushbuttonRefFqn) error +} + +func (d *DocFormsGet200ResponseFieldsItemPushbuttonRef) Accept(visitor DocFormsGet200ResponseFieldsItemPushbuttonRefVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) + } + if d.Fqn != nil { + return visitor.VisitFqn(d.Fqn) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported) String() string { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonRef) validate() error { if d == nil { - return "" + return fmt.Errorf("type %T is nil", d) } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Fqn != nil { + fields = append(fields, "fqn") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) } + return fmt.Errorf("type %T is empty", d) } - if value, err := internal.StringifyJSON(d); err == nil { - return value + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) } - return fmt.Sprintf("%#v", d) + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil } var ( - docFormsGet200ResponseFieldsItemComboboxWidgetsItemFieldAnnotObjectNumber = big.NewInt(1 << 0) - docFormsGet200ResponseFieldsItemComboboxWidgetsItemFieldPageObjectNumber = big.NewInt(1 << 1) + docFormsGet200ResponseFieldsItemPushbuttonRefFqnFieldName = big.NewInt(1 << 0) ) -type DocFormsGet200ResponseFieldsItemComboboxWidgetsItem struct { - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` +type DocFormsGet200ResponseFieldsItemPushbuttonRefFqn struct { + Name string `json:"name" url:"name"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -117702,55 +136210,41 @@ type DocFormsGet200ResponseFieldsItemComboboxWidgetsItem struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemComboboxWidgetsItem) GetAnnotObjectNumber() int { - if d == nil { - return 0 - } - return d.AnnotObjectNumber -} - -func (d *DocFormsGet200ResponseFieldsItemComboboxWidgetsItem) GetPageObjectNumber() int { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonRefFqn) GetName() string { if d == nil { - return 0 + return "" } - return d.PageObjectNumber + return d.Name } -func (d *DocFormsGet200ResponseFieldsItemComboboxWidgetsItem) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonRefFqn) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemComboboxWidgetsItem) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonRefFqn) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemComboboxWidgetsItem) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docFormsGet200ResponseFieldsItemComboboxWidgetsItemFieldAnnotObjectNumber) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemComboboxWidgetsItem) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docFormsGet200ResponseFieldsItemComboboxWidgetsItemFieldPageObjectNumber) +func (d *DocFormsGet200ResponseFieldsItemPushbuttonRefFqn) SetName(name string) { + d.Name = name + d.require(docFormsGet200ResponseFieldsItemPushbuttonRefFqnFieldName) } -func (d *DocFormsGet200ResponseFieldsItemComboboxWidgetsItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemComboboxWidgetsItem +func (d *DocFormsGet200ResponseFieldsItemPushbuttonRefFqn) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemPushbuttonRefFqn var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemComboboxWidgetsItem(value) + *d = DocFormsGet200ResponseFieldsItemPushbuttonRefFqn(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -117760,8 +136254,8 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxWidgetsItem) UnmarshalJSON(data return nil } -func (d *DocFormsGet200ResponseFieldsItemComboboxWidgetsItem) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemComboboxWidgetsItem +func (d *DocFormsGet200ResponseFieldsItemPushbuttonRefFqn) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemPushbuttonRefFqn var marshaler = struct { embed }{ @@ -117771,7 +136265,7 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxWidgetsItem) MarshalJSON() ([]b return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemComboboxWidgetsItem) String() string { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonRefFqn) String() string { if d == nil { return "" } @@ -117787,37 +136281,11 @@ func (d *DocFormsGet200ResponseFieldsItemComboboxWidgetsItem) String() string { } var ( - docFormsGet200ResponseFieldsItemListboxFieldRef = big.NewInt(1 << 0) - docFormsGet200ResponseFieldsItemListboxFieldFieldObjectNumber = big.NewInt(1 << 1) - docFormsGet200ResponseFieldsItemListboxFieldName = big.NewInt(1 << 2) - docFormsGet200ResponseFieldsItemListboxFieldOrigin = big.NewInt(1 << 3) - docFormsGet200ResponseFieldsItemListboxFieldFlags = big.NewInt(1 << 4) - docFormsGet200ResponseFieldsItemListboxFieldAlternateName = big.NewInt(1 << 5) - docFormsGet200ResponseFieldsItemListboxFieldMappingName = big.NewInt(1 << 6) - docFormsGet200ResponseFieldsItemListboxFieldValueEntry = big.NewInt(1 << 7) - docFormsGet200ResponseFieldsItemListboxFieldDefaultValueEntry = big.NewInt(1 << 8) - docFormsGet200ResponseFieldsItemListboxFieldActions = big.NewInt(1 << 9) - docFormsGet200ResponseFieldsItemListboxFieldWidgets = big.NewInt(1 << 10) - docFormsGet200ResponseFieldsItemListboxFieldSelectedValues = big.NewInt(1 << 11) - docFormsGet200ResponseFieldsItemListboxFieldMultiSelect = big.NewInt(1 << 12) - docFormsGet200ResponseFieldsItemListboxFieldOptions = big.NewInt(1 << 13) + docFormsGet200ResponseFieldsItemPushbuttonRefObjectNumberFieldFieldObjectNumber = big.NewInt(1 << 0) ) -type DocFormsGet200ResponseFieldsItemListbox struct { - Ref *DocFormsGet200ResponseFieldsItemListboxRef `json:"ref" url:"ref"` - FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` - Name string `json:"name" url:"name"` - Origin DocFormsGet200ResponseFieldsItemListboxOrigin `json:"origin" url:"origin"` - Flags *DocFormsGet200ResponseFieldsItemListboxFlags `json:"flags" url:"flags"` - AlternateName *string `json:"alternateName,omitempty" url:"alternateName,omitempty"` - MappingName *string `json:"mappingName,omitempty" url:"mappingName,omitempty"` - ValueEntry *DocFormsGet200ResponseFieldsItemListboxValueEntry `json:"valueEntry" url:"valueEntry"` - DefaultValueEntry *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry `json:"defaultValueEntry" url:"defaultValueEntry"` - Actions *PdfFieldActions `json:"actions,omitempty" url:"actions,omitempty"` - Widgets []*DocFormsGet200ResponseFieldsItemListboxWidgetsItem `json:"widgets" url:"widgets"` - SelectedValues []string `json:"selectedValues" url:"selectedValues"` - MultiSelect bool `json:"multiSelect" url:"multiSelect"` - Options []*DocFormsGet200ResponseFieldsItemListboxOptionsItem `json:"options" url:"options"` +type DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber struct { + FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -117826,223 +136294,41 @@ type DocFormsGet200ResponseFieldsItemListbox struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemListbox) GetRef() *DocFormsGet200ResponseFieldsItemListboxRef { - if d == nil { - return nil - } - return d.Ref -} - -func (d *DocFormsGet200ResponseFieldsItemListbox) GetFieldObjectNumber() int { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber) GetFieldObjectNumber() int { if d == nil { return 0 } return d.FieldObjectNumber } -func (d *DocFormsGet200ResponseFieldsItemListbox) GetName() string { - if d == nil { - return "" - } - return d.Name -} - -func (d *DocFormsGet200ResponseFieldsItemListbox) GetOrigin() DocFormsGet200ResponseFieldsItemListboxOrigin { - if d == nil { - return "" - } - return d.Origin -} - -func (d *DocFormsGet200ResponseFieldsItemListbox) GetFlags() *DocFormsGet200ResponseFieldsItemListboxFlags { - if d == nil { - return nil - } - return d.Flags -} - -func (d *DocFormsGet200ResponseFieldsItemListbox) GetAlternateName() *string { - if d == nil { - return nil - } - return d.AlternateName -} - -func (d *DocFormsGet200ResponseFieldsItemListbox) GetMappingName() *string { - if d == nil { - return nil - } - return d.MappingName -} - -func (d *DocFormsGet200ResponseFieldsItemListbox) GetValueEntry() *DocFormsGet200ResponseFieldsItemListboxValueEntry { - if d == nil { - return nil - } - return d.ValueEntry -} - -func (d *DocFormsGet200ResponseFieldsItemListbox) GetDefaultValueEntry() *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry { - if d == nil { - return nil - } - return d.DefaultValueEntry -} - -func (d *DocFormsGet200ResponseFieldsItemListbox) GetActions() *PdfFieldActions { - if d == nil { - return nil - } - return d.Actions -} - -func (d *DocFormsGet200ResponseFieldsItemListbox) GetWidgets() []*DocFormsGet200ResponseFieldsItemListboxWidgetsItem { - if d == nil { - return nil - } - return d.Widgets -} - -func (d *DocFormsGet200ResponseFieldsItemListbox) GetSelectedValues() []string { - if d == nil { - return nil - } - return d.SelectedValues -} - -func (d *DocFormsGet200ResponseFieldsItemListbox) GetMultiSelect() bool { - if d == nil { - return false - } - return d.MultiSelect -} - -func (d *DocFormsGet200ResponseFieldsItemListbox) GetOptions() []*DocFormsGet200ResponseFieldsItemListboxOptionsItem { - if d == nil { - return nil - } - return d.Options -} - -func (d *DocFormsGet200ResponseFieldsItemListbox) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemListbox) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetRef sets the Ref field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemListbox) SetRef(ref *DocFormsGet200ResponseFieldsItemListboxRef) { - d.Ref = ref - d.require(docFormsGet200ResponseFieldsItemListboxFieldRef) -} - // SetFieldObjectNumber sets the FieldObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemListbox) SetFieldObjectNumber(fieldObjectNumber int) { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber) SetFieldObjectNumber(fieldObjectNumber int) { d.FieldObjectNumber = fieldObjectNumber - d.require(docFormsGet200ResponseFieldsItemListboxFieldFieldObjectNumber) -} - -// SetName sets the Name field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemListbox) SetName(name string) { - d.Name = name - d.require(docFormsGet200ResponseFieldsItemListboxFieldName) -} - -// SetOrigin sets the Origin field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemListbox) SetOrigin(origin DocFormsGet200ResponseFieldsItemListboxOrigin) { - d.Origin = origin - d.require(docFormsGet200ResponseFieldsItemListboxFieldOrigin) -} - -// SetFlags sets the Flags field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemListbox) SetFlags(flags *DocFormsGet200ResponseFieldsItemListboxFlags) { - d.Flags = flags - d.require(docFormsGet200ResponseFieldsItemListboxFieldFlags) -} - -// SetAlternateName sets the AlternateName field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemListbox) SetAlternateName(alternateName *string) { - d.AlternateName = alternateName - d.require(docFormsGet200ResponseFieldsItemListboxFieldAlternateName) -} - -// SetMappingName sets the MappingName field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemListbox) SetMappingName(mappingName *string) { - d.MappingName = mappingName - d.require(docFormsGet200ResponseFieldsItemListboxFieldMappingName) -} - -// SetValueEntry sets the ValueEntry field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemListbox) SetValueEntry(valueEntry *DocFormsGet200ResponseFieldsItemListboxValueEntry) { - d.ValueEntry = valueEntry - d.require(docFormsGet200ResponseFieldsItemListboxFieldValueEntry) -} - -// SetDefaultValueEntry sets the DefaultValueEntry field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemListbox) SetDefaultValueEntry(defaultValueEntry *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry) { - d.DefaultValueEntry = defaultValueEntry - d.require(docFormsGet200ResponseFieldsItemListboxFieldDefaultValueEntry) -} - -// SetActions sets the Actions field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemListbox) SetActions(actions *PdfFieldActions) { - d.Actions = actions - d.require(docFormsGet200ResponseFieldsItemListboxFieldActions) -} - -// SetWidgets sets the Widgets field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemListbox) SetWidgets(widgets []*DocFormsGet200ResponseFieldsItemListboxWidgetsItem) { - d.Widgets = widgets - d.require(docFormsGet200ResponseFieldsItemListboxFieldWidgets) -} - -// SetSelectedValues sets the SelectedValues field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemListbox) SetSelectedValues(selectedValues []string) { - d.SelectedValues = selectedValues - d.require(docFormsGet200ResponseFieldsItemListboxFieldSelectedValues) -} - -// SetMultiSelect sets the MultiSelect field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemListbox) SetMultiSelect(multiSelect bool) { - d.MultiSelect = multiSelect - d.require(docFormsGet200ResponseFieldsItemListboxFieldMultiSelect) -} - -// SetOptions sets the Options field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemListbox) SetOptions(options []*DocFormsGet200ResponseFieldsItemListboxOptionsItem) { - d.Options = options - d.require(docFormsGet200ResponseFieldsItemListboxFieldOptions) + d.require(docFormsGet200ResponseFieldsItemPushbuttonRefObjectNumberFieldFieldObjectNumber) } -func (d *DocFormsGet200ResponseFieldsItemListbox) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemListbox +func (d *DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemListbox(value) + *d = DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -118052,8 +136338,8 @@ func (d *DocFormsGet200ResponseFieldsItemListbox) UnmarshalJSON(data []byte) err return nil } -func (d *DocFormsGet200ResponseFieldsItemListbox) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemListbox +func (d *DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber var marshaler = struct { embed }{ @@ -118063,7 +136349,7 @@ func (d *DocFormsGet200ResponseFieldsItemListbox) MarshalJSON() ([]byte, error) return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemListbox) String() string { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber) String() string { if d == nil { return "" } @@ -118078,52 +136364,52 @@ func (d *DocFormsGet200ResponseFieldsItemListbox) String() string { return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry struct { +type DocFormsGet200ResponseFieldsItemPushbuttonValueEntry struct { Kind string - None *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone - Scalar *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar - Array *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray - Unsupported *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported + None *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone + Scalar *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar + Array *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray + Unsupported *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry) GetKind() string { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry) GetNone() *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry) GetNone() *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone { if d == nil { return nil } return d.None } -func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry) GetScalar() *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry) GetScalar() *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar { if d == nil { return nil } return d.Scalar } -func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry) GetArray() *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry) GetArray() *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray { if d == nil { return nil } return d.Array } -func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry) GetUnsupported() *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry) GetUnsupported() *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported { if d == nil { return nil } return d.Unsupported } -func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry) UnmarshalJSON(data []byte) error { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -118136,25 +136422,25 @@ func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry) UnmarshalJSON } switch unmarshaler.Kind { case "none": - value := new(DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone) + value := new(DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone) if err := json.Unmarshal(data, &value); err != nil { return err } d.None = value case "scalar": - value := new(DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar) + value := new(DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar) if err := json.Unmarshal(data, &value); err != nil { return err } d.Scalar = value case "array": - value := new(DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray) + value := new(DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray) if err := json.Unmarshal(data, &value); err != nil { return err } d.Array = value case "unsupported": - value := new(DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported) + value := new(DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -118164,7 +136450,7 @@ func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry) UnmarshalJSON return nil } -func (d DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry) MarshalJSON() ([]byte, error) { +func (d DocFormsGet200ResponseFieldsItemPushbuttonValueEntry) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -118186,14 +136472,14 @@ func (d DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry) MarshalJSON() return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryVisitor interface { - VisitNone(*DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone) error - VisitScalar(*DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar) error - VisitArray(*DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray) error - VisitUnsupported(*DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported) error +type DocFormsGet200ResponseFieldsItemPushbuttonValueEntryVisitor interface { + VisitNone(*DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone) error + VisitScalar(*DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar) error + VisitArray(*DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray) error + VisitUnsupported(*DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported) error } -func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry) Accept(visitor DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryVisitor) error { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry) Accept(visitor DocFormsGet200ResponseFieldsItemPushbuttonValueEntryVisitor) error { if d.None != nil { return visitor.VisitNone(d.None) } @@ -118209,7 +136495,7 @@ func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry) Accept(visito return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry) validate() error { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -118253,10 +136539,10 @@ func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry) validate() er } var ( - docFormsGet200ResponseFieldsItemListboxDefaultValueEntryArrayFieldValues = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemPushbuttonValueEntryArrayFieldValues = big.NewInt(1 << 0) ) -type DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray struct { +type DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray struct { Values []string `json:"values" url:"values"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -118266,21 +136552,21 @@ type DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray) GetValues() []string { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray) GetValues() []string { if d == nil { return nil } return d.Values } -func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -118289,83 +136575,18 @@ func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray) require( // SetValues sets the Values field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray) SetValues(values []string) { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray) SetValues(values []string) { d.Values = values - d.require(docFormsGet200ResponseFieldsItemListboxDefaultValueEntryArrayFieldValues) -} - -func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) -} - -func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) -} - -type DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone struct { - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage -} - -func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties -} - -func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) + d.require(docFormsGet200ResponseFieldsItemPushbuttonValueEntryArrayFieldValues) } -func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone +func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone(value) + *d = DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -118375,8 +136596,8 @@ func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone) Unmarshal return nil } -func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone +func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray var marshaler = struct { embed }{ @@ -118386,7 +136607,7 @@ func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone) MarshalJS return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone) String() string { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray) String() string { if d == nil { return "" } @@ -118401,12 +136622,7 @@ func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone) String() return fmt.Sprintf("%#v", d) } -var ( - docFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalarFieldValue = big.NewInt(1 << 0) -) - -type DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar struct { - Value string `json:"value" url:"value"` +type DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -118415,41 +136631,27 @@ type DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar) GetValue() string { - if d == nil { - return "" - } - return d.Value -} - -func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetValue sets the Value field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar) SetValue(value string) { - d.Value = value - d.require(docFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalarFieldValue) -} - -func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar +func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar(value) + *d = DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -118459,8 +136661,8 @@ func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar) Unmarsh return nil } -func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar +func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone var marshaler = struct { embed }{ @@ -118470,7 +136672,7 @@ func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar) Marshal return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar) String() string { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone) String() string { if d == nil { return "" } @@ -118485,7 +136687,12 @@ func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar) String( return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported struct { +var ( + docFormsGet200ResponseFieldsItemPushbuttonValueEntryScalarFieldValue = big.NewInt(1 << 0) +) + +type DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar struct { + Value string `json:"value" url:"value"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -118494,27 +136701,41 @@ type DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported struct rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar) GetValue() string { + if d == nil { + return "" + } + return d.Value +} + +func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported +// SetValue sets the Value field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar) SetValue(value string) { + d.Value = value + d.require(docFormsGet200ResponseFieldsItemPushbuttonValueEntryScalarFieldValue) +} + +func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported(value) + *d = DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -118524,8 +136745,8 @@ func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported) Un return nil } -func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported +func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar var marshaler = struct { embed }{ @@ -118535,7 +136756,7 @@ func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported) Ma return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported) String() string { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar) String() string { if d == nil { return "" } @@ -118550,18 +136771,7 @@ func (d *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported) St return fmt.Sprintf("%#v", d) } -var ( - docFormsGet200ResponseFieldsItemListboxFlagsFieldReadOnly = big.NewInt(1 << 0) - docFormsGet200ResponseFieldsItemListboxFlagsFieldRequired = big.NewInt(1 << 1) - docFormsGet200ResponseFieldsItemListboxFlagsFieldNoExport = big.NewInt(1 << 2) - docFormsGet200ResponseFieldsItemListboxFlagsFieldRaw = big.NewInt(1 << 3) -) - -type DocFormsGet200ResponseFieldsItemListboxFlags struct { - ReadOnly bool `json:"readOnly" url:"readOnly"` - Required bool `json:"required" url:"required"` - NoExport bool `json:"noExport" url:"noExport"` - Raw int `json:"raw" url:"raw"` +type DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -118570,83 +136780,27 @@ type DocFormsGet200ResponseFieldsItemListboxFlags struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemListboxFlags) GetReadOnly() bool { - if d == nil { - return false - } - return d.ReadOnly -} - -func (d *DocFormsGet200ResponseFieldsItemListboxFlags) GetRequired() bool { - if d == nil { - return false - } - return d.Required -} - -func (d *DocFormsGet200ResponseFieldsItemListboxFlags) GetNoExport() bool { - if d == nil { - return false - } - return d.NoExport -} - -func (d *DocFormsGet200ResponseFieldsItemListboxFlags) GetRaw() int { - if d == nil { - return 0 - } - return d.Raw -} - -func (d *DocFormsGet200ResponseFieldsItemListboxFlags) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemListboxFlags) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetReadOnly sets the ReadOnly field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemListboxFlags) SetReadOnly(readOnly bool) { - d.ReadOnly = readOnly - d.require(docFormsGet200ResponseFieldsItemListboxFlagsFieldReadOnly) -} - -// SetRequired sets the Required field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemListboxFlags) SetRequired(required bool) { - d.Required = required - d.require(docFormsGet200ResponseFieldsItemListboxFlagsFieldRequired) -} - -// SetNoExport sets the NoExport field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemListboxFlags) SetNoExport(noExport bool) { - d.NoExport = noExport - d.require(docFormsGet200ResponseFieldsItemListboxFlagsFieldNoExport) -} - -// SetRaw sets the Raw field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemListboxFlags) SetRaw(raw int) { - d.Raw = raw - d.require(docFormsGet200ResponseFieldsItemListboxFlagsFieldRaw) -} - -func (d *DocFormsGet200ResponseFieldsItemListboxFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemListboxFlags +func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemListboxFlags(value) + *d = DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -118656,8 +136810,8 @@ func (d *DocFormsGet200ResponseFieldsItemListboxFlags) UnmarshalJSON(data []byte return nil } -func (d *DocFormsGet200ResponseFieldsItemListboxFlags) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemListboxFlags +func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported var marshaler = struct { embed }{ @@ -118667,7 +136821,7 @@ func (d *DocFormsGet200ResponseFieldsItemListboxFlags) MarshalJSON() ([]byte, er return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemListboxFlags) String() string { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported) String() string { if d == nil { return "" } @@ -118683,15 +136837,13 @@ func (d *DocFormsGet200ResponseFieldsItemListboxFlags) String() string { } var ( - docFormsGet200ResponseFieldsItemListboxOptionsItemFieldLabel = big.NewInt(1 << 0) - docFormsGet200ResponseFieldsItemListboxOptionsItemFieldValue = big.NewInt(1 << 1) - docFormsGet200ResponseFieldsItemListboxOptionsItemFieldSelected = big.NewInt(1 << 2) + docFormsGet200ResponseFieldsItemPushbuttonWidgetsItemFieldAnnotObjectNumber = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemPushbuttonWidgetsItemFieldPageObjectNumber = big.NewInt(1 << 1) ) -type DocFormsGet200ResponseFieldsItemListboxOptionsItem struct { - Label string `json:"label" url:"label"` - Value string `json:"value" url:"value"` - Selected bool `json:"selected" url:"selected"` +type DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem struct { + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -118700,69 +136852,55 @@ type DocFormsGet200ResponseFieldsItemListboxOptionsItem struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemListboxOptionsItem) GetLabel() string { - if d == nil { - return "" - } - return d.Label -} - -func (d *DocFormsGet200ResponseFieldsItemListboxOptionsItem) GetValue() string { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem) GetAnnotObjectNumber() int { if d == nil { - return "" + return 0 } - return d.Value + return d.AnnotObjectNumber } -func (d *DocFormsGet200ResponseFieldsItemListboxOptionsItem) GetSelected() bool { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem) GetPageObjectNumber() int { if d == nil { - return false + return 0 } - return d.Selected + return d.PageObjectNumber } -func (d *DocFormsGet200ResponseFieldsItemListboxOptionsItem) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemListboxOptionsItem) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetLabel sets the Label field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemListboxOptionsItem) SetLabel(label string) { - d.Label = label - d.require(docFormsGet200ResponseFieldsItemListboxOptionsItemFieldLabel) -} - -// SetValue sets the Value field and marks it as non-optional; +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemListboxOptionsItem) SetValue(value string) { - d.Value = value - d.require(docFormsGet200ResponseFieldsItemListboxOptionsItemFieldValue) +func (d *DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docFormsGet200ResponseFieldsItemPushbuttonWidgetsItemFieldAnnotObjectNumber) } -// SetSelected sets the Selected field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemListboxOptionsItem) SetSelected(selected bool) { - d.Selected = selected - d.require(docFormsGet200ResponseFieldsItemListboxOptionsItemFieldSelected) +func (d *DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docFormsGet200ResponseFieldsItemPushbuttonWidgetsItemFieldPageObjectNumber) } -func (d *DocFormsGet200ResponseFieldsItemListboxOptionsItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemListboxOptionsItem +func (d *DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemListboxOptionsItem(value) + *d = DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -118772,8 +136910,8 @@ func (d *DocFormsGet200ResponseFieldsItemListboxOptionsItem) UnmarshalJSON(data return nil } -func (d *DocFormsGet200ResponseFieldsItemListboxOptionsItem) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemListboxOptionsItem +func (d *DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem var marshaler = struct { embed }{ @@ -118783,7 +136921,7 @@ func (d *DocFormsGet200ResponseFieldsItemListboxOptionsItem) MarshalJSON() ([]by return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemListboxOptionsItem) String() string { +func (d *DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem) String() string { if d == nil { return "" } @@ -118798,287 +136936,263 @@ func (d *DocFormsGet200ResponseFieldsItemListboxOptionsItem) String() string { return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemListboxOrigin string - -const ( - DocFormsGet200ResponseFieldsItemListboxOriginAcroform DocFormsGet200ResponseFieldsItemListboxOrigin = "acroform" - DocFormsGet200ResponseFieldsItemListboxOriginRecovered DocFormsGet200ResponseFieldsItemListboxOrigin = "recovered" +var ( + docFormsGet200ResponseFieldsItemRadioFieldRef = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemRadioFieldFieldObjectNumber = big.NewInt(1 << 1) + docFormsGet200ResponseFieldsItemRadioFieldName = big.NewInt(1 << 2) + docFormsGet200ResponseFieldsItemRadioFieldOrigin = big.NewInt(1 << 3) + docFormsGet200ResponseFieldsItemRadioFieldFlags = big.NewInt(1 << 4) + docFormsGet200ResponseFieldsItemRadioFieldAlternateName = big.NewInt(1 << 5) + docFormsGet200ResponseFieldsItemRadioFieldMappingName = big.NewInt(1 << 6) + docFormsGet200ResponseFieldsItemRadioFieldValueEntry = big.NewInt(1 << 7) + docFormsGet200ResponseFieldsItemRadioFieldDefaultValueEntry = big.NewInt(1 << 8) + docFormsGet200ResponseFieldsItemRadioFieldActions = big.NewInt(1 << 9) + docFormsGet200ResponseFieldsItemRadioFieldWidgets = big.NewInt(1 << 10) + docFormsGet200ResponseFieldsItemRadioFieldValue = big.NewInt(1 << 11) + docFormsGet200ResponseFieldsItemRadioFieldRadiosInUnison = big.NewInt(1 << 12) + docFormsGet200ResponseFieldsItemRadioFieldNoToggleToOff = big.NewInt(1 << 13) ) -func NewDocFormsGet200ResponseFieldsItemListboxOriginFromString(s string) (DocFormsGet200ResponseFieldsItemListboxOrigin, error) { - switch s { - case "acroform": - return DocFormsGet200ResponseFieldsItemListboxOriginAcroform, nil - case "recovered": - return DocFormsGet200ResponseFieldsItemListboxOriginRecovered, nil - } - var t DocFormsGet200ResponseFieldsItemListboxOrigin - return "", fmt.Errorf("%s is not a valid %T", s, t) +type DocFormsGet200ResponseFieldsItemRadio struct { + Ref *DocFormsGet200ResponseFieldsItemRadioRef `json:"ref" url:"ref"` + FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` + Name string `json:"name" url:"name"` + Origin DocFormsGet200ResponseFieldsItemRadioOrigin `json:"origin" url:"origin"` + Flags *DocFormsGet200ResponseFieldsItemRadioFlags `json:"flags" url:"flags"` + AlternateName *string `json:"alternateName,omitempty" url:"alternateName,omitempty"` + MappingName *string `json:"mappingName,omitempty" url:"mappingName,omitempty"` + ValueEntry *DocFormsGet200ResponseFieldsItemRadioValueEntry `json:"valueEntry" url:"valueEntry"` + DefaultValueEntry *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry `json:"defaultValueEntry" url:"defaultValueEntry"` + Actions *PdfFieldActions `json:"actions,omitempty" url:"actions,omitempty"` + Widgets []*DocFormsGet200ResponseFieldsItemRadioWidgetsItem `json:"widgets" url:"widgets"` + Value string `json:"value" url:"value"` + RadiosInUnison bool `json:"radiosInUnison" url:"radiosInUnison"` + NoToggleToOff bool `json:"noToggleToOff" url:"noToggleToOff"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d DocFormsGet200ResponseFieldsItemListboxOrigin) Ptr() *DocFormsGet200ResponseFieldsItemListboxOrigin { - return &d +func (d *DocFormsGet200ResponseFieldsItemRadio) GetRef() *DocFormsGet200ResponseFieldsItemRadioRef { + if d == nil { + return nil + } + return d.Ref } -type DocFormsGet200ResponseFieldsItemListboxRef struct { - Kind string - ObjectNumber *DocFormsGet200ResponseFieldsItemListboxRefObjectNumber - Fqn *DocFormsGet200ResponseFieldsItemListboxRefFqn +func (d *DocFormsGet200ResponseFieldsItemRadio) GetFieldObjectNumber() int { + if d == nil { + return 0 + } + return d.FieldObjectNumber +} - rawJSON json.RawMessage +func (d *DocFormsGet200ResponseFieldsItemRadio) GetName() string { + if d == nil { + return "" + } + return d.Name } -func (d *DocFormsGet200ResponseFieldsItemListboxRef) GetKind() string { +func (d *DocFormsGet200ResponseFieldsItemRadio) GetOrigin() DocFormsGet200ResponseFieldsItemRadioOrigin { if d == nil { return "" } - return d.Kind + return d.Origin } -func (d *DocFormsGet200ResponseFieldsItemListboxRef) GetObjectNumber() *DocFormsGet200ResponseFieldsItemListboxRefObjectNumber { +func (d *DocFormsGet200ResponseFieldsItemRadio) GetFlags() *DocFormsGet200ResponseFieldsItemRadioFlags { if d == nil { return nil } - return d.ObjectNumber + return d.Flags } -func (d *DocFormsGet200ResponseFieldsItemListboxRef) GetFqn() *DocFormsGet200ResponseFieldsItemListboxRefFqn { +func (d *DocFormsGet200ResponseFieldsItemRadio) GetAlternateName() *string { if d == nil { return nil } - return d.Fqn + return d.AlternateName } -func (d *DocFormsGet200ResponseFieldsItemListboxRef) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocFormsGet200ResponseFieldsItemListboxRefObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "fqn": - value := new(DocFormsGet200ResponseFieldsItemListboxRefFqn) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Fqn = value +func (d *DocFormsGet200ResponseFieldsItemRadio) GetMappingName() *string { + if d == nil { + return nil } - d.rawJSON = json.RawMessage(data) - return nil + return d.MappingName } -func (d DocFormsGet200ResponseFieldsItemListboxRef) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Fqn != nil { - return internal.MarshalJSONWithExtraProperty(d.Fqn, "kind", "fqn") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil +func (d *DocFormsGet200ResponseFieldsItemRadio) GetValueEntry() *DocFormsGet200ResponseFieldsItemRadioValueEntry { + if d == nil { + return nil } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) + return d.ValueEntry } -type DocFormsGet200ResponseFieldsItemListboxRefVisitor interface { - VisitObjectNumber(*DocFormsGet200ResponseFieldsItemListboxRefObjectNumber) error - VisitFqn(*DocFormsGet200ResponseFieldsItemListboxRefFqn) error +func (d *DocFormsGet200ResponseFieldsItemRadio) GetDefaultValueEntry() *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry { + if d == nil { + return nil + } + return d.DefaultValueEntry } -func (d *DocFormsGet200ResponseFieldsItemListboxRef) Accept(visitor DocFormsGet200ResponseFieldsItemListboxRefVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) - } - if d.Fqn != nil { - return visitor.VisitFqn(d.Fqn) +func (d *DocFormsGet200ResponseFieldsItemRadio) GetActions() *PdfFieldActions { + if d == nil { + return nil } - return fmt.Errorf("type %T does not define a non-empty union type", d) + return d.Actions } -func (d *DocFormsGet200ResponseFieldsItemListboxRef) validate() error { +func (d *DocFormsGet200ResponseFieldsItemRadio) GetWidgets() []*DocFormsGet200ResponseFieldsItemRadioWidgetsItem { if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Fqn != nil { - fields = append(fields, "fqn") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } + return nil } - return nil + return d.Widgets } -var ( - docFormsGet200ResponseFieldsItemListboxRefFqnFieldName = big.NewInt(1 << 0) -) - -type DocFormsGet200ResponseFieldsItemListboxRefFqn struct { - Name string `json:"name" url:"name"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +func (d *DocFormsGet200ResponseFieldsItemRadio) GetValue() string { + if d == nil { + return "" + } + return d.Value +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocFormsGet200ResponseFieldsItemRadio) GetRadiosInUnison() bool { + if d == nil { + return false + } + return d.RadiosInUnison } -func (d *DocFormsGet200ResponseFieldsItemListboxRefFqn) GetName() string { +func (d *DocFormsGet200ResponseFieldsItemRadio) GetNoToggleToOff() bool { if d == nil { - return "" + return false } - return d.Name + return d.NoToggleToOff } -func (d *DocFormsGet200ResponseFieldsItemListboxRefFqn) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemRadio) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemListboxRefFqn) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemRadio) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } +// SetRef sets the Ref field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemRadio) SetRef(ref *DocFormsGet200ResponseFieldsItemRadioRef) { + d.Ref = ref + d.require(docFormsGet200ResponseFieldsItemRadioFieldRef) +} + +// SetFieldObjectNumber sets the FieldObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemRadio) SetFieldObjectNumber(fieldObjectNumber int) { + d.FieldObjectNumber = fieldObjectNumber + d.require(docFormsGet200ResponseFieldsItemRadioFieldFieldObjectNumber) +} + // SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemListboxRefFqn) SetName(name string) { +func (d *DocFormsGet200ResponseFieldsItemRadio) SetName(name string) { d.Name = name - d.require(docFormsGet200ResponseFieldsItemListboxRefFqnFieldName) + d.require(docFormsGet200ResponseFieldsItemRadioFieldName) } -func (d *DocFormsGet200ResponseFieldsItemListboxRefFqn) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemListboxRefFqn - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocFormsGet200ResponseFieldsItemListboxRefFqn(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil +// SetOrigin sets the Origin field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemRadio) SetOrigin(origin DocFormsGet200ResponseFieldsItemRadioOrigin) { + d.Origin = origin + d.require(docFormsGet200ResponseFieldsItemRadioFieldOrigin) } -func (d *DocFormsGet200ResponseFieldsItemListboxRefFqn) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemListboxRefFqn - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) +// SetFlags sets the Flags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemRadio) SetFlags(flags *DocFormsGet200ResponseFieldsItemRadioFlags) { + d.Flags = flags + d.require(docFormsGet200ResponseFieldsItemRadioFieldFlags) } -func (d *DocFormsGet200ResponseFieldsItemListboxRefFqn) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) +// SetAlternateName sets the AlternateName field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemRadio) SetAlternateName(alternateName *string) { + d.AlternateName = alternateName + d.require(docFormsGet200ResponseFieldsItemRadioFieldAlternateName) } -var ( - docFormsGet200ResponseFieldsItemListboxRefObjectNumberFieldFieldObjectNumber = big.NewInt(1 << 0) -) +// SetMappingName sets the MappingName field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemRadio) SetMappingName(mappingName *string) { + d.MappingName = mappingName + d.require(docFormsGet200ResponseFieldsItemRadioFieldMappingName) +} -type DocFormsGet200ResponseFieldsItemListboxRefObjectNumber struct { - FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` +// SetValueEntry sets the ValueEntry field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemRadio) SetValueEntry(valueEntry *DocFormsGet200ResponseFieldsItemRadioValueEntry) { + d.ValueEntry = valueEntry + d.require(docFormsGet200ResponseFieldsItemRadioFieldValueEntry) +} - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +// SetDefaultValueEntry sets the DefaultValueEntry field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemRadio) SetDefaultValueEntry(defaultValueEntry *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry) { + d.DefaultValueEntry = defaultValueEntry + d.require(docFormsGet200ResponseFieldsItemRadioFieldDefaultValueEntry) +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +// SetActions sets the Actions field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemRadio) SetActions(actions *PdfFieldActions) { + d.Actions = actions + d.require(docFormsGet200ResponseFieldsItemRadioFieldActions) } -func (d *DocFormsGet200ResponseFieldsItemListboxRefObjectNumber) GetFieldObjectNumber() int { - if d == nil { - return 0 - } - return d.FieldObjectNumber +// SetWidgets sets the Widgets field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemRadio) SetWidgets(widgets []*DocFormsGet200ResponseFieldsItemRadioWidgetsItem) { + d.Widgets = widgets + d.require(docFormsGet200ResponseFieldsItemRadioFieldWidgets) } -func (d *DocFormsGet200ResponseFieldsItemListboxRefObjectNumber) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties +// SetValue sets the Value field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemRadio) SetValue(value string) { + d.Value = value + d.require(docFormsGet200ResponseFieldsItemRadioFieldValue) } -func (d *DocFormsGet200ResponseFieldsItemListboxRefObjectNumber) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) +// SetRadiosInUnison sets the RadiosInUnison field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemRadio) SetRadiosInUnison(radiosInUnison bool) { + d.RadiosInUnison = radiosInUnison + d.require(docFormsGet200ResponseFieldsItemRadioFieldRadiosInUnison) } -// SetFieldObjectNumber sets the FieldObjectNumber field and marks it as non-optional; +// SetNoToggleToOff sets the NoToggleToOff field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemListboxRefObjectNumber) SetFieldObjectNumber(fieldObjectNumber int) { - d.FieldObjectNumber = fieldObjectNumber - d.require(docFormsGet200ResponseFieldsItemListboxRefObjectNumberFieldFieldObjectNumber) +func (d *DocFormsGet200ResponseFieldsItemRadio) SetNoToggleToOff(noToggleToOff bool) { + d.NoToggleToOff = noToggleToOff + d.require(docFormsGet200ResponseFieldsItemRadioFieldNoToggleToOff) } -func (d *DocFormsGet200ResponseFieldsItemListboxRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemListboxRefObjectNumber +func (d *DocFormsGet200ResponseFieldsItemRadio) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemRadio var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemListboxRefObjectNumber(value) + *d = DocFormsGet200ResponseFieldsItemRadio(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -119088,8 +137202,8 @@ func (d *DocFormsGet200ResponseFieldsItemListboxRefObjectNumber) UnmarshalJSON(d return nil } -func (d *DocFormsGet200ResponseFieldsItemListboxRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemListboxRefObjectNumber +func (d *DocFormsGet200ResponseFieldsItemRadio) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemRadio var marshaler = struct { embed }{ @@ -119099,7 +137213,7 @@ func (d *DocFormsGet200ResponseFieldsItemListboxRefObjectNumber) MarshalJSON() ( return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemListboxRefObjectNumber) String() string { +func (d *DocFormsGet200ResponseFieldsItemRadio) String() string { if d == nil { return "" } @@ -119114,52 +137228,52 @@ func (d *DocFormsGet200ResponseFieldsItemListboxRefObjectNumber) String() string return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemListboxValueEntry struct { +type DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry struct { Kind string - None *DocFormsGet200ResponseFieldsItemListboxValueEntryNone - Scalar *DocFormsGet200ResponseFieldsItemListboxValueEntryScalar - Array *DocFormsGet200ResponseFieldsItemListboxValueEntryArray - Unsupported *DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported + None *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone + Scalar *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar + Array *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray + Unsupported *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemListboxValueEntry) GetKind() string { +func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocFormsGet200ResponseFieldsItemListboxValueEntry) GetNone() *DocFormsGet200ResponseFieldsItemListboxValueEntryNone { +func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry) GetNone() *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone { if d == nil { return nil } return d.None } -func (d *DocFormsGet200ResponseFieldsItemListboxValueEntry) GetScalar() *DocFormsGet200ResponseFieldsItemListboxValueEntryScalar { +func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry) GetScalar() *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar { if d == nil { return nil } return d.Scalar } -func (d *DocFormsGet200ResponseFieldsItemListboxValueEntry) GetArray() *DocFormsGet200ResponseFieldsItemListboxValueEntryArray { +func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry) GetArray() *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray { if d == nil { return nil } return d.Array } -func (d *DocFormsGet200ResponseFieldsItemListboxValueEntry) GetUnsupported() *DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported { +func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry) GetUnsupported() *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported { if d == nil { return nil } return d.Unsupported } -func (d *DocFormsGet200ResponseFieldsItemListboxValueEntry) UnmarshalJSON(data []byte) error { +func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -119172,25 +137286,25 @@ func (d *DocFormsGet200ResponseFieldsItemListboxValueEntry) UnmarshalJSON(data [ } switch unmarshaler.Kind { case "none": - value := new(DocFormsGet200ResponseFieldsItemListboxValueEntryNone) + value := new(DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone) if err := json.Unmarshal(data, &value); err != nil { return err } d.None = value case "scalar": - value := new(DocFormsGet200ResponseFieldsItemListboxValueEntryScalar) + value := new(DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar) if err := json.Unmarshal(data, &value); err != nil { return err } d.Scalar = value case "array": - value := new(DocFormsGet200ResponseFieldsItemListboxValueEntryArray) + value := new(DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray) if err := json.Unmarshal(data, &value); err != nil { return err } d.Array = value case "unsupported": - value := new(DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported) + value := new(DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -119200,7 +137314,7 @@ func (d *DocFormsGet200ResponseFieldsItemListboxValueEntry) UnmarshalJSON(data [ return nil } -func (d DocFormsGet200ResponseFieldsItemListboxValueEntry) MarshalJSON() ([]byte, error) { +func (d DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -119222,14 +137336,14 @@ func (d DocFormsGet200ResponseFieldsItemListboxValueEntry) MarshalJSON() ([]byte return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocFormsGet200ResponseFieldsItemListboxValueEntryVisitor interface { - VisitNone(*DocFormsGet200ResponseFieldsItemListboxValueEntryNone) error - VisitScalar(*DocFormsGet200ResponseFieldsItemListboxValueEntryScalar) error - VisitArray(*DocFormsGet200ResponseFieldsItemListboxValueEntryArray) error - VisitUnsupported(*DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported) error +type DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryVisitor interface { + VisitNone(*DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone) error + VisitScalar(*DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar) error + VisitArray(*DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray) error + VisitUnsupported(*DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported) error } -func (d *DocFormsGet200ResponseFieldsItemListboxValueEntry) Accept(visitor DocFormsGet200ResponseFieldsItemListboxValueEntryVisitor) error { +func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry) Accept(visitor DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryVisitor) error { if d.None != nil { return visitor.VisitNone(d.None) } @@ -119245,7 +137359,7 @@ func (d *DocFormsGet200ResponseFieldsItemListboxValueEntry) Accept(visitor DocFo return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocFormsGet200ResponseFieldsItemListboxValueEntry) validate() error { +func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -119289,10 +137403,10 @@ func (d *DocFormsGet200ResponseFieldsItemListboxValueEntry) validate() error { } var ( - docFormsGet200ResponseFieldsItemListboxValueEntryArrayFieldValues = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemRadioDefaultValueEntryArrayFieldValues = big.NewInt(1 << 0) ) -type DocFormsGet200ResponseFieldsItemListboxValueEntryArray struct { +type DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray struct { Values []string `json:"values" url:"values"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -119302,21 +137416,21 @@ type DocFormsGet200ResponseFieldsItemListboxValueEntryArray struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryArray) GetValues() []string { +func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray) GetValues() []string { if d == nil { return nil } return d.Values } -func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryArray) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryArray) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -119325,18 +137439,18 @@ func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryArray) require(field * // SetValues sets the Values field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryArray) SetValues(values []string) { +func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray) SetValues(values []string) { d.Values = values - d.require(docFormsGet200ResponseFieldsItemListboxValueEntryArrayFieldValues) + d.require(docFormsGet200ResponseFieldsItemRadioDefaultValueEntryArrayFieldValues) } -func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryArray) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemListboxValueEntryArray +func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemListboxValueEntryArray(value) + *d = DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -119346,8 +137460,8 @@ func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryArray) UnmarshalJSON(d return nil } -func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryArray) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemListboxValueEntryArray +func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray var marshaler = struct { embed }{ @@ -119357,7 +137471,7 @@ func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryArray) MarshalJSON() ( return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryArray) String() string { +func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray) String() string { if d == nil { return "" } @@ -119372,7 +137486,7 @@ func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryArray) String() string return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemListboxValueEntryNone struct { +type DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -119381,27 +137495,27 @@ type DocFormsGet200ResponseFieldsItemListboxValueEntryNone struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryNone) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryNone) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryNone) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemListboxValueEntryNone +func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemListboxValueEntryNone(value) + *d = DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -119411,8 +137525,8 @@ func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryNone) UnmarshalJSON(da return nil } -func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryNone) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemListboxValueEntryNone +func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone var marshaler = struct { embed }{ @@ -119422,7 +137536,7 @@ func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryNone) MarshalJSON() ([ return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryNone) String() string { +func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone) String() string { if d == nil { return "" } @@ -119438,10 +137552,10 @@ func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryNone) String() string } var ( - docFormsGet200ResponseFieldsItemListboxValueEntryScalarFieldValue = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalarFieldValue = big.NewInt(1 << 0) ) -type DocFormsGet200ResponseFieldsItemListboxValueEntryScalar struct { +type DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar struct { Value string `json:"value" url:"value"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -119451,21 +137565,21 @@ type DocFormsGet200ResponseFieldsItemListboxValueEntryScalar struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryScalar) GetValue() string { +func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar) GetValue() string { if d == nil { return "" } return d.Value } -func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryScalar) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryScalar) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -119474,18 +137588,18 @@ func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryScalar) require(field // SetValue sets the Value field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryScalar) SetValue(value string) { +func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar) SetValue(value string) { d.Value = value - d.require(docFormsGet200ResponseFieldsItemListboxValueEntryScalarFieldValue) + d.require(docFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalarFieldValue) } -func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryScalar) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemListboxValueEntryScalar +func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemListboxValueEntryScalar(value) + *d = DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -119495,8 +137609,8 @@ func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryScalar) UnmarshalJSON( return nil } -func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryScalar) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemListboxValueEntryScalar +func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar var marshaler = struct { embed }{ @@ -119506,7 +137620,7 @@ func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryScalar) MarshalJSON() return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryScalar) String() string { +func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar) String() string { if d == nil { return "" } @@ -119521,7 +137635,7 @@ func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryScalar) String() strin return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported struct { +type DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -119530,27 +137644,27 @@ type DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported +func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported(value) + *d = DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -119560,8 +137674,8 @@ func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported) Unmarshal return nil } -func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported +func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported var marshaler = struct { embed }{ @@ -119571,7 +137685,7 @@ func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported) MarshalJS return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported) String() string { +func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported) String() string { if d == nil { return "" } @@ -119587,13 +137701,17 @@ func (d *DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported) String() } var ( - docFormsGet200ResponseFieldsItemListboxWidgetsItemFieldAnnotObjectNumber = big.NewInt(1 << 0) - docFormsGet200ResponseFieldsItemListboxWidgetsItemFieldPageObjectNumber = big.NewInt(1 << 1) + docFormsGet200ResponseFieldsItemRadioFlagsFieldReadOnly = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemRadioFlagsFieldRequired = big.NewInt(1 << 1) + docFormsGet200ResponseFieldsItemRadioFlagsFieldNoExport = big.NewInt(1 << 2) + docFormsGet200ResponseFieldsItemRadioFlagsFieldRaw = big.NewInt(1 << 3) ) -type DocFormsGet200ResponseFieldsItemListboxWidgetsItem struct { - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` +type DocFormsGet200ResponseFieldsItemRadioFlags struct { + ReadOnly bool `json:"readOnly" url:"readOnly"` + Required bool `json:"required" url:"required"` + NoExport bool `json:"noExport" url:"noExport"` + Raw int `json:"raw" url:"raw"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -119602,55 +137720,83 @@ type DocFormsGet200ResponseFieldsItemListboxWidgetsItem struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemListboxWidgetsItem) GetAnnotObjectNumber() int { +func (d *DocFormsGet200ResponseFieldsItemRadioFlags) GetReadOnly() bool { if d == nil { - return 0 + return false } - return d.AnnotObjectNumber + return d.ReadOnly } -func (d *DocFormsGet200ResponseFieldsItemListboxWidgetsItem) GetPageObjectNumber() int { +func (d *DocFormsGet200ResponseFieldsItemRadioFlags) GetRequired() bool { + if d == nil { + return false + } + return d.Required +} + +func (d *DocFormsGet200ResponseFieldsItemRadioFlags) GetNoExport() bool { + if d == nil { + return false + } + return d.NoExport +} + +func (d *DocFormsGet200ResponseFieldsItemRadioFlags) GetRaw() int { if d == nil { return 0 } - return d.PageObjectNumber + return d.Raw } -func (d *DocFormsGet200ResponseFieldsItemListboxWidgetsItem) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemRadioFlags) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemListboxWidgetsItem) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemRadioFlags) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetReadOnly sets the ReadOnly field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemListboxWidgetsItem) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docFormsGet200ResponseFieldsItemListboxWidgetsItemFieldAnnotObjectNumber) +func (d *DocFormsGet200ResponseFieldsItemRadioFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + d.require(docFormsGet200ResponseFieldsItemRadioFlagsFieldReadOnly) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetRequired sets the Required field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemListboxWidgetsItem) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docFormsGet200ResponseFieldsItemListboxWidgetsItemFieldPageObjectNumber) +func (d *DocFormsGet200ResponseFieldsItemRadioFlags) SetRequired(required bool) { + d.Required = required + d.require(docFormsGet200ResponseFieldsItemRadioFlagsFieldRequired) } -func (d *DocFormsGet200ResponseFieldsItemListboxWidgetsItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemListboxWidgetsItem +// SetNoExport sets the NoExport field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemRadioFlags) SetNoExport(noExport bool) { + d.NoExport = noExport + d.require(docFormsGet200ResponseFieldsItemRadioFlagsFieldNoExport) +} + +// SetRaw sets the Raw field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemRadioFlags) SetRaw(raw int) { + d.Raw = raw + d.require(docFormsGet200ResponseFieldsItemRadioFlagsFieldRaw) +} + +func (d *DocFormsGet200ResponseFieldsItemRadioFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemRadioFlags var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemListboxWidgetsItem(value) + *d = DocFormsGet200ResponseFieldsItemRadioFlags(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -119660,8 +137806,8 @@ func (d *DocFormsGet200ResponseFieldsItemListboxWidgetsItem) UnmarshalJSON(data return nil } -func (d *DocFormsGet200ResponseFieldsItemListboxWidgetsItem) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemListboxWidgetsItem +func (d *DocFormsGet200ResponseFieldsItemRadioFlags) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemRadioFlags var marshaler = struct { embed }{ @@ -119671,7 +137817,7 @@ func (d *DocFormsGet200ResponseFieldsItemListboxWidgetsItem) MarshalJSON() ([]by return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemListboxWidgetsItem) String() string { +func (d *DocFormsGet200ResponseFieldsItemRadioFlags) String() string { if d == nil { return "" } @@ -119686,215 +137832,287 @@ func (d *DocFormsGet200ResponseFieldsItemListboxWidgetsItem) String() string { return fmt.Sprintf("%#v", d) } -var ( - docFormsGet200ResponseFieldsItemPushbuttonFieldRef = big.NewInt(1 << 0) - docFormsGet200ResponseFieldsItemPushbuttonFieldFieldObjectNumber = big.NewInt(1 << 1) - docFormsGet200ResponseFieldsItemPushbuttonFieldName = big.NewInt(1 << 2) - docFormsGet200ResponseFieldsItemPushbuttonFieldOrigin = big.NewInt(1 << 3) - docFormsGet200ResponseFieldsItemPushbuttonFieldFlags = big.NewInt(1 << 4) - docFormsGet200ResponseFieldsItemPushbuttonFieldAlternateName = big.NewInt(1 << 5) - docFormsGet200ResponseFieldsItemPushbuttonFieldMappingName = big.NewInt(1 << 6) - docFormsGet200ResponseFieldsItemPushbuttonFieldValueEntry = big.NewInt(1 << 7) - docFormsGet200ResponseFieldsItemPushbuttonFieldDefaultValueEntry = big.NewInt(1 << 8) - docFormsGet200ResponseFieldsItemPushbuttonFieldActions = big.NewInt(1 << 9) - docFormsGet200ResponseFieldsItemPushbuttonFieldWidgets = big.NewInt(1 << 10) +type DocFormsGet200ResponseFieldsItemRadioOrigin string + +const ( + DocFormsGet200ResponseFieldsItemRadioOriginAcroform DocFormsGet200ResponseFieldsItemRadioOrigin = "acroform" + DocFormsGet200ResponseFieldsItemRadioOriginRecovered DocFormsGet200ResponseFieldsItemRadioOrigin = "recovered" ) -type DocFormsGet200ResponseFieldsItemPushbutton struct { - Ref *DocFormsGet200ResponseFieldsItemPushbuttonRef `json:"ref" url:"ref"` - FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` - Name string `json:"name" url:"name"` - Origin DocFormsGet200ResponseFieldsItemPushbuttonOrigin `json:"origin" url:"origin"` - Flags *DocFormsGet200ResponseFieldsItemPushbuttonFlags `json:"flags" url:"flags"` - AlternateName *string `json:"alternateName,omitempty" url:"alternateName,omitempty"` - MappingName *string `json:"mappingName,omitempty" url:"mappingName,omitempty"` - ValueEntry *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry `json:"valueEntry" url:"valueEntry"` - DefaultValueEntry *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry `json:"defaultValueEntry" url:"defaultValueEntry"` - Actions *PdfFieldActions `json:"actions,omitempty" url:"actions,omitempty"` - Widgets []*DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem `json:"widgets" url:"widgets"` +func NewDocFormsGet200ResponseFieldsItemRadioOriginFromString(s string) (DocFormsGet200ResponseFieldsItemRadioOrigin, error) { + switch s { + case "acroform": + return DocFormsGet200ResponseFieldsItemRadioOriginAcroform, nil + case "recovered": + return DocFormsGet200ResponseFieldsItemRadioOriginRecovered, nil + } + var t DocFormsGet200ResponseFieldsItemRadioOrigin + return "", fmt.Errorf("%s is not a valid %T", s, t) +} - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +func (d DocFormsGet200ResponseFieldsItemRadioOrigin) Ptr() *DocFormsGet200ResponseFieldsItemRadioOrigin { + return &d +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +type DocFormsGet200ResponseFieldsItemRadioRef struct { + Kind string + ObjectNumber *DocFormsGet200ResponseFieldsItemRadioRefObjectNumber + Fqn *DocFormsGet200ResponseFieldsItemRadioRefFqn + + rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemPushbutton) GetRef() *DocFormsGet200ResponseFieldsItemPushbuttonRef { +func (d *DocFormsGet200ResponseFieldsItemRadioRef) GetKind() string { + if d == nil { + return "" + } + return d.Kind +} + +func (d *DocFormsGet200ResponseFieldsItemRadioRef) GetObjectNumber() *DocFormsGet200ResponseFieldsItemRadioRefObjectNumber { if d == nil { return nil } - return d.Ref + return d.ObjectNumber } -func (d *DocFormsGet200ResponseFieldsItemPushbutton) GetFieldObjectNumber() int { +func (d *DocFormsGet200ResponseFieldsItemRadioRef) GetFqn() *DocFormsGet200ResponseFieldsItemRadioRefFqn { if d == nil { - return 0 + return nil } - return d.FieldObjectNumber + return d.Fqn } -func (d *DocFormsGet200ResponseFieldsItemPushbutton) GetName() string { +func (d *DocFormsGet200ResponseFieldsItemRadioRef) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocFormsGet200ResponseFieldsItemRadioRefObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "fqn": + value := new(DocFormsGet200ResponseFieldsItemRadioRefFqn) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Fqn = value + } + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d DocFormsGet200ResponseFieldsItemRadioRef) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err + } + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Fqn != nil { + return internal.MarshalJSONWithExtraProperty(d.Fqn, "kind", "fqn") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +} + +type DocFormsGet200ResponseFieldsItemRadioRefVisitor interface { + VisitObjectNumber(*DocFormsGet200ResponseFieldsItemRadioRefObjectNumber) error + VisitFqn(*DocFormsGet200ResponseFieldsItemRadioRefFqn) error +} + +func (d *DocFormsGet200ResponseFieldsItemRadioRef) Accept(visitor DocFormsGet200ResponseFieldsItemRadioRefVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) + } + if d.Fqn != nil { + return visitor.VisitFqn(d.Fqn) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocFormsGet200ResponseFieldsItemRadioRef) validate() error { if d == nil { - return "" + return fmt.Errorf("type %T is nil", d) } - return d.Name + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Fqn != nil { + fields = append(fields, "fqn") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil } -func (d *DocFormsGet200ResponseFieldsItemPushbutton) GetOrigin() DocFormsGet200ResponseFieldsItemPushbuttonOrigin { +var ( + docFormsGet200ResponseFieldsItemRadioRefFqnFieldName = big.NewInt(1 << 0) +) + +type DocFormsGet200ResponseFieldsItemRadioRefFqn struct { + Name string `json:"name" url:"name"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocFormsGet200ResponseFieldsItemRadioRefFqn) GetName() string { if d == nil { return "" } - return d.Origin + return d.Name } -func (d *DocFormsGet200ResponseFieldsItemPushbutton) GetFlags() *DocFormsGet200ResponseFieldsItemPushbuttonFlags { +func (d *DocFormsGet200ResponseFieldsItemRadioRefFqn) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.Flags + return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemPushbutton) GetAlternateName() *string { - if d == nil { - return nil +func (d *DocFormsGet200ResponseFieldsItemRadioRefFqn) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.AlternateName + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocFormsGet200ResponseFieldsItemPushbutton) GetMappingName() *string { - if d == nil { - return nil +// SetName sets the Name field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemRadioRefFqn) SetName(name string) { + d.Name = name + d.require(docFormsGet200ResponseFieldsItemRadioRefFqnFieldName) +} + +func (d *DocFormsGet200ResponseFieldsItemRadioRefFqn) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemRadioRefFqn + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - return d.MappingName + *d = DocFormsGet200ResponseFieldsItemRadioRefFqn(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocFormsGet200ResponseFieldsItemPushbutton) GetValueEntry() *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry { +func (d *DocFormsGet200ResponseFieldsItemRadioRefFqn) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemRadioRefFqn + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocFormsGet200ResponseFieldsItemRadioRefFqn) String() string { if d == nil { - return nil + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value } - return d.ValueEntry + return fmt.Sprintf("%#v", d) } -func (d *DocFormsGet200ResponseFieldsItemPushbutton) GetDefaultValueEntry() *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry { - if d == nil { - return nil - } - return d.DefaultValueEntry -} +var ( + docFormsGet200ResponseFieldsItemRadioRefObjectNumberFieldFieldObjectNumber = big.NewInt(1 << 0) +) -func (d *DocFormsGet200ResponseFieldsItemPushbutton) GetActions() *PdfFieldActions { - if d == nil { - return nil - } - return d.Actions +type DocFormsGet200ResponseFieldsItemRadioRefObjectNumber struct { + FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemPushbutton) GetWidgets() []*DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem { +func (d *DocFormsGet200ResponseFieldsItemRadioRefObjectNumber) GetFieldObjectNumber() int { if d == nil { - return nil + return 0 } - return d.Widgets + return d.FieldObjectNumber } -func (d *DocFormsGet200ResponseFieldsItemPushbutton) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemRadioRefObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemPushbutton) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemRadioRefObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetRef sets the Ref field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemPushbutton) SetRef(ref *DocFormsGet200ResponseFieldsItemPushbuttonRef) { - d.Ref = ref - d.require(docFormsGet200ResponseFieldsItemPushbuttonFieldRef) -} - // SetFieldObjectNumber sets the FieldObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemPushbutton) SetFieldObjectNumber(fieldObjectNumber int) { +func (d *DocFormsGet200ResponseFieldsItemRadioRefObjectNumber) SetFieldObjectNumber(fieldObjectNumber int) { d.FieldObjectNumber = fieldObjectNumber - d.require(docFormsGet200ResponseFieldsItemPushbuttonFieldFieldObjectNumber) -} - -// SetName sets the Name field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemPushbutton) SetName(name string) { - d.Name = name - d.require(docFormsGet200ResponseFieldsItemPushbuttonFieldName) -} - -// SetOrigin sets the Origin field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemPushbutton) SetOrigin(origin DocFormsGet200ResponseFieldsItemPushbuttonOrigin) { - d.Origin = origin - d.require(docFormsGet200ResponseFieldsItemPushbuttonFieldOrigin) -} - -// SetFlags sets the Flags field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemPushbutton) SetFlags(flags *DocFormsGet200ResponseFieldsItemPushbuttonFlags) { - d.Flags = flags - d.require(docFormsGet200ResponseFieldsItemPushbuttonFieldFlags) -} - -// SetAlternateName sets the AlternateName field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemPushbutton) SetAlternateName(alternateName *string) { - d.AlternateName = alternateName - d.require(docFormsGet200ResponseFieldsItemPushbuttonFieldAlternateName) -} - -// SetMappingName sets the MappingName field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemPushbutton) SetMappingName(mappingName *string) { - d.MappingName = mappingName - d.require(docFormsGet200ResponseFieldsItemPushbuttonFieldMappingName) -} - -// SetValueEntry sets the ValueEntry field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemPushbutton) SetValueEntry(valueEntry *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry) { - d.ValueEntry = valueEntry - d.require(docFormsGet200ResponseFieldsItemPushbuttonFieldValueEntry) -} - -// SetDefaultValueEntry sets the DefaultValueEntry field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemPushbutton) SetDefaultValueEntry(defaultValueEntry *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry) { - d.DefaultValueEntry = defaultValueEntry - d.require(docFormsGet200ResponseFieldsItemPushbuttonFieldDefaultValueEntry) -} - -// SetActions sets the Actions field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemPushbutton) SetActions(actions *PdfFieldActions) { - d.Actions = actions - d.require(docFormsGet200ResponseFieldsItemPushbuttonFieldActions) -} - -// SetWidgets sets the Widgets field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemPushbutton) SetWidgets(widgets []*DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem) { - d.Widgets = widgets - d.require(docFormsGet200ResponseFieldsItemPushbuttonFieldWidgets) + d.require(docFormsGet200ResponseFieldsItemRadioRefObjectNumberFieldFieldObjectNumber) } -func (d *DocFormsGet200ResponseFieldsItemPushbutton) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemPushbutton +func (d *DocFormsGet200ResponseFieldsItemRadioRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemRadioRefObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemPushbutton(value) + *d = DocFormsGet200ResponseFieldsItemRadioRefObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -119904,8 +138122,8 @@ func (d *DocFormsGet200ResponseFieldsItemPushbutton) UnmarshalJSON(data []byte) return nil } -func (d *DocFormsGet200ResponseFieldsItemPushbutton) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemPushbutton +func (d *DocFormsGet200ResponseFieldsItemRadioRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemRadioRefObjectNumber var marshaler = struct { embed }{ @@ -119915,7 +138133,7 @@ func (d *DocFormsGet200ResponseFieldsItemPushbutton) MarshalJSON() ([]byte, erro return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemPushbutton) String() string { +func (d *DocFormsGet200ResponseFieldsItemRadioRefObjectNumber) String() string { if d == nil { return "" } @@ -119930,52 +138148,52 @@ func (d *DocFormsGet200ResponseFieldsItemPushbutton) String() string { return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry struct { +type DocFormsGet200ResponseFieldsItemRadioValueEntry struct { Kind string - None *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone - Scalar *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar - Array *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray - Unsupported *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported + None *DocFormsGet200ResponseFieldsItemRadioValueEntryNone + Scalar *DocFormsGet200ResponseFieldsItemRadioValueEntryScalar + Array *DocFormsGet200ResponseFieldsItemRadioValueEntryArray + Unsupported *DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry) GetKind() string { +func (d *DocFormsGet200ResponseFieldsItemRadioValueEntry) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry) GetNone() *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone { +func (d *DocFormsGet200ResponseFieldsItemRadioValueEntry) GetNone() *DocFormsGet200ResponseFieldsItemRadioValueEntryNone { if d == nil { return nil } return d.None } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry) GetScalar() *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar { +func (d *DocFormsGet200ResponseFieldsItemRadioValueEntry) GetScalar() *DocFormsGet200ResponseFieldsItemRadioValueEntryScalar { if d == nil { return nil } return d.Scalar } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry) GetArray() *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray { +func (d *DocFormsGet200ResponseFieldsItemRadioValueEntry) GetArray() *DocFormsGet200ResponseFieldsItemRadioValueEntryArray { if d == nil { return nil } return d.Array } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry) GetUnsupported() *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported { +func (d *DocFormsGet200ResponseFieldsItemRadioValueEntry) GetUnsupported() *DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported { if d == nil { return nil } return d.Unsupported } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry) UnmarshalJSON(data []byte) error { +func (d *DocFormsGet200ResponseFieldsItemRadioValueEntry) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -119988,25 +138206,25 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry) UnmarshalJ } switch unmarshaler.Kind { case "none": - value := new(DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone) + value := new(DocFormsGet200ResponseFieldsItemRadioValueEntryNone) if err := json.Unmarshal(data, &value); err != nil { return err } d.None = value case "scalar": - value := new(DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar) + value := new(DocFormsGet200ResponseFieldsItemRadioValueEntryScalar) if err := json.Unmarshal(data, &value); err != nil { return err } d.Scalar = value case "array": - value := new(DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray) + value := new(DocFormsGet200ResponseFieldsItemRadioValueEntryArray) if err := json.Unmarshal(data, &value); err != nil { return err } d.Array = value case "unsupported": - value := new(DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported) + value := new(DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -120016,7 +138234,7 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry) UnmarshalJ return nil } -func (d DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry) MarshalJSON() ([]byte, error) { +func (d DocFormsGet200ResponseFieldsItemRadioValueEntry) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -120038,14 +138256,14 @@ func (d DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry) MarshalJSON return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryVisitor interface { - VisitNone(*DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone) error - VisitScalar(*DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar) error - VisitArray(*DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray) error - VisitUnsupported(*DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported) error +type DocFormsGet200ResponseFieldsItemRadioValueEntryVisitor interface { + VisitNone(*DocFormsGet200ResponseFieldsItemRadioValueEntryNone) error + VisitScalar(*DocFormsGet200ResponseFieldsItemRadioValueEntryScalar) error + VisitArray(*DocFormsGet200ResponseFieldsItemRadioValueEntryArray) error + VisitUnsupported(*DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported) error } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry) Accept(visitor DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryVisitor) error { +func (d *DocFormsGet200ResponseFieldsItemRadioValueEntry) Accept(visitor DocFormsGet200ResponseFieldsItemRadioValueEntryVisitor) error { if d.None != nil { return visitor.VisitNone(d.None) } @@ -120061,7 +138279,7 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry) Accept(vis return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry) validate() error { +func (d *DocFormsGet200ResponseFieldsItemRadioValueEntry) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -120105,10 +138323,10 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry) validate() } var ( - docFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArrayFieldValues = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemRadioValueEntryArrayFieldValues = big.NewInt(1 << 0) ) -type DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray struct { +type DocFormsGet200ResponseFieldsItemRadioValueEntryArray struct { Values []string `json:"values" url:"values"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -120118,21 +138336,21 @@ type DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray) GetValues() []string { +func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryArray) GetValues() []string { if d == nil { return nil } return d.Values } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryArray) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryArray) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -120141,18 +138359,18 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray) requi // SetValues sets the Values field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray) SetValues(values []string) { +func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryArray) SetValues(values []string) { d.Values = values - d.require(docFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArrayFieldValues) + d.require(docFormsGet200ResponseFieldsItemRadioValueEntryArrayFieldValues) } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray +func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryArray) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemRadioValueEntryArray var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray(value) + *d = DocFormsGet200ResponseFieldsItemRadioValueEntryArray(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -120162,8 +138380,8 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray) Unmar return nil } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray +func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryArray) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemRadioValueEntryArray var marshaler = struct { embed }{ @@ -120173,7 +138391,7 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray) Marsh return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray) String() string { +func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryArray) String() string { if d == nil { return "" } @@ -120188,7 +138406,7 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray) Strin return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone struct { +type DocFormsGet200ResponseFieldsItemRadioValueEntryNone struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -120197,27 +138415,27 @@ type DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryNone) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryNone) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone +func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryNone) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemRadioValueEntryNone var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone(value) + *d = DocFormsGet200ResponseFieldsItemRadioValueEntryNone(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -120227,8 +138445,8 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone) Unmars return nil } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone +func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryNone) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemRadioValueEntryNone var marshaler = struct { embed }{ @@ -120238,7 +138456,7 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone) Marsha return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone) String() string { +func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryNone) String() string { if d == nil { return "" } @@ -120254,10 +138472,10 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone) String } var ( - docFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalarFieldValue = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemRadioValueEntryScalarFieldValue = big.NewInt(1 << 0) ) -type DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar struct { +type DocFormsGet200ResponseFieldsItemRadioValueEntryScalar struct { Value string `json:"value" url:"value"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -120267,21 +138485,21 @@ type DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar) GetValue() string { +func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryScalar) GetValue() string { if d == nil { return "" } return d.Value } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryScalar) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryScalar) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -120290,83 +138508,18 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar) requ // SetValue sets the Value field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar) SetValue(value string) { +func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryScalar) SetValue(value string) { d.Value = value - d.require(docFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalarFieldValue) -} - -func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) -} - -func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) -} - -type DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported struct { - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage -} - -func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties -} - -func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) + d.require(docFormsGet200ResponseFieldsItemRadioValueEntryScalarFieldValue) } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported +func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryScalar) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemRadioValueEntryScalar var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported(value) + *d = DocFormsGet200ResponseFieldsItemRadioValueEntryScalar(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -120376,8 +138529,8 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported) return nil } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported +func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryScalar) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemRadioValueEntryScalar var marshaler = struct { embed }{ @@ -120387,7 +138540,7 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported) return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported) String() string { +func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryScalar) String() string { if d == nil { return "" } @@ -120402,18 +138555,7 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported) return fmt.Sprintf("%#v", d) } -var ( - docFormsGet200ResponseFieldsItemPushbuttonFlagsFieldReadOnly = big.NewInt(1 << 0) - docFormsGet200ResponseFieldsItemPushbuttonFlagsFieldRequired = big.NewInt(1 << 1) - docFormsGet200ResponseFieldsItemPushbuttonFlagsFieldNoExport = big.NewInt(1 << 2) - docFormsGet200ResponseFieldsItemPushbuttonFlagsFieldRaw = big.NewInt(1 << 3) -) - -type DocFormsGet200ResponseFieldsItemPushbuttonFlags struct { - ReadOnly bool `json:"readOnly" url:"readOnly"` - Required bool `json:"required" url:"required"` - NoExport bool `json:"noExport" url:"noExport"` - Raw int `json:"raw" url:"raw"` +type DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -120422,83 +138564,27 @@ type DocFormsGet200ResponseFieldsItemPushbuttonFlags struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonFlags) GetReadOnly() bool { - if d == nil { - return false - } - return d.ReadOnly -} - -func (d *DocFormsGet200ResponseFieldsItemPushbuttonFlags) GetRequired() bool { - if d == nil { - return false - } - return d.Required -} - -func (d *DocFormsGet200ResponseFieldsItemPushbuttonFlags) GetNoExport() bool { - if d == nil { - return false - } - return d.NoExport -} - -func (d *DocFormsGet200ResponseFieldsItemPushbuttonFlags) GetRaw() int { - if d == nil { - return 0 - } - return d.Raw -} - -func (d *DocFormsGet200ResponseFieldsItemPushbuttonFlags) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonFlags) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetReadOnly sets the ReadOnly field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemPushbuttonFlags) SetReadOnly(readOnly bool) { - d.ReadOnly = readOnly - d.require(docFormsGet200ResponseFieldsItemPushbuttonFlagsFieldReadOnly) -} - -// SetRequired sets the Required field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemPushbuttonFlags) SetRequired(required bool) { - d.Required = required - d.require(docFormsGet200ResponseFieldsItemPushbuttonFlagsFieldRequired) -} - -// SetNoExport sets the NoExport field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemPushbuttonFlags) SetNoExport(noExport bool) { - d.NoExport = noExport - d.require(docFormsGet200ResponseFieldsItemPushbuttonFlagsFieldNoExport) -} - -// SetRaw sets the Raw field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemPushbuttonFlags) SetRaw(raw int) { - d.Raw = raw - d.require(docFormsGet200ResponseFieldsItemPushbuttonFlagsFieldRaw) -} - -func (d *DocFormsGet200ResponseFieldsItemPushbuttonFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemPushbuttonFlags +func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemPushbuttonFlags(value) + *d = DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -120508,186 +138594,46 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonFlags) UnmarshalJSON(data []b return nil } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonFlags) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemPushbuttonFlags +func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported var marshaler = struct { embed }{ embed: embed(*d), } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) -} - -func (d *DocFormsGet200ResponseFieldsItemPushbuttonFlags) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) -} - -type DocFormsGet200ResponseFieldsItemPushbuttonOrigin string - -const ( - DocFormsGet200ResponseFieldsItemPushbuttonOriginAcroform DocFormsGet200ResponseFieldsItemPushbuttonOrigin = "acroform" - DocFormsGet200ResponseFieldsItemPushbuttonOriginRecovered DocFormsGet200ResponseFieldsItemPushbuttonOrigin = "recovered" -) - -func NewDocFormsGet200ResponseFieldsItemPushbuttonOriginFromString(s string) (DocFormsGet200ResponseFieldsItemPushbuttonOrigin, error) { - switch s { - case "acroform": - return DocFormsGet200ResponseFieldsItemPushbuttonOriginAcroform, nil - case "recovered": - return DocFormsGet200ResponseFieldsItemPushbuttonOriginRecovered, nil - } - var t DocFormsGet200ResponseFieldsItemPushbuttonOrigin - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocFormsGet200ResponseFieldsItemPushbuttonOrigin) Ptr() *DocFormsGet200ResponseFieldsItemPushbuttonOrigin { - return &d -} - -type DocFormsGet200ResponseFieldsItemPushbuttonRef struct { - Kind string - ObjectNumber *DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber - Fqn *DocFormsGet200ResponseFieldsItemPushbuttonRefFqn - - rawJSON json.RawMessage -} - -func (d *DocFormsGet200ResponseFieldsItemPushbuttonRef) GetKind() string { - if d == nil { - return "" - } - return d.Kind -} - -func (d *DocFormsGet200ResponseFieldsItemPushbuttonRef) GetObjectNumber() *DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber { - if d == nil { - return nil - } - return d.ObjectNumber -} - -func (d *DocFormsGet200ResponseFieldsItemPushbuttonRef) GetFqn() *DocFormsGet200ResponseFieldsItemPushbuttonRefFqn { - if d == nil { - return nil - } - return d.Fqn -} - -func (d *DocFormsGet200ResponseFieldsItemPushbuttonRef) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "fqn": - value := new(DocFormsGet200ResponseFieldsItemPushbuttonRefFqn) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Fqn = value - } - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d DocFormsGet200ResponseFieldsItemPushbuttonRef) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Fqn != nil { - return internal.MarshalJSONWithExtraProperty(d.Fqn, "kind", "fqn") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil - } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) -} - -type DocFormsGet200ResponseFieldsItemPushbuttonRefVisitor interface { - VisitObjectNumber(*DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber) error - VisitFqn(*DocFormsGet200ResponseFieldsItemPushbuttonRefFqn) error -} - -func (d *DocFormsGet200ResponseFieldsItemPushbuttonRef) Accept(visitor DocFormsGet200ResponseFieldsItemPushbuttonRefVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) - } - if d.Fqn != nil { - return visitor.VisitFqn(d.Fqn) - } - return fmt.Errorf("type %T does not define a non-empty union type", d) + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonRef) validate() error { +func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported) String() string { if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Fqn != nil { - fields = append(fields, "fqn") + return "" } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } + if value, err := internal.StringifyJSON(d); err == nil { + return value } - return nil + return fmt.Sprintf("%#v", d) } var ( - docFormsGet200ResponseFieldsItemPushbuttonRefFqnFieldName = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemRadioWidgetsItemFieldAnnotObjectNumber = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemRadioWidgetsItemFieldPageObjectNumber = big.NewInt(1 << 1) + docFormsGet200ResponseFieldsItemRadioWidgetsItemFieldOnState = big.NewInt(1 << 2) + docFormsGet200ResponseFieldsItemRadioWidgetsItemFieldExportValue = big.NewInt(1 << 3) + docFormsGet200ResponseFieldsItemRadioWidgetsItemFieldChecked = big.NewInt(1 << 4) ) -type DocFormsGet200ResponseFieldsItemPushbuttonRefFqn struct { - Name string `json:"name" url:"name"` +type DocFormsGet200ResponseFieldsItemRadioWidgetsItem struct { + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + OnState string `json:"onState" url:"onState"` + ExportValue string `json:"exportValue" url:"exportValue"` + Checked bool `json:"checked" url:"checked"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -120696,41 +138642,97 @@ type DocFormsGet200ResponseFieldsItemPushbuttonRefFqn struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonRefFqn) GetName() string { +func (d *DocFormsGet200ResponseFieldsItemRadioWidgetsItem) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocFormsGet200ResponseFieldsItemRadioWidgetsItem) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocFormsGet200ResponseFieldsItemRadioWidgetsItem) GetOnState() string { if d == nil { return "" } - return d.Name + return d.OnState } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonRefFqn) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemRadioWidgetsItem) GetExportValue() string { + if d == nil { + return "" + } + return d.ExportValue +} + +func (d *DocFormsGet200ResponseFieldsItemRadioWidgetsItem) GetChecked() bool { + if d == nil { + return false + } + return d.Checked +} + +func (d *DocFormsGet200ResponseFieldsItemRadioWidgetsItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonRefFqn) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemRadioWidgetsItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetName sets the Name field and marks it as non-optional; +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemPushbuttonRefFqn) SetName(name string) { - d.Name = name - d.require(docFormsGet200ResponseFieldsItemPushbuttonRefFqnFieldName) +func (d *DocFormsGet200ResponseFieldsItemRadioWidgetsItem) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docFormsGet200ResponseFieldsItemRadioWidgetsItemFieldAnnotObjectNumber) } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonRefFqn) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemPushbuttonRefFqn +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemRadioWidgetsItem) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docFormsGet200ResponseFieldsItemRadioWidgetsItemFieldPageObjectNumber) +} + +// SetOnState sets the OnState field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemRadioWidgetsItem) SetOnState(onState string) { + d.OnState = onState + d.require(docFormsGet200ResponseFieldsItemRadioWidgetsItemFieldOnState) +} + +// SetExportValue sets the ExportValue field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemRadioWidgetsItem) SetExportValue(exportValue string) { + d.ExportValue = exportValue + d.require(docFormsGet200ResponseFieldsItemRadioWidgetsItemFieldExportValue) +} + +// SetChecked sets the Checked field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemRadioWidgetsItem) SetChecked(checked bool) { + d.Checked = checked + d.require(docFormsGet200ResponseFieldsItemRadioWidgetsItemFieldChecked) +} + +func (d *DocFormsGet200ResponseFieldsItemRadioWidgetsItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemRadioWidgetsItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemPushbuttonRefFqn(value) + *d = DocFormsGet200ResponseFieldsItemRadioWidgetsItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -120740,8 +138742,8 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonRefFqn) UnmarshalJSON(data [] return nil } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonRefFqn) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemPushbuttonRefFqn +func (d *DocFormsGet200ResponseFieldsItemRadioWidgetsItem) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemRadioWidgetsItem var marshaler = struct { embed }{ @@ -120751,7 +138753,7 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonRefFqn) MarshalJSON() ([]byte return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonRefFqn) String() string { +func (d *DocFormsGet200ResponseFieldsItemRadioWidgetsItem) String() string { if d == nil { return "" } @@ -120767,11 +138769,31 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonRefFqn) String() string { } var ( - docFormsGet200ResponseFieldsItemPushbuttonRefObjectNumberFieldFieldObjectNumber = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemSignatureFieldRef = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemSignatureFieldFieldObjectNumber = big.NewInt(1 << 1) + docFormsGet200ResponseFieldsItemSignatureFieldName = big.NewInt(1 << 2) + docFormsGet200ResponseFieldsItemSignatureFieldOrigin = big.NewInt(1 << 3) + docFormsGet200ResponseFieldsItemSignatureFieldFlags = big.NewInt(1 << 4) + docFormsGet200ResponseFieldsItemSignatureFieldAlternateName = big.NewInt(1 << 5) + docFormsGet200ResponseFieldsItemSignatureFieldMappingName = big.NewInt(1 << 6) + docFormsGet200ResponseFieldsItemSignatureFieldValueEntry = big.NewInt(1 << 7) + docFormsGet200ResponseFieldsItemSignatureFieldDefaultValueEntry = big.NewInt(1 << 8) + docFormsGet200ResponseFieldsItemSignatureFieldActions = big.NewInt(1 << 9) + docFormsGet200ResponseFieldsItemSignatureFieldWidgets = big.NewInt(1 << 10) ) -type DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber struct { - FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` +type DocFormsGet200ResponseFieldsItemSignature struct { + Ref *DocFormsGet200ResponseFieldsItemSignatureRef `json:"ref" url:"ref"` + FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` + Name string `json:"name" url:"name"` + Origin DocFormsGet200ResponseFieldsItemSignatureOrigin `json:"origin" url:"origin"` + Flags *DocFormsGet200ResponseFieldsItemSignatureFlags `json:"flags" url:"flags"` + AlternateName *string `json:"alternateName,omitempty" url:"alternateName,omitempty"` + MappingName *string `json:"mappingName,omitempty" url:"mappingName,omitempty"` + ValueEntry *DocFormsGet200ResponseFieldsItemSignatureValueEntry `json:"valueEntry" url:"valueEntry"` + DefaultValueEntry *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry `json:"defaultValueEntry" url:"defaultValueEntry"` + Actions *PdfFieldActions `json:"actions,omitempty" url:"actions,omitempty"` + Widgets []*DocFormsGet200ResponseFieldsItemSignatureWidgetsItem `json:"widgets" url:"widgets"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -120780,41 +138802,181 @@ type DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber) GetFieldObjectNumber() int { +func (d *DocFormsGet200ResponseFieldsItemSignature) GetRef() *DocFormsGet200ResponseFieldsItemSignatureRef { + if d == nil { + return nil + } + return d.Ref +} + +func (d *DocFormsGet200ResponseFieldsItemSignature) GetFieldObjectNumber() int { if d == nil { return 0 } return d.FieldObjectNumber } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemSignature) GetName() string { + if d == nil { + return "" + } + return d.Name +} + +func (d *DocFormsGet200ResponseFieldsItemSignature) GetOrigin() DocFormsGet200ResponseFieldsItemSignatureOrigin { + if d == nil { + return "" + } + return d.Origin +} + +func (d *DocFormsGet200ResponseFieldsItemSignature) GetFlags() *DocFormsGet200ResponseFieldsItemSignatureFlags { + if d == nil { + return nil + } + return d.Flags +} + +func (d *DocFormsGet200ResponseFieldsItemSignature) GetAlternateName() *string { + if d == nil { + return nil + } + return d.AlternateName +} + +func (d *DocFormsGet200ResponseFieldsItemSignature) GetMappingName() *string { + if d == nil { + return nil + } + return d.MappingName +} + +func (d *DocFormsGet200ResponseFieldsItemSignature) GetValueEntry() *DocFormsGet200ResponseFieldsItemSignatureValueEntry { + if d == nil { + return nil + } + return d.ValueEntry +} + +func (d *DocFormsGet200ResponseFieldsItemSignature) GetDefaultValueEntry() *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry { + if d == nil { + return nil + } + return d.DefaultValueEntry +} + +func (d *DocFormsGet200ResponseFieldsItemSignature) GetActions() *PdfFieldActions { + if d == nil { + return nil + } + return d.Actions +} + +func (d *DocFormsGet200ResponseFieldsItemSignature) GetWidgets() []*DocFormsGet200ResponseFieldsItemSignatureWidgetsItem { + if d == nil { + return nil + } + return d.Widgets +} + +func (d *DocFormsGet200ResponseFieldsItemSignature) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemSignature) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } +// SetRef sets the Ref field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemSignature) SetRef(ref *DocFormsGet200ResponseFieldsItemSignatureRef) { + d.Ref = ref + d.require(docFormsGet200ResponseFieldsItemSignatureFieldRef) +} + // SetFieldObjectNumber sets the FieldObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber) SetFieldObjectNumber(fieldObjectNumber int) { +func (d *DocFormsGet200ResponseFieldsItemSignature) SetFieldObjectNumber(fieldObjectNumber int) { d.FieldObjectNumber = fieldObjectNumber - d.require(docFormsGet200ResponseFieldsItemPushbuttonRefObjectNumberFieldFieldObjectNumber) + d.require(docFormsGet200ResponseFieldsItemSignatureFieldFieldObjectNumber) } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber +// SetName sets the Name field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemSignature) SetName(name string) { + d.Name = name + d.require(docFormsGet200ResponseFieldsItemSignatureFieldName) +} + +// SetOrigin sets the Origin field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemSignature) SetOrigin(origin DocFormsGet200ResponseFieldsItemSignatureOrigin) { + d.Origin = origin + d.require(docFormsGet200ResponseFieldsItemSignatureFieldOrigin) +} + +// SetFlags sets the Flags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemSignature) SetFlags(flags *DocFormsGet200ResponseFieldsItemSignatureFlags) { + d.Flags = flags + d.require(docFormsGet200ResponseFieldsItemSignatureFieldFlags) +} + +// SetAlternateName sets the AlternateName field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemSignature) SetAlternateName(alternateName *string) { + d.AlternateName = alternateName + d.require(docFormsGet200ResponseFieldsItemSignatureFieldAlternateName) +} + +// SetMappingName sets the MappingName field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemSignature) SetMappingName(mappingName *string) { + d.MappingName = mappingName + d.require(docFormsGet200ResponseFieldsItemSignatureFieldMappingName) +} + +// SetValueEntry sets the ValueEntry field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemSignature) SetValueEntry(valueEntry *DocFormsGet200ResponseFieldsItemSignatureValueEntry) { + d.ValueEntry = valueEntry + d.require(docFormsGet200ResponseFieldsItemSignatureFieldValueEntry) +} + +// SetDefaultValueEntry sets the DefaultValueEntry field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemSignature) SetDefaultValueEntry(defaultValueEntry *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry) { + d.DefaultValueEntry = defaultValueEntry + d.require(docFormsGet200ResponseFieldsItemSignatureFieldDefaultValueEntry) +} + +// SetActions sets the Actions field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemSignature) SetActions(actions *PdfFieldActions) { + d.Actions = actions + d.require(docFormsGet200ResponseFieldsItemSignatureFieldActions) +} + +// SetWidgets sets the Widgets field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemSignature) SetWidgets(widgets []*DocFormsGet200ResponseFieldsItemSignatureWidgetsItem) { + d.Widgets = widgets + d.require(docFormsGet200ResponseFieldsItemSignatureFieldWidgets) +} + +func (d *DocFormsGet200ResponseFieldsItemSignature) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemSignature var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber(value) + *d = DocFormsGet200ResponseFieldsItemSignature(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -120824,8 +138986,8 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber) UnmarshalJSO return nil } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber +func (d *DocFormsGet200ResponseFieldsItemSignature) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemSignature var marshaler = struct { embed }{ @@ -120835,7 +138997,7 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber) MarshalJSON( return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber) String() string { +func (d *DocFormsGet200ResponseFieldsItemSignature) String() string { if d == nil { return "" } @@ -120850,52 +139012,52 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber) String() str return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemPushbuttonValueEntry struct { +type DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry struct { Kind string - None *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone - Scalar *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar - Array *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray - Unsupported *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported + None *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone + Scalar *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar + Array *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray + Unsupported *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry) GetKind() string { +func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry) GetNone() *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone { +func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry) GetNone() *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone { if d == nil { return nil } return d.None } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry) GetScalar() *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar { +func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry) GetScalar() *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar { if d == nil { return nil } return d.Scalar } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry) GetArray() *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray { +func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry) GetArray() *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray { if d == nil { return nil } return d.Array } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry) GetUnsupported() *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported { +func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry) GetUnsupported() *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported { if d == nil { return nil } return d.Unsupported } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry) UnmarshalJSON(data []byte) error { +func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -120908,25 +139070,25 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry) UnmarshalJSON(dat } switch unmarshaler.Kind { case "none": - value := new(DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone) + value := new(DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone) if err := json.Unmarshal(data, &value); err != nil { return err } d.None = value case "scalar": - value := new(DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar) + value := new(DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar) if err := json.Unmarshal(data, &value); err != nil { return err } d.Scalar = value case "array": - value := new(DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray) + value := new(DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray) if err := json.Unmarshal(data, &value); err != nil { return err } d.Array = value case "unsupported": - value := new(DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported) + value := new(DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -120936,7 +139098,7 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry) UnmarshalJSON(dat return nil } -func (d DocFormsGet200ResponseFieldsItemPushbuttonValueEntry) MarshalJSON() ([]byte, error) { +func (d DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -120958,14 +139120,14 @@ func (d DocFormsGet200ResponseFieldsItemPushbuttonValueEntry) MarshalJSON() ([]b return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocFormsGet200ResponseFieldsItemPushbuttonValueEntryVisitor interface { - VisitNone(*DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone) error - VisitScalar(*DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar) error - VisitArray(*DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray) error - VisitUnsupported(*DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported) error +type DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryVisitor interface { + VisitNone(*DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone) error + VisitScalar(*DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar) error + VisitArray(*DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray) error + VisitUnsupported(*DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported) error } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry) Accept(visitor DocFormsGet200ResponseFieldsItemPushbuttonValueEntryVisitor) error { +func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry) Accept(visitor DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryVisitor) error { if d.None != nil { return visitor.VisitNone(d.None) } @@ -120981,7 +139143,7 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry) Accept(visitor Do return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry) validate() error { +func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -121025,10 +139187,10 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry) validate() error } var ( - docFormsGet200ResponseFieldsItemPushbuttonValueEntryArrayFieldValues = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArrayFieldValues = big.NewInt(1 << 0) ) -type DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray struct { +type DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray struct { Values []string `json:"values" url:"values"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -121038,21 +139200,21 @@ type DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray) GetValues() []string { +func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray) GetValues() []string { if d == nil { return nil } return d.Values } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -121061,18 +139223,18 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray) require(fiel // SetValues sets the Values field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray) SetValues(values []string) { +func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray) SetValues(values []string) { d.Values = values - d.require(docFormsGet200ResponseFieldsItemPushbuttonValueEntryArrayFieldValues) + d.require(docFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArrayFieldValues) } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray +func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray(value) + *d = DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -121082,8 +139244,8 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray) UnmarshalJSO return nil } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray +func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray var marshaler = struct { embed }{ @@ -121093,7 +139255,7 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray) MarshalJSON( return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray) String() string { +func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray) String() string { if d == nil { return "" } @@ -121108,7 +139270,7 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray) String() str return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone struct { +type DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -121117,27 +139279,27 @@ type DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone +func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone(value) + *d = DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -121147,8 +139309,8 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone) UnmarshalJSON return nil } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone +func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone var marshaler = struct { embed }{ @@ -121158,7 +139320,7 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone) MarshalJSON() return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone) String() string { +func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone) String() string { if d == nil { return "" } @@ -121174,10 +139336,10 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone) String() stri } var ( - docFormsGet200ResponseFieldsItemPushbuttonValueEntryScalarFieldValue = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalarFieldValue = big.NewInt(1 << 0) ) -type DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar struct { +type DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar struct { Value string `json:"value" url:"value"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -121187,21 +139349,21 @@ type DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar) GetValue() string { +func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar) GetValue() string { if d == nil { return "" } return d.Value } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -121210,18 +139372,18 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar) require(fie // SetValue sets the Value field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar) SetValue(value string) { +func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar) SetValue(value string) { d.Value = value - d.require(docFormsGet200ResponseFieldsItemPushbuttonValueEntryScalarFieldValue) + d.require(docFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalarFieldValue) } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar +func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar(value) + *d = DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -121231,8 +139393,8 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar) UnmarshalJS return nil } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar +func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar var marshaler = struct { embed }{ @@ -121242,7 +139404,7 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar) MarshalJSON return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar) String() string { +func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar) String() string { if d == nil { return "" } @@ -121257,7 +139419,7 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar) String() st return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported struct { +type DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -121266,27 +139428,27 @@ type DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported +func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported(value) + *d = DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -121296,8 +139458,8 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported) Unmars return nil } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported +func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported var marshaler = struct { embed }{ @@ -121307,7 +139469,7 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported) Marsha return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported) String() string { +func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported) String() string { if d == nil { return "" } @@ -121323,13 +139485,17 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported) String } var ( - docFormsGet200ResponseFieldsItemPushbuttonWidgetsItemFieldAnnotObjectNumber = big.NewInt(1 << 0) - docFormsGet200ResponseFieldsItemPushbuttonWidgetsItemFieldPageObjectNumber = big.NewInt(1 << 1) + docFormsGet200ResponseFieldsItemSignatureFlagsFieldReadOnly = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemSignatureFlagsFieldRequired = big.NewInt(1 << 1) + docFormsGet200ResponseFieldsItemSignatureFlagsFieldNoExport = big.NewInt(1 << 2) + docFormsGet200ResponseFieldsItemSignatureFlagsFieldRaw = big.NewInt(1 << 3) ) -type DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem struct { - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` +type DocFormsGet200ResponseFieldsItemSignatureFlags struct { + ReadOnly bool `json:"readOnly" url:"readOnly"` + Required bool `json:"required" url:"required"` + NoExport bool `json:"noExport" url:"noExport"` + Raw int `json:"raw" url:"raw"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -121338,55 +139504,83 @@ type DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem) GetAnnotObjectNumber() int { +func (d *DocFormsGet200ResponseFieldsItemSignatureFlags) GetReadOnly() bool { if d == nil { - return 0 + return false } - return d.AnnotObjectNumber + return d.ReadOnly } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem) GetPageObjectNumber() int { +func (d *DocFormsGet200ResponseFieldsItemSignatureFlags) GetRequired() bool { + if d == nil { + return false + } + return d.Required +} + +func (d *DocFormsGet200ResponseFieldsItemSignatureFlags) GetNoExport() bool { + if d == nil { + return false + } + return d.NoExport +} + +func (d *DocFormsGet200ResponseFieldsItemSignatureFlags) GetRaw() int { if d == nil { return 0 } - return d.PageObjectNumber + return d.Raw } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemSignatureFlags) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemSignatureFlags) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetReadOnly sets the ReadOnly field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemSignatureFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + d.require(docFormsGet200ResponseFieldsItemSignatureFlagsFieldReadOnly) +} + +// SetRequired sets the Required field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemSignatureFlags) SetRequired(required bool) { + d.Required = required + d.require(docFormsGet200ResponseFieldsItemSignatureFlagsFieldRequired) +} + +// SetNoExport sets the NoExport field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docFormsGet200ResponseFieldsItemPushbuttonWidgetsItemFieldAnnotObjectNumber) +func (d *DocFormsGet200ResponseFieldsItemSignatureFlags) SetNoExport(noExport bool) { + d.NoExport = noExport + d.require(docFormsGet200ResponseFieldsItemSignatureFlagsFieldNoExport) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetRaw sets the Raw field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docFormsGet200ResponseFieldsItemPushbuttonWidgetsItemFieldPageObjectNumber) +func (d *DocFormsGet200ResponseFieldsItemSignatureFlags) SetRaw(raw int) { + d.Raw = raw + d.require(docFormsGet200ResponseFieldsItemSignatureFlagsFieldRaw) } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem +func (d *DocFormsGet200ResponseFieldsItemSignatureFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemSignatureFlags var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem(value) + *d = DocFormsGet200ResponseFieldsItemSignatureFlags(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -121396,8 +139590,8 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem) UnmarshalJSON(da return nil } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem +func (d *DocFormsGet200ResponseFieldsItemSignatureFlags) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemSignatureFlags var marshaler = struct { embed }{ @@ -121407,7 +139601,7 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem) MarshalJSON() ([ return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem) String() string { +func (d *DocFormsGet200ResponseFieldsItemSignatureFlags) String() string { if d == nil { return "" } @@ -121422,263 +139616,287 @@ func (d *DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem) String() string return fmt.Sprintf("%#v", d) } -var ( - docFormsGet200ResponseFieldsItemRadioFieldRef = big.NewInt(1 << 0) - docFormsGet200ResponseFieldsItemRadioFieldFieldObjectNumber = big.NewInt(1 << 1) - docFormsGet200ResponseFieldsItemRadioFieldName = big.NewInt(1 << 2) - docFormsGet200ResponseFieldsItemRadioFieldOrigin = big.NewInt(1 << 3) - docFormsGet200ResponseFieldsItemRadioFieldFlags = big.NewInt(1 << 4) - docFormsGet200ResponseFieldsItemRadioFieldAlternateName = big.NewInt(1 << 5) - docFormsGet200ResponseFieldsItemRadioFieldMappingName = big.NewInt(1 << 6) - docFormsGet200ResponseFieldsItemRadioFieldValueEntry = big.NewInt(1 << 7) - docFormsGet200ResponseFieldsItemRadioFieldDefaultValueEntry = big.NewInt(1 << 8) - docFormsGet200ResponseFieldsItemRadioFieldActions = big.NewInt(1 << 9) - docFormsGet200ResponseFieldsItemRadioFieldWidgets = big.NewInt(1 << 10) - docFormsGet200ResponseFieldsItemRadioFieldValue = big.NewInt(1 << 11) - docFormsGet200ResponseFieldsItemRadioFieldRadiosInUnison = big.NewInt(1 << 12) - docFormsGet200ResponseFieldsItemRadioFieldNoToggleToOff = big.NewInt(1 << 13) -) - -type DocFormsGet200ResponseFieldsItemRadio struct { - Ref *DocFormsGet200ResponseFieldsItemRadioRef `json:"ref" url:"ref"` - FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` - Name string `json:"name" url:"name"` - Origin DocFormsGet200ResponseFieldsItemRadioOrigin `json:"origin" url:"origin"` - Flags *DocFormsGet200ResponseFieldsItemRadioFlags `json:"flags" url:"flags"` - AlternateName *string `json:"alternateName,omitempty" url:"alternateName,omitempty"` - MappingName *string `json:"mappingName,omitempty" url:"mappingName,omitempty"` - ValueEntry *DocFormsGet200ResponseFieldsItemRadioValueEntry `json:"valueEntry" url:"valueEntry"` - DefaultValueEntry *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry `json:"defaultValueEntry" url:"defaultValueEntry"` - Actions *PdfFieldActions `json:"actions,omitempty" url:"actions,omitempty"` - Widgets []*DocFormsGet200ResponseFieldsItemRadioWidgetsItem `json:"widgets" url:"widgets"` - Value string `json:"value" url:"value"` - RadiosInUnison bool `json:"radiosInUnison" url:"radiosInUnison"` - NoToggleToOff bool `json:"noToggleToOff" url:"noToggleToOff"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +type DocFormsGet200ResponseFieldsItemSignatureOrigin string - extraProperties map[string]interface{} - rawJSON json.RawMessage -} +const ( + DocFormsGet200ResponseFieldsItemSignatureOriginAcroform DocFormsGet200ResponseFieldsItemSignatureOrigin = "acroform" + DocFormsGet200ResponseFieldsItemSignatureOriginRecovered DocFormsGet200ResponseFieldsItemSignatureOrigin = "recovered" +) -func (d *DocFormsGet200ResponseFieldsItemRadio) GetRef() *DocFormsGet200ResponseFieldsItemRadioRef { - if d == nil { - return nil +func NewDocFormsGet200ResponseFieldsItemSignatureOriginFromString(s string) (DocFormsGet200ResponseFieldsItemSignatureOrigin, error) { + switch s { + case "acroform": + return DocFormsGet200ResponseFieldsItemSignatureOriginAcroform, nil + case "recovered": + return DocFormsGet200ResponseFieldsItemSignatureOriginRecovered, nil } - return d.Ref + var t DocFormsGet200ResponseFieldsItemSignatureOrigin + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocFormsGet200ResponseFieldsItemRadio) GetFieldObjectNumber() int { - if d == nil { - return 0 - } - return d.FieldObjectNumber +func (d DocFormsGet200ResponseFieldsItemSignatureOrigin) Ptr() *DocFormsGet200ResponseFieldsItemSignatureOrigin { + return &d } -func (d *DocFormsGet200ResponseFieldsItemRadio) GetName() string { - if d == nil { - return "" - } - return d.Name +type DocFormsGet200ResponseFieldsItemSignatureRef struct { + Kind string + ObjectNumber *DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber + Fqn *DocFormsGet200ResponseFieldsItemSignatureRefFqn + + rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemRadio) GetOrigin() DocFormsGet200ResponseFieldsItemRadioOrigin { +func (d *DocFormsGet200ResponseFieldsItemSignatureRef) GetKind() string { if d == nil { return "" } - return d.Origin + return d.Kind } -func (d *DocFormsGet200ResponseFieldsItemRadio) GetFlags() *DocFormsGet200ResponseFieldsItemRadioFlags { +func (d *DocFormsGet200ResponseFieldsItemSignatureRef) GetObjectNumber() *DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber { if d == nil { return nil } - return d.Flags + return d.ObjectNumber } -func (d *DocFormsGet200ResponseFieldsItemRadio) GetAlternateName() *string { +func (d *DocFormsGet200ResponseFieldsItemSignatureRef) GetFqn() *DocFormsGet200ResponseFieldsItemSignatureRefFqn { if d == nil { return nil } - return d.AlternateName + return d.Fqn } -func (d *DocFormsGet200ResponseFieldsItemRadio) GetMappingName() *string { - if d == nil { - return nil +func (d *DocFormsGet200ResponseFieldsItemSignatureRef) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` } - return d.MappingName -} - -func (d *DocFormsGet200ResponseFieldsItemRadio) GetValueEntry() *DocFormsGet200ResponseFieldsItemRadioValueEntry { - if d == nil { - return nil + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err } - return d.ValueEntry + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "fqn": + value := new(DocFormsGet200ResponseFieldsItemSignatureRefFqn) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Fqn = value + } + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocFormsGet200ResponseFieldsItemRadio) GetDefaultValueEntry() *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry { - if d == nil { - return nil +func (d DocFormsGet200ResponseFieldsItemSignatureRef) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err } - return d.DefaultValueEntry + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Fqn != nil { + return internal.MarshalJSONWithExtraProperty(d.Fqn, "kind", "fqn") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocFormsGet200ResponseFieldsItemRadio) GetActions() *PdfFieldActions { - if d == nil { - return nil - } - return d.Actions +type DocFormsGet200ResponseFieldsItemSignatureRefVisitor interface { + VisitObjectNumber(*DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber) error + VisitFqn(*DocFormsGet200ResponseFieldsItemSignatureRefFqn) error } -func (d *DocFormsGet200ResponseFieldsItemRadio) GetWidgets() []*DocFormsGet200ResponseFieldsItemRadioWidgetsItem { - if d == nil { - return nil +func (d *DocFormsGet200ResponseFieldsItemSignatureRef) Accept(visitor DocFormsGet200ResponseFieldsItemSignatureRefVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) } - return d.Widgets + if d.Fqn != nil { + return visitor.VisitFqn(d.Fqn) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocFormsGet200ResponseFieldsItemRadio) GetValue() string { +func (d *DocFormsGet200ResponseFieldsItemSignatureRef) validate() error { if d == nil { - return "" + return fmt.Errorf("type %T is nil", d) } - return d.Value + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Fqn != nil { + fields = append(fields, "fqn") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil } -func (d *DocFormsGet200ResponseFieldsItemRadio) GetRadiosInUnison() bool { - if d == nil { - return false - } - return d.RadiosInUnison +var ( + docFormsGet200ResponseFieldsItemSignatureRefFqnFieldName = big.NewInt(1 << 0) +) + +type DocFormsGet200ResponseFieldsItemSignatureRefFqn struct { + Name string `json:"name" url:"name"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemRadio) GetNoToggleToOff() bool { +func (d *DocFormsGet200ResponseFieldsItemSignatureRefFqn) GetName() string { if d == nil { - return false + return "" } - return d.NoToggleToOff + return d.Name } -func (d *DocFormsGet200ResponseFieldsItemRadio) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemSignatureRefFqn) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemRadio) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemSignatureRefFqn) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetRef sets the Ref field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemRadio) SetRef(ref *DocFormsGet200ResponseFieldsItemRadioRef) { - d.Ref = ref - d.require(docFormsGet200ResponseFieldsItemRadioFieldRef) -} - -// SetFieldObjectNumber sets the FieldObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemRadio) SetFieldObjectNumber(fieldObjectNumber int) { - d.FieldObjectNumber = fieldObjectNumber - d.require(docFormsGet200ResponseFieldsItemRadioFieldFieldObjectNumber) -} - // SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemRadio) SetName(name string) { +func (d *DocFormsGet200ResponseFieldsItemSignatureRefFqn) SetName(name string) { d.Name = name - d.require(docFormsGet200ResponseFieldsItemRadioFieldName) + d.require(docFormsGet200ResponseFieldsItemSignatureRefFqnFieldName) } -// SetOrigin sets the Origin field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemRadio) SetOrigin(origin DocFormsGet200ResponseFieldsItemRadioOrigin) { - d.Origin = origin - d.require(docFormsGet200ResponseFieldsItemRadioFieldOrigin) +func (d *DocFormsGet200ResponseFieldsItemSignatureRefFqn) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemSignatureRefFqn + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocFormsGet200ResponseFieldsItemSignatureRefFqn(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -// SetFlags sets the Flags field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemRadio) SetFlags(flags *DocFormsGet200ResponseFieldsItemRadioFlags) { - d.Flags = flags - d.require(docFormsGet200ResponseFieldsItemRadioFieldFlags) +func (d *DocFormsGet200ResponseFieldsItemSignatureRefFqn) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemSignatureRefFqn + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -// SetAlternateName sets the AlternateName field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemRadio) SetAlternateName(alternateName *string) { - d.AlternateName = alternateName - d.require(docFormsGet200ResponseFieldsItemRadioFieldAlternateName) +func (d *DocFormsGet200ResponseFieldsItemSignatureRefFqn) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -// SetMappingName sets the MappingName field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemRadio) SetMappingName(mappingName *string) { - d.MappingName = mappingName - d.require(docFormsGet200ResponseFieldsItemRadioFieldMappingName) -} +var ( + docFormsGet200ResponseFieldsItemSignatureRefObjectNumberFieldFieldObjectNumber = big.NewInt(1 << 0) +) -// SetValueEntry sets the ValueEntry field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemRadio) SetValueEntry(valueEntry *DocFormsGet200ResponseFieldsItemRadioValueEntry) { - d.ValueEntry = valueEntry - d.require(docFormsGet200ResponseFieldsItemRadioFieldValueEntry) -} +type DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber struct { + FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` -// SetDefaultValueEntry sets the DefaultValueEntry field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemRadio) SetDefaultValueEntry(defaultValueEntry *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry) { - d.DefaultValueEntry = defaultValueEntry - d.require(docFormsGet200ResponseFieldsItemRadioFieldDefaultValueEntry) -} + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` -// SetActions sets the Actions field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemRadio) SetActions(actions *PdfFieldActions) { - d.Actions = actions - d.require(docFormsGet200ResponseFieldsItemRadioFieldActions) + extraProperties map[string]interface{} + rawJSON json.RawMessage } -// SetWidgets sets the Widgets field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemRadio) SetWidgets(widgets []*DocFormsGet200ResponseFieldsItemRadioWidgetsItem) { - d.Widgets = widgets - d.require(docFormsGet200ResponseFieldsItemRadioFieldWidgets) +func (d *DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber) GetFieldObjectNumber() int { + if d == nil { + return 0 + } + return d.FieldObjectNumber } -// SetValue sets the Value field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemRadio) SetValue(value string) { - d.Value = value - d.require(docFormsGet200ResponseFieldsItemRadioFieldValue) +func (d *DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties } -// SetRadiosInUnison sets the RadiosInUnison field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemRadio) SetRadiosInUnison(radiosInUnison bool) { - d.RadiosInUnison = radiosInUnison - d.require(docFormsGet200ResponseFieldsItemRadioFieldRadiosInUnison) +func (d *DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) } -// SetNoToggleToOff sets the NoToggleToOff field and marks it as non-optional; +// SetFieldObjectNumber sets the FieldObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemRadio) SetNoToggleToOff(noToggleToOff bool) { - d.NoToggleToOff = noToggleToOff - d.require(docFormsGet200ResponseFieldsItemRadioFieldNoToggleToOff) +func (d *DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber) SetFieldObjectNumber(fieldObjectNumber int) { + d.FieldObjectNumber = fieldObjectNumber + d.require(docFormsGet200ResponseFieldsItemSignatureRefObjectNumberFieldFieldObjectNumber) } -func (d *DocFormsGet200ResponseFieldsItemRadio) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemRadio +func (d *DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemRadio(value) + *d = DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -121688,8 +139906,8 @@ func (d *DocFormsGet200ResponseFieldsItemRadio) UnmarshalJSON(data []byte) error return nil } -func (d *DocFormsGet200ResponseFieldsItemRadio) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemRadio +func (d *DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber var marshaler = struct { embed }{ @@ -121699,7 +139917,7 @@ func (d *DocFormsGet200ResponseFieldsItemRadio) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemRadio) String() string { +func (d *DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber) String() string { if d == nil { return "" } @@ -121714,52 +139932,52 @@ func (d *DocFormsGet200ResponseFieldsItemRadio) String() string { return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry struct { +type DocFormsGet200ResponseFieldsItemSignatureValueEntry struct { Kind string - None *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone - Scalar *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar - Array *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray - Unsupported *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported + None *DocFormsGet200ResponseFieldsItemSignatureValueEntryNone + Scalar *DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar + Array *DocFormsGet200ResponseFieldsItemSignatureValueEntryArray + Unsupported *DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry) GetKind() string { +func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntry) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry) GetNone() *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone { +func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntry) GetNone() *DocFormsGet200ResponseFieldsItemSignatureValueEntryNone { if d == nil { return nil } return d.None } -func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry) GetScalar() *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar { +func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntry) GetScalar() *DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar { if d == nil { return nil } return d.Scalar } -func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry) GetArray() *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray { +func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntry) GetArray() *DocFormsGet200ResponseFieldsItemSignatureValueEntryArray { if d == nil { return nil } return d.Array } -func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry) GetUnsupported() *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported { +func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntry) GetUnsupported() *DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported { if d == nil { return nil } return d.Unsupported } -func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry) UnmarshalJSON(data []byte) error { +func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntry) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -121772,25 +139990,25 @@ func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry) UnmarshalJSON(d } switch unmarshaler.Kind { case "none": - value := new(DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone) + value := new(DocFormsGet200ResponseFieldsItemSignatureValueEntryNone) if err := json.Unmarshal(data, &value); err != nil { return err } d.None = value case "scalar": - value := new(DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar) + value := new(DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar) if err := json.Unmarshal(data, &value); err != nil { return err } d.Scalar = value case "array": - value := new(DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray) + value := new(DocFormsGet200ResponseFieldsItemSignatureValueEntryArray) if err := json.Unmarshal(data, &value); err != nil { return err } d.Array = value case "unsupported": - value := new(DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported) + value := new(DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -121800,7 +140018,7 @@ func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry) UnmarshalJSON(d return nil } -func (d DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry) MarshalJSON() ([]byte, error) { +func (d DocFormsGet200ResponseFieldsItemSignatureValueEntry) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -121822,14 +140040,14 @@ func (d DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry) MarshalJSON() ([ return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryVisitor interface { - VisitNone(*DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone) error - VisitScalar(*DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar) error - VisitArray(*DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray) error - VisitUnsupported(*DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported) error +type DocFormsGet200ResponseFieldsItemSignatureValueEntryVisitor interface { + VisitNone(*DocFormsGet200ResponseFieldsItemSignatureValueEntryNone) error + VisitScalar(*DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar) error + VisitArray(*DocFormsGet200ResponseFieldsItemSignatureValueEntryArray) error + VisitUnsupported(*DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported) error } -func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry) Accept(visitor DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryVisitor) error { +func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntry) Accept(visitor DocFormsGet200ResponseFieldsItemSignatureValueEntryVisitor) error { if d.None != nil { return visitor.VisitNone(d.None) } @@ -121845,7 +140063,7 @@ func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry) Accept(visitor return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry) validate() error { +func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntry) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -121889,10 +140107,10 @@ func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry) validate() erro } var ( - docFormsGet200ResponseFieldsItemRadioDefaultValueEntryArrayFieldValues = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemSignatureValueEntryArrayFieldValues = big.NewInt(1 << 0) ) -type DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray struct { +type DocFormsGet200ResponseFieldsItemSignatureValueEntryArray struct { Values []string `json:"values" url:"values"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -121902,21 +140120,21 @@ type DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray) GetValues() []string { +func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryArray) GetValues() []string { if d == nil { return nil } return d.Values } -func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryArray) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryArray) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -121925,18 +140143,18 @@ func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray) require(fi // SetValues sets the Values field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray) SetValues(values []string) { +func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryArray) SetValues(values []string) { d.Values = values - d.require(docFormsGet200ResponseFieldsItemRadioDefaultValueEntryArrayFieldValues) + d.require(docFormsGet200ResponseFieldsItemSignatureValueEntryArrayFieldValues) } -func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray +func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryArray) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemSignatureValueEntryArray var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray(value) + *d = DocFormsGet200ResponseFieldsItemSignatureValueEntryArray(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -121946,8 +140164,8 @@ func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray) UnmarshalJ return nil } -func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray +func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryArray) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemSignatureValueEntryArray var marshaler = struct { embed }{ @@ -121957,7 +140175,7 @@ func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray) MarshalJSO return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray) String() string { +func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryArray) String() string { if d == nil { return "" } @@ -121972,7 +140190,7 @@ func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray) String() s return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone struct { +type DocFormsGet200ResponseFieldsItemSignatureValueEntryNone struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -121981,27 +140199,27 @@ type DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryNone) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryNone) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone +func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryNone) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemSignatureValueEntryNone var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone(value) + *d = DocFormsGet200ResponseFieldsItemSignatureValueEntryNone(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -122011,8 +140229,8 @@ func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone) UnmarshalJS return nil } -func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone +func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryNone) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemSignatureValueEntryNone var marshaler = struct { embed }{ @@ -122022,7 +140240,7 @@ func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone) MarshalJSON return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone) String() string { +func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryNone) String() string { if d == nil { return "" } @@ -122038,10 +140256,10 @@ func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone) String() st } var ( - docFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalarFieldValue = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemSignatureValueEntryScalarFieldValue = big.NewInt(1 << 0) ) -type DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar struct { +type DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar struct { Value string `json:"value" url:"value"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -122051,21 +140269,21 @@ type DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar) GetValue() string { +func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar) GetValue() string { if d == nil { return "" } return d.Value } -func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -122074,18 +140292,18 @@ func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar) require(f // SetValue sets the Value field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar) SetValue(value string) { +func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar) SetValue(value string) { d.Value = value - d.require(docFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalarFieldValue) + d.require(docFormsGet200ResponseFieldsItemSignatureValueEntryScalarFieldValue) } -func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar +func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar(value) + *d = DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -122095,8 +140313,8 @@ func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar) Unmarshal return nil } -func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar +func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar var marshaler = struct { embed }{ @@ -122106,7 +140324,7 @@ func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar) MarshalJS return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar) String() string { +func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar) String() string { if d == nil { return "" } @@ -122121,7 +140339,7 @@ func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar) String() return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported struct { +type DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -122130,27 +140348,27 @@ type DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported +func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported(value) + *d = DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -122160,8 +140378,8 @@ func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported) Unma return nil } -func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported +func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported var marshaler = struct { embed }{ @@ -122171,7 +140389,7 @@ func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported) Mars return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported) String() string { +func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported) String() string { if d == nil { return "" } @@ -122187,17 +140405,13 @@ func (d *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported) Stri } var ( - docFormsGet200ResponseFieldsItemRadioFlagsFieldReadOnly = big.NewInt(1 << 0) - docFormsGet200ResponseFieldsItemRadioFlagsFieldRequired = big.NewInt(1 << 1) - docFormsGet200ResponseFieldsItemRadioFlagsFieldNoExport = big.NewInt(1 << 2) - docFormsGet200ResponseFieldsItemRadioFlagsFieldRaw = big.NewInt(1 << 3) + docFormsGet200ResponseFieldsItemSignatureWidgetsItemFieldAnnotObjectNumber = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemSignatureWidgetsItemFieldPageObjectNumber = big.NewInt(1 << 1) ) -type DocFormsGet200ResponseFieldsItemRadioFlags struct { - ReadOnly bool `json:"readOnly" url:"readOnly"` - Required bool `json:"required" url:"required"` - NoExport bool `json:"noExport" url:"noExport"` - Raw int `json:"raw" url:"raw"` +type DocFormsGet200ResponseFieldsItemSignatureWidgetsItem struct { + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -122206,83 +140420,55 @@ type DocFormsGet200ResponseFieldsItemRadioFlags struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemRadioFlags) GetReadOnly() bool { - if d == nil { - return false - } - return d.ReadOnly -} - -func (d *DocFormsGet200ResponseFieldsItemRadioFlags) GetRequired() bool { - if d == nil { - return false - } - return d.Required -} - -func (d *DocFormsGet200ResponseFieldsItemRadioFlags) GetNoExport() bool { +func (d *DocFormsGet200ResponseFieldsItemSignatureWidgetsItem) GetAnnotObjectNumber() int { if d == nil { - return false + return 0 } - return d.NoExport + return d.AnnotObjectNumber } -func (d *DocFormsGet200ResponseFieldsItemRadioFlags) GetRaw() int { +func (d *DocFormsGet200ResponseFieldsItemSignatureWidgetsItem) GetPageObjectNumber() int { if d == nil { return 0 } - return d.Raw + return d.PageObjectNumber } -func (d *DocFormsGet200ResponseFieldsItemRadioFlags) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemSignatureWidgetsItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemRadioFlags) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemSignatureWidgetsItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetReadOnly sets the ReadOnly field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemRadioFlags) SetReadOnly(readOnly bool) { - d.ReadOnly = readOnly - d.require(docFormsGet200ResponseFieldsItemRadioFlagsFieldReadOnly) -} - -// SetRequired sets the Required field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemRadioFlags) SetRequired(required bool) { - d.Required = required - d.require(docFormsGet200ResponseFieldsItemRadioFlagsFieldRequired) -} - -// SetNoExport sets the NoExport field and marks it as non-optional; +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemRadioFlags) SetNoExport(noExport bool) { - d.NoExport = noExport - d.require(docFormsGet200ResponseFieldsItemRadioFlagsFieldNoExport) +func (d *DocFormsGet200ResponseFieldsItemSignatureWidgetsItem) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docFormsGet200ResponseFieldsItemSignatureWidgetsItemFieldAnnotObjectNumber) } -// SetRaw sets the Raw field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemRadioFlags) SetRaw(raw int) { - d.Raw = raw - d.require(docFormsGet200ResponseFieldsItemRadioFlagsFieldRaw) +func (d *DocFormsGet200ResponseFieldsItemSignatureWidgetsItem) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docFormsGet200ResponseFieldsItemSignatureWidgetsItemFieldPageObjectNumber) } -func (d *DocFormsGet200ResponseFieldsItemRadioFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemRadioFlags +func (d *DocFormsGet200ResponseFieldsItemSignatureWidgetsItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemSignatureWidgetsItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemRadioFlags(value) + *d = DocFormsGet200ResponseFieldsItemSignatureWidgetsItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -122292,8 +140478,8 @@ func (d *DocFormsGet200ResponseFieldsItemRadioFlags) UnmarshalJSON(data []byte) return nil } -func (d *DocFormsGet200ResponseFieldsItemRadioFlags) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemRadioFlags +func (d *DocFormsGet200ResponseFieldsItemSignatureWidgetsItem) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemSignatureWidgetsItem var marshaler = struct { embed }{ @@ -122303,7 +140489,7 @@ func (d *DocFormsGet200ResponseFieldsItemRadioFlags) MarshalJSON() ([]byte, erro return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemRadioFlags) String() string { +func (d *DocFormsGet200ResponseFieldsItemSignatureWidgetsItem) String() string { if d == nil { return "" } @@ -122318,287 +140504,311 @@ func (d *DocFormsGet200ResponseFieldsItemRadioFlags) String() string { return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemRadioOrigin string - -const ( - DocFormsGet200ResponseFieldsItemRadioOriginAcroform DocFormsGet200ResponseFieldsItemRadioOrigin = "acroform" - DocFormsGet200ResponseFieldsItemRadioOriginRecovered DocFormsGet200ResponseFieldsItemRadioOrigin = "recovered" +var ( + docFormsGet200ResponseFieldsItemTextFieldRef = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemTextFieldFieldObjectNumber = big.NewInt(1 << 1) + docFormsGet200ResponseFieldsItemTextFieldName = big.NewInt(1 << 2) + docFormsGet200ResponseFieldsItemTextFieldOrigin = big.NewInt(1 << 3) + docFormsGet200ResponseFieldsItemTextFieldFlags = big.NewInt(1 << 4) + docFormsGet200ResponseFieldsItemTextFieldAlternateName = big.NewInt(1 << 5) + docFormsGet200ResponseFieldsItemTextFieldMappingName = big.NewInt(1 << 6) + docFormsGet200ResponseFieldsItemTextFieldValueEntry = big.NewInt(1 << 7) + docFormsGet200ResponseFieldsItemTextFieldDefaultValueEntry = big.NewInt(1 << 8) + docFormsGet200ResponseFieldsItemTextFieldActions = big.NewInt(1 << 9) + docFormsGet200ResponseFieldsItemTextFieldWidgets = big.NewInt(1 << 10) + docFormsGet200ResponseFieldsItemTextFieldValue = big.NewInt(1 << 11) + docFormsGet200ResponseFieldsItemTextFieldDefaultValue = big.NewInt(1 << 12) + docFormsGet200ResponseFieldsItemTextFieldMaxLength = big.NewInt(1 << 13) + docFormsGet200ResponseFieldsItemTextFieldMultiline = big.NewInt(1 << 14) + docFormsGet200ResponseFieldsItemTextFieldPassword = big.NewInt(1 << 15) + docFormsGet200ResponseFieldsItemTextFieldComb = big.NewInt(1 << 16) ) -func NewDocFormsGet200ResponseFieldsItemRadioOriginFromString(s string) (DocFormsGet200ResponseFieldsItemRadioOrigin, error) { - switch s { - case "acroform": - return DocFormsGet200ResponseFieldsItemRadioOriginAcroform, nil - case "recovered": - return DocFormsGet200ResponseFieldsItemRadioOriginRecovered, nil - } - var t DocFormsGet200ResponseFieldsItemRadioOrigin - return "", fmt.Errorf("%s is not a valid %T", s, t) +type DocFormsGet200ResponseFieldsItemText struct { + Ref *DocFormsGet200ResponseFieldsItemTextRef `json:"ref" url:"ref"` + FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` + Name string `json:"name" url:"name"` + Origin DocFormsGet200ResponseFieldsItemTextOrigin `json:"origin" url:"origin"` + Flags *DocFormsGet200ResponseFieldsItemTextFlags `json:"flags" url:"flags"` + AlternateName *string `json:"alternateName,omitempty" url:"alternateName,omitempty"` + MappingName *string `json:"mappingName,omitempty" url:"mappingName,omitempty"` + ValueEntry *DocFormsGet200ResponseFieldsItemTextValueEntry `json:"valueEntry" url:"valueEntry"` + DefaultValueEntry *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry `json:"defaultValueEntry" url:"defaultValueEntry"` + Actions *PdfFieldActions `json:"actions,omitempty" url:"actions,omitempty"` + Widgets []*DocFormsGet200ResponseFieldsItemTextWidgetsItem `json:"widgets" url:"widgets"` + Value string `json:"value" url:"value"` + DefaultValue string `json:"defaultValue" url:"defaultValue"` + MaxLength *int `json:"maxLength,omitempty" url:"maxLength,omitempty"` + Multiline bool `json:"multiline" url:"multiline"` + Password bool `json:"password" url:"password"` + Comb bool `json:"comb" url:"comb"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d DocFormsGet200ResponseFieldsItemRadioOrigin) Ptr() *DocFormsGet200ResponseFieldsItemRadioOrigin { - return &d +func (d *DocFormsGet200ResponseFieldsItemText) GetRef() *DocFormsGet200ResponseFieldsItemTextRef { + if d == nil { + return nil + } + return d.Ref } -type DocFormsGet200ResponseFieldsItemRadioRef struct { - Kind string - ObjectNumber *DocFormsGet200ResponseFieldsItemRadioRefObjectNumber - Fqn *DocFormsGet200ResponseFieldsItemRadioRefFqn +func (d *DocFormsGet200ResponseFieldsItemText) GetFieldObjectNumber() int { + if d == nil { + return 0 + } + return d.FieldObjectNumber +} - rawJSON json.RawMessage +func (d *DocFormsGet200ResponseFieldsItemText) GetName() string { + if d == nil { + return "" + } + return d.Name } -func (d *DocFormsGet200ResponseFieldsItemRadioRef) GetKind() string { +func (d *DocFormsGet200ResponseFieldsItemText) GetOrigin() DocFormsGet200ResponseFieldsItemTextOrigin { if d == nil { return "" } - return d.Kind + return d.Origin } -func (d *DocFormsGet200ResponseFieldsItemRadioRef) GetObjectNumber() *DocFormsGet200ResponseFieldsItemRadioRefObjectNumber { +func (d *DocFormsGet200ResponseFieldsItemText) GetFlags() *DocFormsGet200ResponseFieldsItemTextFlags { if d == nil { return nil } - return d.ObjectNumber + return d.Flags } -func (d *DocFormsGet200ResponseFieldsItemRadioRef) GetFqn() *DocFormsGet200ResponseFieldsItemRadioRefFqn { +func (d *DocFormsGet200ResponseFieldsItemText) GetAlternateName() *string { if d == nil { return nil } - return d.Fqn + return d.AlternateName } -func (d *DocFormsGet200ResponseFieldsItemRadioRef) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocFormsGet200ResponseFieldsItemRadioRefObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "fqn": - value := new(DocFormsGet200ResponseFieldsItemRadioRefFqn) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Fqn = value +func (d *DocFormsGet200ResponseFieldsItemText) GetMappingName() *string { + if d == nil { + return nil } - d.rawJSON = json.RawMessage(data) - return nil + return d.MappingName } -func (d DocFormsGet200ResponseFieldsItemRadioRef) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Fqn != nil { - return internal.MarshalJSONWithExtraProperty(d.Fqn, "kind", "fqn") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil +func (d *DocFormsGet200ResponseFieldsItemText) GetValueEntry() *DocFormsGet200ResponseFieldsItemTextValueEntry { + if d == nil { + return nil } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) + return d.ValueEntry } -type DocFormsGet200ResponseFieldsItemRadioRefVisitor interface { - VisitObjectNumber(*DocFormsGet200ResponseFieldsItemRadioRefObjectNumber) error - VisitFqn(*DocFormsGet200ResponseFieldsItemRadioRefFqn) error +func (d *DocFormsGet200ResponseFieldsItemText) GetDefaultValueEntry() *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry { + if d == nil { + return nil + } + return d.DefaultValueEntry } -func (d *DocFormsGet200ResponseFieldsItemRadioRef) Accept(visitor DocFormsGet200ResponseFieldsItemRadioRefVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) - } - if d.Fqn != nil { - return visitor.VisitFqn(d.Fqn) +func (d *DocFormsGet200ResponseFieldsItemText) GetActions() *PdfFieldActions { + if d == nil { + return nil } - return fmt.Errorf("type %T does not define a non-empty union type", d) + return d.Actions } -func (d *DocFormsGet200ResponseFieldsItemRadioRef) validate() error { +func (d *DocFormsGet200ResponseFieldsItemText) GetWidgets() []*DocFormsGet200ResponseFieldsItemTextWidgetsItem { if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Fqn != nil { - fields = append(fields, "fqn") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + return nil } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } + return d.Widgets +} + +func (d *DocFormsGet200ResponseFieldsItemText) GetValue() string { + if d == nil { + return "" } - return nil + return d.Value } -var ( - docFormsGet200ResponseFieldsItemRadioRefFqnFieldName = big.NewInt(1 << 0) -) +func (d *DocFormsGet200ResponseFieldsItemText) GetDefaultValue() string { + if d == nil { + return "" + } + return d.DefaultValue +} -type DocFormsGet200ResponseFieldsItemRadioRefFqn struct { - Name string `json:"name" url:"name"` +func (d *DocFormsGet200ResponseFieldsItemText) GetMaxLength() *int { + if d == nil { + return nil + } + return d.MaxLength +} - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +func (d *DocFormsGet200ResponseFieldsItemText) GetMultiline() bool { + if d == nil { + return false + } + return d.Multiline +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocFormsGet200ResponseFieldsItemText) GetPassword() bool { + if d == nil { + return false + } + return d.Password } -func (d *DocFormsGet200ResponseFieldsItemRadioRefFqn) GetName() string { +func (d *DocFormsGet200ResponseFieldsItemText) GetComb() bool { if d == nil { - return "" + return false } - return d.Name + return d.Comb } -func (d *DocFormsGet200ResponseFieldsItemRadioRefFqn) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemText) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemRadioRefFqn) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemText) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } +// SetRef sets the Ref field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemText) SetRef(ref *DocFormsGet200ResponseFieldsItemTextRef) { + d.Ref = ref + d.require(docFormsGet200ResponseFieldsItemTextFieldRef) +} + +// SetFieldObjectNumber sets the FieldObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemText) SetFieldObjectNumber(fieldObjectNumber int) { + d.FieldObjectNumber = fieldObjectNumber + d.require(docFormsGet200ResponseFieldsItemTextFieldFieldObjectNumber) +} + // SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemRadioRefFqn) SetName(name string) { +func (d *DocFormsGet200ResponseFieldsItemText) SetName(name string) { d.Name = name - d.require(docFormsGet200ResponseFieldsItemRadioRefFqnFieldName) + d.require(docFormsGet200ResponseFieldsItemTextFieldName) } -func (d *DocFormsGet200ResponseFieldsItemRadioRefFqn) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemRadioRefFqn - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocFormsGet200ResponseFieldsItemRadioRefFqn(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil +// SetOrigin sets the Origin field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemText) SetOrigin(origin DocFormsGet200ResponseFieldsItemTextOrigin) { + d.Origin = origin + d.require(docFormsGet200ResponseFieldsItemTextFieldOrigin) } -func (d *DocFormsGet200ResponseFieldsItemRadioRefFqn) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemRadioRefFqn - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) +// SetFlags sets the Flags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemText) SetFlags(flags *DocFormsGet200ResponseFieldsItemTextFlags) { + d.Flags = flags + d.require(docFormsGet200ResponseFieldsItemTextFieldFlags) } -func (d *DocFormsGet200ResponseFieldsItemRadioRefFqn) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) +// SetAlternateName sets the AlternateName field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemText) SetAlternateName(alternateName *string) { + d.AlternateName = alternateName + d.require(docFormsGet200ResponseFieldsItemTextFieldAlternateName) } -var ( - docFormsGet200ResponseFieldsItemRadioRefObjectNumberFieldFieldObjectNumber = big.NewInt(1 << 0) -) +// SetMappingName sets the MappingName field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemText) SetMappingName(mappingName *string) { + d.MappingName = mappingName + d.require(docFormsGet200ResponseFieldsItemTextFieldMappingName) +} -type DocFormsGet200ResponseFieldsItemRadioRefObjectNumber struct { - FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` +// SetValueEntry sets the ValueEntry field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemText) SetValueEntry(valueEntry *DocFormsGet200ResponseFieldsItemTextValueEntry) { + d.ValueEntry = valueEntry + d.require(docFormsGet200ResponseFieldsItemTextFieldValueEntry) +} - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +// SetDefaultValueEntry sets the DefaultValueEntry field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemText) SetDefaultValueEntry(defaultValueEntry *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry) { + d.DefaultValueEntry = defaultValueEntry + d.require(docFormsGet200ResponseFieldsItemTextFieldDefaultValueEntry) +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +// SetActions sets the Actions field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemText) SetActions(actions *PdfFieldActions) { + d.Actions = actions + d.require(docFormsGet200ResponseFieldsItemTextFieldActions) } -func (d *DocFormsGet200ResponseFieldsItemRadioRefObjectNumber) GetFieldObjectNumber() int { - if d == nil { - return 0 - } - return d.FieldObjectNumber +// SetWidgets sets the Widgets field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemText) SetWidgets(widgets []*DocFormsGet200ResponseFieldsItemTextWidgetsItem) { + d.Widgets = widgets + d.require(docFormsGet200ResponseFieldsItemTextFieldWidgets) } -func (d *DocFormsGet200ResponseFieldsItemRadioRefObjectNumber) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties +// SetValue sets the Value field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemText) SetValue(value string) { + d.Value = value + d.require(docFormsGet200ResponseFieldsItemTextFieldValue) } -func (d *DocFormsGet200ResponseFieldsItemRadioRefObjectNumber) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) +// SetDefaultValue sets the DefaultValue field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemText) SetDefaultValue(defaultValue string) { + d.DefaultValue = defaultValue + d.require(docFormsGet200ResponseFieldsItemTextFieldDefaultValue) } -// SetFieldObjectNumber sets the FieldObjectNumber field and marks it as non-optional; +// SetMaxLength sets the MaxLength field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemRadioRefObjectNumber) SetFieldObjectNumber(fieldObjectNumber int) { - d.FieldObjectNumber = fieldObjectNumber - d.require(docFormsGet200ResponseFieldsItemRadioRefObjectNumberFieldFieldObjectNumber) +func (d *DocFormsGet200ResponseFieldsItemText) SetMaxLength(maxLength *int) { + d.MaxLength = maxLength + d.require(docFormsGet200ResponseFieldsItemTextFieldMaxLength) } -func (d *DocFormsGet200ResponseFieldsItemRadioRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemRadioRefObjectNumber +// SetMultiline sets the Multiline field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemText) SetMultiline(multiline bool) { + d.Multiline = multiline + d.require(docFormsGet200ResponseFieldsItemTextFieldMultiline) +} + +// SetPassword sets the Password field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemText) SetPassword(password bool) { + d.Password = password + d.require(docFormsGet200ResponseFieldsItemTextFieldPassword) +} + +// SetComb sets the Comb field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemText) SetComb(comb bool) { + d.Comb = comb + d.require(docFormsGet200ResponseFieldsItemTextFieldComb) +} + +func (d *DocFormsGet200ResponseFieldsItemText) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemText var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemRadioRefObjectNumber(value) + *d = DocFormsGet200ResponseFieldsItemText(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -122608,8 +140818,8 @@ func (d *DocFormsGet200ResponseFieldsItemRadioRefObjectNumber) UnmarshalJSON(dat return nil } -func (d *DocFormsGet200ResponseFieldsItemRadioRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemRadioRefObjectNumber +func (d *DocFormsGet200ResponseFieldsItemText) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemText var marshaler = struct { embed }{ @@ -122619,7 +140829,7 @@ func (d *DocFormsGet200ResponseFieldsItemRadioRefObjectNumber) MarshalJSON() ([] return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemRadioRefObjectNumber) String() string { +func (d *DocFormsGet200ResponseFieldsItemText) String() string { if d == nil { return "" } @@ -122634,52 +140844,52 @@ func (d *DocFormsGet200ResponseFieldsItemRadioRefObjectNumber) String() string { return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemRadioValueEntry struct { +type DocFormsGet200ResponseFieldsItemTextDefaultValueEntry struct { Kind string - None *DocFormsGet200ResponseFieldsItemRadioValueEntryNone - Scalar *DocFormsGet200ResponseFieldsItemRadioValueEntryScalar - Array *DocFormsGet200ResponseFieldsItemRadioValueEntryArray - Unsupported *DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported + None *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone + Scalar *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar + Array *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray + Unsupported *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemRadioValueEntry) GetKind() string { +func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocFormsGet200ResponseFieldsItemRadioValueEntry) GetNone() *DocFormsGet200ResponseFieldsItemRadioValueEntryNone { +func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry) GetNone() *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone { if d == nil { return nil } return d.None } -func (d *DocFormsGet200ResponseFieldsItemRadioValueEntry) GetScalar() *DocFormsGet200ResponseFieldsItemRadioValueEntryScalar { +func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry) GetScalar() *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar { if d == nil { return nil } return d.Scalar } -func (d *DocFormsGet200ResponseFieldsItemRadioValueEntry) GetArray() *DocFormsGet200ResponseFieldsItemRadioValueEntryArray { +func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry) GetArray() *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray { if d == nil { return nil } return d.Array } -func (d *DocFormsGet200ResponseFieldsItemRadioValueEntry) GetUnsupported() *DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported { +func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry) GetUnsupported() *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported { if d == nil { return nil } return d.Unsupported } -func (d *DocFormsGet200ResponseFieldsItemRadioValueEntry) UnmarshalJSON(data []byte) error { +func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -122692,25 +140902,25 @@ func (d *DocFormsGet200ResponseFieldsItemRadioValueEntry) UnmarshalJSON(data []b } switch unmarshaler.Kind { case "none": - value := new(DocFormsGet200ResponseFieldsItemRadioValueEntryNone) + value := new(DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone) if err := json.Unmarshal(data, &value); err != nil { return err } d.None = value case "scalar": - value := new(DocFormsGet200ResponseFieldsItemRadioValueEntryScalar) + value := new(DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar) if err := json.Unmarshal(data, &value); err != nil { return err } d.Scalar = value case "array": - value := new(DocFormsGet200ResponseFieldsItemRadioValueEntryArray) + value := new(DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray) if err := json.Unmarshal(data, &value); err != nil { return err } d.Array = value case "unsupported": - value := new(DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported) + value := new(DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -122720,7 +140930,7 @@ func (d *DocFormsGet200ResponseFieldsItemRadioValueEntry) UnmarshalJSON(data []b return nil } -func (d DocFormsGet200ResponseFieldsItemRadioValueEntry) MarshalJSON() ([]byte, error) { +func (d DocFormsGet200ResponseFieldsItemTextDefaultValueEntry) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -122742,14 +140952,14 @@ func (d DocFormsGet200ResponseFieldsItemRadioValueEntry) MarshalJSON() ([]byte, return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocFormsGet200ResponseFieldsItemRadioValueEntryVisitor interface { - VisitNone(*DocFormsGet200ResponseFieldsItemRadioValueEntryNone) error - VisitScalar(*DocFormsGet200ResponseFieldsItemRadioValueEntryScalar) error - VisitArray(*DocFormsGet200ResponseFieldsItemRadioValueEntryArray) error - VisitUnsupported(*DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported) error +type DocFormsGet200ResponseFieldsItemTextDefaultValueEntryVisitor interface { + VisitNone(*DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone) error + VisitScalar(*DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar) error + VisitArray(*DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray) error + VisitUnsupported(*DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported) error } -func (d *DocFormsGet200ResponseFieldsItemRadioValueEntry) Accept(visitor DocFormsGet200ResponseFieldsItemRadioValueEntryVisitor) error { +func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry) Accept(visitor DocFormsGet200ResponseFieldsItemTextDefaultValueEntryVisitor) error { if d.None != nil { return visitor.VisitNone(d.None) } @@ -122765,7 +140975,7 @@ func (d *DocFormsGet200ResponseFieldsItemRadioValueEntry) Accept(visitor DocForm return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocFormsGet200ResponseFieldsItemRadioValueEntry) validate() error { +func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -122809,10 +141019,10 @@ func (d *DocFormsGet200ResponseFieldsItemRadioValueEntry) validate() error { } var ( - docFormsGet200ResponseFieldsItemRadioValueEntryArrayFieldValues = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemTextDefaultValueEntryArrayFieldValues = big.NewInt(1 << 0) ) -type DocFormsGet200ResponseFieldsItemRadioValueEntryArray struct { +type DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray struct { Values []string `json:"values" url:"values"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -122822,21 +141032,21 @@ type DocFormsGet200ResponseFieldsItemRadioValueEntryArray struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryArray) GetValues() []string { +func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray) GetValues() []string { if d == nil { return nil } return d.Values } -func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryArray) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryArray) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -122845,18 +141055,18 @@ func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryArray) require(field *bi // SetValues sets the Values field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryArray) SetValues(values []string) { +func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray) SetValues(values []string) { d.Values = values - d.require(docFormsGet200ResponseFieldsItemRadioValueEntryArrayFieldValues) + d.require(docFormsGet200ResponseFieldsItemTextDefaultValueEntryArrayFieldValues) } -func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryArray) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemRadioValueEntryArray +func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemRadioValueEntryArray(value) + *d = DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -122866,8 +141076,8 @@ func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryArray) UnmarshalJSON(dat return nil } -func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryArray) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemRadioValueEntryArray +func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray var marshaler = struct { embed }{ @@ -122877,7 +141087,7 @@ func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryArray) MarshalJSON() ([] return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryArray) String() string { +func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray) String() string { if d == nil { return "" } @@ -122892,7 +141102,7 @@ func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryArray) String() string { return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemRadioValueEntryNone struct { +type DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -122901,27 +141111,27 @@ type DocFormsGet200ResponseFieldsItemRadioValueEntryNone struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryNone) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryNone) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryNone) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemRadioValueEntryNone +func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemRadioValueEntryNone(value) + *d = DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -122931,8 +141141,8 @@ func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryNone) UnmarshalJSON(data return nil } -func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryNone) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemRadioValueEntryNone +func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone var marshaler = struct { embed }{ @@ -122942,7 +141152,7 @@ func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryNone) MarshalJSON() ([]b return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryNone) String() string { +func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone) String() string { if d == nil { return "" } @@ -122958,10 +141168,10 @@ func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryNone) String() string { } var ( - docFormsGet200ResponseFieldsItemRadioValueEntryScalarFieldValue = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemTextDefaultValueEntryScalarFieldValue = big.NewInt(1 << 0) ) -type DocFormsGet200ResponseFieldsItemRadioValueEntryScalar struct { +type DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar struct { Value string `json:"value" url:"value"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -122971,21 +141181,21 @@ type DocFormsGet200ResponseFieldsItemRadioValueEntryScalar struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryScalar) GetValue() string { +func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar) GetValue() string { if d == nil { return "" } return d.Value } -func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryScalar) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryScalar) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -122994,18 +141204,18 @@ func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryScalar) require(field *b // SetValue sets the Value field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryScalar) SetValue(value string) { +func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar) SetValue(value string) { d.Value = value - d.require(docFormsGet200ResponseFieldsItemRadioValueEntryScalarFieldValue) + d.require(docFormsGet200ResponseFieldsItemTextDefaultValueEntryScalarFieldValue) } -func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryScalar) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemRadioValueEntryScalar +func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemRadioValueEntryScalar(value) + *d = DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -123015,8 +141225,8 @@ func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryScalar) UnmarshalJSON(da return nil } -func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryScalar) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemRadioValueEntryScalar +func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar var marshaler = struct { embed }{ @@ -123026,7 +141236,7 @@ func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryScalar) MarshalJSON() ([ return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryScalar) String() string { +func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar) String() string { if d == nil { return "" } @@ -123041,7 +141251,7 @@ func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryScalar) String() string return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported struct { +type DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -123050,27 +141260,27 @@ type DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported +func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported(value) + *d = DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -123080,8 +141290,8 @@ func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported) UnmarshalJS return nil } -func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported +func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported var marshaler = struct { embed }{ @@ -123091,7 +141301,7 @@ func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported) MarshalJSON return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported) String() string { +func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported) String() string { if d == nil { return "" } @@ -123107,19 +141317,17 @@ func (d *DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported) String() st } var ( - docFormsGet200ResponseFieldsItemRadioWidgetsItemFieldAnnotObjectNumber = big.NewInt(1 << 0) - docFormsGet200ResponseFieldsItemRadioWidgetsItemFieldPageObjectNumber = big.NewInt(1 << 1) - docFormsGet200ResponseFieldsItemRadioWidgetsItemFieldOnState = big.NewInt(1 << 2) - docFormsGet200ResponseFieldsItemRadioWidgetsItemFieldExportValue = big.NewInt(1 << 3) - docFormsGet200ResponseFieldsItemRadioWidgetsItemFieldChecked = big.NewInt(1 << 4) + docFormsGet200ResponseFieldsItemTextFlagsFieldReadOnly = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemTextFlagsFieldRequired = big.NewInt(1 << 1) + docFormsGet200ResponseFieldsItemTextFlagsFieldNoExport = big.NewInt(1 << 2) + docFormsGet200ResponseFieldsItemTextFlagsFieldRaw = big.NewInt(1 << 3) ) -type DocFormsGet200ResponseFieldsItemRadioWidgetsItem struct { - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - OnState string `json:"onState" url:"onState"` - ExportValue string `json:"exportValue" url:"exportValue"` - Checked bool `json:"checked" url:"checked"` +type DocFormsGet200ResponseFieldsItemTextFlags struct { + ReadOnly bool `json:"readOnly" url:"readOnly"` + Required bool `json:"required" url:"required"` + NoExport bool `json:"noExport" url:"noExport"` + Raw int `json:"raw" url:"raw"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -123128,97 +141336,83 @@ type DocFormsGet200ResponseFieldsItemRadioWidgetsItem struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemRadioWidgetsItem) GetAnnotObjectNumber() int { - if d == nil { - return 0 - } - return d.AnnotObjectNumber -} - -func (d *DocFormsGet200ResponseFieldsItemRadioWidgetsItem) GetPageObjectNumber() int { +func (d *DocFormsGet200ResponseFieldsItemTextFlags) GetReadOnly() bool { if d == nil { - return 0 + return false } - return d.PageObjectNumber + return d.ReadOnly } -func (d *DocFormsGet200ResponseFieldsItemRadioWidgetsItem) GetOnState() string { +func (d *DocFormsGet200ResponseFieldsItemTextFlags) GetRequired() bool { if d == nil { - return "" + return false } - return d.OnState + return d.Required } -func (d *DocFormsGet200ResponseFieldsItemRadioWidgetsItem) GetExportValue() string { +func (d *DocFormsGet200ResponseFieldsItemTextFlags) GetNoExport() bool { if d == nil { - return "" + return false } - return d.ExportValue + return d.NoExport } -func (d *DocFormsGet200ResponseFieldsItemRadioWidgetsItem) GetChecked() bool { +func (d *DocFormsGet200ResponseFieldsItemTextFlags) GetRaw() int { if d == nil { - return false + return 0 } - return d.Checked + return d.Raw } -func (d *DocFormsGet200ResponseFieldsItemRadioWidgetsItem) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemTextFlags) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemRadioWidgetsItem) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemTextFlags) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemRadioWidgetsItem) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docFormsGet200ResponseFieldsItemRadioWidgetsItemFieldAnnotObjectNumber) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetReadOnly sets the ReadOnly field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemRadioWidgetsItem) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docFormsGet200ResponseFieldsItemRadioWidgetsItemFieldPageObjectNumber) +func (d *DocFormsGet200ResponseFieldsItemTextFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + d.require(docFormsGet200ResponseFieldsItemTextFlagsFieldReadOnly) } -// SetOnState sets the OnState field and marks it as non-optional; +// SetRequired sets the Required field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemRadioWidgetsItem) SetOnState(onState string) { - d.OnState = onState - d.require(docFormsGet200ResponseFieldsItemRadioWidgetsItemFieldOnState) +func (d *DocFormsGet200ResponseFieldsItemTextFlags) SetRequired(required bool) { + d.Required = required + d.require(docFormsGet200ResponseFieldsItemTextFlagsFieldRequired) } -// SetExportValue sets the ExportValue field and marks it as non-optional; +// SetNoExport sets the NoExport field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemRadioWidgetsItem) SetExportValue(exportValue string) { - d.ExportValue = exportValue - d.require(docFormsGet200ResponseFieldsItemRadioWidgetsItemFieldExportValue) +func (d *DocFormsGet200ResponseFieldsItemTextFlags) SetNoExport(noExport bool) { + d.NoExport = noExport + d.require(docFormsGet200ResponseFieldsItemTextFlagsFieldNoExport) } -// SetChecked sets the Checked field and marks it as non-optional; +// SetRaw sets the Raw field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemRadioWidgetsItem) SetChecked(checked bool) { - d.Checked = checked - d.require(docFormsGet200ResponseFieldsItemRadioWidgetsItemFieldChecked) +func (d *DocFormsGet200ResponseFieldsItemTextFlags) SetRaw(raw int) { + d.Raw = raw + d.require(docFormsGet200ResponseFieldsItemTextFlagsFieldRaw) } -func (d *DocFormsGet200ResponseFieldsItemRadioWidgetsItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemRadioWidgetsItem +func (d *DocFormsGet200ResponseFieldsItemTextFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemTextFlags var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemRadioWidgetsItem(value) + *d = DocFormsGet200ResponseFieldsItemTextFlags(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -123228,8 +141422,8 @@ func (d *DocFormsGet200ResponseFieldsItemRadioWidgetsItem) UnmarshalJSON(data [] return nil } -func (d *DocFormsGet200ResponseFieldsItemRadioWidgetsItem) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemRadioWidgetsItem +func (d *DocFormsGet200ResponseFieldsItemTextFlags) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemTextFlags var marshaler = struct { embed }{ @@ -123239,7 +141433,7 @@ func (d *DocFormsGet200ResponseFieldsItemRadioWidgetsItem) MarshalJSON() ([]byte return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemRadioWidgetsItem) String() string { +func (d *DocFormsGet200ResponseFieldsItemTextFlags) String() string { if d == nil { return "" } @@ -123254,215 +141448,287 @@ func (d *DocFormsGet200ResponseFieldsItemRadioWidgetsItem) String() string { return fmt.Sprintf("%#v", d) } -var ( - docFormsGet200ResponseFieldsItemSignatureFieldRef = big.NewInt(1 << 0) - docFormsGet200ResponseFieldsItemSignatureFieldFieldObjectNumber = big.NewInt(1 << 1) - docFormsGet200ResponseFieldsItemSignatureFieldName = big.NewInt(1 << 2) - docFormsGet200ResponseFieldsItemSignatureFieldOrigin = big.NewInt(1 << 3) - docFormsGet200ResponseFieldsItemSignatureFieldFlags = big.NewInt(1 << 4) - docFormsGet200ResponseFieldsItemSignatureFieldAlternateName = big.NewInt(1 << 5) - docFormsGet200ResponseFieldsItemSignatureFieldMappingName = big.NewInt(1 << 6) - docFormsGet200ResponseFieldsItemSignatureFieldValueEntry = big.NewInt(1 << 7) - docFormsGet200ResponseFieldsItemSignatureFieldDefaultValueEntry = big.NewInt(1 << 8) - docFormsGet200ResponseFieldsItemSignatureFieldActions = big.NewInt(1 << 9) - docFormsGet200ResponseFieldsItemSignatureFieldWidgets = big.NewInt(1 << 10) +type DocFormsGet200ResponseFieldsItemTextOrigin string + +const ( + DocFormsGet200ResponseFieldsItemTextOriginAcroform DocFormsGet200ResponseFieldsItemTextOrigin = "acroform" + DocFormsGet200ResponseFieldsItemTextOriginRecovered DocFormsGet200ResponseFieldsItemTextOrigin = "recovered" ) -type DocFormsGet200ResponseFieldsItemSignature struct { - Ref *DocFormsGet200ResponseFieldsItemSignatureRef `json:"ref" url:"ref"` - FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` - Name string `json:"name" url:"name"` - Origin DocFormsGet200ResponseFieldsItemSignatureOrigin `json:"origin" url:"origin"` - Flags *DocFormsGet200ResponseFieldsItemSignatureFlags `json:"flags" url:"flags"` - AlternateName *string `json:"alternateName,omitempty" url:"alternateName,omitempty"` - MappingName *string `json:"mappingName,omitempty" url:"mappingName,omitempty"` - ValueEntry *DocFormsGet200ResponseFieldsItemSignatureValueEntry `json:"valueEntry" url:"valueEntry"` - DefaultValueEntry *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry `json:"defaultValueEntry" url:"defaultValueEntry"` - Actions *PdfFieldActions `json:"actions,omitempty" url:"actions,omitempty"` - Widgets []*DocFormsGet200ResponseFieldsItemSignatureWidgetsItem `json:"widgets" url:"widgets"` +func NewDocFormsGet200ResponseFieldsItemTextOriginFromString(s string) (DocFormsGet200ResponseFieldsItemTextOrigin, error) { + switch s { + case "acroform": + return DocFormsGet200ResponseFieldsItemTextOriginAcroform, nil + case "recovered": + return DocFormsGet200ResponseFieldsItemTextOriginRecovered, nil + } + var t DocFormsGet200ResponseFieldsItemTextOrigin + return "", fmt.Errorf("%s is not a valid %T", s, t) +} - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +func (d DocFormsGet200ResponseFieldsItemTextOrigin) Ptr() *DocFormsGet200ResponseFieldsItemTextOrigin { + return &d +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +type DocFormsGet200ResponseFieldsItemTextRef struct { + Kind string + ObjectNumber *DocFormsGet200ResponseFieldsItemTextRefObjectNumber + Fqn *DocFormsGet200ResponseFieldsItemTextRefFqn + + rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemSignature) GetRef() *DocFormsGet200ResponseFieldsItemSignatureRef { +func (d *DocFormsGet200ResponseFieldsItemTextRef) GetKind() string { if d == nil { - return nil + return "" } - return d.Ref + return d.Kind } -func (d *DocFormsGet200ResponseFieldsItemSignature) GetFieldObjectNumber() int { +func (d *DocFormsGet200ResponseFieldsItemTextRef) GetObjectNumber() *DocFormsGet200ResponseFieldsItemTextRefObjectNumber { if d == nil { - return 0 + return nil } - return d.FieldObjectNumber + return d.ObjectNumber } -func (d *DocFormsGet200ResponseFieldsItemSignature) GetName() string { +func (d *DocFormsGet200ResponseFieldsItemTextRef) GetFqn() *DocFormsGet200ResponseFieldsItemTextRefFqn { if d == nil { - return "" + return nil } - return d.Name + return d.Fqn } -func (d *DocFormsGet200ResponseFieldsItemSignature) GetOrigin() DocFormsGet200ResponseFieldsItemSignatureOrigin { - if d == nil { - return "" +func (d *DocFormsGet200ResponseFieldsItemTextRef) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` } - return d.Origin + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocFormsGet200ResponseFieldsItemTextRefObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "fqn": + value := new(DocFormsGet200ResponseFieldsItemTextRefFqn) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Fqn = value + } + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocFormsGet200ResponseFieldsItemSignature) GetFlags() *DocFormsGet200ResponseFieldsItemSignatureFlags { - if d == nil { - return nil +func (d DocFormsGet200ResponseFieldsItemTextRef) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err } - return d.Flags + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + } + if d.Fqn != nil { + return internal.MarshalJSONWithExtraProperty(d.Fqn, "kind", "fqn") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocFormsGet200ResponseFieldsItemSignature) GetAlternateName() *string { - if d == nil { - return nil +type DocFormsGet200ResponseFieldsItemTextRefVisitor interface { + VisitObjectNumber(*DocFormsGet200ResponseFieldsItemTextRefObjectNumber) error + VisitFqn(*DocFormsGet200ResponseFieldsItemTextRefFqn) error +} + +func (d *DocFormsGet200ResponseFieldsItemTextRef) Accept(visitor DocFormsGet200ResponseFieldsItemTextRefVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) } - return d.AlternateName + if d.Fqn != nil { + return visitor.VisitFqn(d.Fqn) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocFormsGet200ResponseFieldsItemSignature) GetMappingName() *string { +func (d *DocFormsGet200ResponseFieldsItemTextRef) validate() error { if d == nil { - return nil + return fmt.Errorf("type %T is nil", d) } - return d.MappingName + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Fqn != nil { + fields = append(fields, "fqn") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil } -func (d *DocFormsGet200ResponseFieldsItemSignature) GetValueEntry() *DocFormsGet200ResponseFieldsItemSignatureValueEntry { +var ( + docFormsGet200ResponseFieldsItemTextRefFqnFieldName = big.NewInt(1 << 0) +) + +type DocFormsGet200ResponseFieldsItemTextRefFqn struct { + Name string `json:"name" url:"name"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocFormsGet200ResponseFieldsItemTextRefFqn) GetName() string { if d == nil { - return nil + return "" } - return d.ValueEntry + return d.Name } -func (d *DocFormsGet200ResponseFieldsItemSignature) GetDefaultValueEntry() *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry { +func (d *DocFormsGet200ResponseFieldsItemTextRefFqn) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.DefaultValueEntry + return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemSignature) GetActions() *PdfFieldActions { +func (d *DocFormsGet200ResponseFieldsItemTextRefFqn) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetName sets the Name field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemTextRefFqn) SetName(name string) { + d.Name = name + d.require(docFormsGet200ResponseFieldsItemTextRefFqnFieldName) +} + +func (d *DocFormsGet200ResponseFieldsItemTextRefFqn) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemTextRefFqn + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocFormsGet200ResponseFieldsItemTextRefFqn(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocFormsGet200ResponseFieldsItemTextRefFqn) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemTextRefFqn + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocFormsGet200ResponseFieldsItemTextRefFqn) String() string { if d == nil { - return nil + return "" } - return d.Actions + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -func (d *DocFormsGet200ResponseFieldsItemSignature) GetWidgets() []*DocFormsGet200ResponseFieldsItemSignatureWidgetsItem { +var ( + docFormsGet200ResponseFieldsItemTextRefObjectNumberFieldFieldObjectNumber = big.NewInt(1 << 0) +) + +type DocFormsGet200ResponseFieldsItemTextRefObjectNumber struct { + FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocFormsGet200ResponseFieldsItemTextRefObjectNumber) GetFieldObjectNumber() int { if d == nil { - return nil + return 0 } - return d.Widgets + return d.FieldObjectNumber } -func (d *DocFormsGet200ResponseFieldsItemSignature) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemTextRefObjectNumber) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemSignature) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemTextRefObjectNumber) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetRef sets the Ref field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemSignature) SetRef(ref *DocFormsGet200ResponseFieldsItemSignatureRef) { - d.Ref = ref - d.require(docFormsGet200ResponseFieldsItemSignatureFieldRef) -} - // SetFieldObjectNumber sets the FieldObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemSignature) SetFieldObjectNumber(fieldObjectNumber int) { +func (d *DocFormsGet200ResponseFieldsItemTextRefObjectNumber) SetFieldObjectNumber(fieldObjectNumber int) { d.FieldObjectNumber = fieldObjectNumber - d.require(docFormsGet200ResponseFieldsItemSignatureFieldFieldObjectNumber) -} - -// SetName sets the Name field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemSignature) SetName(name string) { - d.Name = name - d.require(docFormsGet200ResponseFieldsItemSignatureFieldName) -} - -// SetOrigin sets the Origin field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemSignature) SetOrigin(origin DocFormsGet200ResponseFieldsItemSignatureOrigin) { - d.Origin = origin - d.require(docFormsGet200ResponseFieldsItemSignatureFieldOrigin) -} - -// SetFlags sets the Flags field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemSignature) SetFlags(flags *DocFormsGet200ResponseFieldsItemSignatureFlags) { - d.Flags = flags - d.require(docFormsGet200ResponseFieldsItemSignatureFieldFlags) -} - -// SetAlternateName sets the AlternateName field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemSignature) SetAlternateName(alternateName *string) { - d.AlternateName = alternateName - d.require(docFormsGet200ResponseFieldsItemSignatureFieldAlternateName) -} - -// SetMappingName sets the MappingName field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemSignature) SetMappingName(mappingName *string) { - d.MappingName = mappingName - d.require(docFormsGet200ResponseFieldsItemSignatureFieldMappingName) -} - -// SetValueEntry sets the ValueEntry field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemSignature) SetValueEntry(valueEntry *DocFormsGet200ResponseFieldsItemSignatureValueEntry) { - d.ValueEntry = valueEntry - d.require(docFormsGet200ResponseFieldsItemSignatureFieldValueEntry) -} - -// SetDefaultValueEntry sets the DefaultValueEntry field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemSignature) SetDefaultValueEntry(defaultValueEntry *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry) { - d.DefaultValueEntry = defaultValueEntry - d.require(docFormsGet200ResponseFieldsItemSignatureFieldDefaultValueEntry) -} - -// SetActions sets the Actions field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemSignature) SetActions(actions *PdfFieldActions) { - d.Actions = actions - d.require(docFormsGet200ResponseFieldsItemSignatureFieldActions) -} - -// SetWidgets sets the Widgets field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemSignature) SetWidgets(widgets []*DocFormsGet200ResponseFieldsItemSignatureWidgetsItem) { - d.Widgets = widgets - d.require(docFormsGet200ResponseFieldsItemSignatureFieldWidgets) + d.require(docFormsGet200ResponseFieldsItemTextRefObjectNumberFieldFieldObjectNumber) } -func (d *DocFormsGet200ResponseFieldsItemSignature) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemSignature +func (d *DocFormsGet200ResponseFieldsItemTextRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemTextRefObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemSignature(value) + *d = DocFormsGet200ResponseFieldsItemTextRefObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -123472,8 +141738,8 @@ func (d *DocFormsGet200ResponseFieldsItemSignature) UnmarshalJSON(data []byte) e return nil } -func (d *DocFormsGet200ResponseFieldsItemSignature) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemSignature +func (d *DocFormsGet200ResponseFieldsItemTextRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemTextRefObjectNumber var marshaler = struct { embed }{ @@ -123483,7 +141749,7 @@ func (d *DocFormsGet200ResponseFieldsItemSignature) MarshalJSON() ([]byte, error return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemSignature) String() string { +func (d *DocFormsGet200ResponseFieldsItemTextRefObjectNumber) String() string { if d == nil { return "" } @@ -123498,52 +141764,52 @@ func (d *DocFormsGet200ResponseFieldsItemSignature) String() string { return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry struct { +type DocFormsGet200ResponseFieldsItemTextValueEntry struct { Kind string - None *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone - Scalar *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar - Array *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray - Unsupported *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported + None *DocFormsGet200ResponseFieldsItemTextValueEntryNone + Scalar *DocFormsGet200ResponseFieldsItemTextValueEntryScalar + Array *DocFormsGet200ResponseFieldsItemTextValueEntryArray + Unsupported *DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry) GetKind() string { +func (d *DocFormsGet200ResponseFieldsItemTextValueEntry) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry) GetNone() *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone { +func (d *DocFormsGet200ResponseFieldsItemTextValueEntry) GetNone() *DocFormsGet200ResponseFieldsItemTextValueEntryNone { if d == nil { return nil } return d.None } -func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry) GetScalar() *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar { +func (d *DocFormsGet200ResponseFieldsItemTextValueEntry) GetScalar() *DocFormsGet200ResponseFieldsItemTextValueEntryScalar { if d == nil { return nil } return d.Scalar } -func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry) GetArray() *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray { +func (d *DocFormsGet200ResponseFieldsItemTextValueEntry) GetArray() *DocFormsGet200ResponseFieldsItemTextValueEntryArray { if d == nil { return nil } return d.Array } -func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry) GetUnsupported() *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported { +func (d *DocFormsGet200ResponseFieldsItemTextValueEntry) GetUnsupported() *DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported { if d == nil { return nil } return d.Unsupported } -func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry) UnmarshalJSON(data []byte) error { +func (d *DocFormsGet200ResponseFieldsItemTextValueEntry) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -123556,25 +141822,25 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry) UnmarshalJS } switch unmarshaler.Kind { case "none": - value := new(DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone) + value := new(DocFormsGet200ResponseFieldsItemTextValueEntryNone) if err := json.Unmarshal(data, &value); err != nil { return err } d.None = value case "scalar": - value := new(DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar) + value := new(DocFormsGet200ResponseFieldsItemTextValueEntryScalar) if err := json.Unmarshal(data, &value); err != nil { return err } d.Scalar = value case "array": - value := new(DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray) + value := new(DocFormsGet200ResponseFieldsItemTextValueEntryArray) if err := json.Unmarshal(data, &value); err != nil { return err } d.Array = value case "unsupported": - value := new(DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported) + value := new(DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -123584,7 +141850,7 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry) UnmarshalJS return nil } -func (d DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry) MarshalJSON() ([]byte, error) { +func (d DocFormsGet200ResponseFieldsItemTextValueEntry) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -123606,14 +141872,14 @@ func (d DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry) MarshalJSON( return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryVisitor interface { - VisitNone(*DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone) error - VisitScalar(*DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar) error - VisitArray(*DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray) error - VisitUnsupported(*DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported) error +type DocFormsGet200ResponseFieldsItemTextValueEntryVisitor interface { + VisitNone(*DocFormsGet200ResponseFieldsItemTextValueEntryNone) error + VisitScalar(*DocFormsGet200ResponseFieldsItemTextValueEntryScalar) error + VisitArray(*DocFormsGet200ResponseFieldsItemTextValueEntryArray) error + VisitUnsupported(*DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported) error } -func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry) Accept(visitor DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryVisitor) error { +func (d *DocFormsGet200ResponseFieldsItemTextValueEntry) Accept(visitor DocFormsGet200ResponseFieldsItemTextValueEntryVisitor) error { if d.None != nil { return visitor.VisitNone(d.None) } @@ -123629,7 +141895,7 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry) Accept(visi return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry) validate() error { +func (d *DocFormsGet200ResponseFieldsItemTextValueEntry) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -123673,10 +141939,10 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry) validate() } var ( - docFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArrayFieldValues = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemTextValueEntryArrayFieldValues = big.NewInt(1 << 0) ) -type DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray struct { +type DocFormsGet200ResponseFieldsItemTextValueEntryArray struct { Values []string `json:"values" url:"values"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -123686,21 +141952,21 @@ type DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray) GetValues() []string { +func (d *DocFormsGet200ResponseFieldsItemTextValueEntryArray) GetValues() []string { if d == nil { return nil } return d.Values } -func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemTextValueEntryArray) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemTextValueEntryArray) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -123709,18 +141975,18 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray) requir // SetValues sets the Values field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray) SetValues(values []string) { +func (d *DocFormsGet200ResponseFieldsItemTextValueEntryArray) SetValues(values []string) { d.Values = values - d.require(docFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArrayFieldValues) + d.require(docFormsGet200ResponseFieldsItemTextValueEntryArrayFieldValues) } -func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray +func (d *DocFormsGet200ResponseFieldsItemTextValueEntryArray) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemTextValueEntryArray var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray(value) + *d = DocFormsGet200ResponseFieldsItemTextValueEntryArray(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -123730,8 +141996,8 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray) Unmars return nil } -func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray +func (d *DocFormsGet200ResponseFieldsItemTextValueEntryArray) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemTextValueEntryArray var marshaler = struct { embed }{ @@ -123741,7 +142007,7 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray) Marsha return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray) String() string { +func (d *DocFormsGet200ResponseFieldsItemTextValueEntryArray) String() string { if d == nil { return "" } @@ -123756,7 +142022,7 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray) String return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone struct { +type DocFormsGet200ResponseFieldsItemTextValueEntryNone struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -123765,27 +142031,27 @@ type DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemTextValueEntryNone) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemTextValueEntryNone) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone +func (d *DocFormsGet200ResponseFieldsItemTextValueEntryNone) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemTextValueEntryNone var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone(value) + *d = DocFormsGet200ResponseFieldsItemTextValueEntryNone(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -123795,8 +142061,8 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone) Unmarsh return nil } -func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone +func (d *DocFormsGet200ResponseFieldsItemTextValueEntryNone) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemTextValueEntryNone var marshaler = struct { embed }{ @@ -123806,7 +142072,7 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone) Marshal return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone) String() string { +func (d *DocFormsGet200ResponseFieldsItemTextValueEntryNone) String() string { if d == nil { return "" } @@ -123822,10 +142088,10 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone) String( } var ( - docFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalarFieldValue = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemTextValueEntryScalarFieldValue = big.NewInt(1 << 0) ) -type DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar struct { +type DocFormsGet200ResponseFieldsItemTextValueEntryScalar struct { Value string `json:"value" url:"value"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -123835,21 +142101,21 @@ type DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar) GetValue() string { +func (d *DocFormsGet200ResponseFieldsItemTextValueEntryScalar) GetValue() string { if d == nil { return "" } return d.Value } -func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemTextValueEntryScalar) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemTextValueEntryScalar) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -123858,215 +142124,18 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar) requi // SetValue sets the Value field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar) SetValue(value string) { +func (d *DocFormsGet200ResponseFieldsItemTextValueEntryScalar) SetValue(value string) { d.Value = value - d.require(docFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalarFieldValue) -} - -func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) -} - -func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) -} - -type DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported struct { - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage -} - -func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties -} - -func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) -} - -func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) -} - -func (d *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) -} - -var ( - docFormsGet200ResponseFieldsItemSignatureFlagsFieldReadOnly = big.NewInt(1 << 0) - docFormsGet200ResponseFieldsItemSignatureFlagsFieldRequired = big.NewInt(1 << 1) - docFormsGet200ResponseFieldsItemSignatureFlagsFieldNoExport = big.NewInt(1 << 2) - docFormsGet200ResponseFieldsItemSignatureFlagsFieldRaw = big.NewInt(1 << 3) -) - -type DocFormsGet200ResponseFieldsItemSignatureFlags struct { - ReadOnly bool `json:"readOnly" url:"readOnly"` - Required bool `json:"required" url:"required"` - NoExport bool `json:"noExport" url:"noExport"` - Raw int `json:"raw" url:"raw"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage -} - -func (d *DocFormsGet200ResponseFieldsItemSignatureFlags) GetReadOnly() bool { - if d == nil { - return false - } - return d.ReadOnly -} - -func (d *DocFormsGet200ResponseFieldsItemSignatureFlags) GetRequired() bool { - if d == nil { - return false - } - return d.Required -} - -func (d *DocFormsGet200ResponseFieldsItemSignatureFlags) GetNoExport() bool { - if d == nil { - return false - } - return d.NoExport -} - -func (d *DocFormsGet200ResponseFieldsItemSignatureFlags) GetRaw() int { - if d == nil { - return 0 - } - return d.Raw -} - -func (d *DocFormsGet200ResponseFieldsItemSignatureFlags) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties -} - -func (d *DocFormsGet200ResponseFieldsItemSignatureFlags) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetReadOnly sets the ReadOnly field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemSignatureFlags) SetReadOnly(readOnly bool) { - d.ReadOnly = readOnly - d.require(docFormsGet200ResponseFieldsItemSignatureFlagsFieldReadOnly) -} - -// SetRequired sets the Required field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemSignatureFlags) SetRequired(required bool) { - d.Required = required - d.require(docFormsGet200ResponseFieldsItemSignatureFlagsFieldRequired) -} - -// SetNoExport sets the NoExport field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemSignatureFlags) SetNoExport(noExport bool) { - d.NoExport = noExport - d.require(docFormsGet200ResponseFieldsItemSignatureFlagsFieldNoExport) -} - -// SetRaw sets the Raw field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemSignatureFlags) SetRaw(raw int) { - d.Raw = raw - d.require(docFormsGet200ResponseFieldsItemSignatureFlagsFieldRaw) + d.require(docFormsGet200ResponseFieldsItemTextValueEntryScalarFieldValue) } -func (d *DocFormsGet200ResponseFieldsItemSignatureFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemSignatureFlags +func (d *DocFormsGet200ResponseFieldsItemTextValueEntryScalar) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemTextValueEntryScalar var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemSignatureFlags(value) + *d = DocFormsGet200ResponseFieldsItemTextValueEntryScalar(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -124076,186 +142145,105 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureFlags) UnmarshalJSON(data []by return nil } -func (d *DocFormsGet200ResponseFieldsItemSignatureFlags) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemSignatureFlags +func (d *DocFormsGet200ResponseFieldsItemTextValueEntryScalar) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemTextValueEntryScalar var marshaler = struct { embed }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) -} - -func (d *DocFormsGet200ResponseFieldsItemSignatureFlags) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) -} - -type DocFormsGet200ResponseFieldsItemSignatureOrigin string - -const ( - DocFormsGet200ResponseFieldsItemSignatureOriginAcroform DocFormsGet200ResponseFieldsItemSignatureOrigin = "acroform" - DocFormsGet200ResponseFieldsItemSignatureOriginRecovered DocFormsGet200ResponseFieldsItemSignatureOrigin = "recovered" -) - -func NewDocFormsGet200ResponseFieldsItemSignatureOriginFromString(s string) (DocFormsGet200ResponseFieldsItemSignatureOrigin, error) { - switch s { - case "acroform": - return DocFormsGet200ResponseFieldsItemSignatureOriginAcroform, nil - case "recovered": - return DocFormsGet200ResponseFieldsItemSignatureOriginRecovered, nil - } - var t DocFormsGet200ResponseFieldsItemSignatureOrigin - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocFormsGet200ResponseFieldsItemSignatureOrigin) Ptr() *DocFormsGet200ResponseFieldsItemSignatureOrigin { - return &d -} - -type DocFormsGet200ResponseFieldsItemSignatureRef struct { - Kind string - ObjectNumber *DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber - Fqn *DocFormsGet200ResponseFieldsItemSignatureRefFqn - - rawJSON json.RawMessage -} - -func (d *DocFormsGet200ResponseFieldsItemSignatureRef) GetKind() string { - if d == nil { - return "" - } - return d.Kind -} - -func (d *DocFormsGet200ResponseFieldsItemSignatureRef) GetObjectNumber() *DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber { - if d == nil { - return nil - } - return d.ObjectNumber -} - -func (d *DocFormsGet200ResponseFieldsItemSignatureRef) GetFqn() *DocFormsGet200ResponseFieldsItemSignatureRefFqn { - if d == nil { - return nil - } - return d.Fqn -} - -func (d *DocFormsGet200ResponseFieldsItemSignatureRef) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "fqn": - value := new(DocFormsGet200ResponseFieldsItemSignatureRefFqn) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Fqn = value - } - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d DocFormsGet200ResponseFieldsItemSignatureRef) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") + embed: embed(*d), } - if d.Fqn != nil { - return internal.MarshalJSONWithExtraProperty(d.Fqn, "kind", "fqn") + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocFormsGet200ResponseFieldsItemTextValueEntryScalar) String() string { + if d == nil { + return "" } if len(d.rawJSON) > 0 { - return d.rawJSON, nil + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemSignatureRefVisitor interface { - VisitObjectNumber(*DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber) error - VisitFqn(*DocFormsGet200ResponseFieldsItemSignatureRefFqn) error +type DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported struct { + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemSignatureRef) Accept(visitor DocFormsGet200ResponseFieldsItemSignatureRefVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) - } - if d.Fqn != nil { - return visitor.VisitFqn(d.Fqn) +func (d *DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil } - return fmt.Errorf("type %T does not define a non-empty union type", d) + return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemSignatureRef) validate() error { - if d == nil { - return fmt.Errorf("type %T is nil", d) +func (d *DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") + d.explicitFields.Or(d.explicitFields, field) +} + +func (d *DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - if d.Fqn != nil { - fields = append(fields, "fqn") + *d = DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported + var marshaler = struct { + embed + }{ + embed: embed(*d), } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported) String() string { + if d == nil { + return "" } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value } } - return nil + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } var ( - docFormsGet200ResponseFieldsItemSignatureRefFqnFieldName = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemTextWidgetsItemFieldAnnotObjectNumber = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemTextWidgetsItemFieldPageObjectNumber = big.NewInt(1 << 1) ) -type DocFormsGet200ResponseFieldsItemSignatureRefFqn struct { - Name string `json:"name" url:"name"` +type DocFormsGet200ResponseFieldsItemTextWidgetsItem struct { + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -124264,41 +142252,55 @@ type DocFormsGet200ResponseFieldsItemSignatureRefFqn struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemSignatureRefFqn) GetName() string { +func (d *DocFormsGet200ResponseFieldsItemTextWidgetsItem) GetAnnotObjectNumber() int { if d == nil { - return "" + return 0 } - return d.Name + return d.AnnotObjectNumber } -func (d *DocFormsGet200ResponseFieldsItemSignatureRefFqn) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemTextWidgetsItem) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocFormsGet200ResponseFieldsItemTextWidgetsItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemSignatureRefFqn) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemTextWidgetsItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetName sets the Name field and marks it as non-optional; +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemSignatureRefFqn) SetName(name string) { - d.Name = name - d.require(docFormsGet200ResponseFieldsItemSignatureRefFqnFieldName) +func (d *DocFormsGet200ResponseFieldsItemTextWidgetsItem) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docFormsGet200ResponseFieldsItemTextWidgetsItemFieldAnnotObjectNumber) } -func (d *DocFormsGet200ResponseFieldsItemSignatureRefFqn) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemSignatureRefFqn +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemTextWidgetsItem) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docFormsGet200ResponseFieldsItemTextWidgetsItemFieldPageObjectNumber) +} + +func (d *DocFormsGet200ResponseFieldsItemTextWidgetsItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemTextWidgetsItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemSignatureRefFqn(value) + *d = DocFormsGet200ResponseFieldsItemTextWidgetsItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -124308,8 +142310,8 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureRefFqn) UnmarshalJSON(data []b return nil } -func (d *DocFormsGet200ResponseFieldsItemSignatureRefFqn) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemSignatureRefFqn +func (d *DocFormsGet200ResponseFieldsItemTextWidgetsItem) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemTextWidgetsItem var marshaler = struct { embed }{ @@ -124319,7 +142321,7 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureRefFqn) MarshalJSON() ([]byte, return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemSignatureRefFqn) String() string { +func (d *DocFormsGet200ResponseFieldsItemTextWidgetsItem) String() string { if d == nil { return "" } @@ -124335,11 +142337,33 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureRefFqn) String() string { } var ( - docFormsGet200ResponseFieldsItemSignatureRefObjectNumberFieldFieldObjectNumber = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemUnknownFieldRef = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemUnknownFieldFieldObjectNumber = big.NewInt(1 << 1) + docFormsGet200ResponseFieldsItemUnknownFieldName = big.NewInt(1 << 2) + docFormsGet200ResponseFieldsItemUnknownFieldOrigin = big.NewInt(1 << 3) + docFormsGet200ResponseFieldsItemUnknownFieldFlags = big.NewInt(1 << 4) + docFormsGet200ResponseFieldsItemUnknownFieldAlternateName = big.NewInt(1 << 5) + docFormsGet200ResponseFieldsItemUnknownFieldMappingName = big.NewInt(1 << 6) + docFormsGet200ResponseFieldsItemUnknownFieldValueEntry = big.NewInt(1 << 7) + docFormsGet200ResponseFieldsItemUnknownFieldDefaultValueEntry = big.NewInt(1 << 8) + docFormsGet200ResponseFieldsItemUnknownFieldActions = big.NewInt(1 << 9) + docFormsGet200ResponseFieldsItemUnknownFieldWidgets = big.NewInt(1 << 10) + docFormsGet200ResponseFieldsItemUnknownFieldRawValue = big.NewInt(1 << 11) ) -type DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber struct { - FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` +type DocFormsGet200ResponseFieldsItemUnknown struct { + Ref *DocFormsGet200ResponseFieldsItemUnknownRef `json:"ref" url:"ref"` + FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` + Name string `json:"name" url:"name"` + Origin DocFormsGet200ResponseFieldsItemUnknownOrigin `json:"origin" url:"origin"` + Flags *DocFormsGet200ResponseFieldsItemUnknownFlags `json:"flags" url:"flags"` + AlternateName *string `json:"alternateName,omitempty" url:"alternateName,omitempty"` + MappingName *string `json:"mappingName,omitempty" url:"mappingName,omitempty"` + ValueEntry *DocFormsGet200ResponseFieldsItemUnknownValueEntry `json:"valueEntry" url:"valueEntry"` + DefaultValueEntry *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry `json:"defaultValueEntry" url:"defaultValueEntry"` + Actions *PdfFieldActions `json:"actions,omitempty" url:"actions,omitempty"` + Widgets []*DocFormsGet200ResponseFieldsItemUnknownWidgetsItem `json:"widgets" url:"widgets"` + RawValue string `json:"rawValue" url:"rawValue"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -124348,41 +142372,195 @@ type DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber) GetFieldObjectNumber() int { +func (d *DocFormsGet200ResponseFieldsItemUnknown) GetRef() *DocFormsGet200ResponseFieldsItemUnknownRef { + if d == nil { + return nil + } + return d.Ref +} + +func (d *DocFormsGet200ResponseFieldsItemUnknown) GetFieldObjectNumber() int { if d == nil { return 0 } return d.FieldObjectNumber } -func (d *DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemUnknown) GetName() string { + if d == nil { + return "" + } + return d.Name +} + +func (d *DocFormsGet200ResponseFieldsItemUnknown) GetOrigin() DocFormsGet200ResponseFieldsItemUnknownOrigin { + if d == nil { + return "" + } + return d.Origin +} + +func (d *DocFormsGet200ResponseFieldsItemUnknown) GetFlags() *DocFormsGet200ResponseFieldsItemUnknownFlags { + if d == nil { + return nil + } + return d.Flags +} + +func (d *DocFormsGet200ResponseFieldsItemUnknown) GetAlternateName() *string { + if d == nil { + return nil + } + return d.AlternateName +} + +func (d *DocFormsGet200ResponseFieldsItemUnknown) GetMappingName() *string { + if d == nil { + return nil + } + return d.MappingName +} + +func (d *DocFormsGet200ResponseFieldsItemUnknown) GetValueEntry() *DocFormsGet200ResponseFieldsItemUnknownValueEntry { + if d == nil { + return nil + } + return d.ValueEntry +} + +func (d *DocFormsGet200ResponseFieldsItemUnknown) GetDefaultValueEntry() *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry { + if d == nil { + return nil + } + return d.DefaultValueEntry +} + +func (d *DocFormsGet200ResponseFieldsItemUnknown) GetActions() *PdfFieldActions { + if d == nil { + return nil + } + return d.Actions +} + +func (d *DocFormsGet200ResponseFieldsItemUnknown) GetWidgets() []*DocFormsGet200ResponseFieldsItemUnknownWidgetsItem { + if d == nil { + return nil + } + return d.Widgets +} + +func (d *DocFormsGet200ResponseFieldsItemUnknown) GetRawValue() string { + if d == nil { + return "" + } + return d.RawValue +} + +func (d *DocFormsGet200ResponseFieldsItemUnknown) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemUnknown) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } +// SetRef sets the Ref field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemUnknown) SetRef(ref *DocFormsGet200ResponseFieldsItemUnknownRef) { + d.Ref = ref + d.require(docFormsGet200ResponseFieldsItemUnknownFieldRef) +} + // SetFieldObjectNumber sets the FieldObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber) SetFieldObjectNumber(fieldObjectNumber int) { +func (d *DocFormsGet200ResponseFieldsItemUnknown) SetFieldObjectNumber(fieldObjectNumber int) { d.FieldObjectNumber = fieldObjectNumber - d.require(docFormsGet200ResponseFieldsItemSignatureRefObjectNumberFieldFieldObjectNumber) + d.require(docFormsGet200ResponseFieldsItemUnknownFieldFieldObjectNumber) } -func (d *DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber +// SetName sets the Name field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemUnknown) SetName(name string) { + d.Name = name + d.require(docFormsGet200ResponseFieldsItemUnknownFieldName) +} + +// SetOrigin sets the Origin field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemUnknown) SetOrigin(origin DocFormsGet200ResponseFieldsItemUnknownOrigin) { + d.Origin = origin + d.require(docFormsGet200ResponseFieldsItemUnknownFieldOrigin) +} + +// SetFlags sets the Flags field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemUnknown) SetFlags(flags *DocFormsGet200ResponseFieldsItemUnknownFlags) { + d.Flags = flags + d.require(docFormsGet200ResponseFieldsItemUnknownFieldFlags) +} + +// SetAlternateName sets the AlternateName field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemUnknown) SetAlternateName(alternateName *string) { + d.AlternateName = alternateName + d.require(docFormsGet200ResponseFieldsItemUnknownFieldAlternateName) +} + +// SetMappingName sets the MappingName field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemUnknown) SetMappingName(mappingName *string) { + d.MappingName = mappingName + d.require(docFormsGet200ResponseFieldsItemUnknownFieldMappingName) +} + +// SetValueEntry sets the ValueEntry field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemUnknown) SetValueEntry(valueEntry *DocFormsGet200ResponseFieldsItemUnknownValueEntry) { + d.ValueEntry = valueEntry + d.require(docFormsGet200ResponseFieldsItemUnknownFieldValueEntry) +} + +// SetDefaultValueEntry sets the DefaultValueEntry field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemUnknown) SetDefaultValueEntry(defaultValueEntry *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry) { + d.DefaultValueEntry = defaultValueEntry + d.require(docFormsGet200ResponseFieldsItemUnknownFieldDefaultValueEntry) +} + +// SetActions sets the Actions field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemUnknown) SetActions(actions *PdfFieldActions) { + d.Actions = actions + d.require(docFormsGet200ResponseFieldsItemUnknownFieldActions) +} + +// SetWidgets sets the Widgets field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemUnknown) SetWidgets(widgets []*DocFormsGet200ResponseFieldsItemUnknownWidgetsItem) { + d.Widgets = widgets + d.require(docFormsGet200ResponseFieldsItemUnknownFieldWidgets) +} + +// SetRawValue sets the RawValue field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemUnknown) SetRawValue(rawValue string) { + d.RawValue = rawValue + d.require(docFormsGet200ResponseFieldsItemUnknownFieldRawValue) +} + +func (d *DocFormsGet200ResponseFieldsItemUnknown) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemUnknown var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber(value) + *d = DocFormsGet200ResponseFieldsItemUnknown(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -124392,8 +142570,8 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber) UnmarshalJSON return nil } -func (d *DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber +func (d *DocFormsGet200ResponseFieldsItemUnknown) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemUnknown var marshaler = struct { embed }{ @@ -124403,7 +142581,7 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber) MarshalJSON() return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber) String() string { +func (d *DocFormsGet200ResponseFieldsItemUnknown) String() string { if d == nil { return "" } @@ -124418,52 +142596,52 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber) String() stri return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemSignatureValueEntry struct { +type DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry struct { Kind string - None *DocFormsGet200ResponseFieldsItemSignatureValueEntryNone - Scalar *DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar - Array *DocFormsGet200ResponseFieldsItemSignatureValueEntryArray - Unsupported *DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported + None *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone + Scalar *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar + Array *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray + Unsupported *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntry) GetKind() string { +func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntry) GetNone() *DocFormsGet200ResponseFieldsItemSignatureValueEntryNone { +func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry) GetNone() *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone { if d == nil { return nil } return d.None } -func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntry) GetScalar() *DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar { +func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry) GetScalar() *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar { if d == nil { return nil } return d.Scalar } -func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntry) GetArray() *DocFormsGet200ResponseFieldsItemSignatureValueEntryArray { +func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry) GetArray() *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray { if d == nil { return nil } return d.Array } -func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntry) GetUnsupported() *DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported { +func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry) GetUnsupported() *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported { if d == nil { return nil } return d.Unsupported } -func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntry) UnmarshalJSON(data []byte) error { +func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -124476,25 +142654,25 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntry) UnmarshalJSON(data } switch unmarshaler.Kind { case "none": - value := new(DocFormsGet200ResponseFieldsItemSignatureValueEntryNone) + value := new(DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone) if err := json.Unmarshal(data, &value); err != nil { return err } d.None = value case "scalar": - value := new(DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar) + value := new(DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar) if err := json.Unmarshal(data, &value); err != nil { return err } d.Scalar = value case "array": - value := new(DocFormsGet200ResponseFieldsItemSignatureValueEntryArray) + value := new(DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray) if err := json.Unmarshal(data, &value); err != nil { return err } d.Array = value case "unsupported": - value := new(DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported) + value := new(DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -124504,7 +142682,7 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntry) UnmarshalJSON(data return nil } -func (d DocFormsGet200ResponseFieldsItemSignatureValueEntry) MarshalJSON() ([]byte, error) { +func (d DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -124526,14 +142704,14 @@ func (d DocFormsGet200ResponseFieldsItemSignatureValueEntry) MarshalJSON() ([]by return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocFormsGet200ResponseFieldsItemSignatureValueEntryVisitor interface { - VisitNone(*DocFormsGet200ResponseFieldsItemSignatureValueEntryNone) error - VisitScalar(*DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar) error - VisitArray(*DocFormsGet200ResponseFieldsItemSignatureValueEntryArray) error - VisitUnsupported(*DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported) error +type DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryVisitor interface { + VisitNone(*DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone) error + VisitScalar(*DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar) error + VisitArray(*DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray) error + VisitUnsupported(*DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported) error } -func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntry) Accept(visitor DocFormsGet200ResponseFieldsItemSignatureValueEntryVisitor) error { +func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry) Accept(visitor DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryVisitor) error { if d.None != nil { return visitor.VisitNone(d.None) } @@ -124549,7 +142727,7 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntry) Accept(visitor Doc return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntry) validate() error { +func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -124593,10 +142771,10 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntry) validate() error { } var ( - docFormsGet200ResponseFieldsItemSignatureValueEntryArrayFieldValues = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArrayFieldValues = big.NewInt(1 << 0) ) -type DocFormsGet200ResponseFieldsItemSignatureValueEntryArray struct { +type DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray struct { Values []string `json:"values" url:"values"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -124606,21 +142784,21 @@ type DocFormsGet200ResponseFieldsItemSignatureValueEntryArray struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryArray) GetValues() []string { +func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray) GetValues() []string { if d == nil { return nil } return d.Values } -func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryArray) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryArray) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -124629,18 +142807,18 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryArray) require(field // SetValues sets the Values field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryArray) SetValues(values []string) { +func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray) SetValues(values []string) { d.Values = values - d.require(docFormsGet200ResponseFieldsItemSignatureValueEntryArrayFieldValues) + d.require(docFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArrayFieldValues) } -func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryArray) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemSignatureValueEntryArray +func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemSignatureValueEntryArray(value) + *d = DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -124650,8 +142828,8 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryArray) UnmarshalJSON return nil } -func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryArray) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemSignatureValueEntryArray +func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray var marshaler = struct { embed }{ @@ -124661,7 +142839,7 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryArray) MarshalJSON() return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryArray) String() string { +func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray) String() string { if d == nil { return "" } @@ -124676,7 +142854,7 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryArray) String() stri return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemSignatureValueEntryNone struct { +type DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -124685,27 +142863,27 @@ type DocFormsGet200ResponseFieldsItemSignatureValueEntryNone struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryNone) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryNone) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryNone) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemSignatureValueEntryNone +func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemSignatureValueEntryNone(value) + *d = DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -124715,8 +142893,8 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryNone) UnmarshalJSON( return nil } -func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryNone) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemSignatureValueEntryNone +func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone var marshaler = struct { embed }{ @@ -124726,7 +142904,7 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryNone) MarshalJSON() return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryNone) String() string { +func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone) String() string { if d == nil { return "" } @@ -124742,10 +142920,10 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryNone) String() strin } var ( - docFormsGet200ResponseFieldsItemSignatureValueEntryScalarFieldValue = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalarFieldValue = big.NewInt(1 << 0) ) -type DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar struct { +type DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar struct { Value string `json:"value" url:"value"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -124755,21 +142933,21 @@ type DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar) GetValue() string { +func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar) GetValue() string { if d == nil { return "" } return d.Value } -func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -124778,18 +142956,18 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar) require(fiel // SetValue sets the Value field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar) SetValue(value string) { +func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar) SetValue(value string) { d.Value = value - d.require(docFormsGet200ResponseFieldsItemSignatureValueEntryScalarFieldValue) + d.require(docFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalarFieldValue) } -func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar +func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar(value) + *d = DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -124799,8 +142977,8 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar) UnmarshalJSO return nil } -func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar +func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar var marshaler = struct { embed }{ @@ -124810,7 +142988,7 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar) MarshalJSON( return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar) String() string { +func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar) String() string { if d == nil { return "" } @@ -124825,7 +143003,7 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar) String() str return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported struct { +type DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -124834,27 +143012,27 @@ type DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported +func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported(value) + *d = DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -124864,8 +143042,8 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported) Unmarsh return nil } -func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported +func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported var marshaler = struct { embed }{ @@ -124875,7 +143053,7 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported) Marshal return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported) String() string { +func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported) String() string { if d == nil { return "" } @@ -124891,13 +143069,17 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported) String( } var ( - docFormsGet200ResponseFieldsItemSignatureWidgetsItemFieldAnnotObjectNumber = big.NewInt(1 << 0) - docFormsGet200ResponseFieldsItemSignatureWidgetsItemFieldPageObjectNumber = big.NewInt(1 << 1) + docFormsGet200ResponseFieldsItemUnknownFlagsFieldReadOnly = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemUnknownFlagsFieldRequired = big.NewInt(1 << 1) + docFormsGet200ResponseFieldsItemUnknownFlagsFieldNoExport = big.NewInt(1 << 2) + docFormsGet200ResponseFieldsItemUnknownFlagsFieldRaw = big.NewInt(1 << 3) ) -type DocFormsGet200ResponseFieldsItemSignatureWidgetsItem struct { - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` +type DocFormsGet200ResponseFieldsItemUnknownFlags struct { + ReadOnly bool `json:"readOnly" url:"readOnly"` + Required bool `json:"required" url:"required"` + NoExport bool `json:"noExport" url:"noExport"` + Raw int `json:"raw" url:"raw"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -124906,55 +143088,83 @@ type DocFormsGet200ResponseFieldsItemSignatureWidgetsItem struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemSignatureWidgetsItem) GetAnnotObjectNumber() int { +func (d *DocFormsGet200ResponseFieldsItemUnknownFlags) GetReadOnly() bool { if d == nil { - return 0 + return false } - return d.AnnotObjectNumber + return d.ReadOnly } -func (d *DocFormsGet200ResponseFieldsItemSignatureWidgetsItem) GetPageObjectNumber() int { +func (d *DocFormsGet200ResponseFieldsItemUnknownFlags) GetRequired() bool { + if d == nil { + return false + } + return d.Required +} + +func (d *DocFormsGet200ResponseFieldsItemUnknownFlags) GetNoExport() bool { + if d == nil { + return false + } + return d.NoExport +} + +func (d *DocFormsGet200ResponseFieldsItemUnknownFlags) GetRaw() int { if d == nil { return 0 } - return d.PageObjectNumber + return d.Raw } -func (d *DocFormsGet200ResponseFieldsItemSignatureWidgetsItem) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemUnknownFlags) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemSignatureWidgetsItem) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemUnknownFlags) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetReadOnly sets the ReadOnly field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemSignatureWidgetsItem) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docFormsGet200ResponseFieldsItemSignatureWidgetsItemFieldAnnotObjectNumber) +func (d *DocFormsGet200ResponseFieldsItemUnknownFlags) SetReadOnly(readOnly bool) { + d.ReadOnly = readOnly + d.require(docFormsGet200ResponseFieldsItemUnknownFlagsFieldReadOnly) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetRequired sets the Required field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemSignatureWidgetsItem) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docFormsGet200ResponseFieldsItemSignatureWidgetsItemFieldPageObjectNumber) +func (d *DocFormsGet200ResponseFieldsItemUnknownFlags) SetRequired(required bool) { + d.Required = required + d.require(docFormsGet200ResponseFieldsItemUnknownFlagsFieldRequired) } -func (d *DocFormsGet200ResponseFieldsItemSignatureWidgetsItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemSignatureWidgetsItem +// SetNoExport sets the NoExport field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemUnknownFlags) SetNoExport(noExport bool) { + d.NoExport = noExport + d.require(docFormsGet200ResponseFieldsItemUnknownFlagsFieldNoExport) +} + +// SetRaw sets the Raw field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemUnknownFlags) SetRaw(raw int) { + d.Raw = raw + d.require(docFormsGet200ResponseFieldsItemUnknownFlagsFieldRaw) +} + +func (d *DocFormsGet200ResponseFieldsItemUnknownFlags) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemUnknownFlags var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemSignatureWidgetsItem(value) + *d = DocFormsGet200ResponseFieldsItemUnknownFlags(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -124964,8 +143174,8 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureWidgetsItem) UnmarshalJSON(dat return nil } -func (d *DocFormsGet200ResponseFieldsItemSignatureWidgetsItem) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemSignatureWidgetsItem +func (d *DocFormsGet200ResponseFieldsItemUnknownFlags) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemUnknownFlags var marshaler = struct { embed }{ @@ -124975,7 +143185,7 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureWidgetsItem) MarshalJSON() ([] return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemSignatureWidgetsItem) String() string { +func (d *DocFormsGet200ResponseFieldsItemUnknownFlags) String() string { if d == nil { return "" } @@ -124990,311 +143200,287 @@ func (d *DocFormsGet200ResponseFieldsItemSignatureWidgetsItem) String() string { return fmt.Sprintf("%#v", d) } -var ( - docFormsGet200ResponseFieldsItemTextFieldRef = big.NewInt(1 << 0) - docFormsGet200ResponseFieldsItemTextFieldFieldObjectNumber = big.NewInt(1 << 1) - docFormsGet200ResponseFieldsItemTextFieldName = big.NewInt(1 << 2) - docFormsGet200ResponseFieldsItemTextFieldOrigin = big.NewInt(1 << 3) - docFormsGet200ResponseFieldsItemTextFieldFlags = big.NewInt(1 << 4) - docFormsGet200ResponseFieldsItemTextFieldAlternateName = big.NewInt(1 << 5) - docFormsGet200ResponseFieldsItemTextFieldMappingName = big.NewInt(1 << 6) - docFormsGet200ResponseFieldsItemTextFieldValueEntry = big.NewInt(1 << 7) - docFormsGet200ResponseFieldsItemTextFieldDefaultValueEntry = big.NewInt(1 << 8) - docFormsGet200ResponseFieldsItemTextFieldActions = big.NewInt(1 << 9) - docFormsGet200ResponseFieldsItemTextFieldWidgets = big.NewInt(1 << 10) - docFormsGet200ResponseFieldsItemTextFieldValue = big.NewInt(1 << 11) - docFormsGet200ResponseFieldsItemTextFieldDefaultValue = big.NewInt(1 << 12) - docFormsGet200ResponseFieldsItemTextFieldMaxLength = big.NewInt(1 << 13) - docFormsGet200ResponseFieldsItemTextFieldMultiline = big.NewInt(1 << 14) - docFormsGet200ResponseFieldsItemTextFieldPassword = big.NewInt(1 << 15) - docFormsGet200ResponseFieldsItemTextFieldComb = big.NewInt(1 << 16) -) - -type DocFormsGet200ResponseFieldsItemText struct { - Ref *DocFormsGet200ResponseFieldsItemTextRef `json:"ref" url:"ref"` - FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` - Name string `json:"name" url:"name"` - Origin DocFormsGet200ResponseFieldsItemTextOrigin `json:"origin" url:"origin"` - Flags *DocFormsGet200ResponseFieldsItemTextFlags `json:"flags" url:"flags"` - AlternateName *string `json:"alternateName,omitempty" url:"alternateName,omitempty"` - MappingName *string `json:"mappingName,omitempty" url:"mappingName,omitempty"` - ValueEntry *DocFormsGet200ResponseFieldsItemTextValueEntry `json:"valueEntry" url:"valueEntry"` - DefaultValueEntry *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry `json:"defaultValueEntry" url:"defaultValueEntry"` - Actions *PdfFieldActions `json:"actions,omitempty" url:"actions,omitempty"` - Widgets []*DocFormsGet200ResponseFieldsItemTextWidgetsItem `json:"widgets" url:"widgets"` - Value string `json:"value" url:"value"` - DefaultValue string `json:"defaultValue" url:"defaultValue"` - MaxLength *int `json:"maxLength,omitempty" url:"maxLength,omitempty"` - Multiline bool `json:"multiline" url:"multiline"` - Password bool `json:"password" url:"password"` - Comb bool `json:"comb" url:"comb"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +type DocFormsGet200ResponseFieldsItemUnknownOrigin string - extraProperties map[string]interface{} - rawJSON json.RawMessage -} +const ( + DocFormsGet200ResponseFieldsItemUnknownOriginAcroform DocFormsGet200ResponseFieldsItemUnknownOrigin = "acroform" + DocFormsGet200ResponseFieldsItemUnknownOriginRecovered DocFormsGet200ResponseFieldsItemUnknownOrigin = "recovered" +) -func (d *DocFormsGet200ResponseFieldsItemText) GetRef() *DocFormsGet200ResponseFieldsItemTextRef { - if d == nil { - return nil +func NewDocFormsGet200ResponseFieldsItemUnknownOriginFromString(s string) (DocFormsGet200ResponseFieldsItemUnknownOrigin, error) { + switch s { + case "acroform": + return DocFormsGet200ResponseFieldsItemUnknownOriginAcroform, nil + case "recovered": + return DocFormsGet200ResponseFieldsItemUnknownOriginRecovered, nil } - return d.Ref + var t DocFormsGet200ResponseFieldsItemUnknownOrigin + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocFormsGet200ResponseFieldsItemText) GetFieldObjectNumber() int { - if d == nil { - return 0 - } - return d.FieldObjectNumber +func (d DocFormsGet200ResponseFieldsItemUnknownOrigin) Ptr() *DocFormsGet200ResponseFieldsItemUnknownOrigin { + return &d } -func (d *DocFormsGet200ResponseFieldsItemText) GetName() string { - if d == nil { - return "" - } - return d.Name +type DocFormsGet200ResponseFieldsItemUnknownRef struct { + Kind string + ObjectNumber *DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber + Fqn *DocFormsGet200ResponseFieldsItemUnknownRefFqn + + rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemText) GetOrigin() DocFormsGet200ResponseFieldsItemTextOrigin { +func (d *DocFormsGet200ResponseFieldsItemUnknownRef) GetKind() string { if d == nil { return "" } - return d.Origin + return d.Kind } -func (d *DocFormsGet200ResponseFieldsItemText) GetFlags() *DocFormsGet200ResponseFieldsItemTextFlags { +func (d *DocFormsGet200ResponseFieldsItemUnknownRef) GetObjectNumber() *DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber { if d == nil { return nil } - return d.Flags + return d.ObjectNumber } -func (d *DocFormsGet200ResponseFieldsItemText) GetAlternateName() *string { +func (d *DocFormsGet200ResponseFieldsItemUnknownRef) GetFqn() *DocFormsGet200ResponseFieldsItemUnknownRefFqn { if d == nil { return nil } - return d.AlternateName + return d.Fqn } -func (d *DocFormsGet200ResponseFieldsItemText) GetMappingName() *string { - if d == nil { - return nil +func (d *DocFormsGet200ResponseFieldsItemUnknownRef) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` } - return d.MappingName -} - -func (d *DocFormsGet200ResponseFieldsItemText) GetValueEntry() *DocFormsGet200ResponseFieldsItemTextValueEntry { - if d == nil { - return nil + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err } - return d.ValueEntry -} - -func (d *DocFormsGet200ResponseFieldsItemText) GetDefaultValueEntry() *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry { - if d == nil { - return nil + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) } - return d.DefaultValueEntry -} - -func (d *DocFormsGet200ResponseFieldsItemText) GetActions() *PdfFieldActions { - if d == nil { - return nil + switch unmarshaler.Kind { + case "objectNumber": + value := new(DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.ObjectNumber = value + case "fqn": + value := new(DocFormsGet200ResponseFieldsItemUnknownRefFqn) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Fqn = value } - return d.Actions + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocFormsGet200ResponseFieldsItemText) GetWidgets() []*DocFormsGet200ResponseFieldsItemTextWidgetsItem { - if d == nil { - return nil +func (d DocFormsGet200ResponseFieldsItemUnknownRef) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err } - return d.Widgets -} - -func (d *DocFormsGet200ResponseFieldsItemText) GetValue() string { - if d == nil { - return "" + if d.ObjectNumber != nil { + return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") } - return d.Value + if d.Fqn != nil { + return internal.MarshalJSONWithExtraProperty(d.Fqn, "kind", "fqn") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocFormsGet200ResponseFieldsItemText) GetDefaultValue() string { - if d == nil { - return "" - } - return d.DefaultValue +type DocFormsGet200ResponseFieldsItemUnknownRefVisitor interface { + VisitObjectNumber(*DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber) error + VisitFqn(*DocFormsGet200ResponseFieldsItemUnknownRefFqn) error } -func (d *DocFormsGet200ResponseFieldsItemText) GetMaxLength() *int { - if d == nil { - return nil +func (d *DocFormsGet200ResponseFieldsItemUnknownRef) Accept(visitor DocFormsGet200ResponseFieldsItemUnknownRefVisitor) error { + if d.ObjectNumber != nil { + return visitor.VisitObjectNumber(d.ObjectNumber) } - return d.MaxLength + if d.Fqn != nil { + return visitor.VisitFqn(d.Fqn) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocFormsGet200ResponseFieldsItemText) GetMultiline() bool { +func (d *DocFormsGet200ResponseFieldsItemUnknownRef) validate() error { if d == nil { - return false + return fmt.Errorf("type %T is nil", d) } - return d.Multiline + var fields []string + if d.ObjectNumber != nil { + fields = append(fields, "objectNumber") + } + if d.Fqn != nil { + fields = append(fields, "fqn") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil } -func (d *DocFormsGet200ResponseFieldsItemText) GetPassword() bool { - if d == nil { - return false - } - return d.Password +var ( + docFormsGet200ResponseFieldsItemUnknownRefFqnFieldName = big.NewInt(1 << 0) +) + +type DocFormsGet200ResponseFieldsItemUnknownRefFqn struct { + Name string `json:"name" url:"name"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemText) GetComb() bool { +func (d *DocFormsGet200ResponseFieldsItemUnknownRefFqn) GetName() string { if d == nil { - return false + return "" } - return d.Comb + return d.Name } -func (d *DocFormsGet200ResponseFieldsItemText) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemUnknownRefFqn) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemText) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemUnknownRefFqn) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetRef sets the Ref field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemText) SetRef(ref *DocFormsGet200ResponseFieldsItemTextRef) { - d.Ref = ref - d.require(docFormsGet200ResponseFieldsItemTextFieldRef) -} - -// SetFieldObjectNumber sets the FieldObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemText) SetFieldObjectNumber(fieldObjectNumber int) { - d.FieldObjectNumber = fieldObjectNumber - d.require(docFormsGet200ResponseFieldsItemTextFieldFieldObjectNumber) -} - // SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemText) SetName(name string) { +func (d *DocFormsGet200ResponseFieldsItemUnknownRefFqn) SetName(name string) { d.Name = name - d.require(docFormsGet200ResponseFieldsItemTextFieldName) -} - -// SetOrigin sets the Origin field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemText) SetOrigin(origin DocFormsGet200ResponseFieldsItemTextOrigin) { - d.Origin = origin - d.require(docFormsGet200ResponseFieldsItemTextFieldOrigin) -} - -// SetFlags sets the Flags field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemText) SetFlags(flags *DocFormsGet200ResponseFieldsItemTextFlags) { - d.Flags = flags - d.require(docFormsGet200ResponseFieldsItemTextFieldFlags) -} - -// SetAlternateName sets the AlternateName field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemText) SetAlternateName(alternateName *string) { - d.AlternateName = alternateName - d.require(docFormsGet200ResponseFieldsItemTextFieldAlternateName) + d.require(docFormsGet200ResponseFieldsItemUnknownRefFqnFieldName) } -// SetMappingName sets the MappingName field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemText) SetMappingName(mappingName *string) { - d.MappingName = mappingName - d.require(docFormsGet200ResponseFieldsItemTextFieldMappingName) +func (d *DocFormsGet200ResponseFieldsItemUnknownRefFqn) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemUnknownRefFqn + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocFormsGet200ResponseFieldsItemUnknownRefFqn(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -// SetValueEntry sets the ValueEntry field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemText) SetValueEntry(valueEntry *DocFormsGet200ResponseFieldsItemTextValueEntry) { - d.ValueEntry = valueEntry - d.require(docFormsGet200ResponseFieldsItemTextFieldValueEntry) +func (d *DocFormsGet200ResponseFieldsItemUnknownRefFqn) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemUnknownRefFqn + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -// SetDefaultValueEntry sets the DefaultValueEntry field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemText) SetDefaultValueEntry(defaultValueEntry *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry) { - d.DefaultValueEntry = defaultValueEntry - d.require(docFormsGet200ResponseFieldsItemTextFieldDefaultValueEntry) +func (d *DocFormsGet200ResponseFieldsItemUnknownRefFqn) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -// SetActions sets the Actions field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemText) SetActions(actions *PdfFieldActions) { - d.Actions = actions - d.require(docFormsGet200ResponseFieldsItemTextFieldActions) -} +var ( + docFormsGet200ResponseFieldsItemUnknownRefObjectNumberFieldFieldObjectNumber = big.NewInt(1 << 0) +) -// SetWidgets sets the Widgets field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemText) SetWidgets(widgets []*DocFormsGet200ResponseFieldsItemTextWidgetsItem) { - d.Widgets = widgets - d.require(docFormsGet200ResponseFieldsItemTextFieldWidgets) -} +type DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber struct { + FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` -// SetValue sets the Value field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemText) SetValue(value string) { - d.Value = value - d.require(docFormsGet200ResponseFieldsItemTextFieldValue) -} + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` -// SetDefaultValue sets the DefaultValue field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemText) SetDefaultValue(defaultValue string) { - d.DefaultValue = defaultValue - d.require(docFormsGet200ResponseFieldsItemTextFieldDefaultValue) + extraProperties map[string]interface{} + rawJSON json.RawMessage } -// SetMaxLength sets the MaxLength field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemText) SetMaxLength(maxLength *int) { - d.MaxLength = maxLength - d.require(docFormsGet200ResponseFieldsItemTextFieldMaxLength) +func (d *DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber) GetFieldObjectNumber() int { + if d == nil { + return 0 + } + return d.FieldObjectNumber } -// SetMultiline sets the Multiline field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemText) SetMultiline(multiline bool) { - d.Multiline = multiline - d.require(docFormsGet200ResponseFieldsItemTextFieldMultiline) +func (d *DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties } -// SetPassword sets the Password field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemText) SetPassword(password bool) { - d.Password = password - d.require(docFormsGet200ResponseFieldsItemTextFieldPassword) +func (d *DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) } -// SetComb sets the Comb field and marks it as non-optional; +// SetFieldObjectNumber sets the FieldObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemText) SetComb(comb bool) { - d.Comb = comb - d.require(docFormsGet200ResponseFieldsItemTextFieldComb) +func (d *DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber) SetFieldObjectNumber(fieldObjectNumber int) { + d.FieldObjectNumber = fieldObjectNumber + d.require(docFormsGet200ResponseFieldsItemUnknownRefObjectNumberFieldFieldObjectNumber) } -func (d *DocFormsGet200ResponseFieldsItemText) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemText +func (d *DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemText(value) + *d = DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -125304,8 +143490,8 @@ func (d *DocFormsGet200ResponseFieldsItemText) UnmarshalJSON(data []byte) error return nil } -func (d *DocFormsGet200ResponseFieldsItemText) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemText +func (d *DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber var marshaler = struct { embed }{ @@ -125315,7 +143501,7 @@ func (d *DocFormsGet200ResponseFieldsItemText) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemText) String() string { +func (d *DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber) String() string { if d == nil { return "" } @@ -125330,52 +143516,52 @@ func (d *DocFormsGet200ResponseFieldsItemText) String() string { return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemTextDefaultValueEntry struct { +type DocFormsGet200ResponseFieldsItemUnknownValueEntry struct { Kind string - None *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone - Scalar *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar - Array *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray - Unsupported *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported + None *DocFormsGet200ResponseFieldsItemUnknownValueEntryNone + Scalar *DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar + Array *DocFormsGet200ResponseFieldsItemUnknownValueEntryArray + Unsupported *DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry) GetKind() string { +func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntry) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry) GetNone() *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone { +func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntry) GetNone() *DocFormsGet200ResponseFieldsItemUnknownValueEntryNone { if d == nil { return nil } return d.None } -func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry) GetScalar() *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar { +func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntry) GetScalar() *DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar { if d == nil { return nil } return d.Scalar } -func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry) GetArray() *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray { +func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntry) GetArray() *DocFormsGet200ResponseFieldsItemUnknownValueEntryArray { if d == nil { return nil } return d.Array } -func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry) GetUnsupported() *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported { +func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntry) GetUnsupported() *DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported { if d == nil { return nil } return d.Unsupported } -func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry) UnmarshalJSON(data []byte) error { +func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntry) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -125388,25 +143574,25 @@ func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry) UnmarshalJSON(da } switch unmarshaler.Kind { case "none": - value := new(DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone) + value := new(DocFormsGet200ResponseFieldsItemUnknownValueEntryNone) if err := json.Unmarshal(data, &value); err != nil { return err } d.None = value case "scalar": - value := new(DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar) + value := new(DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar) if err := json.Unmarshal(data, &value); err != nil { return err } d.Scalar = value case "array": - value := new(DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray) + value := new(DocFormsGet200ResponseFieldsItemUnknownValueEntryArray) if err := json.Unmarshal(data, &value); err != nil { return err } d.Array = value case "unsupported": - value := new(DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported) + value := new(DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -125416,7 +143602,7 @@ func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry) UnmarshalJSON(da return nil } -func (d DocFormsGet200ResponseFieldsItemTextDefaultValueEntry) MarshalJSON() ([]byte, error) { +func (d DocFormsGet200ResponseFieldsItemUnknownValueEntry) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -125438,14 +143624,14 @@ func (d DocFormsGet200ResponseFieldsItemTextDefaultValueEntry) MarshalJSON() ([] return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocFormsGet200ResponseFieldsItemTextDefaultValueEntryVisitor interface { - VisitNone(*DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone) error - VisitScalar(*DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar) error - VisitArray(*DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray) error - VisitUnsupported(*DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported) error +type DocFormsGet200ResponseFieldsItemUnknownValueEntryVisitor interface { + VisitNone(*DocFormsGet200ResponseFieldsItemUnknownValueEntryNone) error + VisitScalar(*DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar) error + VisitArray(*DocFormsGet200ResponseFieldsItemUnknownValueEntryArray) error + VisitUnsupported(*DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported) error } -func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry) Accept(visitor DocFormsGet200ResponseFieldsItemTextDefaultValueEntryVisitor) error { +func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntry) Accept(visitor DocFormsGet200ResponseFieldsItemUnknownValueEntryVisitor) error { if d.None != nil { return visitor.VisitNone(d.None) } @@ -125461,7 +143647,7 @@ func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry) Accept(visitor D return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry) validate() error { +func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntry) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -125505,10 +143691,10 @@ func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry) validate() error } var ( - docFormsGet200ResponseFieldsItemTextDefaultValueEntryArrayFieldValues = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemUnknownValueEntryArrayFieldValues = big.NewInt(1 << 0) ) -type DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray struct { +type DocFormsGet200ResponseFieldsItemUnknownValueEntryArray struct { Values []string `json:"values" url:"values"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -125518,21 +143704,21 @@ type DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray) GetValues() []string { +func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryArray) GetValues() []string { if d == nil { return nil } return d.Values } -func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryArray) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryArray) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -125541,18 +143727,18 @@ func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray) require(fie // SetValues sets the Values field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray) SetValues(values []string) { +func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryArray) SetValues(values []string) { d.Values = values - d.require(docFormsGet200ResponseFieldsItemTextDefaultValueEntryArrayFieldValues) + d.require(docFormsGet200ResponseFieldsItemUnknownValueEntryArrayFieldValues) } -func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray +func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryArray) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemUnknownValueEntryArray var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray(value) + *d = DocFormsGet200ResponseFieldsItemUnknownValueEntryArray(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -125562,8 +143748,8 @@ func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray) UnmarshalJS return nil } -func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray +func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryArray) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemUnknownValueEntryArray var marshaler = struct { embed }{ @@ -125573,7 +143759,7 @@ func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray) MarshalJSON return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray) String() string { +func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryArray) String() string { if d == nil { return "" } @@ -125588,7 +143774,7 @@ func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray) String() st return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone struct { +type DocFormsGet200ResponseFieldsItemUnknownValueEntryNone struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -125597,27 +143783,27 @@ type DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryNone) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryNone) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone +func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryNone) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemUnknownValueEntryNone var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone(value) + *d = DocFormsGet200ResponseFieldsItemUnknownValueEntryNone(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -125627,8 +143813,8 @@ func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone) UnmarshalJSO return nil } -func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone +func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryNone) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemUnknownValueEntryNone var marshaler = struct { embed }{ @@ -125638,7 +143824,7 @@ func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone) MarshalJSON( return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone) String() string { +func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryNone) String() string { if d == nil { return "" } @@ -125654,10 +143840,10 @@ func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone) String() str } var ( - docFormsGet200ResponseFieldsItemTextDefaultValueEntryScalarFieldValue = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemUnknownValueEntryScalarFieldValue = big.NewInt(1 << 0) ) -type DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar struct { +type DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar struct { Value string `json:"value" url:"value"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -125667,21 +143853,21 @@ type DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar) GetValue() string { +func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar) GetValue() string { if d == nil { return "" } return d.Value } -func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar) GetExtraProperties() map[string]interface{} { +func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar) require(field *big.Int) { +func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -125690,18 +143876,340 @@ func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar) require(fi // SetValue sets the Value field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar) SetValue(value string) { +func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar) SetValue(value string) { d.Value = value - d.require(docFormsGet200ResponseFieldsItemTextDefaultValueEntryScalarFieldValue) + d.require(docFormsGet200ResponseFieldsItemUnknownValueEntryScalarFieldValue) } -func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar +func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar(value) + *d = DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported struct { + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +var ( + docFormsGet200ResponseFieldsItemUnknownWidgetsItemFieldAnnotObjectNumber = big.NewInt(1 << 0) + docFormsGet200ResponseFieldsItemUnknownWidgetsItemFieldPageObjectNumber = big.NewInt(1 << 1) +) + +type DocFormsGet200ResponseFieldsItemUnknownWidgetsItem struct { + AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocFormsGet200ResponseFieldsItemUnknownWidgetsItem) GetAnnotObjectNumber() int { + if d == nil { + return 0 + } + return d.AnnotObjectNumber +} + +func (d *DocFormsGet200ResponseFieldsItemUnknownWidgetsItem) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocFormsGet200ResponseFieldsItemUnknownWidgetsItem) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocFormsGet200ResponseFieldsItemUnknownWidgetsItem) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemUnknownWidgetsItem) SetAnnotObjectNumber(annotObjectNumber int) { + d.AnnotObjectNumber = annotObjectNumber + d.require(docFormsGet200ResponseFieldsItemUnknownWidgetsItemFieldAnnotObjectNumber) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet200ResponseFieldsItemUnknownWidgetsItem) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docFormsGet200ResponseFieldsItemUnknownWidgetsItemFieldPageObjectNumber) +} + +func (d *DocFormsGet200ResponseFieldsItemUnknownWidgetsItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet200ResponseFieldsItemUnknownWidgetsItem + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocFormsGet200ResponseFieldsItemUnknownWidgetsItem(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocFormsGet200ResponseFieldsItemUnknownWidgetsItem) MarshalJSON() ([]byte, error) { + type embed DocFormsGet200ResponseFieldsItemUnknownWidgetsItem + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocFormsGet200ResponseFieldsItemUnknownWidgetsItem) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocFormsGet200ResponseFormKind string + +const ( + DocFormsGet200ResponseFormKindNone DocFormsGet200ResponseFormKind = "none" + DocFormsGet200ResponseFormKindAcroform DocFormsGet200ResponseFormKind = "acroform" + DocFormsGet200ResponseFormKindXfa DocFormsGet200ResponseFormKind = "xfa" +) + +func NewDocFormsGet200ResponseFormKindFromString(s string) (DocFormsGet200ResponseFormKind, error) { + switch s { + case "none": + return DocFormsGet200ResponseFormKindNone, nil + case "acroform": + return DocFormsGet200ResponseFormKindAcroform, nil + case "xfa": + return DocFormsGet200ResponseFormKindXfa, nil + } + var t DocFormsGet200ResponseFormKind + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocFormsGet200ResponseFormKind) Ptr() *DocFormsGet200ResponseFormKind { + return &d +} + +var ( + docFormsGet404ResponseFieldName = big.NewInt(1 << 0) + docFormsGet404ResponseFieldCode = big.NewInt(1 << 1) + docFormsGet404ResponseFieldMessage = big.NewInt(1 << 2) + docFormsGet404ResponseFieldDetails = big.NewInt(1 << 3) +) + +type DocFormsGet404Response struct { + Name DocFormsGet404ResponseName `json:"name" url:"name"` + Code DocFormsGet404ResponseCode `json:"code" url:"code"` + Message string `json:"message" url:"message"` + Details map[string]any `json:"details,omitempty" url:"details,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocFormsGet404Response) GetName() DocFormsGet404ResponseName { + if d == nil { + return "" + } + return d.Name +} + +func (d *DocFormsGet404Response) GetCode() DocFormsGet404ResponseCode { + if d == nil { + return "" + } + return d.Code +} + +func (d *DocFormsGet404Response) GetMessage() string { + if d == nil { + return "" + } + return d.Message +} + +func (d *DocFormsGet404Response) GetDetails() map[string]any { + if d == nil { + return nil + } + return d.Details +} + +func (d *DocFormsGet404Response) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocFormsGet404Response) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetName sets the Name field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet404Response) SetName(name DocFormsGet404ResponseName) { + d.Name = name + d.require(docFormsGet404ResponseFieldName) +} + +// SetCode sets the Code field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet404Response) SetCode(code DocFormsGet404ResponseCode) { + d.Code = code + d.require(docFormsGet404ResponseFieldCode) +} + +// SetMessage sets the Message field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet404Response) SetMessage(message string) { + d.Message = message + d.require(docFormsGet404ResponseFieldMessage) +} + +// SetDetails sets the Details field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsGet404Response) SetDetails(details map[string]any) { + d.Details = details + d.require(docFormsGet404ResponseFieldDetails) +} + +func (d *DocFormsGet404Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsGet404Response + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocFormsGet404Response(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -125711,83 +144219,217 @@ func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar) UnmarshalJ return nil } -func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) +func (d *DocFormsGet404Response) MarshalJSON() ([]byte, error) { + type embed DocFormsGet404Response + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocFormsGet404Response) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocFormsGet404ResponseCode string + +const ( + DocFormsGet404ResponseCodeUnknown DocFormsGet404ResponseCode = "Unknown" + DocFormsGet404ResponseCodeInvalidArg DocFormsGet404ResponseCode = "InvalidArg" + DocFormsGet404ResponseCodeDocNotOpen DocFormsGet404ResponseCode = "DocNotOpen" + DocFormsGet404ResponseCodeDocOpenFailed DocFormsGet404ResponseCode = "DocOpenFailed" + DocFormsGet404ResponseCodeDocPasswordRequired DocFormsGet404ResponseCode = "DocPasswordRequired" + DocFormsGet404ResponseCodeDocPasswordIncorrect DocFormsGet404ResponseCode = "DocPasswordIncorrect" + DocFormsGet404ResponseCodeSharePasswordRequired DocFormsGet404ResponseCode = "SharePasswordRequired" + DocFormsGet404ResponseCodeAborted DocFormsGet404ResponseCode = "Aborted" + DocFormsGet404ResponseCodeNetwork DocFormsGet404ResponseCode = "Network" + DocFormsGet404ResponseCodeUnauthenticated DocFormsGet404ResponseCode = "Unauthenticated" + DocFormsGet404ResponseCodeForbidden DocFormsGet404ResponseCode = "Forbidden" + DocFormsGet404ResponseCodeNotFound DocFormsGet404ResponseCode = "NotFound" + DocFormsGet404ResponseCodeWireFormat DocFormsGet404ResponseCode = "WireFormat" + DocFormsGet404ResponseCodeRuntimeUnavailable DocFormsGet404ResponseCode = "RuntimeUnavailable" + DocFormsGet404ResponseCodeInvalidReference DocFormsGet404ResponseCode = "InvalidReference" + DocFormsGet404ResponseCodeWeakAnnotationSessionConflict DocFormsGet404ResponseCode = "WeakAnnotationSessionConflict" + DocFormsGet404ResponseCodeLayerVersionConflict DocFormsGet404ResponseCode = "LayerVersionConflict" + DocFormsGet404ResponseCodeNotImplemented DocFormsGet404ResponseCode = "NotImplemented" + DocFormsGet404ResponseCodeMalformedPdf DocFormsGet404ResponseCode = "MalformedPdf" + DocFormsGet404ResponseCodeSigningPending DocFormsGet404ResponseCode = "SigningPending" + DocFormsGet404ResponseCodeSigningExpired DocFormsGet404ResponseCode = "SigningExpired" + DocFormsGet404ResponseCodeSigningVersionMismatch DocFormsGet404ResponseCode = "SigningVersionMismatch" + DocFormsGet404ResponseCodeSignatureRefused DocFormsGet404ResponseCode = "SignatureRefused" + DocFormsGet404ResponseCodeProtectedDocument DocFormsGet404ResponseCode = "ProtectedDocument" + DocFormsGet404ResponseCodeStaleBase DocFormsGet404ResponseCode = "StaleBase" +) + +func NewDocFormsGet404ResponseCodeFromString(s string) (DocFormsGet404ResponseCode, error) { + switch s { + case "Unknown": + return DocFormsGet404ResponseCodeUnknown, nil + case "InvalidArg": + return DocFormsGet404ResponseCodeInvalidArg, nil + case "DocNotOpen": + return DocFormsGet404ResponseCodeDocNotOpen, nil + case "DocOpenFailed": + return DocFormsGet404ResponseCodeDocOpenFailed, nil + case "DocPasswordRequired": + return DocFormsGet404ResponseCodeDocPasswordRequired, nil + case "DocPasswordIncorrect": + return DocFormsGet404ResponseCodeDocPasswordIncorrect, nil + case "SharePasswordRequired": + return DocFormsGet404ResponseCodeSharePasswordRequired, nil + case "Aborted": + return DocFormsGet404ResponseCodeAborted, nil + case "Network": + return DocFormsGet404ResponseCodeNetwork, nil + case "Unauthenticated": + return DocFormsGet404ResponseCodeUnauthenticated, nil + case "Forbidden": + return DocFormsGet404ResponseCodeForbidden, nil + case "NotFound": + return DocFormsGet404ResponseCodeNotFound, nil + case "WireFormat": + return DocFormsGet404ResponseCodeWireFormat, nil + case "RuntimeUnavailable": + return DocFormsGet404ResponseCodeRuntimeUnavailable, nil + case "InvalidReference": + return DocFormsGet404ResponseCodeInvalidReference, nil + case "WeakAnnotationSessionConflict": + return DocFormsGet404ResponseCodeWeakAnnotationSessionConflict, nil + case "LayerVersionConflict": + return DocFormsGet404ResponseCodeLayerVersionConflict, nil + case "NotImplemented": + return DocFormsGet404ResponseCodeNotImplemented, nil + case "MalformedPdf": + return DocFormsGet404ResponseCodeMalformedPdf, nil + case "SigningPending": + return DocFormsGet404ResponseCodeSigningPending, nil + case "SigningExpired": + return DocFormsGet404ResponseCodeSigningExpired, nil + case "SigningVersionMismatch": + return DocFormsGet404ResponseCodeSigningVersionMismatch, nil + case "SignatureRefused": + return DocFormsGet404ResponseCodeSignatureRefused, nil + case "ProtectedDocument": + return DocFormsGet404ResponseCodeProtectedDocument, nil + case "StaleBase": + return DocFormsGet404ResponseCodeStaleBase, nil + } + var t DocFormsGet404ResponseCode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocFormsGet404ResponseCode) Ptr() *DocFormsGet404ResponseCode { + return &d } -func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value +type DocFormsGet404ResponseName string + +const ( + DocFormsGet404ResponseNameEngineError DocFormsGet404ResponseName = "EngineError" +) + +func NewDocFormsGet404ResponseNameFromString(s string) (DocFormsGet404ResponseName, error) { + switch s { + case "EngineError": + return DocFormsGet404ResponseNameEngineError, nil } - return fmt.Sprintf("%#v", d) + var t DocFormsGet404ResponseName + return "", fmt.Errorf("%s is not a valid %T", s, t) } -type DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported struct { +func (d DocFormsGet404ResponseName) Ptr() *DocFormsGet404ResponseName { + return &d +} + +var ( + docFormsImportData200ResponseFieldMeta = big.NewInt(1 << 0) +) + +type DocFormsImportData200Response struct { + Meta *DocFormsImportData200ResponseMeta `json:"meta" url:"meta"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` - extraProperties map[string]interface{} - rawJSON json.RawMessage + ExtraProperties map[string]interface{} `json:"-" url:"-"` + + rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported) GetExtraProperties() map[string]interface{} { +func (d *DocFormsImportData200Response) GetMeta() *DocFormsImportData200ResponseMeta { if d == nil { return nil } - return d.extraProperties + return d.Meta } -func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported) require(field *big.Int) { +func (d *DocFormsImportData200Response) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.ExtraProperties +} + +func (d *DocFormsImportData200Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { +// SetMeta sets the Meta field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsImportData200Response) SetMeta(meta *DocFormsImportData200ResponseMeta) { + d.Meta = meta + d.require(docFormsImportData200ResponseFieldMeta) +} + +func (d *DocFormsImportData200Response) UnmarshalJSON(data []byte) error { + type embed DocFormsImportData200Response + var unmarshaler = struct { + embed + }{ + embed: embed(*d), + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported(value) + *d = DocFormsImportData200Response(unmarshaler.embed) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err } - d.extraProperties = extraProperties + d.ExtraProperties = extraProperties d.rawJSON = json.RawMessage(data) return nil } -func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported +func (d *DocFormsImportData200Response) MarshalJSON() ([]byte, error) { + type embed DocFormsImportData200Response var marshaler = struct { embed }{ embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return internal.MarshalJSONWithExtraProperties(explicitMarshaler, d.ExtraProperties) } -func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported) String() string { +func (d *DocFormsImportData200Response) String() string { if d == nil { return "" } @@ -125803,17 +144445,13 @@ func (d *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported) Strin } var ( - docFormsGet200ResponseFieldsItemTextFlagsFieldReadOnly = big.NewInt(1 << 0) - docFormsGet200ResponseFieldsItemTextFlagsFieldRequired = big.NewInt(1 << 1) - docFormsGet200ResponseFieldsItemTextFlagsFieldNoExport = big.NewInt(1 << 2) - docFormsGet200ResponseFieldsItemTextFlagsFieldRaw = big.NewInt(1 << 3) + docFormsImportData200ResponseMetaFieldAffectedPages = big.NewInt(1 << 0) + docFormsImportData200ResponseMetaFieldCacheDelta = big.NewInt(1 << 1) ) -type DocFormsGet200ResponseFieldsItemTextFlags struct { - ReadOnly bool `json:"readOnly" url:"readOnly"` - Required bool `json:"required" url:"required"` - NoExport bool `json:"noExport" url:"noExport"` - Raw int `json:"raw" url:"raw"` +type DocFormsImportData200ResponseMeta struct { + AffectedPages []*DocFormsImportData200ResponseMetaAffectedPagesItem `json:"affectedPages" url:"affectedPages"` + CacheDelta *DocFormsImportData200ResponseMetaCacheDelta `json:"cacheDelta,omitempty" url:"cacheDelta,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -125822,83 +144460,55 @@ type DocFormsGet200ResponseFieldsItemTextFlags struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemTextFlags) GetReadOnly() bool { - if d == nil { - return false - } - return d.ReadOnly -} - -func (d *DocFormsGet200ResponseFieldsItemTextFlags) GetRequired() bool { - if d == nil { - return false - } - return d.Required -} - -func (d *DocFormsGet200ResponseFieldsItemTextFlags) GetNoExport() bool { +func (d *DocFormsImportData200ResponseMeta) GetAffectedPages() []*DocFormsImportData200ResponseMetaAffectedPagesItem { if d == nil { - return false + return nil } - return d.NoExport + return d.AffectedPages } -func (d *DocFormsGet200ResponseFieldsItemTextFlags) GetRaw() int { +func (d *DocFormsImportData200ResponseMeta) GetCacheDelta() *DocFormsImportData200ResponseMetaCacheDelta { if d == nil { - return 0 + return nil } - return d.Raw + return d.CacheDelta } -func (d *DocFormsGet200ResponseFieldsItemTextFlags) GetExtraProperties() map[string]interface{} { +func (d *DocFormsImportData200ResponseMeta) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemTextFlags) require(field *big.Int) { +func (d *DocFormsImportData200ResponseMeta) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetReadOnly sets the ReadOnly field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemTextFlags) SetReadOnly(readOnly bool) { - d.ReadOnly = readOnly - d.require(docFormsGet200ResponseFieldsItemTextFlagsFieldReadOnly) -} - -// SetRequired sets the Required field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemTextFlags) SetRequired(required bool) { - d.Required = required - d.require(docFormsGet200ResponseFieldsItemTextFlagsFieldRequired) -} - -// SetNoExport sets the NoExport field and marks it as non-optional; +// SetAffectedPages sets the AffectedPages field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemTextFlags) SetNoExport(noExport bool) { - d.NoExport = noExport - d.require(docFormsGet200ResponseFieldsItemTextFlagsFieldNoExport) +func (d *DocFormsImportData200ResponseMeta) SetAffectedPages(affectedPages []*DocFormsImportData200ResponseMetaAffectedPagesItem) { + d.AffectedPages = affectedPages + d.require(docFormsImportData200ResponseMetaFieldAffectedPages) } -// SetRaw sets the Raw field and marks it as non-optional; +// SetCacheDelta sets the CacheDelta field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemTextFlags) SetRaw(raw int) { - d.Raw = raw - d.require(docFormsGet200ResponseFieldsItemTextFlagsFieldRaw) +func (d *DocFormsImportData200ResponseMeta) SetCacheDelta(cacheDelta *DocFormsImportData200ResponseMetaCacheDelta) { + d.CacheDelta = cacheDelta + d.require(docFormsImportData200ResponseMetaFieldCacheDelta) } -func (d *DocFormsGet200ResponseFieldsItemTextFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemTextFlags +func (d *DocFormsImportData200ResponseMeta) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsImportData200ResponseMeta var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemTextFlags(value) + *d = DocFormsImportData200ResponseMeta(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -125908,8 +144518,8 @@ func (d *DocFormsGet200ResponseFieldsItemTextFlags) UnmarshalJSON(data []byte) e return nil } -func (d *DocFormsGet200ResponseFieldsItemTextFlags) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemTextFlags +func (d *DocFormsImportData200ResponseMeta) MarshalJSON() ([]byte, error) { + type embed DocFormsImportData200ResponseMeta var marshaler = struct { embed }{ @@ -125919,7 +144529,7 @@ func (d *DocFormsGet200ResponseFieldsItemTextFlags) MarshalJSON() ([]byte, error return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemTextFlags) String() string { +func (d *DocFormsImportData200ResponseMeta) String() string { if d == nil { return "" } @@ -125934,203 +144544,87 @@ func (d *DocFormsGet200ResponseFieldsItemTextFlags) String() string { return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemTextOrigin string - -const ( - DocFormsGet200ResponseFieldsItemTextOriginAcroform DocFormsGet200ResponseFieldsItemTextOrigin = "acroform" - DocFormsGet200ResponseFieldsItemTextOriginRecovered DocFormsGet200ResponseFieldsItemTextOrigin = "recovered" +var ( + docFormsImportData200ResponseMetaAffectedPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) + docFormsImportData200ResponseMetaAffectedPagesItemFieldRevision = big.NewInt(1 << 1) + docFormsImportData200ResponseMetaAffectedPagesItemFieldWeakAnnotationState = big.NewInt(1 << 2) ) -func NewDocFormsGet200ResponseFieldsItemTextOriginFromString(s string) (DocFormsGet200ResponseFieldsItemTextOrigin, error) { - switch s { - case "acroform": - return DocFormsGet200ResponseFieldsItemTextOriginAcroform, nil - case "recovered": - return DocFormsGet200ResponseFieldsItemTextOriginRecovered, nil - } - var t DocFormsGet200ResponseFieldsItemTextOrigin - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocFormsGet200ResponseFieldsItemTextOrigin) Ptr() *DocFormsGet200ResponseFieldsItemTextOrigin { - return &d -} +type DocFormsImportData200ResponseMetaAffectedPagesItem struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Revision *DocFormsImportData200ResponseMetaAffectedPagesItemRevision `json:"revision" url:"revision"` + WeakAnnotationState *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState `json:"weakAnnotationState" url:"weakAnnotationState"` -type DocFormsGet200ResponseFieldsItemTextRef struct { - Kind string - ObjectNumber *DocFormsGet200ResponseFieldsItemTextRefObjectNumber - Fqn *DocFormsGet200ResponseFieldsItemTextRefFqn + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` - rawJSON json.RawMessage + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemTextRef) GetKind() string { +func (d *DocFormsImportData200ResponseMetaAffectedPagesItem) GetPageObjectNumber() int { if d == nil { - return "" + return 0 } - return d.Kind + return d.PageObjectNumber } -func (d *DocFormsGet200ResponseFieldsItemTextRef) GetObjectNumber() *DocFormsGet200ResponseFieldsItemTextRefObjectNumber { +func (d *DocFormsImportData200ResponseMetaAffectedPagesItem) GetRevision() *DocFormsImportData200ResponseMetaAffectedPagesItemRevision { if d == nil { return nil } - return d.ObjectNumber + return d.Revision } -func (d *DocFormsGet200ResponseFieldsItemTextRef) GetFqn() *DocFormsGet200ResponseFieldsItemTextRefFqn { +func (d *DocFormsImportData200ResponseMetaAffectedPagesItem) GetWeakAnnotationState() *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState { if d == nil { return nil } - return d.Fqn -} - -func (d *DocFormsGet200ResponseFieldsItemTextRef) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocFormsGet200ResponseFieldsItemTextRefObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "fqn": - value := new(DocFormsGet200ResponseFieldsItemTextRefFqn) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Fqn = value - } - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d DocFormsGet200ResponseFieldsItemTextRef) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Fqn != nil { - return internal.MarshalJSONWithExtraProperty(d.Fqn, "kind", "fqn") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil - } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) -} - -type DocFormsGet200ResponseFieldsItemTextRefVisitor interface { - VisitObjectNumber(*DocFormsGet200ResponseFieldsItemTextRefObjectNumber) error - VisitFqn(*DocFormsGet200ResponseFieldsItemTextRefFqn) error -} - -func (d *DocFormsGet200ResponseFieldsItemTextRef) Accept(visitor DocFormsGet200ResponseFieldsItemTextRefVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) - } - if d.Fqn != nil { - return visitor.VisitFqn(d.Fqn) - } - return fmt.Errorf("type %T does not define a non-empty union type", d) -} - -func (d *DocFormsGet200ResponseFieldsItemTextRef) validate() error { - if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Fqn != nil { - fields = append(fields, "fqn") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } - } - return nil -} - -var ( - docFormsGet200ResponseFieldsItemTextRefFqnFieldName = big.NewInt(1 << 0) -) - -type DocFormsGet200ResponseFieldsItemTextRefFqn struct { - Name string `json:"name" url:"name"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage -} - -func (d *DocFormsGet200ResponseFieldsItemTextRefFqn) GetName() string { - if d == nil { - return "" - } - return d.Name + return d.WeakAnnotationState } -func (d *DocFormsGet200ResponseFieldsItemTextRefFqn) GetExtraProperties() map[string]interface{} { +func (d *DocFormsImportData200ResponseMetaAffectedPagesItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemTextRefFqn) require(field *big.Int) { +func (d *DocFormsImportData200ResponseMetaAffectedPagesItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetName sets the Name field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemTextRefFqn) SetName(name string) { - d.Name = name - d.require(docFormsGet200ResponseFieldsItemTextRefFqnFieldName) +func (d *DocFormsImportData200ResponseMetaAffectedPagesItem) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docFormsImportData200ResponseMetaAffectedPagesItemFieldPageObjectNumber) } -func (d *DocFormsGet200ResponseFieldsItemTextRefFqn) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemTextRefFqn +// SetRevision sets the Revision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsImportData200ResponseMetaAffectedPagesItem) SetRevision(revision *DocFormsImportData200ResponseMetaAffectedPagesItemRevision) { + d.Revision = revision + d.require(docFormsImportData200ResponseMetaAffectedPagesItemFieldRevision) +} + +// SetWeakAnnotationState sets the WeakAnnotationState field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsImportData200ResponseMetaAffectedPagesItem) SetWeakAnnotationState(weakAnnotationState *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState) { + d.WeakAnnotationState = weakAnnotationState + d.require(docFormsImportData200ResponseMetaAffectedPagesItemFieldWeakAnnotationState) +} + +func (d *DocFormsImportData200ResponseMetaAffectedPagesItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsImportData200ResponseMetaAffectedPagesItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemTextRefFqn(value) + *d = DocFormsImportData200ResponseMetaAffectedPagesItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -126140,8 +144634,8 @@ func (d *DocFormsGet200ResponseFieldsItemTextRefFqn) UnmarshalJSON(data []byte) return nil } -func (d *DocFormsGet200ResponseFieldsItemTextRefFqn) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemTextRefFqn +func (d *DocFormsImportData200ResponseMetaAffectedPagesItem) MarshalJSON() ([]byte, error) { + type embed DocFormsImportData200ResponseMetaAffectedPagesItem var marshaler = struct { embed }{ @@ -126151,7 +144645,7 @@ func (d *DocFormsGet200ResponseFieldsItemTextRefFqn) MarshalJSON() ([]byte, erro return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemTextRefFqn) String() string { +func (d *DocFormsImportData200ResponseMetaAffectedPagesItem) String() string { if d == nil { return "" } @@ -126167,11 +144661,15 @@ func (d *DocFormsGet200ResponseFieldsItemTextRefFqn) String() string { } var ( - docFormsGet200ResponseFieldsItemTextRefObjectNumberFieldFieldObjectNumber = big.NewInt(1 << 0) + docFormsImportData200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID = big.NewInt(1 << 0) + docFormsImportData200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docFormsImportData200ResponseMetaAffectedPagesItemRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocFormsGet200ResponseFieldsItemTextRefObjectNumber struct { - FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` +type DocFormsImportData200ResponseMetaAffectedPagesItemRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -126180,41 +144678,69 @@ type DocFormsGet200ResponseFieldsItemTextRefObjectNumber struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemTextRefObjectNumber) GetFieldObjectNumber() int { +func (d *DocFormsImportData200ResponseMetaAffectedPagesItemRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocFormsImportData200ResponseMetaAffectedPagesItemRevision) GetPageObjectNumber() int { if d == nil { return 0 } - return d.FieldObjectNumber + return d.PageObjectNumber } -func (d *DocFormsGet200ResponseFieldsItemTextRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocFormsImportData200ResponseMetaAffectedPagesItemRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocFormsImportData200ResponseMetaAffectedPagesItemRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemTextRefObjectNumber) require(field *big.Int) { +func (d *DocFormsImportData200ResponseMetaAffectedPagesItemRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetFieldObjectNumber sets the FieldObjectNumber field and marks it as non-optional; +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemTextRefObjectNumber) SetFieldObjectNumber(fieldObjectNumber int) { - d.FieldObjectNumber = fieldObjectNumber - d.require(docFormsGet200ResponseFieldsItemTextRefObjectNumberFieldFieldObjectNumber) +func (d *DocFormsImportData200ResponseMetaAffectedPagesItemRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docFormsImportData200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID) } -func (d *DocFormsGet200ResponseFieldsItemTextRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemTextRefObjectNumber +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsImportData200ResponseMetaAffectedPagesItemRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docFormsImportData200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber) +} + +// SetGeneration sets the Generation field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsImportData200ResponseMetaAffectedPagesItemRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docFormsImportData200ResponseMetaAffectedPagesItemRevisionFieldGeneration) +} + +func (d *DocFormsImportData200ResponseMetaAffectedPagesItemRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsImportData200ResponseMetaAffectedPagesItemRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemTextRefObjectNumber(value) + *d = DocFormsImportData200ResponseMetaAffectedPagesItemRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -126224,8 +144750,8 @@ func (d *DocFormsGet200ResponseFieldsItemTextRefObjectNumber) UnmarshalJSON(data return nil } -func (d *DocFormsGet200ResponseFieldsItemTextRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemTextRefObjectNumber +func (d *DocFormsImportData200ResponseMetaAffectedPagesItemRevision) MarshalJSON() ([]byte, error) { + type embed DocFormsImportData200ResponseMetaAffectedPagesItemRevision var marshaler = struct { embed }{ @@ -126235,7 +144761,7 @@ func (d *DocFormsGet200ResponseFieldsItemTextRefObjectNumber) MarshalJSON() ([]b return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemTextRefObjectNumber) String() string { +func (d *DocFormsImportData200ResponseMetaAffectedPagesItemRevision) String() string { if d == nil { return "" } @@ -126250,107 +144776,73 @@ func (d *DocFormsGet200ResponseFieldsItemTextRefObjectNumber) String() string { return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemTextValueEntry struct { - Kind string - None *DocFormsGet200ResponseFieldsItemTextValueEntryNone - Scalar *DocFormsGet200ResponseFieldsItemTextValueEntryScalar - Array *DocFormsGet200ResponseFieldsItemTextValueEntryArray - Unsupported *DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported +type DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState struct { + Kind string + Unknown *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + Known *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemTextValueEntry) GetKind() string { +func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocFormsGet200ResponseFieldsItemTextValueEntry) GetNone() *DocFormsGet200ResponseFieldsItemTextValueEntryNone { - if d == nil { - return nil - } - return d.None -} - -func (d *DocFormsGet200ResponseFieldsItemTextValueEntry) GetScalar() *DocFormsGet200ResponseFieldsItemTextValueEntryScalar { - if d == nil { - return nil - } - return d.Scalar -} - -func (d *DocFormsGet200ResponseFieldsItemTextValueEntry) GetArray() *DocFormsGet200ResponseFieldsItemTextValueEntryArray { +func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState) GetUnknown() *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown { if d == nil { return nil } - return d.Array + return d.Unknown } -func (d *DocFormsGet200ResponseFieldsItemTextValueEntry) GetUnsupported() *DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported { +func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKnown() *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown { if d == nil { return nil } - return d.Unsupported + return d.Known } -func (d *DocFormsGet200ResponseFieldsItemTextValueEntry) UnmarshalJSON(data []byte) error { +func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } if err := json.Unmarshal(data, &unmarshaler); err != nil { return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "none": - value := new(DocFormsGet200ResponseFieldsItemTextValueEntryNone) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.None = value - case "scalar": - value := new(DocFormsGet200ResponseFieldsItemTextValueEntryScalar) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Scalar = value - case "array": - value := new(DocFormsGet200ResponseFieldsItemTextValueEntryArray) + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "unknown": + value := new(DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) if err := json.Unmarshal(data, &value); err != nil { return err } - d.Array = value - case "unsupported": - value := new(DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported) + d.Unknown = value + case "known": + value := new(DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) if err := json.Unmarshal(data, &value); err != nil { return err } - d.Unsupported = value + d.Known = value } d.rawJSON = json.RawMessage(data) return nil } -func (d DocFormsGet200ResponseFieldsItemTextValueEntry) MarshalJSON() ([]byte, error) { +func (d DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } - if d.None != nil { - return internal.MarshalJSONWithExtraProperty(d.None, "kind", "none") - } - if d.Scalar != nil { - return internal.MarshalJSONWithExtraProperty(d.Scalar, "kind", "scalar") - } - if d.Array != nil { - return internal.MarshalJSONWithExtraProperty(d.Array, "kind", "array") + if d.Unknown != nil { + return internal.MarshalJSONWithExtraProperty(d.Unknown, "kind", "unknown") } - if d.Unsupported != nil { - return internal.MarshalJSONWithExtraProperty(d.Unsupported, "kind", "unsupported") + if d.Known != nil { + return internal.MarshalJSONWithExtraProperty(d.Known, "kind", "known") } if len(d.rawJSON) > 0 { return d.rawJSON, nil @@ -126358,45 +144850,31 @@ func (d DocFormsGet200ResponseFieldsItemTextValueEntry) MarshalJSON() ([]byte, e return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocFormsGet200ResponseFieldsItemTextValueEntryVisitor interface { - VisitNone(*DocFormsGet200ResponseFieldsItemTextValueEntryNone) error - VisitScalar(*DocFormsGet200ResponseFieldsItemTextValueEntryScalar) error - VisitArray(*DocFormsGet200ResponseFieldsItemTextValueEntryArray) error - VisitUnsupported(*DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported) error +type DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor interface { + VisitUnknown(*DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) error + VisitKnown(*DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) error } -func (d *DocFormsGet200ResponseFieldsItemTextValueEntry) Accept(visitor DocFormsGet200ResponseFieldsItemTextValueEntryVisitor) error { - if d.None != nil { - return visitor.VisitNone(d.None) - } - if d.Scalar != nil { - return visitor.VisitScalar(d.Scalar) - } - if d.Array != nil { - return visitor.VisitArray(d.Array) +func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState) Accept(visitor DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor) error { + if d.Unknown != nil { + return visitor.VisitUnknown(d.Unknown) } - if d.Unsupported != nil { - return visitor.VisitUnsupported(d.Unsupported) + if d.Known != nil { + return visitor.VisitKnown(d.Known) } return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocFormsGet200ResponseFieldsItemTextValueEntry) validate() error { +func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } var fields []string - if d.None != nil { - fields = append(fields, "none") - } - if d.Scalar != nil { - fields = append(fields, "scalar") - } - if d.Array != nil { - fields = append(fields, "array") + if d.Unknown != nil { + fields = append(fields, "unknown") } - if d.Unsupported != nil { - fields = append(fields, "unsupported") + if d.Known != nil { + fields = append(fields, "known") } if len(fields) == 0 { if d.Kind != "" { @@ -126425,11 +144903,11 @@ func (d *DocFormsGet200ResponseFieldsItemTextValueEntry) validate() error { } var ( - docFormsGet200ResponseFieldsItemTextValueEntryArrayFieldValues = big.NewInt(1 << 0) + docFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations = big.NewInt(1 << 0) ) -type DocFormsGet200ResponseFieldsItemTextValueEntryArray struct { - Values []string `json:"values" url:"values"` +type DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown struct { + HasAnyWeakAnnotations bool `json:"hasAnyWeakAnnotations" url:"hasAnyWeakAnnotations"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -126438,41 +144916,41 @@ type DocFormsGet200ResponseFieldsItemTextValueEntryArray struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemTextValueEntryArray) GetValues() []string { +func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetHasAnyWeakAnnotations() bool { if d == nil { - return nil + return false } - return d.Values + return d.HasAnyWeakAnnotations } -func (d *DocFormsGet200ResponseFieldsItemTextValueEntryArray) GetExtraProperties() map[string]interface{} { +func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemTextValueEntryArray) require(field *big.Int) { +func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetValues sets the Values field and marks it as non-optional; +// SetHasAnyWeakAnnotations sets the HasAnyWeakAnnotations field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemTextValueEntryArray) SetValues(values []string) { - d.Values = values - d.require(docFormsGet200ResponseFieldsItemTextValueEntryArrayFieldValues) +func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) SetHasAnyWeakAnnotations(hasAnyWeakAnnotations bool) { + d.HasAnyWeakAnnotations = hasAnyWeakAnnotations + d.require(docFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations) } -func (d *DocFormsGet200ResponseFieldsItemTextValueEntryArray) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemTextValueEntryArray +func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemTextValueEntryArray(value) + *d = DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -126482,8 +144960,8 @@ func (d *DocFormsGet200ResponseFieldsItemTextValueEntryArray) UnmarshalJSON(data return nil } -func (d *DocFormsGet200ResponseFieldsItemTextValueEntryArray) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemTextValueEntryArray +func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) MarshalJSON() ([]byte, error) { + type embed DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown var marshaler = struct { embed }{ @@ -126493,7 +144971,7 @@ func (d *DocFormsGet200ResponseFieldsItemTextValueEntryArray) MarshalJSON() ([]b return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemTextValueEntryArray) String() string { +func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) String() string { if d == nil { return "" } @@ -126508,7 +144986,7 @@ func (d *DocFormsGet200ResponseFieldsItemTextValueEntryArray) String() string { return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemTextValueEntryNone struct { +type DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -126517,27 +144995,27 @@ type DocFormsGet200ResponseFieldsItemTextValueEntryNone struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemTextValueEntryNone) GetExtraProperties() map[string]interface{} { +func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemTextValueEntryNone) require(field *big.Int) { +func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocFormsGet200ResponseFieldsItemTextValueEntryNone) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemTextValueEntryNone +func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemTextValueEntryNone(value) + *d = DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -126547,8 +145025,8 @@ func (d *DocFormsGet200ResponseFieldsItemTextValueEntryNone) UnmarshalJSON(data return nil } -func (d *DocFormsGet200ResponseFieldsItemTextValueEntryNone) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemTextValueEntryNone +func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) MarshalJSON() ([]byte, error) { + type embed DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown var marshaler = struct { embed }{ @@ -126558,7 +145036,7 @@ func (d *DocFormsGet200ResponseFieldsItemTextValueEntryNone) MarshalJSON() ([]by return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemTextValueEntryNone) String() string { +func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) String() string { if d == nil { return "" } @@ -126574,11 +145052,21 @@ func (d *DocFormsGet200ResponseFieldsItemTextValueEntryNone) String() string { } var ( - docFormsGet200ResponseFieldsItemTextValueEntryScalarFieldValue = big.NewInt(1 << 0) + docFormsImportData200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) + docFormsImportData200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) + docFormsImportData200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) + docFormsImportData200ResponseMetaCacheDeltaFieldLayerVersion = big.NewInt(1 << 3) + docFormsImportData200ResponseMetaCacheDeltaFieldWorking = big.NewInt(1 << 4) + docFormsImportData200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 5) ) -type DocFormsGet200ResponseFieldsItemTextValueEntryScalar struct { - Value string `json:"value" url:"value"` +type DocFormsImportData200ResponseMetaCacheDelta struct { + PreviousDocVersion int `json:"previousDocVersion" url:"previousDocVersion"` + DocVersion int `json:"docVersion" url:"docVersion"` + AnnotationsVersion *int `json:"annotationsVersion,omitempty" url:"annotationsVersion,omitempty"` + LayerVersion *int `json:"layerVersion,omitempty" url:"layerVersion,omitempty"` + Working *bool `json:"working,omitempty" url:"working,omitempty"` + Pages []*DocFormsImportData200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -126587,41 +145075,111 @@ type DocFormsGet200ResponseFieldsItemTextValueEntryScalar struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemTextValueEntryScalar) GetValue() string { +func (d *DocFormsImportData200ResponseMetaCacheDelta) GetPreviousDocVersion() int { if d == nil { - return "" + return 0 } - return d.Value + return d.PreviousDocVersion } -func (d *DocFormsGet200ResponseFieldsItemTextValueEntryScalar) GetExtraProperties() map[string]interface{} { +func (d *DocFormsImportData200ResponseMetaCacheDelta) GetDocVersion() int { + if d == nil { + return 0 + } + return d.DocVersion +} + +func (d *DocFormsImportData200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { + if d == nil { + return nil + } + return d.AnnotationsVersion +} + +func (d *DocFormsImportData200ResponseMetaCacheDelta) GetLayerVersion() *int { + if d == nil { + return nil + } + return d.LayerVersion +} + +func (d *DocFormsImportData200ResponseMetaCacheDelta) GetWorking() *bool { + if d == nil { + return nil + } + return d.Working +} + +func (d *DocFormsImportData200ResponseMetaCacheDelta) GetPages() []*DocFormsImportData200ResponseMetaCacheDeltaPagesItem { + if d == nil { + return nil + } + return d.Pages +} + +func (d *DocFormsImportData200ResponseMetaCacheDelta) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemTextValueEntryScalar) require(field *big.Int) { +func (d *DocFormsImportData200ResponseMetaCacheDelta) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetValue sets the Value field and marks it as non-optional; +// SetPreviousDocVersion sets the PreviousDocVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemTextValueEntryScalar) SetValue(value string) { - d.Value = value - d.require(docFormsGet200ResponseFieldsItemTextValueEntryScalarFieldValue) +func (d *DocFormsImportData200ResponseMetaCacheDelta) SetPreviousDocVersion(previousDocVersion int) { + d.PreviousDocVersion = previousDocVersion + d.require(docFormsImportData200ResponseMetaCacheDeltaFieldPreviousDocVersion) } -func (d *DocFormsGet200ResponseFieldsItemTextValueEntryScalar) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemTextValueEntryScalar +// SetDocVersion sets the DocVersion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsImportData200ResponseMetaCacheDelta) SetDocVersion(docVersion int) { + d.DocVersion = docVersion + d.require(docFormsImportData200ResponseMetaCacheDeltaFieldDocVersion) +} + +// SetAnnotationsVersion sets the AnnotationsVersion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsImportData200ResponseMetaCacheDelta) SetAnnotationsVersion(annotationsVersion *int) { + d.AnnotationsVersion = annotationsVersion + d.require(docFormsImportData200ResponseMetaCacheDeltaFieldAnnotationsVersion) +} + +// SetLayerVersion sets the LayerVersion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsImportData200ResponseMetaCacheDelta) SetLayerVersion(layerVersion *int) { + d.LayerVersion = layerVersion + d.require(docFormsImportData200ResponseMetaCacheDeltaFieldLayerVersion) +} + +// SetWorking sets the Working field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsImportData200ResponseMetaCacheDelta) SetWorking(working *bool) { + d.Working = working + d.require(docFormsImportData200ResponseMetaCacheDeltaFieldWorking) +} + +// SetPages sets the Pages field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsImportData200ResponseMetaCacheDelta) SetPages(pages []*DocFormsImportData200ResponseMetaCacheDeltaPagesItem) { + d.Pages = pages + d.require(docFormsImportData200ResponseMetaCacheDeltaFieldPages) +} + +func (d *DocFormsImportData200ResponseMetaCacheDelta) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsImportData200ResponseMetaCacheDelta var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemTextValueEntryScalar(value) + *d = DocFormsImportData200ResponseMetaCacheDelta(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -126631,8 +145189,8 @@ func (d *DocFormsGet200ResponseFieldsItemTextValueEntryScalar) UnmarshalJSON(dat return nil } -func (d *DocFormsGet200ResponseFieldsItemTextValueEntryScalar) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemTextValueEntryScalar +func (d *DocFormsImportData200ResponseMetaCacheDelta) MarshalJSON() ([]byte, error) { + type embed DocFormsImportData200ResponseMetaCacheDelta var marshaler = struct { embed }{ @@ -126642,7 +145200,7 @@ func (d *DocFormsGet200ResponseFieldsItemTextValueEntryScalar) MarshalJSON() ([] return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemTextValueEntryScalar) String() string { +func (d *DocFormsImportData200ResponseMetaCacheDelta) String() string { if d == nil { return "" } @@ -126657,7 +145215,14 @@ func (d *DocFormsGet200ResponseFieldsItemTextValueEntryScalar) String() string { return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported struct { +var ( + docFormsImportData200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) + docFormsImportData200ResponseMetaCacheDeltaPagesItemFieldCache = big.NewInt(1 << 1) +) + +type DocFormsImportData200ResponseMetaCacheDeltaPagesItem struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Cache *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache `json:"cache" url:"cache"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -126666,27 +145231,55 @@ type DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported) GetExtraProperties() map[string]interface{} { +func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItem) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItem) GetCache() *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache { + if d == nil { + return nil + } + return d.Cache +} + +func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported) require(field *big.Int) { +func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItem) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docFormsImportData200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber) +} + +// SetCache sets the Cache field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItem) SetCache(cache *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache) { + d.Cache = cache + d.require(docFormsImportData200ResponseMetaCacheDeltaPagesItemFieldCache) +} + +func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsImportData200ResponseMetaCacheDeltaPagesItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported(value) + *d = DocFormsImportData200ResponseMetaCacheDeltaPagesItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -126696,8 +145289,8 @@ func (d *DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported) UnmarshalJSO return nil } -func (d *DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported +func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItem) MarshalJSON() ([]byte, error) { + type embed DocFormsImportData200ResponseMetaCacheDeltaPagesItem var marshaler = struct { embed }{ @@ -126707,7 +145300,7 @@ func (d *DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported) MarshalJSON( return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported) String() string { +func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItem) String() string { if d == nil { return "" } @@ -126723,13 +145316,13 @@ func (d *DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported) String() str } var ( - docFormsGet200ResponseFieldsItemTextWidgetsItemFieldAnnotObjectNumber = big.NewInt(1 << 0) - docFormsGet200ResponseFieldsItemTextWidgetsItemFieldPageObjectNumber = big.NewInt(1 << 1) + docFormsImportData200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion = big.NewInt(1 << 0) + docFormsImportData200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion = big.NewInt(1 << 1) ) -type DocFormsGet200ResponseFieldsItemTextWidgetsItem struct { - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` +type DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache struct { + ContentVersion int `json:"contentVersion" url:"contentVersion"` + AnnotationVersion int `json:"annotationVersion" url:"annotationVersion"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -126738,55 +145331,55 @@ type DocFormsGet200ResponseFieldsItemTextWidgetsItem struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemTextWidgetsItem) GetAnnotObjectNumber() int { +func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache) GetContentVersion() int { if d == nil { return 0 } - return d.AnnotObjectNumber + return d.ContentVersion } -func (d *DocFormsGet200ResponseFieldsItemTextWidgetsItem) GetPageObjectNumber() int { +func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache) GetAnnotationVersion() int { if d == nil { return 0 } - return d.PageObjectNumber + return d.AnnotationVersion } -func (d *DocFormsGet200ResponseFieldsItemTextWidgetsItem) GetExtraProperties() map[string]interface{} { +func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemTextWidgetsItem) require(field *big.Int) { +func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetContentVersion sets the ContentVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemTextWidgetsItem) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docFormsGet200ResponseFieldsItemTextWidgetsItemFieldAnnotObjectNumber) +func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache) SetContentVersion(contentVersion int) { + d.ContentVersion = contentVersion + d.require(docFormsImportData200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetAnnotationVersion sets the AnnotationVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemTextWidgetsItem) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docFormsGet200ResponseFieldsItemTextWidgetsItemFieldPageObjectNumber) +func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache) SetAnnotationVersion(annotationVersion int) { + d.AnnotationVersion = annotationVersion + d.require(docFormsImportData200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion) } -func (d *DocFormsGet200ResponseFieldsItemTextWidgetsItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemTextWidgetsItem +func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemTextWidgetsItem(value) + *d = DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -126796,8 +145389,8 @@ func (d *DocFormsGet200ResponseFieldsItemTextWidgetsItem) UnmarshalJSON(data []b return nil } -func (d *DocFormsGet200ResponseFieldsItemTextWidgetsItem) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemTextWidgetsItem +func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON() ([]byte, error) { + type embed DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache var marshaler = struct { embed }{ @@ -126807,7 +145400,7 @@ func (d *DocFormsGet200ResponseFieldsItemTextWidgetsItem) MarshalJSON() ([]byte, return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemTextWidgetsItem) String() string { +func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache) String() string { if d == nil { return "" } @@ -126823,33 +145416,17 @@ func (d *DocFormsGet200ResponseFieldsItemTextWidgetsItem) String() string { } var ( - docFormsGet200ResponseFieldsItemUnknownFieldRef = big.NewInt(1 << 0) - docFormsGet200ResponseFieldsItemUnknownFieldFieldObjectNumber = big.NewInt(1 << 1) - docFormsGet200ResponseFieldsItemUnknownFieldName = big.NewInt(1 << 2) - docFormsGet200ResponseFieldsItemUnknownFieldOrigin = big.NewInt(1 << 3) - docFormsGet200ResponseFieldsItemUnknownFieldFlags = big.NewInt(1 << 4) - docFormsGet200ResponseFieldsItemUnknownFieldAlternateName = big.NewInt(1 << 5) - docFormsGet200ResponseFieldsItemUnknownFieldMappingName = big.NewInt(1 << 6) - docFormsGet200ResponseFieldsItemUnknownFieldValueEntry = big.NewInt(1 << 7) - docFormsGet200ResponseFieldsItemUnknownFieldDefaultValueEntry = big.NewInt(1 << 8) - docFormsGet200ResponseFieldsItemUnknownFieldActions = big.NewInt(1 << 9) - docFormsGet200ResponseFieldsItemUnknownFieldWidgets = big.NewInt(1 << 10) - docFormsGet200ResponseFieldsItemUnknownFieldRawValue = big.NewInt(1 << 11) + docFormsImportData400ResponseFieldName = big.NewInt(1 << 0) + docFormsImportData400ResponseFieldCode = big.NewInt(1 << 1) + docFormsImportData400ResponseFieldMessage = big.NewInt(1 << 2) + docFormsImportData400ResponseFieldDetails = big.NewInt(1 << 3) ) -type DocFormsGet200ResponseFieldsItemUnknown struct { - Ref *DocFormsGet200ResponseFieldsItemUnknownRef `json:"ref" url:"ref"` - FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` - Name string `json:"name" url:"name"` - Origin DocFormsGet200ResponseFieldsItemUnknownOrigin `json:"origin" url:"origin"` - Flags *DocFormsGet200ResponseFieldsItemUnknownFlags `json:"flags" url:"flags"` - AlternateName *string `json:"alternateName,omitempty" url:"alternateName,omitempty"` - MappingName *string `json:"mappingName,omitempty" url:"mappingName,omitempty"` - ValueEntry *DocFormsGet200ResponseFieldsItemUnknownValueEntry `json:"valueEntry" url:"valueEntry"` - DefaultValueEntry *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry `json:"defaultValueEntry" url:"defaultValueEntry"` - Actions *PdfFieldActions `json:"actions,omitempty" url:"actions,omitempty"` - Widgets []*DocFormsGet200ResponseFieldsItemUnknownWidgetsItem `json:"widgets" url:"widgets"` - RawValue string `json:"rawValue" url:"rawValue"` +type DocFormsImportData400Response struct { + Name DocFormsImportData400ResponseName `json:"name" url:"name"` + Code DocFormsImportData400ResponseCode `json:"code" url:"code"` + Message string `json:"message" url:"message"` + Details map[string]any `json:"details,omitempty" url:"details,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -126858,195 +145435,83 @@ type DocFormsGet200ResponseFieldsItemUnknown struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemUnknown) GetRef() *DocFormsGet200ResponseFieldsItemUnknownRef { - if d == nil { - return nil - } - return d.Ref -} - -func (d *DocFormsGet200ResponseFieldsItemUnknown) GetFieldObjectNumber() int { - if d == nil { - return 0 - } - return d.FieldObjectNumber -} - -func (d *DocFormsGet200ResponseFieldsItemUnknown) GetName() string { +func (d *DocFormsImportData400Response) GetName() DocFormsImportData400ResponseName { if d == nil { return "" } return d.Name } -func (d *DocFormsGet200ResponseFieldsItemUnknown) GetOrigin() DocFormsGet200ResponseFieldsItemUnknownOrigin { +func (d *DocFormsImportData400Response) GetCode() DocFormsImportData400ResponseCode { if d == nil { return "" } - return d.Origin -} - -func (d *DocFormsGet200ResponseFieldsItemUnknown) GetFlags() *DocFormsGet200ResponseFieldsItemUnknownFlags { - if d == nil { - return nil - } - return d.Flags -} - -func (d *DocFormsGet200ResponseFieldsItemUnknown) GetAlternateName() *string { - if d == nil { - return nil - } - return d.AlternateName -} - -func (d *DocFormsGet200ResponseFieldsItemUnknown) GetMappingName() *string { - if d == nil { - return nil - } - return d.MappingName -} - -func (d *DocFormsGet200ResponseFieldsItemUnknown) GetValueEntry() *DocFormsGet200ResponseFieldsItemUnknownValueEntry { - if d == nil { - return nil - } - return d.ValueEntry -} - -func (d *DocFormsGet200ResponseFieldsItemUnknown) GetDefaultValueEntry() *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry { - if d == nil { - return nil - } - return d.DefaultValueEntry -} - -func (d *DocFormsGet200ResponseFieldsItemUnknown) GetActions() *PdfFieldActions { - if d == nil { - return nil - } - return d.Actions -} - -func (d *DocFormsGet200ResponseFieldsItemUnknown) GetWidgets() []*DocFormsGet200ResponseFieldsItemUnknownWidgetsItem { - if d == nil { - return nil - } - return d.Widgets + return d.Code } -func (d *DocFormsGet200ResponseFieldsItemUnknown) GetRawValue() string { +func (d *DocFormsImportData400Response) GetMessage() string { if d == nil { return "" } - return d.RawValue + return d.Message } -func (d *DocFormsGet200ResponseFieldsItemUnknown) GetExtraProperties() map[string]interface{} { +func (d *DocFormsImportData400Response) GetDetails() map[string]any { if d == nil { return nil } - return d.extraProperties -} - -func (d *DocFormsGet200ResponseFieldsItemUnknown) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetRef sets the Ref field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemUnknown) SetRef(ref *DocFormsGet200ResponseFieldsItemUnknownRef) { - d.Ref = ref - d.require(docFormsGet200ResponseFieldsItemUnknownFieldRef) -} - -// SetFieldObjectNumber sets the FieldObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemUnknown) SetFieldObjectNumber(fieldObjectNumber int) { - d.FieldObjectNumber = fieldObjectNumber - d.require(docFormsGet200ResponseFieldsItemUnknownFieldFieldObjectNumber) -} - -// SetName sets the Name field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemUnknown) SetName(name string) { - d.Name = name - d.require(docFormsGet200ResponseFieldsItemUnknownFieldName) -} - -// SetOrigin sets the Origin field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemUnknown) SetOrigin(origin DocFormsGet200ResponseFieldsItemUnknownOrigin) { - d.Origin = origin - d.require(docFormsGet200ResponseFieldsItemUnknownFieldOrigin) -} - -// SetFlags sets the Flags field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemUnknown) SetFlags(flags *DocFormsGet200ResponseFieldsItemUnknownFlags) { - d.Flags = flags - d.require(docFormsGet200ResponseFieldsItemUnknownFieldFlags) -} - -// SetAlternateName sets the AlternateName field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemUnknown) SetAlternateName(alternateName *string) { - d.AlternateName = alternateName - d.require(docFormsGet200ResponseFieldsItemUnknownFieldAlternateName) + return d.Details } -// SetMappingName sets the MappingName field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemUnknown) SetMappingName(mappingName *string) { - d.MappingName = mappingName - d.require(docFormsGet200ResponseFieldsItemUnknownFieldMappingName) +func (d *DocFormsImportData400Response) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties } -// SetValueEntry sets the ValueEntry field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemUnknown) SetValueEntry(valueEntry *DocFormsGet200ResponseFieldsItemUnknownValueEntry) { - d.ValueEntry = valueEntry - d.require(docFormsGet200ResponseFieldsItemUnknownFieldValueEntry) +func (d *DocFormsImportData400Response) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) } -// SetDefaultValueEntry sets the DefaultValueEntry field and marks it as non-optional; +// SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemUnknown) SetDefaultValueEntry(defaultValueEntry *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry) { - d.DefaultValueEntry = defaultValueEntry - d.require(docFormsGet200ResponseFieldsItemUnknownFieldDefaultValueEntry) +func (d *DocFormsImportData400Response) SetName(name DocFormsImportData400ResponseName) { + d.Name = name + d.require(docFormsImportData400ResponseFieldName) } -// SetActions sets the Actions field and marks it as non-optional; +// SetCode sets the Code field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemUnknown) SetActions(actions *PdfFieldActions) { - d.Actions = actions - d.require(docFormsGet200ResponseFieldsItemUnknownFieldActions) +func (d *DocFormsImportData400Response) SetCode(code DocFormsImportData400ResponseCode) { + d.Code = code + d.require(docFormsImportData400ResponseFieldCode) } -// SetWidgets sets the Widgets field and marks it as non-optional; +// SetMessage sets the Message field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemUnknown) SetWidgets(widgets []*DocFormsGet200ResponseFieldsItemUnknownWidgetsItem) { - d.Widgets = widgets - d.require(docFormsGet200ResponseFieldsItemUnknownFieldWidgets) +func (d *DocFormsImportData400Response) SetMessage(message string) { + d.Message = message + d.require(docFormsImportData400ResponseFieldMessage) } -// SetRawValue sets the RawValue field and marks it as non-optional; +// SetDetails sets the Details field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemUnknown) SetRawValue(rawValue string) { - d.RawValue = rawValue - d.require(docFormsGet200ResponseFieldsItemUnknownFieldRawValue) +func (d *DocFormsImportData400Response) SetDetails(details map[string]any) { + d.Details = details + d.require(docFormsImportData400ResponseFieldDetails) } -func (d *DocFormsGet200ResponseFieldsItemUnknown) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemUnknown +func (d *DocFormsImportData400Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsImportData400Response var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemUnknown(value) + *d = DocFormsImportData400Response(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -127056,8 +145521,8 @@ func (d *DocFormsGet200ResponseFieldsItemUnknown) UnmarshalJSON(data []byte) err return nil } -func (d *DocFormsGet200ResponseFieldsItemUnknown) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemUnknown +func (d *DocFormsImportData400Response) MarshalJSON() ([]byte, error) { + type embed DocFormsImportData400Response var marshaler = struct { embed }{ @@ -127067,7 +145532,7 @@ func (d *DocFormsGet200ResponseFieldsItemUnknown) MarshalJSON() ([]byte, error) return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemUnknown) String() string { +func (d *DocFormsImportData400Response) String() string { if d == nil { return "" } @@ -127082,229 +145547,213 @@ func (d *DocFormsGet200ResponseFieldsItemUnknown) String() string { return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry struct { - Kind string - None *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone - Scalar *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar - Array *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray - Unsupported *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported +type DocFormsImportData400ResponseCode string - rawJSON json.RawMessage -} +const ( + DocFormsImportData400ResponseCodeUnknown DocFormsImportData400ResponseCode = "Unknown" + DocFormsImportData400ResponseCodeInvalidArg DocFormsImportData400ResponseCode = "InvalidArg" + DocFormsImportData400ResponseCodeDocNotOpen DocFormsImportData400ResponseCode = "DocNotOpen" + DocFormsImportData400ResponseCodeDocOpenFailed DocFormsImportData400ResponseCode = "DocOpenFailed" + DocFormsImportData400ResponseCodeDocPasswordRequired DocFormsImportData400ResponseCode = "DocPasswordRequired" + DocFormsImportData400ResponseCodeDocPasswordIncorrect DocFormsImportData400ResponseCode = "DocPasswordIncorrect" + DocFormsImportData400ResponseCodeSharePasswordRequired DocFormsImportData400ResponseCode = "SharePasswordRequired" + DocFormsImportData400ResponseCodeAborted DocFormsImportData400ResponseCode = "Aborted" + DocFormsImportData400ResponseCodeNetwork DocFormsImportData400ResponseCode = "Network" + DocFormsImportData400ResponseCodeUnauthenticated DocFormsImportData400ResponseCode = "Unauthenticated" + DocFormsImportData400ResponseCodeForbidden DocFormsImportData400ResponseCode = "Forbidden" + DocFormsImportData400ResponseCodeNotFound DocFormsImportData400ResponseCode = "NotFound" + DocFormsImportData400ResponseCodeWireFormat DocFormsImportData400ResponseCode = "WireFormat" + DocFormsImportData400ResponseCodeRuntimeUnavailable DocFormsImportData400ResponseCode = "RuntimeUnavailable" + DocFormsImportData400ResponseCodeInvalidReference DocFormsImportData400ResponseCode = "InvalidReference" + DocFormsImportData400ResponseCodeWeakAnnotationSessionConflict DocFormsImportData400ResponseCode = "WeakAnnotationSessionConflict" + DocFormsImportData400ResponseCodeLayerVersionConflict DocFormsImportData400ResponseCode = "LayerVersionConflict" + DocFormsImportData400ResponseCodeNotImplemented DocFormsImportData400ResponseCode = "NotImplemented" + DocFormsImportData400ResponseCodeMalformedPdf DocFormsImportData400ResponseCode = "MalformedPdf" + DocFormsImportData400ResponseCodeSigningPending DocFormsImportData400ResponseCode = "SigningPending" + DocFormsImportData400ResponseCodeSigningExpired DocFormsImportData400ResponseCode = "SigningExpired" + DocFormsImportData400ResponseCodeSigningVersionMismatch DocFormsImportData400ResponseCode = "SigningVersionMismatch" + DocFormsImportData400ResponseCodeSignatureRefused DocFormsImportData400ResponseCode = "SignatureRefused" + DocFormsImportData400ResponseCodeProtectedDocument DocFormsImportData400ResponseCode = "ProtectedDocument" + DocFormsImportData400ResponseCodeStaleBase DocFormsImportData400ResponseCode = "StaleBase" +) -func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry) GetKind() string { - if d == nil { - return "" +func NewDocFormsImportData400ResponseCodeFromString(s string) (DocFormsImportData400ResponseCode, error) { + switch s { + case "Unknown": + return DocFormsImportData400ResponseCodeUnknown, nil + case "InvalidArg": + return DocFormsImportData400ResponseCodeInvalidArg, nil + case "DocNotOpen": + return DocFormsImportData400ResponseCodeDocNotOpen, nil + case "DocOpenFailed": + return DocFormsImportData400ResponseCodeDocOpenFailed, nil + case "DocPasswordRequired": + return DocFormsImportData400ResponseCodeDocPasswordRequired, nil + case "DocPasswordIncorrect": + return DocFormsImportData400ResponseCodeDocPasswordIncorrect, nil + case "SharePasswordRequired": + return DocFormsImportData400ResponseCodeSharePasswordRequired, nil + case "Aborted": + return DocFormsImportData400ResponseCodeAborted, nil + case "Network": + return DocFormsImportData400ResponseCodeNetwork, nil + case "Unauthenticated": + return DocFormsImportData400ResponseCodeUnauthenticated, nil + case "Forbidden": + return DocFormsImportData400ResponseCodeForbidden, nil + case "NotFound": + return DocFormsImportData400ResponseCodeNotFound, nil + case "WireFormat": + return DocFormsImportData400ResponseCodeWireFormat, nil + case "RuntimeUnavailable": + return DocFormsImportData400ResponseCodeRuntimeUnavailable, nil + case "InvalidReference": + return DocFormsImportData400ResponseCodeInvalidReference, nil + case "WeakAnnotationSessionConflict": + return DocFormsImportData400ResponseCodeWeakAnnotationSessionConflict, nil + case "LayerVersionConflict": + return DocFormsImportData400ResponseCodeLayerVersionConflict, nil + case "NotImplemented": + return DocFormsImportData400ResponseCodeNotImplemented, nil + case "MalformedPdf": + return DocFormsImportData400ResponseCodeMalformedPdf, nil + case "SigningPending": + return DocFormsImportData400ResponseCodeSigningPending, nil + case "SigningExpired": + return DocFormsImportData400ResponseCodeSigningExpired, nil + case "SigningVersionMismatch": + return DocFormsImportData400ResponseCodeSigningVersionMismatch, nil + case "SignatureRefused": + return DocFormsImportData400ResponseCodeSignatureRefused, nil + case "ProtectedDocument": + return DocFormsImportData400ResponseCodeProtectedDocument, nil + case "StaleBase": + return DocFormsImportData400ResponseCodeStaleBase, nil } - return d.Kind + var t DocFormsImportData400ResponseCode + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry) GetNone() *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone { - if d == nil { - return nil - } - return d.None +func (d DocFormsImportData400ResponseCode) Ptr() *DocFormsImportData400ResponseCode { + return &d } -func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry) GetScalar() *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar { - if d == nil { - return nil - } - return d.Scalar -} +type DocFormsImportData400ResponseName string -func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry) GetArray() *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray { - if d == nil { - return nil - } - return d.Array -} +const ( + DocFormsImportData400ResponseNameEngineError DocFormsImportData400ResponseName = "EngineError" +) -func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry) GetUnsupported() *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported { - if d == nil { - return nil +func NewDocFormsImportData400ResponseNameFromString(s string) (DocFormsImportData400ResponseName, error) { + switch s { + case "EngineError": + return DocFormsImportData400ResponseNameEngineError, nil } - return d.Unsupported + var t DocFormsImportData400ResponseName + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "none": - value := new(DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.None = value - case "scalar": - value := new(DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Scalar = value - case "array": - value := new(DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Array = value - case "unsupported": - value := new(DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Unsupported = value - } - d.rawJSON = json.RawMessage(data) - return nil +func (d DocFormsImportData400ResponseName) Ptr() *DocFormsImportData400ResponseName { + return &d } -func (d DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.None != nil { - return internal.MarshalJSONWithExtraProperty(d.None, "kind", "none") - } - if d.Scalar != nil { - return internal.MarshalJSONWithExtraProperty(d.Scalar, "kind", "scalar") - } - if d.Array != nil { - return internal.MarshalJSONWithExtraProperty(d.Array, "kind", "array") - } - if d.Unsupported != nil { - return internal.MarshalJSONWithExtraProperty(d.Unsupported, "kind", "unsupported") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil - } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) -} +var ( + docFormsImportData404ResponseFieldName = big.NewInt(1 << 0) + docFormsImportData404ResponseFieldCode = big.NewInt(1 << 1) + docFormsImportData404ResponseFieldMessage = big.NewInt(1 << 2) + docFormsImportData404ResponseFieldDetails = big.NewInt(1 << 3) +) -type DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryVisitor interface { - VisitNone(*DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone) error - VisitScalar(*DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar) error - VisitArray(*DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray) error - VisitUnsupported(*DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported) error +type DocFormsImportData404Response struct { + Name DocFormsImportData404ResponseName `json:"name" url:"name"` + Code DocFormsImportData404ResponseCode `json:"code" url:"code"` + Message string `json:"message" url:"message"` + Details map[string]any `json:"details,omitempty" url:"details,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry) Accept(visitor DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryVisitor) error { - if d.None != nil { - return visitor.VisitNone(d.None) - } - if d.Scalar != nil { - return visitor.VisitScalar(d.Scalar) - } - if d.Array != nil { - return visitor.VisitArray(d.Array) - } - if d.Unsupported != nil { - return visitor.VisitUnsupported(d.Unsupported) +func (d *DocFormsImportData404Response) GetName() DocFormsImportData404ResponseName { + if d == nil { + return "" } - return fmt.Errorf("type %T does not define a non-empty union type", d) + return d.Name } -func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry) validate() error { +func (d *DocFormsImportData404Response) GetCode() DocFormsImportData404ResponseCode { if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.None != nil { - fields = append(fields, "none") - } - if d.Scalar != nil { - fields = append(fields, "scalar") - } - if d.Array != nil { - fields = append(fields, "array") - } - if d.Unsupported != nil { - fields = append(fields, "unsupported") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } + return "" } - return nil + return d.Code } -var ( - docFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArrayFieldValues = big.NewInt(1 << 0) -) - -type DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray struct { - Values []string `json:"values" url:"values"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocFormsImportData404Response) GetMessage() string { + if d == nil { + return "" + } + return d.Message } -func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray) GetValues() []string { +func (d *DocFormsImportData404Response) GetDetails() map[string]any { if d == nil { return nil } - return d.Values + return d.Details } -func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray) GetExtraProperties() map[string]interface{} { +func (d *DocFormsImportData404Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray) require(field *big.Int) { +func (d *DocFormsImportData404Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetValues sets the Values field and marks it as non-optional; +// SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray) SetValues(values []string) { - d.Values = values - d.require(docFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArrayFieldValues) +func (d *DocFormsImportData404Response) SetName(name DocFormsImportData404ResponseName) { + d.Name = name + d.require(docFormsImportData404ResponseFieldName) } -func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray +// SetCode sets the Code field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsImportData404Response) SetCode(code DocFormsImportData404ResponseCode) { + d.Code = code + d.require(docFormsImportData404ResponseFieldCode) +} + +// SetMessage sets the Message field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsImportData404Response) SetMessage(message string) { + d.Message = message + d.require(docFormsImportData404ResponseFieldMessage) +} + +// SetDetails sets the Details field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsImportData404Response) SetDetails(details map[string]any) { + d.Details = details + d.require(docFormsImportData404ResponseFieldDetails) +} + +func (d *DocFormsImportData404Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsImportData404Response var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray(value) + *d = DocFormsImportData404Response(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -127314,8 +145763,8 @@ func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray) Unmarsha return nil } -func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray +func (d *DocFormsImportData404Response) MarshalJSON() ([]byte, error) { + type embed DocFormsImportData404Response var marshaler = struct { embed }{ @@ -127325,7 +145774,7 @@ func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray) MarshalJ return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray) String() string { +func (d *DocFormsImportData404Response) String() string { if d == nil { return "" } @@ -127340,206 +145789,193 @@ func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray) String() return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone struct { - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +type DocFormsImportData404ResponseCode string - extraProperties map[string]interface{} - rawJSON json.RawMessage -} +const ( + DocFormsImportData404ResponseCodeUnknown DocFormsImportData404ResponseCode = "Unknown" + DocFormsImportData404ResponseCodeInvalidArg DocFormsImportData404ResponseCode = "InvalidArg" + DocFormsImportData404ResponseCodeDocNotOpen DocFormsImportData404ResponseCode = "DocNotOpen" + DocFormsImportData404ResponseCodeDocOpenFailed DocFormsImportData404ResponseCode = "DocOpenFailed" + DocFormsImportData404ResponseCodeDocPasswordRequired DocFormsImportData404ResponseCode = "DocPasswordRequired" + DocFormsImportData404ResponseCodeDocPasswordIncorrect DocFormsImportData404ResponseCode = "DocPasswordIncorrect" + DocFormsImportData404ResponseCodeSharePasswordRequired DocFormsImportData404ResponseCode = "SharePasswordRequired" + DocFormsImportData404ResponseCodeAborted DocFormsImportData404ResponseCode = "Aborted" + DocFormsImportData404ResponseCodeNetwork DocFormsImportData404ResponseCode = "Network" + DocFormsImportData404ResponseCodeUnauthenticated DocFormsImportData404ResponseCode = "Unauthenticated" + DocFormsImportData404ResponseCodeForbidden DocFormsImportData404ResponseCode = "Forbidden" + DocFormsImportData404ResponseCodeNotFound DocFormsImportData404ResponseCode = "NotFound" + DocFormsImportData404ResponseCodeWireFormat DocFormsImportData404ResponseCode = "WireFormat" + DocFormsImportData404ResponseCodeRuntimeUnavailable DocFormsImportData404ResponseCode = "RuntimeUnavailable" + DocFormsImportData404ResponseCodeInvalidReference DocFormsImportData404ResponseCode = "InvalidReference" + DocFormsImportData404ResponseCodeWeakAnnotationSessionConflict DocFormsImportData404ResponseCode = "WeakAnnotationSessionConflict" + DocFormsImportData404ResponseCodeLayerVersionConflict DocFormsImportData404ResponseCode = "LayerVersionConflict" + DocFormsImportData404ResponseCodeNotImplemented DocFormsImportData404ResponseCode = "NotImplemented" + DocFormsImportData404ResponseCodeMalformedPdf DocFormsImportData404ResponseCode = "MalformedPdf" + DocFormsImportData404ResponseCodeSigningPending DocFormsImportData404ResponseCode = "SigningPending" + DocFormsImportData404ResponseCodeSigningExpired DocFormsImportData404ResponseCode = "SigningExpired" + DocFormsImportData404ResponseCodeSigningVersionMismatch DocFormsImportData404ResponseCode = "SigningVersionMismatch" + DocFormsImportData404ResponseCodeSignatureRefused DocFormsImportData404ResponseCode = "SignatureRefused" + DocFormsImportData404ResponseCodeProtectedDocument DocFormsImportData404ResponseCode = "ProtectedDocument" + DocFormsImportData404ResponseCodeStaleBase DocFormsImportData404ResponseCode = "StaleBase" +) -func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil +func NewDocFormsImportData404ResponseCodeFromString(s string) (DocFormsImportData404ResponseCode, error) { + switch s { + case "Unknown": + return DocFormsImportData404ResponseCodeUnknown, nil + case "InvalidArg": + return DocFormsImportData404ResponseCodeInvalidArg, nil + case "DocNotOpen": + return DocFormsImportData404ResponseCodeDocNotOpen, nil + case "DocOpenFailed": + return DocFormsImportData404ResponseCodeDocOpenFailed, nil + case "DocPasswordRequired": + return DocFormsImportData404ResponseCodeDocPasswordRequired, nil + case "DocPasswordIncorrect": + return DocFormsImportData404ResponseCodeDocPasswordIncorrect, nil + case "SharePasswordRequired": + return DocFormsImportData404ResponseCodeSharePasswordRequired, nil + case "Aborted": + return DocFormsImportData404ResponseCodeAborted, nil + case "Network": + return DocFormsImportData404ResponseCodeNetwork, nil + case "Unauthenticated": + return DocFormsImportData404ResponseCodeUnauthenticated, nil + case "Forbidden": + return DocFormsImportData404ResponseCodeForbidden, nil + case "NotFound": + return DocFormsImportData404ResponseCodeNotFound, nil + case "WireFormat": + return DocFormsImportData404ResponseCodeWireFormat, nil + case "RuntimeUnavailable": + return DocFormsImportData404ResponseCodeRuntimeUnavailable, nil + case "InvalidReference": + return DocFormsImportData404ResponseCodeInvalidReference, nil + case "WeakAnnotationSessionConflict": + return DocFormsImportData404ResponseCodeWeakAnnotationSessionConflict, nil + case "LayerVersionConflict": + return DocFormsImportData404ResponseCodeLayerVersionConflict, nil + case "NotImplemented": + return DocFormsImportData404ResponseCodeNotImplemented, nil + case "MalformedPdf": + return DocFormsImportData404ResponseCodeMalformedPdf, nil + case "SigningPending": + return DocFormsImportData404ResponseCodeSigningPending, nil + case "SigningExpired": + return DocFormsImportData404ResponseCodeSigningExpired, nil + case "SigningVersionMismatch": + return DocFormsImportData404ResponseCodeSigningVersionMismatch, nil + case "SignatureRefused": + return DocFormsImportData404ResponseCodeSignatureRefused, nil + case "ProtectedDocument": + return DocFormsImportData404ResponseCodeProtectedDocument, nil + case "StaleBase": + return DocFormsImportData404ResponseCodeStaleBase, nil } - return d.extraProperties + var t DocFormsImportData404ResponseCode + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) +func (d DocFormsImportData404ResponseCode) Ptr() *DocFormsImportData404ResponseCode { + return &d } -func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil -} +type DocFormsImportData404ResponseName string + +const ( + DocFormsImportData404ResponseNameEngineError DocFormsImportData404ResponseName = "EngineError" +) -func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone - var marshaler = struct { - embed - }{ - embed: embed(*d), +func NewDocFormsImportData404ResponseNameFromString(s string) (DocFormsImportData404ResponseName, error) { + switch s { + case "EngineError": + return DocFormsImportData404ResponseNameEngineError, nil } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + var t DocFormsImportData404ResponseName + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) +func (d DocFormsImportData404ResponseName) Ptr() *DocFormsImportData404ResponseName { + return &d } +type DocFormsImportDataRequest = map[string]any + var ( - docFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalarFieldValue = big.NewInt(1 << 0) + docFormsReset200ResponseFieldMeta = big.NewInt(1 << 0) ) -type DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar struct { - Value string `json:"value" url:"value"` +type DocFormsReset200Response struct { + Meta *DocFormsReset200ResponseMeta `json:"meta" url:"meta"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` - extraProperties map[string]interface{} - rawJSON json.RawMessage + ExtraProperties map[string]interface{} `json:"-" url:"-"` + + rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar) GetValue() string { +func (d *DocFormsReset200Response) GetMeta() *DocFormsReset200ResponseMeta { if d == nil { - return "" + return nil } - return d.Value + return d.Meta } -func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar) GetExtraProperties() map[string]interface{} { +func (d *DocFormsReset200Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.extraProperties + return d.ExtraProperties } -func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar) require(field *big.Int) { +func (d *DocFormsReset200Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetValue sets the Value field and marks it as non-optional; +// SetMeta sets the Meta field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar) SetValue(value string) { - d.Value = value - d.require(docFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalarFieldValue) -} - -func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil +func (d *DocFormsReset200Response) SetMeta(meta *DocFormsReset200ResponseMeta) { + d.Meta = meta + d.require(docFormsReset200ResponseFieldMeta) } -func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar - var marshaler = struct { +func (d *DocFormsReset200Response) UnmarshalJSON(data []byte) error { + type embed DocFormsReset200Response + var unmarshaler = struct { embed }{ embed: embed(*d), } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) -} - -func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) -} - -type DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported struct { - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage -} - -func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties -} - -func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) -} - -func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { + if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported(value) + *d = DocFormsReset200Response(unmarshaler.embed) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err } - d.extraProperties = extraProperties + d.ExtraProperties = extraProperties d.rawJSON = json.RawMessage(data) return nil } -func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported +func (d *DocFormsReset200Response) MarshalJSON() ([]byte, error) { + type embed DocFormsReset200Response var marshaler = struct { embed }{ embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return internal.MarshalJSONWithExtraProperties(explicitMarshaler, d.ExtraProperties) } -func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported) String() string { +func (d *DocFormsReset200Response) String() string { if d == nil { return "" } @@ -127555,17 +145991,13 @@ func (d *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported) St } var ( - docFormsGet200ResponseFieldsItemUnknownFlagsFieldReadOnly = big.NewInt(1 << 0) - docFormsGet200ResponseFieldsItemUnknownFlagsFieldRequired = big.NewInt(1 << 1) - docFormsGet200ResponseFieldsItemUnknownFlagsFieldNoExport = big.NewInt(1 << 2) - docFormsGet200ResponseFieldsItemUnknownFlagsFieldRaw = big.NewInt(1 << 3) + docFormsReset200ResponseMetaFieldAffectedPages = big.NewInt(1 << 0) + docFormsReset200ResponseMetaFieldCacheDelta = big.NewInt(1 << 1) ) -type DocFormsGet200ResponseFieldsItemUnknownFlags struct { - ReadOnly bool `json:"readOnly" url:"readOnly"` - Required bool `json:"required" url:"required"` - NoExport bool `json:"noExport" url:"noExport"` - Raw int `json:"raw" url:"raw"` +type DocFormsReset200ResponseMeta struct { + AffectedPages []*DocFormsReset200ResponseMetaAffectedPagesItem `json:"affectedPages" url:"affectedPages"` + CacheDelta *DocFormsReset200ResponseMetaCacheDelta `json:"cacheDelta,omitempty" url:"cacheDelta,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -127574,83 +146006,55 @@ type DocFormsGet200ResponseFieldsItemUnknownFlags struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemUnknownFlags) GetReadOnly() bool { - if d == nil { - return false - } - return d.ReadOnly -} - -func (d *DocFormsGet200ResponseFieldsItemUnknownFlags) GetRequired() bool { - if d == nil { - return false - } - return d.Required -} - -func (d *DocFormsGet200ResponseFieldsItemUnknownFlags) GetNoExport() bool { +func (d *DocFormsReset200ResponseMeta) GetAffectedPages() []*DocFormsReset200ResponseMetaAffectedPagesItem { if d == nil { - return false + return nil } - return d.NoExport + return d.AffectedPages } -func (d *DocFormsGet200ResponseFieldsItemUnknownFlags) GetRaw() int { +func (d *DocFormsReset200ResponseMeta) GetCacheDelta() *DocFormsReset200ResponseMetaCacheDelta { if d == nil { - return 0 + return nil } - return d.Raw + return d.CacheDelta } -func (d *DocFormsGet200ResponseFieldsItemUnknownFlags) GetExtraProperties() map[string]interface{} { +func (d *DocFormsReset200ResponseMeta) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemUnknownFlags) require(field *big.Int) { +func (d *DocFormsReset200ResponseMeta) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetReadOnly sets the ReadOnly field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemUnknownFlags) SetReadOnly(readOnly bool) { - d.ReadOnly = readOnly - d.require(docFormsGet200ResponseFieldsItemUnknownFlagsFieldReadOnly) -} - -// SetRequired sets the Required field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemUnknownFlags) SetRequired(required bool) { - d.Required = required - d.require(docFormsGet200ResponseFieldsItemUnknownFlagsFieldRequired) -} - -// SetNoExport sets the NoExport field and marks it as non-optional; +// SetAffectedPages sets the AffectedPages field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemUnknownFlags) SetNoExport(noExport bool) { - d.NoExport = noExport - d.require(docFormsGet200ResponseFieldsItemUnknownFlagsFieldNoExport) +func (d *DocFormsReset200ResponseMeta) SetAffectedPages(affectedPages []*DocFormsReset200ResponseMetaAffectedPagesItem) { + d.AffectedPages = affectedPages + d.require(docFormsReset200ResponseMetaFieldAffectedPages) } -// SetRaw sets the Raw field and marks it as non-optional; +// SetCacheDelta sets the CacheDelta field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemUnknownFlags) SetRaw(raw int) { - d.Raw = raw - d.require(docFormsGet200ResponseFieldsItemUnknownFlagsFieldRaw) +func (d *DocFormsReset200ResponseMeta) SetCacheDelta(cacheDelta *DocFormsReset200ResponseMetaCacheDelta) { + d.CacheDelta = cacheDelta + d.require(docFormsReset200ResponseMetaFieldCacheDelta) } -func (d *DocFormsGet200ResponseFieldsItemUnknownFlags) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemUnknownFlags +func (d *DocFormsReset200ResponseMeta) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsReset200ResponseMeta var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemUnknownFlags(value) + *d = DocFormsReset200ResponseMeta(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -127660,8 +146064,8 @@ func (d *DocFormsGet200ResponseFieldsItemUnknownFlags) UnmarshalJSON(data []byte return nil } -func (d *DocFormsGet200ResponseFieldsItemUnknownFlags) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemUnknownFlags +func (d *DocFormsReset200ResponseMeta) MarshalJSON() ([]byte, error) { + type embed DocFormsReset200ResponseMeta var marshaler = struct { embed }{ @@ -127671,7 +146075,7 @@ func (d *DocFormsGet200ResponseFieldsItemUnknownFlags) MarshalJSON() ([]byte, er return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemUnknownFlags) String() string { +func (d *DocFormsReset200ResponseMeta) String() string { if d == nil { return "" } @@ -127686,203 +146090,87 @@ func (d *DocFormsGet200ResponseFieldsItemUnknownFlags) String() string { return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemUnknownOrigin string - -const ( - DocFormsGet200ResponseFieldsItemUnknownOriginAcroform DocFormsGet200ResponseFieldsItemUnknownOrigin = "acroform" - DocFormsGet200ResponseFieldsItemUnknownOriginRecovered DocFormsGet200ResponseFieldsItemUnknownOrigin = "recovered" +var ( + docFormsReset200ResponseMetaAffectedPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) + docFormsReset200ResponseMetaAffectedPagesItemFieldRevision = big.NewInt(1 << 1) + docFormsReset200ResponseMetaAffectedPagesItemFieldWeakAnnotationState = big.NewInt(1 << 2) ) -func NewDocFormsGet200ResponseFieldsItemUnknownOriginFromString(s string) (DocFormsGet200ResponseFieldsItemUnknownOrigin, error) { - switch s { - case "acroform": - return DocFormsGet200ResponseFieldsItemUnknownOriginAcroform, nil - case "recovered": - return DocFormsGet200ResponseFieldsItemUnknownOriginRecovered, nil - } - var t DocFormsGet200ResponseFieldsItemUnknownOrigin - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocFormsGet200ResponseFieldsItemUnknownOrigin) Ptr() *DocFormsGet200ResponseFieldsItemUnknownOrigin { - return &d -} +type DocFormsReset200ResponseMetaAffectedPagesItem struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Revision *DocFormsReset200ResponseMetaAffectedPagesItemRevision `json:"revision" url:"revision"` + WeakAnnotationState *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState `json:"weakAnnotationState" url:"weakAnnotationState"` -type DocFormsGet200ResponseFieldsItemUnknownRef struct { - Kind string - ObjectNumber *DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber - Fqn *DocFormsGet200ResponseFieldsItemUnknownRefFqn + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` - rawJSON json.RawMessage + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemUnknownRef) GetKind() string { +func (d *DocFormsReset200ResponseMetaAffectedPagesItem) GetPageObjectNumber() int { if d == nil { - return "" + return 0 } - return d.Kind + return d.PageObjectNumber } -func (d *DocFormsGet200ResponseFieldsItemUnknownRef) GetObjectNumber() *DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber { +func (d *DocFormsReset200ResponseMetaAffectedPagesItem) GetRevision() *DocFormsReset200ResponseMetaAffectedPagesItemRevision { if d == nil { return nil } - return d.ObjectNumber + return d.Revision } -func (d *DocFormsGet200ResponseFieldsItemUnknownRef) GetFqn() *DocFormsGet200ResponseFieldsItemUnknownRefFqn { +func (d *DocFormsReset200ResponseMetaAffectedPagesItem) GetWeakAnnotationState() *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState { if d == nil { return nil } - return d.Fqn -} - -func (d *DocFormsGet200ResponseFieldsItemUnknownRef) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "objectNumber": - value := new(DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.ObjectNumber = value - case "fqn": - value := new(DocFormsGet200ResponseFieldsItemUnknownRefFqn) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Fqn = value - } - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d DocFormsGet200ResponseFieldsItemUnknownRef) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.ObjectNumber != nil { - return internal.MarshalJSONWithExtraProperty(d.ObjectNumber, "kind", "objectNumber") - } - if d.Fqn != nil { - return internal.MarshalJSONWithExtraProperty(d.Fqn, "kind", "fqn") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil - } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) -} - -type DocFormsGet200ResponseFieldsItemUnknownRefVisitor interface { - VisitObjectNumber(*DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber) error - VisitFqn(*DocFormsGet200ResponseFieldsItemUnknownRefFqn) error -} - -func (d *DocFormsGet200ResponseFieldsItemUnknownRef) Accept(visitor DocFormsGet200ResponseFieldsItemUnknownRefVisitor) error { - if d.ObjectNumber != nil { - return visitor.VisitObjectNumber(d.ObjectNumber) - } - if d.Fqn != nil { - return visitor.VisitFqn(d.Fqn) - } - return fmt.Errorf("type %T does not define a non-empty union type", d) -} - -func (d *DocFormsGet200ResponseFieldsItemUnknownRef) validate() error { - if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.ObjectNumber != nil { - fields = append(fields, "objectNumber") - } - if d.Fqn != nil { - fields = append(fields, "fqn") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } - } - return nil -} - -var ( - docFormsGet200ResponseFieldsItemUnknownRefFqnFieldName = big.NewInt(1 << 0) -) - -type DocFormsGet200ResponseFieldsItemUnknownRefFqn struct { - Name string `json:"name" url:"name"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage -} - -func (d *DocFormsGet200ResponseFieldsItemUnknownRefFqn) GetName() string { - if d == nil { - return "" - } - return d.Name + return d.WeakAnnotationState } -func (d *DocFormsGet200ResponseFieldsItemUnknownRefFqn) GetExtraProperties() map[string]interface{} { +func (d *DocFormsReset200ResponseMetaAffectedPagesItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemUnknownRefFqn) require(field *big.Int) { +func (d *DocFormsReset200ResponseMetaAffectedPagesItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetName sets the Name field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemUnknownRefFqn) SetName(name string) { - d.Name = name - d.require(docFormsGet200ResponseFieldsItemUnknownRefFqnFieldName) +func (d *DocFormsReset200ResponseMetaAffectedPagesItem) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docFormsReset200ResponseMetaAffectedPagesItemFieldPageObjectNumber) } -func (d *DocFormsGet200ResponseFieldsItemUnknownRefFqn) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemUnknownRefFqn +// SetRevision sets the Revision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsReset200ResponseMetaAffectedPagesItem) SetRevision(revision *DocFormsReset200ResponseMetaAffectedPagesItemRevision) { + d.Revision = revision + d.require(docFormsReset200ResponseMetaAffectedPagesItemFieldRevision) +} + +// SetWeakAnnotationState sets the WeakAnnotationState field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsReset200ResponseMetaAffectedPagesItem) SetWeakAnnotationState(weakAnnotationState *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState) { + d.WeakAnnotationState = weakAnnotationState + d.require(docFormsReset200ResponseMetaAffectedPagesItemFieldWeakAnnotationState) +} + +func (d *DocFormsReset200ResponseMetaAffectedPagesItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsReset200ResponseMetaAffectedPagesItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemUnknownRefFqn(value) + *d = DocFormsReset200ResponseMetaAffectedPagesItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -127892,8 +146180,8 @@ func (d *DocFormsGet200ResponseFieldsItemUnknownRefFqn) UnmarshalJSON(data []byt return nil } -func (d *DocFormsGet200ResponseFieldsItemUnknownRefFqn) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemUnknownRefFqn +func (d *DocFormsReset200ResponseMetaAffectedPagesItem) MarshalJSON() ([]byte, error) { + type embed DocFormsReset200ResponseMetaAffectedPagesItem var marshaler = struct { embed }{ @@ -127903,7 +146191,7 @@ func (d *DocFormsGet200ResponseFieldsItemUnknownRefFqn) MarshalJSON() ([]byte, e return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemUnknownRefFqn) String() string { +func (d *DocFormsReset200ResponseMetaAffectedPagesItem) String() string { if d == nil { return "" } @@ -127919,11 +146207,15 @@ func (d *DocFormsGet200ResponseFieldsItemUnknownRefFqn) String() string { } var ( - docFormsGet200ResponseFieldsItemUnknownRefObjectNumberFieldFieldObjectNumber = big.NewInt(1 << 0) + docFormsReset200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID = big.NewInt(1 << 0) + docFormsReset200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docFormsReset200ResponseMetaAffectedPagesItemRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber struct { - FieldObjectNumber int `json:"fieldObjectNumber" url:"fieldObjectNumber"` +type DocFormsReset200ResponseMetaAffectedPagesItemRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -127932,41 +146224,69 @@ type DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber) GetFieldObjectNumber() int { +func (d *DocFormsReset200ResponseMetaAffectedPagesItemRevision) GetDocSessionID() string { + if d == nil { + return "" + } + return d.DocSessionID +} + +func (d *DocFormsReset200ResponseMetaAffectedPagesItemRevision) GetPageObjectNumber() int { if d == nil { return 0 } - return d.FieldObjectNumber + return d.PageObjectNumber } -func (d *DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber) GetExtraProperties() map[string]interface{} { +func (d *DocFormsReset200ResponseMetaAffectedPagesItemRevision) GetGeneration() int { + if d == nil { + return 0 + } + return d.Generation +} + +func (d *DocFormsReset200ResponseMetaAffectedPagesItemRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber) require(field *big.Int) { +func (d *DocFormsReset200ResponseMetaAffectedPagesItemRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetFieldObjectNumber sets the FieldObjectNumber field and marks it as non-optional; +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber) SetFieldObjectNumber(fieldObjectNumber int) { - d.FieldObjectNumber = fieldObjectNumber - d.require(docFormsGet200ResponseFieldsItemUnknownRefObjectNumberFieldFieldObjectNumber) +func (d *DocFormsReset200ResponseMetaAffectedPagesItemRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docFormsReset200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID) } -func (d *DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsReset200ResponseMetaAffectedPagesItemRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docFormsReset200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber) +} + +// SetGeneration sets the Generation field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsReset200ResponseMetaAffectedPagesItemRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docFormsReset200ResponseMetaAffectedPagesItemRevisionFieldGeneration) +} + +func (d *DocFormsReset200ResponseMetaAffectedPagesItemRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsReset200ResponseMetaAffectedPagesItemRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber(value) + *d = DocFormsReset200ResponseMetaAffectedPagesItemRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -127976,8 +146296,8 @@ func (d *DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber) UnmarshalJSON(d return nil } -func (d *DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber +func (d *DocFormsReset200ResponseMetaAffectedPagesItemRevision) MarshalJSON() ([]byte, error) { + type embed DocFormsReset200ResponseMetaAffectedPagesItemRevision var marshaler = struct { embed }{ @@ -127987,7 +146307,7 @@ func (d *DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber) MarshalJSON() ( return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber) String() string { +func (d *DocFormsReset200ResponseMetaAffectedPagesItemRevision) String() string { if d == nil { return "" } @@ -127998,56 +146318,40 @@ func (d *DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber) String() string } if value, err := internal.StringifyJSON(d); err == nil { return value - } - return fmt.Sprintf("%#v", d) -} - -type DocFormsGet200ResponseFieldsItemUnknownValueEntry struct { - Kind string - None *DocFormsGet200ResponseFieldsItemUnknownValueEntryNone - Scalar *DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar - Array *DocFormsGet200ResponseFieldsItemUnknownValueEntryArray - Unsupported *DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported + } + return fmt.Sprintf("%#v", d) +} + +type DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState struct { + Kind string + Unknown *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + Known *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntry) GetKind() string { +func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntry) GetNone() *DocFormsGet200ResponseFieldsItemUnknownValueEntryNone { - if d == nil { - return nil - } - return d.None -} - -func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntry) GetScalar() *DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar { - if d == nil { - return nil - } - return d.Scalar -} - -func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntry) GetArray() *DocFormsGet200ResponseFieldsItemUnknownValueEntryArray { +func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState) GetUnknown() *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown { if d == nil { return nil } - return d.Array + return d.Unknown } -func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntry) GetUnsupported() *DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported { +func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKnown() *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown { if d == nil { return nil } - return d.Unsupported + return d.Known } -func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntry) UnmarshalJSON(data []byte) error { +func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -128059,50 +146363,32 @@ func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntry) UnmarshalJSON(data [ return fmt.Errorf("%T did not include discriminant kind", d) } switch unmarshaler.Kind { - case "none": - value := new(DocFormsGet200ResponseFieldsItemUnknownValueEntryNone) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.None = value - case "scalar": - value := new(DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Scalar = value - case "array": - value := new(DocFormsGet200ResponseFieldsItemUnknownValueEntryArray) + case "unknown": + value := new(DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) if err := json.Unmarshal(data, &value); err != nil { return err } - d.Array = value - case "unsupported": - value := new(DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported) + d.Unknown = value + case "known": + value := new(DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) if err := json.Unmarshal(data, &value); err != nil { return err } - d.Unsupported = value + d.Known = value } d.rawJSON = json.RawMessage(data) return nil } -func (d DocFormsGet200ResponseFieldsItemUnknownValueEntry) MarshalJSON() ([]byte, error) { +func (d DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } - if d.None != nil { - return internal.MarshalJSONWithExtraProperty(d.None, "kind", "none") - } - if d.Scalar != nil { - return internal.MarshalJSONWithExtraProperty(d.Scalar, "kind", "scalar") - } - if d.Array != nil { - return internal.MarshalJSONWithExtraProperty(d.Array, "kind", "array") + if d.Unknown != nil { + return internal.MarshalJSONWithExtraProperty(d.Unknown, "kind", "unknown") } - if d.Unsupported != nil { - return internal.MarshalJSONWithExtraProperty(d.Unsupported, "kind", "unsupported") + if d.Known != nil { + return internal.MarshalJSONWithExtraProperty(d.Known, "kind", "known") } if len(d.rawJSON) > 0 { return d.rawJSON, nil @@ -128110,45 +146396,31 @@ func (d DocFormsGet200ResponseFieldsItemUnknownValueEntry) MarshalJSON() ([]byte return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocFormsGet200ResponseFieldsItemUnknownValueEntryVisitor interface { - VisitNone(*DocFormsGet200ResponseFieldsItemUnknownValueEntryNone) error - VisitScalar(*DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar) error - VisitArray(*DocFormsGet200ResponseFieldsItemUnknownValueEntryArray) error - VisitUnsupported(*DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported) error +type DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor interface { + VisitUnknown(*DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) error + VisitKnown(*DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) error } -func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntry) Accept(visitor DocFormsGet200ResponseFieldsItemUnknownValueEntryVisitor) error { - if d.None != nil { - return visitor.VisitNone(d.None) - } - if d.Scalar != nil { - return visitor.VisitScalar(d.Scalar) - } - if d.Array != nil { - return visitor.VisitArray(d.Array) +func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState) Accept(visitor DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor) error { + if d.Unknown != nil { + return visitor.VisitUnknown(d.Unknown) } - if d.Unsupported != nil { - return visitor.VisitUnsupported(d.Unsupported) + if d.Known != nil { + return visitor.VisitKnown(d.Known) } return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntry) validate() error { +func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } var fields []string - if d.None != nil { - fields = append(fields, "none") - } - if d.Scalar != nil { - fields = append(fields, "scalar") - } - if d.Array != nil { - fields = append(fields, "array") + if d.Unknown != nil { + fields = append(fields, "unknown") } - if d.Unsupported != nil { - fields = append(fields, "unsupported") + if d.Known != nil { + fields = append(fields, "known") } if len(fields) == 0 { if d.Kind != "" { @@ -128177,11 +146449,11 @@ func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntry) validate() error { } var ( - docFormsGet200ResponseFieldsItemUnknownValueEntryArrayFieldValues = big.NewInt(1 << 0) + docFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations = big.NewInt(1 << 0) ) -type DocFormsGet200ResponseFieldsItemUnknownValueEntryArray struct { - Values []string `json:"values" url:"values"` +type DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown struct { + HasAnyWeakAnnotations bool `json:"hasAnyWeakAnnotations" url:"hasAnyWeakAnnotations"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -128190,41 +146462,41 @@ type DocFormsGet200ResponseFieldsItemUnknownValueEntryArray struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryArray) GetValues() []string { +func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetHasAnyWeakAnnotations() bool { if d == nil { - return nil + return false } - return d.Values + return d.HasAnyWeakAnnotations } -func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryArray) GetExtraProperties() map[string]interface{} { +func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryArray) require(field *big.Int) { +func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetValues sets the Values field and marks it as non-optional; +// SetHasAnyWeakAnnotations sets the HasAnyWeakAnnotations field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryArray) SetValues(values []string) { - d.Values = values - d.require(docFormsGet200ResponseFieldsItemUnknownValueEntryArrayFieldValues) +func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) SetHasAnyWeakAnnotations(hasAnyWeakAnnotations bool) { + d.HasAnyWeakAnnotations = hasAnyWeakAnnotations + d.require(docFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations) } -func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryArray) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemUnknownValueEntryArray +func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemUnknownValueEntryArray(value) + *d = DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -128234,8 +146506,8 @@ func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryArray) UnmarshalJSON(d return nil } -func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryArray) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemUnknownValueEntryArray +func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) MarshalJSON() ([]byte, error) { + type embed DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown var marshaler = struct { embed }{ @@ -128245,7 +146517,7 @@ func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryArray) MarshalJSON() ( return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryArray) String() string { +func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) String() string { if d == nil { return "" } @@ -128260,7 +146532,7 @@ func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryArray) String() string return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemUnknownValueEntryNone struct { +type DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -128269,27 +146541,27 @@ type DocFormsGet200ResponseFieldsItemUnknownValueEntryNone struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryNone) GetExtraProperties() map[string]interface{} { +func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryNone) require(field *big.Int) { +func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryNone) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemUnknownValueEntryNone +func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemUnknownValueEntryNone(value) + *d = DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -128299,8 +146571,8 @@ func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryNone) UnmarshalJSON(da return nil } -func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryNone) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemUnknownValueEntryNone +func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) MarshalJSON() ([]byte, error) { + type embed DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown var marshaler = struct { embed }{ @@ -128310,7 +146582,7 @@ func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryNone) MarshalJSON() ([ return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryNone) String() string { +func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) String() string { if d == nil { return "" } @@ -128326,11 +146598,21 @@ func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryNone) String() string } var ( - docFormsGet200ResponseFieldsItemUnknownValueEntryScalarFieldValue = big.NewInt(1 << 0) + docFormsReset200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) + docFormsReset200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) + docFormsReset200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) + docFormsReset200ResponseMetaCacheDeltaFieldLayerVersion = big.NewInt(1 << 3) + docFormsReset200ResponseMetaCacheDeltaFieldWorking = big.NewInt(1 << 4) + docFormsReset200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 5) ) -type DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar struct { - Value string `json:"value" url:"value"` +type DocFormsReset200ResponseMetaCacheDelta struct { + PreviousDocVersion int `json:"previousDocVersion" url:"previousDocVersion"` + DocVersion int `json:"docVersion" url:"docVersion"` + AnnotationsVersion *int `json:"annotationsVersion,omitempty" url:"annotationsVersion,omitempty"` + LayerVersion *int `json:"layerVersion,omitempty" url:"layerVersion,omitempty"` + Working *bool `json:"working,omitempty" url:"working,omitempty"` + Pages []*DocFormsReset200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -128339,41 +146621,111 @@ type DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar) GetValue() string { +func (d *DocFormsReset200ResponseMetaCacheDelta) GetPreviousDocVersion() int { if d == nil { - return "" + return 0 } - return d.Value + return d.PreviousDocVersion } -func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar) GetExtraProperties() map[string]interface{} { +func (d *DocFormsReset200ResponseMetaCacheDelta) GetDocVersion() int { + if d == nil { + return 0 + } + return d.DocVersion +} + +func (d *DocFormsReset200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { + if d == nil { + return nil + } + return d.AnnotationsVersion +} + +func (d *DocFormsReset200ResponseMetaCacheDelta) GetLayerVersion() *int { + if d == nil { + return nil + } + return d.LayerVersion +} + +func (d *DocFormsReset200ResponseMetaCacheDelta) GetWorking() *bool { + if d == nil { + return nil + } + return d.Working +} + +func (d *DocFormsReset200ResponseMetaCacheDelta) GetPages() []*DocFormsReset200ResponseMetaCacheDeltaPagesItem { + if d == nil { + return nil + } + return d.Pages +} + +func (d *DocFormsReset200ResponseMetaCacheDelta) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar) require(field *big.Int) { +func (d *DocFormsReset200ResponseMetaCacheDelta) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetValue sets the Value field and marks it as non-optional; +// SetPreviousDocVersion sets the PreviousDocVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar) SetValue(value string) { - d.Value = value - d.require(docFormsGet200ResponseFieldsItemUnknownValueEntryScalarFieldValue) +func (d *DocFormsReset200ResponseMetaCacheDelta) SetPreviousDocVersion(previousDocVersion int) { + d.PreviousDocVersion = previousDocVersion + d.require(docFormsReset200ResponseMetaCacheDeltaFieldPreviousDocVersion) } -func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar +// SetDocVersion sets the DocVersion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsReset200ResponseMetaCacheDelta) SetDocVersion(docVersion int) { + d.DocVersion = docVersion + d.require(docFormsReset200ResponseMetaCacheDeltaFieldDocVersion) +} + +// SetAnnotationsVersion sets the AnnotationsVersion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsReset200ResponseMetaCacheDelta) SetAnnotationsVersion(annotationsVersion *int) { + d.AnnotationsVersion = annotationsVersion + d.require(docFormsReset200ResponseMetaCacheDeltaFieldAnnotationsVersion) +} + +// SetLayerVersion sets the LayerVersion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsReset200ResponseMetaCacheDelta) SetLayerVersion(layerVersion *int) { + d.LayerVersion = layerVersion + d.require(docFormsReset200ResponseMetaCacheDeltaFieldLayerVersion) +} + +// SetWorking sets the Working field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsReset200ResponseMetaCacheDelta) SetWorking(working *bool) { + d.Working = working + d.require(docFormsReset200ResponseMetaCacheDeltaFieldWorking) +} + +// SetPages sets the Pages field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsReset200ResponseMetaCacheDelta) SetPages(pages []*DocFormsReset200ResponseMetaCacheDeltaPagesItem) { + d.Pages = pages + d.require(docFormsReset200ResponseMetaCacheDeltaFieldPages) +} + +func (d *DocFormsReset200ResponseMetaCacheDelta) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsReset200ResponseMetaCacheDelta var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar(value) + *d = DocFormsReset200ResponseMetaCacheDelta(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -128383,8 +146735,8 @@ func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar) UnmarshalJSON( return nil } -func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar +func (d *DocFormsReset200ResponseMetaCacheDelta) MarshalJSON() ([]byte, error) { + type embed DocFormsReset200ResponseMetaCacheDelta var marshaler = struct { embed }{ @@ -128394,7 +146746,7 @@ func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar) MarshalJSON() return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar) String() string { +func (d *DocFormsReset200ResponseMetaCacheDelta) String() string { if d == nil { return "" } @@ -128409,7 +146761,14 @@ func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar) String() strin return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported struct { +var ( + docFormsReset200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) + docFormsReset200ResponseMetaCacheDeltaPagesItemFieldCache = big.NewInt(1 << 1) +) + +type DocFormsReset200ResponseMetaCacheDeltaPagesItem struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Cache *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache `json:"cache" url:"cache"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -128418,27 +146777,55 @@ type DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported) GetExtraProperties() map[string]interface{} { +func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItem) GetPageObjectNumber() int { + if d == nil { + return 0 + } + return d.PageObjectNumber +} + +func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItem) GetCache() *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache { + if d == nil { + return nil + } + return d.Cache +} + +func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported) require(field *big.Int) { +func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItem) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docFormsReset200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber) +} + +// SetCache sets the Cache field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItem) SetCache(cache *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache) { + d.Cache = cache + d.require(docFormsReset200ResponseMetaCacheDeltaPagesItemFieldCache) +} + +func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsReset200ResponseMetaCacheDeltaPagesItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported(value) + *d = DocFormsReset200ResponseMetaCacheDeltaPagesItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -128448,8 +146835,8 @@ func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported) Unmarshal return nil } -func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported +func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItem) MarshalJSON() ([]byte, error) { + type embed DocFormsReset200ResponseMetaCacheDeltaPagesItem var marshaler = struct { embed }{ @@ -128459,7 +146846,7 @@ func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported) MarshalJS return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported) String() string { +func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItem) String() string { if d == nil { return "" } @@ -128475,13 +146862,13 @@ func (d *DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported) String() } var ( - docFormsGet200ResponseFieldsItemUnknownWidgetsItemFieldAnnotObjectNumber = big.NewInt(1 << 0) - docFormsGet200ResponseFieldsItemUnknownWidgetsItemFieldPageObjectNumber = big.NewInt(1 << 1) + docFormsReset200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion = big.NewInt(1 << 0) + docFormsReset200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion = big.NewInt(1 << 1) ) -type DocFormsGet200ResponseFieldsItemUnknownWidgetsItem struct { - AnnotObjectNumber int `json:"annotObjectNumber" url:"annotObjectNumber"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` +type DocFormsReset200ResponseMetaCacheDeltaPagesItemCache struct { + ContentVersion int `json:"contentVersion" url:"contentVersion"` + AnnotationVersion int `json:"annotationVersion" url:"annotationVersion"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -128490,55 +146877,55 @@ type DocFormsGet200ResponseFieldsItemUnknownWidgetsItem struct { rawJSON json.RawMessage } -func (d *DocFormsGet200ResponseFieldsItemUnknownWidgetsItem) GetAnnotObjectNumber() int { +func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache) GetContentVersion() int { if d == nil { return 0 } - return d.AnnotObjectNumber + return d.ContentVersion } -func (d *DocFormsGet200ResponseFieldsItemUnknownWidgetsItem) GetPageObjectNumber() int { +func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache) GetAnnotationVersion() int { if d == nil { return 0 } - return d.PageObjectNumber + return d.AnnotationVersion } -func (d *DocFormsGet200ResponseFieldsItemUnknownWidgetsItem) GetExtraProperties() map[string]interface{} { +func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet200ResponseFieldsItemUnknownWidgetsItem) require(field *big.Int) { +func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetAnnotObjectNumber sets the AnnotObjectNumber field and marks it as non-optional; +// SetContentVersion sets the ContentVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemUnknownWidgetsItem) SetAnnotObjectNumber(annotObjectNumber int) { - d.AnnotObjectNumber = annotObjectNumber - d.require(docFormsGet200ResponseFieldsItemUnknownWidgetsItemFieldAnnotObjectNumber) +func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache) SetContentVersion(contentVersion int) { + d.ContentVersion = contentVersion + d.require(docFormsReset200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetAnnotationVersion sets the AnnotationVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet200ResponseFieldsItemUnknownWidgetsItem) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docFormsGet200ResponseFieldsItemUnknownWidgetsItemFieldPageObjectNumber) +func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache) SetAnnotationVersion(annotationVersion int) { + d.AnnotationVersion = annotationVersion + d.require(docFormsReset200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion) } -func (d *DocFormsGet200ResponseFieldsItemUnknownWidgetsItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet200ResponseFieldsItemUnknownWidgetsItem +func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsReset200ResponseMetaCacheDeltaPagesItemCache var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet200ResponseFieldsItemUnknownWidgetsItem(value) + *d = DocFormsReset200ResponseMetaCacheDeltaPagesItemCache(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -128548,8 +146935,8 @@ func (d *DocFormsGet200ResponseFieldsItemUnknownWidgetsItem) UnmarshalJSON(data return nil } -func (d *DocFormsGet200ResponseFieldsItemUnknownWidgetsItem) MarshalJSON() ([]byte, error) { - type embed DocFormsGet200ResponseFieldsItemUnknownWidgetsItem +func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON() ([]byte, error) { + type embed DocFormsReset200ResponseMetaCacheDeltaPagesItemCache var marshaler = struct { embed }{ @@ -128559,7 +146946,7 @@ func (d *DocFormsGet200ResponseFieldsItemUnknownWidgetsItem) MarshalJSON() ([]by return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet200ResponseFieldsItemUnknownWidgetsItem) String() string { +func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache) String() string { if d == nil { return "" } @@ -128574,43 +146961,18 @@ func (d *DocFormsGet200ResponseFieldsItemUnknownWidgetsItem) String() string { return fmt.Sprintf("%#v", d) } -type DocFormsGet200ResponseFormKind string - -const ( - DocFormsGet200ResponseFormKindNone DocFormsGet200ResponseFormKind = "none" - DocFormsGet200ResponseFormKindAcroform DocFormsGet200ResponseFormKind = "acroform" - DocFormsGet200ResponseFormKindXfa DocFormsGet200ResponseFormKind = "xfa" -) - -func NewDocFormsGet200ResponseFormKindFromString(s string) (DocFormsGet200ResponseFormKind, error) { - switch s { - case "none": - return DocFormsGet200ResponseFormKindNone, nil - case "acroform": - return DocFormsGet200ResponseFormKindAcroform, nil - case "xfa": - return DocFormsGet200ResponseFormKindXfa, nil - } - var t DocFormsGet200ResponseFormKind - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocFormsGet200ResponseFormKind) Ptr() *DocFormsGet200ResponseFormKind { - return &d -} - var ( - docFormsGet404ResponseFieldName = big.NewInt(1 << 0) - docFormsGet404ResponseFieldCode = big.NewInt(1 << 1) - docFormsGet404ResponseFieldMessage = big.NewInt(1 << 2) - docFormsGet404ResponseFieldDetails = big.NewInt(1 << 3) + docFormsReset404ResponseFieldName = big.NewInt(1 << 0) + docFormsReset404ResponseFieldCode = big.NewInt(1 << 1) + docFormsReset404ResponseFieldMessage = big.NewInt(1 << 2) + docFormsReset404ResponseFieldDetails = big.NewInt(1 << 3) ) -type DocFormsGet404Response struct { - Name DocFormsGet404ResponseName `json:"name" url:"name"` - Code DocFormsGet404ResponseCode `json:"code" url:"code"` - Message string `json:"message" url:"message"` - Details map[string]any `json:"details,omitempty" url:"details,omitempty"` +type DocFormsReset404Response struct { + Name DocFormsReset404ResponseName `json:"name" url:"name"` + Code DocFormsReset404ResponseCode `json:"code" url:"code"` + Message string `json:"message" url:"message"` + Details map[string]any `json:"details,omitempty" url:"details,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -128619,42 +146981,42 @@ type DocFormsGet404Response struct { rawJSON json.RawMessage } -func (d *DocFormsGet404Response) GetName() DocFormsGet404ResponseName { +func (d *DocFormsReset404Response) GetName() DocFormsReset404ResponseName { if d == nil { return "" } return d.Name } -func (d *DocFormsGet404Response) GetCode() DocFormsGet404ResponseCode { +func (d *DocFormsReset404Response) GetCode() DocFormsReset404ResponseCode { if d == nil { return "" } return d.Code } -func (d *DocFormsGet404Response) GetMessage() string { +func (d *DocFormsReset404Response) GetMessage() string { if d == nil { return "" } return d.Message } -func (d *DocFormsGet404Response) GetDetails() map[string]any { +func (d *DocFormsReset404Response) GetDetails() map[string]any { if d == nil { return nil } return d.Details } -func (d *DocFormsGet404Response) GetExtraProperties() map[string]interface{} { +func (d *DocFormsReset404Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsGet404Response) require(field *big.Int) { +func (d *DocFormsReset404Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -128663,39 +147025,39 @@ func (d *DocFormsGet404Response) require(field *big.Int) { // SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet404Response) SetName(name DocFormsGet404ResponseName) { +func (d *DocFormsReset404Response) SetName(name DocFormsReset404ResponseName) { d.Name = name - d.require(docFormsGet404ResponseFieldName) + d.require(docFormsReset404ResponseFieldName) } // SetCode sets the Code field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet404Response) SetCode(code DocFormsGet404ResponseCode) { +func (d *DocFormsReset404Response) SetCode(code DocFormsReset404ResponseCode) { d.Code = code - d.require(docFormsGet404ResponseFieldCode) + d.require(docFormsReset404ResponseFieldCode) } // SetMessage sets the Message field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet404Response) SetMessage(message string) { +func (d *DocFormsReset404Response) SetMessage(message string) { d.Message = message - d.require(docFormsGet404ResponseFieldMessage) + d.require(docFormsReset404ResponseFieldMessage) } // SetDetails sets the Details field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsGet404Response) SetDetails(details map[string]any) { +func (d *DocFormsReset404Response) SetDetails(details map[string]any) { d.Details = details - d.require(docFormsGet404ResponseFieldDetails) + d.require(docFormsReset404ResponseFieldDetails) } -func (d *DocFormsGet404Response) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsGet404Response +func (d *DocFormsReset404Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsReset404Response var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsGet404Response(value) + *d = DocFormsReset404Response(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -128705,8 +147067,8 @@ func (d *DocFormsGet404Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocFormsGet404Response) MarshalJSON() ([]byte, error) { - type embed DocFormsGet404Response +func (d *DocFormsReset404Response) MarshalJSON() ([]byte, error) { + type embed DocFormsReset404Response var marshaler = struct { embed }{ @@ -128716,137 +147078,137 @@ func (d *DocFormsGet404Response) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocFormsGet404Response) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) -} - -type DocFormsGet404ResponseCode string - -const ( - DocFormsGet404ResponseCodeUnknown DocFormsGet404ResponseCode = "Unknown" - DocFormsGet404ResponseCodeInvalidArg DocFormsGet404ResponseCode = "InvalidArg" - DocFormsGet404ResponseCodeDocNotOpen DocFormsGet404ResponseCode = "DocNotOpen" - DocFormsGet404ResponseCodeDocOpenFailed DocFormsGet404ResponseCode = "DocOpenFailed" - DocFormsGet404ResponseCodeDocPasswordRequired DocFormsGet404ResponseCode = "DocPasswordRequired" - DocFormsGet404ResponseCodeDocPasswordIncorrect DocFormsGet404ResponseCode = "DocPasswordIncorrect" - DocFormsGet404ResponseCodeSharePasswordRequired DocFormsGet404ResponseCode = "SharePasswordRequired" - DocFormsGet404ResponseCodeAborted DocFormsGet404ResponseCode = "Aborted" - DocFormsGet404ResponseCodeNetwork DocFormsGet404ResponseCode = "Network" - DocFormsGet404ResponseCodeUnauthenticated DocFormsGet404ResponseCode = "Unauthenticated" - DocFormsGet404ResponseCodeForbidden DocFormsGet404ResponseCode = "Forbidden" - DocFormsGet404ResponseCodeNotFound DocFormsGet404ResponseCode = "NotFound" - DocFormsGet404ResponseCodeWireFormat DocFormsGet404ResponseCode = "WireFormat" - DocFormsGet404ResponseCodeRuntimeUnavailable DocFormsGet404ResponseCode = "RuntimeUnavailable" - DocFormsGet404ResponseCodeInvalidReference DocFormsGet404ResponseCode = "InvalidReference" - DocFormsGet404ResponseCodeWeakAnnotationSessionConflict DocFormsGet404ResponseCode = "WeakAnnotationSessionConflict" - DocFormsGet404ResponseCodeLayerVersionConflict DocFormsGet404ResponseCode = "LayerVersionConflict" - DocFormsGet404ResponseCodeNotImplemented DocFormsGet404ResponseCode = "NotImplemented" - DocFormsGet404ResponseCodeMalformedPdf DocFormsGet404ResponseCode = "MalformedPdf" - DocFormsGet404ResponseCodeSigningPending DocFormsGet404ResponseCode = "SigningPending" - DocFormsGet404ResponseCodeSigningExpired DocFormsGet404ResponseCode = "SigningExpired" - DocFormsGet404ResponseCodeSigningVersionMismatch DocFormsGet404ResponseCode = "SigningVersionMismatch" - DocFormsGet404ResponseCodeSignatureRefused DocFormsGet404ResponseCode = "SignatureRefused" - DocFormsGet404ResponseCodeProtectedDocument DocFormsGet404ResponseCode = "ProtectedDocument" - DocFormsGet404ResponseCodeStaleBase DocFormsGet404ResponseCode = "StaleBase" +func (d *DocFormsReset404Response) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocFormsReset404ResponseCode string + +const ( + DocFormsReset404ResponseCodeUnknown DocFormsReset404ResponseCode = "Unknown" + DocFormsReset404ResponseCodeInvalidArg DocFormsReset404ResponseCode = "InvalidArg" + DocFormsReset404ResponseCodeDocNotOpen DocFormsReset404ResponseCode = "DocNotOpen" + DocFormsReset404ResponseCodeDocOpenFailed DocFormsReset404ResponseCode = "DocOpenFailed" + DocFormsReset404ResponseCodeDocPasswordRequired DocFormsReset404ResponseCode = "DocPasswordRequired" + DocFormsReset404ResponseCodeDocPasswordIncorrect DocFormsReset404ResponseCode = "DocPasswordIncorrect" + DocFormsReset404ResponseCodeSharePasswordRequired DocFormsReset404ResponseCode = "SharePasswordRequired" + DocFormsReset404ResponseCodeAborted DocFormsReset404ResponseCode = "Aborted" + DocFormsReset404ResponseCodeNetwork DocFormsReset404ResponseCode = "Network" + DocFormsReset404ResponseCodeUnauthenticated DocFormsReset404ResponseCode = "Unauthenticated" + DocFormsReset404ResponseCodeForbidden DocFormsReset404ResponseCode = "Forbidden" + DocFormsReset404ResponseCodeNotFound DocFormsReset404ResponseCode = "NotFound" + DocFormsReset404ResponseCodeWireFormat DocFormsReset404ResponseCode = "WireFormat" + DocFormsReset404ResponseCodeRuntimeUnavailable DocFormsReset404ResponseCode = "RuntimeUnavailable" + DocFormsReset404ResponseCodeInvalidReference DocFormsReset404ResponseCode = "InvalidReference" + DocFormsReset404ResponseCodeWeakAnnotationSessionConflict DocFormsReset404ResponseCode = "WeakAnnotationSessionConflict" + DocFormsReset404ResponseCodeLayerVersionConflict DocFormsReset404ResponseCode = "LayerVersionConflict" + DocFormsReset404ResponseCodeNotImplemented DocFormsReset404ResponseCode = "NotImplemented" + DocFormsReset404ResponseCodeMalformedPdf DocFormsReset404ResponseCode = "MalformedPdf" + DocFormsReset404ResponseCodeSigningPending DocFormsReset404ResponseCode = "SigningPending" + DocFormsReset404ResponseCodeSigningExpired DocFormsReset404ResponseCode = "SigningExpired" + DocFormsReset404ResponseCodeSigningVersionMismatch DocFormsReset404ResponseCode = "SigningVersionMismatch" + DocFormsReset404ResponseCodeSignatureRefused DocFormsReset404ResponseCode = "SignatureRefused" + DocFormsReset404ResponseCodeProtectedDocument DocFormsReset404ResponseCode = "ProtectedDocument" + DocFormsReset404ResponseCodeStaleBase DocFormsReset404ResponseCode = "StaleBase" ) -func NewDocFormsGet404ResponseCodeFromString(s string) (DocFormsGet404ResponseCode, error) { +func NewDocFormsReset404ResponseCodeFromString(s string) (DocFormsReset404ResponseCode, error) { switch s { case "Unknown": - return DocFormsGet404ResponseCodeUnknown, nil + return DocFormsReset404ResponseCodeUnknown, nil case "InvalidArg": - return DocFormsGet404ResponseCodeInvalidArg, nil + return DocFormsReset404ResponseCodeInvalidArg, nil case "DocNotOpen": - return DocFormsGet404ResponseCodeDocNotOpen, nil + return DocFormsReset404ResponseCodeDocNotOpen, nil case "DocOpenFailed": - return DocFormsGet404ResponseCodeDocOpenFailed, nil + return DocFormsReset404ResponseCodeDocOpenFailed, nil case "DocPasswordRequired": - return DocFormsGet404ResponseCodeDocPasswordRequired, nil + return DocFormsReset404ResponseCodeDocPasswordRequired, nil case "DocPasswordIncorrect": - return DocFormsGet404ResponseCodeDocPasswordIncorrect, nil + return DocFormsReset404ResponseCodeDocPasswordIncorrect, nil case "SharePasswordRequired": - return DocFormsGet404ResponseCodeSharePasswordRequired, nil + return DocFormsReset404ResponseCodeSharePasswordRequired, nil case "Aborted": - return DocFormsGet404ResponseCodeAborted, nil + return DocFormsReset404ResponseCodeAborted, nil case "Network": - return DocFormsGet404ResponseCodeNetwork, nil + return DocFormsReset404ResponseCodeNetwork, nil case "Unauthenticated": - return DocFormsGet404ResponseCodeUnauthenticated, nil + return DocFormsReset404ResponseCodeUnauthenticated, nil case "Forbidden": - return DocFormsGet404ResponseCodeForbidden, nil + return DocFormsReset404ResponseCodeForbidden, nil case "NotFound": - return DocFormsGet404ResponseCodeNotFound, nil + return DocFormsReset404ResponseCodeNotFound, nil case "WireFormat": - return DocFormsGet404ResponseCodeWireFormat, nil + return DocFormsReset404ResponseCodeWireFormat, nil case "RuntimeUnavailable": - return DocFormsGet404ResponseCodeRuntimeUnavailable, nil + return DocFormsReset404ResponseCodeRuntimeUnavailable, nil case "InvalidReference": - return DocFormsGet404ResponseCodeInvalidReference, nil + return DocFormsReset404ResponseCodeInvalidReference, nil case "WeakAnnotationSessionConflict": - return DocFormsGet404ResponseCodeWeakAnnotationSessionConflict, nil + return DocFormsReset404ResponseCodeWeakAnnotationSessionConflict, nil case "LayerVersionConflict": - return DocFormsGet404ResponseCodeLayerVersionConflict, nil + return DocFormsReset404ResponseCodeLayerVersionConflict, nil case "NotImplemented": - return DocFormsGet404ResponseCodeNotImplemented, nil + return DocFormsReset404ResponseCodeNotImplemented, nil case "MalformedPdf": - return DocFormsGet404ResponseCodeMalformedPdf, nil + return DocFormsReset404ResponseCodeMalformedPdf, nil case "SigningPending": - return DocFormsGet404ResponseCodeSigningPending, nil + return DocFormsReset404ResponseCodeSigningPending, nil case "SigningExpired": - return DocFormsGet404ResponseCodeSigningExpired, nil + return DocFormsReset404ResponseCodeSigningExpired, nil case "SigningVersionMismatch": - return DocFormsGet404ResponseCodeSigningVersionMismatch, nil + return DocFormsReset404ResponseCodeSigningVersionMismatch, nil case "SignatureRefused": - return DocFormsGet404ResponseCodeSignatureRefused, nil + return DocFormsReset404ResponseCodeSignatureRefused, nil case "ProtectedDocument": - return DocFormsGet404ResponseCodeProtectedDocument, nil + return DocFormsReset404ResponseCodeProtectedDocument, nil case "StaleBase": - return DocFormsGet404ResponseCodeStaleBase, nil + return DocFormsReset404ResponseCodeStaleBase, nil } - var t DocFormsGet404ResponseCode + var t DocFormsReset404ResponseCode return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocFormsGet404ResponseCode) Ptr() *DocFormsGet404ResponseCode { +func (d DocFormsReset404ResponseCode) Ptr() *DocFormsReset404ResponseCode { return &d } -type DocFormsGet404ResponseName string +type DocFormsReset404ResponseName string const ( - DocFormsGet404ResponseNameEngineError DocFormsGet404ResponseName = "EngineError" + DocFormsReset404ResponseNameEngineError DocFormsReset404ResponseName = "EngineError" ) -func NewDocFormsGet404ResponseNameFromString(s string) (DocFormsGet404ResponseName, error) { +func NewDocFormsReset404ResponseNameFromString(s string) (DocFormsReset404ResponseName, error) { switch s { case "EngineError": - return DocFormsGet404ResponseNameEngineError, nil + return DocFormsReset404ResponseNameEngineError, nil } - var t DocFormsGet404ResponseName + var t DocFormsReset404ResponseName return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocFormsGet404ResponseName) Ptr() *DocFormsGet404ResponseName { +func (d DocFormsReset404ResponseName) Ptr() *DocFormsReset404ResponseName { return &d } var ( - docFormsImportData200ResponseFieldMeta = big.NewInt(1 << 0) + docFormsSetValue200ResponseFieldMeta = big.NewInt(1 << 0) ) -type DocFormsImportData200Response struct { - Meta *DocFormsImportData200ResponseMeta `json:"meta" url:"meta"` +type DocFormsSetValue200Response struct { + Meta *DocFormsSetValue200ResponseMeta `json:"meta" url:"meta"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -128856,21 +147218,21 @@ type DocFormsImportData200Response struct { rawJSON json.RawMessage } -func (d *DocFormsImportData200Response) GetMeta() *DocFormsImportData200ResponseMeta { +func (d *DocFormsSetValue200Response) GetMeta() *DocFormsSetValue200ResponseMeta { if d == nil { return nil } return d.Meta } -func (d *DocFormsImportData200Response) GetExtraProperties() map[string]interface{} { +func (d *DocFormsSetValue200Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.ExtraProperties } -func (d *DocFormsImportData200Response) require(field *big.Int) { +func (d *DocFormsSetValue200Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -128879,13 +147241,13 @@ func (d *DocFormsImportData200Response) require(field *big.Int) { // SetMeta sets the Meta field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsImportData200Response) SetMeta(meta *DocFormsImportData200ResponseMeta) { +func (d *DocFormsSetValue200Response) SetMeta(meta *DocFormsSetValue200ResponseMeta) { d.Meta = meta - d.require(docFormsImportData200ResponseFieldMeta) + d.require(docFormsSetValue200ResponseFieldMeta) } -func (d *DocFormsImportData200Response) UnmarshalJSON(data []byte) error { - type embed DocFormsImportData200Response +func (d *DocFormsSetValue200Response) UnmarshalJSON(data []byte) error { + type embed DocFormsSetValue200Response var unmarshaler = struct { embed }{ @@ -128894,7 +147256,7 @@ func (d *DocFormsImportData200Response) UnmarshalJSON(data []byte) error { if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocFormsImportData200Response(unmarshaler.embed) + *d = DocFormsSetValue200Response(unmarshaler.embed) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -128904,8 +147266,8 @@ func (d *DocFormsImportData200Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocFormsImportData200Response) MarshalJSON() ([]byte, error) { - type embed DocFormsImportData200Response +func (d *DocFormsSetValue200Response) MarshalJSON() ([]byte, error) { + type embed DocFormsSetValue200Response var marshaler = struct { embed }{ @@ -128915,7 +147277,7 @@ func (d *DocFormsImportData200Response) MarshalJSON() ([]byte, error) { return internal.MarshalJSONWithExtraProperties(explicitMarshaler, d.ExtraProperties) } -func (d *DocFormsImportData200Response) String() string { +func (d *DocFormsSetValue200Response) String() string { if d == nil { return "" } @@ -128931,13 +147293,13 @@ func (d *DocFormsImportData200Response) String() string { } var ( - docFormsImportData200ResponseMetaFieldAffectedPages = big.NewInt(1 << 0) - docFormsImportData200ResponseMetaFieldCacheDelta = big.NewInt(1 << 1) + docFormsSetValue200ResponseMetaFieldAffectedPages = big.NewInt(1 << 0) + docFormsSetValue200ResponseMetaFieldCacheDelta = big.NewInt(1 << 1) ) -type DocFormsImportData200ResponseMeta struct { - AffectedPages []*DocFormsImportData200ResponseMetaAffectedPagesItem `json:"affectedPages" url:"affectedPages"` - CacheDelta *DocFormsImportData200ResponseMetaCacheDelta `json:"cacheDelta,omitempty" url:"cacheDelta,omitempty"` +type DocFormsSetValue200ResponseMeta struct { + AffectedPages []*DocFormsSetValue200ResponseMetaAffectedPagesItem `json:"affectedPages" url:"affectedPages"` + CacheDelta *DocFormsSetValue200ResponseMetaCacheDelta `json:"cacheDelta,omitempty" url:"cacheDelta,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -128946,28 +147308,28 @@ type DocFormsImportData200ResponseMeta struct { rawJSON json.RawMessage } -func (d *DocFormsImportData200ResponseMeta) GetAffectedPages() []*DocFormsImportData200ResponseMetaAffectedPagesItem { +func (d *DocFormsSetValue200ResponseMeta) GetAffectedPages() []*DocFormsSetValue200ResponseMetaAffectedPagesItem { if d == nil { return nil } return d.AffectedPages } -func (d *DocFormsImportData200ResponseMeta) GetCacheDelta() *DocFormsImportData200ResponseMetaCacheDelta { +func (d *DocFormsSetValue200ResponseMeta) GetCacheDelta() *DocFormsSetValue200ResponseMetaCacheDelta { if d == nil { return nil } return d.CacheDelta } -func (d *DocFormsImportData200ResponseMeta) GetExtraProperties() map[string]interface{} { +func (d *DocFormsSetValue200ResponseMeta) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsImportData200ResponseMeta) require(field *big.Int) { +func (d *DocFormsSetValue200ResponseMeta) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -128976,25 +147338,25 @@ func (d *DocFormsImportData200ResponseMeta) require(field *big.Int) { // SetAffectedPages sets the AffectedPages field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsImportData200ResponseMeta) SetAffectedPages(affectedPages []*DocFormsImportData200ResponseMetaAffectedPagesItem) { +func (d *DocFormsSetValue200ResponseMeta) SetAffectedPages(affectedPages []*DocFormsSetValue200ResponseMetaAffectedPagesItem) { d.AffectedPages = affectedPages - d.require(docFormsImportData200ResponseMetaFieldAffectedPages) + d.require(docFormsSetValue200ResponseMetaFieldAffectedPages) } // SetCacheDelta sets the CacheDelta field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsImportData200ResponseMeta) SetCacheDelta(cacheDelta *DocFormsImportData200ResponseMetaCacheDelta) { +func (d *DocFormsSetValue200ResponseMeta) SetCacheDelta(cacheDelta *DocFormsSetValue200ResponseMetaCacheDelta) { d.CacheDelta = cacheDelta - d.require(docFormsImportData200ResponseMetaFieldCacheDelta) + d.require(docFormsSetValue200ResponseMetaFieldCacheDelta) } -func (d *DocFormsImportData200ResponseMeta) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsImportData200ResponseMeta +func (d *DocFormsSetValue200ResponseMeta) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsSetValue200ResponseMeta var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsImportData200ResponseMeta(value) + *d = DocFormsSetValue200ResponseMeta(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -129004,8 +147366,8 @@ func (d *DocFormsImportData200ResponseMeta) UnmarshalJSON(data []byte) error { return nil } -func (d *DocFormsImportData200ResponseMeta) MarshalJSON() ([]byte, error) { - type embed DocFormsImportData200ResponseMeta +func (d *DocFormsSetValue200ResponseMeta) MarshalJSON() ([]byte, error) { + type embed DocFormsSetValue200ResponseMeta var marshaler = struct { embed }{ @@ -129015,7 +147377,7 @@ func (d *DocFormsImportData200ResponseMeta) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocFormsImportData200ResponseMeta) String() string { +func (d *DocFormsSetValue200ResponseMeta) String() string { if d == nil { return "" } @@ -129031,15 +147393,15 @@ func (d *DocFormsImportData200ResponseMeta) String() string { } var ( - docFormsImportData200ResponseMetaAffectedPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) - docFormsImportData200ResponseMetaAffectedPagesItemFieldRevision = big.NewInt(1 << 1) - docFormsImportData200ResponseMetaAffectedPagesItemFieldWeakAnnotationState = big.NewInt(1 << 2) + docFormsSetValue200ResponseMetaAffectedPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) + docFormsSetValue200ResponseMetaAffectedPagesItemFieldRevision = big.NewInt(1 << 1) + docFormsSetValue200ResponseMetaAffectedPagesItemFieldWeakAnnotationState = big.NewInt(1 << 2) ) -type DocFormsImportData200ResponseMetaAffectedPagesItem struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Revision *DocFormsImportData200ResponseMetaAffectedPagesItemRevision `json:"revision" url:"revision"` - WeakAnnotationState *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState `json:"weakAnnotationState" url:"weakAnnotationState"` +type DocFormsSetValue200ResponseMetaAffectedPagesItem struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Revision *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision `json:"revision" url:"revision"` + WeakAnnotationState *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState `json:"weakAnnotationState" url:"weakAnnotationState"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -129048,35 +147410,35 @@ type DocFormsImportData200ResponseMetaAffectedPagesItem struct { rawJSON json.RawMessage } -func (d *DocFormsImportData200ResponseMetaAffectedPagesItem) GetPageObjectNumber() int { +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItem) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocFormsImportData200ResponseMetaAffectedPagesItem) GetRevision() *DocFormsImportData200ResponseMetaAffectedPagesItemRevision { +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItem) GetRevision() *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision { if d == nil { return nil } return d.Revision } -func (d *DocFormsImportData200ResponseMetaAffectedPagesItem) GetWeakAnnotationState() *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState { +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItem) GetWeakAnnotationState() *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState { if d == nil { return nil } return d.WeakAnnotationState } -func (d *DocFormsImportData200ResponseMetaAffectedPagesItem) GetExtraProperties() map[string]interface{} { +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsImportData200ResponseMetaAffectedPagesItem) require(field *big.Int) { +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -129085,32 +147447,32 @@ func (d *DocFormsImportData200ResponseMetaAffectedPagesItem) require(field *big. // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsImportData200ResponseMetaAffectedPagesItem) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItem) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docFormsImportData200ResponseMetaAffectedPagesItemFieldPageObjectNumber) + d.require(docFormsSetValue200ResponseMetaAffectedPagesItemFieldPageObjectNumber) } // SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsImportData200ResponseMetaAffectedPagesItem) SetRevision(revision *DocFormsImportData200ResponseMetaAffectedPagesItemRevision) { +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItem) SetRevision(revision *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision) { d.Revision = revision - d.require(docFormsImportData200ResponseMetaAffectedPagesItemFieldRevision) + d.require(docFormsSetValue200ResponseMetaAffectedPagesItemFieldRevision) } // SetWeakAnnotationState sets the WeakAnnotationState field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsImportData200ResponseMetaAffectedPagesItem) SetWeakAnnotationState(weakAnnotationState *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState) { +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItem) SetWeakAnnotationState(weakAnnotationState *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState) { d.WeakAnnotationState = weakAnnotationState - d.require(docFormsImportData200ResponseMetaAffectedPagesItemFieldWeakAnnotationState) + d.require(docFormsSetValue200ResponseMetaAffectedPagesItemFieldWeakAnnotationState) } -func (d *DocFormsImportData200ResponseMetaAffectedPagesItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsImportData200ResponseMetaAffectedPagesItem +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsSetValue200ResponseMetaAffectedPagesItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsImportData200ResponseMetaAffectedPagesItem(value) + *d = DocFormsSetValue200ResponseMetaAffectedPagesItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -129120,8 +147482,8 @@ func (d *DocFormsImportData200ResponseMetaAffectedPagesItem) UnmarshalJSON(data return nil } -func (d *DocFormsImportData200ResponseMetaAffectedPagesItem) MarshalJSON() ([]byte, error) { - type embed DocFormsImportData200ResponseMetaAffectedPagesItem +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItem) MarshalJSON() ([]byte, error) { + type embed DocFormsSetValue200ResponseMetaAffectedPagesItem var marshaler = struct { embed }{ @@ -129131,7 +147493,7 @@ func (d *DocFormsImportData200ResponseMetaAffectedPagesItem) MarshalJSON() ([]by return json.Marshal(explicitMarshaler) } -func (d *DocFormsImportData200ResponseMetaAffectedPagesItem) String() string { +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItem) String() string { if d == nil { return "" } @@ -129147,12 +147509,12 @@ func (d *DocFormsImportData200ResponseMetaAffectedPagesItem) String() string { } var ( - docFormsImportData200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID = big.NewInt(1 << 0) - docFormsImportData200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docFormsImportData200ResponseMetaAffectedPagesItemRevisionFieldGeneration = big.NewInt(1 << 2) + docFormsSetValue200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID = big.NewInt(1 << 0) + docFormsSetValue200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docFormsSetValue200ResponseMetaAffectedPagesItemRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocFormsImportData200ResponseMetaAffectedPagesItemRevision struct { +type DocFormsSetValue200ResponseMetaAffectedPagesItemRevision struct { DocSessionID string `json:"docSessionId" url:"docSessionId"` PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Generation int `json:"generation" url:"generation"` @@ -129164,35 +147526,35 @@ type DocFormsImportData200ResponseMetaAffectedPagesItemRevision struct { rawJSON json.RawMessage } -func (d *DocFormsImportData200ResponseMetaAffectedPagesItemRevision) GetDocSessionID() string { +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision) GetDocSessionID() string { if d == nil { return "" } return d.DocSessionID } -func (d *DocFormsImportData200ResponseMetaAffectedPagesItemRevision) GetPageObjectNumber() int { +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocFormsImportData200ResponseMetaAffectedPagesItemRevision) GetGeneration() int { +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision) GetGeneration() int { if d == nil { return 0 } return d.Generation } -func (d *DocFormsImportData200ResponseMetaAffectedPagesItemRevision) GetExtraProperties() map[string]interface{} { +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsImportData200ResponseMetaAffectedPagesItemRevision) require(field *big.Int) { +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -129201,32 +147563,32 @@ func (d *DocFormsImportData200ResponseMetaAffectedPagesItemRevision) require(fie // SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsImportData200ResponseMetaAffectedPagesItemRevision) SetDocSessionID(docSessionID string) { +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision) SetDocSessionID(docSessionID string) { d.DocSessionID = docSessionID - d.require(docFormsImportData200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID) + d.require(docFormsSetValue200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsImportData200ResponseMetaAffectedPagesItemRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docFormsImportData200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber) + d.require(docFormsSetValue200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber) } // SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsImportData200ResponseMetaAffectedPagesItemRevision) SetGeneration(generation int) { +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision) SetGeneration(generation int) { d.Generation = generation - d.require(docFormsImportData200ResponseMetaAffectedPagesItemRevisionFieldGeneration) + d.require(docFormsSetValue200ResponseMetaAffectedPagesItemRevisionFieldGeneration) } -func (d *DocFormsImportData200ResponseMetaAffectedPagesItemRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsImportData200ResponseMetaAffectedPagesItemRevision +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsSetValue200ResponseMetaAffectedPagesItemRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsImportData200ResponseMetaAffectedPagesItemRevision(value) + *d = DocFormsSetValue200ResponseMetaAffectedPagesItemRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -129236,8 +147598,8 @@ func (d *DocFormsImportData200ResponseMetaAffectedPagesItemRevision) UnmarshalJS return nil } -func (d *DocFormsImportData200ResponseMetaAffectedPagesItemRevision) MarshalJSON() ([]byte, error) { - type embed DocFormsImportData200ResponseMetaAffectedPagesItemRevision +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision) MarshalJSON() ([]byte, error) { + type embed DocFormsSetValue200ResponseMetaAffectedPagesItemRevision var marshaler = struct { embed }{ @@ -129247,7 +147609,7 @@ func (d *DocFormsImportData200ResponseMetaAffectedPagesItemRevision) MarshalJSON return json.Marshal(explicitMarshaler) } -func (d *DocFormsImportData200ResponseMetaAffectedPagesItemRevision) String() string { +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision) String() string { if d == nil { return "" } @@ -129262,36 +147624,36 @@ func (d *DocFormsImportData200ResponseMetaAffectedPagesItemRevision) String() st return fmt.Sprintf("%#v", d) } -type DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState struct { +type DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState struct { Kind string - Unknown *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - Known *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + Unknown *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + Known *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown rawJSON json.RawMessage } -func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKind() string { +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState) GetUnknown() *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown { +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState) GetUnknown() *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown { if d == nil { return nil } return d.Unknown } -func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKnown() *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown { +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKnown() *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown { if d == nil { return nil } return d.Known } -func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState) UnmarshalJSON(data []byte) error { +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -129304,13 +147666,13 @@ func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState) } switch unmarshaler.Kind { case "unknown": - value := new(DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) + value := new(DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) if err := json.Unmarshal(data, &value); err != nil { return err } d.Unknown = value case "known": - value := new(DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) + value := new(DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -129320,7 +147682,7 @@ func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState) return nil } -func (d DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState) MarshalJSON() ([]byte, error) { +func (d DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -129336,12 +147698,12 @@ func (d DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState) M return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor interface { - VisitUnknown(*DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) error - VisitKnown(*DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) error +type DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor interface { + VisitUnknown(*DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) error + VisitKnown(*DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) error } -func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState) Accept(visitor DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor) error { +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState) Accept(visitor DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor) error { if d.Unknown != nil { return visitor.VisitUnknown(d.Unknown) } @@ -129351,7 +147713,7 @@ func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState) return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState) validate() error { +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -129389,10 +147751,10 @@ func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState) } var ( - docFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations = big.NewInt(1 << 0) + docFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations = big.NewInt(1 << 0) ) -type DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown struct { +type DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown struct { HasAnyWeakAnnotations bool `json:"hasAnyWeakAnnotations" url:"hasAnyWeakAnnotations"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -129402,21 +147764,21 @@ type DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown rawJSON json.RawMessage } -func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetHasAnyWeakAnnotations() bool { +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetHasAnyWeakAnnotations() bool { if d == nil { return false } return d.HasAnyWeakAnnotations } -func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetExtraProperties() map[string]interface{} { +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) require(field *big.Int) { +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -129425,18 +147787,18 @@ func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKn // SetHasAnyWeakAnnotations sets the HasAnyWeakAnnotations field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) SetHasAnyWeakAnnotations(hasAnyWeakAnnotations bool) { +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) SetHasAnyWeakAnnotations(hasAnyWeakAnnotations bool) { d.HasAnyWeakAnnotations = hasAnyWeakAnnotations - d.require(docFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations) + d.require(docFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations) } -func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(value) + *d = DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -129446,8 +147808,8 @@ func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKn return nil } -func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) MarshalJSON() ([]byte, error) { - type embed DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) MarshalJSON() ([]byte, error) { + type embed DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown var marshaler = struct { embed }{ @@ -129457,7 +147819,7 @@ func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKn return json.Marshal(explicitMarshaler) } -func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) String() string { +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) String() string { if d == nil { return "" } @@ -129472,7 +147834,7 @@ func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKn return fmt.Sprintf("%#v", d) } -type DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown struct { +type DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -129481,27 +147843,27 @@ type DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknow rawJSON json.RawMessage } -func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) GetExtraProperties() map[string]interface{} { +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) require(field *big.Int) { +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(value) + *d = DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -129511,8 +147873,8 @@ func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUn return nil } -func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) MarshalJSON() ([]byte, error) { - type embed DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) MarshalJSON() ([]byte, error) { + type embed DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown var marshaler = struct { embed }{ @@ -129522,7 +147884,7 @@ func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUn return json.Marshal(explicitMarshaler) } -func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) String() string { +func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) String() string { if d == nil { return "" } @@ -129538,21 +147900,21 @@ func (d *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUn } var ( - docFormsImportData200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) - docFormsImportData200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) - docFormsImportData200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) - docFormsImportData200ResponseMetaCacheDeltaFieldLayerVersion = big.NewInt(1 << 3) - docFormsImportData200ResponseMetaCacheDeltaFieldWorking = big.NewInt(1 << 4) - docFormsImportData200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 5) + docFormsSetValue200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) + docFormsSetValue200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) + docFormsSetValue200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) + docFormsSetValue200ResponseMetaCacheDeltaFieldLayerVersion = big.NewInt(1 << 3) + docFormsSetValue200ResponseMetaCacheDeltaFieldWorking = big.NewInt(1 << 4) + docFormsSetValue200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 5) ) -type DocFormsImportData200ResponseMetaCacheDelta struct { - PreviousDocVersion int `json:"previousDocVersion" url:"previousDocVersion"` - DocVersion int `json:"docVersion" url:"docVersion"` - AnnotationsVersion *int `json:"annotationsVersion,omitempty" url:"annotationsVersion,omitempty"` - LayerVersion *int `json:"layerVersion,omitempty" url:"layerVersion,omitempty"` - Working *bool `json:"working,omitempty" url:"working,omitempty"` - Pages []*DocFormsImportData200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` +type DocFormsSetValue200ResponseMetaCacheDelta struct { + PreviousDocVersion int `json:"previousDocVersion" url:"previousDocVersion"` + DocVersion int `json:"docVersion" url:"docVersion"` + AnnotationsVersion *int `json:"annotationsVersion,omitempty" url:"annotationsVersion,omitempty"` + LayerVersion *int `json:"layerVersion,omitempty" url:"layerVersion,omitempty"` + Working *bool `json:"working,omitempty" url:"working,omitempty"` + Pages []*DocFormsSetValue200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -129561,56 +147923,56 @@ type DocFormsImportData200ResponseMetaCacheDelta struct { rawJSON json.RawMessage } -func (d *DocFormsImportData200ResponseMetaCacheDelta) GetPreviousDocVersion() int { +func (d *DocFormsSetValue200ResponseMetaCacheDelta) GetPreviousDocVersion() int { if d == nil { return 0 } return d.PreviousDocVersion } -func (d *DocFormsImportData200ResponseMetaCacheDelta) GetDocVersion() int { +func (d *DocFormsSetValue200ResponseMetaCacheDelta) GetDocVersion() int { if d == nil { return 0 } return d.DocVersion } -func (d *DocFormsImportData200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { +func (d *DocFormsSetValue200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { if d == nil { return nil } return d.AnnotationsVersion } -func (d *DocFormsImportData200ResponseMetaCacheDelta) GetLayerVersion() *int { +func (d *DocFormsSetValue200ResponseMetaCacheDelta) GetLayerVersion() *int { if d == nil { return nil } return d.LayerVersion } -func (d *DocFormsImportData200ResponseMetaCacheDelta) GetWorking() *bool { +func (d *DocFormsSetValue200ResponseMetaCacheDelta) GetWorking() *bool { if d == nil { return nil } return d.Working } -func (d *DocFormsImportData200ResponseMetaCacheDelta) GetPages() []*DocFormsImportData200ResponseMetaCacheDeltaPagesItem { +func (d *DocFormsSetValue200ResponseMetaCacheDelta) GetPages() []*DocFormsSetValue200ResponseMetaCacheDeltaPagesItem { if d == nil { return nil } return d.Pages } -func (d *DocFormsImportData200ResponseMetaCacheDelta) GetExtraProperties() map[string]interface{} { +func (d *DocFormsSetValue200ResponseMetaCacheDelta) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsImportData200ResponseMetaCacheDelta) require(field *big.Int) { +func (d *DocFormsSetValue200ResponseMetaCacheDelta) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -129619,53 +147981,53 @@ func (d *DocFormsImportData200ResponseMetaCacheDelta) require(field *big.Int) { // SetPreviousDocVersion sets the PreviousDocVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsImportData200ResponseMetaCacheDelta) SetPreviousDocVersion(previousDocVersion int) { +func (d *DocFormsSetValue200ResponseMetaCacheDelta) SetPreviousDocVersion(previousDocVersion int) { d.PreviousDocVersion = previousDocVersion - d.require(docFormsImportData200ResponseMetaCacheDeltaFieldPreviousDocVersion) + d.require(docFormsSetValue200ResponseMetaCacheDeltaFieldPreviousDocVersion) } // SetDocVersion sets the DocVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsImportData200ResponseMetaCacheDelta) SetDocVersion(docVersion int) { +func (d *DocFormsSetValue200ResponseMetaCacheDelta) SetDocVersion(docVersion int) { d.DocVersion = docVersion - d.require(docFormsImportData200ResponseMetaCacheDeltaFieldDocVersion) + d.require(docFormsSetValue200ResponseMetaCacheDeltaFieldDocVersion) } // SetAnnotationsVersion sets the AnnotationsVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsImportData200ResponseMetaCacheDelta) SetAnnotationsVersion(annotationsVersion *int) { +func (d *DocFormsSetValue200ResponseMetaCacheDelta) SetAnnotationsVersion(annotationsVersion *int) { d.AnnotationsVersion = annotationsVersion - d.require(docFormsImportData200ResponseMetaCacheDeltaFieldAnnotationsVersion) + d.require(docFormsSetValue200ResponseMetaCacheDeltaFieldAnnotationsVersion) } // SetLayerVersion sets the LayerVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsImportData200ResponseMetaCacheDelta) SetLayerVersion(layerVersion *int) { +func (d *DocFormsSetValue200ResponseMetaCacheDelta) SetLayerVersion(layerVersion *int) { d.LayerVersion = layerVersion - d.require(docFormsImportData200ResponseMetaCacheDeltaFieldLayerVersion) + d.require(docFormsSetValue200ResponseMetaCacheDeltaFieldLayerVersion) } // SetWorking sets the Working field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsImportData200ResponseMetaCacheDelta) SetWorking(working *bool) { +func (d *DocFormsSetValue200ResponseMetaCacheDelta) SetWorking(working *bool) { d.Working = working - d.require(docFormsImportData200ResponseMetaCacheDeltaFieldWorking) + d.require(docFormsSetValue200ResponseMetaCacheDeltaFieldWorking) } // SetPages sets the Pages field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsImportData200ResponseMetaCacheDelta) SetPages(pages []*DocFormsImportData200ResponseMetaCacheDeltaPagesItem) { +func (d *DocFormsSetValue200ResponseMetaCacheDelta) SetPages(pages []*DocFormsSetValue200ResponseMetaCacheDeltaPagesItem) { d.Pages = pages - d.require(docFormsImportData200ResponseMetaCacheDeltaFieldPages) + d.require(docFormsSetValue200ResponseMetaCacheDeltaFieldPages) } -func (d *DocFormsImportData200ResponseMetaCacheDelta) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsImportData200ResponseMetaCacheDelta +func (d *DocFormsSetValue200ResponseMetaCacheDelta) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsSetValue200ResponseMetaCacheDelta var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsImportData200ResponseMetaCacheDelta(value) + *d = DocFormsSetValue200ResponseMetaCacheDelta(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -129675,8 +148037,8 @@ func (d *DocFormsImportData200ResponseMetaCacheDelta) UnmarshalJSON(data []byte) return nil } -func (d *DocFormsImportData200ResponseMetaCacheDelta) MarshalJSON() ([]byte, error) { - type embed DocFormsImportData200ResponseMetaCacheDelta +func (d *DocFormsSetValue200ResponseMetaCacheDelta) MarshalJSON() ([]byte, error) { + type embed DocFormsSetValue200ResponseMetaCacheDelta var marshaler = struct { embed }{ @@ -129686,7 +148048,7 @@ func (d *DocFormsImportData200ResponseMetaCacheDelta) MarshalJSON() ([]byte, err return json.Marshal(explicitMarshaler) } -func (d *DocFormsImportData200ResponseMetaCacheDelta) String() string { +func (d *DocFormsSetValue200ResponseMetaCacheDelta) String() string { if d == nil { return "" } @@ -129702,13 +148064,13 @@ func (d *DocFormsImportData200ResponseMetaCacheDelta) String() string { } var ( - docFormsImportData200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) - docFormsImportData200ResponseMetaCacheDeltaPagesItemFieldCache = big.NewInt(1 << 1) + docFormsSetValue200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) + docFormsSetValue200ResponseMetaCacheDeltaPagesItemFieldCache = big.NewInt(1 << 1) ) -type DocFormsImportData200ResponseMetaCacheDeltaPagesItem struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Cache *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache `json:"cache" url:"cache"` +type DocFormsSetValue200ResponseMetaCacheDeltaPagesItem struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Cache *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache `json:"cache" url:"cache"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -129717,28 +148079,28 @@ type DocFormsImportData200ResponseMetaCacheDeltaPagesItem struct { rawJSON json.RawMessage } -func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItem) GetPageObjectNumber() int { +func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItem) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItem) GetCache() *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache { +func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItem) GetCache() *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache { if d == nil { return nil } return d.Cache } -func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItem) GetExtraProperties() map[string]interface{} { +func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItem) require(field *big.Int) { +func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -129747,25 +148109,25 @@ func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItem) require(field *bi // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItem) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItem) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docFormsImportData200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber) + d.require(docFormsSetValue200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber) } // SetCache sets the Cache field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItem) SetCache(cache *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache) { +func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItem) SetCache(cache *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache) { d.Cache = cache - d.require(docFormsImportData200ResponseMetaCacheDeltaPagesItemFieldCache) + d.require(docFormsSetValue200ResponseMetaCacheDeltaPagesItemFieldCache) } -func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsImportData200ResponseMetaCacheDeltaPagesItem +func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsSetValue200ResponseMetaCacheDeltaPagesItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsImportData200ResponseMetaCacheDeltaPagesItem(value) + *d = DocFormsSetValue200ResponseMetaCacheDeltaPagesItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -129775,8 +148137,8 @@ func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItem) UnmarshalJSON(dat return nil } -func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItem) MarshalJSON() ([]byte, error) { - type embed DocFormsImportData200ResponseMetaCacheDeltaPagesItem +func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItem) MarshalJSON() ([]byte, error) { + type embed DocFormsSetValue200ResponseMetaCacheDeltaPagesItem var marshaler = struct { embed }{ @@ -129786,7 +148148,7 @@ func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItem) MarshalJSON() ([] return json.Marshal(explicitMarshaler) } -func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItem) String() string { +func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItem) String() string { if d == nil { return "" } @@ -129802,11 +148164,11 @@ func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItem) String() string { } var ( - docFormsImportData200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion = big.NewInt(1 << 0) - docFormsImportData200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion = big.NewInt(1 << 1) + docFormsSetValue200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion = big.NewInt(1 << 0) + docFormsSetValue200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion = big.NewInt(1 << 1) ) -type DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache struct { +type DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache struct { ContentVersion int `json:"contentVersion" url:"contentVersion"` AnnotationVersion int `json:"annotationVersion" url:"annotationVersion"` @@ -129817,28 +148179,28 @@ type DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache struct { rawJSON json.RawMessage } -func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache) GetContentVersion() int { +func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache) GetContentVersion() int { if d == nil { return 0 } return d.ContentVersion } -func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache) GetAnnotationVersion() int { +func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache) GetAnnotationVersion() int { if d == nil { return 0 } return d.AnnotationVersion } -func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache) GetExtraProperties() map[string]interface{} { +func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache) require(field *big.Int) { +func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -129847,25 +148209,25 @@ func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache) require(fiel // SetContentVersion sets the ContentVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache) SetContentVersion(contentVersion int) { +func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache) SetContentVersion(contentVersion int) { d.ContentVersion = contentVersion - d.require(docFormsImportData200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion) + d.require(docFormsSetValue200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion) } // SetAnnotationVersion sets the AnnotationVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache) SetAnnotationVersion(annotationVersion int) { +func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache) SetAnnotationVersion(annotationVersion int) { d.AnnotationVersion = annotationVersion - d.require(docFormsImportData200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion) + d.require(docFormsSetValue200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion) } -func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache +func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache(value) + *d = DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -129875,8 +148237,8 @@ func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJSO return nil } -func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON() ([]byte, error) { - type embed DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache +func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON() ([]byte, error) { + type embed DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache var marshaler = struct { embed }{ @@ -129886,7 +148248,7 @@ func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON( return json.Marshal(explicitMarshaler) } -func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache) String() string { +func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache) String() string { if d == nil { return "" } @@ -129902,17 +148264,17 @@ func (d *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache) String() str } var ( - docFormsImportData400ResponseFieldName = big.NewInt(1 << 0) - docFormsImportData400ResponseFieldCode = big.NewInt(1 << 1) - docFormsImportData400ResponseFieldMessage = big.NewInt(1 << 2) - docFormsImportData400ResponseFieldDetails = big.NewInt(1 << 3) + docFormsSetValue400ResponseFieldName = big.NewInt(1 << 0) + docFormsSetValue400ResponseFieldCode = big.NewInt(1 << 1) + docFormsSetValue400ResponseFieldMessage = big.NewInt(1 << 2) + docFormsSetValue400ResponseFieldDetails = big.NewInt(1 << 3) ) -type DocFormsImportData400Response struct { - Name DocFormsImportData400ResponseName `json:"name" url:"name"` - Code DocFormsImportData400ResponseCode `json:"code" url:"code"` - Message string `json:"message" url:"message"` - Details map[string]any `json:"details,omitempty" url:"details,omitempty"` +type DocFormsSetValue400Response struct { + Name DocFormsSetValue400ResponseName `json:"name" url:"name"` + Code DocFormsSetValue400ResponseCode `json:"code" url:"code"` + Message string `json:"message" url:"message"` + Details map[string]any `json:"details,omitempty" url:"details,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -129921,42 +148283,42 @@ type DocFormsImportData400Response struct { rawJSON json.RawMessage } -func (d *DocFormsImportData400Response) GetName() DocFormsImportData400ResponseName { +func (d *DocFormsSetValue400Response) GetName() DocFormsSetValue400ResponseName { if d == nil { return "" } return d.Name } -func (d *DocFormsImportData400Response) GetCode() DocFormsImportData400ResponseCode { +func (d *DocFormsSetValue400Response) GetCode() DocFormsSetValue400ResponseCode { if d == nil { return "" } return d.Code } -func (d *DocFormsImportData400Response) GetMessage() string { +func (d *DocFormsSetValue400Response) GetMessage() string { if d == nil { return "" } return d.Message } -func (d *DocFormsImportData400Response) GetDetails() map[string]any { +func (d *DocFormsSetValue400Response) GetDetails() map[string]any { if d == nil { return nil } return d.Details } -func (d *DocFormsImportData400Response) GetExtraProperties() map[string]interface{} { +func (d *DocFormsSetValue400Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsImportData400Response) require(field *big.Int) { +func (d *DocFormsSetValue400Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -129965,39 +148327,39 @@ func (d *DocFormsImportData400Response) require(field *big.Int) { // SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsImportData400Response) SetName(name DocFormsImportData400ResponseName) { +func (d *DocFormsSetValue400Response) SetName(name DocFormsSetValue400ResponseName) { d.Name = name - d.require(docFormsImportData400ResponseFieldName) + d.require(docFormsSetValue400ResponseFieldName) } // SetCode sets the Code field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsImportData400Response) SetCode(code DocFormsImportData400ResponseCode) { +func (d *DocFormsSetValue400Response) SetCode(code DocFormsSetValue400ResponseCode) { d.Code = code - d.require(docFormsImportData400ResponseFieldCode) + d.require(docFormsSetValue400ResponseFieldCode) } // SetMessage sets the Message field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsImportData400Response) SetMessage(message string) { +func (d *DocFormsSetValue400Response) SetMessage(message string) { d.Message = message - d.require(docFormsImportData400ResponseFieldMessage) + d.require(docFormsSetValue400ResponseFieldMessage) } // SetDetails sets the Details field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsImportData400Response) SetDetails(details map[string]any) { +func (d *DocFormsSetValue400Response) SetDetails(details map[string]any) { d.Details = details - d.require(docFormsImportData400ResponseFieldDetails) + d.require(docFormsSetValue400ResponseFieldDetails) } -func (d *DocFormsImportData400Response) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsImportData400Response +func (d *DocFormsSetValue400Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsSetValue400Response var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsImportData400Response(value) + *d = DocFormsSetValue400Response(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -130007,8 +148369,8 @@ func (d *DocFormsImportData400Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocFormsImportData400Response) MarshalJSON() ([]byte, error) { - type embed DocFormsImportData400Response +func (d *DocFormsSetValue400Response) MarshalJSON() ([]byte, error) { + type embed DocFormsSetValue400Response var marshaler = struct { embed }{ @@ -130018,7 +148380,7 @@ func (d *DocFormsImportData400Response) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocFormsImportData400Response) String() string { +func (d *DocFormsSetValue400Response) String() string { if d == nil { return "" } @@ -130033,128 +148395,128 @@ func (d *DocFormsImportData400Response) String() string { return fmt.Sprintf("%#v", d) } -type DocFormsImportData400ResponseCode string +type DocFormsSetValue400ResponseCode string const ( - DocFormsImportData400ResponseCodeUnknown DocFormsImportData400ResponseCode = "Unknown" - DocFormsImportData400ResponseCodeInvalidArg DocFormsImportData400ResponseCode = "InvalidArg" - DocFormsImportData400ResponseCodeDocNotOpen DocFormsImportData400ResponseCode = "DocNotOpen" - DocFormsImportData400ResponseCodeDocOpenFailed DocFormsImportData400ResponseCode = "DocOpenFailed" - DocFormsImportData400ResponseCodeDocPasswordRequired DocFormsImportData400ResponseCode = "DocPasswordRequired" - DocFormsImportData400ResponseCodeDocPasswordIncorrect DocFormsImportData400ResponseCode = "DocPasswordIncorrect" - DocFormsImportData400ResponseCodeSharePasswordRequired DocFormsImportData400ResponseCode = "SharePasswordRequired" - DocFormsImportData400ResponseCodeAborted DocFormsImportData400ResponseCode = "Aborted" - DocFormsImportData400ResponseCodeNetwork DocFormsImportData400ResponseCode = "Network" - DocFormsImportData400ResponseCodeUnauthenticated DocFormsImportData400ResponseCode = "Unauthenticated" - DocFormsImportData400ResponseCodeForbidden DocFormsImportData400ResponseCode = "Forbidden" - DocFormsImportData400ResponseCodeNotFound DocFormsImportData400ResponseCode = "NotFound" - DocFormsImportData400ResponseCodeWireFormat DocFormsImportData400ResponseCode = "WireFormat" - DocFormsImportData400ResponseCodeRuntimeUnavailable DocFormsImportData400ResponseCode = "RuntimeUnavailable" - DocFormsImportData400ResponseCodeInvalidReference DocFormsImportData400ResponseCode = "InvalidReference" - DocFormsImportData400ResponseCodeWeakAnnotationSessionConflict DocFormsImportData400ResponseCode = "WeakAnnotationSessionConflict" - DocFormsImportData400ResponseCodeLayerVersionConflict DocFormsImportData400ResponseCode = "LayerVersionConflict" - DocFormsImportData400ResponseCodeNotImplemented DocFormsImportData400ResponseCode = "NotImplemented" - DocFormsImportData400ResponseCodeMalformedPdf DocFormsImportData400ResponseCode = "MalformedPdf" - DocFormsImportData400ResponseCodeSigningPending DocFormsImportData400ResponseCode = "SigningPending" - DocFormsImportData400ResponseCodeSigningExpired DocFormsImportData400ResponseCode = "SigningExpired" - DocFormsImportData400ResponseCodeSigningVersionMismatch DocFormsImportData400ResponseCode = "SigningVersionMismatch" - DocFormsImportData400ResponseCodeSignatureRefused DocFormsImportData400ResponseCode = "SignatureRefused" - DocFormsImportData400ResponseCodeProtectedDocument DocFormsImportData400ResponseCode = "ProtectedDocument" - DocFormsImportData400ResponseCodeStaleBase DocFormsImportData400ResponseCode = "StaleBase" + DocFormsSetValue400ResponseCodeUnknown DocFormsSetValue400ResponseCode = "Unknown" + DocFormsSetValue400ResponseCodeInvalidArg DocFormsSetValue400ResponseCode = "InvalidArg" + DocFormsSetValue400ResponseCodeDocNotOpen DocFormsSetValue400ResponseCode = "DocNotOpen" + DocFormsSetValue400ResponseCodeDocOpenFailed DocFormsSetValue400ResponseCode = "DocOpenFailed" + DocFormsSetValue400ResponseCodeDocPasswordRequired DocFormsSetValue400ResponseCode = "DocPasswordRequired" + DocFormsSetValue400ResponseCodeDocPasswordIncorrect DocFormsSetValue400ResponseCode = "DocPasswordIncorrect" + DocFormsSetValue400ResponseCodeSharePasswordRequired DocFormsSetValue400ResponseCode = "SharePasswordRequired" + DocFormsSetValue400ResponseCodeAborted DocFormsSetValue400ResponseCode = "Aborted" + DocFormsSetValue400ResponseCodeNetwork DocFormsSetValue400ResponseCode = "Network" + DocFormsSetValue400ResponseCodeUnauthenticated DocFormsSetValue400ResponseCode = "Unauthenticated" + DocFormsSetValue400ResponseCodeForbidden DocFormsSetValue400ResponseCode = "Forbidden" + DocFormsSetValue400ResponseCodeNotFound DocFormsSetValue400ResponseCode = "NotFound" + DocFormsSetValue400ResponseCodeWireFormat DocFormsSetValue400ResponseCode = "WireFormat" + DocFormsSetValue400ResponseCodeRuntimeUnavailable DocFormsSetValue400ResponseCode = "RuntimeUnavailable" + DocFormsSetValue400ResponseCodeInvalidReference DocFormsSetValue400ResponseCode = "InvalidReference" + DocFormsSetValue400ResponseCodeWeakAnnotationSessionConflict DocFormsSetValue400ResponseCode = "WeakAnnotationSessionConflict" + DocFormsSetValue400ResponseCodeLayerVersionConflict DocFormsSetValue400ResponseCode = "LayerVersionConflict" + DocFormsSetValue400ResponseCodeNotImplemented DocFormsSetValue400ResponseCode = "NotImplemented" + DocFormsSetValue400ResponseCodeMalformedPdf DocFormsSetValue400ResponseCode = "MalformedPdf" + DocFormsSetValue400ResponseCodeSigningPending DocFormsSetValue400ResponseCode = "SigningPending" + DocFormsSetValue400ResponseCodeSigningExpired DocFormsSetValue400ResponseCode = "SigningExpired" + DocFormsSetValue400ResponseCodeSigningVersionMismatch DocFormsSetValue400ResponseCode = "SigningVersionMismatch" + DocFormsSetValue400ResponseCodeSignatureRefused DocFormsSetValue400ResponseCode = "SignatureRefused" + DocFormsSetValue400ResponseCodeProtectedDocument DocFormsSetValue400ResponseCode = "ProtectedDocument" + DocFormsSetValue400ResponseCodeStaleBase DocFormsSetValue400ResponseCode = "StaleBase" ) -func NewDocFormsImportData400ResponseCodeFromString(s string) (DocFormsImportData400ResponseCode, error) { +func NewDocFormsSetValue400ResponseCodeFromString(s string) (DocFormsSetValue400ResponseCode, error) { switch s { case "Unknown": - return DocFormsImportData400ResponseCodeUnknown, nil + return DocFormsSetValue400ResponseCodeUnknown, nil case "InvalidArg": - return DocFormsImportData400ResponseCodeInvalidArg, nil + return DocFormsSetValue400ResponseCodeInvalidArg, nil case "DocNotOpen": - return DocFormsImportData400ResponseCodeDocNotOpen, nil + return DocFormsSetValue400ResponseCodeDocNotOpen, nil case "DocOpenFailed": - return DocFormsImportData400ResponseCodeDocOpenFailed, nil + return DocFormsSetValue400ResponseCodeDocOpenFailed, nil case "DocPasswordRequired": - return DocFormsImportData400ResponseCodeDocPasswordRequired, nil + return DocFormsSetValue400ResponseCodeDocPasswordRequired, nil case "DocPasswordIncorrect": - return DocFormsImportData400ResponseCodeDocPasswordIncorrect, nil + return DocFormsSetValue400ResponseCodeDocPasswordIncorrect, nil case "SharePasswordRequired": - return DocFormsImportData400ResponseCodeSharePasswordRequired, nil + return DocFormsSetValue400ResponseCodeSharePasswordRequired, nil case "Aborted": - return DocFormsImportData400ResponseCodeAborted, nil + return DocFormsSetValue400ResponseCodeAborted, nil case "Network": - return DocFormsImportData400ResponseCodeNetwork, nil + return DocFormsSetValue400ResponseCodeNetwork, nil case "Unauthenticated": - return DocFormsImportData400ResponseCodeUnauthenticated, nil + return DocFormsSetValue400ResponseCodeUnauthenticated, nil case "Forbidden": - return DocFormsImportData400ResponseCodeForbidden, nil + return DocFormsSetValue400ResponseCodeForbidden, nil case "NotFound": - return DocFormsImportData400ResponseCodeNotFound, nil + return DocFormsSetValue400ResponseCodeNotFound, nil case "WireFormat": - return DocFormsImportData400ResponseCodeWireFormat, nil + return DocFormsSetValue400ResponseCodeWireFormat, nil case "RuntimeUnavailable": - return DocFormsImportData400ResponseCodeRuntimeUnavailable, nil + return DocFormsSetValue400ResponseCodeRuntimeUnavailable, nil case "InvalidReference": - return DocFormsImportData400ResponseCodeInvalidReference, nil + return DocFormsSetValue400ResponseCodeInvalidReference, nil case "WeakAnnotationSessionConflict": - return DocFormsImportData400ResponseCodeWeakAnnotationSessionConflict, nil + return DocFormsSetValue400ResponseCodeWeakAnnotationSessionConflict, nil case "LayerVersionConflict": - return DocFormsImportData400ResponseCodeLayerVersionConflict, nil + return DocFormsSetValue400ResponseCodeLayerVersionConflict, nil case "NotImplemented": - return DocFormsImportData400ResponseCodeNotImplemented, nil + return DocFormsSetValue400ResponseCodeNotImplemented, nil case "MalformedPdf": - return DocFormsImportData400ResponseCodeMalformedPdf, nil + return DocFormsSetValue400ResponseCodeMalformedPdf, nil case "SigningPending": - return DocFormsImportData400ResponseCodeSigningPending, nil + return DocFormsSetValue400ResponseCodeSigningPending, nil case "SigningExpired": - return DocFormsImportData400ResponseCodeSigningExpired, nil + return DocFormsSetValue400ResponseCodeSigningExpired, nil case "SigningVersionMismatch": - return DocFormsImportData400ResponseCodeSigningVersionMismatch, nil + return DocFormsSetValue400ResponseCodeSigningVersionMismatch, nil case "SignatureRefused": - return DocFormsImportData400ResponseCodeSignatureRefused, nil + return DocFormsSetValue400ResponseCodeSignatureRefused, nil case "ProtectedDocument": - return DocFormsImportData400ResponseCodeProtectedDocument, nil + return DocFormsSetValue400ResponseCodeProtectedDocument, nil case "StaleBase": - return DocFormsImportData400ResponseCodeStaleBase, nil + return DocFormsSetValue400ResponseCodeStaleBase, nil } - var t DocFormsImportData400ResponseCode + var t DocFormsSetValue400ResponseCode return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocFormsImportData400ResponseCode) Ptr() *DocFormsImportData400ResponseCode { +func (d DocFormsSetValue400ResponseCode) Ptr() *DocFormsSetValue400ResponseCode { return &d } -type DocFormsImportData400ResponseName string +type DocFormsSetValue400ResponseName string const ( - DocFormsImportData400ResponseNameEngineError DocFormsImportData400ResponseName = "EngineError" + DocFormsSetValue400ResponseNameEngineError DocFormsSetValue400ResponseName = "EngineError" ) -func NewDocFormsImportData400ResponseNameFromString(s string) (DocFormsImportData400ResponseName, error) { +func NewDocFormsSetValue400ResponseNameFromString(s string) (DocFormsSetValue400ResponseName, error) { switch s { case "EngineError": - return DocFormsImportData400ResponseNameEngineError, nil + return DocFormsSetValue400ResponseNameEngineError, nil } - var t DocFormsImportData400ResponseName + var t DocFormsSetValue400ResponseName return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocFormsImportData400ResponseName) Ptr() *DocFormsImportData400ResponseName { +func (d DocFormsSetValue400ResponseName) Ptr() *DocFormsSetValue400ResponseName { return &d } var ( - docFormsImportData404ResponseFieldName = big.NewInt(1 << 0) - docFormsImportData404ResponseFieldCode = big.NewInt(1 << 1) - docFormsImportData404ResponseFieldMessage = big.NewInt(1 << 2) - docFormsImportData404ResponseFieldDetails = big.NewInt(1 << 3) + docFormsSetValue404ResponseFieldName = big.NewInt(1 << 0) + docFormsSetValue404ResponseFieldCode = big.NewInt(1 << 1) + docFormsSetValue404ResponseFieldMessage = big.NewInt(1 << 2) + docFormsSetValue404ResponseFieldDetails = big.NewInt(1 << 3) ) -type DocFormsImportData404Response struct { - Name DocFormsImportData404ResponseName `json:"name" url:"name"` - Code DocFormsImportData404ResponseCode `json:"code" url:"code"` - Message string `json:"message" url:"message"` - Details map[string]any `json:"details,omitempty" url:"details,omitempty"` +type DocFormsSetValue404Response struct { + Name DocFormsSetValue404ResponseName `json:"name" url:"name"` + Code DocFormsSetValue404ResponseCode `json:"code" url:"code"` + Message string `json:"message" url:"message"` + Details map[string]any `json:"details,omitempty" url:"details,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -130163,42 +148525,42 @@ type DocFormsImportData404Response struct { rawJSON json.RawMessage } -func (d *DocFormsImportData404Response) GetName() DocFormsImportData404ResponseName { +func (d *DocFormsSetValue404Response) GetName() DocFormsSetValue404ResponseName { if d == nil { return "" } return d.Name } -func (d *DocFormsImportData404Response) GetCode() DocFormsImportData404ResponseCode { +func (d *DocFormsSetValue404Response) GetCode() DocFormsSetValue404ResponseCode { if d == nil { return "" } return d.Code } -func (d *DocFormsImportData404Response) GetMessage() string { +func (d *DocFormsSetValue404Response) GetMessage() string { if d == nil { return "" } return d.Message } -func (d *DocFormsImportData404Response) GetDetails() map[string]any { +func (d *DocFormsSetValue404Response) GetDetails() map[string]any { if d == nil { return nil } return d.Details } -func (d *DocFormsImportData404Response) GetExtraProperties() map[string]interface{} { +func (d *DocFormsSetValue404Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsImportData404Response) require(field *big.Int) { +func (d *DocFormsSetValue404Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -130207,39 +148569,39 @@ func (d *DocFormsImportData404Response) require(field *big.Int) { // SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsImportData404Response) SetName(name DocFormsImportData404ResponseName) { +func (d *DocFormsSetValue404Response) SetName(name DocFormsSetValue404ResponseName) { d.Name = name - d.require(docFormsImportData404ResponseFieldName) + d.require(docFormsSetValue404ResponseFieldName) } // SetCode sets the Code field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsImportData404Response) SetCode(code DocFormsImportData404ResponseCode) { +func (d *DocFormsSetValue404Response) SetCode(code DocFormsSetValue404ResponseCode) { d.Code = code - d.require(docFormsImportData404ResponseFieldCode) + d.require(docFormsSetValue404ResponseFieldCode) } // SetMessage sets the Message field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsImportData404Response) SetMessage(message string) { +func (d *DocFormsSetValue404Response) SetMessage(message string) { d.Message = message - d.require(docFormsImportData404ResponseFieldMessage) + d.require(docFormsSetValue404ResponseFieldMessage) } // SetDetails sets the Details field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsImportData404Response) SetDetails(details map[string]any) { +func (d *DocFormsSetValue404Response) SetDetails(details map[string]any) { d.Details = details - d.require(docFormsImportData404ResponseFieldDetails) + d.require(docFormsSetValue404ResponseFieldDetails) } -func (d *DocFormsImportData404Response) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsImportData404Response +func (d *DocFormsSetValue404Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocFormsSetValue404Response var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsImportData404Response(value) + *d = DocFormsSetValue404Response(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -130249,8 +148611,8 @@ func (d *DocFormsImportData404Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocFormsImportData404Response) MarshalJSON() ([]byte, error) { - type embed DocFormsImportData404Response +func (d *DocFormsSetValue404Response) MarshalJSON() ([]byte, error) { + type embed DocFormsSetValue404Response var marshaler = struct { embed }{ @@ -130260,7 +148622,7 @@ func (d *DocFormsImportData404Response) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocFormsImportData404Response) String() string { +func (d *DocFormsSetValue404Response) String() string { if d == nil { return "" } @@ -130275,317 +148637,130 @@ func (d *DocFormsImportData404Response) String() string { return fmt.Sprintf("%#v", d) } -type DocFormsImportData404ResponseCode string +type DocFormsSetValue404ResponseCode string const ( - DocFormsImportData404ResponseCodeUnknown DocFormsImportData404ResponseCode = "Unknown" - DocFormsImportData404ResponseCodeInvalidArg DocFormsImportData404ResponseCode = "InvalidArg" - DocFormsImportData404ResponseCodeDocNotOpen DocFormsImportData404ResponseCode = "DocNotOpen" - DocFormsImportData404ResponseCodeDocOpenFailed DocFormsImportData404ResponseCode = "DocOpenFailed" - DocFormsImportData404ResponseCodeDocPasswordRequired DocFormsImportData404ResponseCode = "DocPasswordRequired" - DocFormsImportData404ResponseCodeDocPasswordIncorrect DocFormsImportData404ResponseCode = "DocPasswordIncorrect" - DocFormsImportData404ResponseCodeSharePasswordRequired DocFormsImportData404ResponseCode = "SharePasswordRequired" - DocFormsImportData404ResponseCodeAborted DocFormsImportData404ResponseCode = "Aborted" - DocFormsImportData404ResponseCodeNetwork DocFormsImportData404ResponseCode = "Network" - DocFormsImportData404ResponseCodeUnauthenticated DocFormsImportData404ResponseCode = "Unauthenticated" - DocFormsImportData404ResponseCodeForbidden DocFormsImportData404ResponseCode = "Forbidden" - DocFormsImportData404ResponseCodeNotFound DocFormsImportData404ResponseCode = "NotFound" - DocFormsImportData404ResponseCodeWireFormat DocFormsImportData404ResponseCode = "WireFormat" - DocFormsImportData404ResponseCodeRuntimeUnavailable DocFormsImportData404ResponseCode = "RuntimeUnavailable" - DocFormsImportData404ResponseCodeInvalidReference DocFormsImportData404ResponseCode = "InvalidReference" - DocFormsImportData404ResponseCodeWeakAnnotationSessionConflict DocFormsImportData404ResponseCode = "WeakAnnotationSessionConflict" - DocFormsImportData404ResponseCodeLayerVersionConflict DocFormsImportData404ResponseCode = "LayerVersionConflict" - DocFormsImportData404ResponseCodeNotImplemented DocFormsImportData404ResponseCode = "NotImplemented" - DocFormsImportData404ResponseCodeMalformedPdf DocFormsImportData404ResponseCode = "MalformedPdf" - DocFormsImportData404ResponseCodeSigningPending DocFormsImportData404ResponseCode = "SigningPending" - DocFormsImportData404ResponseCodeSigningExpired DocFormsImportData404ResponseCode = "SigningExpired" - DocFormsImportData404ResponseCodeSigningVersionMismatch DocFormsImportData404ResponseCode = "SigningVersionMismatch" - DocFormsImportData404ResponseCodeSignatureRefused DocFormsImportData404ResponseCode = "SignatureRefused" - DocFormsImportData404ResponseCodeProtectedDocument DocFormsImportData404ResponseCode = "ProtectedDocument" - DocFormsImportData404ResponseCodeStaleBase DocFormsImportData404ResponseCode = "StaleBase" + DocFormsSetValue404ResponseCodeUnknown DocFormsSetValue404ResponseCode = "Unknown" + DocFormsSetValue404ResponseCodeInvalidArg DocFormsSetValue404ResponseCode = "InvalidArg" + DocFormsSetValue404ResponseCodeDocNotOpen DocFormsSetValue404ResponseCode = "DocNotOpen" + DocFormsSetValue404ResponseCodeDocOpenFailed DocFormsSetValue404ResponseCode = "DocOpenFailed" + DocFormsSetValue404ResponseCodeDocPasswordRequired DocFormsSetValue404ResponseCode = "DocPasswordRequired" + DocFormsSetValue404ResponseCodeDocPasswordIncorrect DocFormsSetValue404ResponseCode = "DocPasswordIncorrect" + DocFormsSetValue404ResponseCodeSharePasswordRequired DocFormsSetValue404ResponseCode = "SharePasswordRequired" + DocFormsSetValue404ResponseCodeAborted DocFormsSetValue404ResponseCode = "Aborted" + DocFormsSetValue404ResponseCodeNetwork DocFormsSetValue404ResponseCode = "Network" + DocFormsSetValue404ResponseCodeUnauthenticated DocFormsSetValue404ResponseCode = "Unauthenticated" + DocFormsSetValue404ResponseCodeForbidden DocFormsSetValue404ResponseCode = "Forbidden" + DocFormsSetValue404ResponseCodeNotFound DocFormsSetValue404ResponseCode = "NotFound" + DocFormsSetValue404ResponseCodeWireFormat DocFormsSetValue404ResponseCode = "WireFormat" + DocFormsSetValue404ResponseCodeRuntimeUnavailable DocFormsSetValue404ResponseCode = "RuntimeUnavailable" + DocFormsSetValue404ResponseCodeInvalidReference DocFormsSetValue404ResponseCode = "InvalidReference" + DocFormsSetValue404ResponseCodeWeakAnnotationSessionConflict DocFormsSetValue404ResponseCode = "WeakAnnotationSessionConflict" + DocFormsSetValue404ResponseCodeLayerVersionConflict DocFormsSetValue404ResponseCode = "LayerVersionConflict" + DocFormsSetValue404ResponseCodeNotImplemented DocFormsSetValue404ResponseCode = "NotImplemented" + DocFormsSetValue404ResponseCodeMalformedPdf DocFormsSetValue404ResponseCode = "MalformedPdf" + DocFormsSetValue404ResponseCodeSigningPending DocFormsSetValue404ResponseCode = "SigningPending" + DocFormsSetValue404ResponseCodeSigningExpired DocFormsSetValue404ResponseCode = "SigningExpired" + DocFormsSetValue404ResponseCodeSigningVersionMismatch DocFormsSetValue404ResponseCode = "SigningVersionMismatch" + DocFormsSetValue404ResponseCodeSignatureRefused DocFormsSetValue404ResponseCode = "SignatureRefused" + DocFormsSetValue404ResponseCodeProtectedDocument DocFormsSetValue404ResponseCode = "ProtectedDocument" + DocFormsSetValue404ResponseCodeStaleBase DocFormsSetValue404ResponseCode = "StaleBase" ) -func NewDocFormsImportData404ResponseCodeFromString(s string) (DocFormsImportData404ResponseCode, error) { +func NewDocFormsSetValue404ResponseCodeFromString(s string) (DocFormsSetValue404ResponseCode, error) { switch s { case "Unknown": - return DocFormsImportData404ResponseCodeUnknown, nil + return DocFormsSetValue404ResponseCodeUnknown, nil case "InvalidArg": - return DocFormsImportData404ResponseCodeInvalidArg, nil + return DocFormsSetValue404ResponseCodeInvalidArg, nil case "DocNotOpen": - return DocFormsImportData404ResponseCodeDocNotOpen, nil + return DocFormsSetValue404ResponseCodeDocNotOpen, nil case "DocOpenFailed": - return DocFormsImportData404ResponseCodeDocOpenFailed, nil + return DocFormsSetValue404ResponseCodeDocOpenFailed, nil case "DocPasswordRequired": - return DocFormsImportData404ResponseCodeDocPasswordRequired, nil + return DocFormsSetValue404ResponseCodeDocPasswordRequired, nil case "DocPasswordIncorrect": - return DocFormsImportData404ResponseCodeDocPasswordIncorrect, nil + return DocFormsSetValue404ResponseCodeDocPasswordIncorrect, nil case "SharePasswordRequired": - return DocFormsImportData404ResponseCodeSharePasswordRequired, nil + return DocFormsSetValue404ResponseCodeSharePasswordRequired, nil case "Aborted": - return DocFormsImportData404ResponseCodeAborted, nil + return DocFormsSetValue404ResponseCodeAborted, nil case "Network": - return DocFormsImportData404ResponseCodeNetwork, nil + return DocFormsSetValue404ResponseCodeNetwork, nil case "Unauthenticated": - return DocFormsImportData404ResponseCodeUnauthenticated, nil + return DocFormsSetValue404ResponseCodeUnauthenticated, nil case "Forbidden": - return DocFormsImportData404ResponseCodeForbidden, nil + return DocFormsSetValue404ResponseCodeForbidden, nil case "NotFound": - return DocFormsImportData404ResponseCodeNotFound, nil + return DocFormsSetValue404ResponseCodeNotFound, nil case "WireFormat": - return DocFormsImportData404ResponseCodeWireFormat, nil + return DocFormsSetValue404ResponseCodeWireFormat, nil case "RuntimeUnavailable": - return DocFormsImportData404ResponseCodeRuntimeUnavailable, nil + return DocFormsSetValue404ResponseCodeRuntimeUnavailable, nil case "InvalidReference": - return DocFormsImportData404ResponseCodeInvalidReference, nil + return DocFormsSetValue404ResponseCodeInvalidReference, nil case "WeakAnnotationSessionConflict": - return DocFormsImportData404ResponseCodeWeakAnnotationSessionConflict, nil + return DocFormsSetValue404ResponseCodeWeakAnnotationSessionConflict, nil case "LayerVersionConflict": - return DocFormsImportData404ResponseCodeLayerVersionConflict, nil + return DocFormsSetValue404ResponseCodeLayerVersionConflict, nil case "NotImplemented": - return DocFormsImportData404ResponseCodeNotImplemented, nil + return DocFormsSetValue404ResponseCodeNotImplemented, nil case "MalformedPdf": - return DocFormsImportData404ResponseCodeMalformedPdf, nil + return DocFormsSetValue404ResponseCodeMalformedPdf, nil case "SigningPending": - return DocFormsImportData404ResponseCodeSigningPending, nil + return DocFormsSetValue404ResponseCodeSigningPending, nil case "SigningExpired": - return DocFormsImportData404ResponseCodeSigningExpired, nil + return DocFormsSetValue404ResponseCodeSigningExpired, nil case "SigningVersionMismatch": - return DocFormsImportData404ResponseCodeSigningVersionMismatch, nil + return DocFormsSetValue404ResponseCodeSigningVersionMismatch, nil case "SignatureRefused": - return DocFormsImportData404ResponseCodeSignatureRefused, nil + return DocFormsSetValue404ResponseCodeSignatureRefused, nil case "ProtectedDocument": - return DocFormsImportData404ResponseCodeProtectedDocument, nil + return DocFormsSetValue404ResponseCodeProtectedDocument, nil case "StaleBase": - return DocFormsImportData404ResponseCodeStaleBase, nil + return DocFormsSetValue404ResponseCodeStaleBase, nil } - var t DocFormsImportData404ResponseCode + var t DocFormsSetValue404ResponseCode return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocFormsImportData404ResponseCode) Ptr() *DocFormsImportData404ResponseCode { +func (d DocFormsSetValue404ResponseCode) Ptr() *DocFormsSetValue404ResponseCode { return &d } -type DocFormsImportData404ResponseName string +type DocFormsSetValue404ResponseName string const ( - DocFormsImportData404ResponseNameEngineError DocFormsImportData404ResponseName = "EngineError" -) - -func NewDocFormsImportData404ResponseNameFromString(s string) (DocFormsImportData404ResponseName, error) { - switch s { - case "EngineError": - return DocFormsImportData404ResponseNameEngineError, nil - } - var t DocFormsImportData404ResponseName - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocFormsImportData404ResponseName) Ptr() *DocFormsImportData404ResponseName { - return &d -} - -type DocFormsImportDataRequest = map[string]any - -var ( - docFormsReset200ResponseFieldMeta = big.NewInt(1 << 0) -) - -type DocFormsReset200Response struct { - Meta *DocFormsReset200ResponseMeta `json:"meta" url:"meta"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - ExtraProperties map[string]interface{} `json:"-" url:"-"` - - rawJSON json.RawMessage -} - -func (d *DocFormsReset200Response) GetMeta() *DocFormsReset200ResponseMeta { - if d == nil { - return nil - } - return d.Meta -} - -func (d *DocFormsReset200Response) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.ExtraProperties -} - -func (d *DocFormsReset200Response) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetMeta sets the Meta field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsReset200Response) SetMeta(meta *DocFormsReset200ResponseMeta) { - d.Meta = meta - d.require(docFormsReset200ResponseFieldMeta) -} - -func (d *DocFormsReset200Response) UnmarshalJSON(data []byte) error { - type embed DocFormsReset200Response - var unmarshaler = struct { - embed - }{ - embed: embed(*d), - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - *d = DocFormsReset200Response(unmarshaler.embed) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.ExtraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d *DocFormsReset200Response) MarshalJSON() ([]byte, error) { - type embed DocFormsReset200Response - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return internal.MarshalJSONWithExtraProperties(explicitMarshaler, d.ExtraProperties) -} - -func (d *DocFormsReset200Response) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) -} - -var ( - docFormsReset200ResponseMetaFieldAffectedPages = big.NewInt(1 << 0) - docFormsReset200ResponseMetaFieldCacheDelta = big.NewInt(1 << 1) -) - -type DocFormsReset200ResponseMeta struct { - AffectedPages []*DocFormsReset200ResponseMetaAffectedPagesItem `json:"affectedPages" url:"affectedPages"` - CacheDelta *DocFormsReset200ResponseMetaCacheDelta `json:"cacheDelta,omitempty" url:"cacheDelta,omitempty"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage -} - -func (d *DocFormsReset200ResponseMeta) GetAffectedPages() []*DocFormsReset200ResponseMetaAffectedPagesItem { - if d == nil { - return nil - } - return d.AffectedPages -} - -func (d *DocFormsReset200ResponseMeta) GetCacheDelta() *DocFormsReset200ResponseMetaCacheDelta { - if d == nil { - return nil - } - return d.CacheDelta -} - -func (d *DocFormsReset200ResponseMeta) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties -} - -func (d *DocFormsReset200ResponseMeta) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetAffectedPages sets the AffectedPages field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsReset200ResponseMeta) SetAffectedPages(affectedPages []*DocFormsReset200ResponseMetaAffectedPagesItem) { - d.AffectedPages = affectedPages - d.require(docFormsReset200ResponseMetaFieldAffectedPages) -} - -// SetCacheDelta sets the CacheDelta field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsReset200ResponseMeta) SetCacheDelta(cacheDelta *DocFormsReset200ResponseMetaCacheDelta) { - d.CacheDelta = cacheDelta - d.require(docFormsReset200ResponseMetaFieldCacheDelta) -} - -func (d *DocFormsReset200ResponseMeta) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsReset200ResponseMeta - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocFormsReset200ResponseMeta(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d *DocFormsReset200ResponseMeta) MarshalJSON() ([]byte, error) { - type embed DocFormsReset200ResponseMeta - var marshaler = struct { - embed - }{ - embed: embed(*d), + DocFormsSetValue404ResponseNameEngineError DocFormsSetValue404ResponseName = "EngineError" +) + +func NewDocFormsSetValue404ResponseNameFromString(s string) (DocFormsSetValue404ResponseName, error) { + switch s { + case "EngineError": + return DocFormsSetValue404ResponseNameEngineError, nil } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + var t DocFormsSetValue404ResponseName + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocFormsReset200ResponseMeta) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) +func (d DocFormsSetValue404ResponseName) Ptr() *DocFormsSetValue404ResponseName { + return &d } +type DocFormsSetValueRequest = map[string]any + var ( - docFormsReset200ResponseMetaAffectedPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) - docFormsReset200ResponseMetaAffectedPagesItemFieldRevision = big.NewInt(1 << 1) - docFormsReset200ResponseMetaAffectedPagesItemFieldWeakAnnotationState = big.NewInt(1 << 2) + docHead404ResponseFieldName = big.NewInt(1 << 0) + docHead404ResponseFieldCode = big.NewInt(1 << 1) + docHead404ResponseFieldMessage = big.NewInt(1 << 2) + docHead404ResponseFieldDetails = big.NewInt(1 << 3) ) -type DocFormsReset200ResponseMetaAffectedPagesItem struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Revision *DocFormsReset200ResponseMetaAffectedPagesItemRevision `json:"revision" url:"revision"` - WeakAnnotationState *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState `json:"weakAnnotationState" url:"weakAnnotationState"` +type DocHead404Response struct { + Name DocHead404ResponseName `json:"name" url:"name"` + Code DocHead404ResponseCode `json:"code" url:"code"` + Message string `json:"message" url:"message"` + Details map[string]any `json:"details,omitempty" url:"details,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -130594,69 +148769,83 @@ type DocFormsReset200ResponseMetaAffectedPagesItem struct { rawJSON json.RawMessage } -func (d *DocFormsReset200ResponseMetaAffectedPagesItem) GetPageObjectNumber() int { +func (d *DocHead404Response) GetName() DocHead404ResponseName { if d == nil { - return 0 + return "" } - return d.PageObjectNumber + return d.Name } -func (d *DocFormsReset200ResponseMetaAffectedPagesItem) GetRevision() *DocFormsReset200ResponseMetaAffectedPagesItemRevision { +func (d *DocHead404Response) GetCode() DocHead404ResponseCode { if d == nil { - return nil + return "" } - return d.Revision + return d.Code } -func (d *DocFormsReset200ResponseMetaAffectedPagesItem) GetWeakAnnotationState() *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState { +func (d *DocHead404Response) GetMessage() string { + if d == nil { + return "" + } + return d.Message +} + +func (d *DocHead404Response) GetDetails() map[string]any { if d == nil { return nil } - return d.WeakAnnotationState + return d.Details } -func (d *DocFormsReset200ResponseMetaAffectedPagesItem) GetExtraProperties() map[string]interface{} { +func (d *DocHead404Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsReset200ResponseMetaAffectedPagesItem) require(field *big.Int) { +func (d *DocHead404Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsReset200ResponseMetaAffectedPagesItem) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docFormsReset200ResponseMetaAffectedPagesItemFieldPageObjectNumber) +func (d *DocHead404Response) SetName(name DocHead404ResponseName) { + d.Name = name + d.require(docHead404ResponseFieldName) } -// SetRevision sets the Revision field and marks it as non-optional; +// SetCode sets the Code field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsReset200ResponseMetaAffectedPagesItem) SetRevision(revision *DocFormsReset200ResponseMetaAffectedPagesItemRevision) { - d.Revision = revision - d.require(docFormsReset200ResponseMetaAffectedPagesItemFieldRevision) +func (d *DocHead404Response) SetCode(code DocHead404ResponseCode) { + d.Code = code + d.require(docHead404ResponseFieldCode) } -// SetWeakAnnotationState sets the WeakAnnotationState field and marks it as non-optional; +// SetMessage sets the Message field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsReset200ResponseMetaAffectedPagesItem) SetWeakAnnotationState(weakAnnotationState *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState) { - d.WeakAnnotationState = weakAnnotationState - d.require(docFormsReset200ResponseMetaAffectedPagesItemFieldWeakAnnotationState) +func (d *DocHead404Response) SetMessage(message string) { + d.Message = message + d.require(docHead404ResponseFieldMessage) } -func (d *DocFormsReset200ResponseMetaAffectedPagesItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsReset200ResponseMetaAffectedPagesItem +// SetDetails sets the Details field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocHead404Response) SetDetails(details map[string]any) { + d.Details = details + d.require(docHead404ResponseFieldDetails) +} + +func (d *DocHead404Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocHead404Response var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsReset200ResponseMetaAffectedPagesItem(value) + *d = DocHead404Response(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -130666,8 +148855,8 @@ func (d *DocFormsReset200ResponseMetaAffectedPagesItem) UnmarshalJSON(data []byt return nil } -func (d *DocFormsReset200ResponseMetaAffectedPagesItem) MarshalJSON() ([]byte, error) { - type embed DocFormsReset200ResponseMetaAffectedPagesItem +func (d *DocHead404Response) MarshalJSON() ([]byte, error) { + type embed DocHead404Response var marshaler = struct { embed }{ @@ -130677,7 +148866,7 @@ func (d *DocFormsReset200ResponseMetaAffectedPagesItem) MarshalJSON() ([]byte, e return json.Marshal(explicitMarshaler) } -func (d *DocFormsReset200ResponseMetaAffectedPagesItem) String() string { +func (d *DocHead404Response) String() string { if d == nil { return "" } @@ -130692,16 +148881,128 @@ func (d *DocFormsReset200ResponseMetaAffectedPagesItem) String() string { return fmt.Sprintf("%#v", d) } +type DocHead404ResponseCode string + +const ( + DocHead404ResponseCodeUnknown DocHead404ResponseCode = "Unknown" + DocHead404ResponseCodeInvalidArg DocHead404ResponseCode = "InvalidArg" + DocHead404ResponseCodeDocNotOpen DocHead404ResponseCode = "DocNotOpen" + DocHead404ResponseCodeDocOpenFailed DocHead404ResponseCode = "DocOpenFailed" + DocHead404ResponseCodeDocPasswordRequired DocHead404ResponseCode = "DocPasswordRequired" + DocHead404ResponseCodeDocPasswordIncorrect DocHead404ResponseCode = "DocPasswordIncorrect" + DocHead404ResponseCodeSharePasswordRequired DocHead404ResponseCode = "SharePasswordRequired" + DocHead404ResponseCodeAborted DocHead404ResponseCode = "Aborted" + DocHead404ResponseCodeNetwork DocHead404ResponseCode = "Network" + DocHead404ResponseCodeUnauthenticated DocHead404ResponseCode = "Unauthenticated" + DocHead404ResponseCodeForbidden DocHead404ResponseCode = "Forbidden" + DocHead404ResponseCodeNotFound DocHead404ResponseCode = "NotFound" + DocHead404ResponseCodeWireFormat DocHead404ResponseCode = "WireFormat" + DocHead404ResponseCodeRuntimeUnavailable DocHead404ResponseCode = "RuntimeUnavailable" + DocHead404ResponseCodeInvalidReference DocHead404ResponseCode = "InvalidReference" + DocHead404ResponseCodeWeakAnnotationSessionConflict DocHead404ResponseCode = "WeakAnnotationSessionConflict" + DocHead404ResponseCodeLayerVersionConflict DocHead404ResponseCode = "LayerVersionConflict" + DocHead404ResponseCodeNotImplemented DocHead404ResponseCode = "NotImplemented" + DocHead404ResponseCodeMalformedPdf DocHead404ResponseCode = "MalformedPdf" + DocHead404ResponseCodeSigningPending DocHead404ResponseCode = "SigningPending" + DocHead404ResponseCodeSigningExpired DocHead404ResponseCode = "SigningExpired" + DocHead404ResponseCodeSigningVersionMismatch DocHead404ResponseCode = "SigningVersionMismatch" + DocHead404ResponseCodeSignatureRefused DocHead404ResponseCode = "SignatureRefused" + DocHead404ResponseCodeProtectedDocument DocHead404ResponseCode = "ProtectedDocument" + DocHead404ResponseCodeStaleBase DocHead404ResponseCode = "StaleBase" +) + +func NewDocHead404ResponseCodeFromString(s string) (DocHead404ResponseCode, error) { + switch s { + case "Unknown": + return DocHead404ResponseCodeUnknown, nil + case "InvalidArg": + return DocHead404ResponseCodeInvalidArg, nil + case "DocNotOpen": + return DocHead404ResponseCodeDocNotOpen, nil + case "DocOpenFailed": + return DocHead404ResponseCodeDocOpenFailed, nil + case "DocPasswordRequired": + return DocHead404ResponseCodeDocPasswordRequired, nil + case "DocPasswordIncorrect": + return DocHead404ResponseCodeDocPasswordIncorrect, nil + case "SharePasswordRequired": + return DocHead404ResponseCodeSharePasswordRequired, nil + case "Aborted": + return DocHead404ResponseCodeAborted, nil + case "Network": + return DocHead404ResponseCodeNetwork, nil + case "Unauthenticated": + return DocHead404ResponseCodeUnauthenticated, nil + case "Forbidden": + return DocHead404ResponseCodeForbidden, nil + case "NotFound": + return DocHead404ResponseCodeNotFound, nil + case "WireFormat": + return DocHead404ResponseCodeWireFormat, nil + case "RuntimeUnavailable": + return DocHead404ResponseCodeRuntimeUnavailable, nil + case "InvalidReference": + return DocHead404ResponseCodeInvalidReference, nil + case "WeakAnnotationSessionConflict": + return DocHead404ResponseCodeWeakAnnotationSessionConflict, nil + case "LayerVersionConflict": + return DocHead404ResponseCodeLayerVersionConflict, nil + case "NotImplemented": + return DocHead404ResponseCodeNotImplemented, nil + case "MalformedPdf": + return DocHead404ResponseCodeMalformedPdf, nil + case "SigningPending": + return DocHead404ResponseCodeSigningPending, nil + case "SigningExpired": + return DocHead404ResponseCodeSigningExpired, nil + case "SigningVersionMismatch": + return DocHead404ResponseCodeSigningVersionMismatch, nil + case "SignatureRefused": + return DocHead404ResponseCodeSignatureRefused, nil + case "ProtectedDocument": + return DocHead404ResponseCodeProtectedDocument, nil + case "StaleBase": + return DocHead404ResponseCodeStaleBase, nil + } + var t DocHead404ResponseCode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocHead404ResponseCode) Ptr() *DocHead404ResponseCode { + return &d +} + +type DocHead404ResponseName string + +const ( + DocHead404ResponseNameEngineError DocHead404ResponseName = "EngineError" +) + +func NewDocHead404ResponseNameFromString(s string) (DocHead404ResponseName, error) { + switch s { + case "EngineError": + return DocHead404ResponseNameEngineError, nil + } + var t DocHead404ResponseName + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocHead404ResponseName) Ptr() *DocHead404ResponseName { + return &d +} + var ( - docFormsReset200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID = big.NewInt(1 << 0) - docFormsReset200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docFormsReset200ResponseMetaAffectedPagesItemRevisionFieldGeneration = big.NewInt(1 << 2) + docManifest404ResponseFieldName = big.NewInt(1 << 0) + docManifest404ResponseFieldCode = big.NewInt(1 << 1) + docManifest404ResponseFieldMessage = big.NewInt(1 << 2) + docManifest404ResponseFieldDetails = big.NewInt(1 << 3) ) -type DocFormsReset200ResponseMetaAffectedPagesItemRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocManifest404Response struct { + Name DocManifest404ResponseName `json:"name" url:"name"` + Code DocManifest404ResponseCode `json:"code" url:"code"` + Message string `json:"message" url:"message"` + Details map[string]any `json:"details,omitempty" url:"details,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -130710,69 +149011,83 @@ type DocFormsReset200ResponseMetaAffectedPagesItemRevision struct { rawJSON json.RawMessage } -func (d *DocFormsReset200ResponseMetaAffectedPagesItemRevision) GetDocSessionID() string { +func (d *DocManifest404Response) GetName() DocManifest404ResponseName { if d == nil { return "" } - return d.DocSessionID + return d.Name } -func (d *DocFormsReset200ResponseMetaAffectedPagesItemRevision) GetPageObjectNumber() int { +func (d *DocManifest404Response) GetCode() DocManifest404ResponseCode { if d == nil { - return 0 + return "" } - return d.PageObjectNumber + return d.Code } -func (d *DocFormsReset200ResponseMetaAffectedPagesItemRevision) GetGeneration() int { +func (d *DocManifest404Response) GetMessage() string { if d == nil { - return 0 + return "" } - return d.Generation + return d.Message } -func (d *DocFormsReset200ResponseMetaAffectedPagesItemRevision) GetExtraProperties() map[string]interface{} { +func (d *DocManifest404Response) GetDetails() map[string]any { + if d == nil { + return nil + } + return d.Details +} + +func (d *DocManifest404Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsReset200ResponseMetaAffectedPagesItemRevision) require(field *big.Int) { +func (d *DocManifest404Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsReset200ResponseMetaAffectedPagesItemRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docFormsReset200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID) +func (d *DocManifest404Response) SetName(name DocManifest404ResponseName) { + d.Name = name + d.require(docManifest404ResponseFieldName) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetCode sets the Code field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsReset200ResponseMetaAffectedPagesItemRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docFormsReset200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber) +func (d *DocManifest404Response) SetCode(code DocManifest404ResponseCode) { + d.Code = code + d.require(docManifest404ResponseFieldCode) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetMessage sets the Message field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsReset200ResponseMetaAffectedPagesItemRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docFormsReset200ResponseMetaAffectedPagesItemRevisionFieldGeneration) +func (d *DocManifest404Response) SetMessage(message string) { + d.Message = message + d.require(docManifest404ResponseFieldMessage) } -func (d *DocFormsReset200ResponseMetaAffectedPagesItemRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsReset200ResponseMetaAffectedPagesItemRevision +// SetDetails sets the Details field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocManifest404Response) SetDetails(details map[string]any) { + d.Details = details + d.require(docManifest404ResponseFieldDetails) +} + +func (d *DocManifest404Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocManifest404Response var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsReset200ResponseMetaAffectedPagesItemRevision(value) + *d = DocManifest404Response(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -130782,8 +149097,8 @@ func (d *DocFormsReset200ResponseMetaAffectedPagesItemRevision) UnmarshalJSON(da return nil } -func (d *DocFormsReset200ResponseMetaAffectedPagesItemRevision) MarshalJSON() ([]byte, error) { - type embed DocFormsReset200ResponseMetaAffectedPagesItemRevision +func (d *DocManifest404Response) MarshalJSON() ([]byte, error) { + type embed DocManifest404Response var marshaler = struct { embed }{ @@ -130793,7 +149108,7 @@ func (d *DocFormsReset200ResponseMetaAffectedPagesItemRevision) MarshalJSON() ([ return json.Marshal(explicitMarshaler) } -func (d *DocFormsReset200ResponseMetaAffectedPagesItemRevision) String() string { +func (d *DocManifest404Response) String() string { if d == nil { return "" } @@ -130808,181 +149123,317 @@ func (d *DocFormsReset200ResponseMetaAffectedPagesItemRevision) String() string return fmt.Sprintf("%#v", d) } -type DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState struct { - Kind string - Unknown *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - Known *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown +type DocManifest404ResponseCode string - rawJSON json.RawMessage +const ( + DocManifest404ResponseCodeUnknown DocManifest404ResponseCode = "Unknown" + DocManifest404ResponseCodeInvalidArg DocManifest404ResponseCode = "InvalidArg" + DocManifest404ResponseCodeDocNotOpen DocManifest404ResponseCode = "DocNotOpen" + DocManifest404ResponseCodeDocOpenFailed DocManifest404ResponseCode = "DocOpenFailed" + DocManifest404ResponseCodeDocPasswordRequired DocManifest404ResponseCode = "DocPasswordRequired" + DocManifest404ResponseCodeDocPasswordIncorrect DocManifest404ResponseCode = "DocPasswordIncorrect" + DocManifest404ResponseCodeSharePasswordRequired DocManifest404ResponseCode = "SharePasswordRequired" + DocManifest404ResponseCodeAborted DocManifest404ResponseCode = "Aborted" + DocManifest404ResponseCodeNetwork DocManifest404ResponseCode = "Network" + DocManifest404ResponseCodeUnauthenticated DocManifest404ResponseCode = "Unauthenticated" + DocManifest404ResponseCodeForbidden DocManifest404ResponseCode = "Forbidden" + DocManifest404ResponseCodeNotFound DocManifest404ResponseCode = "NotFound" + DocManifest404ResponseCodeWireFormat DocManifest404ResponseCode = "WireFormat" + DocManifest404ResponseCodeRuntimeUnavailable DocManifest404ResponseCode = "RuntimeUnavailable" + DocManifest404ResponseCodeInvalidReference DocManifest404ResponseCode = "InvalidReference" + DocManifest404ResponseCodeWeakAnnotationSessionConflict DocManifest404ResponseCode = "WeakAnnotationSessionConflict" + DocManifest404ResponseCodeLayerVersionConflict DocManifest404ResponseCode = "LayerVersionConflict" + DocManifest404ResponseCodeNotImplemented DocManifest404ResponseCode = "NotImplemented" + DocManifest404ResponseCodeMalformedPdf DocManifest404ResponseCode = "MalformedPdf" + DocManifest404ResponseCodeSigningPending DocManifest404ResponseCode = "SigningPending" + DocManifest404ResponseCodeSigningExpired DocManifest404ResponseCode = "SigningExpired" + DocManifest404ResponseCodeSigningVersionMismatch DocManifest404ResponseCode = "SigningVersionMismatch" + DocManifest404ResponseCodeSignatureRefused DocManifest404ResponseCode = "SignatureRefused" + DocManifest404ResponseCodeProtectedDocument DocManifest404ResponseCode = "ProtectedDocument" + DocManifest404ResponseCodeStaleBase DocManifest404ResponseCode = "StaleBase" +) + +func NewDocManifest404ResponseCodeFromString(s string) (DocManifest404ResponseCode, error) { + switch s { + case "Unknown": + return DocManifest404ResponseCodeUnknown, nil + case "InvalidArg": + return DocManifest404ResponseCodeInvalidArg, nil + case "DocNotOpen": + return DocManifest404ResponseCodeDocNotOpen, nil + case "DocOpenFailed": + return DocManifest404ResponseCodeDocOpenFailed, nil + case "DocPasswordRequired": + return DocManifest404ResponseCodeDocPasswordRequired, nil + case "DocPasswordIncorrect": + return DocManifest404ResponseCodeDocPasswordIncorrect, nil + case "SharePasswordRequired": + return DocManifest404ResponseCodeSharePasswordRequired, nil + case "Aborted": + return DocManifest404ResponseCodeAborted, nil + case "Network": + return DocManifest404ResponseCodeNetwork, nil + case "Unauthenticated": + return DocManifest404ResponseCodeUnauthenticated, nil + case "Forbidden": + return DocManifest404ResponseCodeForbidden, nil + case "NotFound": + return DocManifest404ResponseCodeNotFound, nil + case "WireFormat": + return DocManifest404ResponseCodeWireFormat, nil + case "RuntimeUnavailable": + return DocManifest404ResponseCodeRuntimeUnavailable, nil + case "InvalidReference": + return DocManifest404ResponseCodeInvalidReference, nil + case "WeakAnnotationSessionConflict": + return DocManifest404ResponseCodeWeakAnnotationSessionConflict, nil + case "LayerVersionConflict": + return DocManifest404ResponseCodeLayerVersionConflict, nil + case "NotImplemented": + return DocManifest404ResponseCodeNotImplemented, nil + case "MalformedPdf": + return DocManifest404ResponseCodeMalformedPdf, nil + case "SigningPending": + return DocManifest404ResponseCodeSigningPending, nil + case "SigningExpired": + return DocManifest404ResponseCodeSigningExpired, nil + case "SigningVersionMismatch": + return DocManifest404ResponseCodeSigningVersionMismatch, nil + case "SignatureRefused": + return DocManifest404ResponseCodeSignatureRefused, nil + case "ProtectedDocument": + return DocManifest404ResponseCodeProtectedDocument, nil + case "StaleBase": + return DocManifest404ResponseCodeStaleBase, nil + } + var t DocManifest404ResponseCode + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKind() string { - if d == nil { - return "" +func (d DocManifest404ResponseCode) Ptr() *DocManifest404ResponseCode { + return &d +} + +type DocManifest404ResponseName string + +const ( + DocManifest404ResponseNameEngineError DocManifest404ResponseName = "EngineError" +) + +func NewDocManifest404ResponseNameFromString(s string) (DocManifest404ResponseName, error) { + switch s { + case "EngineError": + return DocManifest404ResponseNameEngineError, nil } - return d.Kind + var t DocManifest404ResponseName + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState) GetUnknown() *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown { +func (d DocManifest404ResponseName) Ptr() *DocManifest404ResponseName { + return &d +} + +var ( + docMetadataGet200ResponseFieldTitle = big.NewInt(1 << 0) + docMetadataGet200ResponseFieldAuthor = big.NewInt(1 << 1) + docMetadataGet200ResponseFieldSubject = big.NewInt(1 << 2) + docMetadataGet200ResponseFieldKeywords = big.NewInt(1 << 3) + docMetadataGet200ResponseFieldProducer = big.NewInt(1 << 4) + docMetadataGet200ResponseFieldCreator = big.NewInt(1 << 5) + docMetadataGet200ResponseFieldCreated = big.NewInt(1 << 6) + docMetadataGet200ResponseFieldModified = big.NewInt(1 << 7) + docMetadataGet200ResponseFieldTrapped = big.NewInt(1 << 8) + docMetadataGet200ResponseFieldCustom = big.NewInt(1 << 9) +) + +type DocMetadataGet200Response struct { + Title *string `json:"title,omitempty" url:"title,omitempty"` + Author *string `json:"author,omitempty" url:"author,omitempty"` + Subject *string `json:"subject,omitempty" url:"subject,omitempty"` + Keywords *string `json:"keywords,omitempty" url:"keywords,omitempty"` + Producer *string `json:"producer,omitempty" url:"producer,omitempty"` + Creator *string `json:"creator,omitempty" url:"creator,omitempty"` + Created *time.Time `json:"created,omitempty" url:"created,omitempty"` + Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` + Trapped DocMetadataGet200ResponseTrapped `json:"trapped" url:"trapped"` + Custom map[string]string `json:"custom" url:"custom"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocMetadataGet200Response) GetTitle() *string { if d == nil { return nil } - return d.Unknown + return d.Title } -func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKnown() *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown { +func (d *DocMetadataGet200Response) GetAuthor() *string { if d == nil { return nil } - return d.Known + return d.Author } -func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "unknown": - value := new(DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Unknown = value - case "known": - value := new(DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Known = value +func (d *DocMetadataGet200Response) GetSubject() *string { + if d == nil { + return nil } - d.rawJSON = json.RawMessage(data) - return nil + return d.Subject } -func (d DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.Unknown != nil { - return internal.MarshalJSONWithExtraProperty(d.Unknown, "kind", "unknown") - } - if d.Known != nil { - return internal.MarshalJSONWithExtraProperty(d.Known, "kind", "known") +func (d *DocMetadataGet200Response) GetKeywords() *string { + if d == nil { + return nil } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil + return d.Keywords +} + +func (d *DocMetadataGet200Response) GetProducer() *string { + if d == nil { + return nil } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) + return d.Producer } -type DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor interface { - VisitUnknown(*DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) error - VisitKnown(*DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) error +func (d *DocMetadataGet200Response) GetCreator() *string { + if d == nil { + return nil + } + return d.Creator } -func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState) Accept(visitor DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor) error { - if d.Unknown != nil { - return visitor.VisitUnknown(d.Unknown) - } - if d.Known != nil { - return visitor.VisitKnown(d.Known) +func (d *DocMetadataGet200Response) GetCreated() *time.Time { + if d == nil { + return nil } - return fmt.Errorf("type %T does not define a non-empty union type", d) + return d.Created } -func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState) validate() error { +func (d *DocMetadataGet200Response) GetModified() *time.Time { if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.Unknown != nil { - fields = append(fields, "unknown") - } - if d.Known != nil { - fields = append(fields, "known") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } + return nil } - return nil + return d.Modified } -var ( - docFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations = big.NewInt(1 << 0) -) - -type DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown struct { - HasAnyWeakAnnotations bool `json:"hasAnyWeakAnnotations" url:"hasAnyWeakAnnotations"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocMetadataGet200Response) GetTrapped() DocMetadataGet200ResponseTrapped { + if d == nil { + return "" + } + return d.Trapped } -func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetHasAnyWeakAnnotations() bool { +func (d *DocMetadataGet200Response) GetCustom() map[string]string { if d == nil { - return false + return nil } - return d.HasAnyWeakAnnotations + return d.Custom } -func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetExtraProperties() map[string]interface{} { +func (d *DocMetadataGet200Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) require(field *big.Int) { +func (d *DocMetadataGet200Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetHasAnyWeakAnnotations sets the HasAnyWeakAnnotations field and marks it as non-optional; +// SetTitle sets the Title field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) SetHasAnyWeakAnnotations(hasAnyWeakAnnotations bool) { - d.HasAnyWeakAnnotations = hasAnyWeakAnnotations - d.require(docFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations) +func (d *DocMetadataGet200Response) SetTitle(title *string) { + d.Title = title + d.require(docMetadataGet200ResponseFieldTitle) } -func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { +// SetAuthor sets the Author field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocMetadataGet200Response) SetAuthor(author *string) { + d.Author = author + d.require(docMetadataGet200ResponseFieldAuthor) +} + +// SetSubject sets the Subject field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocMetadataGet200Response) SetSubject(subject *string) { + d.Subject = subject + d.require(docMetadataGet200ResponseFieldSubject) +} + +// SetKeywords sets the Keywords field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocMetadataGet200Response) SetKeywords(keywords *string) { + d.Keywords = keywords + d.require(docMetadataGet200ResponseFieldKeywords) +} + +// SetProducer sets the Producer field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocMetadataGet200Response) SetProducer(producer *string) { + d.Producer = producer + d.require(docMetadataGet200ResponseFieldProducer) +} + +// SetCreator sets the Creator field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocMetadataGet200Response) SetCreator(creator *string) { + d.Creator = creator + d.require(docMetadataGet200ResponseFieldCreator) +} + +// SetCreated sets the Created field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocMetadataGet200Response) SetCreated(created *time.Time) { + d.Created = created + d.require(docMetadataGet200ResponseFieldCreated) +} + +// SetModified sets the Modified field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocMetadataGet200Response) SetModified(modified *time.Time) { + d.Modified = modified + d.require(docMetadataGet200ResponseFieldModified) +} + +// SetTrapped sets the Trapped field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocMetadataGet200Response) SetTrapped(trapped DocMetadataGet200ResponseTrapped) { + d.Trapped = trapped + d.require(docMetadataGet200ResponseFieldTrapped) +} + +// SetCustom sets the Custom field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocMetadataGet200Response) SetCustom(custom map[string]string) { + d.Custom = custom + d.require(docMetadataGet200ResponseFieldCustom) +} + +func (d *DocMetadataGet200Response) UnmarshalJSON(data []byte) error { + type embed DocMetadataGet200Response + var unmarshaler = struct { + embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` + }{ + embed: embed(*d), + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(value) + *d = DocMetadataGet200Response(unmarshaler.embed) + d.Created = unmarshaler.Created.TimePtr() + d.Modified = unmarshaler.Modified.TimePtr() extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -130992,18 +149443,22 @@ func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) return nil } -func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) MarshalJSON() ([]byte, error) { - type embed DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown +func (d *DocMetadataGet200Response) MarshalJSON() ([]byte, error) { + type embed DocMetadataGet200Response var marshaler = struct { embed + Created *internal.DateTime `json:"created,omitempty"` + Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), + embed: embed(*d), + Created: internal.NewOptionalDateTime(d.Created), + Modified: internal.NewOptionalDateTime(d.Modified), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) String() string { +func (d *DocMetadataGet200Response) String() string { if d == nil { return "" } @@ -131018,7 +149473,43 @@ func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) return fmt.Sprintf("%#v", d) } -type DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown struct { +type DocMetadataGet200ResponseTrapped string + +const ( + DocMetadataGet200ResponseTrappedTrue DocMetadataGet200ResponseTrapped = "true" + DocMetadataGet200ResponseTrappedFalse DocMetadataGet200ResponseTrapped = "false" + DocMetadataGet200ResponseTrappedUnknown DocMetadataGet200ResponseTrapped = "unknown" +) + +func NewDocMetadataGet200ResponseTrappedFromString(s string) (DocMetadataGet200ResponseTrapped, error) { + switch s { + case "true": + return DocMetadataGet200ResponseTrappedTrue, nil + case "false": + return DocMetadataGet200ResponseTrappedFalse, nil + case "unknown": + return DocMetadataGet200ResponseTrappedUnknown, nil + } + var t DocMetadataGet200ResponseTrapped + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocMetadataGet200ResponseTrapped) Ptr() *DocMetadataGet200ResponseTrapped { + return &d +} + +var ( + docMetadataGet404ResponseFieldName = big.NewInt(1 << 0) + docMetadataGet404ResponseFieldCode = big.NewInt(1 << 1) + docMetadataGet404ResponseFieldMessage = big.NewInt(1 << 2) + docMetadataGet404ResponseFieldDetails = big.NewInt(1 << 3) +) + +type DocMetadataGet404Response struct { + Name DocMetadataGet404ResponseName `json:"name" url:"name"` + Code DocMetadataGet404ResponseCode `json:"code" url:"code"` + Message string `json:"message" url:"message"` + Details map[string]any `json:"details,omitempty" url:"details,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -131027,27 +149518,83 @@ type DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown str rawJSON json.RawMessage } -func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) GetExtraProperties() map[string]interface{} { +func (d *DocMetadataGet404Response) GetName() DocMetadataGet404ResponseName { + if d == nil { + return "" + } + return d.Name +} + +func (d *DocMetadataGet404Response) GetCode() DocMetadataGet404ResponseCode { + if d == nil { + return "" + } + return d.Code +} + +func (d *DocMetadataGet404Response) GetMessage() string { + if d == nil { + return "" + } + return d.Message +} + +func (d *DocMetadataGet404Response) GetDetails() map[string]any { + if d == nil { + return nil + } + return d.Details +} + +func (d *DocMetadataGet404Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) require(field *big.Int) { +func (d *DocMetadataGet404Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown +// SetName sets the Name field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocMetadataGet404Response) SetName(name DocMetadataGet404ResponseName) { + d.Name = name + d.require(docMetadataGet404ResponseFieldName) +} + +// SetCode sets the Code field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocMetadataGet404Response) SetCode(code DocMetadataGet404ResponseCode) { + d.Code = code + d.require(docMetadataGet404ResponseFieldCode) +} + +// SetMessage sets the Message field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocMetadataGet404Response) SetMessage(message string) { + d.Message = message + d.require(docMetadataGet404ResponseFieldMessage) +} + +// SetDetails sets the Details field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocMetadataGet404Response) SetDetails(details map[string]any) { + d.Details = details + d.require(docMetadataGet404ResponseFieldDetails) +} + +func (d *DocMetadataGet404Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocMetadataGet404Response var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(value) + *d = DocMetadataGet404Response(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -131057,8 +149604,8 @@ func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown return nil } -func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) MarshalJSON() ([]byte, error) { - type embed DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown +func (d *DocMetadataGet404Response) MarshalJSON() ([]byte, error) { + type embed DocMetadataGet404Response var marshaler = struct { embed }{ @@ -131068,7 +149615,7 @@ func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown return json.Marshal(explicitMarshaler) } -func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) String() string { +func (d *DocMetadataGet404Response) String() string { if d == nil { return "" } @@ -131083,156 +149630,191 @@ func (d *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown return fmt.Sprintf("%#v", d) } -var ( - docFormsReset200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) - docFormsReset200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) - docFormsReset200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) - docFormsReset200ResponseMetaCacheDeltaFieldLayerVersion = big.NewInt(1 << 3) - docFormsReset200ResponseMetaCacheDeltaFieldWorking = big.NewInt(1 << 4) - docFormsReset200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 5) -) - -type DocFormsReset200ResponseMetaCacheDelta struct { - PreviousDocVersion int `json:"previousDocVersion" url:"previousDocVersion"` - DocVersion int `json:"docVersion" url:"docVersion"` - AnnotationsVersion *int `json:"annotationsVersion,omitempty" url:"annotationsVersion,omitempty"` - LayerVersion *int `json:"layerVersion,omitempty" url:"layerVersion,omitempty"` - Working *bool `json:"working,omitempty" url:"working,omitempty"` - Pages []*DocFormsReset200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +type DocMetadataGet404ResponseCode string - extraProperties map[string]interface{} - rawJSON json.RawMessage -} +const ( + DocMetadataGet404ResponseCodeUnknown DocMetadataGet404ResponseCode = "Unknown" + DocMetadataGet404ResponseCodeInvalidArg DocMetadataGet404ResponseCode = "InvalidArg" + DocMetadataGet404ResponseCodeDocNotOpen DocMetadataGet404ResponseCode = "DocNotOpen" + DocMetadataGet404ResponseCodeDocOpenFailed DocMetadataGet404ResponseCode = "DocOpenFailed" + DocMetadataGet404ResponseCodeDocPasswordRequired DocMetadataGet404ResponseCode = "DocPasswordRequired" + DocMetadataGet404ResponseCodeDocPasswordIncorrect DocMetadataGet404ResponseCode = "DocPasswordIncorrect" + DocMetadataGet404ResponseCodeSharePasswordRequired DocMetadataGet404ResponseCode = "SharePasswordRequired" + DocMetadataGet404ResponseCodeAborted DocMetadataGet404ResponseCode = "Aborted" + DocMetadataGet404ResponseCodeNetwork DocMetadataGet404ResponseCode = "Network" + DocMetadataGet404ResponseCodeUnauthenticated DocMetadataGet404ResponseCode = "Unauthenticated" + DocMetadataGet404ResponseCodeForbidden DocMetadataGet404ResponseCode = "Forbidden" + DocMetadataGet404ResponseCodeNotFound DocMetadataGet404ResponseCode = "NotFound" + DocMetadataGet404ResponseCodeWireFormat DocMetadataGet404ResponseCode = "WireFormat" + DocMetadataGet404ResponseCodeRuntimeUnavailable DocMetadataGet404ResponseCode = "RuntimeUnavailable" + DocMetadataGet404ResponseCodeInvalidReference DocMetadataGet404ResponseCode = "InvalidReference" + DocMetadataGet404ResponseCodeWeakAnnotationSessionConflict DocMetadataGet404ResponseCode = "WeakAnnotationSessionConflict" + DocMetadataGet404ResponseCodeLayerVersionConflict DocMetadataGet404ResponseCode = "LayerVersionConflict" + DocMetadataGet404ResponseCodeNotImplemented DocMetadataGet404ResponseCode = "NotImplemented" + DocMetadataGet404ResponseCodeMalformedPdf DocMetadataGet404ResponseCode = "MalformedPdf" + DocMetadataGet404ResponseCodeSigningPending DocMetadataGet404ResponseCode = "SigningPending" + DocMetadataGet404ResponseCodeSigningExpired DocMetadataGet404ResponseCode = "SigningExpired" + DocMetadataGet404ResponseCodeSigningVersionMismatch DocMetadataGet404ResponseCode = "SigningVersionMismatch" + DocMetadataGet404ResponseCodeSignatureRefused DocMetadataGet404ResponseCode = "SignatureRefused" + DocMetadataGet404ResponseCodeProtectedDocument DocMetadataGet404ResponseCode = "ProtectedDocument" + DocMetadataGet404ResponseCodeStaleBase DocMetadataGet404ResponseCode = "StaleBase" +) -func (d *DocFormsReset200ResponseMetaCacheDelta) GetPreviousDocVersion() int { - if d == nil { - return 0 +func NewDocMetadataGet404ResponseCodeFromString(s string) (DocMetadataGet404ResponseCode, error) { + switch s { + case "Unknown": + return DocMetadataGet404ResponseCodeUnknown, nil + case "InvalidArg": + return DocMetadataGet404ResponseCodeInvalidArg, nil + case "DocNotOpen": + return DocMetadataGet404ResponseCodeDocNotOpen, nil + case "DocOpenFailed": + return DocMetadataGet404ResponseCodeDocOpenFailed, nil + case "DocPasswordRequired": + return DocMetadataGet404ResponseCodeDocPasswordRequired, nil + case "DocPasswordIncorrect": + return DocMetadataGet404ResponseCodeDocPasswordIncorrect, nil + case "SharePasswordRequired": + return DocMetadataGet404ResponseCodeSharePasswordRequired, nil + case "Aborted": + return DocMetadataGet404ResponseCodeAborted, nil + case "Network": + return DocMetadataGet404ResponseCodeNetwork, nil + case "Unauthenticated": + return DocMetadataGet404ResponseCodeUnauthenticated, nil + case "Forbidden": + return DocMetadataGet404ResponseCodeForbidden, nil + case "NotFound": + return DocMetadataGet404ResponseCodeNotFound, nil + case "WireFormat": + return DocMetadataGet404ResponseCodeWireFormat, nil + case "RuntimeUnavailable": + return DocMetadataGet404ResponseCodeRuntimeUnavailable, nil + case "InvalidReference": + return DocMetadataGet404ResponseCodeInvalidReference, nil + case "WeakAnnotationSessionConflict": + return DocMetadataGet404ResponseCodeWeakAnnotationSessionConflict, nil + case "LayerVersionConflict": + return DocMetadataGet404ResponseCodeLayerVersionConflict, nil + case "NotImplemented": + return DocMetadataGet404ResponseCodeNotImplemented, nil + case "MalformedPdf": + return DocMetadataGet404ResponseCodeMalformedPdf, nil + case "SigningPending": + return DocMetadataGet404ResponseCodeSigningPending, nil + case "SigningExpired": + return DocMetadataGet404ResponseCodeSigningExpired, nil + case "SigningVersionMismatch": + return DocMetadataGet404ResponseCodeSigningVersionMismatch, nil + case "SignatureRefused": + return DocMetadataGet404ResponseCodeSignatureRefused, nil + case "ProtectedDocument": + return DocMetadataGet404ResponseCodeProtectedDocument, nil + case "StaleBase": + return DocMetadataGet404ResponseCodeStaleBase, nil } - return d.PreviousDocVersion + var t DocMetadataGet404ResponseCode + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocFormsReset200ResponseMetaCacheDelta) GetDocVersion() int { - if d == nil { - return 0 - } - return d.DocVersion +func (d DocMetadataGet404ResponseCode) Ptr() *DocMetadataGet404ResponseCode { + return &d } -func (d *DocFormsReset200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { - if d == nil { - return nil +type DocMetadataGet404ResponseName string + +const ( + DocMetadataGet404ResponseNameEngineError DocMetadataGet404ResponseName = "EngineError" +) + +func NewDocMetadataGet404ResponseNameFromString(s string) (DocMetadataGet404ResponseName, error) { + switch s { + case "EngineError": + return DocMetadataGet404ResponseNameEngineError, nil } - return d.AnnotationsVersion + var t DocMetadataGet404ResponseName + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocFormsReset200ResponseMetaCacheDelta) GetLayerVersion() *int { - if d == nil { - return nil - } - return d.LayerVersion +func (d DocMetadataGet404ResponseName) Ptr() *DocMetadataGet404ResponseName { + return &d } -func (d *DocFormsReset200ResponseMetaCacheDelta) GetWorking() *bool { - if d == nil { - return nil - } - return d.Working +var ( + docPagesDelete200ResponseFieldMeta = big.NewInt(1 << 0) +) + +type DocPagesDelete200Response struct { + Meta *DocPagesDelete200ResponseMeta `json:"meta" url:"meta"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + ExtraProperties map[string]interface{} `json:"-" url:"-"` + + rawJSON json.RawMessage } -func (d *DocFormsReset200ResponseMetaCacheDelta) GetPages() []*DocFormsReset200ResponseMetaCacheDeltaPagesItem { +func (d *DocPagesDelete200Response) GetMeta() *DocPagesDelete200ResponseMeta { if d == nil { return nil } - return d.Pages + return d.Meta } -func (d *DocFormsReset200ResponseMetaCacheDelta) GetExtraProperties() map[string]interface{} { +func (d *DocPagesDelete200Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.extraProperties + return d.ExtraProperties } -func (d *DocFormsReset200ResponseMetaCacheDelta) require(field *big.Int) { +func (d *DocPagesDelete200Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPreviousDocVersion sets the PreviousDocVersion field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsReset200ResponseMetaCacheDelta) SetPreviousDocVersion(previousDocVersion int) { - d.PreviousDocVersion = previousDocVersion - d.require(docFormsReset200ResponseMetaCacheDeltaFieldPreviousDocVersion) -} - -// SetDocVersion sets the DocVersion field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsReset200ResponseMetaCacheDelta) SetDocVersion(docVersion int) { - d.DocVersion = docVersion - d.require(docFormsReset200ResponseMetaCacheDeltaFieldDocVersion) -} - -// SetAnnotationsVersion sets the AnnotationsVersion field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsReset200ResponseMetaCacheDelta) SetAnnotationsVersion(annotationsVersion *int) { - d.AnnotationsVersion = annotationsVersion - d.require(docFormsReset200ResponseMetaCacheDeltaFieldAnnotationsVersion) -} - -// SetLayerVersion sets the LayerVersion field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsReset200ResponseMetaCacheDelta) SetLayerVersion(layerVersion *int) { - d.LayerVersion = layerVersion - d.require(docFormsReset200ResponseMetaCacheDeltaFieldLayerVersion) -} - -// SetWorking sets the Working field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsReset200ResponseMetaCacheDelta) SetWorking(working *bool) { - d.Working = working - d.require(docFormsReset200ResponseMetaCacheDeltaFieldWorking) -} - -// SetPages sets the Pages field and marks it as non-optional; +// SetMeta sets the Meta field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsReset200ResponseMetaCacheDelta) SetPages(pages []*DocFormsReset200ResponseMetaCacheDeltaPagesItem) { - d.Pages = pages - d.require(docFormsReset200ResponseMetaCacheDeltaFieldPages) +func (d *DocPagesDelete200Response) SetMeta(meta *DocPagesDelete200ResponseMeta) { + d.Meta = meta + d.require(docPagesDelete200ResponseFieldMeta) } -func (d *DocFormsReset200ResponseMetaCacheDelta) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsReset200ResponseMetaCacheDelta - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { +func (d *DocPagesDelete200Response) UnmarshalJSON(data []byte) error { + type embed DocPagesDelete200Response + var unmarshaler = struct { + embed + }{ + embed: embed(*d), + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocFormsReset200ResponseMetaCacheDelta(value) + *d = DocPagesDelete200Response(unmarshaler.embed) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err } - d.extraProperties = extraProperties + d.ExtraProperties = extraProperties d.rawJSON = json.RawMessage(data) return nil } -func (d *DocFormsReset200ResponseMetaCacheDelta) MarshalJSON() ([]byte, error) { - type embed DocFormsReset200ResponseMetaCacheDelta +func (d *DocPagesDelete200Response) MarshalJSON() ([]byte, error) { + type embed DocPagesDelete200Response var marshaler = struct { embed }{ embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return internal.MarshalJSONWithExtraProperties(explicitMarshaler, d.ExtraProperties) } -func (d *DocFormsReset200ResponseMetaCacheDelta) String() string { +func (d *DocPagesDelete200Response) String() string { if d == nil { return "" } @@ -131248,13 +149830,13 @@ func (d *DocFormsReset200ResponseMetaCacheDelta) String() string { } var ( - docFormsReset200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) - docFormsReset200ResponseMetaCacheDeltaPagesItemFieldCache = big.NewInt(1 << 1) + docPagesDelete200ResponseMetaFieldAffectedPages = big.NewInt(1 << 0) + docPagesDelete200ResponseMetaFieldCacheDelta = big.NewInt(1 << 1) ) -type DocFormsReset200ResponseMetaCacheDeltaPagesItem struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Cache *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache `json:"cache" url:"cache"` +type DocPagesDelete200ResponseMeta struct { + AffectedPages []*DocPagesDelete200ResponseMetaAffectedPagesItem `json:"affectedPages" url:"affectedPages"` + CacheDelta *DocPagesDelete200ResponseMetaCacheDelta `json:"cacheDelta,omitempty" url:"cacheDelta,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -131263,55 +149845,55 @@ type DocFormsReset200ResponseMetaCacheDeltaPagesItem struct { rawJSON json.RawMessage } -func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItem) GetPageObjectNumber() int { +func (d *DocPagesDelete200ResponseMeta) GetAffectedPages() []*DocPagesDelete200ResponseMetaAffectedPagesItem { if d == nil { - return 0 + return nil } - return d.PageObjectNumber + return d.AffectedPages } -func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItem) GetCache() *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache { +func (d *DocPagesDelete200ResponseMeta) GetCacheDelta() *DocPagesDelete200ResponseMetaCacheDelta { if d == nil { return nil } - return d.Cache + return d.CacheDelta } -func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItem) GetExtraProperties() map[string]interface{} { +func (d *DocPagesDelete200ResponseMeta) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItem) require(field *big.Int) { +func (d *DocPagesDelete200ResponseMeta) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetAffectedPages sets the AffectedPages field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItem) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docFormsReset200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber) +func (d *DocPagesDelete200ResponseMeta) SetAffectedPages(affectedPages []*DocPagesDelete200ResponseMetaAffectedPagesItem) { + d.AffectedPages = affectedPages + d.require(docPagesDelete200ResponseMetaFieldAffectedPages) } -// SetCache sets the Cache field and marks it as non-optional; +// SetCacheDelta sets the CacheDelta field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItem) SetCache(cache *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache) { - d.Cache = cache - d.require(docFormsReset200ResponseMetaCacheDeltaPagesItemFieldCache) +func (d *DocPagesDelete200ResponseMeta) SetCacheDelta(cacheDelta *DocPagesDelete200ResponseMetaCacheDelta) { + d.CacheDelta = cacheDelta + d.require(docPagesDelete200ResponseMetaFieldCacheDelta) } -func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsReset200ResponseMetaCacheDeltaPagesItem +func (d *DocPagesDelete200ResponseMeta) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesDelete200ResponseMeta var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsReset200ResponseMetaCacheDeltaPagesItem(value) + *d = DocPagesDelete200ResponseMeta(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -131321,8 +149903,8 @@ func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItem) UnmarshalJSON(data []b return nil } -func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItem) MarshalJSON() ([]byte, error) { - type embed DocFormsReset200ResponseMetaCacheDeltaPagesItem +func (d *DocPagesDelete200ResponseMeta) MarshalJSON() ([]byte, error) { + type embed DocPagesDelete200ResponseMeta var marshaler = struct { embed }{ @@ -131332,7 +149914,7 @@ func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItem) MarshalJSON() ([]byte, return json.Marshal(explicitMarshaler) } -func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItem) String() string { +func (d *DocPagesDelete200ResponseMeta) String() string { if d == nil { return "" } @@ -131348,13 +149930,15 @@ func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItem) String() string { } var ( - docFormsReset200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion = big.NewInt(1 << 0) - docFormsReset200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion = big.NewInt(1 << 1) + docPagesDelete200ResponseMetaAffectedPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) + docPagesDelete200ResponseMetaAffectedPagesItemFieldRevision = big.NewInt(1 << 1) + docPagesDelete200ResponseMetaAffectedPagesItemFieldWeakAnnotationState = big.NewInt(1 << 2) ) -type DocFormsReset200ResponseMetaCacheDeltaPagesItemCache struct { - ContentVersion int `json:"contentVersion" url:"contentVersion"` - AnnotationVersion int `json:"annotationVersion" url:"annotationVersion"` +type DocPagesDelete200ResponseMetaAffectedPagesItem struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Revision *DocPagesDelete200ResponseMetaAffectedPagesItemRevision `json:"revision" url:"revision"` + WeakAnnotationState *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState `json:"weakAnnotationState" url:"weakAnnotationState"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -131363,55 +149947,69 @@ type DocFormsReset200ResponseMetaCacheDeltaPagesItemCache struct { rawJSON json.RawMessage } -func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache) GetContentVersion() int { +func (d *DocPagesDelete200ResponseMetaAffectedPagesItem) GetPageObjectNumber() int { if d == nil { return 0 } - return d.ContentVersion + return d.PageObjectNumber } -func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache) GetAnnotationVersion() int { +func (d *DocPagesDelete200ResponseMetaAffectedPagesItem) GetRevision() *DocPagesDelete200ResponseMetaAffectedPagesItemRevision { if d == nil { - return 0 + return nil } - return d.AnnotationVersion + return d.Revision } -func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache) GetExtraProperties() map[string]interface{} { +func (d *DocPagesDelete200ResponseMetaAffectedPagesItem) GetWeakAnnotationState() *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState { + if d == nil { + return nil + } + return d.WeakAnnotationState +} + +func (d *DocPagesDelete200ResponseMetaAffectedPagesItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache) require(field *big.Int) { +func (d *DocPagesDelete200ResponseMetaAffectedPagesItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetContentVersion sets the ContentVersion field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache) SetContentVersion(contentVersion int) { - d.ContentVersion = contentVersion - d.require(docFormsReset200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion) +func (d *DocPagesDelete200ResponseMetaAffectedPagesItem) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docPagesDelete200ResponseMetaAffectedPagesItemFieldPageObjectNumber) } -// SetAnnotationVersion sets the AnnotationVersion field and marks it as non-optional; +// SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache) SetAnnotationVersion(annotationVersion int) { - d.AnnotationVersion = annotationVersion - d.require(docFormsReset200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion) +func (d *DocPagesDelete200ResponseMetaAffectedPagesItem) SetRevision(revision *DocPagesDelete200ResponseMetaAffectedPagesItemRevision) { + d.Revision = revision + d.require(docPagesDelete200ResponseMetaAffectedPagesItemFieldRevision) } -func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsReset200ResponseMetaCacheDeltaPagesItemCache +// SetWeakAnnotationState sets the WeakAnnotationState field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesDelete200ResponseMetaAffectedPagesItem) SetWeakAnnotationState(weakAnnotationState *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState) { + d.WeakAnnotationState = weakAnnotationState + d.require(docPagesDelete200ResponseMetaAffectedPagesItemFieldWeakAnnotationState) +} + +func (d *DocPagesDelete200ResponseMetaAffectedPagesItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesDelete200ResponseMetaAffectedPagesItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsReset200ResponseMetaCacheDeltaPagesItemCache(value) + *d = DocPagesDelete200ResponseMetaAffectedPagesItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -131421,8 +150019,8 @@ func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJSON(dat return nil } -func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON() ([]byte, error) { - type embed DocFormsReset200ResponseMetaCacheDeltaPagesItemCache +func (d *DocPagesDelete200ResponseMetaAffectedPagesItem) MarshalJSON() ([]byte, error) { + type embed DocPagesDelete200ResponseMetaAffectedPagesItem var marshaler = struct { embed }{ @@ -131432,7 +150030,7 @@ func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON() ([] return json.Marshal(explicitMarshaler) } -func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache) String() string { +func (d *DocPagesDelete200ResponseMetaAffectedPagesItem) String() string { if d == nil { return "" } @@ -131448,17 +150046,15 @@ func (d *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache) String() string { } var ( - docFormsReset404ResponseFieldName = big.NewInt(1 << 0) - docFormsReset404ResponseFieldCode = big.NewInt(1 << 1) - docFormsReset404ResponseFieldMessage = big.NewInt(1 << 2) - docFormsReset404ResponseFieldDetails = big.NewInt(1 << 3) + docPagesDelete200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID = big.NewInt(1 << 0) + docPagesDelete200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docPagesDelete200ResponseMetaAffectedPagesItemRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocFormsReset404Response struct { - Name DocFormsReset404ResponseName `json:"name" url:"name"` - Code DocFormsReset404ResponseCode `json:"code" url:"code"` - Message string `json:"message" url:"message"` - Details map[string]any `json:"details,omitempty" url:"details,omitempty"` +type DocPagesDelete200ResponseMetaAffectedPagesItemRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -131467,83 +150063,69 @@ type DocFormsReset404Response struct { rawJSON json.RawMessage } -func (d *DocFormsReset404Response) GetName() DocFormsReset404ResponseName { - if d == nil { - return "" - } - return d.Name -} - -func (d *DocFormsReset404Response) GetCode() DocFormsReset404ResponseCode { +func (d *DocPagesDelete200ResponseMetaAffectedPagesItemRevision) GetDocSessionID() string { if d == nil { return "" } - return d.Code + return d.DocSessionID } -func (d *DocFormsReset404Response) GetMessage() string { +func (d *DocPagesDelete200ResponseMetaAffectedPagesItemRevision) GetPageObjectNumber() int { if d == nil { - return "" + return 0 } - return d.Message + return d.PageObjectNumber } -func (d *DocFormsReset404Response) GetDetails() map[string]any { +func (d *DocPagesDelete200ResponseMetaAffectedPagesItemRevision) GetGeneration() int { if d == nil { - return nil + return 0 } - return d.Details + return d.Generation } -func (d *DocFormsReset404Response) GetExtraProperties() map[string]interface{} { +func (d *DocPagesDelete200ResponseMetaAffectedPagesItemRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsReset404Response) require(field *big.Int) { +func (d *DocPagesDelete200ResponseMetaAffectedPagesItemRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetName sets the Name field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsReset404Response) SetName(name DocFormsReset404ResponseName) { - d.Name = name - d.require(docFormsReset404ResponseFieldName) -} - -// SetCode sets the Code field and marks it as non-optional; +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsReset404Response) SetCode(code DocFormsReset404ResponseCode) { - d.Code = code - d.require(docFormsReset404ResponseFieldCode) +func (d *DocPagesDelete200ResponseMetaAffectedPagesItemRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docPagesDelete200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID) } -// SetMessage sets the Message field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsReset404Response) SetMessage(message string) { - d.Message = message - d.require(docFormsReset404ResponseFieldMessage) +func (d *DocPagesDelete200ResponseMetaAffectedPagesItemRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docPagesDelete200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber) } -// SetDetails sets the Details field and marks it as non-optional; +// SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsReset404Response) SetDetails(details map[string]any) { - d.Details = details - d.require(docFormsReset404ResponseFieldDetails) +func (d *DocPagesDelete200ResponseMetaAffectedPagesItemRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docPagesDelete200ResponseMetaAffectedPagesItemRevisionFieldGeneration) } -func (d *DocFormsReset404Response) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsReset404Response +func (d *DocPagesDelete200ResponseMetaAffectedPagesItemRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesDelete200ResponseMetaAffectedPagesItemRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsReset404Response(value) + *d = DocPagesDelete200ResponseMetaAffectedPagesItemRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -131553,8 +150135,8 @@ func (d *DocFormsReset404Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocFormsReset404Response) MarshalJSON() ([]byte, error) { - type embed DocFormsReset404Response +func (d *DocPagesDelete200ResponseMetaAffectedPagesItemRevision) MarshalJSON() ([]byte, error) { + type embed DocPagesDelete200ResponseMetaAffectedPagesItemRevision var marshaler = struct { embed }{ @@ -131564,7 +150146,7 @@ func (d *DocFormsReset404Response) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocFormsReset404Response) String() string { +func (d *DocPagesDelete200ResponseMetaAffectedPagesItemRevision) String() string { if d == nil { return "" } @@ -131579,191 +150161,267 @@ func (d *DocFormsReset404Response) String() string { return fmt.Sprintf("%#v", d) } -type DocFormsReset404ResponseCode string +type DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState struct { + Kind string + Unknown *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + Known *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown -const ( - DocFormsReset404ResponseCodeUnknown DocFormsReset404ResponseCode = "Unknown" - DocFormsReset404ResponseCodeInvalidArg DocFormsReset404ResponseCode = "InvalidArg" - DocFormsReset404ResponseCodeDocNotOpen DocFormsReset404ResponseCode = "DocNotOpen" - DocFormsReset404ResponseCodeDocOpenFailed DocFormsReset404ResponseCode = "DocOpenFailed" - DocFormsReset404ResponseCodeDocPasswordRequired DocFormsReset404ResponseCode = "DocPasswordRequired" - DocFormsReset404ResponseCodeDocPasswordIncorrect DocFormsReset404ResponseCode = "DocPasswordIncorrect" - DocFormsReset404ResponseCodeSharePasswordRequired DocFormsReset404ResponseCode = "SharePasswordRequired" - DocFormsReset404ResponseCodeAborted DocFormsReset404ResponseCode = "Aborted" - DocFormsReset404ResponseCodeNetwork DocFormsReset404ResponseCode = "Network" - DocFormsReset404ResponseCodeUnauthenticated DocFormsReset404ResponseCode = "Unauthenticated" - DocFormsReset404ResponseCodeForbidden DocFormsReset404ResponseCode = "Forbidden" - DocFormsReset404ResponseCodeNotFound DocFormsReset404ResponseCode = "NotFound" - DocFormsReset404ResponseCodeWireFormat DocFormsReset404ResponseCode = "WireFormat" - DocFormsReset404ResponseCodeRuntimeUnavailable DocFormsReset404ResponseCode = "RuntimeUnavailable" - DocFormsReset404ResponseCodeInvalidReference DocFormsReset404ResponseCode = "InvalidReference" - DocFormsReset404ResponseCodeWeakAnnotationSessionConflict DocFormsReset404ResponseCode = "WeakAnnotationSessionConflict" - DocFormsReset404ResponseCodeLayerVersionConflict DocFormsReset404ResponseCode = "LayerVersionConflict" - DocFormsReset404ResponseCodeNotImplemented DocFormsReset404ResponseCode = "NotImplemented" - DocFormsReset404ResponseCodeMalformedPdf DocFormsReset404ResponseCode = "MalformedPdf" - DocFormsReset404ResponseCodeSigningPending DocFormsReset404ResponseCode = "SigningPending" - DocFormsReset404ResponseCodeSigningExpired DocFormsReset404ResponseCode = "SigningExpired" - DocFormsReset404ResponseCodeSigningVersionMismatch DocFormsReset404ResponseCode = "SigningVersionMismatch" - DocFormsReset404ResponseCodeSignatureRefused DocFormsReset404ResponseCode = "SignatureRefused" - DocFormsReset404ResponseCodeProtectedDocument DocFormsReset404ResponseCode = "ProtectedDocument" - DocFormsReset404ResponseCodeStaleBase DocFormsReset404ResponseCode = "StaleBase" -) + rawJSON json.RawMessage +} -func NewDocFormsReset404ResponseCodeFromString(s string) (DocFormsReset404ResponseCode, error) { - switch s { - case "Unknown": - return DocFormsReset404ResponseCodeUnknown, nil - case "InvalidArg": - return DocFormsReset404ResponseCodeInvalidArg, nil - case "DocNotOpen": - return DocFormsReset404ResponseCodeDocNotOpen, nil - case "DocOpenFailed": - return DocFormsReset404ResponseCodeDocOpenFailed, nil - case "DocPasswordRequired": - return DocFormsReset404ResponseCodeDocPasswordRequired, nil - case "DocPasswordIncorrect": - return DocFormsReset404ResponseCodeDocPasswordIncorrect, nil - case "SharePasswordRequired": - return DocFormsReset404ResponseCodeSharePasswordRequired, nil - case "Aborted": - return DocFormsReset404ResponseCodeAborted, nil - case "Network": - return DocFormsReset404ResponseCodeNetwork, nil - case "Unauthenticated": - return DocFormsReset404ResponseCodeUnauthenticated, nil - case "Forbidden": - return DocFormsReset404ResponseCodeForbidden, nil - case "NotFound": - return DocFormsReset404ResponseCodeNotFound, nil - case "WireFormat": - return DocFormsReset404ResponseCodeWireFormat, nil - case "RuntimeUnavailable": - return DocFormsReset404ResponseCodeRuntimeUnavailable, nil - case "InvalidReference": - return DocFormsReset404ResponseCodeInvalidReference, nil - case "WeakAnnotationSessionConflict": - return DocFormsReset404ResponseCodeWeakAnnotationSessionConflict, nil - case "LayerVersionConflict": - return DocFormsReset404ResponseCodeLayerVersionConflict, nil - case "NotImplemented": - return DocFormsReset404ResponseCodeNotImplemented, nil - case "MalformedPdf": - return DocFormsReset404ResponseCodeMalformedPdf, nil - case "SigningPending": - return DocFormsReset404ResponseCodeSigningPending, nil - case "SigningExpired": - return DocFormsReset404ResponseCodeSigningExpired, nil - case "SigningVersionMismatch": - return DocFormsReset404ResponseCodeSigningVersionMismatch, nil - case "SignatureRefused": - return DocFormsReset404ResponseCodeSignatureRefused, nil - case "ProtectedDocument": - return DocFormsReset404ResponseCodeProtectedDocument, nil - case "StaleBase": - return DocFormsReset404ResponseCodeStaleBase, nil +func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKind() string { + if d == nil { + return "" } - var t DocFormsReset404ResponseCode - return "", fmt.Errorf("%s is not a valid %T", s, t) + return d.Kind } -func (d DocFormsReset404ResponseCode) Ptr() *DocFormsReset404ResponseCode { - return &d +func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState) GetUnknown() *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown { + if d == nil { + return nil + } + return d.Unknown } -type DocFormsReset404ResponseName string +func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKnown() *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown { + if d == nil { + return nil + } + return d.Known +} -const ( - DocFormsReset404ResponseNameEngineError DocFormsReset404ResponseName = "EngineError" -) +func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "unknown": + value := new(DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Unknown = value + case "known": + value := new(DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Known = value + } + d.rawJSON = json.RawMessage(data) + return nil +} -func NewDocFormsReset404ResponseNameFromString(s string) (DocFormsReset404ResponseName, error) { - switch s { - case "EngineError": - return DocFormsReset404ResponseNameEngineError, nil +func (d DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err } - var t DocFormsReset404ResponseName - return "", fmt.Errorf("%s is not a valid %T", s, t) + if d.Unknown != nil { + return internal.MarshalJSONWithExtraProperty(d.Unknown, "kind", "unknown") + } + if d.Known != nil { + return internal.MarshalJSONWithExtraProperty(d.Known, "kind", "known") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d DocFormsReset404ResponseName) Ptr() *DocFormsReset404ResponseName { - return &d +type DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor interface { + VisitUnknown(*DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) error + VisitKnown(*DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) error +} + +func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState) Accept(visitor DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor) error { + if d.Unknown != nil { + return visitor.VisitUnknown(d.Unknown) + } + if d.Known != nil { + return visitor.VisitKnown(d.Known) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.Unknown != nil { + fields = append(fields, "unknown") + } + if d.Known != nil { + fields = append(fields, "known") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil } var ( - docFormsSetValue200ResponseFieldMeta = big.NewInt(1 << 0) + docPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations = big.NewInt(1 << 0) ) -type DocFormsSetValue200Response struct { - Meta *DocFormsSetValue200ResponseMeta `json:"meta" url:"meta"` +type DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown struct { + HasAnyWeakAnnotations bool `json:"hasAnyWeakAnnotations" url:"hasAnyWeakAnnotations"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` - ExtraProperties map[string]interface{} `json:"-" url:"-"` + extraProperties map[string]interface{} + rawJSON json.RawMessage +} - rawJSON json.RawMessage +func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetHasAnyWeakAnnotations() bool { + if d == nil { + return false + } + return d.HasAnyWeakAnnotations } -func (d *DocFormsSetValue200Response) GetMeta() *DocFormsSetValue200ResponseMeta { +func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.Meta + return d.extraProperties +} + +func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetHasAnyWeakAnnotations sets the HasAnyWeakAnnotations field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) SetHasAnyWeakAnnotations(hasAnyWeakAnnotations bool) { + d.HasAnyWeakAnnotations = hasAnyWeakAnnotations + d.require(docPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations) +} + +func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) MarshalJSON() ([]byte, error) { + type embed DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown struct { + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocFormsSetValue200Response) GetExtraProperties() map[string]interface{} { +func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.ExtraProperties + return d.extraProperties } -func (d *DocFormsSetValue200Response) require(field *big.Int) { +func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetMeta sets the Meta field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsSetValue200Response) SetMeta(meta *DocFormsSetValue200ResponseMeta) { - d.Meta = meta - d.require(docFormsSetValue200ResponseFieldMeta) -} - -func (d *DocFormsSetValue200Response) UnmarshalJSON(data []byte) error { - type embed DocFormsSetValue200Response - var unmarshaler = struct { - embed - }{ - embed: embed(*d), - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsSetValue200Response(unmarshaler.embed) + *d = DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err } - d.ExtraProperties = extraProperties + d.extraProperties = extraProperties d.rawJSON = json.RawMessage(data) return nil } -func (d *DocFormsSetValue200Response) MarshalJSON() ([]byte, error) { - type embed DocFormsSetValue200Response +func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) MarshalJSON() ([]byte, error) { + type embed DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown var marshaler = struct { embed }{ embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return internal.MarshalJSONWithExtraProperties(explicitMarshaler, d.ExtraProperties) + return json.Marshal(explicitMarshaler) } -func (d *DocFormsSetValue200Response) String() string { +func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) String() string { if d == nil { return "" } @@ -131779,13 +150437,21 @@ func (d *DocFormsSetValue200Response) String() string { } var ( - docFormsSetValue200ResponseMetaFieldAffectedPages = big.NewInt(1 << 0) - docFormsSetValue200ResponseMetaFieldCacheDelta = big.NewInt(1 << 1) + docPagesDelete200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) + docPagesDelete200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) + docPagesDelete200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) + docPagesDelete200ResponseMetaCacheDeltaFieldLayerVersion = big.NewInt(1 << 3) + docPagesDelete200ResponseMetaCacheDeltaFieldWorking = big.NewInt(1 << 4) + docPagesDelete200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 5) ) -type DocFormsSetValue200ResponseMeta struct { - AffectedPages []*DocFormsSetValue200ResponseMetaAffectedPagesItem `json:"affectedPages" url:"affectedPages"` - CacheDelta *DocFormsSetValue200ResponseMetaCacheDelta `json:"cacheDelta,omitempty" url:"cacheDelta,omitempty"` +type DocPagesDelete200ResponseMetaCacheDelta struct { + PreviousDocVersion int `json:"previousDocVersion" url:"previousDocVersion"` + DocVersion int `json:"docVersion" url:"docVersion"` + AnnotationsVersion *int `json:"annotationsVersion,omitempty" url:"annotationsVersion,omitempty"` + LayerVersion *int `json:"layerVersion,omitempty" url:"layerVersion,omitempty"` + Working *bool `json:"working,omitempty" url:"working,omitempty"` + Pages []*DocPagesDelete200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -131794,55 +150460,111 @@ type DocFormsSetValue200ResponseMeta struct { rawJSON json.RawMessage } -func (d *DocFormsSetValue200ResponseMeta) GetAffectedPages() []*DocFormsSetValue200ResponseMetaAffectedPagesItem { +func (d *DocPagesDelete200ResponseMetaCacheDelta) GetPreviousDocVersion() int { + if d == nil { + return 0 + } + return d.PreviousDocVersion +} + +func (d *DocPagesDelete200ResponseMetaCacheDelta) GetDocVersion() int { + if d == nil { + return 0 + } + return d.DocVersion +} + +func (d *DocPagesDelete200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { if d == nil { return nil } - return d.AffectedPages + return d.AnnotationsVersion } -func (d *DocFormsSetValue200ResponseMeta) GetCacheDelta() *DocFormsSetValue200ResponseMetaCacheDelta { +func (d *DocPagesDelete200ResponseMetaCacheDelta) GetLayerVersion() *int { if d == nil { return nil } - return d.CacheDelta + return d.LayerVersion } -func (d *DocFormsSetValue200ResponseMeta) GetExtraProperties() map[string]interface{} { +func (d *DocPagesDelete200ResponseMetaCacheDelta) GetWorking() *bool { + if d == nil { + return nil + } + return d.Working +} + +func (d *DocPagesDelete200ResponseMetaCacheDelta) GetPages() []*DocPagesDelete200ResponseMetaCacheDeltaPagesItem { + if d == nil { + return nil + } + return d.Pages +} + +func (d *DocPagesDelete200ResponseMetaCacheDelta) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsSetValue200ResponseMeta) require(field *big.Int) { +func (d *DocPagesDelete200ResponseMetaCacheDelta) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetAffectedPages sets the AffectedPages field and marks it as non-optional; +// SetPreviousDocVersion sets the PreviousDocVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsSetValue200ResponseMeta) SetAffectedPages(affectedPages []*DocFormsSetValue200ResponseMetaAffectedPagesItem) { - d.AffectedPages = affectedPages - d.require(docFormsSetValue200ResponseMetaFieldAffectedPages) +func (d *DocPagesDelete200ResponseMetaCacheDelta) SetPreviousDocVersion(previousDocVersion int) { + d.PreviousDocVersion = previousDocVersion + d.require(docPagesDelete200ResponseMetaCacheDeltaFieldPreviousDocVersion) } -// SetCacheDelta sets the CacheDelta field and marks it as non-optional; +// SetDocVersion sets the DocVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsSetValue200ResponseMeta) SetCacheDelta(cacheDelta *DocFormsSetValue200ResponseMetaCacheDelta) { - d.CacheDelta = cacheDelta - d.require(docFormsSetValue200ResponseMetaFieldCacheDelta) +func (d *DocPagesDelete200ResponseMetaCacheDelta) SetDocVersion(docVersion int) { + d.DocVersion = docVersion + d.require(docPagesDelete200ResponseMetaCacheDeltaFieldDocVersion) } -func (d *DocFormsSetValue200ResponseMeta) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsSetValue200ResponseMeta +// SetAnnotationsVersion sets the AnnotationsVersion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesDelete200ResponseMetaCacheDelta) SetAnnotationsVersion(annotationsVersion *int) { + d.AnnotationsVersion = annotationsVersion + d.require(docPagesDelete200ResponseMetaCacheDeltaFieldAnnotationsVersion) +} + +// SetLayerVersion sets the LayerVersion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesDelete200ResponseMetaCacheDelta) SetLayerVersion(layerVersion *int) { + d.LayerVersion = layerVersion + d.require(docPagesDelete200ResponseMetaCacheDeltaFieldLayerVersion) +} + +// SetWorking sets the Working field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesDelete200ResponseMetaCacheDelta) SetWorking(working *bool) { + d.Working = working + d.require(docPagesDelete200ResponseMetaCacheDeltaFieldWorking) +} + +// SetPages sets the Pages field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesDelete200ResponseMetaCacheDelta) SetPages(pages []*DocPagesDelete200ResponseMetaCacheDeltaPagesItem) { + d.Pages = pages + d.require(docPagesDelete200ResponseMetaCacheDeltaFieldPages) +} + +func (d *DocPagesDelete200ResponseMetaCacheDelta) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesDelete200ResponseMetaCacheDelta var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsSetValue200ResponseMeta(value) + *d = DocPagesDelete200ResponseMetaCacheDelta(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -131852,8 +150574,8 @@ func (d *DocFormsSetValue200ResponseMeta) UnmarshalJSON(data []byte) error { return nil } -func (d *DocFormsSetValue200ResponseMeta) MarshalJSON() ([]byte, error) { - type embed DocFormsSetValue200ResponseMeta +func (d *DocPagesDelete200ResponseMetaCacheDelta) MarshalJSON() ([]byte, error) { + type embed DocPagesDelete200ResponseMetaCacheDelta var marshaler = struct { embed }{ @@ -131863,7 +150585,7 @@ func (d *DocFormsSetValue200ResponseMeta) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocFormsSetValue200ResponseMeta) String() string { +func (d *DocPagesDelete200ResponseMetaCacheDelta) String() string { if d == nil { return "" } @@ -131879,15 +150601,13 @@ func (d *DocFormsSetValue200ResponseMeta) String() string { } var ( - docFormsSetValue200ResponseMetaAffectedPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) - docFormsSetValue200ResponseMetaAffectedPagesItemFieldRevision = big.NewInt(1 << 1) - docFormsSetValue200ResponseMetaAffectedPagesItemFieldWeakAnnotationState = big.NewInt(1 << 2) + docPagesDelete200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) + docPagesDelete200ResponseMetaCacheDeltaPagesItemFieldCache = big.NewInt(1 << 1) ) -type DocFormsSetValue200ResponseMetaAffectedPagesItem struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Revision *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision `json:"revision" url:"revision"` - WeakAnnotationState *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState `json:"weakAnnotationState" url:"weakAnnotationState"` +type DocPagesDelete200ResponseMetaCacheDeltaPagesItem struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Cache *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache `json:"cache" url:"cache"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -131896,35 +150616,28 @@ type DocFormsSetValue200ResponseMetaAffectedPagesItem struct { rawJSON json.RawMessage } -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItem) GetPageObjectNumber() int { +func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItem) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItem) GetRevision() *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision { - if d == nil { - return nil - } - return d.Revision -} - -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItem) GetWeakAnnotationState() *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState { +func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItem) GetCache() *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache { if d == nil { return nil } - return d.WeakAnnotationState + return d.Cache } -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItem) GetExtraProperties() map[string]interface{} { +func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItem) require(field *big.Int) { +func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -131933,32 +150646,25 @@ func (d *DocFormsSetValue200ResponseMetaAffectedPagesItem) require(field *big.In // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItem) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItem) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docFormsSetValue200ResponseMetaAffectedPagesItemFieldPageObjectNumber) -} - -// SetRevision sets the Revision field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItem) SetRevision(revision *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision) { - d.Revision = revision - d.require(docFormsSetValue200ResponseMetaAffectedPagesItemFieldRevision) + d.require(docPagesDelete200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber) } -// SetWeakAnnotationState sets the WeakAnnotationState field and marks it as non-optional; +// SetCache sets the Cache field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItem) SetWeakAnnotationState(weakAnnotationState *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState) { - d.WeakAnnotationState = weakAnnotationState - d.require(docFormsSetValue200ResponseMetaAffectedPagesItemFieldWeakAnnotationState) +func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItem) SetCache(cache *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache) { + d.Cache = cache + d.require(docPagesDelete200ResponseMetaCacheDeltaPagesItemFieldCache) } -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsSetValue200ResponseMetaAffectedPagesItem +func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesDelete200ResponseMetaCacheDeltaPagesItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsSetValue200ResponseMetaAffectedPagesItem(value) + *d = DocPagesDelete200ResponseMetaCacheDeltaPagesItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -131968,8 +150674,8 @@ func (d *DocFormsSetValue200ResponseMetaAffectedPagesItem) UnmarshalJSON(data [] return nil } -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItem) MarshalJSON() ([]byte, error) { - type embed DocFormsSetValue200ResponseMetaAffectedPagesItem +func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItem) MarshalJSON() ([]byte, error) { + type embed DocPagesDelete200ResponseMetaCacheDeltaPagesItem var marshaler = struct { embed }{ @@ -131979,7 +150685,7 @@ func (d *DocFormsSetValue200ResponseMetaAffectedPagesItem) MarshalJSON() ([]byte return json.Marshal(explicitMarshaler) } -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItem) String() string { +func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItem) String() string { if d == nil { return "" } @@ -131995,15 +150701,13 @@ func (d *DocFormsSetValue200ResponseMetaAffectedPagesItem) String() string { } var ( - docFormsSetValue200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID = big.NewInt(1 << 0) - docFormsSetValue200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docFormsSetValue200ResponseMetaAffectedPagesItemRevisionFieldGeneration = big.NewInt(1 << 2) + docPagesDelete200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion = big.NewInt(1 << 0) + docPagesDelete200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion = big.NewInt(1 << 1) ) -type DocFormsSetValue200ResponseMetaAffectedPagesItemRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache struct { + ContentVersion int `json:"contentVersion" url:"contentVersion"` + AnnotationVersion int `json:"annotationVersion" url:"annotationVersion"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -132012,69 +150716,55 @@ type DocFormsSetValue200ResponseMetaAffectedPagesItemRevision struct { rawJSON json.RawMessage } -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision) GetDocSessionID() string { - if d == nil { - return "" - } - return d.DocSessionID -} - -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision) GetPageObjectNumber() int { +func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache) GetContentVersion() int { if d == nil { return 0 } - return d.PageObjectNumber + return d.ContentVersion } -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision) GetGeneration() int { +func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache) GetAnnotationVersion() int { if d == nil { return 0 } - return d.Generation + return d.AnnotationVersion } -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision) GetExtraProperties() map[string]interface{} { +func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision) require(field *big.Int) { +func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docFormsSetValue200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetContentVersion sets the ContentVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docFormsSetValue200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber) +func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache) SetContentVersion(contentVersion int) { + d.ContentVersion = contentVersion + d.require(docPagesDelete200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetAnnotationVersion sets the AnnotationVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docFormsSetValue200ResponseMetaAffectedPagesItemRevisionFieldGeneration) +func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache) SetAnnotationVersion(annotationVersion int) { + d.AnnotationVersion = annotationVersion + d.require(docPagesDelete200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion) } -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsSetValue200ResponseMetaAffectedPagesItemRevision +func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsSetValue200ResponseMetaAffectedPagesItemRevision(value) + *d = DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -132084,8 +150774,8 @@ func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision) UnmarshalJSON return nil } -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision) MarshalJSON() ([]byte, error) { - type embed DocFormsSetValue200ResponseMetaAffectedPagesItemRevision +func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON() ([]byte, error) { + type embed DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache var marshaler = struct { embed }{ @@ -132095,7 +150785,7 @@ func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision) MarshalJSON() return json.Marshal(explicitMarshaler) } -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision) String() string { +func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache) String() string { if d == nil { return "" } @@ -132110,138 +150800,260 @@ func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision) String() stri return fmt.Sprintf("%#v", d) } -type DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState struct { - Kind string - Unknown *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - Known *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown +var ( + docPagesDelete400ResponseFieldName = big.NewInt(1 << 0) + docPagesDelete400ResponseFieldCode = big.NewInt(1 << 1) + docPagesDelete400ResponseFieldMessage = big.NewInt(1 << 2) + docPagesDelete400ResponseFieldDetails = big.NewInt(1 << 3) +) - rawJSON json.RawMessage +type DocPagesDelete400Response struct { + Name DocPagesDelete400ResponseName `json:"name" url:"name"` + Code DocPagesDelete400ResponseCode `json:"code" url:"code"` + Message string `json:"message" url:"message"` + Details map[string]any `json:"details,omitempty" url:"details,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKind() string { +func (d *DocPagesDelete400Response) GetName() DocPagesDelete400ResponseName { if d == nil { return "" } - return d.Kind + return d.Name } -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState) GetUnknown() *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown { +func (d *DocPagesDelete400Response) GetCode() DocPagesDelete400ResponseCode { + if d == nil { + return "" + } + return d.Code +} + +func (d *DocPagesDelete400Response) GetMessage() string { + if d == nil { + return "" + } + return d.Message +} + +func (d *DocPagesDelete400Response) GetDetails() map[string]any { if d == nil { return nil } - return d.Unknown + return d.Details } -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKnown() *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown { +func (d *DocPagesDelete400Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.Known + return d.extraProperties } -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` +func (d *DocPagesDelete400Response) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - if err := json.Unmarshal(data, &unmarshaler); err != nil { + d.explicitFields.Or(d.explicitFields, field) +} + +// SetName sets the Name field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesDelete400Response) SetName(name DocPagesDelete400ResponseName) { + d.Name = name + d.require(docPagesDelete400ResponseFieldName) +} + +// SetCode sets the Code field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesDelete400Response) SetCode(code DocPagesDelete400ResponseCode) { + d.Code = code + d.require(docPagesDelete400ResponseFieldCode) +} + +// SetMessage sets the Message field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesDelete400Response) SetMessage(message string) { + d.Message = message + d.require(docPagesDelete400ResponseFieldMessage) +} + +// SetDetails sets the Details field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesDelete400Response) SetDetails(details map[string]any) { + d.Details = details + d.require(docPagesDelete400ResponseFieldDetails) +} + +func (d *DocPagesDelete400Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesDelete400Response + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "unknown": - value := new(DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Unknown = value - case "known": - value := new(DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Known = value + *d = DocPagesDelete400Response(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err } + d.extraProperties = extraProperties d.rawJSON = json.RawMessage(data) return nil } -func (d DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.Unknown != nil { - return internal.MarshalJSONWithExtraProperty(d.Unknown, "kind", "unknown") +func (d *DocPagesDelete400Response) MarshalJSON() ([]byte, error) { + type embed DocPagesDelete400Response + var marshaler = struct { + embed + }{ + embed: embed(*d), } - if d.Known != nil { - return internal.MarshalJSONWithExtraProperty(d.Known, "kind", "known") + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocPagesDelete400Response) String() string { + if d == nil { + return "" } if len(d.rawJSON) > 0 { - return d.rawJSON, nil + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocPagesDelete400ResponseCode string + +const ( + DocPagesDelete400ResponseCodeUnknown DocPagesDelete400ResponseCode = "Unknown" + DocPagesDelete400ResponseCodeInvalidArg DocPagesDelete400ResponseCode = "InvalidArg" + DocPagesDelete400ResponseCodeDocNotOpen DocPagesDelete400ResponseCode = "DocNotOpen" + DocPagesDelete400ResponseCodeDocOpenFailed DocPagesDelete400ResponseCode = "DocOpenFailed" + DocPagesDelete400ResponseCodeDocPasswordRequired DocPagesDelete400ResponseCode = "DocPasswordRequired" + DocPagesDelete400ResponseCodeDocPasswordIncorrect DocPagesDelete400ResponseCode = "DocPasswordIncorrect" + DocPagesDelete400ResponseCodeSharePasswordRequired DocPagesDelete400ResponseCode = "SharePasswordRequired" + DocPagesDelete400ResponseCodeAborted DocPagesDelete400ResponseCode = "Aborted" + DocPagesDelete400ResponseCodeNetwork DocPagesDelete400ResponseCode = "Network" + DocPagesDelete400ResponseCodeUnauthenticated DocPagesDelete400ResponseCode = "Unauthenticated" + DocPagesDelete400ResponseCodeForbidden DocPagesDelete400ResponseCode = "Forbidden" + DocPagesDelete400ResponseCodeNotFound DocPagesDelete400ResponseCode = "NotFound" + DocPagesDelete400ResponseCodeWireFormat DocPagesDelete400ResponseCode = "WireFormat" + DocPagesDelete400ResponseCodeRuntimeUnavailable DocPagesDelete400ResponseCode = "RuntimeUnavailable" + DocPagesDelete400ResponseCodeInvalidReference DocPagesDelete400ResponseCode = "InvalidReference" + DocPagesDelete400ResponseCodeWeakAnnotationSessionConflict DocPagesDelete400ResponseCode = "WeakAnnotationSessionConflict" + DocPagesDelete400ResponseCodeLayerVersionConflict DocPagesDelete400ResponseCode = "LayerVersionConflict" + DocPagesDelete400ResponseCodeNotImplemented DocPagesDelete400ResponseCode = "NotImplemented" + DocPagesDelete400ResponseCodeMalformedPdf DocPagesDelete400ResponseCode = "MalformedPdf" + DocPagesDelete400ResponseCodeSigningPending DocPagesDelete400ResponseCode = "SigningPending" + DocPagesDelete400ResponseCodeSigningExpired DocPagesDelete400ResponseCode = "SigningExpired" + DocPagesDelete400ResponseCodeSigningVersionMismatch DocPagesDelete400ResponseCode = "SigningVersionMismatch" + DocPagesDelete400ResponseCodeSignatureRefused DocPagesDelete400ResponseCode = "SignatureRefused" + DocPagesDelete400ResponseCodeProtectedDocument DocPagesDelete400ResponseCode = "ProtectedDocument" + DocPagesDelete400ResponseCodeStaleBase DocPagesDelete400ResponseCode = "StaleBase" +) + +func NewDocPagesDelete400ResponseCodeFromString(s string) (DocPagesDelete400ResponseCode, error) { + switch s { + case "Unknown": + return DocPagesDelete400ResponseCodeUnknown, nil + case "InvalidArg": + return DocPagesDelete400ResponseCodeInvalidArg, nil + case "DocNotOpen": + return DocPagesDelete400ResponseCodeDocNotOpen, nil + case "DocOpenFailed": + return DocPagesDelete400ResponseCodeDocOpenFailed, nil + case "DocPasswordRequired": + return DocPagesDelete400ResponseCodeDocPasswordRequired, nil + case "DocPasswordIncorrect": + return DocPagesDelete400ResponseCodeDocPasswordIncorrect, nil + case "SharePasswordRequired": + return DocPagesDelete400ResponseCodeSharePasswordRequired, nil + case "Aborted": + return DocPagesDelete400ResponseCodeAborted, nil + case "Network": + return DocPagesDelete400ResponseCodeNetwork, nil + case "Unauthenticated": + return DocPagesDelete400ResponseCodeUnauthenticated, nil + case "Forbidden": + return DocPagesDelete400ResponseCodeForbidden, nil + case "NotFound": + return DocPagesDelete400ResponseCodeNotFound, nil + case "WireFormat": + return DocPagesDelete400ResponseCodeWireFormat, nil + case "RuntimeUnavailable": + return DocPagesDelete400ResponseCodeRuntimeUnavailable, nil + case "InvalidReference": + return DocPagesDelete400ResponseCodeInvalidReference, nil + case "WeakAnnotationSessionConflict": + return DocPagesDelete400ResponseCodeWeakAnnotationSessionConflict, nil + case "LayerVersionConflict": + return DocPagesDelete400ResponseCodeLayerVersionConflict, nil + case "NotImplemented": + return DocPagesDelete400ResponseCodeNotImplemented, nil + case "MalformedPdf": + return DocPagesDelete400ResponseCodeMalformedPdf, nil + case "SigningPending": + return DocPagesDelete400ResponseCodeSigningPending, nil + case "SigningExpired": + return DocPagesDelete400ResponseCodeSigningExpired, nil + case "SigningVersionMismatch": + return DocPagesDelete400ResponseCodeSigningVersionMismatch, nil + case "SignatureRefused": + return DocPagesDelete400ResponseCodeSignatureRefused, nil + case "ProtectedDocument": + return DocPagesDelete400ResponseCodeProtectedDocument, nil + case "StaleBase": + return DocPagesDelete400ResponseCodeStaleBase, nil + } + var t DocPagesDelete400ResponseCode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesDelete400ResponseCode) Ptr() *DocPagesDelete400ResponseCode { + return &d } -type DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor interface { - VisitUnknown(*DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) error - VisitKnown(*DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) error -} +type DocPagesDelete400ResponseName string -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState) Accept(visitor DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor) error { - if d.Unknown != nil { - return visitor.VisitUnknown(d.Unknown) - } - if d.Known != nil { - return visitor.VisitKnown(d.Known) +const ( + DocPagesDelete400ResponseNameEngineError DocPagesDelete400ResponseName = "EngineError" +) + +func NewDocPagesDelete400ResponseNameFromString(s string) (DocPagesDelete400ResponseName, error) { + switch s { + case "EngineError": + return DocPagesDelete400ResponseNameEngineError, nil } - return fmt.Errorf("type %T does not define a non-empty union type", d) + var t DocPagesDelete400ResponseName + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState) validate() error { - if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.Unknown != nil { - fields = append(fields, "unknown") - } - if d.Known != nil { - fields = append(fields, "known") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } - } - return nil +func (d DocPagesDelete400ResponseName) Ptr() *DocPagesDelete400ResponseName { + return &d } var ( - docFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations = big.NewInt(1 << 0) + docPagesDelete404ResponseFieldName = big.NewInt(1 << 0) + docPagesDelete404ResponseFieldCode = big.NewInt(1 << 1) + docPagesDelete404ResponseFieldMessage = big.NewInt(1 << 2) + docPagesDelete404ResponseFieldDetails = big.NewInt(1 << 3) ) -type DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown struct { - HasAnyWeakAnnotations bool `json:"hasAnyWeakAnnotations" url:"hasAnyWeakAnnotations"` +type DocPagesDelete404Response struct { + Name DocPagesDelete404ResponseName `json:"name" url:"name"` + Code DocPagesDelete404ResponseCode `json:"code" url:"code"` + Message string `json:"message" url:"message"` + Details map[string]any `json:"details,omitempty" url:"details,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -132250,41 +151062,83 @@ type DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown st rawJSON json.RawMessage } -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetHasAnyWeakAnnotations() bool { +func (d *DocPagesDelete404Response) GetName() DocPagesDelete404ResponseName { if d == nil { - return false + return "" } - return d.HasAnyWeakAnnotations + return d.Name } -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetExtraProperties() map[string]interface{} { +func (d *DocPagesDelete404Response) GetCode() DocPagesDelete404ResponseCode { + if d == nil { + return "" + } + return d.Code +} + +func (d *DocPagesDelete404Response) GetMessage() string { + if d == nil { + return "" + } + return d.Message +} + +func (d *DocPagesDelete404Response) GetDetails() map[string]any { + if d == nil { + return nil + } + return d.Details +} + +func (d *DocPagesDelete404Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) require(field *big.Int) { +func (d *DocPagesDelete404Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetHasAnyWeakAnnotations sets the HasAnyWeakAnnotations field and marks it as non-optional; +// SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) SetHasAnyWeakAnnotations(hasAnyWeakAnnotations bool) { - d.HasAnyWeakAnnotations = hasAnyWeakAnnotations - d.require(docFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations) +func (d *DocPagesDelete404Response) SetName(name DocPagesDelete404ResponseName) { + d.Name = name + d.require(docPagesDelete404ResponseFieldName) } -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown +// SetCode sets the Code field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesDelete404Response) SetCode(code DocPagesDelete404ResponseCode) { + d.Code = code + d.require(docPagesDelete404ResponseFieldCode) +} + +// SetMessage sets the Message field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesDelete404Response) SetMessage(message string) { + d.Message = message + d.require(docPagesDelete404ResponseFieldMessage) +} + +// SetDetails sets the Details field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesDelete404Response) SetDetails(details map[string]any) { + d.Details = details + d.require(docPagesDelete404ResponseFieldDetails) +} + +func (d *DocPagesDelete404Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesDelete404Response var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(value) + *d = DocPagesDelete404Response(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -132294,8 +151148,8 @@ func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnow return nil } -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) MarshalJSON() ([]byte, error) { - type embed DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown +func (d *DocPagesDelete404Response) MarshalJSON() ([]byte, error) { + type embed DocPagesDelete404Response var marshaler = struct { embed }{ @@ -132305,7 +151159,7 @@ func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnow return json.Marshal(explicitMarshaler) } -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) String() string { +func (d *DocPagesDelete404Response) String() string { if d == nil { return "" } @@ -132320,7 +151174,130 @@ func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnow return fmt.Sprintf("%#v", d) } -type DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown struct { +type DocPagesDelete404ResponseCode string + +const ( + DocPagesDelete404ResponseCodeUnknown DocPagesDelete404ResponseCode = "Unknown" + DocPagesDelete404ResponseCodeInvalidArg DocPagesDelete404ResponseCode = "InvalidArg" + DocPagesDelete404ResponseCodeDocNotOpen DocPagesDelete404ResponseCode = "DocNotOpen" + DocPagesDelete404ResponseCodeDocOpenFailed DocPagesDelete404ResponseCode = "DocOpenFailed" + DocPagesDelete404ResponseCodeDocPasswordRequired DocPagesDelete404ResponseCode = "DocPasswordRequired" + DocPagesDelete404ResponseCodeDocPasswordIncorrect DocPagesDelete404ResponseCode = "DocPasswordIncorrect" + DocPagesDelete404ResponseCodeSharePasswordRequired DocPagesDelete404ResponseCode = "SharePasswordRequired" + DocPagesDelete404ResponseCodeAborted DocPagesDelete404ResponseCode = "Aborted" + DocPagesDelete404ResponseCodeNetwork DocPagesDelete404ResponseCode = "Network" + DocPagesDelete404ResponseCodeUnauthenticated DocPagesDelete404ResponseCode = "Unauthenticated" + DocPagesDelete404ResponseCodeForbidden DocPagesDelete404ResponseCode = "Forbidden" + DocPagesDelete404ResponseCodeNotFound DocPagesDelete404ResponseCode = "NotFound" + DocPagesDelete404ResponseCodeWireFormat DocPagesDelete404ResponseCode = "WireFormat" + DocPagesDelete404ResponseCodeRuntimeUnavailable DocPagesDelete404ResponseCode = "RuntimeUnavailable" + DocPagesDelete404ResponseCodeInvalidReference DocPagesDelete404ResponseCode = "InvalidReference" + DocPagesDelete404ResponseCodeWeakAnnotationSessionConflict DocPagesDelete404ResponseCode = "WeakAnnotationSessionConflict" + DocPagesDelete404ResponseCodeLayerVersionConflict DocPagesDelete404ResponseCode = "LayerVersionConflict" + DocPagesDelete404ResponseCodeNotImplemented DocPagesDelete404ResponseCode = "NotImplemented" + DocPagesDelete404ResponseCodeMalformedPdf DocPagesDelete404ResponseCode = "MalformedPdf" + DocPagesDelete404ResponseCodeSigningPending DocPagesDelete404ResponseCode = "SigningPending" + DocPagesDelete404ResponseCodeSigningExpired DocPagesDelete404ResponseCode = "SigningExpired" + DocPagesDelete404ResponseCodeSigningVersionMismatch DocPagesDelete404ResponseCode = "SigningVersionMismatch" + DocPagesDelete404ResponseCodeSignatureRefused DocPagesDelete404ResponseCode = "SignatureRefused" + DocPagesDelete404ResponseCodeProtectedDocument DocPagesDelete404ResponseCode = "ProtectedDocument" + DocPagesDelete404ResponseCodeStaleBase DocPagesDelete404ResponseCode = "StaleBase" +) + +func NewDocPagesDelete404ResponseCodeFromString(s string) (DocPagesDelete404ResponseCode, error) { + switch s { + case "Unknown": + return DocPagesDelete404ResponseCodeUnknown, nil + case "InvalidArg": + return DocPagesDelete404ResponseCodeInvalidArg, nil + case "DocNotOpen": + return DocPagesDelete404ResponseCodeDocNotOpen, nil + case "DocOpenFailed": + return DocPagesDelete404ResponseCodeDocOpenFailed, nil + case "DocPasswordRequired": + return DocPagesDelete404ResponseCodeDocPasswordRequired, nil + case "DocPasswordIncorrect": + return DocPagesDelete404ResponseCodeDocPasswordIncorrect, nil + case "SharePasswordRequired": + return DocPagesDelete404ResponseCodeSharePasswordRequired, nil + case "Aborted": + return DocPagesDelete404ResponseCodeAborted, nil + case "Network": + return DocPagesDelete404ResponseCodeNetwork, nil + case "Unauthenticated": + return DocPagesDelete404ResponseCodeUnauthenticated, nil + case "Forbidden": + return DocPagesDelete404ResponseCodeForbidden, nil + case "NotFound": + return DocPagesDelete404ResponseCodeNotFound, nil + case "WireFormat": + return DocPagesDelete404ResponseCodeWireFormat, nil + case "RuntimeUnavailable": + return DocPagesDelete404ResponseCodeRuntimeUnavailable, nil + case "InvalidReference": + return DocPagesDelete404ResponseCodeInvalidReference, nil + case "WeakAnnotationSessionConflict": + return DocPagesDelete404ResponseCodeWeakAnnotationSessionConflict, nil + case "LayerVersionConflict": + return DocPagesDelete404ResponseCodeLayerVersionConflict, nil + case "NotImplemented": + return DocPagesDelete404ResponseCodeNotImplemented, nil + case "MalformedPdf": + return DocPagesDelete404ResponseCodeMalformedPdf, nil + case "SigningPending": + return DocPagesDelete404ResponseCodeSigningPending, nil + case "SigningExpired": + return DocPagesDelete404ResponseCodeSigningExpired, nil + case "SigningVersionMismatch": + return DocPagesDelete404ResponseCodeSigningVersionMismatch, nil + case "SignatureRefused": + return DocPagesDelete404ResponseCodeSignatureRefused, nil + case "ProtectedDocument": + return DocPagesDelete404ResponseCodeProtectedDocument, nil + case "StaleBase": + return DocPagesDelete404ResponseCodeStaleBase, nil + } + var t DocPagesDelete404ResponseCode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesDelete404ResponseCode) Ptr() *DocPagesDelete404ResponseCode { + return &d +} + +type DocPagesDelete404ResponseName string + +const ( + DocPagesDelete404ResponseNameEngineError DocPagesDelete404ResponseName = "EngineError" +) + +func NewDocPagesDelete404ResponseNameFromString(s string) (DocPagesDelete404ResponseName, error) { + switch s { + case "EngineError": + return DocPagesDelete404ResponseNameEngineError, nil + } + var t DocPagesDelete404ResponseName + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesDelete404ResponseName) Ptr() *DocPagesDelete404ResponseName { + return &d +} + +type DocPagesDeleteRequest = map[string]any + +var ( + docPagesExtract400ResponseFieldName = big.NewInt(1 << 0) + docPagesExtract400ResponseFieldCode = big.NewInt(1 << 1) + docPagesExtract400ResponseFieldMessage = big.NewInt(1 << 2) + docPagesExtract400ResponseFieldDetails = big.NewInt(1 << 3) +) + +type DocPagesExtract400Response struct { + Name DocPagesExtract400ResponseName `json:"name" url:"name"` + Code DocPagesExtract400ResponseCode `json:"code" url:"code"` + Message string `json:"message" url:"message"` + Details map[string]any `json:"details,omitempty" url:"details,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -132329,27 +151306,83 @@ type DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown rawJSON json.RawMessage } -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) GetExtraProperties() map[string]interface{} { +func (d *DocPagesExtract400Response) GetName() DocPagesExtract400ResponseName { + if d == nil { + return "" + } + return d.Name +} + +func (d *DocPagesExtract400Response) GetCode() DocPagesExtract400ResponseCode { + if d == nil { + return "" + } + return d.Code +} + +func (d *DocPagesExtract400Response) GetMessage() string { + if d == nil { + return "" + } + return d.Message +} + +func (d *DocPagesExtract400Response) GetDetails() map[string]any { + if d == nil { + return nil + } + return d.Details +} + +func (d *DocPagesExtract400Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) require(field *big.Int) { +func (d *DocPagesExtract400Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown +// SetName sets the Name field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesExtract400Response) SetName(name DocPagesExtract400ResponseName) { + d.Name = name + d.require(docPagesExtract400ResponseFieldName) +} + +// SetCode sets the Code field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesExtract400Response) SetCode(code DocPagesExtract400ResponseCode) { + d.Code = code + d.require(docPagesExtract400ResponseFieldCode) +} + +// SetMessage sets the Message field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesExtract400Response) SetMessage(message string) { + d.Message = message + d.require(docPagesExtract400ResponseFieldMessage) +} + +// SetDetails sets the Details field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesExtract400Response) SetDetails(details map[string]any) { + d.Details = details + d.require(docPagesExtract400ResponseFieldDetails) +} + +func (d *DocPagesExtract400Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesExtract400Response var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(value) + *d = DocPagesExtract400Response(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -132359,8 +151392,8 @@ func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnkn return nil } -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) MarshalJSON() ([]byte, error) { - type embed DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown +func (d *DocPagesExtract400Response) MarshalJSON() ([]byte, error) { + type embed DocPagesExtract400Response var marshaler = struct { embed }{ @@ -132370,7 +151403,7 @@ func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnkn return json.Marshal(explicitMarshaler) } -func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) String() string { +func (d *DocPagesExtract400Response) String() string { if d == nil { return "" } @@ -132385,22 +151418,128 @@ func (d *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnkn return fmt.Sprintf("%#v", d) } +type DocPagesExtract400ResponseCode string + +const ( + DocPagesExtract400ResponseCodeUnknown DocPagesExtract400ResponseCode = "Unknown" + DocPagesExtract400ResponseCodeInvalidArg DocPagesExtract400ResponseCode = "InvalidArg" + DocPagesExtract400ResponseCodeDocNotOpen DocPagesExtract400ResponseCode = "DocNotOpen" + DocPagesExtract400ResponseCodeDocOpenFailed DocPagesExtract400ResponseCode = "DocOpenFailed" + DocPagesExtract400ResponseCodeDocPasswordRequired DocPagesExtract400ResponseCode = "DocPasswordRequired" + DocPagesExtract400ResponseCodeDocPasswordIncorrect DocPagesExtract400ResponseCode = "DocPasswordIncorrect" + DocPagesExtract400ResponseCodeSharePasswordRequired DocPagesExtract400ResponseCode = "SharePasswordRequired" + DocPagesExtract400ResponseCodeAborted DocPagesExtract400ResponseCode = "Aborted" + DocPagesExtract400ResponseCodeNetwork DocPagesExtract400ResponseCode = "Network" + DocPagesExtract400ResponseCodeUnauthenticated DocPagesExtract400ResponseCode = "Unauthenticated" + DocPagesExtract400ResponseCodeForbidden DocPagesExtract400ResponseCode = "Forbidden" + DocPagesExtract400ResponseCodeNotFound DocPagesExtract400ResponseCode = "NotFound" + DocPagesExtract400ResponseCodeWireFormat DocPagesExtract400ResponseCode = "WireFormat" + DocPagesExtract400ResponseCodeRuntimeUnavailable DocPagesExtract400ResponseCode = "RuntimeUnavailable" + DocPagesExtract400ResponseCodeInvalidReference DocPagesExtract400ResponseCode = "InvalidReference" + DocPagesExtract400ResponseCodeWeakAnnotationSessionConflict DocPagesExtract400ResponseCode = "WeakAnnotationSessionConflict" + DocPagesExtract400ResponseCodeLayerVersionConflict DocPagesExtract400ResponseCode = "LayerVersionConflict" + DocPagesExtract400ResponseCodeNotImplemented DocPagesExtract400ResponseCode = "NotImplemented" + DocPagesExtract400ResponseCodeMalformedPdf DocPagesExtract400ResponseCode = "MalformedPdf" + DocPagesExtract400ResponseCodeSigningPending DocPagesExtract400ResponseCode = "SigningPending" + DocPagesExtract400ResponseCodeSigningExpired DocPagesExtract400ResponseCode = "SigningExpired" + DocPagesExtract400ResponseCodeSigningVersionMismatch DocPagesExtract400ResponseCode = "SigningVersionMismatch" + DocPagesExtract400ResponseCodeSignatureRefused DocPagesExtract400ResponseCode = "SignatureRefused" + DocPagesExtract400ResponseCodeProtectedDocument DocPagesExtract400ResponseCode = "ProtectedDocument" + DocPagesExtract400ResponseCodeStaleBase DocPagesExtract400ResponseCode = "StaleBase" +) + +func NewDocPagesExtract400ResponseCodeFromString(s string) (DocPagesExtract400ResponseCode, error) { + switch s { + case "Unknown": + return DocPagesExtract400ResponseCodeUnknown, nil + case "InvalidArg": + return DocPagesExtract400ResponseCodeInvalidArg, nil + case "DocNotOpen": + return DocPagesExtract400ResponseCodeDocNotOpen, nil + case "DocOpenFailed": + return DocPagesExtract400ResponseCodeDocOpenFailed, nil + case "DocPasswordRequired": + return DocPagesExtract400ResponseCodeDocPasswordRequired, nil + case "DocPasswordIncorrect": + return DocPagesExtract400ResponseCodeDocPasswordIncorrect, nil + case "SharePasswordRequired": + return DocPagesExtract400ResponseCodeSharePasswordRequired, nil + case "Aborted": + return DocPagesExtract400ResponseCodeAborted, nil + case "Network": + return DocPagesExtract400ResponseCodeNetwork, nil + case "Unauthenticated": + return DocPagesExtract400ResponseCodeUnauthenticated, nil + case "Forbidden": + return DocPagesExtract400ResponseCodeForbidden, nil + case "NotFound": + return DocPagesExtract400ResponseCodeNotFound, nil + case "WireFormat": + return DocPagesExtract400ResponseCodeWireFormat, nil + case "RuntimeUnavailable": + return DocPagesExtract400ResponseCodeRuntimeUnavailable, nil + case "InvalidReference": + return DocPagesExtract400ResponseCodeInvalidReference, nil + case "WeakAnnotationSessionConflict": + return DocPagesExtract400ResponseCodeWeakAnnotationSessionConflict, nil + case "LayerVersionConflict": + return DocPagesExtract400ResponseCodeLayerVersionConflict, nil + case "NotImplemented": + return DocPagesExtract400ResponseCodeNotImplemented, nil + case "MalformedPdf": + return DocPagesExtract400ResponseCodeMalformedPdf, nil + case "SigningPending": + return DocPagesExtract400ResponseCodeSigningPending, nil + case "SigningExpired": + return DocPagesExtract400ResponseCodeSigningExpired, nil + case "SigningVersionMismatch": + return DocPagesExtract400ResponseCodeSigningVersionMismatch, nil + case "SignatureRefused": + return DocPagesExtract400ResponseCodeSignatureRefused, nil + case "ProtectedDocument": + return DocPagesExtract400ResponseCodeProtectedDocument, nil + case "StaleBase": + return DocPagesExtract400ResponseCodeStaleBase, nil + } + var t DocPagesExtract400ResponseCode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesExtract400ResponseCode) Ptr() *DocPagesExtract400ResponseCode { + return &d +} + +type DocPagesExtract400ResponseName string + +const ( + DocPagesExtract400ResponseNameEngineError DocPagesExtract400ResponseName = "EngineError" +) + +func NewDocPagesExtract400ResponseNameFromString(s string) (DocPagesExtract400ResponseName, error) { + switch s { + case "EngineError": + return DocPagesExtract400ResponseNameEngineError, nil + } + var t DocPagesExtract400ResponseName + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesExtract400ResponseName) Ptr() *DocPagesExtract400ResponseName { + return &d +} + var ( - docFormsSetValue200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) - docFormsSetValue200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) - docFormsSetValue200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) - docFormsSetValue200ResponseMetaCacheDeltaFieldLayerVersion = big.NewInt(1 << 3) - docFormsSetValue200ResponseMetaCacheDeltaFieldWorking = big.NewInt(1 << 4) - docFormsSetValue200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 5) + docPagesExtract404ResponseFieldName = big.NewInt(1 << 0) + docPagesExtract404ResponseFieldCode = big.NewInt(1 << 1) + docPagesExtract404ResponseFieldMessage = big.NewInt(1 << 2) + docPagesExtract404ResponseFieldDetails = big.NewInt(1 << 3) ) -type DocFormsSetValue200ResponseMetaCacheDelta struct { - PreviousDocVersion int `json:"previousDocVersion" url:"previousDocVersion"` - DocVersion int `json:"docVersion" url:"docVersion"` - AnnotationsVersion *int `json:"annotationsVersion,omitempty" url:"annotationsVersion,omitempty"` - LayerVersion *int `json:"layerVersion,omitempty" url:"layerVersion,omitempty"` - Working *bool `json:"working,omitempty" url:"working,omitempty"` - Pages []*DocFormsSetValue200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` +type DocPagesExtract404Response struct { + Name DocPagesExtract404ResponseName `json:"name" url:"name"` + Code DocPagesExtract404ResponseCode `json:"code" url:"code"` + Message string `json:"message" url:"message"` + Details map[string]any `json:"details,omitempty" url:"details,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -132409,111 +151548,83 @@ type DocFormsSetValue200ResponseMetaCacheDelta struct { rawJSON json.RawMessage } -func (d *DocFormsSetValue200ResponseMetaCacheDelta) GetPreviousDocVersion() int { - if d == nil { - return 0 - } - return d.PreviousDocVersion -} - -func (d *DocFormsSetValue200ResponseMetaCacheDelta) GetDocVersion() int { - if d == nil { - return 0 - } - return d.DocVersion -} - -func (d *DocFormsSetValue200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { +func (d *DocPagesExtract404Response) GetName() DocPagesExtract404ResponseName { if d == nil { - return nil + return "" } - return d.AnnotationsVersion + return d.Name } -func (d *DocFormsSetValue200ResponseMetaCacheDelta) GetLayerVersion() *int { +func (d *DocPagesExtract404Response) GetCode() DocPagesExtract404ResponseCode { if d == nil { - return nil + return "" } - return d.LayerVersion + return d.Code } -func (d *DocFormsSetValue200ResponseMetaCacheDelta) GetWorking() *bool { +func (d *DocPagesExtract404Response) GetMessage() string { if d == nil { - return nil + return "" } - return d.Working + return d.Message } -func (d *DocFormsSetValue200ResponseMetaCacheDelta) GetPages() []*DocFormsSetValue200ResponseMetaCacheDeltaPagesItem { +func (d *DocPagesExtract404Response) GetDetails() map[string]any { if d == nil { return nil } - return d.Pages + return d.Details } -func (d *DocFormsSetValue200ResponseMetaCacheDelta) GetExtraProperties() map[string]interface{} { +func (d *DocPagesExtract404Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsSetValue200ResponseMetaCacheDelta) require(field *big.Int) { +func (d *DocPagesExtract404Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPreviousDocVersion sets the PreviousDocVersion field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsSetValue200ResponseMetaCacheDelta) SetPreviousDocVersion(previousDocVersion int) { - d.PreviousDocVersion = previousDocVersion - d.require(docFormsSetValue200ResponseMetaCacheDeltaFieldPreviousDocVersion) -} - -// SetDocVersion sets the DocVersion field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsSetValue200ResponseMetaCacheDelta) SetDocVersion(docVersion int) { - d.DocVersion = docVersion - d.require(docFormsSetValue200ResponseMetaCacheDeltaFieldDocVersion) -} - -// SetAnnotationsVersion sets the AnnotationsVersion field and marks it as non-optional; +// SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsSetValue200ResponseMetaCacheDelta) SetAnnotationsVersion(annotationsVersion *int) { - d.AnnotationsVersion = annotationsVersion - d.require(docFormsSetValue200ResponseMetaCacheDeltaFieldAnnotationsVersion) +func (d *DocPagesExtract404Response) SetName(name DocPagesExtract404ResponseName) { + d.Name = name + d.require(docPagesExtract404ResponseFieldName) } -// SetLayerVersion sets the LayerVersion field and marks it as non-optional; +// SetCode sets the Code field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsSetValue200ResponseMetaCacheDelta) SetLayerVersion(layerVersion *int) { - d.LayerVersion = layerVersion - d.require(docFormsSetValue200ResponseMetaCacheDeltaFieldLayerVersion) +func (d *DocPagesExtract404Response) SetCode(code DocPagesExtract404ResponseCode) { + d.Code = code + d.require(docPagesExtract404ResponseFieldCode) } -// SetWorking sets the Working field and marks it as non-optional; +// SetMessage sets the Message field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsSetValue200ResponseMetaCacheDelta) SetWorking(working *bool) { - d.Working = working - d.require(docFormsSetValue200ResponseMetaCacheDeltaFieldWorking) +func (d *DocPagesExtract404Response) SetMessage(message string) { + d.Message = message + d.require(docPagesExtract404ResponseFieldMessage) } -// SetPages sets the Pages field and marks it as non-optional; +// SetDetails sets the Details field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsSetValue200ResponseMetaCacheDelta) SetPages(pages []*DocFormsSetValue200ResponseMetaCacheDeltaPagesItem) { - d.Pages = pages - d.require(docFormsSetValue200ResponseMetaCacheDeltaFieldPages) +func (d *DocPagesExtract404Response) SetDetails(details map[string]any) { + d.Details = details + d.require(docPagesExtract404ResponseFieldDetails) } -func (d *DocFormsSetValue200ResponseMetaCacheDelta) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsSetValue200ResponseMetaCacheDelta +func (d *DocPagesExtract404Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesExtract404Response var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsSetValue200ResponseMetaCacheDelta(value) + *d = DocPagesExtract404Response(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -132523,8 +151634,8 @@ func (d *DocFormsSetValue200ResponseMetaCacheDelta) UnmarshalJSON(data []byte) e return nil } -func (d *DocFormsSetValue200ResponseMetaCacheDelta) MarshalJSON() ([]byte, error) { - type embed DocFormsSetValue200ResponseMetaCacheDelta +func (d *DocPagesExtract404Response) MarshalJSON() ([]byte, error) { + type embed DocPagesExtract404Response var marshaler = struct { embed }{ @@ -132534,7 +151645,7 @@ func (d *DocFormsSetValue200ResponseMetaCacheDelta) MarshalJSON() ([]byte, error return json.Marshal(explicitMarshaler) } -func (d *DocFormsSetValue200ResponseMetaCacheDelta) String() string { +func (d *DocPagesExtract404Response) String() string { if d == nil { return "" } @@ -132549,92 +151660,193 @@ func (d *DocFormsSetValue200ResponseMetaCacheDelta) String() string { return fmt.Sprintf("%#v", d) } +type DocPagesExtract404ResponseCode string + +const ( + DocPagesExtract404ResponseCodeUnknown DocPagesExtract404ResponseCode = "Unknown" + DocPagesExtract404ResponseCodeInvalidArg DocPagesExtract404ResponseCode = "InvalidArg" + DocPagesExtract404ResponseCodeDocNotOpen DocPagesExtract404ResponseCode = "DocNotOpen" + DocPagesExtract404ResponseCodeDocOpenFailed DocPagesExtract404ResponseCode = "DocOpenFailed" + DocPagesExtract404ResponseCodeDocPasswordRequired DocPagesExtract404ResponseCode = "DocPasswordRequired" + DocPagesExtract404ResponseCodeDocPasswordIncorrect DocPagesExtract404ResponseCode = "DocPasswordIncorrect" + DocPagesExtract404ResponseCodeSharePasswordRequired DocPagesExtract404ResponseCode = "SharePasswordRequired" + DocPagesExtract404ResponseCodeAborted DocPagesExtract404ResponseCode = "Aborted" + DocPagesExtract404ResponseCodeNetwork DocPagesExtract404ResponseCode = "Network" + DocPagesExtract404ResponseCodeUnauthenticated DocPagesExtract404ResponseCode = "Unauthenticated" + DocPagesExtract404ResponseCodeForbidden DocPagesExtract404ResponseCode = "Forbidden" + DocPagesExtract404ResponseCodeNotFound DocPagesExtract404ResponseCode = "NotFound" + DocPagesExtract404ResponseCodeWireFormat DocPagesExtract404ResponseCode = "WireFormat" + DocPagesExtract404ResponseCodeRuntimeUnavailable DocPagesExtract404ResponseCode = "RuntimeUnavailable" + DocPagesExtract404ResponseCodeInvalidReference DocPagesExtract404ResponseCode = "InvalidReference" + DocPagesExtract404ResponseCodeWeakAnnotationSessionConflict DocPagesExtract404ResponseCode = "WeakAnnotationSessionConflict" + DocPagesExtract404ResponseCodeLayerVersionConflict DocPagesExtract404ResponseCode = "LayerVersionConflict" + DocPagesExtract404ResponseCodeNotImplemented DocPagesExtract404ResponseCode = "NotImplemented" + DocPagesExtract404ResponseCodeMalformedPdf DocPagesExtract404ResponseCode = "MalformedPdf" + DocPagesExtract404ResponseCodeSigningPending DocPagesExtract404ResponseCode = "SigningPending" + DocPagesExtract404ResponseCodeSigningExpired DocPagesExtract404ResponseCode = "SigningExpired" + DocPagesExtract404ResponseCodeSigningVersionMismatch DocPagesExtract404ResponseCode = "SigningVersionMismatch" + DocPagesExtract404ResponseCodeSignatureRefused DocPagesExtract404ResponseCode = "SignatureRefused" + DocPagesExtract404ResponseCodeProtectedDocument DocPagesExtract404ResponseCode = "ProtectedDocument" + DocPagesExtract404ResponseCodeStaleBase DocPagesExtract404ResponseCode = "StaleBase" +) + +func NewDocPagesExtract404ResponseCodeFromString(s string) (DocPagesExtract404ResponseCode, error) { + switch s { + case "Unknown": + return DocPagesExtract404ResponseCodeUnknown, nil + case "InvalidArg": + return DocPagesExtract404ResponseCodeInvalidArg, nil + case "DocNotOpen": + return DocPagesExtract404ResponseCodeDocNotOpen, nil + case "DocOpenFailed": + return DocPagesExtract404ResponseCodeDocOpenFailed, nil + case "DocPasswordRequired": + return DocPagesExtract404ResponseCodeDocPasswordRequired, nil + case "DocPasswordIncorrect": + return DocPagesExtract404ResponseCodeDocPasswordIncorrect, nil + case "SharePasswordRequired": + return DocPagesExtract404ResponseCodeSharePasswordRequired, nil + case "Aborted": + return DocPagesExtract404ResponseCodeAborted, nil + case "Network": + return DocPagesExtract404ResponseCodeNetwork, nil + case "Unauthenticated": + return DocPagesExtract404ResponseCodeUnauthenticated, nil + case "Forbidden": + return DocPagesExtract404ResponseCodeForbidden, nil + case "NotFound": + return DocPagesExtract404ResponseCodeNotFound, nil + case "WireFormat": + return DocPagesExtract404ResponseCodeWireFormat, nil + case "RuntimeUnavailable": + return DocPagesExtract404ResponseCodeRuntimeUnavailable, nil + case "InvalidReference": + return DocPagesExtract404ResponseCodeInvalidReference, nil + case "WeakAnnotationSessionConflict": + return DocPagesExtract404ResponseCodeWeakAnnotationSessionConflict, nil + case "LayerVersionConflict": + return DocPagesExtract404ResponseCodeLayerVersionConflict, nil + case "NotImplemented": + return DocPagesExtract404ResponseCodeNotImplemented, nil + case "MalformedPdf": + return DocPagesExtract404ResponseCodeMalformedPdf, nil + case "SigningPending": + return DocPagesExtract404ResponseCodeSigningPending, nil + case "SigningExpired": + return DocPagesExtract404ResponseCodeSigningExpired, nil + case "SigningVersionMismatch": + return DocPagesExtract404ResponseCodeSigningVersionMismatch, nil + case "SignatureRefused": + return DocPagesExtract404ResponseCodeSignatureRefused, nil + case "ProtectedDocument": + return DocPagesExtract404ResponseCodeProtectedDocument, nil + case "StaleBase": + return DocPagesExtract404ResponseCodeStaleBase, nil + } + var t DocPagesExtract404ResponseCode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesExtract404ResponseCode) Ptr() *DocPagesExtract404ResponseCode { + return &d +} + +type DocPagesExtract404ResponseName string + +const ( + DocPagesExtract404ResponseNameEngineError DocPagesExtract404ResponseName = "EngineError" +) + +func NewDocPagesExtract404ResponseNameFromString(s string) (DocPagesExtract404ResponseName, error) { + switch s { + case "EngineError": + return DocPagesExtract404ResponseNameEngineError, nil + } + var t DocPagesExtract404ResponseName + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesExtract404ResponseName) Ptr() *DocPagesExtract404ResponseName { + return &d +} + +type DocPagesExtractRequest = map[string]any + var ( - docFormsSetValue200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) - docFormsSetValue200ResponseMetaCacheDeltaPagesItemFieldCache = big.NewInt(1 << 1) + docPagesFlatten200ResponseFieldMeta = big.NewInt(1 << 0) ) -type DocFormsSetValue200ResponseMetaCacheDeltaPagesItem struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Cache *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache `json:"cache" url:"cache"` +type DocPagesFlatten200Response struct { + Meta *DocPagesFlatten200ResponseMeta `json:"meta" url:"meta"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` - extraProperties map[string]interface{} - rawJSON json.RawMessage -} + ExtraProperties map[string]interface{} `json:"-" url:"-"` -func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItem) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber + rawJSON json.RawMessage } -func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItem) GetCache() *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache { +func (d *DocPagesFlatten200Response) GetMeta() *DocPagesFlatten200ResponseMeta { if d == nil { return nil } - return d.Cache + return d.Meta } -func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItem) GetExtraProperties() map[string]interface{} { +func (d *DocPagesFlatten200Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.extraProperties + return d.ExtraProperties } -func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItem) require(field *big.Int) { +func (d *DocPagesFlatten200Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItem) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docFormsSetValue200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber) -} - -// SetCache sets the Cache field and marks it as non-optional; +// SetMeta sets the Meta field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItem) SetCache(cache *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache) { - d.Cache = cache - d.require(docFormsSetValue200ResponseMetaCacheDeltaPagesItemFieldCache) +func (d *DocPagesFlatten200Response) SetMeta(meta *DocPagesFlatten200ResponseMeta) { + d.Meta = meta + d.require(docPagesFlatten200ResponseFieldMeta) } -func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsSetValue200ResponseMetaCacheDeltaPagesItem - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { +func (d *DocPagesFlatten200Response) UnmarshalJSON(data []byte) error { + type embed DocPagesFlatten200Response + var unmarshaler = struct { + embed + }{ + embed: embed(*d), + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocFormsSetValue200ResponseMetaCacheDeltaPagesItem(value) + *d = DocPagesFlatten200Response(unmarshaler.embed) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err } - d.extraProperties = extraProperties + d.ExtraProperties = extraProperties d.rawJSON = json.RawMessage(data) return nil } -func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItem) MarshalJSON() ([]byte, error) { - type embed DocFormsSetValue200ResponseMetaCacheDeltaPagesItem +func (d *DocPagesFlatten200Response) MarshalJSON() ([]byte, error) { + type embed DocPagesFlatten200Response var marshaler = struct { embed }{ embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return internal.MarshalJSONWithExtraProperties(explicitMarshaler, d.ExtraProperties) } -func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItem) String() string { +func (d *DocPagesFlatten200Response) String() string { if d == nil { return "" } @@ -132650,13 +151862,13 @@ func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItem) String() string { } var ( - docFormsSetValue200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion = big.NewInt(1 << 0) - docFormsSetValue200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion = big.NewInt(1 << 1) + docPagesFlatten200ResponseMetaFieldAffectedPages = big.NewInt(1 << 0) + docPagesFlatten200ResponseMetaFieldCacheDelta = big.NewInt(1 << 1) ) -type DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache struct { - ContentVersion int `json:"contentVersion" url:"contentVersion"` - AnnotationVersion int `json:"annotationVersion" url:"annotationVersion"` +type DocPagesFlatten200ResponseMeta struct { + AffectedPages []*DocPagesFlatten200ResponseMetaAffectedPagesItem `json:"affectedPages" url:"affectedPages"` + CacheDelta *DocPagesFlatten200ResponseMetaCacheDelta `json:"cacheDelta,omitempty" url:"cacheDelta,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -132665,55 +151877,55 @@ type DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache struct { rawJSON json.RawMessage } -func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache) GetContentVersion() int { +func (d *DocPagesFlatten200ResponseMeta) GetAffectedPages() []*DocPagesFlatten200ResponseMetaAffectedPagesItem { if d == nil { - return 0 + return nil } - return d.ContentVersion + return d.AffectedPages } -func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache) GetAnnotationVersion() int { +func (d *DocPagesFlatten200ResponseMeta) GetCacheDelta() *DocPagesFlatten200ResponseMetaCacheDelta { if d == nil { - return 0 + return nil } - return d.AnnotationVersion + return d.CacheDelta } -func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache) GetExtraProperties() map[string]interface{} { +func (d *DocPagesFlatten200ResponseMeta) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache) require(field *big.Int) { +func (d *DocPagesFlatten200ResponseMeta) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetContentVersion sets the ContentVersion field and marks it as non-optional; +// SetAffectedPages sets the AffectedPages field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache) SetContentVersion(contentVersion int) { - d.ContentVersion = contentVersion - d.require(docFormsSetValue200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion) +func (d *DocPagesFlatten200ResponseMeta) SetAffectedPages(affectedPages []*DocPagesFlatten200ResponseMetaAffectedPagesItem) { + d.AffectedPages = affectedPages + d.require(docPagesFlatten200ResponseMetaFieldAffectedPages) } -// SetAnnotationVersion sets the AnnotationVersion field and marks it as non-optional; +// SetCacheDelta sets the CacheDelta field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache) SetAnnotationVersion(annotationVersion int) { - d.AnnotationVersion = annotationVersion - d.require(docFormsSetValue200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion) +func (d *DocPagesFlatten200ResponseMeta) SetCacheDelta(cacheDelta *DocPagesFlatten200ResponseMetaCacheDelta) { + d.CacheDelta = cacheDelta + d.require(docPagesFlatten200ResponseMetaFieldCacheDelta) } -func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache +func (d *DocPagesFlatten200ResponseMeta) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesFlatten200ResponseMeta var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache(value) + *d = DocPagesFlatten200ResponseMeta(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -132723,8 +151935,8 @@ func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJSON( return nil } -func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON() ([]byte, error) { - type embed DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache +func (d *DocPagesFlatten200ResponseMeta) MarshalJSON() ([]byte, error) { + type embed DocPagesFlatten200ResponseMeta var marshaler = struct { embed }{ @@ -132734,7 +151946,7 @@ func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON() return json.Marshal(explicitMarshaler) } -func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache) String() string { +func (d *DocPagesFlatten200ResponseMeta) String() string { if d == nil { return "" } @@ -132750,17 +151962,15 @@ func (d *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache) String() strin } var ( - docFormsSetValue400ResponseFieldName = big.NewInt(1 << 0) - docFormsSetValue400ResponseFieldCode = big.NewInt(1 << 1) - docFormsSetValue400ResponseFieldMessage = big.NewInt(1 << 2) - docFormsSetValue400ResponseFieldDetails = big.NewInt(1 << 3) + docPagesFlatten200ResponseMetaAffectedPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) + docPagesFlatten200ResponseMetaAffectedPagesItemFieldRevision = big.NewInt(1 << 1) + docPagesFlatten200ResponseMetaAffectedPagesItemFieldWeakAnnotationState = big.NewInt(1 << 2) ) -type DocFormsSetValue400Response struct { - Name DocFormsSetValue400ResponseName `json:"name" url:"name"` - Code DocFormsSetValue400ResponseCode `json:"code" url:"code"` - Message string `json:"message" url:"message"` - Details map[string]any `json:"details,omitempty" url:"details,omitempty"` +type DocPagesFlatten200ResponseMetaAffectedPagesItem struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Revision *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision `json:"revision" url:"revision"` + WeakAnnotationState *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState `json:"weakAnnotationState" url:"weakAnnotationState"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -132769,83 +151979,69 @@ type DocFormsSetValue400Response struct { rawJSON json.RawMessage } -func (d *DocFormsSetValue400Response) GetName() DocFormsSetValue400ResponseName { - if d == nil { - return "" - } - return d.Name -} - -func (d *DocFormsSetValue400Response) GetCode() DocFormsSetValue400ResponseCode { +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItem) GetPageObjectNumber() int { if d == nil { - return "" + return 0 } - return d.Code + return d.PageObjectNumber } -func (d *DocFormsSetValue400Response) GetMessage() string { +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItem) GetRevision() *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision { if d == nil { - return "" + return nil } - return d.Message + return d.Revision } -func (d *DocFormsSetValue400Response) GetDetails() map[string]any { +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItem) GetWeakAnnotationState() *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState { if d == nil { return nil } - return d.Details + return d.WeakAnnotationState } -func (d *DocFormsSetValue400Response) GetExtraProperties() map[string]interface{} { +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsSetValue400Response) require(field *big.Int) { +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetName sets the Name field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsSetValue400Response) SetName(name DocFormsSetValue400ResponseName) { - d.Name = name - d.require(docFormsSetValue400ResponseFieldName) -} - -// SetCode sets the Code field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsSetValue400Response) SetCode(code DocFormsSetValue400ResponseCode) { - d.Code = code - d.require(docFormsSetValue400ResponseFieldCode) +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItem) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docPagesFlatten200ResponseMetaAffectedPagesItemFieldPageObjectNumber) } -// SetMessage sets the Message field and marks it as non-optional; +// SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsSetValue400Response) SetMessage(message string) { - d.Message = message - d.require(docFormsSetValue400ResponseFieldMessage) +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItem) SetRevision(revision *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision) { + d.Revision = revision + d.require(docPagesFlatten200ResponseMetaAffectedPagesItemFieldRevision) } -// SetDetails sets the Details field and marks it as non-optional; +// SetWeakAnnotationState sets the WeakAnnotationState field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsSetValue400Response) SetDetails(details map[string]any) { - d.Details = details - d.require(docFormsSetValue400ResponseFieldDetails) +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItem) SetWeakAnnotationState(weakAnnotationState *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState) { + d.WeakAnnotationState = weakAnnotationState + d.require(docPagesFlatten200ResponseMetaAffectedPagesItemFieldWeakAnnotationState) } -func (d *DocFormsSetValue400Response) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsSetValue400Response +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesFlatten200ResponseMetaAffectedPagesItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsSetValue400Response(value) + *d = DocPagesFlatten200ResponseMetaAffectedPagesItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -132855,8 +152051,8 @@ func (d *DocFormsSetValue400Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocFormsSetValue400Response) MarshalJSON() ([]byte, error) { - type embed DocFormsSetValue400Response +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItem) MarshalJSON() ([]byte, error) { + type embed DocPagesFlatten200ResponseMetaAffectedPagesItem var marshaler = struct { embed }{ @@ -132866,7 +152062,7 @@ func (d *DocFormsSetValue400Response) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocFormsSetValue400Response) String() string { +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItem) String() string { if d == nil { return "" } @@ -132881,213 +152077,87 @@ func (d *DocFormsSetValue400Response) String() string { return fmt.Sprintf("%#v", d) } -type DocFormsSetValue400ResponseCode string - -const ( - DocFormsSetValue400ResponseCodeUnknown DocFormsSetValue400ResponseCode = "Unknown" - DocFormsSetValue400ResponseCodeInvalidArg DocFormsSetValue400ResponseCode = "InvalidArg" - DocFormsSetValue400ResponseCodeDocNotOpen DocFormsSetValue400ResponseCode = "DocNotOpen" - DocFormsSetValue400ResponseCodeDocOpenFailed DocFormsSetValue400ResponseCode = "DocOpenFailed" - DocFormsSetValue400ResponseCodeDocPasswordRequired DocFormsSetValue400ResponseCode = "DocPasswordRequired" - DocFormsSetValue400ResponseCodeDocPasswordIncorrect DocFormsSetValue400ResponseCode = "DocPasswordIncorrect" - DocFormsSetValue400ResponseCodeSharePasswordRequired DocFormsSetValue400ResponseCode = "SharePasswordRequired" - DocFormsSetValue400ResponseCodeAborted DocFormsSetValue400ResponseCode = "Aborted" - DocFormsSetValue400ResponseCodeNetwork DocFormsSetValue400ResponseCode = "Network" - DocFormsSetValue400ResponseCodeUnauthenticated DocFormsSetValue400ResponseCode = "Unauthenticated" - DocFormsSetValue400ResponseCodeForbidden DocFormsSetValue400ResponseCode = "Forbidden" - DocFormsSetValue400ResponseCodeNotFound DocFormsSetValue400ResponseCode = "NotFound" - DocFormsSetValue400ResponseCodeWireFormat DocFormsSetValue400ResponseCode = "WireFormat" - DocFormsSetValue400ResponseCodeRuntimeUnavailable DocFormsSetValue400ResponseCode = "RuntimeUnavailable" - DocFormsSetValue400ResponseCodeInvalidReference DocFormsSetValue400ResponseCode = "InvalidReference" - DocFormsSetValue400ResponseCodeWeakAnnotationSessionConflict DocFormsSetValue400ResponseCode = "WeakAnnotationSessionConflict" - DocFormsSetValue400ResponseCodeLayerVersionConflict DocFormsSetValue400ResponseCode = "LayerVersionConflict" - DocFormsSetValue400ResponseCodeNotImplemented DocFormsSetValue400ResponseCode = "NotImplemented" - DocFormsSetValue400ResponseCodeMalformedPdf DocFormsSetValue400ResponseCode = "MalformedPdf" - DocFormsSetValue400ResponseCodeSigningPending DocFormsSetValue400ResponseCode = "SigningPending" - DocFormsSetValue400ResponseCodeSigningExpired DocFormsSetValue400ResponseCode = "SigningExpired" - DocFormsSetValue400ResponseCodeSigningVersionMismatch DocFormsSetValue400ResponseCode = "SigningVersionMismatch" - DocFormsSetValue400ResponseCodeSignatureRefused DocFormsSetValue400ResponseCode = "SignatureRefused" - DocFormsSetValue400ResponseCodeProtectedDocument DocFormsSetValue400ResponseCode = "ProtectedDocument" - DocFormsSetValue400ResponseCodeStaleBase DocFormsSetValue400ResponseCode = "StaleBase" -) - -func NewDocFormsSetValue400ResponseCodeFromString(s string) (DocFormsSetValue400ResponseCode, error) { - switch s { - case "Unknown": - return DocFormsSetValue400ResponseCodeUnknown, nil - case "InvalidArg": - return DocFormsSetValue400ResponseCodeInvalidArg, nil - case "DocNotOpen": - return DocFormsSetValue400ResponseCodeDocNotOpen, nil - case "DocOpenFailed": - return DocFormsSetValue400ResponseCodeDocOpenFailed, nil - case "DocPasswordRequired": - return DocFormsSetValue400ResponseCodeDocPasswordRequired, nil - case "DocPasswordIncorrect": - return DocFormsSetValue400ResponseCodeDocPasswordIncorrect, nil - case "SharePasswordRequired": - return DocFormsSetValue400ResponseCodeSharePasswordRequired, nil - case "Aborted": - return DocFormsSetValue400ResponseCodeAborted, nil - case "Network": - return DocFormsSetValue400ResponseCodeNetwork, nil - case "Unauthenticated": - return DocFormsSetValue400ResponseCodeUnauthenticated, nil - case "Forbidden": - return DocFormsSetValue400ResponseCodeForbidden, nil - case "NotFound": - return DocFormsSetValue400ResponseCodeNotFound, nil - case "WireFormat": - return DocFormsSetValue400ResponseCodeWireFormat, nil - case "RuntimeUnavailable": - return DocFormsSetValue400ResponseCodeRuntimeUnavailable, nil - case "InvalidReference": - return DocFormsSetValue400ResponseCodeInvalidReference, nil - case "WeakAnnotationSessionConflict": - return DocFormsSetValue400ResponseCodeWeakAnnotationSessionConflict, nil - case "LayerVersionConflict": - return DocFormsSetValue400ResponseCodeLayerVersionConflict, nil - case "NotImplemented": - return DocFormsSetValue400ResponseCodeNotImplemented, nil - case "MalformedPdf": - return DocFormsSetValue400ResponseCodeMalformedPdf, nil - case "SigningPending": - return DocFormsSetValue400ResponseCodeSigningPending, nil - case "SigningExpired": - return DocFormsSetValue400ResponseCodeSigningExpired, nil - case "SigningVersionMismatch": - return DocFormsSetValue400ResponseCodeSigningVersionMismatch, nil - case "SignatureRefused": - return DocFormsSetValue400ResponseCodeSignatureRefused, nil - case "ProtectedDocument": - return DocFormsSetValue400ResponseCodeProtectedDocument, nil - case "StaleBase": - return DocFormsSetValue400ResponseCodeStaleBase, nil - } - var t DocFormsSetValue400ResponseCode - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocFormsSetValue400ResponseCode) Ptr() *DocFormsSetValue400ResponseCode { - return &d -} - -type DocFormsSetValue400ResponseName string - -const ( - DocFormsSetValue400ResponseNameEngineError DocFormsSetValue400ResponseName = "EngineError" -) - -func NewDocFormsSetValue400ResponseNameFromString(s string) (DocFormsSetValue400ResponseName, error) { - switch s { - case "EngineError": - return DocFormsSetValue400ResponseNameEngineError, nil - } - var t DocFormsSetValue400ResponseName - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocFormsSetValue400ResponseName) Ptr() *DocFormsSetValue400ResponseName { - return &d -} - var ( - docFormsSetValue404ResponseFieldName = big.NewInt(1 << 0) - docFormsSetValue404ResponseFieldCode = big.NewInt(1 << 1) - docFormsSetValue404ResponseFieldMessage = big.NewInt(1 << 2) - docFormsSetValue404ResponseFieldDetails = big.NewInt(1 << 3) + docPagesFlatten200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID = big.NewInt(1 << 0) + docPagesFlatten200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docPagesFlatten200ResponseMetaAffectedPagesItemRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocFormsSetValue404Response struct { - Name DocFormsSetValue404ResponseName `json:"name" url:"name"` - Code DocFormsSetValue404ResponseCode `json:"code" url:"code"` - Message string `json:"message" url:"message"` - Details map[string]any `json:"details,omitempty" url:"details,omitempty"` +type DocPagesFlatten200ResponseMetaAffectedPagesItemRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` extraProperties map[string]interface{} - rawJSON json.RawMessage -} - -func (d *DocFormsSetValue404Response) GetName() DocFormsSetValue404ResponseName { - if d == nil { - return "" - } - return d.Name + rawJSON json.RawMessage } -func (d *DocFormsSetValue404Response) GetCode() DocFormsSetValue404ResponseCode { +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision) GetDocSessionID() string { if d == nil { return "" } - return d.Code + return d.DocSessionID } -func (d *DocFormsSetValue404Response) GetMessage() string { +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision) GetPageObjectNumber() int { if d == nil { - return "" + return 0 } - return d.Message + return d.PageObjectNumber } -func (d *DocFormsSetValue404Response) GetDetails() map[string]any { +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision) GetGeneration() int { if d == nil { - return nil + return 0 } - return d.Details + return d.Generation } -func (d *DocFormsSetValue404Response) GetExtraProperties() map[string]interface{} { +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocFormsSetValue404Response) require(field *big.Int) { +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetName sets the Name field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsSetValue404Response) SetName(name DocFormsSetValue404ResponseName) { - d.Name = name - d.require(docFormsSetValue404ResponseFieldName) -} - -// SetCode sets the Code field and marks it as non-optional; +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsSetValue404Response) SetCode(code DocFormsSetValue404ResponseCode) { - d.Code = code - d.require(docFormsSetValue404ResponseFieldCode) +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docPagesFlatten200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID) } -// SetMessage sets the Message field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsSetValue404Response) SetMessage(message string) { - d.Message = message - d.require(docFormsSetValue404ResponseFieldMessage) +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docPagesFlatten200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber) } -// SetDetails sets the Details field and marks it as non-optional; +// SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocFormsSetValue404Response) SetDetails(details map[string]any) { - d.Details = details - d.require(docFormsSetValue404ResponseFieldDetails) +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docPagesFlatten200ResponseMetaAffectedPagesItemRevisionFieldGeneration) } -func (d *DocFormsSetValue404Response) UnmarshalJSON(data []byte) error { - type unmarshaler DocFormsSetValue404Response +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesFlatten200ResponseMetaAffectedPagesItemRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocFormsSetValue404Response(value) + *d = DocPagesFlatten200ResponseMetaAffectedPagesItemRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -133097,8 +152167,8 @@ func (d *DocFormsSetValue404Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocFormsSetValue404Response) MarshalJSON() ([]byte, error) { - type embed DocFormsSetValue404Response +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision) MarshalJSON() ([]byte, error) { + type embed DocPagesFlatten200ResponseMetaAffectedPagesItemRevision var marshaler = struct { embed }{ @@ -133108,7 +152178,7 @@ func (d *DocFormsSetValue404Response) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocFormsSetValue404Response) String() string { +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision) String() string { if d == nil { return "" } @@ -133123,130 +152193,138 @@ func (d *DocFormsSetValue404Response) String() string { return fmt.Sprintf("%#v", d) } -type DocFormsSetValue404ResponseCode string +type DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState struct { + Kind string + Unknown *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + Known *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown -const ( - DocFormsSetValue404ResponseCodeUnknown DocFormsSetValue404ResponseCode = "Unknown" - DocFormsSetValue404ResponseCodeInvalidArg DocFormsSetValue404ResponseCode = "InvalidArg" - DocFormsSetValue404ResponseCodeDocNotOpen DocFormsSetValue404ResponseCode = "DocNotOpen" - DocFormsSetValue404ResponseCodeDocOpenFailed DocFormsSetValue404ResponseCode = "DocOpenFailed" - DocFormsSetValue404ResponseCodeDocPasswordRequired DocFormsSetValue404ResponseCode = "DocPasswordRequired" - DocFormsSetValue404ResponseCodeDocPasswordIncorrect DocFormsSetValue404ResponseCode = "DocPasswordIncorrect" - DocFormsSetValue404ResponseCodeSharePasswordRequired DocFormsSetValue404ResponseCode = "SharePasswordRequired" - DocFormsSetValue404ResponseCodeAborted DocFormsSetValue404ResponseCode = "Aborted" - DocFormsSetValue404ResponseCodeNetwork DocFormsSetValue404ResponseCode = "Network" - DocFormsSetValue404ResponseCodeUnauthenticated DocFormsSetValue404ResponseCode = "Unauthenticated" - DocFormsSetValue404ResponseCodeForbidden DocFormsSetValue404ResponseCode = "Forbidden" - DocFormsSetValue404ResponseCodeNotFound DocFormsSetValue404ResponseCode = "NotFound" - DocFormsSetValue404ResponseCodeWireFormat DocFormsSetValue404ResponseCode = "WireFormat" - DocFormsSetValue404ResponseCodeRuntimeUnavailable DocFormsSetValue404ResponseCode = "RuntimeUnavailable" - DocFormsSetValue404ResponseCodeInvalidReference DocFormsSetValue404ResponseCode = "InvalidReference" - DocFormsSetValue404ResponseCodeWeakAnnotationSessionConflict DocFormsSetValue404ResponseCode = "WeakAnnotationSessionConflict" - DocFormsSetValue404ResponseCodeLayerVersionConflict DocFormsSetValue404ResponseCode = "LayerVersionConflict" - DocFormsSetValue404ResponseCodeNotImplemented DocFormsSetValue404ResponseCode = "NotImplemented" - DocFormsSetValue404ResponseCodeMalformedPdf DocFormsSetValue404ResponseCode = "MalformedPdf" - DocFormsSetValue404ResponseCodeSigningPending DocFormsSetValue404ResponseCode = "SigningPending" - DocFormsSetValue404ResponseCodeSigningExpired DocFormsSetValue404ResponseCode = "SigningExpired" - DocFormsSetValue404ResponseCodeSigningVersionMismatch DocFormsSetValue404ResponseCode = "SigningVersionMismatch" - DocFormsSetValue404ResponseCodeSignatureRefused DocFormsSetValue404ResponseCode = "SignatureRefused" - DocFormsSetValue404ResponseCodeProtectedDocument DocFormsSetValue404ResponseCode = "ProtectedDocument" - DocFormsSetValue404ResponseCodeStaleBase DocFormsSetValue404ResponseCode = "StaleBase" -) + rawJSON json.RawMessage +} -func NewDocFormsSetValue404ResponseCodeFromString(s string) (DocFormsSetValue404ResponseCode, error) { - switch s { - case "Unknown": - return DocFormsSetValue404ResponseCodeUnknown, nil - case "InvalidArg": - return DocFormsSetValue404ResponseCodeInvalidArg, nil - case "DocNotOpen": - return DocFormsSetValue404ResponseCodeDocNotOpen, nil - case "DocOpenFailed": - return DocFormsSetValue404ResponseCodeDocOpenFailed, nil - case "DocPasswordRequired": - return DocFormsSetValue404ResponseCodeDocPasswordRequired, nil - case "DocPasswordIncorrect": - return DocFormsSetValue404ResponseCodeDocPasswordIncorrect, nil - case "SharePasswordRequired": - return DocFormsSetValue404ResponseCodeSharePasswordRequired, nil - case "Aborted": - return DocFormsSetValue404ResponseCodeAborted, nil - case "Network": - return DocFormsSetValue404ResponseCodeNetwork, nil - case "Unauthenticated": - return DocFormsSetValue404ResponseCodeUnauthenticated, nil - case "Forbidden": - return DocFormsSetValue404ResponseCodeForbidden, nil - case "NotFound": - return DocFormsSetValue404ResponseCodeNotFound, nil - case "WireFormat": - return DocFormsSetValue404ResponseCodeWireFormat, nil - case "RuntimeUnavailable": - return DocFormsSetValue404ResponseCodeRuntimeUnavailable, nil - case "InvalidReference": - return DocFormsSetValue404ResponseCodeInvalidReference, nil - case "WeakAnnotationSessionConflict": - return DocFormsSetValue404ResponseCodeWeakAnnotationSessionConflict, nil - case "LayerVersionConflict": - return DocFormsSetValue404ResponseCodeLayerVersionConflict, nil - case "NotImplemented": - return DocFormsSetValue404ResponseCodeNotImplemented, nil - case "MalformedPdf": - return DocFormsSetValue404ResponseCodeMalformedPdf, nil - case "SigningPending": - return DocFormsSetValue404ResponseCodeSigningPending, nil - case "SigningExpired": - return DocFormsSetValue404ResponseCodeSigningExpired, nil - case "SigningVersionMismatch": - return DocFormsSetValue404ResponseCodeSigningVersionMismatch, nil - case "SignatureRefused": - return DocFormsSetValue404ResponseCodeSignatureRefused, nil - case "ProtectedDocument": - return DocFormsSetValue404ResponseCodeProtectedDocument, nil - case "StaleBase": - return DocFormsSetValue404ResponseCodeStaleBase, nil +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKind() string { + if d == nil { + return "" } - var t DocFormsSetValue404ResponseCode - return "", fmt.Errorf("%s is not a valid %T", s, t) + return d.Kind } -func (d DocFormsSetValue404ResponseCode) Ptr() *DocFormsSetValue404ResponseCode { - return &d +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState) GetUnknown() *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown { + if d == nil { + return nil + } + return d.Unknown } -type DocFormsSetValue404ResponseName string +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKnown() *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown { + if d == nil { + return nil + } + return d.Known +} -const ( - DocFormsSetValue404ResponseNameEngineError DocFormsSetValue404ResponseName = "EngineError" -) +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "unknown": + value := new(DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Unknown = value + case "known": + value := new(DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Known = value + } + d.rawJSON = json.RawMessage(data) + return nil +} -func NewDocFormsSetValue404ResponseNameFromString(s string) (DocFormsSetValue404ResponseName, error) { - switch s { - case "EngineError": - return DocFormsSetValue404ResponseNameEngineError, nil +func (d DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err } - var t DocFormsSetValue404ResponseName - return "", fmt.Errorf("%s is not a valid %T", s, t) + if d.Unknown != nil { + return internal.MarshalJSONWithExtraProperty(d.Unknown, "kind", "unknown") + } + if d.Known != nil { + return internal.MarshalJSONWithExtraProperty(d.Known, "kind", "known") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d DocFormsSetValue404ResponseName) Ptr() *DocFormsSetValue404ResponseName { - return &d +type DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor interface { + VisitUnknown(*DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) error + VisitKnown(*DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) error } -type DocFormsSetValueRequest = map[string]any +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState) Accept(visitor DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor) error { + if d.Unknown != nil { + return visitor.VisitUnknown(d.Unknown) + } + if d.Known != nil { + return visitor.VisitKnown(d.Known) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.Unknown != nil { + fields = append(fields, "unknown") + } + if d.Known != nil { + fields = append(fields, "known") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil +} var ( - docHead404ResponseFieldName = big.NewInt(1 << 0) - docHead404ResponseFieldCode = big.NewInt(1 << 1) - docHead404ResponseFieldMessage = big.NewInt(1 << 2) - docHead404ResponseFieldDetails = big.NewInt(1 << 3) + docPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations = big.NewInt(1 << 0) ) -type DocHead404Response struct { - Name DocHead404ResponseName `json:"name" url:"name"` - Code DocHead404ResponseCode `json:"code" url:"code"` - Message string `json:"message" url:"message"` - Details map[string]any `json:"details,omitempty" url:"details,omitempty"` +type DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown struct { + HasAnyWeakAnnotations bool `json:"hasAnyWeakAnnotations" url:"hasAnyWeakAnnotations"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -133255,83 +152333,41 @@ type DocHead404Response struct { rawJSON json.RawMessage } -func (d *DocHead404Response) GetName() DocHead404ResponseName { - if d == nil { - return "" - } - return d.Name -} - -func (d *DocHead404Response) GetCode() DocHead404ResponseCode { - if d == nil { - return "" - } - return d.Code -} - -func (d *DocHead404Response) GetMessage() string { - if d == nil { - return "" - } - return d.Message -} - -func (d *DocHead404Response) GetDetails() map[string]any { +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetHasAnyWeakAnnotations() bool { if d == nil { - return nil + return false } - return d.Details + return d.HasAnyWeakAnnotations } -func (d *DocHead404Response) GetExtraProperties() map[string]interface{} { +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocHead404Response) require(field *big.Int) { +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetName sets the Name field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocHead404Response) SetName(name DocHead404ResponseName) { - d.Name = name - d.require(docHead404ResponseFieldName) -} - -// SetCode sets the Code field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocHead404Response) SetCode(code DocHead404ResponseCode) { - d.Code = code - d.require(docHead404ResponseFieldCode) -} - -// SetMessage sets the Message field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocHead404Response) SetMessage(message string) { - d.Message = message - d.require(docHead404ResponseFieldMessage) -} - -// SetDetails sets the Details field and marks it as non-optional; +// SetHasAnyWeakAnnotations sets the HasAnyWeakAnnotations field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocHead404Response) SetDetails(details map[string]any) { - d.Details = details - d.require(docHead404ResponseFieldDetails) +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) SetHasAnyWeakAnnotations(hasAnyWeakAnnotations bool) { + d.HasAnyWeakAnnotations = hasAnyWeakAnnotations + d.require(docPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations) } -func (d *DocHead404Response) UnmarshalJSON(data []byte) error { - type unmarshaler DocHead404Response +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocHead404Response(value) + *d = DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -133341,8 +152377,8 @@ func (d *DocHead404Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocHead404Response) MarshalJSON() ([]byte, error) { - type embed DocHead404Response +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) MarshalJSON() ([]byte, error) { + type embed DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown var marshaler = struct { embed }{ @@ -133352,7 +152388,7 @@ func (d *DocHead404Response) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocHead404Response) String() string { +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) String() string { if d == nil { return "" } @@ -133367,128 +152403,87 @@ func (d *DocHead404Response) String() string { return fmt.Sprintf("%#v", d) } -type DocHead404ResponseCode string +type DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown struct { -const ( - DocHead404ResponseCodeUnknown DocHead404ResponseCode = "Unknown" - DocHead404ResponseCodeInvalidArg DocHead404ResponseCode = "InvalidArg" - DocHead404ResponseCodeDocNotOpen DocHead404ResponseCode = "DocNotOpen" - DocHead404ResponseCodeDocOpenFailed DocHead404ResponseCode = "DocOpenFailed" - DocHead404ResponseCodeDocPasswordRequired DocHead404ResponseCode = "DocPasswordRequired" - DocHead404ResponseCodeDocPasswordIncorrect DocHead404ResponseCode = "DocPasswordIncorrect" - DocHead404ResponseCodeSharePasswordRequired DocHead404ResponseCode = "SharePasswordRequired" - DocHead404ResponseCodeAborted DocHead404ResponseCode = "Aborted" - DocHead404ResponseCodeNetwork DocHead404ResponseCode = "Network" - DocHead404ResponseCodeUnauthenticated DocHead404ResponseCode = "Unauthenticated" - DocHead404ResponseCodeForbidden DocHead404ResponseCode = "Forbidden" - DocHead404ResponseCodeNotFound DocHead404ResponseCode = "NotFound" - DocHead404ResponseCodeWireFormat DocHead404ResponseCode = "WireFormat" - DocHead404ResponseCodeRuntimeUnavailable DocHead404ResponseCode = "RuntimeUnavailable" - DocHead404ResponseCodeInvalidReference DocHead404ResponseCode = "InvalidReference" - DocHead404ResponseCodeWeakAnnotationSessionConflict DocHead404ResponseCode = "WeakAnnotationSessionConflict" - DocHead404ResponseCodeLayerVersionConflict DocHead404ResponseCode = "LayerVersionConflict" - DocHead404ResponseCodeNotImplemented DocHead404ResponseCode = "NotImplemented" - DocHead404ResponseCodeMalformedPdf DocHead404ResponseCode = "MalformedPdf" - DocHead404ResponseCodeSigningPending DocHead404ResponseCode = "SigningPending" - DocHead404ResponseCodeSigningExpired DocHead404ResponseCode = "SigningExpired" - DocHead404ResponseCodeSigningVersionMismatch DocHead404ResponseCode = "SigningVersionMismatch" - DocHead404ResponseCodeSignatureRefused DocHead404ResponseCode = "SignatureRefused" - DocHead404ResponseCodeProtectedDocument DocHead404ResponseCode = "ProtectedDocument" - DocHead404ResponseCodeStaleBase DocHead404ResponseCode = "StaleBase" -) + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` -func NewDocHead404ResponseCodeFromString(s string) (DocHead404ResponseCode, error) { - switch s { - case "Unknown": - return DocHead404ResponseCodeUnknown, nil - case "InvalidArg": - return DocHead404ResponseCodeInvalidArg, nil - case "DocNotOpen": - return DocHead404ResponseCodeDocNotOpen, nil - case "DocOpenFailed": - return DocHead404ResponseCodeDocOpenFailed, nil - case "DocPasswordRequired": - return DocHead404ResponseCodeDocPasswordRequired, nil - case "DocPasswordIncorrect": - return DocHead404ResponseCodeDocPasswordIncorrect, nil - case "SharePasswordRequired": - return DocHead404ResponseCodeSharePasswordRequired, nil - case "Aborted": - return DocHead404ResponseCodeAborted, nil - case "Network": - return DocHead404ResponseCodeNetwork, nil - case "Unauthenticated": - return DocHead404ResponseCodeUnauthenticated, nil - case "Forbidden": - return DocHead404ResponseCodeForbidden, nil - case "NotFound": - return DocHead404ResponseCodeNotFound, nil - case "WireFormat": - return DocHead404ResponseCodeWireFormat, nil - case "RuntimeUnavailable": - return DocHead404ResponseCodeRuntimeUnavailable, nil - case "InvalidReference": - return DocHead404ResponseCodeInvalidReference, nil - case "WeakAnnotationSessionConflict": - return DocHead404ResponseCodeWeakAnnotationSessionConflict, nil - case "LayerVersionConflict": - return DocHead404ResponseCodeLayerVersionConflict, nil - case "NotImplemented": - return DocHead404ResponseCodeNotImplemented, nil - case "MalformedPdf": - return DocHead404ResponseCodeMalformedPdf, nil - case "SigningPending": - return DocHead404ResponseCodeSigningPending, nil - case "SigningExpired": - return DocHead404ResponseCodeSigningExpired, nil - case "SigningVersionMismatch": - return DocHead404ResponseCodeSigningVersionMismatch, nil - case "SignatureRefused": - return DocHead404ResponseCodeSignatureRefused, nil - case "ProtectedDocument": - return DocHead404ResponseCodeProtectedDocument, nil - case "StaleBase": - return DocHead404ResponseCodeStaleBase, nil - } - var t DocHead404ResponseCode - return "", fmt.Errorf("%s is not a valid %T", s, t) + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d DocHead404ResponseCode) Ptr() *DocHead404ResponseCode { - return &d +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties } -type DocHead404ResponseName string +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} -const ( - DocHead404ResponseNameEngineError DocHead404ResponseName = "EngineError" -) +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} -func NewDocHead404ResponseNameFromString(s string) (DocHead404ResponseName, error) { - switch s { - case "EngineError": - return DocHead404ResponseNameEngineError, nil +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) MarshalJSON() ([]byte, error) { + type embed DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + var marshaler = struct { + embed + }{ + embed: embed(*d), } - var t DocHead404ResponseName - return "", fmt.Errorf("%s is not a valid %T", s, t) + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d DocHead404ResponseName) Ptr() *DocHead404ResponseName { - return &d +func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } var ( - docManifest404ResponseFieldName = big.NewInt(1 << 0) - docManifest404ResponseFieldCode = big.NewInt(1 << 1) - docManifest404ResponseFieldMessage = big.NewInt(1 << 2) - docManifest404ResponseFieldDetails = big.NewInt(1 << 3) + docPagesFlatten200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) + docPagesFlatten200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) + docPagesFlatten200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) + docPagesFlatten200ResponseMetaCacheDeltaFieldLayerVersion = big.NewInt(1 << 3) + docPagesFlatten200ResponseMetaCacheDeltaFieldWorking = big.NewInt(1 << 4) + docPagesFlatten200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 5) ) -type DocManifest404Response struct { - Name DocManifest404ResponseName `json:"name" url:"name"` - Code DocManifest404ResponseCode `json:"code" url:"code"` - Message string `json:"message" url:"message"` - Details map[string]any `json:"details,omitempty" url:"details,omitempty"` +type DocPagesFlatten200ResponseMetaCacheDelta struct { + PreviousDocVersion int `json:"previousDocVersion" url:"previousDocVersion"` + DocVersion int `json:"docVersion" url:"docVersion"` + AnnotationsVersion *int `json:"annotationsVersion,omitempty" url:"annotationsVersion,omitempty"` + LayerVersion *int `json:"layerVersion,omitempty" url:"layerVersion,omitempty"` + Working *bool `json:"working,omitempty" url:"working,omitempty"` + Pages []*DocPagesFlatten200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -133497,83 +152492,111 @@ type DocManifest404Response struct { rawJSON json.RawMessage } -func (d *DocManifest404Response) GetName() DocManifest404ResponseName { +func (d *DocPagesFlatten200ResponseMetaCacheDelta) GetPreviousDocVersion() int { if d == nil { - return "" + return 0 } - return d.Name + return d.PreviousDocVersion } -func (d *DocManifest404Response) GetCode() DocManifest404ResponseCode { +func (d *DocPagesFlatten200ResponseMetaCacheDelta) GetDocVersion() int { if d == nil { - return "" + return 0 } - return d.Code + return d.DocVersion } -func (d *DocManifest404Response) GetMessage() string { +func (d *DocPagesFlatten200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { if d == nil { - return "" + return nil } - return d.Message + return d.AnnotationsVersion } -func (d *DocManifest404Response) GetDetails() map[string]any { +func (d *DocPagesFlatten200ResponseMetaCacheDelta) GetLayerVersion() *int { if d == nil { return nil } - return d.Details + return d.LayerVersion } -func (d *DocManifest404Response) GetExtraProperties() map[string]interface{} { +func (d *DocPagesFlatten200ResponseMetaCacheDelta) GetWorking() *bool { + if d == nil { + return nil + } + return d.Working +} + +func (d *DocPagesFlatten200ResponseMetaCacheDelta) GetPages() []*DocPagesFlatten200ResponseMetaCacheDeltaPagesItem { + if d == nil { + return nil + } + return d.Pages +} + +func (d *DocPagesFlatten200ResponseMetaCacheDelta) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocManifest404Response) require(field *big.Int) { +func (d *DocPagesFlatten200ResponseMetaCacheDelta) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetName sets the Name field and marks it as non-optional; +// SetPreviousDocVersion sets the PreviousDocVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocManifest404Response) SetName(name DocManifest404ResponseName) { - d.Name = name - d.require(docManifest404ResponseFieldName) +func (d *DocPagesFlatten200ResponseMetaCacheDelta) SetPreviousDocVersion(previousDocVersion int) { + d.PreviousDocVersion = previousDocVersion + d.require(docPagesFlatten200ResponseMetaCacheDeltaFieldPreviousDocVersion) } -// SetCode sets the Code field and marks it as non-optional; +// SetDocVersion sets the DocVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocManifest404Response) SetCode(code DocManifest404ResponseCode) { - d.Code = code - d.require(docManifest404ResponseFieldCode) +func (d *DocPagesFlatten200ResponseMetaCacheDelta) SetDocVersion(docVersion int) { + d.DocVersion = docVersion + d.require(docPagesFlatten200ResponseMetaCacheDeltaFieldDocVersion) } -// SetMessage sets the Message field and marks it as non-optional; +// SetAnnotationsVersion sets the AnnotationsVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocManifest404Response) SetMessage(message string) { - d.Message = message - d.require(docManifest404ResponseFieldMessage) +func (d *DocPagesFlatten200ResponseMetaCacheDelta) SetAnnotationsVersion(annotationsVersion *int) { + d.AnnotationsVersion = annotationsVersion + d.require(docPagesFlatten200ResponseMetaCacheDeltaFieldAnnotationsVersion) } -// SetDetails sets the Details field and marks it as non-optional; +// SetLayerVersion sets the LayerVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocManifest404Response) SetDetails(details map[string]any) { - d.Details = details - d.require(docManifest404ResponseFieldDetails) +func (d *DocPagesFlatten200ResponseMetaCacheDelta) SetLayerVersion(layerVersion *int) { + d.LayerVersion = layerVersion + d.require(docPagesFlatten200ResponseMetaCacheDeltaFieldLayerVersion) } -func (d *DocManifest404Response) UnmarshalJSON(data []byte) error { - type unmarshaler DocManifest404Response +// SetWorking sets the Working field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesFlatten200ResponseMetaCacheDelta) SetWorking(working *bool) { + d.Working = working + d.require(docPagesFlatten200ResponseMetaCacheDeltaFieldWorking) +} + +// SetPages sets the Pages field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesFlatten200ResponseMetaCacheDelta) SetPages(pages []*DocPagesFlatten200ResponseMetaCacheDeltaPagesItem) { + d.Pages = pages + d.require(docPagesFlatten200ResponseMetaCacheDeltaFieldPages) +} + +func (d *DocPagesFlatten200ResponseMetaCacheDelta) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesFlatten200ResponseMetaCacheDelta var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocManifest404Response(value) + *d = DocPagesFlatten200ResponseMetaCacheDelta(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -133583,8 +152606,8 @@ func (d *DocManifest404Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocManifest404Response) MarshalJSON() ([]byte, error) { - type embed DocManifest404Response +func (d *DocPagesFlatten200ResponseMetaCacheDelta) MarshalJSON() ([]byte, error) { + type embed DocPagesFlatten200ResponseMetaCacheDelta var marshaler = struct { embed }{ @@ -133594,7 +152617,7 @@ func (d *DocManifest404Response) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocManifest404Response) String() string { +func (d *DocPagesFlatten200ResponseMetaCacheDelta) String() string { if d == nil { return "" } @@ -133609,140 +152632,114 @@ func (d *DocManifest404Response) String() string { return fmt.Sprintf("%#v", d) } -type DocManifest404ResponseCode string - -const ( - DocManifest404ResponseCodeUnknown DocManifest404ResponseCode = "Unknown" - DocManifest404ResponseCodeInvalidArg DocManifest404ResponseCode = "InvalidArg" - DocManifest404ResponseCodeDocNotOpen DocManifest404ResponseCode = "DocNotOpen" - DocManifest404ResponseCodeDocOpenFailed DocManifest404ResponseCode = "DocOpenFailed" - DocManifest404ResponseCodeDocPasswordRequired DocManifest404ResponseCode = "DocPasswordRequired" - DocManifest404ResponseCodeDocPasswordIncorrect DocManifest404ResponseCode = "DocPasswordIncorrect" - DocManifest404ResponseCodeSharePasswordRequired DocManifest404ResponseCode = "SharePasswordRequired" - DocManifest404ResponseCodeAborted DocManifest404ResponseCode = "Aborted" - DocManifest404ResponseCodeNetwork DocManifest404ResponseCode = "Network" - DocManifest404ResponseCodeUnauthenticated DocManifest404ResponseCode = "Unauthenticated" - DocManifest404ResponseCodeForbidden DocManifest404ResponseCode = "Forbidden" - DocManifest404ResponseCodeNotFound DocManifest404ResponseCode = "NotFound" - DocManifest404ResponseCodeWireFormat DocManifest404ResponseCode = "WireFormat" - DocManifest404ResponseCodeRuntimeUnavailable DocManifest404ResponseCode = "RuntimeUnavailable" - DocManifest404ResponseCodeInvalidReference DocManifest404ResponseCode = "InvalidReference" - DocManifest404ResponseCodeWeakAnnotationSessionConflict DocManifest404ResponseCode = "WeakAnnotationSessionConflict" - DocManifest404ResponseCodeLayerVersionConflict DocManifest404ResponseCode = "LayerVersionConflict" - DocManifest404ResponseCodeNotImplemented DocManifest404ResponseCode = "NotImplemented" - DocManifest404ResponseCodeMalformedPdf DocManifest404ResponseCode = "MalformedPdf" - DocManifest404ResponseCodeSigningPending DocManifest404ResponseCode = "SigningPending" - DocManifest404ResponseCodeSigningExpired DocManifest404ResponseCode = "SigningExpired" - DocManifest404ResponseCodeSigningVersionMismatch DocManifest404ResponseCode = "SigningVersionMismatch" - DocManifest404ResponseCodeSignatureRefused DocManifest404ResponseCode = "SignatureRefused" - DocManifest404ResponseCodeProtectedDocument DocManifest404ResponseCode = "ProtectedDocument" - DocManifest404ResponseCodeStaleBase DocManifest404ResponseCode = "StaleBase" +var ( + docPagesFlatten200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) + docPagesFlatten200ResponseMetaCacheDeltaPagesItemFieldCache = big.NewInt(1 << 1) ) -func NewDocManifest404ResponseCodeFromString(s string) (DocManifest404ResponseCode, error) { - switch s { - case "Unknown": - return DocManifest404ResponseCodeUnknown, nil - case "InvalidArg": - return DocManifest404ResponseCodeInvalidArg, nil - case "DocNotOpen": - return DocManifest404ResponseCodeDocNotOpen, nil - case "DocOpenFailed": - return DocManifest404ResponseCodeDocOpenFailed, nil - case "DocPasswordRequired": - return DocManifest404ResponseCodeDocPasswordRequired, nil - case "DocPasswordIncorrect": - return DocManifest404ResponseCodeDocPasswordIncorrect, nil - case "SharePasswordRequired": - return DocManifest404ResponseCodeSharePasswordRequired, nil - case "Aborted": - return DocManifest404ResponseCodeAborted, nil - case "Network": - return DocManifest404ResponseCodeNetwork, nil - case "Unauthenticated": - return DocManifest404ResponseCodeUnauthenticated, nil - case "Forbidden": - return DocManifest404ResponseCodeForbidden, nil - case "NotFound": - return DocManifest404ResponseCodeNotFound, nil - case "WireFormat": - return DocManifest404ResponseCodeWireFormat, nil - case "RuntimeUnavailable": - return DocManifest404ResponseCodeRuntimeUnavailable, nil - case "InvalidReference": - return DocManifest404ResponseCodeInvalidReference, nil - case "WeakAnnotationSessionConflict": - return DocManifest404ResponseCodeWeakAnnotationSessionConflict, nil - case "LayerVersionConflict": - return DocManifest404ResponseCodeLayerVersionConflict, nil - case "NotImplemented": - return DocManifest404ResponseCodeNotImplemented, nil - case "MalformedPdf": - return DocManifest404ResponseCodeMalformedPdf, nil - case "SigningPending": - return DocManifest404ResponseCodeSigningPending, nil - case "SigningExpired": - return DocManifest404ResponseCodeSigningExpired, nil - case "SigningVersionMismatch": - return DocManifest404ResponseCodeSigningVersionMismatch, nil - case "SignatureRefused": - return DocManifest404ResponseCodeSignatureRefused, nil - case "ProtectedDocument": - return DocManifest404ResponseCodeProtectedDocument, nil - case "StaleBase": - return DocManifest404ResponseCodeStaleBase, nil +type DocPagesFlatten200ResponseMetaCacheDeltaPagesItem struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Cache *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache `json:"cache" url:"cache"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItem) GetPageObjectNumber() int { + if d == nil { + return 0 } - var t DocManifest404ResponseCode - return "", fmt.Errorf("%s is not a valid %T", s, t) + return d.PageObjectNumber } -func (d DocManifest404ResponseCode) Ptr() *DocManifest404ResponseCode { - return &d +func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItem) GetCache() *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache { + if d == nil { + return nil + } + return d.Cache } -type DocManifest404ResponseName string +func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItem) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} -const ( - DocManifest404ResponseNameEngineError DocManifest404ResponseName = "EngineError" -) +func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItem) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} -func NewDocManifest404ResponseNameFromString(s string) (DocManifest404ResponseName, error) { - switch s { - case "EngineError": - return DocManifest404ResponseNameEngineError, nil +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItem) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docPagesFlatten200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber) +} + +// SetCache sets the Cache field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItem) SetCache(cache *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache) { + d.Cache = cache + d.require(docPagesFlatten200ResponseMetaCacheDeltaPagesItemFieldCache) +} + +func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesFlatten200ResponseMetaCacheDeltaPagesItem + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - var t DocManifest404ResponseName - return "", fmt.Errorf("%s is not a valid %T", s, t) + *d = DocPagesFlatten200ResponseMetaCacheDeltaPagesItem(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d DocManifest404ResponseName) Ptr() *DocManifest404ResponseName { - return &d +func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItem) MarshalJSON() ([]byte, error) { + type embed DocPagesFlatten200ResponseMetaCacheDeltaPagesItem + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItem) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } var ( - docMetadataGet200ResponseFieldTitle = big.NewInt(1 << 0) - docMetadataGet200ResponseFieldAuthor = big.NewInt(1 << 1) - docMetadataGet200ResponseFieldSubject = big.NewInt(1 << 2) - docMetadataGet200ResponseFieldKeywords = big.NewInt(1 << 3) - docMetadataGet200ResponseFieldProducer = big.NewInt(1 << 4) - docMetadataGet200ResponseFieldCreator = big.NewInt(1 << 5) - docMetadataGet200ResponseFieldCreated = big.NewInt(1 << 6) - docMetadataGet200ResponseFieldModified = big.NewInt(1 << 7) - docMetadataGet200ResponseFieldTrapped = big.NewInt(1 << 8) - docMetadataGet200ResponseFieldCustom = big.NewInt(1 << 9) + docPagesFlatten200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion = big.NewInt(1 << 0) + docPagesFlatten200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion = big.NewInt(1 << 1) ) -type DocMetadataGet200Response struct { - Title *string `json:"title,omitempty" url:"title,omitempty"` - Author *string `json:"author,omitempty" url:"author,omitempty"` - Subject *string `json:"subject,omitempty" url:"subject,omitempty"` - Keywords *string `json:"keywords,omitempty" url:"keywords,omitempty"` - Producer *string `json:"producer,omitempty" url:"producer,omitempty"` - Creator *string `json:"creator,omitempty" url:"creator,omitempty"` - Created *time.Time `json:"created,omitempty" url:"created,omitempty"` - Modified *time.Time `json:"modified,omitempty" url:"modified,omitempty"` - Trapped DocMetadataGet200ResponseTrapped `json:"trapped" url:"trapped"` - Custom map[string]string `json:"custom" url:"custom"` +type DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache struct { + ContentVersion int `json:"contentVersion" url:"contentVersion"` + AnnotationVersion int `json:"annotationVersion" url:"annotationVersion"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -133751,175 +152748,187 @@ type DocMetadataGet200Response struct { rawJSON json.RawMessage } -func (d *DocMetadataGet200Response) GetTitle() *string { +func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache) GetContentVersion() int { if d == nil { - return nil + return 0 } - return d.Title + return d.ContentVersion } -func (d *DocMetadataGet200Response) GetAuthor() *string { +func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache) GetAnnotationVersion() int { if d == nil { - return nil + return 0 } - return d.Author + return d.AnnotationVersion } -func (d *DocMetadataGet200Response) GetSubject() *string { +func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.Subject + return d.extraProperties } -func (d *DocMetadataGet200Response) GetKeywords() *string { - if d == nil { - return nil +func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - return d.Keywords + d.explicitFields.Or(d.explicitFields, field) } -func (d *DocMetadataGet200Response) GetProducer() *string { - if d == nil { - return nil +// SetContentVersion sets the ContentVersion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache) SetContentVersion(contentVersion int) { + d.ContentVersion = contentVersion + d.require(docPagesFlatten200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion) +} + +// SetAnnotationVersion sets the AnnotationVersion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache) SetAnnotationVersion(annotationVersion int) { + d.AnnotationVersion = annotationVersion + d.require(docPagesFlatten200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion) +} + +func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err } - return d.Producer + *d = DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocMetadataGet200Response) GetCreator() *string { +func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON() ([]byte, error) { + type embed DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache) String() string { if d == nil { - return nil + return "" } - return d.Creator + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -func (d *DocMetadataGet200Response) GetCreated() *time.Time { +var ( + docPagesFlatten400ResponseFieldName = big.NewInt(1 << 0) + docPagesFlatten400ResponseFieldCode = big.NewInt(1 << 1) + docPagesFlatten400ResponseFieldMessage = big.NewInt(1 << 2) + docPagesFlatten400ResponseFieldDetails = big.NewInt(1 << 3) +) + +type DocPagesFlatten400Response struct { + Name DocPagesFlatten400ResponseName `json:"name" url:"name"` + Code DocPagesFlatten400ResponseCode `json:"code" url:"code"` + Message string `json:"message" url:"message"` + Details map[string]any `json:"details,omitempty" url:"details,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocPagesFlatten400Response) GetName() DocPagesFlatten400ResponseName { if d == nil { - return nil + return "" } - return d.Created + return d.Name } -func (d *DocMetadataGet200Response) GetModified() *time.Time { +func (d *DocPagesFlatten400Response) GetCode() DocPagesFlatten400ResponseCode { if d == nil { - return nil + return "" } - return d.Modified + return d.Code } -func (d *DocMetadataGet200Response) GetTrapped() DocMetadataGet200ResponseTrapped { +func (d *DocPagesFlatten400Response) GetMessage() string { if d == nil { return "" } - return d.Trapped + return d.Message } -func (d *DocMetadataGet200Response) GetCustom() map[string]string { +func (d *DocPagesFlatten400Response) GetDetails() map[string]any { if d == nil { return nil } - return d.Custom + return d.Details } -func (d *DocMetadataGet200Response) GetExtraProperties() map[string]interface{} { +func (d *DocPagesFlatten400Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocMetadataGet200Response) require(field *big.Int) { +func (d *DocPagesFlatten400Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetTitle sets the Title field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocMetadataGet200Response) SetTitle(title *string) { - d.Title = title - d.require(docMetadataGet200ResponseFieldTitle) -} - -// SetAuthor sets the Author field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocMetadataGet200Response) SetAuthor(author *string) { - d.Author = author - d.require(docMetadataGet200ResponseFieldAuthor) -} - -// SetSubject sets the Subject field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocMetadataGet200Response) SetSubject(subject *string) { - d.Subject = subject - d.require(docMetadataGet200ResponseFieldSubject) -} - -// SetKeywords sets the Keywords field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocMetadataGet200Response) SetKeywords(keywords *string) { - d.Keywords = keywords - d.require(docMetadataGet200ResponseFieldKeywords) -} - -// SetProducer sets the Producer field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocMetadataGet200Response) SetProducer(producer *string) { - d.Producer = producer - d.require(docMetadataGet200ResponseFieldProducer) -} - -// SetCreator sets the Creator field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocMetadataGet200Response) SetCreator(creator *string) { - d.Creator = creator - d.require(docMetadataGet200ResponseFieldCreator) -} - -// SetCreated sets the Created field and marks it as non-optional; +// SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocMetadataGet200Response) SetCreated(created *time.Time) { - d.Created = created - d.require(docMetadataGet200ResponseFieldCreated) +func (d *DocPagesFlatten400Response) SetName(name DocPagesFlatten400ResponseName) { + d.Name = name + d.require(docPagesFlatten400ResponseFieldName) } -// SetModified sets the Modified field and marks it as non-optional; +// SetCode sets the Code field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocMetadataGet200Response) SetModified(modified *time.Time) { - d.Modified = modified - d.require(docMetadataGet200ResponseFieldModified) +func (d *DocPagesFlatten400Response) SetCode(code DocPagesFlatten400ResponseCode) { + d.Code = code + d.require(docPagesFlatten400ResponseFieldCode) } -// SetTrapped sets the Trapped field and marks it as non-optional; +// SetMessage sets the Message field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocMetadataGet200Response) SetTrapped(trapped DocMetadataGet200ResponseTrapped) { - d.Trapped = trapped - d.require(docMetadataGet200ResponseFieldTrapped) +func (d *DocPagesFlatten400Response) SetMessage(message string) { + d.Message = message + d.require(docPagesFlatten400ResponseFieldMessage) } -// SetCustom sets the Custom field and marks it as non-optional; +// SetDetails sets the Details field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocMetadataGet200Response) SetCustom(custom map[string]string) { - d.Custom = custom - d.require(docMetadataGet200ResponseFieldCustom) +func (d *DocPagesFlatten400Response) SetDetails(details map[string]any) { + d.Details = details + d.require(docPagesFlatten400ResponseFieldDetails) } -func (d *DocMetadataGet200Response) UnmarshalJSON(data []byte) error { - type embed DocMetadataGet200Response - var unmarshaler = struct { - embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` - }{ - embed: embed(*d), - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +func (d *DocPagesFlatten400Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesFlatten400Response + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocMetadataGet200Response(unmarshaler.embed) - d.Created = unmarshaler.Created.TimePtr() - d.Modified = unmarshaler.Modified.TimePtr() + *d = DocPagesFlatten400Response(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -133929,22 +152938,18 @@ func (d *DocMetadataGet200Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocMetadataGet200Response) MarshalJSON() ([]byte, error) { - type embed DocMetadataGet200Response +func (d *DocPagesFlatten400Response) MarshalJSON() ([]byte, error) { + type embed DocPagesFlatten400Response var marshaler = struct { embed - Created *internal.DateTime `json:"created,omitempty"` - Modified *internal.DateTime `json:"modified,omitempty"` }{ - embed: embed(*d), - Created: internal.NewOptionalDateTime(d.Created), - Modified: internal.NewOptionalDateTime(d.Modified), + embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) return json.Marshal(explicitMarshaler) } -func (d *DocMetadataGet200Response) String() string { +func (d *DocPagesFlatten400Response) String() string { if d == nil { return "" } @@ -133959,43 +152964,128 @@ func (d *DocMetadataGet200Response) String() string { return fmt.Sprintf("%#v", d) } -type DocMetadataGet200ResponseTrapped string +type DocPagesFlatten400ResponseCode string const ( - DocMetadataGet200ResponseTrappedTrue DocMetadataGet200ResponseTrapped = "true" - DocMetadataGet200ResponseTrappedFalse DocMetadataGet200ResponseTrapped = "false" - DocMetadataGet200ResponseTrappedUnknown DocMetadataGet200ResponseTrapped = "unknown" + DocPagesFlatten400ResponseCodeUnknown DocPagesFlatten400ResponseCode = "Unknown" + DocPagesFlatten400ResponseCodeInvalidArg DocPagesFlatten400ResponseCode = "InvalidArg" + DocPagesFlatten400ResponseCodeDocNotOpen DocPagesFlatten400ResponseCode = "DocNotOpen" + DocPagesFlatten400ResponseCodeDocOpenFailed DocPagesFlatten400ResponseCode = "DocOpenFailed" + DocPagesFlatten400ResponseCodeDocPasswordRequired DocPagesFlatten400ResponseCode = "DocPasswordRequired" + DocPagesFlatten400ResponseCodeDocPasswordIncorrect DocPagesFlatten400ResponseCode = "DocPasswordIncorrect" + DocPagesFlatten400ResponseCodeSharePasswordRequired DocPagesFlatten400ResponseCode = "SharePasswordRequired" + DocPagesFlatten400ResponseCodeAborted DocPagesFlatten400ResponseCode = "Aborted" + DocPagesFlatten400ResponseCodeNetwork DocPagesFlatten400ResponseCode = "Network" + DocPagesFlatten400ResponseCodeUnauthenticated DocPagesFlatten400ResponseCode = "Unauthenticated" + DocPagesFlatten400ResponseCodeForbidden DocPagesFlatten400ResponseCode = "Forbidden" + DocPagesFlatten400ResponseCodeNotFound DocPagesFlatten400ResponseCode = "NotFound" + DocPagesFlatten400ResponseCodeWireFormat DocPagesFlatten400ResponseCode = "WireFormat" + DocPagesFlatten400ResponseCodeRuntimeUnavailable DocPagesFlatten400ResponseCode = "RuntimeUnavailable" + DocPagesFlatten400ResponseCodeInvalidReference DocPagesFlatten400ResponseCode = "InvalidReference" + DocPagesFlatten400ResponseCodeWeakAnnotationSessionConflict DocPagesFlatten400ResponseCode = "WeakAnnotationSessionConflict" + DocPagesFlatten400ResponseCodeLayerVersionConflict DocPagesFlatten400ResponseCode = "LayerVersionConflict" + DocPagesFlatten400ResponseCodeNotImplemented DocPagesFlatten400ResponseCode = "NotImplemented" + DocPagesFlatten400ResponseCodeMalformedPdf DocPagesFlatten400ResponseCode = "MalformedPdf" + DocPagesFlatten400ResponseCodeSigningPending DocPagesFlatten400ResponseCode = "SigningPending" + DocPagesFlatten400ResponseCodeSigningExpired DocPagesFlatten400ResponseCode = "SigningExpired" + DocPagesFlatten400ResponseCodeSigningVersionMismatch DocPagesFlatten400ResponseCode = "SigningVersionMismatch" + DocPagesFlatten400ResponseCodeSignatureRefused DocPagesFlatten400ResponseCode = "SignatureRefused" + DocPagesFlatten400ResponseCodeProtectedDocument DocPagesFlatten400ResponseCode = "ProtectedDocument" + DocPagesFlatten400ResponseCodeStaleBase DocPagesFlatten400ResponseCode = "StaleBase" ) -func NewDocMetadataGet200ResponseTrappedFromString(s string) (DocMetadataGet200ResponseTrapped, error) { +func NewDocPagesFlatten400ResponseCodeFromString(s string) (DocPagesFlatten400ResponseCode, error) { switch s { - case "true": - return DocMetadataGet200ResponseTrappedTrue, nil - case "false": - return DocMetadataGet200ResponseTrappedFalse, nil - case "unknown": - return DocMetadataGet200ResponseTrappedUnknown, nil + case "Unknown": + return DocPagesFlatten400ResponseCodeUnknown, nil + case "InvalidArg": + return DocPagesFlatten400ResponseCodeInvalidArg, nil + case "DocNotOpen": + return DocPagesFlatten400ResponseCodeDocNotOpen, nil + case "DocOpenFailed": + return DocPagesFlatten400ResponseCodeDocOpenFailed, nil + case "DocPasswordRequired": + return DocPagesFlatten400ResponseCodeDocPasswordRequired, nil + case "DocPasswordIncorrect": + return DocPagesFlatten400ResponseCodeDocPasswordIncorrect, nil + case "SharePasswordRequired": + return DocPagesFlatten400ResponseCodeSharePasswordRequired, nil + case "Aborted": + return DocPagesFlatten400ResponseCodeAborted, nil + case "Network": + return DocPagesFlatten400ResponseCodeNetwork, nil + case "Unauthenticated": + return DocPagesFlatten400ResponseCodeUnauthenticated, nil + case "Forbidden": + return DocPagesFlatten400ResponseCodeForbidden, nil + case "NotFound": + return DocPagesFlatten400ResponseCodeNotFound, nil + case "WireFormat": + return DocPagesFlatten400ResponseCodeWireFormat, nil + case "RuntimeUnavailable": + return DocPagesFlatten400ResponseCodeRuntimeUnavailable, nil + case "InvalidReference": + return DocPagesFlatten400ResponseCodeInvalidReference, nil + case "WeakAnnotationSessionConflict": + return DocPagesFlatten400ResponseCodeWeakAnnotationSessionConflict, nil + case "LayerVersionConflict": + return DocPagesFlatten400ResponseCodeLayerVersionConflict, nil + case "NotImplemented": + return DocPagesFlatten400ResponseCodeNotImplemented, nil + case "MalformedPdf": + return DocPagesFlatten400ResponseCodeMalformedPdf, nil + case "SigningPending": + return DocPagesFlatten400ResponseCodeSigningPending, nil + case "SigningExpired": + return DocPagesFlatten400ResponseCodeSigningExpired, nil + case "SigningVersionMismatch": + return DocPagesFlatten400ResponseCodeSigningVersionMismatch, nil + case "SignatureRefused": + return DocPagesFlatten400ResponseCodeSignatureRefused, nil + case "ProtectedDocument": + return DocPagesFlatten400ResponseCodeProtectedDocument, nil + case "StaleBase": + return DocPagesFlatten400ResponseCodeStaleBase, nil } - var t DocMetadataGet200ResponseTrapped + var t DocPagesFlatten400ResponseCode return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocMetadataGet200ResponseTrapped) Ptr() *DocMetadataGet200ResponseTrapped { +func (d DocPagesFlatten400ResponseCode) Ptr() *DocPagesFlatten400ResponseCode { + return &d +} + +type DocPagesFlatten400ResponseName string + +const ( + DocPagesFlatten400ResponseNameEngineError DocPagesFlatten400ResponseName = "EngineError" +) + +func NewDocPagesFlatten400ResponseNameFromString(s string) (DocPagesFlatten400ResponseName, error) { + switch s { + case "EngineError": + return DocPagesFlatten400ResponseNameEngineError, nil + } + var t DocPagesFlatten400ResponseName + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesFlatten400ResponseName) Ptr() *DocPagesFlatten400ResponseName { return &d } var ( - docMetadataGet404ResponseFieldName = big.NewInt(1 << 0) - docMetadataGet404ResponseFieldCode = big.NewInt(1 << 1) - docMetadataGet404ResponseFieldMessage = big.NewInt(1 << 2) - docMetadataGet404ResponseFieldDetails = big.NewInt(1 << 3) + docPagesFlatten404ResponseFieldName = big.NewInt(1 << 0) + docPagesFlatten404ResponseFieldCode = big.NewInt(1 << 1) + docPagesFlatten404ResponseFieldMessage = big.NewInt(1 << 2) + docPagesFlatten404ResponseFieldDetails = big.NewInt(1 << 3) ) -type DocMetadataGet404Response struct { - Name DocMetadataGet404ResponseName `json:"name" url:"name"` - Code DocMetadataGet404ResponseCode `json:"code" url:"code"` - Message string `json:"message" url:"message"` - Details map[string]any `json:"details,omitempty" url:"details,omitempty"` +type DocPagesFlatten404Response struct { + Name DocPagesFlatten404ResponseName `json:"name" url:"name"` + Code DocPagesFlatten404ResponseCode `json:"code" url:"code"` + Message string `json:"message" url:"message"` + Details map[string]any `json:"details,omitempty" url:"details,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -134004,42 +153094,42 @@ type DocMetadataGet404Response struct { rawJSON json.RawMessage } -func (d *DocMetadataGet404Response) GetName() DocMetadataGet404ResponseName { +func (d *DocPagesFlatten404Response) GetName() DocPagesFlatten404ResponseName { if d == nil { return "" } return d.Name } -func (d *DocMetadataGet404Response) GetCode() DocMetadataGet404ResponseCode { +func (d *DocPagesFlatten404Response) GetCode() DocPagesFlatten404ResponseCode { if d == nil { return "" } return d.Code } -func (d *DocMetadataGet404Response) GetMessage() string { +func (d *DocPagesFlatten404Response) GetMessage() string { if d == nil { return "" } return d.Message } -func (d *DocMetadataGet404Response) GetDetails() map[string]any { +func (d *DocPagesFlatten404Response) GetDetails() map[string]any { if d == nil { return nil } return d.Details } -func (d *DocMetadataGet404Response) GetExtraProperties() map[string]interface{} { +func (d *DocPagesFlatten404Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocMetadataGet404Response) require(field *big.Int) { +func (d *DocPagesFlatten404Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -134048,39 +153138,39 @@ func (d *DocMetadataGet404Response) require(field *big.Int) { // SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocMetadataGet404Response) SetName(name DocMetadataGet404ResponseName) { +func (d *DocPagesFlatten404Response) SetName(name DocPagesFlatten404ResponseName) { d.Name = name - d.require(docMetadataGet404ResponseFieldName) + d.require(docPagesFlatten404ResponseFieldName) } // SetCode sets the Code field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocMetadataGet404Response) SetCode(code DocMetadataGet404ResponseCode) { +func (d *DocPagesFlatten404Response) SetCode(code DocPagesFlatten404ResponseCode) { d.Code = code - d.require(docMetadataGet404ResponseFieldCode) + d.require(docPagesFlatten404ResponseFieldCode) } // SetMessage sets the Message field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocMetadataGet404Response) SetMessage(message string) { +func (d *DocPagesFlatten404Response) SetMessage(message string) { d.Message = message - d.require(docMetadataGet404ResponseFieldMessage) + d.require(docPagesFlatten404ResponseFieldMessage) } // SetDetails sets the Details field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocMetadataGet404Response) SetDetails(details map[string]any) { +func (d *DocPagesFlatten404Response) SetDetails(details map[string]any) { d.Details = details - d.require(docMetadataGet404ResponseFieldDetails) + d.require(docPagesFlatten404ResponseFieldDetails) } -func (d *DocMetadataGet404Response) UnmarshalJSON(data []byte) error { - type unmarshaler DocMetadataGet404Response +func (d *DocPagesFlatten404Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesFlatten404Response var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocMetadataGet404Response(value) + *d = DocPagesFlatten404Response(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -134090,8 +153180,8 @@ func (d *DocMetadataGet404Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocMetadataGet404Response) MarshalJSON() ([]byte, error) { - type embed DocMetadataGet404Response +func (d *DocPagesFlatten404Response) MarshalJSON() ([]byte, error) { + type embed DocPagesFlatten404Response var marshaler = struct { embed }{ @@ -134101,7 +153191,7 @@ func (d *DocMetadataGet404Response) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocMetadataGet404Response) String() string { +func (d *DocPagesFlatten404Response) String() string { if d == nil { return "" } @@ -134116,122 +153206,124 @@ func (d *DocMetadataGet404Response) String() string { return fmt.Sprintf("%#v", d) } -type DocMetadataGet404ResponseCode string +type DocPagesFlatten404ResponseCode string const ( - DocMetadataGet404ResponseCodeUnknown DocMetadataGet404ResponseCode = "Unknown" - DocMetadataGet404ResponseCodeInvalidArg DocMetadataGet404ResponseCode = "InvalidArg" - DocMetadataGet404ResponseCodeDocNotOpen DocMetadataGet404ResponseCode = "DocNotOpen" - DocMetadataGet404ResponseCodeDocOpenFailed DocMetadataGet404ResponseCode = "DocOpenFailed" - DocMetadataGet404ResponseCodeDocPasswordRequired DocMetadataGet404ResponseCode = "DocPasswordRequired" - DocMetadataGet404ResponseCodeDocPasswordIncorrect DocMetadataGet404ResponseCode = "DocPasswordIncorrect" - DocMetadataGet404ResponseCodeSharePasswordRequired DocMetadataGet404ResponseCode = "SharePasswordRequired" - DocMetadataGet404ResponseCodeAborted DocMetadataGet404ResponseCode = "Aborted" - DocMetadataGet404ResponseCodeNetwork DocMetadataGet404ResponseCode = "Network" - DocMetadataGet404ResponseCodeUnauthenticated DocMetadataGet404ResponseCode = "Unauthenticated" - DocMetadataGet404ResponseCodeForbidden DocMetadataGet404ResponseCode = "Forbidden" - DocMetadataGet404ResponseCodeNotFound DocMetadataGet404ResponseCode = "NotFound" - DocMetadataGet404ResponseCodeWireFormat DocMetadataGet404ResponseCode = "WireFormat" - DocMetadataGet404ResponseCodeRuntimeUnavailable DocMetadataGet404ResponseCode = "RuntimeUnavailable" - DocMetadataGet404ResponseCodeInvalidReference DocMetadataGet404ResponseCode = "InvalidReference" - DocMetadataGet404ResponseCodeWeakAnnotationSessionConflict DocMetadataGet404ResponseCode = "WeakAnnotationSessionConflict" - DocMetadataGet404ResponseCodeLayerVersionConflict DocMetadataGet404ResponseCode = "LayerVersionConflict" - DocMetadataGet404ResponseCodeNotImplemented DocMetadataGet404ResponseCode = "NotImplemented" - DocMetadataGet404ResponseCodeMalformedPdf DocMetadataGet404ResponseCode = "MalformedPdf" - DocMetadataGet404ResponseCodeSigningPending DocMetadataGet404ResponseCode = "SigningPending" - DocMetadataGet404ResponseCodeSigningExpired DocMetadataGet404ResponseCode = "SigningExpired" - DocMetadataGet404ResponseCodeSigningVersionMismatch DocMetadataGet404ResponseCode = "SigningVersionMismatch" - DocMetadataGet404ResponseCodeSignatureRefused DocMetadataGet404ResponseCode = "SignatureRefused" - DocMetadataGet404ResponseCodeProtectedDocument DocMetadataGet404ResponseCode = "ProtectedDocument" - DocMetadataGet404ResponseCodeStaleBase DocMetadataGet404ResponseCode = "StaleBase" + DocPagesFlatten404ResponseCodeUnknown DocPagesFlatten404ResponseCode = "Unknown" + DocPagesFlatten404ResponseCodeInvalidArg DocPagesFlatten404ResponseCode = "InvalidArg" + DocPagesFlatten404ResponseCodeDocNotOpen DocPagesFlatten404ResponseCode = "DocNotOpen" + DocPagesFlatten404ResponseCodeDocOpenFailed DocPagesFlatten404ResponseCode = "DocOpenFailed" + DocPagesFlatten404ResponseCodeDocPasswordRequired DocPagesFlatten404ResponseCode = "DocPasswordRequired" + DocPagesFlatten404ResponseCodeDocPasswordIncorrect DocPagesFlatten404ResponseCode = "DocPasswordIncorrect" + DocPagesFlatten404ResponseCodeSharePasswordRequired DocPagesFlatten404ResponseCode = "SharePasswordRequired" + DocPagesFlatten404ResponseCodeAborted DocPagesFlatten404ResponseCode = "Aborted" + DocPagesFlatten404ResponseCodeNetwork DocPagesFlatten404ResponseCode = "Network" + DocPagesFlatten404ResponseCodeUnauthenticated DocPagesFlatten404ResponseCode = "Unauthenticated" + DocPagesFlatten404ResponseCodeForbidden DocPagesFlatten404ResponseCode = "Forbidden" + DocPagesFlatten404ResponseCodeNotFound DocPagesFlatten404ResponseCode = "NotFound" + DocPagesFlatten404ResponseCodeWireFormat DocPagesFlatten404ResponseCode = "WireFormat" + DocPagesFlatten404ResponseCodeRuntimeUnavailable DocPagesFlatten404ResponseCode = "RuntimeUnavailable" + DocPagesFlatten404ResponseCodeInvalidReference DocPagesFlatten404ResponseCode = "InvalidReference" + DocPagesFlatten404ResponseCodeWeakAnnotationSessionConflict DocPagesFlatten404ResponseCode = "WeakAnnotationSessionConflict" + DocPagesFlatten404ResponseCodeLayerVersionConflict DocPagesFlatten404ResponseCode = "LayerVersionConflict" + DocPagesFlatten404ResponseCodeNotImplemented DocPagesFlatten404ResponseCode = "NotImplemented" + DocPagesFlatten404ResponseCodeMalformedPdf DocPagesFlatten404ResponseCode = "MalformedPdf" + DocPagesFlatten404ResponseCodeSigningPending DocPagesFlatten404ResponseCode = "SigningPending" + DocPagesFlatten404ResponseCodeSigningExpired DocPagesFlatten404ResponseCode = "SigningExpired" + DocPagesFlatten404ResponseCodeSigningVersionMismatch DocPagesFlatten404ResponseCode = "SigningVersionMismatch" + DocPagesFlatten404ResponseCodeSignatureRefused DocPagesFlatten404ResponseCode = "SignatureRefused" + DocPagesFlatten404ResponseCodeProtectedDocument DocPagesFlatten404ResponseCode = "ProtectedDocument" + DocPagesFlatten404ResponseCodeStaleBase DocPagesFlatten404ResponseCode = "StaleBase" ) -func NewDocMetadataGet404ResponseCodeFromString(s string) (DocMetadataGet404ResponseCode, error) { +func NewDocPagesFlatten404ResponseCodeFromString(s string) (DocPagesFlatten404ResponseCode, error) { switch s { case "Unknown": - return DocMetadataGet404ResponseCodeUnknown, nil + return DocPagesFlatten404ResponseCodeUnknown, nil case "InvalidArg": - return DocMetadataGet404ResponseCodeInvalidArg, nil + return DocPagesFlatten404ResponseCodeInvalidArg, nil case "DocNotOpen": - return DocMetadataGet404ResponseCodeDocNotOpen, nil + return DocPagesFlatten404ResponseCodeDocNotOpen, nil case "DocOpenFailed": - return DocMetadataGet404ResponseCodeDocOpenFailed, nil + return DocPagesFlatten404ResponseCodeDocOpenFailed, nil case "DocPasswordRequired": - return DocMetadataGet404ResponseCodeDocPasswordRequired, nil + return DocPagesFlatten404ResponseCodeDocPasswordRequired, nil case "DocPasswordIncorrect": - return DocMetadataGet404ResponseCodeDocPasswordIncorrect, nil + return DocPagesFlatten404ResponseCodeDocPasswordIncorrect, nil case "SharePasswordRequired": - return DocMetadataGet404ResponseCodeSharePasswordRequired, nil + return DocPagesFlatten404ResponseCodeSharePasswordRequired, nil case "Aborted": - return DocMetadataGet404ResponseCodeAborted, nil + return DocPagesFlatten404ResponseCodeAborted, nil case "Network": - return DocMetadataGet404ResponseCodeNetwork, nil + return DocPagesFlatten404ResponseCodeNetwork, nil case "Unauthenticated": - return DocMetadataGet404ResponseCodeUnauthenticated, nil + return DocPagesFlatten404ResponseCodeUnauthenticated, nil case "Forbidden": - return DocMetadataGet404ResponseCodeForbidden, nil + return DocPagesFlatten404ResponseCodeForbidden, nil case "NotFound": - return DocMetadataGet404ResponseCodeNotFound, nil + return DocPagesFlatten404ResponseCodeNotFound, nil case "WireFormat": - return DocMetadataGet404ResponseCodeWireFormat, nil + return DocPagesFlatten404ResponseCodeWireFormat, nil case "RuntimeUnavailable": - return DocMetadataGet404ResponseCodeRuntimeUnavailable, nil + return DocPagesFlatten404ResponseCodeRuntimeUnavailable, nil case "InvalidReference": - return DocMetadataGet404ResponseCodeInvalidReference, nil + return DocPagesFlatten404ResponseCodeInvalidReference, nil case "WeakAnnotationSessionConflict": - return DocMetadataGet404ResponseCodeWeakAnnotationSessionConflict, nil + return DocPagesFlatten404ResponseCodeWeakAnnotationSessionConflict, nil case "LayerVersionConflict": - return DocMetadataGet404ResponseCodeLayerVersionConflict, nil + return DocPagesFlatten404ResponseCodeLayerVersionConflict, nil case "NotImplemented": - return DocMetadataGet404ResponseCodeNotImplemented, nil + return DocPagesFlatten404ResponseCodeNotImplemented, nil case "MalformedPdf": - return DocMetadataGet404ResponseCodeMalformedPdf, nil + return DocPagesFlatten404ResponseCodeMalformedPdf, nil case "SigningPending": - return DocMetadataGet404ResponseCodeSigningPending, nil + return DocPagesFlatten404ResponseCodeSigningPending, nil case "SigningExpired": - return DocMetadataGet404ResponseCodeSigningExpired, nil + return DocPagesFlatten404ResponseCodeSigningExpired, nil case "SigningVersionMismatch": - return DocMetadataGet404ResponseCodeSigningVersionMismatch, nil + return DocPagesFlatten404ResponseCodeSigningVersionMismatch, nil case "SignatureRefused": - return DocMetadataGet404ResponseCodeSignatureRefused, nil + return DocPagesFlatten404ResponseCodeSignatureRefused, nil case "ProtectedDocument": - return DocMetadataGet404ResponseCodeProtectedDocument, nil + return DocPagesFlatten404ResponseCodeProtectedDocument, nil case "StaleBase": - return DocMetadataGet404ResponseCodeStaleBase, nil + return DocPagesFlatten404ResponseCodeStaleBase, nil } - var t DocMetadataGet404ResponseCode + var t DocPagesFlatten404ResponseCode return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocMetadataGet404ResponseCode) Ptr() *DocMetadataGet404ResponseCode { +func (d DocPagesFlatten404ResponseCode) Ptr() *DocPagesFlatten404ResponseCode { return &d } -type DocMetadataGet404ResponseName string +type DocPagesFlatten404ResponseName string const ( - DocMetadataGet404ResponseNameEngineError DocMetadataGet404ResponseName = "EngineError" + DocPagesFlatten404ResponseNameEngineError DocPagesFlatten404ResponseName = "EngineError" ) -func NewDocMetadataGet404ResponseNameFromString(s string) (DocMetadataGet404ResponseName, error) { +func NewDocPagesFlatten404ResponseNameFromString(s string) (DocPagesFlatten404ResponseName, error) { switch s { case "EngineError": - return DocMetadataGet404ResponseNameEngineError, nil + return DocPagesFlatten404ResponseNameEngineError, nil } - var t DocMetadataGet404ResponseName + var t DocPagesFlatten404ResponseName return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocMetadataGet404ResponseName) Ptr() *DocMetadataGet404ResponseName { +func (d DocPagesFlatten404ResponseName) Ptr() *DocPagesFlatten404ResponseName { return &d } +type DocPagesFlattenRequest = map[string]any + var ( - docPagesDelete200ResponseFieldMeta = big.NewInt(1 << 0) + docPagesInsert200ResponseFieldMeta = big.NewInt(1 << 0) ) -type DocPagesDelete200Response struct { - Meta *DocPagesDelete200ResponseMeta `json:"meta" url:"meta"` +type DocPagesInsert200Response struct { + Meta *DocPagesInsert200ResponseMeta `json:"meta" url:"meta"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -134241,21 +153333,21 @@ type DocPagesDelete200Response struct { rawJSON json.RawMessage } -func (d *DocPagesDelete200Response) GetMeta() *DocPagesDelete200ResponseMeta { +func (d *DocPagesInsert200Response) GetMeta() *DocPagesInsert200ResponseMeta { if d == nil { return nil } return d.Meta } -func (d *DocPagesDelete200Response) GetExtraProperties() map[string]interface{} { +func (d *DocPagesInsert200Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.ExtraProperties } -func (d *DocPagesDelete200Response) require(field *big.Int) { +func (d *DocPagesInsert200Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -134264,13 +153356,13 @@ func (d *DocPagesDelete200Response) require(field *big.Int) { // SetMeta sets the Meta field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesDelete200Response) SetMeta(meta *DocPagesDelete200ResponseMeta) { +func (d *DocPagesInsert200Response) SetMeta(meta *DocPagesInsert200ResponseMeta) { d.Meta = meta - d.require(docPagesDelete200ResponseFieldMeta) + d.require(docPagesInsert200ResponseFieldMeta) } -func (d *DocPagesDelete200Response) UnmarshalJSON(data []byte) error { - type embed DocPagesDelete200Response +func (d *DocPagesInsert200Response) UnmarshalJSON(data []byte) error { + type embed DocPagesInsert200Response var unmarshaler = struct { embed }{ @@ -134279,7 +153371,7 @@ func (d *DocPagesDelete200Response) UnmarshalJSON(data []byte) error { if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocPagesDelete200Response(unmarshaler.embed) + *d = DocPagesInsert200Response(unmarshaler.embed) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -134289,8 +153381,8 @@ func (d *DocPagesDelete200Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocPagesDelete200Response) MarshalJSON() ([]byte, error) { - type embed DocPagesDelete200Response +func (d *DocPagesInsert200Response) MarshalJSON() ([]byte, error) { + type embed DocPagesInsert200Response var marshaler = struct { embed }{ @@ -134300,7 +153392,7 @@ func (d *DocPagesDelete200Response) MarshalJSON() ([]byte, error) { return internal.MarshalJSONWithExtraProperties(explicitMarshaler, d.ExtraProperties) } -func (d *DocPagesDelete200Response) String() string { +func (d *DocPagesInsert200Response) String() string { if d == nil { return "" } @@ -134316,13 +153408,13 @@ func (d *DocPagesDelete200Response) String() string { } var ( - docPagesDelete200ResponseMetaFieldAffectedPages = big.NewInt(1 << 0) - docPagesDelete200ResponseMetaFieldCacheDelta = big.NewInt(1 << 1) + docPagesInsert200ResponseMetaFieldAffectedPages = big.NewInt(1 << 0) + docPagesInsert200ResponseMetaFieldCacheDelta = big.NewInt(1 << 1) ) -type DocPagesDelete200ResponseMeta struct { - AffectedPages []*DocPagesDelete200ResponseMetaAffectedPagesItem `json:"affectedPages" url:"affectedPages"` - CacheDelta *DocPagesDelete200ResponseMetaCacheDelta `json:"cacheDelta,omitempty" url:"cacheDelta,omitempty"` +type DocPagesInsert200ResponseMeta struct { + AffectedPages []*DocPagesInsert200ResponseMetaAffectedPagesItem `json:"affectedPages" url:"affectedPages"` + CacheDelta *DocPagesInsert200ResponseMetaCacheDelta `json:"cacheDelta,omitempty" url:"cacheDelta,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -134331,28 +153423,28 @@ type DocPagesDelete200ResponseMeta struct { rawJSON json.RawMessage } -func (d *DocPagesDelete200ResponseMeta) GetAffectedPages() []*DocPagesDelete200ResponseMetaAffectedPagesItem { +func (d *DocPagesInsert200ResponseMeta) GetAffectedPages() []*DocPagesInsert200ResponseMetaAffectedPagesItem { if d == nil { return nil } return d.AffectedPages } -func (d *DocPagesDelete200ResponseMeta) GetCacheDelta() *DocPagesDelete200ResponseMetaCacheDelta { +func (d *DocPagesInsert200ResponseMeta) GetCacheDelta() *DocPagesInsert200ResponseMetaCacheDelta { if d == nil { return nil } return d.CacheDelta } -func (d *DocPagesDelete200ResponseMeta) GetExtraProperties() map[string]interface{} { +func (d *DocPagesInsert200ResponseMeta) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesDelete200ResponseMeta) require(field *big.Int) { +func (d *DocPagesInsert200ResponseMeta) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -134361,25 +153453,25 @@ func (d *DocPagesDelete200ResponseMeta) require(field *big.Int) { // SetAffectedPages sets the AffectedPages field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesDelete200ResponseMeta) SetAffectedPages(affectedPages []*DocPagesDelete200ResponseMetaAffectedPagesItem) { +func (d *DocPagesInsert200ResponseMeta) SetAffectedPages(affectedPages []*DocPagesInsert200ResponseMetaAffectedPagesItem) { d.AffectedPages = affectedPages - d.require(docPagesDelete200ResponseMetaFieldAffectedPages) + d.require(docPagesInsert200ResponseMetaFieldAffectedPages) } // SetCacheDelta sets the CacheDelta field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesDelete200ResponseMeta) SetCacheDelta(cacheDelta *DocPagesDelete200ResponseMetaCacheDelta) { +func (d *DocPagesInsert200ResponseMeta) SetCacheDelta(cacheDelta *DocPagesInsert200ResponseMetaCacheDelta) { d.CacheDelta = cacheDelta - d.require(docPagesDelete200ResponseMetaFieldCacheDelta) + d.require(docPagesInsert200ResponseMetaFieldCacheDelta) } -func (d *DocPagesDelete200ResponseMeta) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesDelete200ResponseMeta +func (d *DocPagesInsert200ResponseMeta) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesInsert200ResponseMeta var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesDelete200ResponseMeta(value) + *d = DocPagesInsert200ResponseMeta(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -134389,8 +153481,8 @@ func (d *DocPagesDelete200ResponseMeta) UnmarshalJSON(data []byte) error { return nil } -func (d *DocPagesDelete200ResponseMeta) MarshalJSON() ([]byte, error) { - type embed DocPagesDelete200ResponseMeta +func (d *DocPagesInsert200ResponseMeta) MarshalJSON() ([]byte, error) { + type embed DocPagesInsert200ResponseMeta var marshaler = struct { embed }{ @@ -134400,7 +153492,7 @@ func (d *DocPagesDelete200ResponseMeta) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocPagesDelete200ResponseMeta) String() string { +func (d *DocPagesInsert200ResponseMeta) String() string { if d == nil { return "" } @@ -134416,15 +153508,15 @@ func (d *DocPagesDelete200ResponseMeta) String() string { } var ( - docPagesDelete200ResponseMetaAffectedPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) - docPagesDelete200ResponseMetaAffectedPagesItemFieldRevision = big.NewInt(1 << 1) - docPagesDelete200ResponseMetaAffectedPagesItemFieldWeakAnnotationState = big.NewInt(1 << 2) + docPagesInsert200ResponseMetaAffectedPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) + docPagesInsert200ResponseMetaAffectedPagesItemFieldRevision = big.NewInt(1 << 1) + docPagesInsert200ResponseMetaAffectedPagesItemFieldWeakAnnotationState = big.NewInt(1 << 2) ) -type DocPagesDelete200ResponseMetaAffectedPagesItem struct { +type DocPagesInsert200ResponseMetaAffectedPagesItem struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Revision *DocPagesDelete200ResponseMetaAffectedPagesItemRevision `json:"revision" url:"revision"` - WeakAnnotationState *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState `json:"weakAnnotationState" url:"weakAnnotationState"` + Revision *DocPagesInsert200ResponseMetaAffectedPagesItemRevision `json:"revision" url:"revision"` + WeakAnnotationState *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState `json:"weakAnnotationState" url:"weakAnnotationState"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -134433,35 +153525,35 @@ type DocPagesDelete200ResponseMetaAffectedPagesItem struct { rawJSON json.RawMessage } -func (d *DocPagesDelete200ResponseMetaAffectedPagesItem) GetPageObjectNumber() int { +func (d *DocPagesInsert200ResponseMetaAffectedPagesItem) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocPagesDelete200ResponseMetaAffectedPagesItem) GetRevision() *DocPagesDelete200ResponseMetaAffectedPagesItemRevision { +func (d *DocPagesInsert200ResponseMetaAffectedPagesItem) GetRevision() *DocPagesInsert200ResponseMetaAffectedPagesItemRevision { if d == nil { return nil } return d.Revision } -func (d *DocPagesDelete200ResponseMetaAffectedPagesItem) GetWeakAnnotationState() *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState { +func (d *DocPagesInsert200ResponseMetaAffectedPagesItem) GetWeakAnnotationState() *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState { if d == nil { return nil } return d.WeakAnnotationState } -func (d *DocPagesDelete200ResponseMetaAffectedPagesItem) GetExtraProperties() map[string]interface{} { +func (d *DocPagesInsert200ResponseMetaAffectedPagesItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesDelete200ResponseMetaAffectedPagesItem) require(field *big.Int) { +func (d *DocPagesInsert200ResponseMetaAffectedPagesItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -134470,32 +153562,32 @@ func (d *DocPagesDelete200ResponseMetaAffectedPagesItem) require(field *big.Int) // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesDelete200ResponseMetaAffectedPagesItem) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocPagesInsert200ResponseMetaAffectedPagesItem) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docPagesDelete200ResponseMetaAffectedPagesItemFieldPageObjectNumber) + d.require(docPagesInsert200ResponseMetaAffectedPagesItemFieldPageObjectNumber) } // SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesDelete200ResponseMetaAffectedPagesItem) SetRevision(revision *DocPagesDelete200ResponseMetaAffectedPagesItemRevision) { +func (d *DocPagesInsert200ResponseMetaAffectedPagesItem) SetRevision(revision *DocPagesInsert200ResponseMetaAffectedPagesItemRevision) { d.Revision = revision - d.require(docPagesDelete200ResponseMetaAffectedPagesItemFieldRevision) + d.require(docPagesInsert200ResponseMetaAffectedPagesItemFieldRevision) } // SetWeakAnnotationState sets the WeakAnnotationState field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesDelete200ResponseMetaAffectedPagesItem) SetWeakAnnotationState(weakAnnotationState *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState) { +func (d *DocPagesInsert200ResponseMetaAffectedPagesItem) SetWeakAnnotationState(weakAnnotationState *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState) { d.WeakAnnotationState = weakAnnotationState - d.require(docPagesDelete200ResponseMetaAffectedPagesItemFieldWeakAnnotationState) + d.require(docPagesInsert200ResponseMetaAffectedPagesItemFieldWeakAnnotationState) } -func (d *DocPagesDelete200ResponseMetaAffectedPagesItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesDelete200ResponseMetaAffectedPagesItem +func (d *DocPagesInsert200ResponseMetaAffectedPagesItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesInsert200ResponseMetaAffectedPagesItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesDelete200ResponseMetaAffectedPagesItem(value) + *d = DocPagesInsert200ResponseMetaAffectedPagesItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -134505,8 +153597,8 @@ func (d *DocPagesDelete200ResponseMetaAffectedPagesItem) UnmarshalJSON(data []by return nil } -func (d *DocPagesDelete200ResponseMetaAffectedPagesItem) MarshalJSON() ([]byte, error) { - type embed DocPagesDelete200ResponseMetaAffectedPagesItem +func (d *DocPagesInsert200ResponseMetaAffectedPagesItem) MarshalJSON() ([]byte, error) { + type embed DocPagesInsert200ResponseMetaAffectedPagesItem var marshaler = struct { embed }{ @@ -134516,7 +153608,7 @@ func (d *DocPagesDelete200ResponseMetaAffectedPagesItem) MarshalJSON() ([]byte, return json.Marshal(explicitMarshaler) } -func (d *DocPagesDelete200ResponseMetaAffectedPagesItem) String() string { +func (d *DocPagesInsert200ResponseMetaAffectedPagesItem) String() string { if d == nil { return "" } @@ -134532,12 +153624,12 @@ func (d *DocPagesDelete200ResponseMetaAffectedPagesItem) String() string { } var ( - docPagesDelete200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID = big.NewInt(1 << 0) - docPagesDelete200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docPagesDelete200ResponseMetaAffectedPagesItemRevisionFieldGeneration = big.NewInt(1 << 2) + docPagesInsert200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID = big.NewInt(1 << 0) + docPagesInsert200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docPagesInsert200ResponseMetaAffectedPagesItemRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocPagesDelete200ResponseMetaAffectedPagesItemRevision struct { +type DocPagesInsert200ResponseMetaAffectedPagesItemRevision struct { DocSessionID string `json:"docSessionId" url:"docSessionId"` PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` Generation int `json:"generation" url:"generation"` @@ -134549,35 +153641,35 @@ type DocPagesDelete200ResponseMetaAffectedPagesItemRevision struct { rawJSON json.RawMessage } -func (d *DocPagesDelete200ResponseMetaAffectedPagesItemRevision) GetDocSessionID() string { +func (d *DocPagesInsert200ResponseMetaAffectedPagesItemRevision) GetDocSessionID() string { if d == nil { return "" } return d.DocSessionID } -func (d *DocPagesDelete200ResponseMetaAffectedPagesItemRevision) GetPageObjectNumber() int { +func (d *DocPagesInsert200ResponseMetaAffectedPagesItemRevision) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocPagesDelete200ResponseMetaAffectedPagesItemRevision) GetGeneration() int { +func (d *DocPagesInsert200ResponseMetaAffectedPagesItemRevision) GetGeneration() int { if d == nil { return 0 } return d.Generation } -func (d *DocPagesDelete200ResponseMetaAffectedPagesItemRevision) GetExtraProperties() map[string]interface{} { +func (d *DocPagesInsert200ResponseMetaAffectedPagesItemRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesDelete200ResponseMetaAffectedPagesItemRevision) require(field *big.Int) { +func (d *DocPagesInsert200ResponseMetaAffectedPagesItemRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -134586,32 +153678,32 @@ func (d *DocPagesDelete200ResponseMetaAffectedPagesItemRevision) require(field * // SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesDelete200ResponseMetaAffectedPagesItemRevision) SetDocSessionID(docSessionID string) { +func (d *DocPagesInsert200ResponseMetaAffectedPagesItemRevision) SetDocSessionID(docSessionID string) { d.DocSessionID = docSessionID - d.require(docPagesDelete200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID) + d.require(docPagesInsert200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID) } // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesDelete200ResponseMetaAffectedPagesItemRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocPagesInsert200ResponseMetaAffectedPagesItemRevision) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docPagesDelete200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber) + d.require(docPagesInsert200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber) } // SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesDelete200ResponseMetaAffectedPagesItemRevision) SetGeneration(generation int) { +func (d *DocPagesInsert200ResponseMetaAffectedPagesItemRevision) SetGeneration(generation int) { d.Generation = generation - d.require(docPagesDelete200ResponseMetaAffectedPagesItemRevisionFieldGeneration) + d.require(docPagesInsert200ResponseMetaAffectedPagesItemRevisionFieldGeneration) } -func (d *DocPagesDelete200ResponseMetaAffectedPagesItemRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesDelete200ResponseMetaAffectedPagesItemRevision +func (d *DocPagesInsert200ResponseMetaAffectedPagesItemRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesInsert200ResponseMetaAffectedPagesItemRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesDelete200ResponseMetaAffectedPagesItemRevision(value) + *d = DocPagesInsert200ResponseMetaAffectedPagesItemRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -134621,8 +153713,8 @@ func (d *DocPagesDelete200ResponseMetaAffectedPagesItemRevision) UnmarshalJSON(d return nil } -func (d *DocPagesDelete200ResponseMetaAffectedPagesItemRevision) MarshalJSON() ([]byte, error) { - type embed DocPagesDelete200ResponseMetaAffectedPagesItemRevision +func (d *DocPagesInsert200ResponseMetaAffectedPagesItemRevision) MarshalJSON() ([]byte, error) { + type embed DocPagesInsert200ResponseMetaAffectedPagesItemRevision var marshaler = struct { embed }{ @@ -134632,7 +153724,7 @@ func (d *DocPagesDelete200ResponseMetaAffectedPagesItemRevision) MarshalJSON() ( return json.Marshal(explicitMarshaler) } -func (d *DocPagesDelete200ResponseMetaAffectedPagesItemRevision) String() string { +func (d *DocPagesInsert200ResponseMetaAffectedPagesItemRevision) String() string { if d == nil { return "" } @@ -134647,36 +153739,36 @@ func (d *DocPagesDelete200ResponseMetaAffectedPagesItemRevision) String() string return fmt.Sprintf("%#v", d) } -type DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState struct { +type DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState struct { Kind string - Unknown *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - Known *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + Unknown *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + Known *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown rawJSON json.RawMessage } -func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKind() string { +func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKind() string { if d == nil { return "" } return d.Kind } -func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState) GetUnknown() *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown { +func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState) GetUnknown() *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown { if d == nil { return nil } return d.Unknown } -func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKnown() *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown { +func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKnown() *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown { if d == nil { return nil } return d.Known } -func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState) UnmarshalJSON(data []byte) error { +func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState) UnmarshalJSON(data []byte) error { var unmarshaler struct { Kind string `json:"kind"` } @@ -134689,13 +153781,13 @@ func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState) Unma } switch unmarshaler.Kind { case "unknown": - value := new(DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) + value := new(DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) if err := json.Unmarshal(data, &value); err != nil { return err } d.Unknown = value case "known": - value := new(DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) + value := new(DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) if err := json.Unmarshal(data, &value); err != nil { return err } @@ -134705,7 +153797,7 @@ func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState) Unma return nil } -func (d DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState) MarshalJSON() ([]byte, error) { +func (d DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState) MarshalJSON() ([]byte, error) { if err := d.validate(); err != nil { return nil, err } @@ -134721,12 +153813,12 @@ func (d DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState) Marsh return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -type DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor interface { - VisitUnknown(*DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) error - VisitKnown(*DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) error +type DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor interface { + VisitUnknown(*DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) error + VisitKnown(*DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) error } -func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState) Accept(visitor DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor) error { +func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState) Accept(visitor DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor) error { if d.Unknown != nil { return visitor.VisitUnknown(d.Unknown) } @@ -134736,7 +153828,7 @@ func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState) Acce return fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState) validate() error { +func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState) validate() error { if d == nil { return fmt.Errorf("type %T is nil", d) } @@ -134774,10 +153866,10 @@ func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState) vali } var ( - docPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations = big.NewInt(1 << 0) + docPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations = big.NewInt(1 << 0) ) -type DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown struct { +type DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown struct { HasAnyWeakAnnotations bool `json:"hasAnyWeakAnnotations" url:"hasAnyWeakAnnotations"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -134787,21 +153879,21 @@ type DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown stru rawJSON json.RawMessage } -func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetHasAnyWeakAnnotations() bool { +func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetHasAnyWeakAnnotations() bool { if d == nil { return false } return d.HasAnyWeakAnnotations } -func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetExtraProperties() map[string]interface{} { +func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) require(field *big.Int) { +func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -134810,18 +153902,18 @@ func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) // SetHasAnyWeakAnnotations sets the HasAnyWeakAnnotations field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) SetHasAnyWeakAnnotations(hasAnyWeakAnnotations bool) { +func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) SetHasAnyWeakAnnotations(hasAnyWeakAnnotations bool) { d.HasAnyWeakAnnotations = hasAnyWeakAnnotations - d.require(docPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations) + d.require(docPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations) } -func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown +func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(value) + *d = DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -134831,8 +153923,8 @@ func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) return nil } -func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) MarshalJSON() ([]byte, error) { - type embed DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown +func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) MarshalJSON() ([]byte, error) { + type embed DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown var marshaler = struct { embed }{ @@ -134842,7 +153934,7 @@ func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) return json.Marshal(explicitMarshaler) } -func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) String() string { +func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) String() string { if d == nil { return "" } @@ -134857,7 +153949,7 @@ func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) return fmt.Sprintf("%#v", d) } -type DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown struct { +type DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -134866,27 +153958,27 @@ type DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown st rawJSON json.RawMessage } -func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) GetExtraProperties() map[string]interface{} { +func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) require(field *big.Int) { +func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown +func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(value) + *d = DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -134896,8 +153988,8 @@ func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknow return nil } -func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) MarshalJSON() ([]byte, error) { - type embed DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown +func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) MarshalJSON() ([]byte, error) { + type embed DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown var marshaler = struct { embed }{ @@ -134907,7 +153999,7 @@ func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknow return json.Marshal(explicitMarshaler) } -func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) String() string { +func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) String() string { if d == nil { return "" } @@ -134923,21 +154015,21 @@ func (d *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknow } var ( - docPagesDelete200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) - docPagesDelete200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) - docPagesDelete200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) - docPagesDelete200ResponseMetaCacheDeltaFieldLayerVersion = big.NewInt(1 << 3) - docPagesDelete200ResponseMetaCacheDeltaFieldWorking = big.NewInt(1 << 4) - docPagesDelete200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 5) + docPagesInsert200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) + docPagesInsert200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) + docPagesInsert200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) + docPagesInsert200ResponseMetaCacheDeltaFieldLayerVersion = big.NewInt(1 << 3) + docPagesInsert200ResponseMetaCacheDeltaFieldWorking = big.NewInt(1 << 4) + docPagesInsert200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 5) ) -type DocPagesDelete200ResponseMetaCacheDelta struct { +type DocPagesInsert200ResponseMetaCacheDelta struct { PreviousDocVersion int `json:"previousDocVersion" url:"previousDocVersion"` DocVersion int `json:"docVersion" url:"docVersion"` AnnotationsVersion *int `json:"annotationsVersion,omitempty" url:"annotationsVersion,omitempty"` LayerVersion *int `json:"layerVersion,omitempty" url:"layerVersion,omitempty"` Working *bool `json:"working,omitempty" url:"working,omitempty"` - Pages []*DocPagesDelete200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` + Pages []*DocPagesInsert200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -134946,56 +154038,56 @@ type DocPagesDelete200ResponseMetaCacheDelta struct { rawJSON json.RawMessage } -func (d *DocPagesDelete200ResponseMetaCacheDelta) GetPreviousDocVersion() int { +func (d *DocPagesInsert200ResponseMetaCacheDelta) GetPreviousDocVersion() int { if d == nil { return 0 } return d.PreviousDocVersion } -func (d *DocPagesDelete200ResponseMetaCacheDelta) GetDocVersion() int { +func (d *DocPagesInsert200ResponseMetaCacheDelta) GetDocVersion() int { if d == nil { return 0 } return d.DocVersion } -func (d *DocPagesDelete200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { +func (d *DocPagesInsert200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { if d == nil { return nil } return d.AnnotationsVersion } -func (d *DocPagesDelete200ResponseMetaCacheDelta) GetLayerVersion() *int { +func (d *DocPagesInsert200ResponseMetaCacheDelta) GetLayerVersion() *int { if d == nil { return nil } return d.LayerVersion } -func (d *DocPagesDelete200ResponseMetaCacheDelta) GetWorking() *bool { +func (d *DocPagesInsert200ResponseMetaCacheDelta) GetWorking() *bool { if d == nil { return nil } return d.Working } -func (d *DocPagesDelete200ResponseMetaCacheDelta) GetPages() []*DocPagesDelete200ResponseMetaCacheDeltaPagesItem { +func (d *DocPagesInsert200ResponseMetaCacheDelta) GetPages() []*DocPagesInsert200ResponseMetaCacheDeltaPagesItem { if d == nil { return nil } return d.Pages } -func (d *DocPagesDelete200ResponseMetaCacheDelta) GetExtraProperties() map[string]interface{} { +func (d *DocPagesInsert200ResponseMetaCacheDelta) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesDelete200ResponseMetaCacheDelta) require(field *big.Int) { +func (d *DocPagesInsert200ResponseMetaCacheDelta) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -135004,53 +154096,53 @@ func (d *DocPagesDelete200ResponseMetaCacheDelta) require(field *big.Int) { // SetPreviousDocVersion sets the PreviousDocVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesDelete200ResponseMetaCacheDelta) SetPreviousDocVersion(previousDocVersion int) { +func (d *DocPagesInsert200ResponseMetaCacheDelta) SetPreviousDocVersion(previousDocVersion int) { d.PreviousDocVersion = previousDocVersion - d.require(docPagesDelete200ResponseMetaCacheDeltaFieldPreviousDocVersion) + d.require(docPagesInsert200ResponseMetaCacheDeltaFieldPreviousDocVersion) } // SetDocVersion sets the DocVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesDelete200ResponseMetaCacheDelta) SetDocVersion(docVersion int) { +func (d *DocPagesInsert200ResponseMetaCacheDelta) SetDocVersion(docVersion int) { d.DocVersion = docVersion - d.require(docPagesDelete200ResponseMetaCacheDeltaFieldDocVersion) + d.require(docPagesInsert200ResponseMetaCacheDeltaFieldDocVersion) } // SetAnnotationsVersion sets the AnnotationsVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesDelete200ResponseMetaCacheDelta) SetAnnotationsVersion(annotationsVersion *int) { +func (d *DocPagesInsert200ResponseMetaCacheDelta) SetAnnotationsVersion(annotationsVersion *int) { d.AnnotationsVersion = annotationsVersion - d.require(docPagesDelete200ResponseMetaCacheDeltaFieldAnnotationsVersion) + d.require(docPagesInsert200ResponseMetaCacheDeltaFieldAnnotationsVersion) } // SetLayerVersion sets the LayerVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesDelete200ResponseMetaCacheDelta) SetLayerVersion(layerVersion *int) { +func (d *DocPagesInsert200ResponseMetaCacheDelta) SetLayerVersion(layerVersion *int) { d.LayerVersion = layerVersion - d.require(docPagesDelete200ResponseMetaCacheDeltaFieldLayerVersion) + d.require(docPagesInsert200ResponseMetaCacheDeltaFieldLayerVersion) } // SetWorking sets the Working field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesDelete200ResponseMetaCacheDelta) SetWorking(working *bool) { +func (d *DocPagesInsert200ResponseMetaCacheDelta) SetWorking(working *bool) { d.Working = working - d.require(docPagesDelete200ResponseMetaCacheDeltaFieldWorking) + d.require(docPagesInsert200ResponseMetaCacheDeltaFieldWorking) } // SetPages sets the Pages field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesDelete200ResponseMetaCacheDelta) SetPages(pages []*DocPagesDelete200ResponseMetaCacheDeltaPagesItem) { +func (d *DocPagesInsert200ResponseMetaCacheDelta) SetPages(pages []*DocPagesInsert200ResponseMetaCacheDeltaPagesItem) { d.Pages = pages - d.require(docPagesDelete200ResponseMetaCacheDeltaFieldPages) + d.require(docPagesInsert200ResponseMetaCacheDeltaFieldPages) } -func (d *DocPagesDelete200ResponseMetaCacheDelta) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesDelete200ResponseMetaCacheDelta +func (d *DocPagesInsert200ResponseMetaCacheDelta) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesInsert200ResponseMetaCacheDelta var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesDelete200ResponseMetaCacheDelta(value) + *d = DocPagesInsert200ResponseMetaCacheDelta(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -135060,8 +154152,8 @@ func (d *DocPagesDelete200ResponseMetaCacheDelta) UnmarshalJSON(data []byte) err return nil } -func (d *DocPagesDelete200ResponseMetaCacheDelta) MarshalJSON() ([]byte, error) { - type embed DocPagesDelete200ResponseMetaCacheDelta +func (d *DocPagesInsert200ResponseMetaCacheDelta) MarshalJSON() ([]byte, error) { + type embed DocPagesInsert200ResponseMetaCacheDelta var marshaler = struct { embed }{ @@ -135071,7 +154163,7 @@ func (d *DocPagesDelete200ResponseMetaCacheDelta) MarshalJSON() ([]byte, error) return json.Marshal(explicitMarshaler) } -func (d *DocPagesDelete200ResponseMetaCacheDelta) String() string { +func (d *DocPagesInsert200ResponseMetaCacheDelta) String() string { if d == nil { return "" } @@ -135087,13 +154179,13 @@ func (d *DocPagesDelete200ResponseMetaCacheDelta) String() string { } var ( - docPagesDelete200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) - docPagesDelete200ResponseMetaCacheDeltaPagesItemFieldCache = big.NewInt(1 << 1) + docPagesInsert200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) + docPagesInsert200ResponseMetaCacheDeltaPagesItemFieldCache = big.NewInt(1 << 1) ) -type DocPagesDelete200ResponseMetaCacheDeltaPagesItem struct { +type DocPagesInsert200ResponseMetaCacheDeltaPagesItem struct { PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Cache *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache `json:"cache" url:"cache"` + Cache *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache `json:"cache" url:"cache"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -135102,28 +154194,28 @@ type DocPagesDelete200ResponseMetaCacheDeltaPagesItem struct { rawJSON json.RawMessage } -func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItem) GetPageObjectNumber() int { +func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItem) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItem) GetCache() *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache { +func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItem) GetCache() *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache { if d == nil { return nil } return d.Cache } -func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItem) GetExtraProperties() map[string]interface{} { +func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItem) require(field *big.Int) { +func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -135132,25 +154224,25 @@ func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItem) require(field *big.In // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItem) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItem) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docPagesDelete200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber) + d.require(docPagesInsert200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber) } // SetCache sets the Cache field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItem) SetCache(cache *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache) { +func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItem) SetCache(cache *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache) { d.Cache = cache - d.require(docPagesDelete200ResponseMetaCacheDeltaPagesItemFieldCache) + d.require(docPagesInsert200ResponseMetaCacheDeltaPagesItemFieldCache) } -func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesDelete200ResponseMetaCacheDeltaPagesItem +func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesInsert200ResponseMetaCacheDeltaPagesItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesDelete200ResponseMetaCacheDeltaPagesItem(value) + *d = DocPagesInsert200ResponseMetaCacheDeltaPagesItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -135160,8 +154252,8 @@ func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItem) UnmarshalJSON(data [] return nil } -func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItem) MarshalJSON() ([]byte, error) { - type embed DocPagesDelete200ResponseMetaCacheDeltaPagesItem +func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItem) MarshalJSON() ([]byte, error) { + type embed DocPagesInsert200ResponseMetaCacheDeltaPagesItem var marshaler = struct { embed }{ @@ -135171,7 +154263,7 @@ func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItem) MarshalJSON() ([]byte return json.Marshal(explicitMarshaler) } -func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItem) String() string { +func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItem) String() string { if d == nil { return "" } @@ -135187,11 +154279,11 @@ func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItem) String() string { } var ( - docPagesDelete200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion = big.NewInt(1 << 0) - docPagesDelete200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion = big.NewInt(1 << 1) + docPagesInsert200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion = big.NewInt(1 << 0) + docPagesInsert200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion = big.NewInt(1 << 1) ) -type DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache struct { +type DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache struct { ContentVersion int `json:"contentVersion" url:"contentVersion"` AnnotationVersion int `json:"annotationVersion" url:"annotationVersion"` @@ -135202,28 +154294,28 @@ type DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache struct { rawJSON json.RawMessage } -func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache) GetContentVersion() int { +func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache) GetContentVersion() int { if d == nil { return 0 } return d.ContentVersion } -func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache) GetAnnotationVersion() int { +func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache) GetAnnotationVersion() int { if d == nil { return 0 } return d.AnnotationVersion } -func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache) GetExtraProperties() map[string]interface{} { +func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache) require(field *big.Int) { +func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -135232,25 +154324,25 @@ func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache) require(field *b // SetContentVersion sets the ContentVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache) SetContentVersion(contentVersion int) { +func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache) SetContentVersion(contentVersion int) { d.ContentVersion = contentVersion - d.require(docPagesDelete200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion) + d.require(docPagesInsert200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion) } // SetAnnotationVersion sets the AnnotationVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache) SetAnnotationVersion(annotationVersion int) { +func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache) SetAnnotationVersion(annotationVersion int) { d.AnnotationVersion = annotationVersion - d.require(docPagesDelete200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion) + d.require(docPagesInsert200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion) } -func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache +func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache(value) + *d = DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -135260,8 +154352,8 @@ func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJSON(da return nil } -func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON() ([]byte, error) { - type embed DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache +func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON() ([]byte, error) { + type embed DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache var marshaler = struct { embed }{ @@ -135271,7 +154363,7 @@ func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON() ([ return json.Marshal(explicitMarshaler) } -func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache) String() string { +func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache) String() string { if d == nil { return "" } @@ -135287,15 +154379,15 @@ func (d *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache) String() string } var ( - docPagesDelete400ResponseFieldName = big.NewInt(1 << 0) - docPagesDelete400ResponseFieldCode = big.NewInt(1 << 1) - docPagesDelete400ResponseFieldMessage = big.NewInt(1 << 2) - docPagesDelete400ResponseFieldDetails = big.NewInt(1 << 3) + docPagesInsert400ResponseFieldName = big.NewInt(1 << 0) + docPagesInsert400ResponseFieldCode = big.NewInt(1 << 1) + docPagesInsert400ResponseFieldMessage = big.NewInt(1 << 2) + docPagesInsert400ResponseFieldDetails = big.NewInt(1 << 3) ) -type DocPagesDelete400Response struct { - Name DocPagesDelete400ResponseName `json:"name" url:"name"` - Code DocPagesDelete400ResponseCode `json:"code" url:"code"` +type DocPagesInsert400Response struct { + Name DocPagesInsert400ResponseName `json:"name" url:"name"` + Code DocPagesInsert400ResponseCode `json:"code" url:"code"` Message string `json:"message" url:"message"` Details map[string]any `json:"details,omitempty" url:"details,omitempty"` @@ -135306,42 +154398,42 @@ type DocPagesDelete400Response struct { rawJSON json.RawMessage } -func (d *DocPagesDelete400Response) GetName() DocPagesDelete400ResponseName { +func (d *DocPagesInsert400Response) GetName() DocPagesInsert400ResponseName { if d == nil { return "" } return d.Name } -func (d *DocPagesDelete400Response) GetCode() DocPagesDelete400ResponseCode { +func (d *DocPagesInsert400Response) GetCode() DocPagesInsert400ResponseCode { if d == nil { return "" } return d.Code } -func (d *DocPagesDelete400Response) GetMessage() string { +func (d *DocPagesInsert400Response) GetMessage() string { if d == nil { return "" } return d.Message } -func (d *DocPagesDelete400Response) GetDetails() map[string]any { +func (d *DocPagesInsert400Response) GetDetails() map[string]any { if d == nil { return nil } return d.Details } -func (d *DocPagesDelete400Response) GetExtraProperties() map[string]interface{} { +func (d *DocPagesInsert400Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesDelete400Response) require(field *big.Int) { +func (d *DocPagesInsert400Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -135350,39 +154442,39 @@ func (d *DocPagesDelete400Response) require(field *big.Int) { // SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesDelete400Response) SetName(name DocPagesDelete400ResponseName) { +func (d *DocPagesInsert400Response) SetName(name DocPagesInsert400ResponseName) { d.Name = name - d.require(docPagesDelete400ResponseFieldName) + d.require(docPagesInsert400ResponseFieldName) } // SetCode sets the Code field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesDelete400Response) SetCode(code DocPagesDelete400ResponseCode) { +func (d *DocPagesInsert400Response) SetCode(code DocPagesInsert400ResponseCode) { d.Code = code - d.require(docPagesDelete400ResponseFieldCode) + d.require(docPagesInsert400ResponseFieldCode) } // SetMessage sets the Message field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesDelete400Response) SetMessage(message string) { +func (d *DocPagesInsert400Response) SetMessage(message string) { d.Message = message - d.require(docPagesDelete400ResponseFieldMessage) + d.require(docPagesInsert400ResponseFieldMessage) } // SetDetails sets the Details field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesDelete400Response) SetDetails(details map[string]any) { +func (d *DocPagesInsert400Response) SetDetails(details map[string]any) { d.Details = details - d.require(docPagesDelete400ResponseFieldDetails) + d.require(docPagesInsert400ResponseFieldDetails) } -func (d *DocPagesDelete400Response) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesDelete400Response +func (d *DocPagesInsert400Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesInsert400Response var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesDelete400Response(value) + *d = DocPagesInsert400Response(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -135392,8 +154484,8 @@ func (d *DocPagesDelete400Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocPagesDelete400Response) MarshalJSON() ([]byte, error) { - type embed DocPagesDelete400Response +func (d *DocPagesInsert400Response) MarshalJSON() ([]byte, error) { + type embed DocPagesInsert400Response var marshaler = struct { embed }{ @@ -135403,7 +154495,7 @@ func (d *DocPagesDelete400Response) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocPagesDelete400Response) String() string { +func (d *DocPagesInsert400Response) String() string { if d == nil { return "" } @@ -135418,126 +154510,126 @@ func (d *DocPagesDelete400Response) String() string { return fmt.Sprintf("%#v", d) } -type DocPagesDelete400ResponseCode string +type DocPagesInsert400ResponseCode string const ( - DocPagesDelete400ResponseCodeUnknown DocPagesDelete400ResponseCode = "Unknown" - DocPagesDelete400ResponseCodeInvalidArg DocPagesDelete400ResponseCode = "InvalidArg" - DocPagesDelete400ResponseCodeDocNotOpen DocPagesDelete400ResponseCode = "DocNotOpen" - DocPagesDelete400ResponseCodeDocOpenFailed DocPagesDelete400ResponseCode = "DocOpenFailed" - DocPagesDelete400ResponseCodeDocPasswordRequired DocPagesDelete400ResponseCode = "DocPasswordRequired" - DocPagesDelete400ResponseCodeDocPasswordIncorrect DocPagesDelete400ResponseCode = "DocPasswordIncorrect" - DocPagesDelete400ResponseCodeSharePasswordRequired DocPagesDelete400ResponseCode = "SharePasswordRequired" - DocPagesDelete400ResponseCodeAborted DocPagesDelete400ResponseCode = "Aborted" - DocPagesDelete400ResponseCodeNetwork DocPagesDelete400ResponseCode = "Network" - DocPagesDelete400ResponseCodeUnauthenticated DocPagesDelete400ResponseCode = "Unauthenticated" - DocPagesDelete400ResponseCodeForbidden DocPagesDelete400ResponseCode = "Forbidden" - DocPagesDelete400ResponseCodeNotFound DocPagesDelete400ResponseCode = "NotFound" - DocPagesDelete400ResponseCodeWireFormat DocPagesDelete400ResponseCode = "WireFormat" - DocPagesDelete400ResponseCodeRuntimeUnavailable DocPagesDelete400ResponseCode = "RuntimeUnavailable" - DocPagesDelete400ResponseCodeInvalidReference DocPagesDelete400ResponseCode = "InvalidReference" - DocPagesDelete400ResponseCodeWeakAnnotationSessionConflict DocPagesDelete400ResponseCode = "WeakAnnotationSessionConflict" - DocPagesDelete400ResponseCodeLayerVersionConflict DocPagesDelete400ResponseCode = "LayerVersionConflict" - DocPagesDelete400ResponseCodeNotImplemented DocPagesDelete400ResponseCode = "NotImplemented" - DocPagesDelete400ResponseCodeMalformedPdf DocPagesDelete400ResponseCode = "MalformedPdf" - DocPagesDelete400ResponseCodeSigningPending DocPagesDelete400ResponseCode = "SigningPending" - DocPagesDelete400ResponseCodeSigningExpired DocPagesDelete400ResponseCode = "SigningExpired" - DocPagesDelete400ResponseCodeSigningVersionMismatch DocPagesDelete400ResponseCode = "SigningVersionMismatch" - DocPagesDelete400ResponseCodeSignatureRefused DocPagesDelete400ResponseCode = "SignatureRefused" - DocPagesDelete400ResponseCodeProtectedDocument DocPagesDelete400ResponseCode = "ProtectedDocument" - DocPagesDelete400ResponseCodeStaleBase DocPagesDelete400ResponseCode = "StaleBase" + DocPagesInsert400ResponseCodeUnknown DocPagesInsert400ResponseCode = "Unknown" + DocPagesInsert400ResponseCodeInvalidArg DocPagesInsert400ResponseCode = "InvalidArg" + DocPagesInsert400ResponseCodeDocNotOpen DocPagesInsert400ResponseCode = "DocNotOpen" + DocPagesInsert400ResponseCodeDocOpenFailed DocPagesInsert400ResponseCode = "DocOpenFailed" + DocPagesInsert400ResponseCodeDocPasswordRequired DocPagesInsert400ResponseCode = "DocPasswordRequired" + DocPagesInsert400ResponseCodeDocPasswordIncorrect DocPagesInsert400ResponseCode = "DocPasswordIncorrect" + DocPagesInsert400ResponseCodeSharePasswordRequired DocPagesInsert400ResponseCode = "SharePasswordRequired" + DocPagesInsert400ResponseCodeAborted DocPagesInsert400ResponseCode = "Aborted" + DocPagesInsert400ResponseCodeNetwork DocPagesInsert400ResponseCode = "Network" + DocPagesInsert400ResponseCodeUnauthenticated DocPagesInsert400ResponseCode = "Unauthenticated" + DocPagesInsert400ResponseCodeForbidden DocPagesInsert400ResponseCode = "Forbidden" + DocPagesInsert400ResponseCodeNotFound DocPagesInsert400ResponseCode = "NotFound" + DocPagesInsert400ResponseCodeWireFormat DocPagesInsert400ResponseCode = "WireFormat" + DocPagesInsert400ResponseCodeRuntimeUnavailable DocPagesInsert400ResponseCode = "RuntimeUnavailable" + DocPagesInsert400ResponseCodeInvalidReference DocPagesInsert400ResponseCode = "InvalidReference" + DocPagesInsert400ResponseCodeWeakAnnotationSessionConflict DocPagesInsert400ResponseCode = "WeakAnnotationSessionConflict" + DocPagesInsert400ResponseCodeLayerVersionConflict DocPagesInsert400ResponseCode = "LayerVersionConflict" + DocPagesInsert400ResponseCodeNotImplemented DocPagesInsert400ResponseCode = "NotImplemented" + DocPagesInsert400ResponseCodeMalformedPdf DocPagesInsert400ResponseCode = "MalformedPdf" + DocPagesInsert400ResponseCodeSigningPending DocPagesInsert400ResponseCode = "SigningPending" + DocPagesInsert400ResponseCodeSigningExpired DocPagesInsert400ResponseCode = "SigningExpired" + DocPagesInsert400ResponseCodeSigningVersionMismatch DocPagesInsert400ResponseCode = "SigningVersionMismatch" + DocPagesInsert400ResponseCodeSignatureRefused DocPagesInsert400ResponseCode = "SignatureRefused" + DocPagesInsert400ResponseCodeProtectedDocument DocPagesInsert400ResponseCode = "ProtectedDocument" + DocPagesInsert400ResponseCodeStaleBase DocPagesInsert400ResponseCode = "StaleBase" ) -func NewDocPagesDelete400ResponseCodeFromString(s string) (DocPagesDelete400ResponseCode, error) { +func NewDocPagesInsert400ResponseCodeFromString(s string) (DocPagesInsert400ResponseCode, error) { switch s { case "Unknown": - return DocPagesDelete400ResponseCodeUnknown, nil + return DocPagesInsert400ResponseCodeUnknown, nil case "InvalidArg": - return DocPagesDelete400ResponseCodeInvalidArg, nil + return DocPagesInsert400ResponseCodeInvalidArg, nil case "DocNotOpen": - return DocPagesDelete400ResponseCodeDocNotOpen, nil + return DocPagesInsert400ResponseCodeDocNotOpen, nil case "DocOpenFailed": - return DocPagesDelete400ResponseCodeDocOpenFailed, nil + return DocPagesInsert400ResponseCodeDocOpenFailed, nil case "DocPasswordRequired": - return DocPagesDelete400ResponseCodeDocPasswordRequired, nil + return DocPagesInsert400ResponseCodeDocPasswordRequired, nil case "DocPasswordIncorrect": - return DocPagesDelete400ResponseCodeDocPasswordIncorrect, nil + return DocPagesInsert400ResponseCodeDocPasswordIncorrect, nil case "SharePasswordRequired": - return DocPagesDelete400ResponseCodeSharePasswordRequired, nil + return DocPagesInsert400ResponseCodeSharePasswordRequired, nil case "Aborted": - return DocPagesDelete400ResponseCodeAborted, nil + return DocPagesInsert400ResponseCodeAborted, nil case "Network": - return DocPagesDelete400ResponseCodeNetwork, nil + return DocPagesInsert400ResponseCodeNetwork, nil case "Unauthenticated": - return DocPagesDelete400ResponseCodeUnauthenticated, nil + return DocPagesInsert400ResponseCodeUnauthenticated, nil case "Forbidden": - return DocPagesDelete400ResponseCodeForbidden, nil + return DocPagesInsert400ResponseCodeForbidden, nil case "NotFound": - return DocPagesDelete400ResponseCodeNotFound, nil + return DocPagesInsert400ResponseCodeNotFound, nil case "WireFormat": - return DocPagesDelete400ResponseCodeWireFormat, nil + return DocPagesInsert400ResponseCodeWireFormat, nil case "RuntimeUnavailable": - return DocPagesDelete400ResponseCodeRuntimeUnavailable, nil + return DocPagesInsert400ResponseCodeRuntimeUnavailable, nil case "InvalidReference": - return DocPagesDelete400ResponseCodeInvalidReference, nil + return DocPagesInsert400ResponseCodeInvalidReference, nil case "WeakAnnotationSessionConflict": - return DocPagesDelete400ResponseCodeWeakAnnotationSessionConflict, nil + return DocPagesInsert400ResponseCodeWeakAnnotationSessionConflict, nil case "LayerVersionConflict": - return DocPagesDelete400ResponseCodeLayerVersionConflict, nil + return DocPagesInsert400ResponseCodeLayerVersionConflict, nil case "NotImplemented": - return DocPagesDelete400ResponseCodeNotImplemented, nil + return DocPagesInsert400ResponseCodeNotImplemented, nil case "MalformedPdf": - return DocPagesDelete400ResponseCodeMalformedPdf, nil + return DocPagesInsert400ResponseCodeMalformedPdf, nil case "SigningPending": - return DocPagesDelete400ResponseCodeSigningPending, nil + return DocPagesInsert400ResponseCodeSigningPending, nil case "SigningExpired": - return DocPagesDelete400ResponseCodeSigningExpired, nil + return DocPagesInsert400ResponseCodeSigningExpired, nil case "SigningVersionMismatch": - return DocPagesDelete400ResponseCodeSigningVersionMismatch, nil + return DocPagesInsert400ResponseCodeSigningVersionMismatch, nil case "SignatureRefused": - return DocPagesDelete400ResponseCodeSignatureRefused, nil + return DocPagesInsert400ResponseCodeSignatureRefused, nil case "ProtectedDocument": - return DocPagesDelete400ResponseCodeProtectedDocument, nil + return DocPagesInsert400ResponseCodeProtectedDocument, nil case "StaleBase": - return DocPagesDelete400ResponseCodeStaleBase, nil + return DocPagesInsert400ResponseCodeStaleBase, nil } - var t DocPagesDelete400ResponseCode + var t DocPagesInsert400ResponseCode return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocPagesDelete400ResponseCode) Ptr() *DocPagesDelete400ResponseCode { +func (d DocPagesInsert400ResponseCode) Ptr() *DocPagesInsert400ResponseCode { return &d } -type DocPagesDelete400ResponseName string +type DocPagesInsert400ResponseName string const ( - DocPagesDelete400ResponseNameEngineError DocPagesDelete400ResponseName = "EngineError" + DocPagesInsert400ResponseNameEngineError DocPagesInsert400ResponseName = "EngineError" ) -func NewDocPagesDelete400ResponseNameFromString(s string) (DocPagesDelete400ResponseName, error) { +func NewDocPagesInsert400ResponseNameFromString(s string) (DocPagesInsert400ResponseName, error) { switch s { case "EngineError": - return DocPagesDelete400ResponseNameEngineError, nil + return DocPagesInsert400ResponseNameEngineError, nil } - var t DocPagesDelete400ResponseName + var t DocPagesInsert400ResponseName return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocPagesDelete400ResponseName) Ptr() *DocPagesDelete400ResponseName { +func (d DocPagesInsert400ResponseName) Ptr() *DocPagesInsert400ResponseName { return &d } var ( - docPagesDelete404ResponseFieldName = big.NewInt(1 << 0) - docPagesDelete404ResponseFieldCode = big.NewInt(1 << 1) - docPagesDelete404ResponseFieldMessage = big.NewInt(1 << 2) - docPagesDelete404ResponseFieldDetails = big.NewInt(1 << 3) + docPagesInsert404ResponseFieldName = big.NewInt(1 << 0) + docPagesInsert404ResponseFieldCode = big.NewInt(1 << 1) + docPagesInsert404ResponseFieldMessage = big.NewInt(1 << 2) + docPagesInsert404ResponseFieldDetails = big.NewInt(1 << 3) ) -type DocPagesDelete404Response struct { - Name DocPagesDelete404ResponseName `json:"name" url:"name"` - Code DocPagesDelete404ResponseCode `json:"code" url:"code"` +type DocPagesInsert404Response struct { + Name DocPagesInsert404ResponseName `json:"name" url:"name"` + Code DocPagesInsert404ResponseCode `json:"code" url:"code"` Message string `json:"message" url:"message"` Details map[string]any `json:"details,omitempty" url:"details,omitempty"` @@ -135548,42 +154640,42 @@ type DocPagesDelete404Response struct { rawJSON json.RawMessage } -func (d *DocPagesDelete404Response) GetName() DocPagesDelete404ResponseName { +func (d *DocPagesInsert404Response) GetName() DocPagesInsert404ResponseName { if d == nil { return "" } return d.Name } -func (d *DocPagesDelete404Response) GetCode() DocPagesDelete404ResponseCode { +func (d *DocPagesInsert404Response) GetCode() DocPagesInsert404ResponseCode { if d == nil { return "" } return d.Code } -func (d *DocPagesDelete404Response) GetMessage() string { +func (d *DocPagesInsert404Response) GetMessage() string { if d == nil { return "" } return d.Message } -func (d *DocPagesDelete404Response) GetDetails() map[string]any { +func (d *DocPagesInsert404Response) GetDetails() map[string]any { if d == nil { return nil } return d.Details } -func (d *DocPagesDelete404Response) GetExtraProperties() map[string]interface{} { +func (d *DocPagesInsert404Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesDelete404Response) require(field *big.Int) { +func (d *DocPagesInsert404Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -135592,39 +154684,39 @@ func (d *DocPagesDelete404Response) require(field *big.Int) { // SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesDelete404Response) SetName(name DocPagesDelete404ResponseName) { +func (d *DocPagesInsert404Response) SetName(name DocPagesInsert404ResponseName) { d.Name = name - d.require(docPagesDelete404ResponseFieldName) + d.require(docPagesInsert404ResponseFieldName) } // SetCode sets the Code field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesDelete404Response) SetCode(code DocPagesDelete404ResponseCode) { +func (d *DocPagesInsert404Response) SetCode(code DocPagesInsert404ResponseCode) { d.Code = code - d.require(docPagesDelete404ResponseFieldCode) + d.require(docPagesInsert404ResponseFieldCode) } // SetMessage sets the Message field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesDelete404Response) SetMessage(message string) { +func (d *DocPagesInsert404Response) SetMessage(message string) { d.Message = message - d.require(docPagesDelete404ResponseFieldMessage) + d.require(docPagesInsert404ResponseFieldMessage) } // SetDetails sets the Details field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesDelete404Response) SetDetails(details map[string]any) { +func (d *DocPagesInsert404Response) SetDetails(details map[string]any) { d.Details = details - d.require(docPagesDelete404ResponseFieldDetails) + d.require(docPagesInsert404ResponseFieldDetails) } -func (d *DocPagesDelete404Response) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesDelete404Response +func (d *DocPagesInsert404Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesInsert404Response var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesDelete404Response(value) + *d = DocPagesInsert404Response(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -135634,8 +154726,8 @@ func (d *DocPagesDelete404Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocPagesDelete404Response) MarshalJSON() ([]byte, error) { - type embed DocPagesDelete404Response +func (d *DocPagesInsert404Response) MarshalJSON() ([]byte, error) { + type embed DocPagesInsert404Response var marshaler = struct { embed }{ @@ -135645,7 +154737,7 @@ func (d *DocPagesDelete404Response) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocPagesDelete404Response) String() string { +func (d *DocPagesInsert404Response) String() string { if d == nil { return "" } @@ -135660,215 +154752,270 @@ func (d *DocPagesDelete404Response) String() string { return fmt.Sprintf("%#v", d) } -type DocPagesDelete404ResponseCode string +type DocPagesInsert404ResponseCode string const ( - DocPagesDelete404ResponseCodeUnknown DocPagesDelete404ResponseCode = "Unknown" - DocPagesDelete404ResponseCodeInvalidArg DocPagesDelete404ResponseCode = "InvalidArg" - DocPagesDelete404ResponseCodeDocNotOpen DocPagesDelete404ResponseCode = "DocNotOpen" - DocPagesDelete404ResponseCodeDocOpenFailed DocPagesDelete404ResponseCode = "DocOpenFailed" - DocPagesDelete404ResponseCodeDocPasswordRequired DocPagesDelete404ResponseCode = "DocPasswordRequired" - DocPagesDelete404ResponseCodeDocPasswordIncorrect DocPagesDelete404ResponseCode = "DocPasswordIncorrect" - DocPagesDelete404ResponseCodeSharePasswordRequired DocPagesDelete404ResponseCode = "SharePasswordRequired" - DocPagesDelete404ResponseCodeAborted DocPagesDelete404ResponseCode = "Aborted" - DocPagesDelete404ResponseCodeNetwork DocPagesDelete404ResponseCode = "Network" - DocPagesDelete404ResponseCodeUnauthenticated DocPagesDelete404ResponseCode = "Unauthenticated" - DocPagesDelete404ResponseCodeForbidden DocPagesDelete404ResponseCode = "Forbidden" - DocPagesDelete404ResponseCodeNotFound DocPagesDelete404ResponseCode = "NotFound" - DocPagesDelete404ResponseCodeWireFormat DocPagesDelete404ResponseCode = "WireFormat" - DocPagesDelete404ResponseCodeRuntimeUnavailable DocPagesDelete404ResponseCode = "RuntimeUnavailable" - DocPagesDelete404ResponseCodeInvalidReference DocPagesDelete404ResponseCode = "InvalidReference" - DocPagesDelete404ResponseCodeWeakAnnotationSessionConflict DocPagesDelete404ResponseCode = "WeakAnnotationSessionConflict" - DocPagesDelete404ResponseCodeLayerVersionConflict DocPagesDelete404ResponseCode = "LayerVersionConflict" - DocPagesDelete404ResponseCodeNotImplemented DocPagesDelete404ResponseCode = "NotImplemented" - DocPagesDelete404ResponseCodeMalformedPdf DocPagesDelete404ResponseCode = "MalformedPdf" - DocPagesDelete404ResponseCodeSigningPending DocPagesDelete404ResponseCode = "SigningPending" - DocPagesDelete404ResponseCodeSigningExpired DocPagesDelete404ResponseCode = "SigningExpired" - DocPagesDelete404ResponseCodeSigningVersionMismatch DocPagesDelete404ResponseCode = "SigningVersionMismatch" - DocPagesDelete404ResponseCodeSignatureRefused DocPagesDelete404ResponseCode = "SignatureRefused" - DocPagesDelete404ResponseCodeProtectedDocument DocPagesDelete404ResponseCode = "ProtectedDocument" - DocPagesDelete404ResponseCodeStaleBase DocPagesDelete404ResponseCode = "StaleBase" + DocPagesInsert404ResponseCodeUnknown DocPagesInsert404ResponseCode = "Unknown" + DocPagesInsert404ResponseCodeInvalidArg DocPagesInsert404ResponseCode = "InvalidArg" + DocPagesInsert404ResponseCodeDocNotOpen DocPagesInsert404ResponseCode = "DocNotOpen" + DocPagesInsert404ResponseCodeDocOpenFailed DocPagesInsert404ResponseCode = "DocOpenFailed" + DocPagesInsert404ResponseCodeDocPasswordRequired DocPagesInsert404ResponseCode = "DocPasswordRequired" + DocPagesInsert404ResponseCodeDocPasswordIncorrect DocPagesInsert404ResponseCode = "DocPasswordIncorrect" + DocPagesInsert404ResponseCodeSharePasswordRequired DocPagesInsert404ResponseCode = "SharePasswordRequired" + DocPagesInsert404ResponseCodeAborted DocPagesInsert404ResponseCode = "Aborted" + DocPagesInsert404ResponseCodeNetwork DocPagesInsert404ResponseCode = "Network" + DocPagesInsert404ResponseCodeUnauthenticated DocPagesInsert404ResponseCode = "Unauthenticated" + DocPagesInsert404ResponseCodeForbidden DocPagesInsert404ResponseCode = "Forbidden" + DocPagesInsert404ResponseCodeNotFound DocPagesInsert404ResponseCode = "NotFound" + DocPagesInsert404ResponseCodeWireFormat DocPagesInsert404ResponseCode = "WireFormat" + DocPagesInsert404ResponseCodeRuntimeUnavailable DocPagesInsert404ResponseCode = "RuntimeUnavailable" + DocPagesInsert404ResponseCodeInvalidReference DocPagesInsert404ResponseCode = "InvalidReference" + DocPagesInsert404ResponseCodeWeakAnnotationSessionConflict DocPagesInsert404ResponseCode = "WeakAnnotationSessionConflict" + DocPagesInsert404ResponseCodeLayerVersionConflict DocPagesInsert404ResponseCode = "LayerVersionConflict" + DocPagesInsert404ResponseCodeNotImplemented DocPagesInsert404ResponseCode = "NotImplemented" + DocPagesInsert404ResponseCodeMalformedPdf DocPagesInsert404ResponseCode = "MalformedPdf" + DocPagesInsert404ResponseCodeSigningPending DocPagesInsert404ResponseCode = "SigningPending" + DocPagesInsert404ResponseCodeSigningExpired DocPagesInsert404ResponseCode = "SigningExpired" + DocPagesInsert404ResponseCodeSigningVersionMismatch DocPagesInsert404ResponseCode = "SigningVersionMismatch" + DocPagesInsert404ResponseCodeSignatureRefused DocPagesInsert404ResponseCode = "SignatureRefused" + DocPagesInsert404ResponseCodeProtectedDocument DocPagesInsert404ResponseCode = "ProtectedDocument" + DocPagesInsert404ResponseCodeStaleBase DocPagesInsert404ResponseCode = "StaleBase" ) -func NewDocPagesDelete404ResponseCodeFromString(s string) (DocPagesDelete404ResponseCode, error) { +func NewDocPagesInsert404ResponseCodeFromString(s string) (DocPagesInsert404ResponseCode, error) { switch s { case "Unknown": - return DocPagesDelete404ResponseCodeUnknown, nil + return DocPagesInsert404ResponseCodeUnknown, nil case "InvalidArg": - return DocPagesDelete404ResponseCodeInvalidArg, nil + return DocPagesInsert404ResponseCodeInvalidArg, nil case "DocNotOpen": - return DocPagesDelete404ResponseCodeDocNotOpen, nil + return DocPagesInsert404ResponseCodeDocNotOpen, nil case "DocOpenFailed": - return DocPagesDelete404ResponseCodeDocOpenFailed, nil + return DocPagesInsert404ResponseCodeDocOpenFailed, nil case "DocPasswordRequired": - return DocPagesDelete404ResponseCodeDocPasswordRequired, nil + return DocPagesInsert404ResponseCodeDocPasswordRequired, nil case "DocPasswordIncorrect": - return DocPagesDelete404ResponseCodeDocPasswordIncorrect, nil + return DocPagesInsert404ResponseCodeDocPasswordIncorrect, nil case "SharePasswordRequired": - return DocPagesDelete404ResponseCodeSharePasswordRequired, nil + return DocPagesInsert404ResponseCodeSharePasswordRequired, nil case "Aborted": - return DocPagesDelete404ResponseCodeAborted, nil + return DocPagesInsert404ResponseCodeAborted, nil case "Network": - return DocPagesDelete404ResponseCodeNetwork, nil + return DocPagesInsert404ResponseCodeNetwork, nil case "Unauthenticated": - return DocPagesDelete404ResponseCodeUnauthenticated, nil + return DocPagesInsert404ResponseCodeUnauthenticated, nil case "Forbidden": - return DocPagesDelete404ResponseCodeForbidden, nil + return DocPagesInsert404ResponseCodeForbidden, nil case "NotFound": - return DocPagesDelete404ResponseCodeNotFound, nil + return DocPagesInsert404ResponseCodeNotFound, nil case "WireFormat": - return DocPagesDelete404ResponseCodeWireFormat, nil + return DocPagesInsert404ResponseCodeWireFormat, nil case "RuntimeUnavailable": - return DocPagesDelete404ResponseCodeRuntimeUnavailable, nil + return DocPagesInsert404ResponseCodeRuntimeUnavailable, nil case "InvalidReference": - return DocPagesDelete404ResponseCodeInvalidReference, nil + return DocPagesInsert404ResponseCodeInvalidReference, nil case "WeakAnnotationSessionConflict": - return DocPagesDelete404ResponseCodeWeakAnnotationSessionConflict, nil + return DocPagesInsert404ResponseCodeWeakAnnotationSessionConflict, nil case "LayerVersionConflict": - return DocPagesDelete404ResponseCodeLayerVersionConflict, nil + return DocPagesInsert404ResponseCodeLayerVersionConflict, nil case "NotImplemented": - return DocPagesDelete404ResponseCodeNotImplemented, nil + return DocPagesInsert404ResponseCodeNotImplemented, nil case "MalformedPdf": - return DocPagesDelete404ResponseCodeMalformedPdf, nil + return DocPagesInsert404ResponseCodeMalformedPdf, nil case "SigningPending": - return DocPagesDelete404ResponseCodeSigningPending, nil + return DocPagesInsert404ResponseCodeSigningPending, nil case "SigningExpired": - return DocPagesDelete404ResponseCodeSigningExpired, nil + return DocPagesInsert404ResponseCodeSigningExpired, nil case "SigningVersionMismatch": - return DocPagesDelete404ResponseCodeSigningVersionMismatch, nil + return DocPagesInsert404ResponseCodeSigningVersionMismatch, nil case "SignatureRefused": - return DocPagesDelete404ResponseCodeSignatureRefused, nil + return DocPagesInsert404ResponseCodeSignatureRefused, nil case "ProtectedDocument": - return DocPagesDelete404ResponseCodeProtectedDocument, nil + return DocPagesInsert404ResponseCodeProtectedDocument, nil case "StaleBase": - return DocPagesDelete404ResponseCodeStaleBase, nil + return DocPagesInsert404ResponseCodeStaleBase, nil } - var t DocPagesDelete404ResponseCode + var t DocPagesInsert404ResponseCode return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocPagesDelete404ResponseCode) Ptr() *DocPagesDelete404ResponseCode { +func (d DocPagesInsert404ResponseCode) Ptr() *DocPagesInsert404ResponseCode { return &d } -type DocPagesDelete404ResponseName string +type DocPagesInsert404ResponseName string const ( - DocPagesDelete404ResponseNameEngineError DocPagesDelete404ResponseName = "EngineError" + DocPagesInsert404ResponseNameEngineError DocPagesInsert404ResponseName = "EngineError" ) -func NewDocPagesDelete404ResponseNameFromString(s string) (DocPagesDelete404ResponseName, error) { +func NewDocPagesInsert404ResponseNameFromString(s string) (DocPagesInsert404ResponseName, error) { switch s { case "EngineError": - return DocPagesDelete404ResponseNameEngineError, nil + return DocPagesInsert404ResponseNameEngineError, nil } - var t DocPagesDelete404ResponseName + var t DocPagesInsert404ResponseName return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocPagesDelete404ResponseName) Ptr() *DocPagesDelete404ResponseName { +func (d DocPagesInsert404ResponseName) Ptr() *DocPagesInsert404ResponseName { return &d } -type DocPagesDeleteRequest = map[string]any - var ( - docPagesExtract400ResponseFieldName = big.NewInt(1 << 0) - docPagesExtract400ResponseFieldCode = big.NewInt(1 << 1) - docPagesExtract400ResponseFieldMessage = big.NewInt(1 << 2) - docPagesExtract400ResponseFieldDetails = big.NewInt(1 << 3) + docPagesInsertBlank200ResponseFieldMeta = big.NewInt(1 << 0) ) -type DocPagesExtract400Response struct { - Name DocPagesExtract400ResponseName `json:"name" url:"name"` - Code DocPagesExtract400ResponseCode `json:"code" url:"code"` - Message string `json:"message" url:"message"` - Details map[string]any `json:"details,omitempty" url:"details,omitempty"` +type DocPagesInsertBlank200Response struct { + Meta *DocPagesInsertBlank200ResponseMeta `json:"meta" url:"meta"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` - extraProperties map[string]interface{} - rawJSON json.RawMessage + ExtraProperties map[string]interface{} `json:"-" url:"-"` + + rawJSON json.RawMessage } -func (d *DocPagesExtract400Response) GetName() DocPagesExtract400ResponseName { +func (d *DocPagesInsertBlank200Response) GetMeta() *DocPagesInsertBlank200ResponseMeta { if d == nil { - return "" + return nil } - return d.Name + return d.Meta } -func (d *DocPagesExtract400Response) GetCode() DocPagesExtract400ResponseCode { +func (d *DocPagesInsertBlank200Response) GetExtraProperties() map[string]interface{} { if d == nil { - return "" + return nil } - return d.Code + return d.ExtraProperties } -func (d *DocPagesExtract400Response) GetMessage() string { +func (d *DocPagesInsertBlank200Response) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetMeta sets the Meta field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesInsertBlank200Response) SetMeta(meta *DocPagesInsertBlank200ResponseMeta) { + d.Meta = meta + d.require(docPagesInsertBlank200ResponseFieldMeta) +} + +func (d *DocPagesInsertBlank200Response) UnmarshalJSON(data []byte) error { + type embed DocPagesInsertBlank200Response + var unmarshaler = struct { + embed + }{ + embed: embed(*d), + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + *d = DocPagesInsertBlank200Response(unmarshaler.embed) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.ExtraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocPagesInsertBlank200Response) MarshalJSON() ([]byte, error) { + type embed DocPagesInsertBlank200Response + var marshaler = struct { + embed + }{ + embed: embed(*d), + } + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return internal.MarshalJSONWithExtraProperties(explicitMarshaler, d.ExtraProperties) +} + +func (d *DocPagesInsertBlank200Response) String() string { if d == nil { - return "" + return "" } - return d.Message + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } -func (d *DocPagesExtract400Response) GetDetails() map[string]any { +var ( + docPagesInsertBlank200ResponseMetaFieldAffectedPages = big.NewInt(1 << 0) + docPagesInsertBlank200ResponseMetaFieldCacheDelta = big.NewInt(1 << 1) +) + +type DocPagesInsertBlank200ResponseMeta struct { + AffectedPages []*DocPagesInsertBlank200ResponseMetaAffectedPagesItem `json:"affectedPages" url:"affectedPages"` + CacheDelta *DocPagesInsertBlank200ResponseMetaCacheDelta `json:"cacheDelta,omitempty" url:"cacheDelta,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocPagesInsertBlank200ResponseMeta) GetAffectedPages() []*DocPagesInsertBlank200ResponseMetaAffectedPagesItem { if d == nil { return nil } - return d.Details + return d.AffectedPages } -func (d *DocPagesExtract400Response) GetExtraProperties() map[string]interface{} { +func (d *DocPagesInsertBlank200ResponseMeta) GetCacheDelta() *DocPagesInsertBlank200ResponseMetaCacheDelta { + if d == nil { + return nil + } + return d.CacheDelta +} + +func (d *DocPagesInsertBlank200ResponseMeta) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesExtract400Response) require(field *big.Int) { +func (d *DocPagesInsertBlank200ResponseMeta) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetName sets the Name field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesExtract400Response) SetName(name DocPagesExtract400ResponseName) { - d.Name = name - d.require(docPagesExtract400ResponseFieldName) -} - -// SetCode sets the Code field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesExtract400Response) SetCode(code DocPagesExtract400ResponseCode) { - d.Code = code - d.require(docPagesExtract400ResponseFieldCode) -} - -// SetMessage sets the Message field and marks it as non-optional; +// SetAffectedPages sets the AffectedPages field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesExtract400Response) SetMessage(message string) { - d.Message = message - d.require(docPagesExtract400ResponseFieldMessage) +func (d *DocPagesInsertBlank200ResponseMeta) SetAffectedPages(affectedPages []*DocPagesInsertBlank200ResponseMetaAffectedPagesItem) { + d.AffectedPages = affectedPages + d.require(docPagesInsertBlank200ResponseMetaFieldAffectedPages) } -// SetDetails sets the Details field and marks it as non-optional; +// SetCacheDelta sets the CacheDelta field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesExtract400Response) SetDetails(details map[string]any) { - d.Details = details - d.require(docPagesExtract400ResponseFieldDetails) +func (d *DocPagesInsertBlank200ResponseMeta) SetCacheDelta(cacheDelta *DocPagesInsertBlank200ResponseMetaCacheDelta) { + d.CacheDelta = cacheDelta + d.require(docPagesInsertBlank200ResponseMetaFieldCacheDelta) } -func (d *DocPagesExtract400Response) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesExtract400Response +func (d *DocPagesInsertBlank200ResponseMeta) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesInsertBlank200ResponseMeta var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesExtract400Response(value) + *d = DocPagesInsertBlank200ResponseMeta(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -135878,8 +155025,8 @@ func (d *DocPagesExtract400Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocPagesExtract400Response) MarshalJSON() ([]byte, error) { - type embed DocPagesExtract400Response +func (d *DocPagesInsertBlank200ResponseMeta) MarshalJSON() ([]byte, error) { + type embed DocPagesInsertBlank200ResponseMeta var marshaler = struct { embed }{ @@ -135889,7 +155036,7 @@ func (d *DocPagesExtract400Response) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocPagesExtract400Response) String() string { +func (d *DocPagesInsertBlank200ResponseMeta) String() string { if d == nil { return "" } @@ -135904,128 +155051,132 @@ func (d *DocPagesExtract400Response) String() string { return fmt.Sprintf("%#v", d) } -type DocPagesExtract400ResponseCode string - -const ( - DocPagesExtract400ResponseCodeUnknown DocPagesExtract400ResponseCode = "Unknown" - DocPagesExtract400ResponseCodeInvalidArg DocPagesExtract400ResponseCode = "InvalidArg" - DocPagesExtract400ResponseCodeDocNotOpen DocPagesExtract400ResponseCode = "DocNotOpen" - DocPagesExtract400ResponseCodeDocOpenFailed DocPagesExtract400ResponseCode = "DocOpenFailed" - DocPagesExtract400ResponseCodeDocPasswordRequired DocPagesExtract400ResponseCode = "DocPasswordRequired" - DocPagesExtract400ResponseCodeDocPasswordIncorrect DocPagesExtract400ResponseCode = "DocPasswordIncorrect" - DocPagesExtract400ResponseCodeSharePasswordRequired DocPagesExtract400ResponseCode = "SharePasswordRequired" - DocPagesExtract400ResponseCodeAborted DocPagesExtract400ResponseCode = "Aborted" - DocPagesExtract400ResponseCodeNetwork DocPagesExtract400ResponseCode = "Network" - DocPagesExtract400ResponseCodeUnauthenticated DocPagesExtract400ResponseCode = "Unauthenticated" - DocPagesExtract400ResponseCodeForbidden DocPagesExtract400ResponseCode = "Forbidden" - DocPagesExtract400ResponseCodeNotFound DocPagesExtract400ResponseCode = "NotFound" - DocPagesExtract400ResponseCodeWireFormat DocPagesExtract400ResponseCode = "WireFormat" - DocPagesExtract400ResponseCodeRuntimeUnavailable DocPagesExtract400ResponseCode = "RuntimeUnavailable" - DocPagesExtract400ResponseCodeInvalidReference DocPagesExtract400ResponseCode = "InvalidReference" - DocPagesExtract400ResponseCodeWeakAnnotationSessionConflict DocPagesExtract400ResponseCode = "WeakAnnotationSessionConflict" - DocPagesExtract400ResponseCodeLayerVersionConflict DocPagesExtract400ResponseCode = "LayerVersionConflict" - DocPagesExtract400ResponseCodeNotImplemented DocPagesExtract400ResponseCode = "NotImplemented" - DocPagesExtract400ResponseCodeMalformedPdf DocPagesExtract400ResponseCode = "MalformedPdf" - DocPagesExtract400ResponseCodeSigningPending DocPagesExtract400ResponseCode = "SigningPending" - DocPagesExtract400ResponseCodeSigningExpired DocPagesExtract400ResponseCode = "SigningExpired" - DocPagesExtract400ResponseCodeSigningVersionMismatch DocPagesExtract400ResponseCode = "SigningVersionMismatch" - DocPagesExtract400ResponseCodeSignatureRefused DocPagesExtract400ResponseCode = "SignatureRefused" - DocPagesExtract400ResponseCodeProtectedDocument DocPagesExtract400ResponseCode = "ProtectedDocument" - DocPagesExtract400ResponseCodeStaleBase DocPagesExtract400ResponseCode = "StaleBase" +var ( + docPagesInsertBlank200ResponseMetaAffectedPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) + docPagesInsertBlank200ResponseMetaAffectedPagesItemFieldRevision = big.NewInt(1 << 1) + docPagesInsertBlank200ResponseMetaAffectedPagesItemFieldWeakAnnotationState = big.NewInt(1 << 2) ) -func NewDocPagesExtract400ResponseCodeFromString(s string) (DocPagesExtract400ResponseCode, error) { - switch s { - case "Unknown": - return DocPagesExtract400ResponseCodeUnknown, nil - case "InvalidArg": - return DocPagesExtract400ResponseCodeInvalidArg, nil - case "DocNotOpen": - return DocPagesExtract400ResponseCodeDocNotOpen, nil - case "DocOpenFailed": - return DocPagesExtract400ResponseCodeDocOpenFailed, nil - case "DocPasswordRequired": - return DocPagesExtract400ResponseCodeDocPasswordRequired, nil - case "DocPasswordIncorrect": - return DocPagesExtract400ResponseCodeDocPasswordIncorrect, nil - case "SharePasswordRequired": - return DocPagesExtract400ResponseCodeSharePasswordRequired, nil - case "Aborted": - return DocPagesExtract400ResponseCodeAborted, nil - case "Network": - return DocPagesExtract400ResponseCodeNetwork, nil - case "Unauthenticated": - return DocPagesExtract400ResponseCodeUnauthenticated, nil - case "Forbidden": - return DocPagesExtract400ResponseCodeForbidden, nil - case "NotFound": - return DocPagesExtract400ResponseCodeNotFound, nil - case "WireFormat": - return DocPagesExtract400ResponseCodeWireFormat, nil - case "RuntimeUnavailable": - return DocPagesExtract400ResponseCodeRuntimeUnavailable, nil - case "InvalidReference": - return DocPagesExtract400ResponseCodeInvalidReference, nil - case "WeakAnnotationSessionConflict": - return DocPagesExtract400ResponseCodeWeakAnnotationSessionConflict, nil - case "LayerVersionConflict": - return DocPagesExtract400ResponseCodeLayerVersionConflict, nil - case "NotImplemented": - return DocPagesExtract400ResponseCodeNotImplemented, nil - case "MalformedPdf": - return DocPagesExtract400ResponseCodeMalformedPdf, nil - case "SigningPending": - return DocPagesExtract400ResponseCodeSigningPending, nil - case "SigningExpired": - return DocPagesExtract400ResponseCodeSigningExpired, nil - case "SigningVersionMismatch": - return DocPagesExtract400ResponseCodeSigningVersionMismatch, nil - case "SignatureRefused": - return DocPagesExtract400ResponseCodeSignatureRefused, nil - case "ProtectedDocument": - return DocPagesExtract400ResponseCodeProtectedDocument, nil - case "StaleBase": - return DocPagesExtract400ResponseCodeStaleBase, nil +type DocPagesInsertBlank200ResponseMetaAffectedPagesItem struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Revision *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision `json:"revision" url:"revision"` + WeakAnnotationState *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState `json:"weakAnnotationState" url:"weakAnnotationState"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItem) GetPageObjectNumber() int { + if d == nil { + return 0 } - var t DocPagesExtract400ResponseCode - return "", fmt.Errorf("%s is not a valid %T", s, t) + return d.PageObjectNumber } -func (d DocPagesExtract400ResponseCode) Ptr() *DocPagesExtract400ResponseCode { - return &d +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItem) GetRevision() *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision { + if d == nil { + return nil + } + return d.Revision } -type DocPagesExtract400ResponseName string +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItem) GetWeakAnnotationState() *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState { + if d == nil { + return nil + } + return d.WeakAnnotationState +} -const ( - DocPagesExtract400ResponseNameEngineError DocPagesExtract400ResponseName = "EngineError" -) +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItem) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItem) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItem) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docPagesInsertBlank200ResponseMetaAffectedPagesItemFieldPageObjectNumber) +} + +// SetRevision sets the Revision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItem) SetRevision(revision *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision) { + d.Revision = revision + d.require(docPagesInsertBlank200ResponseMetaAffectedPagesItemFieldRevision) +} + +// SetWeakAnnotationState sets the WeakAnnotationState field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItem) SetWeakAnnotationState(weakAnnotationState *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState) { + d.WeakAnnotationState = weakAnnotationState + d.require(docPagesInsertBlank200ResponseMetaAffectedPagesItemFieldWeakAnnotationState) +} + +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesInsertBlank200ResponseMetaAffectedPagesItem + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocPagesInsertBlank200ResponseMetaAffectedPagesItem(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} -func NewDocPagesExtract400ResponseNameFromString(s string) (DocPagesExtract400ResponseName, error) { - switch s { - case "EngineError": - return DocPagesExtract400ResponseNameEngineError, nil +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItem) MarshalJSON() ([]byte, error) { + type embed DocPagesInsertBlank200ResponseMetaAffectedPagesItem + var marshaler = struct { + embed + }{ + embed: embed(*d), } - var t DocPagesExtract400ResponseName - return "", fmt.Errorf("%s is not a valid %T", s, t) + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d DocPagesExtract400ResponseName) Ptr() *DocPagesExtract400ResponseName { - return &d +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItem) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } var ( - docPagesExtract404ResponseFieldName = big.NewInt(1 << 0) - docPagesExtract404ResponseFieldCode = big.NewInt(1 << 1) - docPagesExtract404ResponseFieldMessage = big.NewInt(1 << 2) - docPagesExtract404ResponseFieldDetails = big.NewInt(1 << 3) + docPagesInsertBlank200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID = big.NewInt(1 << 0) + docPagesInsertBlank200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docPagesInsertBlank200ResponseMetaAffectedPagesItemRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocPagesExtract404Response struct { - Name DocPagesExtract404ResponseName `json:"name" url:"name"` - Code DocPagesExtract404ResponseCode `json:"code" url:"code"` - Message string `json:"message" url:"message"` - Details map[string]any `json:"details,omitempty" url:"details,omitempty"` +type DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -136034,83 +155185,69 @@ type DocPagesExtract404Response struct { rawJSON json.RawMessage } -func (d *DocPagesExtract404Response) GetName() DocPagesExtract404ResponseName { - if d == nil { - return "" - } - return d.Name -} - -func (d *DocPagesExtract404Response) GetCode() DocPagesExtract404ResponseCode { +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision) GetDocSessionID() string { if d == nil { return "" } - return d.Code + return d.DocSessionID } -func (d *DocPagesExtract404Response) GetMessage() string { +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision) GetPageObjectNumber() int { if d == nil { - return "" + return 0 } - return d.Message + return d.PageObjectNumber } -func (d *DocPagesExtract404Response) GetDetails() map[string]any { +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision) GetGeneration() int { if d == nil { - return nil + return 0 } - return d.Details + return d.Generation } -func (d *DocPagesExtract404Response) GetExtraProperties() map[string]interface{} { +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesExtract404Response) require(field *big.Int) { +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetName sets the Name field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesExtract404Response) SetName(name DocPagesExtract404ResponseName) { - d.Name = name - d.require(docPagesExtract404ResponseFieldName) -} - -// SetCode sets the Code field and marks it as non-optional; +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesExtract404Response) SetCode(code DocPagesExtract404ResponseCode) { - d.Code = code - d.require(docPagesExtract404ResponseFieldCode) +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docPagesInsertBlank200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID) } -// SetMessage sets the Message field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesExtract404Response) SetMessage(message string) { - d.Message = message - d.require(docPagesExtract404ResponseFieldMessage) +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docPagesInsertBlank200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber) } -// SetDetails sets the Details field and marks it as non-optional; +// SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesExtract404Response) SetDetails(details map[string]any) { - d.Details = details - d.require(docPagesExtract404ResponseFieldDetails) +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docPagesInsertBlank200ResponseMetaAffectedPagesItemRevisionFieldGeneration) } -func (d *DocPagesExtract404Response) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesExtract404Response +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesExtract404Response(value) + *d = DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -136120,8 +155257,8 @@ func (d *DocPagesExtract404Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocPagesExtract404Response) MarshalJSON() ([]byte, error) { - type embed DocPagesExtract404Response +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision) MarshalJSON() ([]byte, error) { + type embed DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision var marshaler = struct { embed }{ @@ -136131,7 +155268,7 @@ func (d *DocPagesExtract404Response) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocPagesExtract404Response) String() string { +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision) String() string { if d == nil { return "" } @@ -136146,193 +155283,202 @@ func (d *DocPagesExtract404Response) String() string { return fmt.Sprintf("%#v", d) } -type DocPagesExtract404ResponseCode string +type DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState struct { + Kind string + Unknown *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + Known *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown -const ( - DocPagesExtract404ResponseCodeUnknown DocPagesExtract404ResponseCode = "Unknown" - DocPagesExtract404ResponseCodeInvalidArg DocPagesExtract404ResponseCode = "InvalidArg" - DocPagesExtract404ResponseCodeDocNotOpen DocPagesExtract404ResponseCode = "DocNotOpen" - DocPagesExtract404ResponseCodeDocOpenFailed DocPagesExtract404ResponseCode = "DocOpenFailed" - DocPagesExtract404ResponseCodeDocPasswordRequired DocPagesExtract404ResponseCode = "DocPasswordRequired" - DocPagesExtract404ResponseCodeDocPasswordIncorrect DocPagesExtract404ResponseCode = "DocPasswordIncorrect" - DocPagesExtract404ResponseCodeSharePasswordRequired DocPagesExtract404ResponseCode = "SharePasswordRequired" - DocPagesExtract404ResponseCodeAborted DocPagesExtract404ResponseCode = "Aborted" - DocPagesExtract404ResponseCodeNetwork DocPagesExtract404ResponseCode = "Network" - DocPagesExtract404ResponseCodeUnauthenticated DocPagesExtract404ResponseCode = "Unauthenticated" - DocPagesExtract404ResponseCodeForbidden DocPagesExtract404ResponseCode = "Forbidden" - DocPagesExtract404ResponseCodeNotFound DocPagesExtract404ResponseCode = "NotFound" - DocPagesExtract404ResponseCodeWireFormat DocPagesExtract404ResponseCode = "WireFormat" - DocPagesExtract404ResponseCodeRuntimeUnavailable DocPagesExtract404ResponseCode = "RuntimeUnavailable" - DocPagesExtract404ResponseCodeInvalidReference DocPagesExtract404ResponseCode = "InvalidReference" - DocPagesExtract404ResponseCodeWeakAnnotationSessionConflict DocPagesExtract404ResponseCode = "WeakAnnotationSessionConflict" - DocPagesExtract404ResponseCodeLayerVersionConflict DocPagesExtract404ResponseCode = "LayerVersionConflict" - DocPagesExtract404ResponseCodeNotImplemented DocPagesExtract404ResponseCode = "NotImplemented" - DocPagesExtract404ResponseCodeMalformedPdf DocPagesExtract404ResponseCode = "MalformedPdf" - DocPagesExtract404ResponseCodeSigningPending DocPagesExtract404ResponseCode = "SigningPending" - DocPagesExtract404ResponseCodeSigningExpired DocPagesExtract404ResponseCode = "SigningExpired" - DocPagesExtract404ResponseCodeSigningVersionMismatch DocPagesExtract404ResponseCode = "SigningVersionMismatch" - DocPagesExtract404ResponseCodeSignatureRefused DocPagesExtract404ResponseCode = "SignatureRefused" - DocPagesExtract404ResponseCodeProtectedDocument DocPagesExtract404ResponseCode = "ProtectedDocument" - DocPagesExtract404ResponseCodeStaleBase DocPagesExtract404ResponseCode = "StaleBase" -) + rawJSON json.RawMessage +} -func NewDocPagesExtract404ResponseCodeFromString(s string) (DocPagesExtract404ResponseCode, error) { - switch s { - case "Unknown": - return DocPagesExtract404ResponseCodeUnknown, nil - case "InvalidArg": - return DocPagesExtract404ResponseCodeInvalidArg, nil - case "DocNotOpen": - return DocPagesExtract404ResponseCodeDocNotOpen, nil - case "DocOpenFailed": - return DocPagesExtract404ResponseCodeDocOpenFailed, nil - case "DocPasswordRequired": - return DocPagesExtract404ResponseCodeDocPasswordRequired, nil - case "DocPasswordIncorrect": - return DocPagesExtract404ResponseCodeDocPasswordIncorrect, nil - case "SharePasswordRequired": - return DocPagesExtract404ResponseCodeSharePasswordRequired, nil - case "Aborted": - return DocPagesExtract404ResponseCodeAborted, nil - case "Network": - return DocPagesExtract404ResponseCodeNetwork, nil - case "Unauthenticated": - return DocPagesExtract404ResponseCodeUnauthenticated, nil - case "Forbidden": - return DocPagesExtract404ResponseCodeForbidden, nil - case "NotFound": - return DocPagesExtract404ResponseCodeNotFound, nil - case "WireFormat": - return DocPagesExtract404ResponseCodeWireFormat, nil - case "RuntimeUnavailable": - return DocPagesExtract404ResponseCodeRuntimeUnavailable, nil - case "InvalidReference": - return DocPagesExtract404ResponseCodeInvalidReference, nil - case "WeakAnnotationSessionConflict": - return DocPagesExtract404ResponseCodeWeakAnnotationSessionConflict, nil - case "LayerVersionConflict": - return DocPagesExtract404ResponseCodeLayerVersionConflict, nil - case "NotImplemented": - return DocPagesExtract404ResponseCodeNotImplemented, nil - case "MalformedPdf": - return DocPagesExtract404ResponseCodeMalformedPdf, nil - case "SigningPending": - return DocPagesExtract404ResponseCodeSigningPending, nil - case "SigningExpired": - return DocPagesExtract404ResponseCodeSigningExpired, nil - case "SigningVersionMismatch": - return DocPagesExtract404ResponseCodeSigningVersionMismatch, nil - case "SignatureRefused": - return DocPagesExtract404ResponseCodeSignatureRefused, nil - case "ProtectedDocument": - return DocPagesExtract404ResponseCodeProtectedDocument, nil - case "StaleBase": - return DocPagesExtract404ResponseCodeStaleBase, nil +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKind() string { + if d == nil { + return "" } - var t DocPagesExtract404ResponseCode - return "", fmt.Errorf("%s is not a valid %T", s, t) + return d.Kind } -func (d DocPagesExtract404ResponseCode) Ptr() *DocPagesExtract404ResponseCode { - return &d +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState) GetUnknown() *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown { + if d == nil { + return nil + } + return d.Unknown } -type DocPagesExtract404ResponseName string +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKnown() *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown { + if d == nil { + return nil + } + return d.Known +} -const ( - DocPagesExtract404ResponseNameEngineError DocPagesExtract404ResponseName = "EngineError" -) +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "unknown": + value := new(DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Unknown = value + case "known": + value := new(DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Known = value + } + d.rawJSON = json.RawMessage(data) + return nil +} -func NewDocPagesExtract404ResponseNameFromString(s string) (DocPagesExtract404ResponseName, error) { - switch s { - case "EngineError": - return DocPagesExtract404ResponseNameEngineError, nil +func (d DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err } - var t DocPagesExtract404ResponseName - return "", fmt.Errorf("%s is not a valid %T", s, t) + if d.Unknown != nil { + return internal.MarshalJSONWithExtraProperty(d.Unknown, "kind", "unknown") + } + if d.Known != nil { + return internal.MarshalJSONWithExtraProperty(d.Known, "kind", "known") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d DocPagesExtract404ResponseName) Ptr() *DocPagesExtract404ResponseName { - return &d +type DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor interface { + VisitUnknown(*DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) error + VisitKnown(*DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) error } -type DocPagesExtractRequest = map[string]any +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState) Accept(visitor DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor) error { + if d.Unknown != nil { + return visitor.VisitUnknown(d.Unknown) + } + if d.Known != nil { + return visitor.VisitKnown(d.Known) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.Unknown != nil { + fields = append(fields, "unknown") + } + if d.Known != nil { + fields = append(fields, "known") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil +} var ( - docPagesFlatten200ResponseFieldMeta = big.NewInt(1 << 0) + docPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations = big.NewInt(1 << 0) ) -type DocPagesFlatten200Response struct { - Meta *DocPagesFlatten200ResponseMeta `json:"meta" url:"meta"` +type DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown struct { + HasAnyWeakAnnotations bool `json:"hasAnyWeakAnnotations" url:"hasAnyWeakAnnotations"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` - ExtraProperties map[string]interface{} `json:"-" url:"-"` - - rawJSON json.RawMessage + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocPagesFlatten200Response) GetMeta() *DocPagesFlatten200ResponseMeta { +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetHasAnyWeakAnnotations() bool { if d == nil { - return nil + return false } - return d.Meta + return d.HasAnyWeakAnnotations } -func (d *DocPagesFlatten200Response) GetExtraProperties() map[string]interface{} { +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.ExtraProperties + return d.extraProperties } -func (d *DocPagesFlatten200Response) require(field *big.Int) { +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetMeta sets the Meta field and marks it as non-optional; +// SetHasAnyWeakAnnotations sets the HasAnyWeakAnnotations field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesFlatten200Response) SetMeta(meta *DocPagesFlatten200ResponseMeta) { - d.Meta = meta - d.require(docPagesFlatten200ResponseFieldMeta) +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) SetHasAnyWeakAnnotations(hasAnyWeakAnnotations bool) { + d.HasAnyWeakAnnotations = hasAnyWeakAnnotations + d.require(docPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations) } -func (d *DocPagesFlatten200Response) UnmarshalJSON(data []byte) error { - type embed DocPagesFlatten200Response - var unmarshaler = struct { - embed - }{ - embed: embed(*d), - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesFlatten200Response(unmarshaler.embed) + *d = DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err } - d.ExtraProperties = extraProperties + d.extraProperties = extraProperties d.rawJSON = json.RawMessage(data) return nil } -func (d *DocPagesFlatten200Response) MarshalJSON() ([]byte, error) { - type embed DocPagesFlatten200Response +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) MarshalJSON() ([]byte, error) { + type embed DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown var marshaler = struct { embed }{ embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return internal.MarshalJSONWithExtraProperties(explicitMarshaler, d.ExtraProperties) + return json.Marshal(explicitMarshaler) } -func (d *DocPagesFlatten200Response) String() string { +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) String() string { if d == nil { return "" } @@ -136347,14 +155493,7 @@ func (d *DocPagesFlatten200Response) String() string { return fmt.Sprintf("%#v", d) } -var ( - docPagesFlatten200ResponseMetaFieldAffectedPages = big.NewInt(1 << 0) - docPagesFlatten200ResponseMetaFieldCacheDelta = big.NewInt(1 << 1) -) - -type DocPagesFlatten200ResponseMeta struct { - AffectedPages []*DocPagesFlatten200ResponseMetaAffectedPagesItem `json:"affectedPages" url:"affectedPages"` - CacheDelta *DocPagesFlatten200ResponseMetaCacheDelta `json:"cacheDelta,omitempty" url:"cacheDelta,omitempty"` +type DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -136363,55 +155502,27 @@ type DocPagesFlatten200ResponseMeta struct { rawJSON json.RawMessage } -func (d *DocPagesFlatten200ResponseMeta) GetAffectedPages() []*DocPagesFlatten200ResponseMetaAffectedPagesItem { - if d == nil { - return nil - } - return d.AffectedPages -} - -func (d *DocPagesFlatten200ResponseMeta) GetCacheDelta() *DocPagesFlatten200ResponseMetaCacheDelta { - if d == nil { - return nil - } - return d.CacheDelta -} - -func (d *DocPagesFlatten200ResponseMeta) GetExtraProperties() map[string]interface{} { +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesFlatten200ResponseMeta) require(field *big.Int) { +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetAffectedPages sets the AffectedPages field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesFlatten200ResponseMeta) SetAffectedPages(affectedPages []*DocPagesFlatten200ResponseMetaAffectedPagesItem) { - d.AffectedPages = affectedPages - d.require(docPagesFlatten200ResponseMetaFieldAffectedPages) -} - -// SetCacheDelta sets the CacheDelta field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesFlatten200ResponseMeta) SetCacheDelta(cacheDelta *DocPagesFlatten200ResponseMetaCacheDelta) { - d.CacheDelta = cacheDelta - d.require(docPagesFlatten200ResponseMetaFieldCacheDelta) -} - -func (d *DocPagesFlatten200ResponseMeta) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesFlatten200ResponseMeta +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesFlatten200ResponseMeta(value) + *d = DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -136421,8 +155532,8 @@ func (d *DocPagesFlatten200ResponseMeta) UnmarshalJSON(data []byte) error { return nil } -func (d *DocPagesFlatten200ResponseMeta) MarshalJSON() ([]byte, error) { - type embed DocPagesFlatten200ResponseMeta +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) MarshalJSON() ([]byte, error) { + type embed DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown var marshaler = struct { embed }{ @@ -136432,7 +155543,7 @@ func (d *DocPagesFlatten200ResponseMeta) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocPagesFlatten200ResponseMeta) String() string { +func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) String() string { if d == nil { return "" } @@ -136448,15 +155559,21 @@ func (d *DocPagesFlatten200ResponseMeta) String() string { } var ( - docPagesFlatten200ResponseMetaAffectedPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) - docPagesFlatten200ResponseMetaAffectedPagesItemFieldRevision = big.NewInt(1 << 1) - docPagesFlatten200ResponseMetaAffectedPagesItemFieldWeakAnnotationState = big.NewInt(1 << 2) + docPagesInsertBlank200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) + docPagesInsertBlank200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) + docPagesInsertBlank200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) + docPagesInsertBlank200ResponseMetaCacheDeltaFieldLayerVersion = big.NewInt(1 << 3) + docPagesInsertBlank200ResponseMetaCacheDeltaFieldWorking = big.NewInt(1 << 4) + docPagesInsertBlank200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 5) ) -type DocPagesFlatten200ResponseMetaAffectedPagesItem struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Revision *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision `json:"revision" url:"revision"` - WeakAnnotationState *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState `json:"weakAnnotationState" url:"weakAnnotationState"` +type DocPagesInsertBlank200ResponseMetaCacheDelta struct { + PreviousDocVersion int `json:"previousDocVersion" url:"previousDocVersion"` + DocVersion int `json:"docVersion" url:"docVersion"` + AnnotationsVersion *int `json:"annotationsVersion,omitempty" url:"annotationsVersion,omitempty"` + LayerVersion *int `json:"layerVersion,omitempty" url:"layerVersion,omitempty"` + Working *bool `json:"working,omitempty" url:"working,omitempty"` + Pages []*DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -136465,69 +155582,111 @@ type DocPagesFlatten200ResponseMetaAffectedPagesItem struct { rawJSON json.RawMessage } -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItem) GetPageObjectNumber() int { +func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) GetPreviousDocVersion() int { if d == nil { return 0 } - return d.PageObjectNumber + return d.PreviousDocVersion } -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItem) GetRevision() *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision { +func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) GetDocVersion() int { + if d == nil { + return 0 + } + return d.DocVersion +} + +func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { if d == nil { return nil } - return d.Revision + return d.AnnotationsVersion } -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItem) GetWeakAnnotationState() *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState { +func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) GetLayerVersion() *int { if d == nil { return nil } - return d.WeakAnnotationState + return d.LayerVersion } -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItem) GetExtraProperties() map[string]interface{} { +func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) GetWorking() *bool { + if d == nil { + return nil + } + return d.Working +} + +func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) GetPages() []*DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem { + if d == nil { + return nil + } + return d.Pages +} + +func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItem) require(field *big.Int) { +func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetPreviousDocVersion sets the PreviousDocVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItem) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docPagesFlatten200ResponseMetaAffectedPagesItemFieldPageObjectNumber) +func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) SetPreviousDocVersion(previousDocVersion int) { + d.PreviousDocVersion = previousDocVersion + d.require(docPagesInsertBlank200ResponseMetaCacheDeltaFieldPreviousDocVersion) +} + +// SetDocVersion sets the DocVersion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) SetDocVersion(docVersion int) { + d.DocVersion = docVersion + d.require(docPagesInsertBlank200ResponseMetaCacheDeltaFieldDocVersion) +} + +// SetAnnotationsVersion sets the AnnotationsVersion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) SetAnnotationsVersion(annotationsVersion *int) { + d.AnnotationsVersion = annotationsVersion + d.require(docPagesInsertBlank200ResponseMetaCacheDeltaFieldAnnotationsVersion) +} + +// SetLayerVersion sets the LayerVersion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) SetLayerVersion(layerVersion *int) { + d.LayerVersion = layerVersion + d.require(docPagesInsertBlank200ResponseMetaCacheDeltaFieldLayerVersion) } -// SetRevision sets the Revision field and marks it as non-optional; +// SetWorking sets the Working field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItem) SetRevision(revision *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision) { - d.Revision = revision - d.require(docPagesFlatten200ResponseMetaAffectedPagesItemFieldRevision) +func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) SetWorking(working *bool) { + d.Working = working + d.require(docPagesInsertBlank200ResponseMetaCacheDeltaFieldWorking) } -// SetWeakAnnotationState sets the WeakAnnotationState field and marks it as non-optional; +// SetPages sets the Pages field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItem) SetWeakAnnotationState(weakAnnotationState *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState) { - d.WeakAnnotationState = weakAnnotationState - d.require(docPagesFlatten200ResponseMetaAffectedPagesItemFieldWeakAnnotationState) +func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) SetPages(pages []*DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem) { + d.Pages = pages + d.require(docPagesInsertBlank200ResponseMetaCacheDeltaFieldPages) } -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesFlatten200ResponseMetaAffectedPagesItem +func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesInsertBlank200ResponseMetaCacheDelta var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesFlatten200ResponseMetaAffectedPagesItem(value) + *d = DocPagesInsertBlank200ResponseMetaCacheDelta(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -136537,8 +155696,8 @@ func (d *DocPagesFlatten200ResponseMetaAffectedPagesItem) UnmarshalJSON(data []b return nil } -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItem) MarshalJSON() ([]byte, error) { - type embed DocPagesFlatten200ResponseMetaAffectedPagesItem +func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) MarshalJSON() ([]byte, error) { + type embed DocPagesInsertBlank200ResponseMetaCacheDelta var marshaler = struct { embed }{ @@ -136548,7 +155707,7 @@ func (d *DocPagesFlatten200ResponseMetaAffectedPagesItem) MarshalJSON() ([]byte, return json.Marshal(explicitMarshaler) } -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItem) String() string { +func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) String() string { if d == nil { return "" } @@ -136564,15 +155723,13 @@ func (d *DocPagesFlatten200ResponseMetaAffectedPagesItem) String() string { } var ( - docPagesFlatten200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID = big.NewInt(1 << 0) - docPagesFlatten200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docPagesFlatten200ResponseMetaAffectedPagesItemRevisionFieldGeneration = big.NewInt(1 << 2) + docPagesInsertBlank200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) + docPagesInsertBlank200ResponseMetaCacheDeltaPagesItemFieldCache = big.NewInt(1 << 1) ) -type DocPagesFlatten200ResponseMetaAffectedPagesItemRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Cache *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache `json:"cache" url:"cache"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -136581,69 +155738,55 @@ type DocPagesFlatten200ResponseMetaAffectedPagesItemRevision struct { rawJSON json.RawMessage } -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision) GetDocSessionID() string { - if d == nil { - return "" - } - return d.DocSessionID -} - -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision) GetPageObjectNumber() int { +func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision) GetGeneration() int { +func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem) GetCache() *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache { if d == nil { - return 0 + return nil } - return d.Generation + return d.Cache } -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision) GetExtraProperties() map[string]interface{} { +func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision) require(field *big.Int) { +func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docPagesFlatten200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID) -} - // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docPagesFlatten200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber) + d.require(docPagesInsertBlank200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetCache sets the Cache field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docPagesFlatten200ResponseMetaAffectedPagesItemRevisionFieldGeneration) +func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem) SetCache(cache *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache) { + d.Cache = cache + d.require(docPagesInsertBlank200ResponseMetaCacheDeltaPagesItemFieldCache) } -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesFlatten200ResponseMetaAffectedPagesItemRevision +func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesFlatten200ResponseMetaAffectedPagesItemRevision(value) + *d = DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -136653,8 +155796,8 @@ func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision) UnmarshalJSON( return nil } -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision) MarshalJSON() ([]byte, error) { - type embed DocPagesFlatten200ResponseMetaAffectedPagesItemRevision +func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem) MarshalJSON() ([]byte, error) { + type embed DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem var marshaler = struct { embed }{ @@ -136664,7 +155807,7 @@ func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision) MarshalJSON() return json.Marshal(explicitMarshaler) } -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision) String() string { +func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem) String() string { if d == nil { return "" } @@ -136679,138 +155822,14 @@ func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision) String() strin return fmt.Sprintf("%#v", d) } -type DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState struct { - Kind string - Unknown *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - Known *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - - rawJSON json.RawMessage -} - -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKind() string { - if d == nil { - return "" - } - return d.Kind -} - -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState) GetUnknown() *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown { - if d == nil { - return nil - } - return d.Unknown -} - -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKnown() *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown { - if d == nil { - return nil - } - return d.Known -} - -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "unknown": - value := new(DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Unknown = value - case "known": - value := new(DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Known = value - } - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.Unknown != nil { - return internal.MarshalJSONWithExtraProperty(d.Unknown, "kind", "unknown") - } - if d.Known != nil { - return internal.MarshalJSONWithExtraProperty(d.Known, "kind", "known") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil - } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) -} - -type DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor interface { - VisitUnknown(*DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) error - VisitKnown(*DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) error -} - -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState) Accept(visitor DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor) error { - if d.Unknown != nil { - return visitor.VisitUnknown(d.Unknown) - } - if d.Known != nil { - return visitor.VisitKnown(d.Known) - } - return fmt.Errorf("type %T does not define a non-empty union type", d) -} - -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState) validate() error { - if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.Unknown != nil { - fields = append(fields, "unknown") - } - if d.Known != nil { - fields = append(fields, "known") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } - } - return nil -} - var ( - docPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations = big.NewInt(1 << 0) + docPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion = big.NewInt(1 << 0) + docPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion = big.NewInt(1 << 1) ) -type DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown struct { - HasAnyWeakAnnotations bool `json:"hasAnyWeakAnnotations" url:"hasAnyWeakAnnotations"` +type DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache struct { + ContentVersion int `json:"contentVersion" url:"contentVersion"` + AnnotationVersion int `json:"annotationVersion" url:"annotationVersion"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -136819,41 +155838,55 @@ type DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown str rawJSON json.RawMessage } -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetHasAnyWeakAnnotations() bool { +func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache) GetContentVersion() int { if d == nil { - return false + return 0 } - return d.HasAnyWeakAnnotations + return d.ContentVersion } -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetExtraProperties() map[string]interface{} { +func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache) GetAnnotationVersion() int { + if d == nil { + return 0 + } + return d.AnnotationVersion +} + +func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) require(field *big.Int) { +func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetHasAnyWeakAnnotations sets the HasAnyWeakAnnotations field and marks it as non-optional; +// SetContentVersion sets the ContentVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) SetHasAnyWeakAnnotations(hasAnyWeakAnnotations bool) { - d.HasAnyWeakAnnotations = hasAnyWeakAnnotations - d.require(docPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations) +func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache) SetContentVersion(contentVersion int) { + d.ContentVersion = contentVersion + d.require(docPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion) } -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown +// SetAnnotationVersion sets the AnnotationVersion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache) SetAnnotationVersion(annotationVersion int) { + d.AnnotationVersion = annotationVersion + d.require(docPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion) +} + +func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(value) + *d = DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -136863,8 +155896,8 @@ func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown return nil } -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) MarshalJSON() ([]byte, error) { - type embed DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown +func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON() ([]byte, error) { + type embed DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache var marshaler = struct { embed }{ @@ -136874,7 +155907,7 @@ func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown return json.Marshal(explicitMarshaler) } -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) String() string { +func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache) String() string { if d == nil { return "" } @@ -136889,7 +155922,18 @@ func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown return fmt.Sprintf("%#v", d) } -type DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown struct { +var ( + docPagesInsertBlank400ResponseFieldName = big.NewInt(1 << 0) + docPagesInsertBlank400ResponseFieldCode = big.NewInt(1 << 1) + docPagesInsertBlank400ResponseFieldMessage = big.NewInt(1 << 2) + docPagesInsertBlank400ResponseFieldDetails = big.NewInt(1 << 3) +) + +type DocPagesInsertBlank400Response struct { + Name DocPagesInsertBlank400ResponseName `json:"name" url:"name"` + Code DocPagesInsertBlank400ResponseCode `json:"code" url:"code"` + Message string `json:"message" url:"message"` + Details map[string]any `json:"details,omitempty" url:"details,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -136898,27 +155942,83 @@ type DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown s rawJSON json.RawMessage } -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) GetExtraProperties() map[string]interface{} { +func (d *DocPagesInsertBlank400Response) GetName() DocPagesInsertBlank400ResponseName { + if d == nil { + return "" + } + return d.Name +} + +func (d *DocPagesInsertBlank400Response) GetCode() DocPagesInsertBlank400ResponseCode { + if d == nil { + return "" + } + return d.Code +} + +func (d *DocPagesInsertBlank400Response) GetMessage() string { + if d == nil { + return "" + } + return d.Message +} + +func (d *DocPagesInsertBlank400Response) GetDetails() map[string]any { + if d == nil { + return nil + } + return d.Details +} + +func (d *DocPagesInsertBlank400Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) require(field *big.Int) { +func (d *DocPagesInsertBlank400Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown +// SetName sets the Name field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesInsertBlank400Response) SetName(name DocPagesInsertBlank400ResponseName) { + d.Name = name + d.require(docPagesInsertBlank400ResponseFieldName) +} + +// SetCode sets the Code field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesInsertBlank400Response) SetCode(code DocPagesInsertBlank400ResponseCode) { + d.Code = code + d.require(docPagesInsertBlank400ResponseFieldCode) +} + +// SetMessage sets the Message field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesInsertBlank400Response) SetMessage(message string) { + d.Message = message + d.require(docPagesInsertBlank400ResponseFieldMessage) +} + +// SetDetails sets the Details field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesInsertBlank400Response) SetDetails(details map[string]any) { + d.Details = details + d.require(docPagesInsertBlank400ResponseFieldDetails) +} + +func (d *DocPagesInsertBlank400Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesInsertBlank400Response var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(value) + *d = DocPagesInsertBlank400Response(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -136928,8 +156028,8 @@ func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnkno return nil } -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) MarshalJSON() ([]byte, error) { - type embed DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown +func (d *DocPagesInsertBlank400Response) MarshalJSON() ([]byte, error) { + type embed DocPagesInsertBlank400Response var marshaler = struct { embed }{ @@ -136939,7 +156039,7 @@ func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnkno return json.Marshal(explicitMarshaler) } -func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) String() string { +func (d *DocPagesInsertBlank400Response) String() string { if d == nil { return "" } @@ -136954,22 +156054,128 @@ func (d *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnkno return fmt.Sprintf("%#v", d) } +type DocPagesInsertBlank400ResponseCode string + +const ( + DocPagesInsertBlank400ResponseCodeUnknown DocPagesInsertBlank400ResponseCode = "Unknown" + DocPagesInsertBlank400ResponseCodeInvalidArg DocPagesInsertBlank400ResponseCode = "InvalidArg" + DocPagesInsertBlank400ResponseCodeDocNotOpen DocPagesInsertBlank400ResponseCode = "DocNotOpen" + DocPagesInsertBlank400ResponseCodeDocOpenFailed DocPagesInsertBlank400ResponseCode = "DocOpenFailed" + DocPagesInsertBlank400ResponseCodeDocPasswordRequired DocPagesInsertBlank400ResponseCode = "DocPasswordRequired" + DocPagesInsertBlank400ResponseCodeDocPasswordIncorrect DocPagesInsertBlank400ResponseCode = "DocPasswordIncorrect" + DocPagesInsertBlank400ResponseCodeSharePasswordRequired DocPagesInsertBlank400ResponseCode = "SharePasswordRequired" + DocPagesInsertBlank400ResponseCodeAborted DocPagesInsertBlank400ResponseCode = "Aborted" + DocPagesInsertBlank400ResponseCodeNetwork DocPagesInsertBlank400ResponseCode = "Network" + DocPagesInsertBlank400ResponseCodeUnauthenticated DocPagesInsertBlank400ResponseCode = "Unauthenticated" + DocPagesInsertBlank400ResponseCodeForbidden DocPagesInsertBlank400ResponseCode = "Forbidden" + DocPagesInsertBlank400ResponseCodeNotFound DocPagesInsertBlank400ResponseCode = "NotFound" + DocPagesInsertBlank400ResponseCodeWireFormat DocPagesInsertBlank400ResponseCode = "WireFormat" + DocPagesInsertBlank400ResponseCodeRuntimeUnavailable DocPagesInsertBlank400ResponseCode = "RuntimeUnavailable" + DocPagesInsertBlank400ResponseCodeInvalidReference DocPagesInsertBlank400ResponseCode = "InvalidReference" + DocPagesInsertBlank400ResponseCodeWeakAnnotationSessionConflict DocPagesInsertBlank400ResponseCode = "WeakAnnotationSessionConflict" + DocPagesInsertBlank400ResponseCodeLayerVersionConflict DocPagesInsertBlank400ResponseCode = "LayerVersionConflict" + DocPagesInsertBlank400ResponseCodeNotImplemented DocPagesInsertBlank400ResponseCode = "NotImplemented" + DocPagesInsertBlank400ResponseCodeMalformedPdf DocPagesInsertBlank400ResponseCode = "MalformedPdf" + DocPagesInsertBlank400ResponseCodeSigningPending DocPagesInsertBlank400ResponseCode = "SigningPending" + DocPagesInsertBlank400ResponseCodeSigningExpired DocPagesInsertBlank400ResponseCode = "SigningExpired" + DocPagesInsertBlank400ResponseCodeSigningVersionMismatch DocPagesInsertBlank400ResponseCode = "SigningVersionMismatch" + DocPagesInsertBlank400ResponseCodeSignatureRefused DocPagesInsertBlank400ResponseCode = "SignatureRefused" + DocPagesInsertBlank400ResponseCodeProtectedDocument DocPagesInsertBlank400ResponseCode = "ProtectedDocument" + DocPagesInsertBlank400ResponseCodeStaleBase DocPagesInsertBlank400ResponseCode = "StaleBase" +) + +func NewDocPagesInsertBlank400ResponseCodeFromString(s string) (DocPagesInsertBlank400ResponseCode, error) { + switch s { + case "Unknown": + return DocPagesInsertBlank400ResponseCodeUnknown, nil + case "InvalidArg": + return DocPagesInsertBlank400ResponseCodeInvalidArg, nil + case "DocNotOpen": + return DocPagesInsertBlank400ResponseCodeDocNotOpen, nil + case "DocOpenFailed": + return DocPagesInsertBlank400ResponseCodeDocOpenFailed, nil + case "DocPasswordRequired": + return DocPagesInsertBlank400ResponseCodeDocPasswordRequired, nil + case "DocPasswordIncorrect": + return DocPagesInsertBlank400ResponseCodeDocPasswordIncorrect, nil + case "SharePasswordRequired": + return DocPagesInsertBlank400ResponseCodeSharePasswordRequired, nil + case "Aborted": + return DocPagesInsertBlank400ResponseCodeAborted, nil + case "Network": + return DocPagesInsertBlank400ResponseCodeNetwork, nil + case "Unauthenticated": + return DocPagesInsertBlank400ResponseCodeUnauthenticated, nil + case "Forbidden": + return DocPagesInsertBlank400ResponseCodeForbidden, nil + case "NotFound": + return DocPagesInsertBlank400ResponseCodeNotFound, nil + case "WireFormat": + return DocPagesInsertBlank400ResponseCodeWireFormat, nil + case "RuntimeUnavailable": + return DocPagesInsertBlank400ResponseCodeRuntimeUnavailable, nil + case "InvalidReference": + return DocPagesInsertBlank400ResponseCodeInvalidReference, nil + case "WeakAnnotationSessionConflict": + return DocPagesInsertBlank400ResponseCodeWeakAnnotationSessionConflict, nil + case "LayerVersionConflict": + return DocPagesInsertBlank400ResponseCodeLayerVersionConflict, nil + case "NotImplemented": + return DocPagesInsertBlank400ResponseCodeNotImplemented, nil + case "MalformedPdf": + return DocPagesInsertBlank400ResponseCodeMalformedPdf, nil + case "SigningPending": + return DocPagesInsertBlank400ResponseCodeSigningPending, nil + case "SigningExpired": + return DocPagesInsertBlank400ResponseCodeSigningExpired, nil + case "SigningVersionMismatch": + return DocPagesInsertBlank400ResponseCodeSigningVersionMismatch, nil + case "SignatureRefused": + return DocPagesInsertBlank400ResponseCodeSignatureRefused, nil + case "ProtectedDocument": + return DocPagesInsertBlank400ResponseCodeProtectedDocument, nil + case "StaleBase": + return DocPagesInsertBlank400ResponseCodeStaleBase, nil + } + var t DocPagesInsertBlank400ResponseCode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesInsertBlank400ResponseCode) Ptr() *DocPagesInsertBlank400ResponseCode { + return &d +} + +type DocPagesInsertBlank400ResponseName string + +const ( + DocPagesInsertBlank400ResponseNameEngineError DocPagesInsertBlank400ResponseName = "EngineError" +) + +func NewDocPagesInsertBlank400ResponseNameFromString(s string) (DocPagesInsertBlank400ResponseName, error) { + switch s { + case "EngineError": + return DocPagesInsertBlank400ResponseNameEngineError, nil + } + var t DocPagesInsertBlank400ResponseName + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesInsertBlank400ResponseName) Ptr() *DocPagesInsertBlank400ResponseName { + return &d +} + var ( - docPagesFlatten200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) - docPagesFlatten200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) - docPagesFlatten200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) - docPagesFlatten200ResponseMetaCacheDeltaFieldLayerVersion = big.NewInt(1 << 3) - docPagesFlatten200ResponseMetaCacheDeltaFieldWorking = big.NewInt(1 << 4) - docPagesFlatten200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 5) + docPagesInsertBlank404ResponseFieldName = big.NewInt(1 << 0) + docPagesInsertBlank404ResponseFieldCode = big.NewInt(1 << 1) + docPagesInsertBlank404ResponseFieldMessage = big.NewInt(1 << 2) + docPagesInsertBlank404ResponseFieldDetails = big.NewInt(1 << 3) ) -type DocPagesFlatten200ResponseMetaCacheDelta struct { - PreviousDocVersion int `json:"previousDocVersion" url:"previousDocVersion"` - DocVersion int `json:"docVersion" url:"docVersion"` - AnnotationsVersion *int `json:"annotationsVersion,omitempty" url:"annotationsVersion,omitempty"` - LayerVersion *int `json:"layerVersion,omitempty" url:"layerVersion,omitempty"` - Working *bool `json:"working,omitempty" url:"working,omitempty"` - Pages []*DocPagesFlatten200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` +type DocPagesInsertBlank404Response struct { + Name DocPagesInsertBlank404ResponseName `json:"name" url:"name"` + Code DocPagesInsertBlank404ResponseCode `json:"code" url:"code"` + Message string `json:"message" url:"message"` + Details map[string]any `json:"details,omitempty" url:"details,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -136978,111 +156184,83 @@ type DocPagesFlatten200ResponseMetaCacheDelta struct { rawJSON json.RawMessage } -func (d *DocPagesFlatten200ResponseMetaCacheDelta) GetPreviousDocVersion() int { - if d == nil { - return 0 - } - return d.PreviousDocVersion -} - -func (d *DocPagesFlatten200ResponseMetaCacheDelta) GetDocVersion() int { - if d == nil { - return 0 - } - return d.DocVersion -} - -func (d *DocPagesFlatten200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { +func (d *DocPagesInsertBlank404Response) GetName() DocPagesInsertBlank404ResponseName { if d == nil { - return nil + return "" } - return d.AnnotationsVersion + return d.Name } -func (d *DocPagesFlatten200ResponseMetaCacheDelta) GetLayerVersion() *int { +func (d *DocPagesInsertBlank404Response) GetCode() DocPagesInsertBlank404ResponseCode { if d == nil { - return nil + return "" } - return d.LayerVersion + return d.Code } -func (d *DocPagesFlatten200ResponseMetaCacheDelta) GetWorking() *bool { +func (d *DocPagesInsertBlank404Response) GetMessage() string { if d == nil { - return nil + return "" } - return d.Working + return d.Message } -func (d *DocPagesFlatten200ResponseMetaCacheDelta) GetPages() []*DocPagesFlatten200ResponseMetaCacheDeltaPagesItem { +func (d *DocPagesInsertBlank404Response) GetDetails() map[string]any { if d == nil { return nil } - return d.Pages + return d.Details } -func (d *DocPagesFlatten200ResponseMetaCacheDelta) GetExtraProperties() map[string]interface{} { +func (d *DocPagesInsertBlank404Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesFlatten200ResponseMetaCacheDelta) require(field *big.Int) { +func (d *DocPagesInsertBlank404Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPreviousDocVersion sets the PreviousDocVersion field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesFlatten200ResponseMetaCacheDelta) SetPreviousDocVersion(previousDocVersion int) { - d.PreviousDocVersion = previousDocVersion - d.require(docPagesFlatten200ResponseMetaCacheDeltaFieldPreviousDocVersion) -} - -// SetDocVersion sets the DocVersion field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesFlatten200ResponseMetaCacheDelta) SetDocVersion(docVersion int) { - d.DocVersion = docVersion - d.require(docPagesFlatten200ResponseMetaCacheDeltaFieldDocVersion) -} - -// SetAnnotationsVersion sets the AnnotationsVersion field and marks it as non-optional; +// SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesFlatten200ResponseMetaCacheDelta) SetAnnotationsVersion(annotationsVersion *int) { - d.AnnotationsVersion = annotationsVersion - d.require(docPagesFlatten200ResponseMetaCacheDeltaFieldAnnotationsVersion) +func (d *DocPagesInsertBlank404Response) SetName(name DocPagesInsertBlank404ResponseName) { + d.Name = name + d.require(docPagesInsertBlank404ResponseFieldName) } -// SetLayerVersion sets the LayerVersion field and marks it as non-optional; +// SetCode sets the Code field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesFlatten200ResponseMetaCacheDelta) SetLayerVersion(layerVersion *int) { - d.LayerVersion = layerVersion - d.require(docPagesFlatten200ResponseMetaCacheDeltaFieldLayerVersion) +func (d *DocPagesInsertBlank404Response) SetCode(code DocPagesInsertBlank404ResponseCode) { + d.Code = code + d.require(docPagesInsertBlank404ResponseFieldCode) } -// SetWorking sets the Working field and marks it as non-optional; +// SetMessage sets the Message field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesFlatten200ResponseMetaCacheDelta) SetWorking(working *bool) { - d.Working = working - d.require(docPagesFlatten200ResponseMetaCacheDeltaFieldWorking) +func (d *DocPagesInsertBlank404Response) SetMessage(message string) { + d.Message = message + d.require(docPagesInsertBlank404ResponseFieldMessage) } -// SetPages sets the Pages field and marks it as non-optional; +// SetDetails sets the Details field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesFlatten200ResponseMetaCacheDelta) SetPages(pages []*DocPagesFlatten200ResponseMetaCacheDeltaPagesItem) { - d.Pages = pages - d.require(docPagesFlatten200ResponseMetaCacheDeltaFieldPages) +func (d *DocPagesInsertBlank404Response) SetDetails(details map[string]any) { + d.Details = details + d.require(docPagesInsertBlank404ResponseFieldDetails) } -func (d *DocPagesFlatten200ResponseMetaCacheDelta) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesFlatten200ResponseMetaCacheDelta +func (d *DocPagesInsertBlank404Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesInsertBlank404Response var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesFlatten200ResponseMetaCacheDelta(value) + *d = DocPagesInsertBlank404Response(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -137092,8 +156270,8 @@ func (d *DocPagesFlatten200ResponseMetaCacheDelta) UnmarshalJSON(data []byte) er return nil } -func (d *DocPagesFlatten200ResponseMetaCacheDelta) MarshalJSON() ([]byte, error) { - type embed DocPagesFlatten200ResponseMetaCacheDelta +func (d *DocPagesInsertBlank404Response) MarshalJSON() ([]byte, error) { + type embed DocPagesInsertBlank404Response var marshaler = struct { embed }{ @@ -137103,7 +156281,7 @@ func (d *DocPagesFlatten200ResponseMetaCacheDelta) MarshalJSON() ([]byte, error) return json.Marshal(explicitMarshaler) } -func (d *DocPagesFlatten200ResponseMetaCacheDelta) String() string { +func (d *DocPagesInsertBlank404Response) String() string { if d == nil { return "" } @@ -137118,92 +156296,193 @@ func (d *DocPagesFlatten200ResponseMetaCacheDelta) String() string { return fmt.Sprintf("%#v", d) } +type DocPagesInsertBlank404ResponseCode string + +const ( + DocPagesInsertBlank404ResponseCodeUnknown DocPagesInsertBlank404ResponseCode = "Unknown" + DocPagesInsertBlank404ResponseCodeInvalidArg DocPagesInsertBlank404ResponseCode = "InvalidArg" + DocPagesInsertBlank404ResponseCodeDocNotOpen DocPagesInsertBlank404ResponseCode = "DocNotOpen" + DocPagesInsertBlank404ResponseCodeDocOpenFailed DocPagesInsertBlank404ResponseCode = "DocOpenFailed" + DocPagesInsertBlank404ResponseCodeDocPasswordRequired DocPagesInsertBlank404ResponseCode = "DocPasswordRequired" + DocPagesInsertBlank404ResponseCodeDocPasswordIncorrect DocPagesInsertBlank404ResponseCode = "DocPasswordIncorrect" + DocPagesInsertBlank404ResponseCodeSharePasswordRequired DocPagesInsertBlank404ResponseCode = "SharePasswordRequired" + DocPagesInsertBlank404ResponseCodeAborted DocPagesInsertBlank404ResponseCode = "Aborted" + DocPagesInsertBlank404ResponseCodeNetwork DocPagesInsertBlank404ResponseCode = "Network" + DocPagesInsertBlank404ResponseCodeUnauthenticated DocPagesInsertBlank404ResponseCode = "Unauthenticated" + DocPagesInsertBlank404ResponseCodeForbidden DocPagesInsertBlank404ResponseCode = "Forbidden" + DocPagesInsertBlank404ResponseCodeNotFound DocPagesInsertBlank404ResponseCode = "NotFound" + DocPagesInsertBlank404ResponseCodeWireFormat DocPagesInsertBlank404ResponseCode = "WireFormat" + DocPagesInsertBlank404ResponseCodeRuntimeUnavailable DocPagesInsertBlank404ResponseCode = "RuntimeUnavailable" + DocPagesInsertBlank404ResponseCodeInvalidReference DocPagesInsertBlank404ResponseCode = "InvalidReference" + DocPagesInsertBlank404ResponseCodeWeakAnnotationSessionConflict DocPagesInsertBlank404ResponseCode = "WeakAnnotationSessionConflict" + DocPagesInsertBlank404ResponseCodeLayerVersionConflict DocPagesInsertBlank404ResponseCode = "LayerVersionConflict" + DocPagesInsertBlank404ResponseCodeNotImplemented DocPagesInsertBlank404ResponseCode = "NotImplemented" + DocPagesInsertBlank404ResponseCodeMalformedPdf DocPagesInsertBlank404ResponseCode = "MalformedPdf" + DocPagesInsertBlank404ResponseCodeSigningPending DocPagesInsertBlank404ResponseCode = "SigningPending" + DocPagesInsertBlank404ResponseCodeSigningExpired DocPagesInsertBlank404ResponseCode = "SigningExpired" + DocPagesInsertBlank404ResponseCodeSigningVersionMismatch DocPagesInsertBlank404ResponseCode = "SigningVersionMismatch" + DocPagesInsertBlank404ResponseCodeSignatureRefused DocPagesInsertBlank404ResponseCode = "SignatureRefused" + DocPagesInsertBlank404ResponseCodeProtectedDocument DocPagesInsertBlank404ResponseCode = "ProtectedDocument" + DocPagesInsertBlank404ResponseCodeStaleBase DocPagesInsertBlank404ResponseCode = "StaleBase" +) + +func NewDocPagesInsertBlank404ResponseCodeFromString(s string) (DocPagesInsertBlank404ResponseCode, error) { + switch s { + case "Unknown": + return DocPagesInsertBlank404ResponseCodeUnknown, nil + case "InvalidArg": + return DocPagesInsertBlank404ResponseCodeInvalidArg, nil + case "DocNotOpen": + return DocPagesInsertBlank404ResponseCodeDocNotOpen, nil + case "DocOpenFailed": + return DocPagesInsertBlank404ResponseCodeDocOpenFailed, nil + case "DocPasswordRequired": + return DocPagesInsertBlank404ResponseCodeDocPasswordRequired, nil + case "DocPasswordIncorrect": + return DocPagesInsertBlank404ResponseCodeDocPasswordIncorrect, nil + case "SharePasswordRequired": + return DocPagesInsertBlank404ResponseCodeSharePasswordRequired, nil + case "Aborted": + return DocPagesInsertBlank404ResponseCodeAborted, nil + case "Network": + return DocPagesInsertBlank404ResponseCodeNetwork, nil + case "Unauthenticated": + return DocPagesInsertBlank404ResponseCodeUnauthenticated, nil + case "Forbidden": + return DocPagesInsertBlank404ResponseCodeForbidden, nil + case "NotFound": + return DocPagesInsertBlank404ResponseCodeNotFound, nil + case "WireFormat": + return DocPagesInsertBlank404ResponseCodeWireFormat, nil + case "RuntimeUnavailable": + return DocPagesInsertBlank404ResponseCodeRuntimeUnavailable, nil + case "InvalidReference": + return DocPagesInsertBlank404ResponseCodeInvalidReference, nil + case "WeakAnnotationSessionConflict": + return DocPagesInsertBlank404ResponseCodeWeakAnnotationSessionConflict, nil + case "LayerVersionConflict": + return DocPagesInsertBlank404ResponseCodeLayerVersionConflict, nil + case "NotImplemented": + return DocPagesInsertBlank404ResponseCodeNotImplemented, nil + case "MalformedPdf": + return DocPagesInsertBlank404ResponseCodeMalformedPdf, nil + case "SigningPending": + return DocPagesInsertBlank404ResponseCodeSigningPending, nil + case "SigningExpired": + return DocPagesInsertBlank404ResponseCodeSigningExpired, nil + case "SigningVersionMismatch": + return DocPagesInsertBlank404ResponseCodeSigningVersionMismatch, nil + case "SignatureRefused": + return DocPagesInsertBlank404ResponseCodeSignatureRefused, nil + case "ProtectedDocument": + return DocPagesInsertBlank404ResponseCodeProtectedDocument, nil + case "StaleBase": + return DocPagesInsertBlank404ResponseCodeStaleBase, nil + } + var t DocPagesInsertBlank404ResponseCode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesInsertBlank404ResponseCode) Ptr() *DocPagesInsertBlank404ResponseCode { + return &d +} + +type DocPagesInsertBlank404ResponseName string + +const ( + DocPagesInsertBlank404ResponseNameEngineError DocPagesInsertBlank404ResponseName = "EngineError" +) + +func NewDocPagesInsertBlank404ResponseNameFromString(s string) (DocPagesInsertBlank404ResponseName, error) { + switch s { + case "EngineError": + return DocPagesInsertBlank404ResponseNameEngineError, nil + } + var t DocPagesInsertBlank404ResponseName + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesInsertBlank404ResponseName) Ptr() *DocPagesInsertBlank404ResponseName { + return &d +} + +type DocPagesInsertBlankRequest = map[string]any + var ( - docPagesFlatten200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) - docPagesFlatten200ResponseMetaCacheDeltaPagesItemFieldCache = big.NewInt(1 << 1) + docPagesMove200ResponseFieldMeta = big.NewInt(1 << 0) ) -type DocPagesFlatten200ResponseMetaCacheDeltaPagesItem struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Cache *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache `json:"cache" url:"cache"` +type DocPagesMove200Response struct { + Meta *DocPagesMove200ResponseMeta `json:"meta" url:"meta"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` - extraProperties map[string]interface{} - rawJSON json.RawMessage -} + ExtraProperties map[string]interface{} `json:"-" url:"-"` -func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItem) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber + rawJSON json.RawMessage } -func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItem) GetCache() *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache { +func (d *DocPagesMove200Response) GetMeta() *DocPagesMove200ResponseMeta { if d == nil { return nil } - return d.Cache + return d.Meta } -func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItem) GetExtraProperties() map[string]interface{} { +func (d *DocPagesMove200Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.extraProperties + return d.ExtraProperties } -func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItem) require(field *big.Int) { +func (d *DocPagesMove200Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItem) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docPagesFlatten200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber) -} - -// SetCache sets the Cache field and marks it as non-optional; +// SetMeta sets the Meta field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItem) SetCache(cache *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache) { - d.Cache = cache - d.require(docPagesFlatten200ResponseMetaCacheDeltaPagesItemFieldCache) +func (d *DocPagesMove200Response) SetMeta(meta *DocPagesMove200ResponseMeta) { + d.Meta = meta + d.require(docPagesMove200ResponseFieldMeta) } -func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesFlatten200ResponseMetaCacheDeltaPagesItem - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { +func (d *DocPagesMove200Response) UnmarshalJSON(data []byte) error { + type embed DocPagesMove200Response + var unmarshaler = struct { + embed + }{ + embed: embed(*d), + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocPagesFlatten200ResponseMetaCacheDeltaPagesItem(value) + *d = DocPagesMove200Response(unmarshaler.embed) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err } - d.extraProperties = extraProperties + d.ExtraProperties = extraProperties d.rawJSON = json.RawMessage(data) return nil } -func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItem) MarshalJSON() ([]byte, error) { - type embed DocPagesFlatten200ResponseMetaCacheDeltaPagesItem +func (d *DocPagesMove200Response) MarshalJSON() ([]byte, error) { + type embed DocPagesMove200Response var marshaler = struct { embed }{ embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return internal.MarshalJSONWithExtraProperties(explicitMarshaler, d.ExtraProperties) } -func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItem) String() string { +func (d *DocPagesMove200Response) String() string { if d == nil { return "" } @@ -137219,13 +156498,13 @@ func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItem) String() string { } var ( - docPagesFlatten200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion = big.NewInt(1 << 0) - docPagesFlatten200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion = big.NewInt(1 << 1) + docPagesMove200ResponseMetaFieldAffectedPages = big.NewInt(1 << 0) + docPagesMove200ResponseMetaFieldCacheDelta = big.NewInt(1 << 1) ) -type DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache struct { - ContentVersion int `json:"contentVersion" url:"contentVersion"` - AnnotationVersion int `json:"annotationVersion" url:"annotationVersion"` +type DocPagesMove200ResponseMeta struct { + AffectedPages []*DocPagesMove200ResponseMetaAffectedPagesItem `json:"affectedPages" url:"affectedPages"` + CacheDelta *DocPagesMove200ResponseMetaCacheDelta `json:"cacheDelta,omitempty" url:"cacheDelta,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -137234,55 +156513,55 @@ type DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache struct { rawJSON json.RawMessage } -func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache) GetContentVersion() int { +func (d *DocPagesMove200ResponseMeta) GetAffectedPages() []*DocPagesMove200ResponseMetaAffectedPagesItem { if d == nil { - return 0 + return nil } - return d.ContentVersion + return d.AffectedPages } -func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache) GetAnnotationVersion() int { +func (d *DocPagesMove200ResponseMeta) GetCacheDelta() *DocPagesMove200ResponseMetaCacheDelta { if d == nil { - return 0 + return nil } - return d.AnnotationVersion + return d.CacheDelta } -func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache) GetExtraProperties() map[string]interface{} { +func (d *DocPagesMove200ResponseMeta) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache) require(field *big.Int) { +func (d *DocPagesMove200ResponseMeta) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetContentVersion sets the ContentVersion field and marks it as non-optional; +// SetAffectedPages sets the AffectedPages field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache) SetContentVersion(contentVersion int) { - d.ContentVersion = contentVersion - d.require(docPagesFlatten200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion) +func (d *DocPagesMove200ResponseMeta) SetAffectedPages(affectedPages []*DocPagesMove200ResponseMetaAffectedPagesItem) { + d.AffectedPages = affectedPages + d.require(docPagesMove200ResponseMetaFieldAffectedPages) } -// SetAnnotationVersion sets the AnnotationVersion field and marks it as non-optional; +// SetCacheDelta sets the CacheDelta field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache) SetAnnotationVersion(annotationVersion int) { - d.AnnotationVersion = annotationVersion - d.require(docPagesFlatten200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion) +func (d *DocPagesMove200ResponseMeta) SetCacheDelta(cacheDelta *DocPagesMove200ResponseMetaCacheDelta) { + d.CacheDelta = cacheDelta + d.require(docPagesMove200ResponseMetaFieldCacheDelta) } -func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache +func (d *DocPagesMove200ResponseMeta) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesMove200ResponseMeta var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache(value) + *d = DocPagesMove200ResponseMeta(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -137292,8 +156571,8 @@ func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJSON(d return nil } -func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON() ([]byte, error) { - type embed DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache +func (d *DocPagesMove200ResponseMeta) MarshalJSON() ([]byte, error) { + type embed DocPagesMove200ResponseMeta var marshaler = struct { embed }{ @@ -137303,7 +156582,7 @@ func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON() ( return json.Marshal(explicitMarshaler) } -func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache) String() string { +func (d *DocPagesMove200ResponseMeta) String() string { if d == nil { return "" } @@ -137319,17 +156598,15 @@ func (d *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache) String() string } var ( - docPagesFlatten400ResponseFieldName = big.NewInt(1 << 0) - docPagesFlatten400ResponseFieldCode = big.NewInt(1 << 1) - docPagesFlatten400ResponseFieldMessage = big.NewInt(1 << 2) - docPagesFlatten400ResponseFieldDetails = big.NewInt(1 << 3) + docPagesMove200ResponseMetaAffectedPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) + docPagesMove200ResponseMetaAffectedPagesItemFieldRevision = big.NewInt(1 << 1) + docPagesMove200ResponseMetaAffectedPagesItemFieldWeakAnnotationState = big.NewInt(1 << 2) ) -type DocPagesFlatten400Response struct { - Name DocPagesFlatten400ResponseName `json:"name" url:"name"` - Code DocPagesFlatten400ResponseCode `json:"code" url:"code"` - Message string `json:"message" url:"message"` - Details map[string]any `json:"details,omitempty" url:"details,omitempty"` +type DocPagesMove200ResponseMetaAffectedPagesItem struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Revision *DocPagesMove200ResponseMetaAffectedPagesItemRevision `json:"revision" url:"revision"` + WeakAnnotationState *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState `json:"weakAnnotationState" url:"weakAnnotationState"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -137338,83 +156615,69 @@ type DocPagesFlatten400Response struct { rawJSON json.RawMessage } -func (d *DocPagesFlatten400Response) GetName() DocPagesFlatten400ResponseName { - if d == nil { - return "" - } - return d.Name -} - -func (d *DocPagesFlatten400Response) GetCode() DocPagesFlatten400ResponseCode { +func (d *DocPagesMove200ResponseMetaAffectedPagesItem) GetPageObjectNumber() int { if d == nil { - return "" + return 0 } - return d.Code + return d.PageObjectNumber } -func (d *DocPagesFlatten400Response) GetMessage() string { +func (d *DocPagesMove200ResponseMetaAffectedPagesItem) GetRevision() *DocPagesMove200ResponseMetaAffectedPagesItemRevision { if d == nil { - return "" + return nil } - return d.Message + return d.Revision } -func (d *DocPagesFlatten400Response) GetDetails() map[string]any { +func (d *DocPagesMove200ResponseMetaAffectedPagesItem) GetWeakAnnotationState() *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState { if d == nil { return nil } - return d.Details + return d.WeakAnnotationState } -func (d *DocPagesFlatten400Response) GetExtraProperties() map[string]interface{} { +func (d *DocPagesMove200ResponseMetaAffectedPagesItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesFlatten400Response) require(field *big.Int) { +func (d *DocPagesMove200ResponseMetaAffectedPagesItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetName sets the Name field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesFlatten400Response) SetName(name DocPagesFlatten400ResponseName) { - d.Name = name - d.require(docPagesFlatten400ResponseFieldName) -} - -// SetCode sets the Code field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesFlatten400Response) SetCode(code DocPagesFlatten400ResponseCode) { - d.Code = code - d.require(docPagesFlatten400ResponseFieldCode) +func (d *DocPagesMove200ResponseMetaAffectedPagesItem) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docPagesMove200ResponseMetaAffectedPagesItemFieldPageObjectNumber) } -// SetMessage sets the Message field and marks it as non-optional; +// SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesFlatten400Response) SetMessage(message string) { - d.Message = message - d.require(docPagesFlatten400ResponseFieldMessage) +func (d *DocPagesMove200ResponseMetaAffectedPagesItem) SetRevision(revision *DocPagesMove200ResponseMetaAffectedPagesItemRevision) { + d.Revision = revision + d.require(docPagesMove200ResponseMetaAffectedPagesItemFieldRevision) } -// SetDetails sets the Details field and marks it as non-optional; +// SetWeakAnnotationState sets the WeakAnnotationState field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesFlatten400Response) SetDetails(details map[string]any) { - d.Details = details - d.require(docPagesFlatten400ResponseFieldDetails) +func (d *DocPagesMove200ResponseMetaAffectedPagesItem) SetWeakAnnotationState(weakAnnotationState *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState) { + d.WeakAnnotationState = weakAnnotationState + d.require(docPagesMove200ResponseMetaAffectedPagesItemFieldWeakAnnotationState) } -func (d *DocPagesFlatten400Response) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesFlatten400Response +func (d *DocPagesMove200ResponseMetaAffectedPagesItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesMove200ResponseMetaAffectedPagesItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesFlatten400Response(value) + *d = DocPagesMove200ResponseMetaAffectedPagesItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -137424,154 +156687,42 @@ func (d *DocPagesFlatten400Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocPagesFlatten400Response) MarshalJSON() ([]byte, error) { - type embed DocPagesFlatten400Response - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) -} - -func (d *DocPagesFlatten400Response) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) -} - -type DocPagesFlatten400ResponseCode string - -const ( - DocPagesFlatten400ResponseCodeUnknown DocPagesFlatten400ResponseCode = "Unknown" - DocPagesFlatten400ResponseCodeInvalidArg DocPagesFlatten400ResponseCode = "InvalidArg" - DocPagesFlatten400ResponseCodeDocNotOpen DocPagesFlatten400ResponseCode = "DocNotOpen" - DocPagesFlatten400ResponseCodeDocOpenFailed DocPagesFlatten400ResponseCode = "DocOpenFailed" - DocPagesFlatten400ResponseCodeDocPasswordRequired DocPagesFlatten400ResponseCode = "DocPasswordRequired" - DocPagesFlatten400ResponseCodeDocPasswordIncorrect DocPagesFlatten400ResponseCode = "DocPasswordIncorrect" - DocPagesFlatten400ResponseCodeSharePasswordRequired DocPagesFlatten400ResponseCode = "SharePasswordRequired" - DocPagesFlatten400ResponseCodeAborted DocPagesFlatten400ResponseCode = "Aborted" - DocPagesFlatten400ResponseCodeNetwork DocPagesFlatten400ResponseCode = "Network" - DocPagesFlatten400ResponseCodeUnauthenticated DocPagesFlatten400ResponseCode = "Unauthenticated" - DocPagesFlatten400ResponseCodeForbidden DocPagesFlatten400ResponseCode = "Forbidden" - DocPagesFlatten400ResponseCodeNotFound DocPagesFlatten400ResponseCode = "NotFound" - DocPagesFlatten400ResponseCodeWireFormat DocPagesFlatten400ResponseCode = "WireFormat" - DocPagesFlatten400ResponseCodeRuntimeUnavailable DocPagesFlatten400ResponseCode = "RuntimeUnavailable" - DocPagesFlatten400ResponseCodeInvalidReference DocPagesFlatten400ResponseCode = "InvalidReference" - DocPagesFlatten400ResponseCodeWeakAnnotationSessionConflict DocPagesFlatten400ResponseCode = "WeakAnnotationSessionConflict" - DocPagesFlatten400ResponseCodeLayerVersionConflict DocPagesFlatten400ResponseCode = "LayerVersionConflict" - DocPagesFlatten400ResponseCodeNotImplemented DocPagesFlatten400ResponseCode = "NotImplemented" - DocPagesFlatten400ResponseCodeMalformedPdf DocPagesFlatten400ResponseCode = "MalformedPdf" - DocPagesFlatten400ResponseCodeSigningPending DocPagesFlatten400ResponseCode = "SigningPending" - DocPagesFlatten400ResponseCodeSigningExpired DocPagesFlatten400ResponseCode = "SigningExpired" - DocPagesFlatten400ResponseCodeSigningVersionMismatch DocPagesFlatten400ResponseCode = "SigningVersionMismatch" - DocPagesFlatten400ResponseCodeSignatureRefused DocPagesFlatten400ResponseCode = "SignatureRefused" - DocPagesFlatten400ResponseCodeProtectedDocument DocPagesFlatten400ResponseCode = "ProtectedDocument" - DocPagesFlatten400ResponseCodeStaleBase DocPagesFlatten400ResponseCode = "StaleBase" -) - -func NewDocPagesFlatten400ResponseCodeFromString(s string) (DocPagesFlatten400ResponseCode, error) { - switch s { - case "Unknown": - return DocPagesFlatten400ResponseCodeUnknown, nil - case "InvalidArg": - return DocPagesFlatten400ResponseCodeInvalidArg, nil - case "DocNotOpen": - return DocPagesFlatten400ResponseCodeDocNotOpen, nil - case "DocOpenFailed": - return DocPagesFlatten400ResponseCodeDocOpenFailed, nil - case "DocPasswordRequired": - return DocPagesFlatten400ResponseCodeDocPasswordRequired, nil - case "DocPasswordIncorrect": - return DocPagesFlatten400ResponseCodeDocPasswordIncorrect, nil - case "SharePasswordRequired": - return DocPagesFlatten400ResponseCodeSharePasswordRequired, nil - case "Aborted": - return DocPagesFlatten400ResponseCodeAborted, nil - case "Network": - return DocPagesFlatten400ResponseCodeNetwork, nil - case "Unauthenticated": - return DocPagesFlatten400ResponseCodeUnauthenticated, nil - case "Forbidden": - return DocPagesFlatten400ResponseCodeForbidden, nil - case "NotFound": - return DocPagesFlatten400ResponseCodeNotFound, nil - case "WireFormat": - return DocPagesFlatten400ResponseCodeWireFormat, nil - case "RuntimeUnavailable": - return DocPagesFlatten400ResponseCodeRuntimeUnavailable, nil - case "InvalidReference": - return DocPagesFlatten400ResponseCodeInvalidReference, nil - case "WeakAnnotationSessionConflict": - return DocPagesFlatten400ResponseCodeWeakAnnotationSessionConflict, nil - case "LayerVersionConflict": - return DocPagesFlatten400ResponseCodeLayerVersionConflict, nil - case "NotImplemented": - return DocPagesFlatten400ResponseCodeNotImplemented, nil - case "MalformedPdf": - return DocPagesFlatten400ResponseCodeMalformedPdf, nil - case "SigningPending": - return DocPagesFlatten400ResponseCodeSigningPending, nil - case "SigningExpired": - return DocPagesFlatten400ResponseCodeSigningExpired, nil - case "SigningVersionMismatch": - return DocPagesFlatten400ResponseCodeSigningVersionMismatch, nil - case "SignatureRefused": - return DocPagesFlatten400ResponseCodeSignatureRefused, nil - case "ProtectedDocument": - return DocPagesFlatten400ResponseCodeProtectedDocument, nil - case "StaleBase": - return DocPagesFlatten400ResponseCodeStaleBase, nil - } - var t DocPagesFlatten400ResponseCode - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocPagesFlatten400ResponseCode) Ptr() *DocPagesFlatten400ResponseCode { - return &d -} - -type DocPagesFlatten400ResponseName string - -const ( - DocPagesFlatten400ResponseNameEngineError DocPagesFlatten400ResponseName = "EngineError" -) - -func NewDocPagesFlatten400ResponseNameFromString(s string) (DocPagesFlatten400ResponseName, error) { - switch s { - case "EngineError": - return DocPagesFlatten400ResponseNameEngineError, nil +func (d *DocPagesMove200ResponseMetaAffectedPagesItem) MarshalJSON() ([]byte, error) { + type embed DocPagesMove200ResponseMetaAffectedPagesItem + var marshaler = struct { + embed + }{ + embed: embed(*d), } - var t DocPagesFlatten400ResponseName - return "", fmt.Errorf("%s is not a valid %T", s, t) + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d DocPagesFlatten400ResponseName) Ptr() *DocPagesFlatten400ResponseName { - return &d +func (d *DocPagesMove200ResponseMetaAffectedPagesItem) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } var ( - docPagesFlatten404ResponseFieldName = big.NewInt(1 << 0) - docPagesFlatten404ResponseFieldCode = big.NewInt(1 << 1) - docPagesFlatten404ResponseFieldMessage = big.NewInt(1 << 2) - docPagesFlatten404ResponseFieldDetails = big.NewInt(1 << 3) + docPagesMove200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID = big.NewInt(1 << 0) + docPagesMove200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docPagesMove200ResponseMetaAffectedPagesItemRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocPagesFlatten404Response struct { - Name DocPagesFlatten404ResponseName `json:"name" url:"name"` - Code DocPagesFlatten404ResponseCode `json:"code" url:"code"` - Message string `json:"message" url:"message"` - Details map[string]any `json:"details,omitempty" url:"details,omitempty"` +type DocPagesMove200ResponseMetaAffectedPagesItemRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -137580,83 +156731,69 @@ type DocPagesFlatten404Response struct { rawJSON json.RawMessage } -func (d *DocPagesFlatten404Response) GetName() DocPagesFlatten404ResponseName { - if d == nil { - return "" - } - return d.Name -} - -func (d *DocPagesFlatten404Response) GetCode() DocPagesFlatten404ResponseCode { +func (d *DocPagesMove200ResponseMetaAffectedPagesItemRevision) GetDocSessionID() string { if d == nil { return "" } - return d.Code + return d.DocSessionID } -func (d *DocPagesFlatten404Response) GetMessage() string { +func (d *DocPagesMove200ResponseMetaAffectedPagesItemRevision) GetPageObjectNumber() int { if d == nil { - return "" + return 0 } - return d.Message + return d.PageObjectNumber } -func (d *DocPagesFlatten404Response) GetDetails() map[string]any { +func (d *DocPagesMove200ResponseMetaAffectedPagesItemRevision) GetGeneration() int { if d == nil { - return nil + return 0 } - return d.Details + return d.Generation } -func (d *DocPagesFlatten404Response) GetExtraProperties() map[string]interface{} { +func (d *DocPagesMove200ResponseMetaAffectedPagesItemRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesFlatten404Response) require(field *big.Int) { +func (d *DocPagesMove200ResponseMetaAffectedPagesItemRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetName sets the Name field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesFlatten404Response) SetName(name DocPagesFlatten404ResponseName) { - d.Name = name - d.require(docPagesFlatten404ResponseFieldName) -} - -// SetCode sets the Code field and marks it as non-optional; +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesFlatten404Response) SetCode(code DocPagesFlatten404ResponseCode) { - d.Code = code - d.require(docPagesFlatten404ResponseFieldCode) +func (d *DocPagesMove200ResponseMetaAffectedPagesItemRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docPagesMove200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID) } -// SetMessage sets the Message field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesFlatten404Response) SetMessage(message string) { - d.Message = message - d.require(docPagesFlatten404ResponseFieldMessage) +func (d *DocPagesMove200ResponseMetaAffectedPagesItemRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docPagesMove200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber) } -// SetDetails sets the Details field and marks it as non-optional; +// SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesFlatten404Response) SetDetails(details map[string]any) { - d.Details = details - d.require(docPagesFlatten404ResponseFieldDetails) +func (d *DocPagesMove200ResponseMetaAffectedPagesItemRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docPagesMove200ResponseMetaAffectedPagesItemRevisionFieldGeneration) } -func (d *DocPagesFlatten404Response) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesFlatten404Response +func (d *DocPagesMove200ResponseMetaAffectedPagesItemRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesMove200ResponseMetaAffectedPagesItemRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesFlatten404Response(value) + *d = DocPagesMove200ResponseMetaAffectedPagesItemRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -137666,8 +156803,8 @@ func (d *DocPagesFlatten404Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocPagesFlatten404Response) MarshalJSON() ([]byte, error) { - type embed DocPagesFlatten404Response +func (d *DocPagesMove200ResponseMetaAffectedPagesItemRevision) MarshalJSON() ([]byte, error) { + type embed DocPagesMove200ResponseMetaAffectedPagesItemRevision var marshaler = struct { embed }{ @@ -137677,7 +156814,7 @@ func (d *DocPagesFlatten404Response) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocPagesFlatten404Response) String() string { +func (d *DocPagesMove200ResponseMetaAffectedPagesItemRevision) String() string { if d == nil { return "" } @@ -137692,193 +156829,202 @@ func (d *DocPagesFlatten404Response) String() string { return fmt.Sprintf("%#v", d) } -type DocPagesFlatten404ResponseCode string +type DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState struct { + Kind string + Unknown *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + Known *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown -const ( - DocPagesFlatten404ResponseCodeUnknown DocPagesFlatten404ResponseCode = "Unknown" - DocPagesFlatten404ResponseCodeInvalidArg DocPagesFlatten404ResponseCode = "InvalidArg" - DocPagesFlatten404ResponseCodeDocNotOpen DocPagesFlatten404ResponseCode = "DocNotOpen" - DocPagesFlatten404ResponseCodeDocOpenFailed DocPagesFlatten404ResponseCode = "DocOpenFailed" - DocPagesFlatten404ResponseCodeDocPasswordRequired DocPagesFlatten404ResponseCode = "DocPasswordRequired" - DocPagesFlatten404ResponseCodeDocPasswordIncorrect DocPagesFlatten404ResponseCode = "DocPasswordIncorrect" - DocPagesFlatten404ResponseCodeSharePasswordRequired DocPagesFlatten404ResponseCode = "SharePasswordRequired" - DocPagesFlatten404ResponseCodeAborted DocPagesFlatten404ResponseCode = "Aborted" - DocPagesFlatten404ResponseCodeNetwork DocPagesFlatten404ResponseCode = "Network" - DocPagesFlatten404ResponseCodeUnauthenticated DocPagesFlatten404ResponseCode = "Unauthenticated" - DocPagesFlatten404ResponseCodeForbidden DocPagesFlatten404ResponseCode = "Forbidden" - DocPagesFlatten404ResponseCodeNotFound DocPagesFlatten404ResponseCode = "NotFound" - DocPagesFlatten404ResponseCodeWireFormat DocPagesFlatten404ResponseCode = "WireFormat" - DocPagesFlatten404ResponseCodeRuntimeUnavailable DocPagesFlatten404ResponseCode = "RuntimeUnavailable" - DocPagesFlatten404ResponseCodeInvalidReference DocPagesFlatten404ResponseCode = "InvalidReference" - DocPagesFlatten404ResponseCodeWeakAnnotationSessionConflict DocPagesFlatten404ResponseCode = "WeakAnnotationSessionConflict" - DocPagesFlatten404ResponseCodeLayerVersionConflict DocPagesFlatten404ResponseCode = "LayerVersionConflict" - DocPagesFlatten404ResponseCodeNotImplemented DocPagesFlatten404ResponseCode = "NotImplemented" - DocPagesFlatten404ResponseCodeMalformedPdf DocPagesFlatten404ResponseCode = "MalformedPdf" - DocPagesFlatten404ResponseCodeSigningPending DocPagesFlatten404ResponseCode = "SigningPending" - DocPagesFlatten404ResponseCodeSigningExpired DocPagesFlatten404ResponseCode = "SigningExpired" - DocPagesFlatten404ResponseCodeSigningVersionMismatch DocPagesFlatten404ResponseCode = "SigningVersionMismatch" - DocPagesFlatten404ResponseCodeSignatureRefused DocPagesFlatten404ResponseCode = "SignatureRefused" - DocPagesFlatten404ResponseCodeProtectedDocument DocPagesFlatten404ResponseCode = "ProtectedDocument" - DocPagesFlatten404ResponseCodeStaleBase DocPagesFlatten404ResponseCode = "StaleBase" -) + rawJSON json.RawMessage +} -func NewDocPagesFlatten404ResponseCodeFromString(s string) (DocPagesFlatten404ResponseCode, error) { - switch s { - case "Unknown": - return DocPagesFlatten404ResponseCodeUnknown, nil - case "InvalidArg": - return DocPagesFlatten404ResponseCodeInvalidArg, nil - case "DocNotOpen": - return DocPagesFlatten404ResponseCodeDocNotOpen, nil - case "DocOpenFailed": - return DocPagesFlatten404ResponseCodeDocOpenFailed, nil - case "DocPasswordRequired": - return DocPagesFlatten404ResponseCodeDocPasswordRequired, nil - case "DocPasswordIncorrect": - return DocPagesFlatten404ResponseCodeDocPasswordIncorrect, nil - case "SharePasswordRequired": - return DocPagesFlatten404ResponseCodeSharePasswordRequired, nil - case "Aborted": - return DocPagesFlatten404ResponseCodeAborted, nil - case "Network": - return DocPagesFlatten404ResponseCodeNetwork, nil - case "Unauthenticated": - return DocPagesFlatten404ResponseCodeUnauthenticated, nil - case "Forbidden": - return DocPagesFlatten404ResponseCodeForbidden, nil - case "NotFound": - return DocPagesFlatten404ResponseCodeNotFound, nil - case "WireFormat": - return DocPagesFlatten404ResponseCodeWireFormat, nil - case "RuntimeUnavailable": - return DocPagesFlatten404ResponseCodeRuntimeUnavailable, nil - case "InvalidReference": - return DocPagesFlatten404ResponseCodeInvalidReference, nil - case "WeakAnnotationSessionConflict": - return DocPagesFlatten404ResponseCodeWeakAnnotationSessionConflict, nil - case "LayerVersionConflict": - return DocPagesFlatten404ResponseCodeLayerVersionConflict, nil - case "NotImplemented": - return DocPagesFlatten404ResponseCodeNotImplemented, nil - case "MalformedPdf": - return DocPagesFlatten404ResponseCodeMalformedPdf, nil - case "SigningPending": - return DocPagesFlatten404ResponseCodeSigningPending, nil - case "SigningExpired": - return DocPagesFlatten404ResponseCodeSigningExpired, nil - case "SigningVersionMismatch": - return DocPagesFlatten404ResponseCodeSigningVersionMismatch, nil - case "SignatureRefused": - return DocPagesFlatten404ResponseCodeSignatureRefused, nil - case "ProtectedDocument": - return DocPagesFlatten404ResponseCodeProtectedDocument, nil - case "StaleBase": - return DocPagesFlatten404ResponseCodeStaleBase, nil +func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKind() string { + if d == nil { + return "" } - var t DocPagesFlatten404ResponseCode - return "", fmt.Errorf("%s is not a valid %T", s, t) + return d.Kind } -func (d DocPagesFlatten404ResponseCode) Ptr() *DocPagesFlatten404ResponseCode { - return &d +func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState) GetUnknown() *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown { + if d == nil { + return nil + } + return d.Unknown } -type DocPagesFlatten404ResponseName string +func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKnown() *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown { + if d == nil { + return nil + } + return d.Known +} -const ( - DocPagesFlatten404ResponseNameEngineError DocPagesFlatten404ResponseName = "EngineError" -) +func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "unknown": + value := new(DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Unknown = value + case "known": + value := new(DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Known = value + } + d.rawJSON = json.RawMessage(data) + return nil +} -func NewDocPagesFlatten404ResponseNameFromString(s string) (DocPagesFlatten404ResponseName, error) { - switch s { - case "EngineError": - return DocPagesFlatten404ResponseNameEngineError, nil +func (d DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err } - var t DocPagesFlatten404ResponseName - return "", fmt.Errorf("%s is not a valid %T", s, t) + if d.Unknown != nil { + return internal.MarshalJSONWithExtraProperty(d.Unknown, "kind", "unknown") + } + if d.Known != nil { + return internal.MarshalJSONWithExtraProperty(d.Known, "kind", "known") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d DocPagesFlatten404ResponseName) Ptr() *DocPagesFlatten404ResponseName { - return &d +type DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor interface { + VisitUnknown(*DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) error + VisitKnown(*DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) error } -type DocPagesFlattenRequest = map[string]any +func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState) Accept(visitor DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor) error { + if d.Unknown != nil { + return visitor.VisitUnknown(d.Unknown) + } + if d.Known != nil { + return visitor.VisitKnown(d.Known) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.Unknown != nil { + fields = append(fields, "unknown") + } + if d.Known != nil { + fields = append(fields, "known") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil +} var ( - docPagesInsert200ResponseFieldMeta = big.NewInt(1 << 0) + docPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations = big.NewInt(1 << 0) ) -type DocPagesInsert200Response struct { - Meta *DocPagesInsert200ResponseMeta `json:"meta" url:"meta"` +type DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown struct { + HasAnyWeakAnnotations bool `json:"hasAnyWeakAnnotations" url:"hasAnyWeakAnnotations"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` - ExtraProperties map[string]interface{} `json:"-" url:"-"` - - rawJSON json.RawMessage + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocPagesInsert200Response) GetMeta() *DocPagesInsert200ResponseMeta { +func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetHasAnyWeakAnnotations() bool { if d == nil { - return nil + return false } - return d.Meta + return d.HasAnyWeakAnnotations } -func (d *DocPagesInsert200Response) GetExtraProperties() map[string]interface{} { +func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.ExtraProperties + return d.extraProperties } -func (d *DocPagesInsert200Response) require(field *big.Int) { +func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetMeta sets the Meta field and marks it as non-optional; +// SetHasAnyWeakAnnotations sets the HasAnyWeakAnnotations field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsert200Response) SetMeta(meta *DocPagesInsert200ResponseMeta) { - d.Meta = meta - d.require(docPagesInsert200ResponseFieldMeta) +func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) SetHasAnyWeakAnnotations(hasAnyWeakAnnotations bool) { + d.HasAnyWeakAnnotations = hasAnyWeakAnnotations + d.require(docPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations) } -func (d *DocPagesInsert200Response) UnmarshalJSON(data []byte) error { - type embed DocPagesInsert200Response - var unmarshaler = struct { - embed - }{ - embed: embed(*d), - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesInsert200Response(unmarshaler.embed) + *d = DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err } - d.ExtraProperties = extraProperties + d.extraProperties = extraProperties d.rawJSON = json.RawMessage(data) return nil } -func (d *DocPagesInsert200Response) MarshalJSON() ([]byte, error) { - type embed DocPagesInsert200Response +func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) MarshalJSON() ([]byte, error) { + type embed DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown var marshaler = struct { embed }{ embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return internal.MarshalJSONWithExtraProperties(explicitMarshaler, d.ExtraProperties) + return json.Marshal(explicitMarshaler) } -func (d *DocPagesInsert200Response) String() string { +func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) String() string { if d == nil { return "" } @@ -137893,14 +157039,7 @@ func (d *DocPagesInsert200Response) String() string { return fmt.Sprintf("%#v", d) } -var ( - docPagesInsert200ResponseMetaFieldAffectedPages = big.NewInt(1 << 0) - docPagesInsert200ResponseMetaFieldCacheDelta = big.NewInt(1 << 1) -) - -type DocPagesInsert200ResponseMeta struct { - AffectedPages []*DocPagesInsert200ResponseMetaAffectedPagesItem `json:"affectedPages" url:"affectedPages"` - CacheDelta *DocPagesInsert200ResponseMetaCacheDelta `json:"cacheDelta,omitempty" url:"cacheDelta,omitempty"` +type DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -137909,55 +157048,27 @@ type DocPagesInsert200ResponseMeta struct { rawJSON json.RawMessage } -func (d *DocPagesInsert200ResponseMeta) GetAffectedPages() []*DocPagesInsert200ResponseMetaAffectedPagesItem { - if d == nil { - return nil - } - return d.AffectedPages -} - -func (d *DocPagesInsert200ResponseMeta) GetCacheDelta() *DocPagesInsert200ResponseMetaCacheDelta { - if d == nil { - return nil - } - return d.CacheDelta -} - -func (d *DocPagesInsert200ResponseMeta) GetExtraProperties() map[string]interface{} { +func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesInsert200ResponseMeta) require(field *big.Int) { +func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetAffectedPages sets the AffectedPages field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsert200ResponseMeta) SetAffectedPages(affectedPages []*DocPagesInsert200ResponseMetaAffectedPagesItem) { - d.AffectedPages = affectedPages - d.require(docPagesInsert200ResponseMetaFieldAffectedPages) -} - -// SetCacheDelta sets the CacheDelta field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsert200ResponseMeta) SetCacheDelta(cacheDelta *DocPagesInsert200ResponseMetaCacheDelta) { - d.CacheDelta = cacheDelta - d.require(docPagesInsert200ResponseMetaFieldCacheDelta) -} - -func (d *DocPagesInsert200ResponseMeta) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesInsert200ResponseMeta +func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesInsert200ResponseMeta(value) + *d = DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -137967,8 +157078,8 @@ func (d *DocPagesInsert200ResponseMeta) UnmarshalJSON(data []byte) error { return nil } -func (d *DocPagesInsert200ResponseMeta) MarshalJSON() ([]byte, error) { - type embed DocPagesInsert200ResponseMeta +func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) MarshalJSON() ([]byte, error) { + type embed DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown var marshaler = struct { embed }{ @@ -137978,7 +157089,7 @@ func (d *DocPagesInsert200ResponseMeta) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocPagesInsert200ResponseMeta) String() string { +func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) String() string { if d == nil { return "" } @@ -137994,15 +157105,21 @@ func (d *DocPagesInsert200ResponseMeta) String() string { } var ( - docPagesInsert200ResponseMetaAffectedPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) - docPagesInsert200ResponseMetaAffectedPagesItemFieldRevision = big.NewInt(1 << 1) - docPagesInsert200ResponseMetaAffectedPagesItemFieldWeakAnnotationState = big.NewInt(1 << 2) + docPagesMove200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) + docPagesMove200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) + docPagesMove200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) + docPagesMove200ResponseMetaCacheDeltaFieldLayerVersion = big.NewInt(1 << 3) + docPagesMove200ResponseMetaCacheDeltaFieldWorking = big.NewInt(1 << 4) + docPagesMove200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 5) ) -type DocPagesInsert200ResponseMetaAffectedPagesItem struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Revision *DocPagesInsert200ResponseMetaAffectedPagesItemRevision `json:"revision" url:"revision"` - WeakAnnotationState *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState `json:"weakAnnotationState" url:"weakAnnotationState"` +type DocPagesMove200ResponseMetaCacheDelta struct { + PreviousDocVersion int `json:"previousDocVersion" url:"previousDocVersion"` + DocVersion int `json:"docVersion" url:"docVersion"` + AnnotationsVersion *int `json:"annotationsVersion,omitempty" url:"annotationsVersion,omitempty"` + LayerVersion *int `json:"layerVersion,omitempty" url:"layerVersion,omitempty"` + Working *bool `json:"working,omitempty" url:"working,omitempty"` + Pages []*DocPagesMove200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -138011,69 +157128,111 @@ type DocPagesInsert200ResponseMetaAffectedPagesItem struct { rawJSON json.RawMessage } -func (d *DocPagesInsert200ResponseMetaAffectedPagesItem) GetPageObjectNumber() int { +func (d *DocPagesMove200ResponseMetaCacheDelta) GetPreviousDocVersion() int { if d == nil { return 0 } - return d.PageObjectNumber + return d.PreviousDocVersion } -func (d *DocPagesInsert200ResponseMetaAffectedPagesItem) GetRevision() *DocPagesInsert200ResponseMetaAffectedPagesItemRevision { +func (d *DocPagesMove200ResponseMetaCacheDelta) GetDocVersion() int { + if d == nil { + return 0 + } + return d.DocVersion +} + +func (d *DocPagesMove200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { if d == nil { return nil } - return d.Revision + return d.AnnotationsVersion } -func (d *DocPagesInsert200ResponseMetaAffectedPagesItem) GetWeakAnnotationState() *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState { +func (d *DocPagesMove200ResponseMetaCacheDelta) GetLayerVersion() *int { if d == nil { return nil } - return d.WeakAnnotationState + return d.LayerVersion } -func (d *DocPagesInsert200ResponseMetaAffectedPagesItem) GetExtraProperties() map[string]interface{} { +func (d *DocPagesMove200ResponseMetaCacheDelta) GetWorking() *bool { + if d == nil { + return nil + } + return d.Working +} + +func (d *DocPagesMove200ResponseMetaCacheDelta) GetPages() []*DocPagesMove200ResponseMetaCacheDeltaPagesItem { + if d == nil { + return nil + } + return d.Pages +} + +func (d *DocPagesMove200ResponseMetaCacheDelta) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesInsert200ResponseMetaAffectedPagesItem) require(field *big.Int) { +func (d *DocPagesMove200ResponseMetaCacheDelta) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetPreviousDocVersion sets the PreviousDocVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsert200ResponseMetaAffectedPagesItem) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docPagesInsert200ResponseMetaAffectedPagesItemFieldPageObjectNumber) +func (d *DocPagesMove200ResponseMetaCacheDelta) SetPreviousDocVersion(previousDocVersion int) { + d.PreviousDocVersion = previousDocVersion + d.require(docPagesMove200ResponseMetaCacheDeltaFieldPreviousDocVersion) +} + +// SetDocVersion sets the DocVersion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesMove200ResponseMetaCacheDelta) SetDocVersion(docVersion int) { + d.DocVersion = docVersion + d.require(docPagesMove200ResponseMetaCacheDeltaFieldDocVersion) +} + +// SetAnnotationsVersion sets the AnnotationsVersion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesMove200ResponseMetaCacheDelta) SetAnnotationsVersion(annotationsVersion *int) { + d.AnnotationsVersion = annotationsVersion + d.require(docPagesMove200ResponseMetaCacheDeltaFieldAnnotationsVersion) +} + +// SetLayerVersion sets the LayerVersion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesMove200ResponseMetaCacheDelta) SetLayerVersion(layerVersion *int) { + d.LayerVersion = layerVersion + d.require(docPagesMove200ResponseMetaCacheDeltaFieldLayerVersion) } -// SetRevision sets the Revision field and marks it as non-optional; +// SetWorking sets the Working field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsert200ResponseMetaAffectedPagesItem) SetRevision(revision *DocPagesInsert200ResponseMetaAffectedPagesItemRevision) { - d.Revision = revision - d.require(docPagesInsert200ResponseMetaAffectedPagesItemFieldRevision) +func (d *DocPagesMove200ResponseMetaCacheDelta) SetWorking(working *bool) { + d.Working = working + d.require(docPagesMove200ResponseMetaCacheDeltaFieldWorking) } -// SetWeakAnnotationState sets the WeakAnnotationState field and marks it as non-optional; +// SetPages sets the Pages field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsert200ResponseMetaAffectedPagesItem) SetWeakAnnotationState(weakAnnotationState *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState) { - d.WeakAnnotationState = weakAnnotationState - d.require(docPagesInsert200ResponseMetaAffectedPagesItemFieldWeakAnnotationState) +func (d *DocPagesMove200ResponseMetaCacheDelta) SetPages(pages []*DocPagesMove200ResponseMetaCacheDeltaPagesItem) { + d.Pages = pages + d.require(docPagesMove200ResponseMetaCacheDeltaFieldPages) } -func (d *DocPagesInsert200ResponseMetaAffectedPagesItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesInsert200ResponseMetaAffectedPagesItem +func (d *DocPagesMove200ResponseMetaCacheDelta) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesMove200ResponseMetaCacheDelta var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesInsert200ResponseMetaAffectedPagesItem(value) + *d = DocPagesMove200ResponseMetaCacheDelta(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -138083,8 +157242,8 @@ func (d *DocPagesInsert200ResponseMetaAffectedPagesItem) UnmarshalJSON(data []by return nil } -func (d *DocPagesInsert200ResponseMetaAffectedPagesItem) MarshalJSON() ([]byte, error) { - type embed DocPagesInsert200ResponseMetaAffectedPagesItem +func (d *DocPagesMove200ResponseMetaCacheDelta) MarshalJSON() ([]byte, error) { + type embed DocPagesMove200ResponseMetaCacheDelta var marshaler = struct { embed }{ @@ -138094,7 +157253,7 @@ func (d *DocPagesInsert200ResponseMetaAffectedPagesItem) MarshalJSON() ([]byte, return json.Marshal(explicitMarshaler) } -func (d *DocPagesInsert200ResponseMetaAffectedPagesItem) String() string { +func (d *DocPagesMove200ResponseMetaCacheDelta) String() string { if d == nil { return "" } @@ -138110,15 +157269,13 @@ func (d *DocPagesInsert200ResponseMetaAffectedPagesItem) String() string { } var ( - docPagesInsert200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID = big.NewInt(1 << 0) - docPagesInsert200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docPagesInsert200ResponseMetaAffectedPagesItemRevisionFieldGeneration = big.NewInt(1 << 2) + docPagesMove200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) + docPagesMove200ResponseMetaCacheDeltaPagesItemFieldCache = big.NewInt(1 << 1) ) -type DocPagesInsert200ResponseMetaAffectedPagesItemRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocPagesMove200ResponseMetaCacheDeltaPagesItem struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Cache *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache `json:"cache" url:"cache"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -138127,69 +157284,55 @@ type DocPagesInsert200ResponseMetaAffectedPagesItemRevision struct { rawJSON json.RawMessage } -func (d *DocPagesInsert200ResponseMetaAffectedPagesItemRevision) GetDocSessionID() string { - if d == nil { - return "" - } - return d.DocSessionID -} - -func (d *DocPagesInsert200ResponseMetaAffectedPagesItemRevision) GetPageObjectNumber() int { +func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItem) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocPagesInsert200ResponseMetaAffectedPagesItemRevision) GetGeneration() int { +func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItem) GetCache() *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache { if d == nil { - return 0 + return nil } - return d.Generation + return d.Cache } -func (d *DocPagesInsert200ResponseMetaAffectedPagesItemRevision) GetExtraProperties() map[string]interface{} { +func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesInsert200ResponseMetaAffectedPagesItemRevision) require(field *big.Int) { +func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsert200ResponseMetaAffectedPagesItemRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docPagesInsert200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID) -} - // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsert200ResponseMetaAffectedPagesItemRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItem) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docPagesInsert200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber) + d.require(docPagesMove200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetCache sets the Cache field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsert200ResponseMetaAffectedPagesItemRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docPagesInsert200ResponseMetaAffectedPagesItemRevisionFieldGeneration) +func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItem) SetCache(cache *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache) { + d.Cache = cache + d.require(docPagesMove200ResponseMetaCacheDeltaPagesItemFieldCache) } -func (d *DocPagesInsert200ResponseMetaAffectedPagesItemRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesInsert200ResponseMetaAffectedPagesItemRevision +func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesMove200ResponseMetaCacheDeltaPagesItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesInsert200ResponseMetaAffectedPagesItemRevision(value) + *d = DocPagesMove200ResponseMetaCacheDeltaPagesItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -138199,8 +157342,8 @@ func (d *DocPagesInsert200ResponseMetaAffectedPagesItemRevision) UnmarshalJSON(d return nil } -func (d *DocPagesInsert200ResponseMetaAffectedPagesItemRevision) MarshalJSON() ([]byte, error) { - type embed DocPagesInsert200ResponseMetaAffectedPagesItemRevision +func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItem) MarshalJSON() ([]byte, error) { + type embed DocPagesMove200ResponseMetaCacheDeltaPagesItem var marshaler = struct { embed }{ @@ -138210,7 +157353,7 @@ func (d *DocPagesInsert200ResponseMetaAffectedPagesItemRevision) MarshalJSON() ( return json.Marshal(explicitMarshaler) } -func (d *DocPagesInsert200ResponseMetaAffectedPagesItemRevision) String() string { +func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItem) String() string { if d == nil { return "" } @@ -138225,138 +157368,14 @@ func (d *DocPagesInsert200ResponseMetaAffectedPagesItemRevision) String() string return fmt.Sprintf("%#v", d) } -type DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState struct { - Kind string - Unknown *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - Known *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - - rawJSON json.RawMessage -} - -func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKind() string { - if d == nil { - return "" - } - return d.Kind -} - -func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState) GetUnknown() *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown { - if d == nil { - return nil - } - return d.Unknown -} - -func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKnown() *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown { - if d == nil { - return nil - } - return d.Known -} - -func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "unknown": - value := new(DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Unknown = value - case "known": - value := new(DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Known = value - } - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.Unknown != nil { - return internal.MarshalJSONWithExtraProperty(d.Unknown, "kind", "unknown") - } - if d.Known != nil { - return internal.MarshalJSONWithExtraProperty(d.Known, "kind", "known") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil - } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) -} - -type DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor interface { - VisitUnknown(*DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) error - VisitKnown(*DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) error -} - -func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState) Accept(visitor DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor) error { - if d.Unknown != nil { - return visitor.VisitUnknown(d.Unknown) - } - if d.Known != nil { - return visitor.VisitKnown(d.Known) - } - return fmt.Errorf("type %T does not define a non-empty union type", d) -} - -func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState) validate() error { - if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.Unknown != nil { - fields = append(fields, "unknown") - } - if d.Known != nil { - fields = append(fields, "known") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } - } - return nil -} - var ( - docPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations = big.NewInt(1 << 0) + docPagesMove200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion = big.NewInt(1 << 0) + docPagesMove200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion = big.NewInt(1 << 1) ) -type DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown struct { - HasAnyWeakAnnotations bool `json:"hasAnyWeakAnnotations" url:"hasAnyWeakAnnotations"` +type DocPagesMove200ResponseMetaCacheDeltaPagesItemCache struct { + ContentVersion int `json:"contentVersion" url:"contentVersion"` + AnnotationVersion int `json:"annotationVersion" url:"annotationVersion"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -138365,41 +157384,55 @@ type DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown stru rawJSON json.RawMessage } -func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetHasAnyWeakAnnotations() bool { +func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache) GetContentVersion() int { if d == nil { - return false + return 0 } - return d.HasAnyWeakAnnotations + return d.ContentVersion } -func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetExtraProperties() map[string]interface{} { +func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache) GetAnnotationVersion() int { + if d == nil { + return 0 + } + return d.AnnotationVersion +} + +func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) require(field *big.Int) { +func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetHasAnyWeakAnnotations sets the HasAnyWeakAnnotations field and marks it as non-optional; +// SetContentVersion sets the ContentVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) SetHasAnyWeakAnnotations(hasAnyWeakAnnotations bool) { - d.HasAnyWeakAnnotations = hasAnyWeakAnnotations - d.require(docPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations) +func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache) SetContentVersion(contentVersion int) { + d.ContentVersion = contentVersion + d.require(docPagesMove200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion) } -func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown +// SetAnnotationVersion sets the AnnotationVersion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache) SetAnnotationVersion(annotationVersion int) { + d.AnnotationVersion = annotationVersion + d.require(docPagesMove200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion) +} + +func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesMove200ResponseMetaCacheDeltaPagesItemCache var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(value) + *d = DocPagesMove200ResponseMetaCacheDeltaPagesItemCache(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -138409,8 +157442,8 @@ func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) return nil } -func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) MarshalJSON() ([]byte, error) { - type embed DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown +func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON() ([]byte, error) { + type embed DocPagesMove200ResponseMetaCacheDeltaPagesItemCache var marshaler = struct { embed }{ @@ -138420,7 +157453,7 @@ func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) return json.Marshal(explicitMarshaler) } -func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) String() string { +func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache) String() string { if d == nil { return "" } @@ -138435,7 +157468,18 @@ func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) return fmt.Sprintf("%#v", d) } -type DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown struct { +var ( + docPagesMove400ResponseFieldName = big.NewInt(1 << 0) + docPagesMove400ResponseFieldCode = big.NewInt(1 << 1) + docPagesMove400ResponseFieldMessage = big.NewInt(1 << 2) + docPagesMove400ResponseFieldDetails = big.NewInt(1 << 3) +) + +type DocPagesMove400Response struct { + Name DocPagesMove400ResponseName `json:"name" url:"name"` + Code DocPagesMove400ResponseCode `json:"code" url:"code"` + Message string `json:"message" url:"message"` + Details map[string]any `json:"details,omitempty" url:"details,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -138444,27 +157488,83 @@ type DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown st rawJSON json.RawMessage } -func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) GetExtraProperties() map[string]interface{} { +func (d *DocPagesMove400Response) GetName() DocPagesMove400ResponseName { + if d == nil { + return "" + } + return d.Name +} + +func (d *DocPagesMove400Response) GetCode() DocPagesMove400ResponseCode { + if d == nil { + return "" + } + return d.Code +} + +func (d *DocPagesMove400Response) GetMessage() string { + if d == nil { + return "" + } + return d.Message +} + +func (d *DocPagesMove400Response) GetDetails() map[string]any { + if d == nil { + return nil + } + return d.Details +} + +func (d *DocPagesMove400Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) require(field *big.Int) { +func (d *DocPagesMove400Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown +// SetName sets the Name field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesMove400Response) SetName(name DocPagesMove400ResponseName) { + d.Name = name + d.require(docPagesMove400ResponseFieldName) +} + +// SetCode sets the Code field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesMove400Response) SetCode(code DocPagesMove400ResponseCode) { + d.Code = code + d.require(docPagesMove400ResponseFieldCode) +} + +// SetMessage sets the Message field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesMove400Response) SetMessage(message string) { + d.Message = message + d.require(docPagesMove400ResponseFieldMessage) +} + +// SetDetails sets the Details field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesMove400Response) SetDetails(details map[string]any) { + d.Details = details + d.require(docPagesMove400ResponseFieldDetails) +} + +func (d *DocPagesMove400Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesMove400Response var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(value) + *d = DocPagesMove400Response(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -138474,8 +157574,8 @@ func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknow return nil } -func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) MarshalJSON() ([]byte, error) { - type embed DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown +func (d *DocPagesMove400Response) MarshalJSON() ([]byte, error) { + type embed DocPagesMove400Response var marshaler = struct { embed }{ @@ -138485,7 +157585,7 @@ func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknow return json.Marshal(explicitMarshaler) } -func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) String() string { +func (d *DocPagesMove400Response) String() string { if d == nil { return "" } @@ -138500,22 +157600,128 @@ func (d *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknow return fmt.Sprintf("%#v", d) } +type DocPagesMove400ResponseCode string + +const ( + DocPagesMove400ResponseCodeUnknown DocPagesMove400ResponseCode = "Unknown" + DocPagesMove400ResponseCodeInvalidArg DocPagesMove400ResponseCode = "InvalidArg" + DocPagesMove400ResponseCodeDocNotOpen DocPagesMove400ResponseCode = "DocNotOpen" + DocPagesMove400ResponseCodeDocOpenFailed DocPagesMove400ResponseCode = "DocOpenFailed" + DocPagesMove400ResponseCodeDocPasswordRequired DocPagesMove400ResponseCode = "DocPasswordRequired" + DocPagesMove400ResponseCodeDocPasswordIncorrect DocPagesMove400ResponseCode = "DocPasswordIncorrect" + DocPagesMove400ResponseCodeSharePasswordRequired DocPagesMove400ResponseCode = "SharePasswordRequired" + DocPagesMove400ResponseCodeAborted DocPagesMove400ResponseCode = "Aborted" + DocPagesMove400ResponseCodeNetwork DocPagesMove400ResponseCode = "Network" + DocPagesMove400ResponseCodeUnauthenticated DocPagesMove400ResponseCode = "Unauthenticated" + DocPagesMove400ResponseCodeForbidden DocPagesMove400ResponseCode = "Forbidden" + DocPagesMove400ResponseCodeNotFound DocPagesMove400ResponseCode = "NotFound" + DocPagesMove400ResponseCodeWireFormat DocPagesMove400ResponseCode = "WireFormat" + DocPagesMove400ResponseCodeRuntimeUnavailable DocPagesMove400ResponseCode = "RuntimeUnavailable" + DocPagesMove400ResponseCodeInvalidReference DocPagesMove400ResponseCode = "InvalidReference" + DocPagesMove400ResponseCodeWeakAnnotationSessionConflict DocPagesMove400ResponseCode = "WeakAnnotationSessionConflict" + DocPagesMove400ResponseCodeLayerVersionConflict DocPagesMove400ResponseCode = "LayerVersionConflict" + DocPagesMove400ResponseCodeNotImplemented DocPagesMove400ResponseCode = "NotImplemented" + DocPagesMove400ResponseCodeMalformedPdf DocPagesMove400ResponseCode = "MalformedPdf" + DocPagesMove400ResponseCodeSigningPending DocPagesMove400ResponseCode = "SigningPending" + DocPagesMove400ResponseCodeSigningExpired DocPagesMove400ResponseCode = "SigningExpired" + DocPagesMove400ResponseCodeSigningVersionMismatch DocPagesMove400ResponseCode = "SigningVersionMismatch" + DocPagesMove400ResponseCodeSignatureRefused DocPagesMove400ResponseCode = "SignatureRefused" + DocPagesMove400ResponseCodeProtectedDocument DocPagesMove400ResponseCode = "ProtectedDocument" + DocPagesMove400ResponseCodeStaleBase DocPagesMove400ResponseCode = "StaleBase" +) + +func NewDocPagesMove400ResponseCodeFromString(s string) (DocPagesMove400ResponseCode, error) { + switch s { + case "Unknown": + return DocPagesMove400ResponseCodeUnknown, nil + case "InvalidArg": + return DocPagesMove400ResponseCodeInvalidArg, nil + case "DocNotOpen": + return DocPagesMove400ResponseCodeDocNotOpen, nil + case "DocOpenFailed": + return DocPagesMove400ResponseCodeDocOpenFailed, nil + case "DocPasswordRequired": + return DocPagesMove400ResponseCodeDocPasswordRequired, nil + case "DocPasswordIncorrect": + return DocPagesMove400ResponseCodeDocPasswordIncorrect, nil + case "SharePasswordRequired": + return DocPagesMove400ResponseCodeSharePasswordRequired, nil + case "Aborted": + return DocPagesMove400ResponseCodeAborted, nil + case "Network": + return DocPagesMove400ResponseCodeNetwork, nil + case "Unauthenticated": + return DocPagesMove400ResponseCodeUnauthenticated, nil + case "Forbidden": + return DocPagesMove400ResponseCodeForbidden, nil + case "NotFound": + return DocPagesMove400ResponseCodeNotFound, nil + case "WireFormat": + return DocPagesMove400ResponseCodeWireFormat, nil + case "RuntimeUnavailable": + return DocPagesMove400ResponseCodeRuntimeUnavailable, nil + case "InvalidReference": + return DocPagesMove400ResponseCodeInvalidReference, nil + case "WeakAnnotationSessionConflict": + return DocPagesMove400ResponseCodeWeakAnnotationSessionConflict, nil + case "LayerVersionConflict": + return DocPagesMove400ResponseCodeLayerVersionConflict, nil + case "NotImplemented": + return DocPagesMove400ResponseCodeNotImplemented, nil + case "MalformedPdf": + return DocPagesMove400ResponseCodeMalformedPdf, nil + case "SigningPending": + return DocPagesMove400ResponseCodeSigningPending, nil + case "SigningExpired": + return DocPagesMove400ResponseCodeSigningExpired, nil + case "SigningVersionMismatch": + return DocPagesMove400ResponseCodeSigningVersionMismatch, nil + case "SignatureRefused": + return DocPagesMove400ResponseCodeSignatureRefused, nil + case "ProtectedDocument": + return DocPagesMove400ResponseCodeProtectedDocument, nil + case "StaleBase": + return DocPagesMove400ResponseCodeStaleBase, nil + } + var t DocPagesMove400ResponseCode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesMove400ResponseCode) Ptr() *DocPagesMove400ResponseCode { + return &d +} + +type DocPagesMove400ResponseName string + +const ( + DocPagesMove400ResponseNameEngineError DocPagesMove400ResponseName = "EngineError" +) + +func NewDocPagesMove400ResponseNameFromString(s string) (DocPagesMove400ResponseName, error) { + switch s { + case "EngineError": + return DocPagesMove400ResponseNameEngineError, nil + } + var t DocPagesMove400ResponseName + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesMove400ResponseName) Ptr() *DocPagesMove400ResponseName { + return &d +} + var ( - docPagesInsert200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) - docPagesInsert200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) - docPagesInsert200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) - docPagesInsert200ResponseMetaCacheDeltaFieldLayerVersion = big.NewInt(1 << 3) - docPagesInsert200ResponseMetaCacheDeltaFieldWorking = big.NewInt(1 << 4) - docPagesInsert200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 5) + docPagesMove404ResponseFieldName = big.NewInt(1 << 0) + docPagesMove404ResponseFieldCode = big.NewInt(1 << 1) + docPagesMove404ResponseFieldMessage = big.NewInt(1 << 2) + docPagesMove404ResponseFieldDetails = big.NewInt(1 << 3) ) -type DocPagesInsert200ResponseMetaCacheDelta struct { - PreviousDocVersion int `json:"previousDocVersion" url:"previousDocVersion"` - DocVersion int `json:"docVersion" url:"docVersion"` - AnnotationsVersion *int `json:"annotationsVersion,omitempty" url:"annotationsVersion,omitempty"` - LayerVersion *int `json:"layerVersion,omitempty" url:"layerVersion,omitempty"` - Working *bool `json:"working,omitempty" url:"working,omitempty"` - Pages []*DocPagesInsert200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` +type DocPagesMove404Response struct { + Name DocPagesMove404ResponseName `json:"name" url:"name"` + Code DocPagesMove404ResponseCode `json:"code" url:"code"` + Message string `json:"message" url:"message"` + Details map[string]any `json:"details,omitempty" url:"details,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -138524,111 +157730,83 @@ type DocPagesInsert200ResponseMetaCacheDelta struct { rawJSON json.RawMessage } -func (d *DocPagesInsert200ResponseMetaCacheDelta) GetPreviousDocVersion() int { - if d == nil { - return 0 - } - return d.PreviousDocVersion -} - -func (d *DocPagesInsert200ResponseMetaCacheDelta) GetDocVersion() int { - if d == nil { - return 0 - } - return d.DocVersion -} - -func (d *DocPagesInsert200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { +func (d *DocPagesMove404Response) GetName() DocPagesMove404ResponseName { if d == nil { - return nil + return "" } - return d.AnnotationsVersion + return d.Name } -func (d *DocPagesInsert200ResponseMetaCacheDelta) GetLayerVersion() *int { +func (d *DocPagesMove404Response) GetCode() DocPagesMove404ResponseCode { if d == nil { - return nil + return "" } - return d.LayerVersion + return d.Code } -func (d *DocPagesInsert200ResponseMetaCacheDelta) GetWorking() *bool { +func (d *DocPagesMove404Response) GetMessage() string { if d == nil { - return nil + return "" } - return d.Working + return d.Message } -func (d *DocPagesInsert200ResponseMetaCacheDelta) GetPages() []*DocPagesInsert200ResponseMetaCacheDeltaPagesItem { +func (d *DocPagesMove404Response) GetDetails() map[string]any { if d == nil { return nil } - return d.Pages + return d.Details } -func (d *DocPagesInsert200ResponseMetaCacheDelta) GetExtraProperties() map[string]interface{} { +func (d *DocPagesMove404Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesInsert200ResponseMetaCacheDelta) require(field *big.Int) { +func (d *DocPagesMove404Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPreviousDocVersion sets the PreviousDocVersion field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsert200ResponseMetaCacheDelta) SetPreviousDocVersion(previousDocVersion int) { - d.PreviousDocVersion = previousDocVersion - d.require(docPagesInsert200ResponseMetaCacheDeltaFieldPreviousDocVersion) -} - -// SetDocVersion sets the DocVersion field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsert200ResponseMetaCacheDelta) SetDocVersion(docVersion int) { - d.DocVersion = docVersion - d.require(docPagesInsert200ResponseMetaCacheDeltaFieldDocVersion) -} - -// SetAnnotationsVersion sets the AnnotationsVersion field and marks it as non-optional; +// SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsert200ResponseMetaCacheDelta) SetAnnotationsVersion(annotationsVersion *int) { - d.AnnotationsVersion = annotationsVersion - d.require(docPagesInsert200ResponseMetaCacheDeltaFieldAnnotationsVersion) +func (d *DocPagesMove404Response) SetName(name DocPagesMove404ResponseName) { + d.Name = name + d.require(docPagesMove404ResponseFieldName) } -// SetLayerVersion sets the LayerVersion field and marks it as non-optional; +// SetCode sets the Code field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsert200ResponseMetaCacheDelta) SetLayerVersion(layerVersion *int) { - d.LayerVersion = layerVersion - d.require(docPagesInsert200ResponseMetaCacheDeltaFieldLayerVersion) +func (d *DocPagesMove404Response) SetCode(code DocPagesMove404ResponseCode) { + d.Code = code + d.require(docPagesMove404ResponseFieldCode) } -// SetWorking sets the Working field and marks it as non-optional; +// SetMessage sets the Message field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsert200ResponseMetaCacheDelta) SetWorking(working *bool) { - d.Working = working - d.require(docPagesInsert200ResponseMetaCacheDeltaFieldWorking) +func (d *DocPagesMove404Response) SetMessage(message string) { + d.Message = message + d.require(docPagesMove404ResponseFieldMessage) } -// SetPages sets the Pages field and marks it as non-optional; +// SetDetails sets the Details field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsert200ResponseMetaCacheDelta) SetPages(pages []*DocPagesInsert200ResponseMetaCacheDeltaPagesItem) { - d.Pages = pages - d.require(docPagesInsert200ResponseMetaCacheDeltaFieldPages) +func (d *DocPagesMove404Response) SetDetails(details map[string]any) { + d.Details = details + d.require(docPagesMove404ResponseFieldDetails) } -func (d *DocPagesInsert200ResponseMetaCacheDelta) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesInsert200ResponseMetaCacheDelta +func (d *DocPagesMove404Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesMove404Response var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesInsert200ResponseMetaCacheDelta(value) + *d = DocPagesMove404Response(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -138638,8 +157816,8 @@ func (d *DocPagesInsert200ResponseMetaCacheDelta) UnmarshalJSON(data []byte) err return nil } -func (d *DocPagesInsert200ResponseMetaCacheDelta) MarshalJSON() ([]byte, error) { - type embed DocPagesInsert200ResponseMetaCacheDelta +func (d *DocPagesMove404Response) MarshalJSON() ([]byte, error) { + type embed DocPagesMove404Response var marshaler = struct { embed }{ @@ -138649,7 +157827,7 @@ func (d *DocPagesInsert200ResponseMetaCacheDelta) MarshalJSON() ([]byte, error) return json.Marshal(explicitMarshaler) } -func (d *DocPagesInsert200ResponseMetaCacheDelta) String() string { +func (d *DocPagesMove404Response) String() string { if d == nil { return "" } @@ -138664,92 +157842,193 @@ func (d *DocPagesInsert200ResponseMetaCacheDelta) String() string { return fmt.Sprintf("%#v", d) } +type DocPagesMove404ResponseCode string + +const ( + DocPagesMove404ResponseCodeUnknown DocPagesMove404ResponseCode = "Unknown" + DocPagesMove404ResponseCodeInvalidArg DocPagesMove404ResponseCode = "InvalidArg" + DocPagesMove404ResponseCodeDocNotOpen DocPagesMove404ResponseCode = "DocNotOpen" + DocPagesMove404ResponseCodeDocOpenFailed DocPagesMove404ResponseCode = "DocOpenFailed" + DocPagesMove404ResponseCodeDocPasswordRequired DocPagesMove404ResponseCode = "DocPasswordRequired" + DocPagesMove404ResponseCodeDocPasswordIncorrect DocPagesMove404ResponseCode = "DocPasswordIncorrect" + DocPagesMove404ResponseCodeSharePasswordRequired DocPagesMove404ResponseCode = "SharePasswordRequired" + DocPagesMove404ResponseCodeAborted DocPagesMove404ResponseCode = "Aborted" + DocPagesMove404ResponseCodeNetwork DocPagesMove404ResponseCode = "Network" + DocPagesMove404ResponseCodeUnauthenticated DocPagesMove404ResponseCode = "Unauthenticated" + DocPagesMove404ResponseCodeForbidden DocPagesMove404ResponseCode = "Forbidden" + DocPagesMove404ResponseCodeNotFound DocPagesMove404ResponseCode = "NotFound" + DocPagesMove404ResponseCodeWireFormat DocPagesMove404ResponseCode = "WireFormat" + DocPagesMove404ResponseCodeRuntimeUnavailable DocPagesMove404ResponseCode = "RuntimeUnavailable" + DocPagesMove404ResponseCodeInvalidReference DocPagesMove404ResponseCode = "InvalidReference" + DocPagesMove404ResponseCodeWeakAnnotationSessionConflict DocPagesMove404ResponseCode = "WeakAnnotationSessionConflict" + DocPagesMove404ResponseCodeLayerVersionConflict DocPagesMove404ResponseCode = "LayerVersionConflict" + DocPagesMove404ResponseCodeNotImplemented DocPagesMove404ResponseCode = "NotImplemented" + DocPagesMove404ResponseCodeMalformedPdf DocPagesMove404ResponseCode = "MalformedPdf" + DocPagesMove404ResponseCodeSigningPending DocPagesMove404ResponseCode = "SigningPending" + DocPagesMove404ResponseCodeSigningExpired DocPagesMove404ResponseCode = "SigningExpired" + DocPagesMove404ResponseCodeSigningVersionMismatch DocPagesMove404ResponseCode = "SigningVersionMismatch" + DocPagesMove404ResponseCodeSignatureRefused DocPagesMove404ResponseCode = "SignatureRefused" + DocPagesMove404ResponseCodeProtectedDocument DocPagesMove404ResponseCode = "ProtectedDocument" + DocPagesMove404ResponseCodeStaleBase DocPagesMove404ResponseCode = "StaleBase" +) + +func NewDocPagesMove404ResponseCodeFromString(s string) (DocPagesMove404ResponseCode, error) { + switch s { + case "Unknown": + return DocPagesMove404ResponseCodeUnknown, nil + case "InvalidArg": + return DocPagesMove404ResponseCodeInvalidArg, nil + case "DocNotOpen": + return DocPagesMove404ResponseCodeDocNotOpen, nil + case "DocOpenFailed": + return DocPagesMove404ResponseCodeDocOpenFailed, nil + case "DocPasswordRequired": + return DocPagesMove404ResponseCodeDocPasswordRequired, nil + case "DocPasswordIncorrect": + return DocPagesMove404ResponseCodeDocPasswordIncorrect, nil + case "SharePasswordRequired": + return DocPagesMove404ResponseCodeSharePasswordRequired, nil + case "Aborted": + return DocPagesMove404ResponseCodeAborted, nil + case "Network": + return DocPagesMove404ResponseCodeNetwork, nil + case "Unauthenticated": + return DocPagesMove404ResponseCodeUnauthenticated, nil + case "Forbidden": + return DocPagesMove404ResponseCodeForbidden, nil + case "NotFound": + return DocPagesMove404ResponseCodeNotFound, nil + case "WireFormat": + return DocPagesMove404ResponseCodeWireFormat, nil + case "RuntimeUnavailable": + return DocPagesMove404ResponseCodeRuntimeUnavailable, nil + case "InvalidReference": + return DocPagesMove404ResponseCodeInvalidReference, nil + case "WeakAnnotationSessionConflict": + return DocPagesMove404ResponseCodeWeakAnnotationSessionConflict, nil + case "LayerVersionConflict": + return DocPagesMove404ResponseCodeLayerVersionConflict, nil + case "NotImplemented": + return DocPagesMove404ResponseCodeNotImplemented, nil + case "MalformedPdf": + return DocPagesMove404ResponseCodeMalformedPdf, nil + case "SigningPending": + return DocPagesMove404ResponseCodeSigningPending, nil + case "SigningExpired": + return DocPagesMove404ResponseCodeSigningExpired, nil + case "SigningVersionMismatch": + return DocPagesMove404ResponseCodeSigningVersionMismatch, nil + case "SignatureRefused": + return DocPagesMove404ResponseCodeSignatureRefused, nil + case "ProtectedDocument": + return DocPagesMove404ResponseCodeProtectedDocument, nil + case "StaleBase": + return DocPagesMove404ResponseCodeStaleBase, nil + } + var t DocPagesMove404ResponseCode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesMove404ResponseCode) Ptr() *DocPagesMove404ResponseCode { + return &d +} + +type DocPagesMove404ResponseName string + +const ( + DocPagesMove404ResponseNameEngineError DocPagesMove404ResponseName = "EngineError" +) + +func NewDocPagesMove404ResponseNameFromString(s string) (DocPagesMove404ResponseName, error) { + switch s { + case "EngineError": + return DocPagesMove404ResponseNameEngineError, nil + } + var t DocPagesMove404ResponseName + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesMove404ResponseName) Ptr() *DocPagesMove404ResponseName { + return &d +} + +type DocPagesMoveRequest = map[string]any + var ( - docPagesInsert200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) - docPagesInsert200ResponseMetaCacheDeltaPagesItemFieldCache = big.NewInt(1 << 1) + docPagesRemoveName200ResponseFieldMeta = big.NewInt(1 << 0) ) -type DocPagesInsert200ResponseMetaCacheDeltaPagesItem struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Cache *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache `json:"cache" url:"cache"` +type DocPagesRemoveName200Response struct { + Meta *DocPagesRemoveName200ResponseMeta `json:"meta" url:"meta"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` - extraProperties map[string]interface{} - rawJSON json.RawMessage -} + ExtraProperties map[string]interface{} `json:"-" url:"-"` -func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItem) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber + rawJSON json.RawMessage } -func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItem) GetCache() *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache { +func (d *DocPagesRemoveName200Response) GetMeta() *DocPagesRemoveName200ResponseMeta { if d == nil { return nil } - return d.Cache + return d.Meta } -func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItem) GetExtraProperties() map[string]interface{} { +func (d *DocPagesRemoveName200Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.extraProperties + return d.ExtraProperties } -func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItem) require(field *big.Int) { +func (d *DocPagesRemoveName200Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItem) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docPagesInsert200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber) -} - -// SetCache sets the Cache field and marks it as non-optional; +// SetMeta sets the Meta field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItem) SetCache(cache *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache) { - d.Cache = cache - d.require(docPagesInsert200ResponseMetaCacheDeltaPagesItemFieldCache) +func (d *DocPagesRemoveName200Response) SetMeta(meta *DocPagesRemoveName200ResponseMeta) { + d.Meta = meta + d.require(docPagesRemoveName200ResponseFieldMeta) } -func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesInsert200ResponseMetaCacheDeltaPagesItem - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { +func (d *DocPagesRemoveName200Response) UnmarshalJSON(data []byte) error { + type embed DocPagesRemoveName200Response + var unmarshaler = struct { + embed + }{ + embed: embed(*d), + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocPagesInsert200ResponseMetaCacheDeltaPagesItem(value) + *d = DocPagesRemoveName200Response(unmarshaler.embed) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err } - d.extraProperties = extraProperties + d.ExtraProperties = extraProperties d.rawJSON = json.RawMessage(data) return nil } -func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItem) MarshalJSON() ([]byte, error) { - type embed DocPagesInsert200ResponseMetaCacheDeltaPagesItem +func (d *DocPagesRemoveName200Response) MarshalJSON() ([]byte, error) { + type embed DocPagesRemoveName200Response var marshaler = struct { embed }{ embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return internal.MarshalJSONWithExtraProperties(explicitMarshaler, d.ExtraProperties) } -func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItem) String() string { +func (d *DocPagesRemoveName200Response) String() string { if d == nil { return "" } @@ -138765,13 +158044,13 @@ func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItem) String() string { } var ( - docPagesInsert200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion = big.NewInt(1 << 0) - docPagesInsert200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion = big.NewInt(1 << 1) + docPagesRemoveName200ResponseMetaFieldAffectedPages = big.NewInt(1 << 0) + docPagesRemoveName200ResponseMetaFieldCacheDelta = big.NewInt(1 << 1) ) -type DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache struct { - ContentVersion int `json:"contentVersion" url:"contentVersion"` - AnnotationVersion int `json:"annotationVersion" url:"annotationVersion"` +type DocPagesRemoveName200ResponseMeta struct { + AffectedPages []*DocPagesRemoveName200ResponseMetaAffectedPagesItem `json:"affectedPages" url:"affectedPages"` + CacheDelta *DocPagesRemoveName200ResponseMetaCacheDelta `json:"cacheDelta,omitempty" url:"cacheDelta,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -138780,55 +158059,55 @@ type DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache struct { rawJSON json.RawMessage } -func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache) GetContentVersion() int { +func (d *DocPagesRemoveName200ResponseMeta) GetAffectedPages() []*DocPagesRemoveName200ResponseMetaAffectedPagesItem { if d == nil { - return 0 + return nil } - return d.ContentVersion + return d.AffectedPages } -func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache) GetAnnotationVersion() int { +func (d *DocPagesRemoveName200ResponseMeta) GetCacheDelta() *DocPagesRemoveName200ResponseMetaCacheDelta { if d == nil { - return 0 + return nil } - return d.AnnotationVersion + return d.CacheDelta } -func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache) GetExtraProperties() map[string]interface{} { +func (d *DocPagesRemoveName200ResponseMeta) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache) require(field *big.Int) { +func (d *DocPagesRemoveName200ResponseMeta) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetContentVersion sets the ContentVersion field and marks it as non-optional; +// SetAffectedPages sets the AffectedPages field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache) SetContentVersion(contentVersion int) { - d.ContentVersion = contentVersion - d.require(docPagesInsert200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion) +func (d *DocPagesRemoveName200ResponseMeta) SetAffectedPages(affectedPages []*DocPagesRemoveName200ResponseMetaAffectedPagesItem) { + d.AffectedPages = affectedPages + d.require(docPagesRemoveName200ResponseMetaFieldAffectedPages) } -// SetAnnotationVersion sets the AnnotationVersion field and marks it as non-optional; +// SetCacheDelta sets the CacheDelta field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache) SetAnnotationVersion(annotationVersion int) { - d.AnnotationVersion = annotationVersion - d.require(docPagesInsert200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion) +func (d *DocPagesRemoveName200ResponseMeta) SetCacheDelta(cacheDelta *DocPagesRemoveName200ResponseMetaCacheDelta) { + d.CacheDelta = cacheDelta + d.require(docPagesRemoveName200ResponseMetaFieldCacheDelta) } -func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache +func (d *DocPagesRemoveName200ResponseMeta) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesRemoveName200ResponseMeta var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache(value) + *d = DocPagesRemoveName200ResponseMeta(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -138838,8 +158117,8 @@ func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJSON(da return nil } -func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON() ([]byte, error) { - type embed DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache +func (d *DocPagesRemoveName200ResponseMeta) MarshalJSON() ([]byte, error) { + type embed DocPagesRemoveName200ResponseMeta var marshaler = struct { embed }{ @@ -138849,7 +158128,7 @@ func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON() ([ return json.Marshal(explicitMarshaler) } -func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache) String() string { +func (d *DocPagesRemoveName200ResponseMeta) String() string { if d == nil { return "" } @@ -138865,17 +158144,15 @@ func (d *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache) String() string } var ( - docPagesInsert400ResponseFieldName = big.NewInt(1 << 0) - docPagesInsert400ResponseFieldCode = big.NewInt(1 << 1) - docPagesInsert400ResponseFieldMessage = big.NewInt(1 << 2) - docPagesInsert400ResponseFieldDetails = big.NewInt(1 << 3) + docPagesRemoveName200ResponseMetaAffectedPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) + docPagesRemoveName200ResponseMetaAffectedPagesItemFieldRevision = big.NewInt(1 << 1) + docPagesRemoveName200ResponseMetaAffectedPagesItemFieldWeakAnnotationState = big.NewInt(1 << 2) ) -type DocPagesInsert400Response struct { - Name DocPagesInsert400ResponseName `json:"name" url:"name"` - Code DocPagesInsert400ResponseCode `json:"code" url:"code"` - Message string `json:"message" url:"message"` - Details map[string]any `json:"details,omitempty" url:"details,omitempty"` +type DocPagesRemoveName200ResponseMetaAffectedPagesItem struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Revision *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision `json:"revision" url:"revision"` + WeakAnnotationState *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState `json:"weakAnnotationState" url:"weakAnnotationState"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -138884,83 +158161,69 @@ type DocPagesInsert400Response struct { rawJSON json.RawMessage } -func (d *DocPagesInsert400Response) GetName() DocPagesInsert400ResponseName { - if d == nil { - return "" - } - return d.Name -} - -func (d *DocPagesInsert400Response) GetCode() DocPagesInsert400ResponseCode { +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItem) GetPageObjectNumber() int { if d == nil { - return "" + return 0 } - return d.Code + return d.PageObjectNumber } -func (d *DocPagesInsert400Response) GetMessage() string { +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItem) GetRevision() *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision { if d == nil { - return "" + return nil } - return d.Message + return d.Revision } -func (d *DocPagesInsert400Response) GetDetails() map[string]any { +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItem) GetWeakAnnotationState() *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState { if d == nil { return nil } - return d.Details + return d.WeakAnnotationState } -func (d *DocPagesInsert400Response) GetExtraProperties() map[string]interface{} { +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesInsert400Response) require(field *big.Int) { +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetName sets the Name field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsert400Response) SetName(name DocPagesInsert400ResponseName) { - d.Name = name - d.require(docPagesInsert400ResponseFieldName) -} - -// SetCode sets the Code field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsert400Response) SetCode(code DocPagesInsert400ResponseCode) { - d.Code = code - d.require(docPagesInsert400ResponseFieldCode) +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItem) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docPagesRemoveName200ResponseMetaAffectedPagesItemFieldPageObjectNumber) } -// SetMessage sets the Message field and marks it as non-optional; +// SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsert400Response) SetMessage(message string) { - d.Message = message - d.require(docPagesInsert400ResponseFieldMessage) +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItem) SetRevision(revision *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision) { + d.Revision = revision + d.require(docPagesRemoveName200ResponseMetaAffectedPagesItemFieldRevision) } -// SetDetails sets the Details field and marks it as non-optional; +// SetWeakAnnotationState sets the WeakAnnotationState field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsert400Response) SetDetails(details map[string]any) { - d.Details = details - d.require(docPagesInsert400ResponseFieldDetails) +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItem) SetWeakAnnotationState(weakAnnotationState *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState) { + d.WeakAnnotationState = weakAnnotationState + d.require(docPagesRemoveName200ResponseMetaAffectedPagesItemFieldWeakAnnotationState) } -func (d *DocPagesInsert400Response) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesInsert400Response +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesRemoveName200ResponseMetaAffectedPagesItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesInsert400Response(value) + *d = DocPagesRemoveName200ResponseMetaAffectedPagesItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -138970,154 +158233,42 @@ func (d *DocPagesInsert400Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocPagesInsert400Response) MarshalJSON() ([]byte, error) { - type embed DocPagesInsert400Response - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) -} - -func (d *DocPagesInsert400Response) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) -} - -type DocPagesInsert400ResponseCode string - -const ( - DocPagesInsert400ResponseCodeUnknown DocPagesInsert400ResponseCode = "Unknown" - DocPagesInsert400ResponseCodeInvalidArg DocPagesInsert400ResponseCode = "InvalidArg" - DocPagesInsert400ResponseCodeDocNotOpen DocPagesInsert400ResponseCode = "DocNotOpen" - DocPagesInsert400ResponseCodeDocOpenFailed DocPagesInsert400ResponseCode = "DocOpenFailed" - DocPagesInsert400ResponseCodeDocPasswordRequired DocPagesInsert400ResponseCode = "DocPasswordRequired" - DocPagesInsert400ResponseCodeDocPasswordIncorrect DocPagesInsert400ResponseCode = "DocPasswordIncorrect" - DocPagesInsert400ResponseCodeSharePasswordRequired DocPagesInsert400ResponseCode = "SharePasswordRequired" - DocPagesInsert400ResponseCodeAborted DocPagesInsert400ResponseCode = "Aborted" - DocPagesInsert400ResponseCodeNetwork DocPagesInsert400ResponseCode = "Network" - DocPagesInsert400ResponseCodeUnauthenticated DocPagesInsert400ResponseCode = "Unauthenticated" - DocPagesInsert400ResponseCodeForbidden DocPagesInsert400ResponseCode = "Forbidden" - DocPagesInsert400ResponseCodeNotFound DocPagesInsert400ResponseCode = "NotFound" - DocPagesInsert400ResponseCodeWireFormat DocPagesInsert400ResponseCode = "WireFormat" - DocPagesInsert400ResponseCodeRuntimeUnavailable DocPagesInsert400ResponseCode = "RuntimeUnavailable" - DocPagesInsert400ResponseCodeInvalidReference DocPagesInsert400ResponseCode = "InvalidReference" - DocPagesInsert400ResponseCodeWeakAnnotationSessionConflict DocPagesInsert400ResponseCode = "WeakAnnotationSessionConflict" - DocPagesInsert400ResponseCodeLayerVersionConflict DocPagesInsert400ResponseCode = "LayerVersionConflict" - DocPagesInsert400ResponseCodeNotImplemented DocPagesInsert400ResponseCode = "NotImplemented" - DocPagesInsert400ResponseCodeMalformedPdf DocPagesInsert400ResponseCode = "MalformedPdf" - DocPagesInsert400ResponseCodeSigningPending DocPagesInsert400ResponseCode = "SigningPending" - DocPagesInsert400ResponseCodeSigningExpired DocPagesInsert400ResponseCode = "SigningExpired" - DocPagesInsert400ResponseCodeSigningVersionMismatch DocPagesInsert400ResponseCode = "SigningVersionMismatch" - DocPagesInsert400ResponseCodeSignatureRefused DocPagesInsert400ResponseCode = "SignatureRefused" - DocPagesInsert400ResponseCodeProtectedDocument DocPagesInsert400ResponseCode = "ProtectedDocument" - DocPagesInsert400ResponseCodeStaleBase DocPagesInsert400ResponseCode = "StaleBase" -) - -func NewDocPagesInsert400ResponseCodeFromString(s string) (DocPagesInsert400ResponseCode, error) { - switch s { - case "Unknown": - return DocPagesInsert400ResponseCodeUnknown, nil - case "InvalidArg": - return DocPagesInsert400ResponseCodeInvalidArg, nil - case "DocNotOpen": - return DocPagesInsert400ResponseCodeDocNotOpen, nil - case "DocOpenFailed": - return DocPagesInsert400ResponseCodeDocOpenFailed, nil - case "DocPasswordRequired": - return DocPagesInsert400ResponseCodeDocPasswordRequired, nil - case "DocPasswordIncorrect": - return DocPagesInsert400ResponseCodeDocPasswordIncorrect, nil - case "SharePasswordRequired": - return DocPagesInsert400ResponseCodeSharePasswordRequired, nil - case "Aborted": - return DocPagesInsert400ResponseCodeAborted, nil - case "Network": - return DocPagesInsert400ResponseCodeNetwork, nil - case "Unauthenticated": - return DocPagesInsert400ResponseCodeUnauthenticated, nil - case "Forbidden": - return DocPagesInsert400ResponseCodeForbidden, nil - case "NotFound": - return DocPagesInsert400ResponseCodeNotFound, nil - case "WireFormat": - return DocPagesInsert400ResponseCodeWireFormat, nil - case "RuntimeUnavailable": - return DocPagesInsert400ResponseCodeRuntimeUnavailable, nil - case "InvalidReference": - return DocPagesInsert400ResponseCodeInvalidReference, nil - case "WeakAnnotationSessionConflict": - return DocPagesInsert400ResponseCodeWeakAnnotationSessionConflict, nil - case "LayerVersionConflict": - return DocPagesInsert400ResponseCodeLayerVersionConflict, nil - case "NotImplemented": - return DocPagesInsert400ResponseCodeNotImplemented, nil - case "MalformedPdf": - return DocPagesInsert400ResponseCodeMalformedPdf, nil - case "SigningPending": - return DocPagesInsert400ResponseCodeSigningPending, nil - case "SigningExpired": - return DocPagesInsert400ResponseCodeSigningExpired, nil - case "SigningVersionMismatch": - return DocPagesInsert400ResponseCodeSigningVersionMismatch, nil - case "SignatureRefused": - return DocPagesInsert400ResponseCodeSignatureRefused, nil - case "ProtectedDocument": - return DocPagesInsert400ResponseCodeProtectedDocument, nil - case "StaleBase": - return DocPagesInsert400ResponseCodeStaleBase, nil - } - var t DocPagesInsert400ResponseCode - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocPagesInsert400ResponseCode) Ptr() *DocPagesInsert400ResponseCode { - return &d -} - -type DocPagesInsert400ResponseName string - -const ( - DocPagesInsert400ResponseNameEngineError DocPagesInsert400ResponseName = "EngineError" -) - -func NewDocPagesInsert400ResponseNameFromString(s string) (DocPagesInsert400ResponseName, error) { - switch s { - case "EngineError": - return DocPagesInsert400ResponseNameEngineError, nil +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItem) MarshalJSON() ([]byte, error) { + type embed DocPagesRemoveName200ResponseMetaAffectedPagesItem + var marshaler = struct { + embed + }{ + embed: embed(*d), } - var t DocPagesInsert400ResponseName - return "", fmt.Errorf("%s is not a valid %T", s, t) + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d DocPagesInsert400ResponseName) Ptr() *DocPagesInsert400ResponseName { - return &d +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItem) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } var ( - docPagesInsert404ResponseFieldName = big.NewInt(1 << 0) - docPagesInsert404ResponseFieldCode = big.NewInt(1 << 1) - docPagesInsert404ResponseFieldMessage = big.NewInt(1 << 2) - docPagesInsert404ResponseFieldDetails = big.NewInt(1 << 3) + docPagesRemoveName200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID = big.NewInt(1 << 0) + docPagesRemoveName200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docPagesRemoveName200ResponseMetaAffectedPagesItemRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocPagesInsert404Response struct { - Name DocPagesInsert404ResponseName `json:"name" url:"name"` - Code DocPagesInsert404ResponseCode `json:"code" url:"code"` - Message string `json:"message" url:"message"` - Details map[string]any `json:"details,omitempty" url:"details,omitempty"` +type DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -139126,83 +158277,69 @@ type DocPagesInsert404Response struct { rawJSON json.RawMessage } -func (d *DocPagesInsert404Response) GetName() DocPagesInsert404ResponseName { - if d == nil { - return "" - } - return d.Name -} - -func (d *DocPagesInsert404Response) GetCode() DocPagesInsert404ResponseCode { +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision) GetDocSessionID() string { if d == nil { return "" } - return d.Code + return d.DocSessionID } -func (d *DocPagesInsert404Response) GetMessage() string { +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision) GetPageObjectNumber() int { if d == nil { - return "" + return 0 } - return d.Message + return d.PageObjectNumber } -func (d *DocPagesInsert404Response) GetDetails() map[string]any { +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision) GetGeneration() int { if d == nil { - return nil + return 0 } - return d.Details + return d.Generation } -func (d *DocPagesInsert404Response) GetExtraProperties() map[string]interface{} { +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesInsert404Response) require(field *big.Int) { +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetName sets the Name field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsert404Response) SetName(name DocPagesInsert404ResponseName) { - d.Name = name - d.require(docPagesInsert404ResponseFieldName) -} - -// SetCode sets the Code field and marks it as non-optional; +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsert404Response) SetCode(code DocPagesInsert404ResponseCode) { - d.Code = code - d.require(docPagesInsert404ResponseFieldCode) +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docPagesRemoveName200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID) } -// SetMessage sets the Message field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsert404Response) SetMessage(message string) { - d.Message = message - d.require(docPagesInsert404ResponseFieldMessage) +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docPagesRemoveName200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber) } -// SetDetails sets the Details field and marks it as non-optional; +// SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsert404Response) SetDetails(details map[string]any) { - d.Details = details - d.require(docPagesInsert404ResponseFieldDetails) +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docPagesRemoveName200ResponseMetaAffectedPagesItemRevisionFieldGeneration) } -func (d *DocPagesInsert404Response) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesInsert404Response +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesInsert404Response(value) + *d = DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -139212,8 +158349,8 @@ func (d *DocPagesInsert404Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocPagesInsert404Response) MarshalJSON() ([]byte, error) { - type embed DocPagesInsert404Response +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision) MarshalJSON() ([]byte, error) { + type embed DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision var marshaler = struct { embed }{ @@ -139223,7 +158360,7 @@ func (d *DocPagesInsert404Response) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocPagesInsert404Response) String() string { +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision) String() string { if d == nil { return "" } @@ -139238,191 +158375,202 @@ func (d *DocPagesInsert404Response) String() string { return fmt.Sprintf("%#v", d) } -type DocPagesInsert404ResponseCode string +type DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState struct { + Kind string + Unknown *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + Known *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown -const ( - DocPagesInsert404ResponseCodeUnknown DocPagesInsert404ResponseCode = "Unknown" - DocPagesInsert404ResponseCodeInvalidArg DocPagesInsert404ResponseCode = "InvalidArg" - DocPagesInsert404ResponseCodeDocNotOpen DocPagesInsert404ResponseCode = "DocNotOpen" - DocPagesInsert404ResponseCodeDocOpenFailed DocPagesInsert404ResponseCode = "DocOpenFailed" - DocPagesInsert404ResponseCodeDocPasswordRequired DocPagesInsert404ResponseCode = "DocPasswordRequired" - DocPagesInsert404ResponseCodeDocPasswordIncorrect DocPagesInsert404ResponseCode = "DocPasswordIncorrect" - DocPagesInsert404ResponseCodeSharePasswordRequired DocPagesInsert404ResponseCode = "SharePasswordRequired" - DocPagesInsert404ResponseCodeAborted DocPagesInsert404ResponseCode = "Aborted" - DocPagesInsert404ResponseCodeNetwork DocPagesInsert404ResponseCode = "Network" - DocPagesInsert404ResponseCodeUnauthenticated DocPagesInsert404ResponseCode = "Unauthenticated" - DocPagesInsert404ResponseCodeForbidden DocPagesInsert404ResponseCode = "Forbidden" - DocPagesInsert404ResponseCodeNotFound DocPagesInsert404ResponseCode = "NotFound" - DocPagesInsert404ResponseCodeWireFormat DocPagesInsert404ResponseCode = "WireFormat" - DocPagesInsert404ResponseCodeRuntimeUnavailable DocPagesInsert404ResponseCode = "RuntimeUnavailable" - DocPagesInsert404ResponseCodeInvalidReference DocPagesInsert404ResponseCode = "InvalidReference" - DocPagesInsert404ResponseCodeWeakAnnotationSessionConflict DocPagesInsert404ResponseCode = "WeakAnnotationSessionConflict" - DocPagesInsert404ResponseCodeLayerVersionConflict DocPagesInsert404ResponseCode = "LayerVersionConflict" - DocPagesInsert404ResponseCodeNotImplemented DocPagesInsert404ResponseCode = "NotImplemented" - DocPagesInsert404ResponseCodeMalformedPdf DocPagesInsert404ResponseCode = "MalformedPdf" - DocPagesInsert404ResponseCodeSigningPending DocPagesInsert404ResponseCode = "SigningPending" - DocPagesInsert404ResponseCodeSigningExpired DocPagesInsert404ResponseCode = "SigningExpired" - DocPagesInsert404ResponseCodeSigningVersionMismatch DocPagesInsert404ResponseCode = "SigningVersionMismatch" - DocPagesInsert404ResponseCodeSignatureRefused DocPagesInsert404ResponseCode = "SignatureRefused" - DocPagesInsert404ResponseCodeProtectedDocument DocPagesInsert404ResponseCode = "ProtectedDocument" - DocPagesInsert404ResponseCodeStaleBase DocPagesInsert404ResponseCode = "StaleBase" -) + rawJSON json.RawMessage +} -func NewDocPagesInsert404ResponseCodeFromString(s string) (DocPagesInsert404ResponseCode, error) { - switch s { - case "Unknown": - return DocPagesInsert404ResponseCodeUnknown, nil - case "InvalidArg": - return DocPagesInsert404ResponseCodeInvalidArg, nil - case "DocNotOpen": - return DocPagesInsert404ResponseCodeDocNotOpen, nil - case "DocOpenFailed": - return DocPagesInsert404ResponseCodeDocOpenFailed, nil - case "DocPasswordRequired": - return DocPagesInsert404ResponseCodeDocPasswordRequired, nil - case "DocPasswordIncorrect": - return DocPagesInsert404ResponseCodeDocPasswordIncorrect, nil - case "SharePasswordRequired": - return DocPagesInsert404ResponseCodeSharePasswordRequired, nil - case "Aborted": - return DocPagesInsert404ResponseCodeAborted, nil - case "Network": - return DocPagesInsert404ResponseCodeNetwork, nil - case "Unauthenticated": - return DocPagesInsert404ResponseCodeUnauthenticated, nil - case "Forbidden": - return DocPagesInsert404ResponseCodeForbidden, nil - case "NotFound": - return DocPagesInsert404ResponseCodeNotFound, nil - case "WireFormat": - return DocPagesInsert404ResponseCodeWireFormat, nil - case "RuntimeUnavailable": - return DocPagesInsert404ResponseCodeRuntimeUnavailable, nil - case "InvalidReference": - return DocPagesInsert404ResponseCodeInvalidReference, nil - case "WeakAnnotationSessionConflict": - return DocPagesInsert404ResponseCodeWeakAnnotationSessionConflict, nil - case "LayerVersionConflict": - return DocPagesInsert404ResponseCodeLayerVersionConflict, nil - case "NotImplemented": - return DocPagesInsert404ResponseCodeNotImplemented, nil - case "MalformedPdf": - return DocPagesInsert404ResponseCodeMalformedPdf, nil - case "SigningPending": - return DocPagesInsert404ResponseCodeSigningPending, nil - case "SigningExpired": - return DocPagesInsert404ResponseCodeSigningExpired, nil - case "SigningVersionMismatch": - return DocPagesInsert404ResponseCodeSigningVersionMismatch, nil - case "SignatureRefused": - return DocPagesInsert404ResponseCodeSignatureRefused, nil - case "ProtectedDocument": - return DocPagesInsert404ResponseCodeProtectedDocument, nil - case "StaleBase": - return DocPagesInsert404ResponseCodeStaleBase, nil +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKind() string { + if d == nil { + return "" } - var t DocPagesInsert404ResponseCode - return "", fmt.Errorf("%s is not a valid %T", s, t) + return d.Kind } -func (d DocPagesInsert404ResponseCode) Ptr() *DocPagesInsert404ResponseCode { - return &d +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState) GetUnknown() *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown { + if d == nil { + return nil + } + return d.Unknown } -type DocPagesInsert404ResponseName string +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKnown() *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown { + if d == nil { + return nil + } + return d.Known +} -const ( - DocPagesInsert404ResponseNameEngineError DocPagesInsert404ResponseName = "EngineError" -) +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "unknown": + value := new(DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Unknown = value + case "known": + value := new(DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Known = value + } + d.rawJSON = json.RawMessage(data) + return nil +} -func NewDocPagesInsert404ResponseNameFromString(s string) (DocPagesInsert404ResponseName, error) { - switch s { - case "EngineError": - return DocPagesInsert404ResponseNameEngineError, nil +func (d DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err } - var t DocPagesInsert404ResponseName - return "", fmt.Errorf("%s is not a valid %T", s, t) + if d.Unknown != nil { + return internal.MarshalJSONWithExtraProperty(d.Unknown, "kind", "unknown") + } + if d.Known != nil { + return internal.MarshalJSONWithExtraProperty(d.Known, "kind", "known") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d DocPagesInsert404ResponseName) Ptr() *DocPagesInsert404ResponseName { - return &d +type DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor interface { + VisitUnknown(*DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) error + VisitKnown(*DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) error +} + +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState) Accept(visitor DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor) error { + if d.Unknown != nil { + return visitor.VisitUnknown(d.Unknown) + } + if d.Known != nil { + return visitor.VisitKnown(d.Known) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.Unknown != nil { + fields = append(fields, "unknown") + } + if d.Known != nil { + fields = append(fields, "known") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil } var ( - docPagesInsertBlank200ResponseFieldMeta = big.NewInt(1 << 0) + docPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations = big.NewInt(1 << 0) ) -type DocPagesInsertBlank200Response struct { - Meta *DocPagesInsertBlank200ResponseMeta `json:"meta" url:"meta"` +type DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown struct { + HasAnyWeakAnnotations bool `json:"hasAnyWeakAnnotations" url:"hasAnyWeakAnnotations"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` - ExtraProperties map[string]interface{} `json:"-" url:"-"` - - rawJSON json.RawMessage + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocPagesInsertBlank200Response) GetMeta() *DocPagesInsertBlank200ResponseMeta { +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetHasAnyWeakAnnotations() bool { if d == nil { - return nil + return false } - return d.Meta + return d.HasAnyWeakAnnotations } -func (d *DocPagesInsertBlank200Response) GetExtraProperties() map[string]interface{} { +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.ExtraProperties + return d.extraProperties } -func (d *DocPagesInsertBlank200Response) require(field *big.Int) { +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetMeta sets the Meta field and marks it as non-optional; +// SetHasAnyWeakAnnotations sets the HasAnyWeakAnnotations field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsertBlank200Response) SetMeta(meta *DocPagesInsertBlank200ResponseMeta) { - d.Meta = meta - d.require(docPagesInsertBlank200ResponseFieldMeta) +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) SetHasAnyWeakAnnotations(hasAnyWeakAnnotations bool) { + d.HasAnyWeakAnnotations = hasAnyWeakAnnotations + d.require(docPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations) } -func (d *DocPagesInsertBlank200Response) UnmarshalJSON(data []byte) error { - type embed DocPagesInsertBlank200Response - var unmarshaler = struct { - embed - }{ - embed: embed(*d), - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesInsertBlank200Response(unmarshaler.embed) + *d = DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err } - d.ExtraProperties = extraProperties + d.extraProperties = extraProperties d.rawJSON = json.RawMessage(data) return nil } -func (d *DocPagesInsertBlank200Response) MarshalJSON() ([]byte, error) { - type embed DocPagesInsertBlank200Response +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) MarshalJSON() ([]byte, error) { + type embed DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown var marshaler = struct { embed }{ embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return internal.MarshalJSONWithExtraProperties(explicitMarshaler, d.ExtraProperties) + return json.Marshal(explicitMarshaler) } -func (d *DocPagesInsertBlank200Response) String() string { +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) String() string { if d == nil { return "" } @@ -139437,14 +158585,7 @@ func (d *DocPagesInsertBlank200Response) String() string { return fmt.Sprintf("%#v", d) } -var ( - docPagesInsertBlank200ResponseMetaFieldAffectedPages = big.NewInt(1 << 0) - docPagesInsertBlank200ResponseMetaFieldCacheDelta = big.NewInt(1 << 1) -) - -type DocPagesInsertBlank200ResponseMeta struct { - AffectedPages []*DocPagesInsertBlank200ResponseMetaAffectedPagesItem `json:"affectedPages" url:"affectedPages"` - CacheDelta *DocPagesInsertBlank200ResponseMetaCacheDelta `json:"cacheDelta,omitempty" url:"cacheDelta,omitempty"` +type DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -139453,55 +158594,27 @@ type DocPagesInsertBlank200ResponseMeta struct { rawJSON json.RawMessage } -func (d *DocPagesInsertBlank200ResponseMeta) GetAffectedPages() []*DocPagesInsertBlank200ResponseMetaAffectedPagesItem { - if d == nil { - return nil - } - return d.AffectedPages -} - -func (d *DocPagesInsertBlank200ResponseMeta) GetCacheDelta() *DocPagesInsertBlank200ResponseMetaCacheDelta { - if d == nil { - return nil - } - return d.CacheDelta -} - -func (d *DocPagesInsertBlank200ResponseMeta) GetExtraProperties() map[string]interface{} { +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesInsertBlank200ResponseMeta) require(field *big.Int) { +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetAffectedPages sets the AffectedPages field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsertBlank200ResponseMeta) SetAffectedPages(affectedPages []*DocPagesInsertBlank200ResponseMetaAffectedPagesItem) { - d.AffectedPages = affectedPages - d.require(docPagesInsertBlank200ResponseMetaFieldAffectedPages) -} - -// SetCacheDelta sets the CacheDelta field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsertBlank200ResponseMeta) SetCacheDelta(cacheDelta *DocPagesInsertBlank200ResponseMetaCacheDelta) { - d.CacheDelta = cacheDelta - d.require(docPagesInsertBlank200ResponseMetaFieldCacheDelta) -} - -func (d *DocPagesInsertBlank200ResponseMeta) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesInsertBlank200ResponseMeta +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesInsertBlank200ResponseMeta(value) + *d = DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -139511,8 +158624,8 @@ func (d *DocPagesInsertBlank200ResponseMeta) UnmarshalJSON(data []byte) error { return nil } -func (d *DocPagesInsertBlank200ResponseMeta) MarshalJSON() ([]byte, error) { - type embed DocPagesInsertBlank200ResponseMeta +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) MarshalJSON() ([]byte, error) { + type embed DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown var marshaler = struct { embed }{ @@ -139522,7 +158635,7 @@ func (d *DocPagesInsertBlank200ResponseMeta) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocPagesInsertBlank200ResponseMeta) String() string { +func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) String() string { if d == nil { return "" } @@ -139538,15 +158651,21 @@ func (d *DocPagesInsertBlank200ResponseMeta) String() string { } var ( - docPagesInsertBlank200ResponseMetaAffectedPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) - docPagesInsertBlank200ResponseMetaAffectedPagesItemFieldRevision = big.NewInt(1 << 1) - docPagesInsertBlank200ResponseMetaAffectedPagesItemFieldWeakAnnotationState = big.NewInt(1 << 2) + docPagesRemoveName200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) + docPagesRemoveName200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) + docPagesRemoveName200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) + docPagesRemoveName200ResponseMetaCacheDeltaFieldLayerVersion = big.NewInt(1 << 3) + docPagesRemoveName200ResponseMetaCacheDeltaFieldWorking = big.NewInt(1 << 4) + docPagesRemoveName200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 5) ) -type DocPagesInsertBlank200ResponseMetaAffectedPagesItem struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Revision *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision `json:"revision" url:"revision"` - WeakAnnotationState *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState `json:"weakAnnotationState" url:"weakAnnotationState"` +type DocPagesRemoveName200ResponseMetaCacheDelta struct { + PreviousDocVersion int `json:"previousDocVersion" url:"previousDocVersion"` + DocVersion int `json:"docVersion" url:"docVersion"` + AnnotationsVersion *int `json:"annotationsVersion,omitempty" url:"annotationsVersion,omitempty"` + LayerVersion *int `json:"layerVersion,omitempty" url:"layerVersion,omitempty"` + Working *bool `json:"working,omitempty" url:"working,omitempty"` + Pages []*DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -139555,69 +158674,111 @@ type DocPagesInsertBlank200ResponseMetaAffectedPagesItem struct { rawJSON json.RawMessage } -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItem) GetPageObjectNumber() int { +func (d *DocPagesRemoveName200ResponseMetaCacheDelta) GetPreviousDocVersion() int { if d == nil { return 0 } - return d.PageObjectNumber + return d.PreviousDocVersion } -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItem) GetRevision() *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision { +func (d *DocPagesRemoveName200ResponseMetaCacheDelta) GetDocVersion() int { + if d == nil { + return 0 + } + return d.DocVersion +} + +func (d *DocPagesRemoveName200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { if d == nil { return nil } - return d.Revision + return d.AnnotationsVersion } -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItem) GetWeakAnnotationState() *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState { +func (d *DocPagesRemoveName200ResponseMetaCacheDelta) GetLayerVersion() *int { if d == nil { return nil } - return d.WeakAnnotationState + return d.LayerVersion } -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItem) GetExtraProperties() map[string]interface{} { +func (d *DocPagesRemoveName200ResponseMetaCacheDelta) GetWorking() *bool { + if d == nil { + return nil + } + return d.Working +} + +func (d *DocPagesRemoveName200ResponseMetaCacheDelta) GetPages() []*DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem { + if d == nil { + return nil + } + return d.Pages +} + +func (d *DocPagesRemoveName200ResponseMetaCacheDelta) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItem) require(field *big.Int) { +func (d *DocPagesRemoveName200ResponseMetaCacheDelta) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetPreviousDocVersion sets the PreviousDocVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItem) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docPagesInsertBlank200ResponseMetaAffectedPagesItemFieldPageObjectNumber) +func (d *DocPagesRemoveName200ResponseMetaCacheDelta) SetPreviousDocVersion(previousDocVersion int) { + d.PreviousDocVersion = previousDocVersion + d.require(docPagesRemoveName200ResponseMetaCacheDeltaFieldPreviousDocVersion) +} + +// SetDocVersion sets the DocVersion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesRemoveName200ResponseMetaCacheDelta) SetDocVersion(docVersion int) { + d.DocVersion = docVersion + d.require(docPagesRemoveName200ResponseMetaCacheDeltaFieldDocVersion) +} + +// SetAnnotationsVersion sets the AnnotationsVersion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesRemoveName200ResponseMetaCacheDelta) SetAnnotationsVersion(annotationsVersion *int) { + d.AnnotationsVersion = annotationsVersion + d.require(docPagesRemoveName200ResponseMetaCacheDeltaFieldAnnotationsVersion) +} + +// SetLayerVersion sets the LayerVersion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesRemoveName200ResponseMetaCacheDelta) SetLayerVersion(layerVersion *int) { + d.LayerVersion = layerVersion + d.require(docPagesRemoveName200ResponseMetaCacheDeltaFieldLayerVersion) } -// SetRevision sets the Revision field and marks it as non-optional; +// SetWorking sets the Working field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItem) SetRevision(revision *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision) { - d.Revision = revision - d.require(docPagesInsertBlank200ResponseMetaAffectedPagesItemFieldRevision) +func (d *DocPagesRemoveName200ResponseMetaCacheDelta) SetWorking(working *bool) { + d.Working = working + d.require(docPagesRemoveName200ResponseMetaCacheDeltaFieldWorking) } -// SetWeakAnnotationState sets the WeakAnnotationState field and marks it as non-optional; +// SetPages sets the Pages field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItem) SetWeakAnnotationState(weakAnnotationState *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState) { - d.WeakAnnotationState = weakAnnotationState - d.require(docPagesInsertBlank200ResponseMetaAffectedPagesItemFieldWeakAnnotationState) +func (d *DocPagesRemoveName200ResponseMetaCacheDelta) SetPages(pages []*DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem) { + d.Pages = pages + d.require(docPagesRemoveName200ResponseMetaCacheDeltaFieldPages) } -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesInsertBlank200ResponseMetaAffectedPagesItem +func (d *DocPagesRemoveName200ResponseMetaCacheDelta) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesRemoveName200ResponseMetaCacheDelta var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesInsertBlank200ResponseMetaAffectedPagesItem(value) + *d = DocPagesRemoveName200ResponseMetaCacheDelta(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -139627,8 +158788,8 @@ func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItem) UnmarshalJSON(data return nil } -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItem) MarshalJSON() ([]byte, error) { - type embed DocPagesInsertBlank200ResponseMetaAffectedPagesItem +func (d *DocPagesRemoveName200ResponseMetaCacheDelta) MarshalJSON() ([]byte, error) { + type embed DocPagesRemoveName200ResponseMetaCacheDelta var marshaler = struct { embed }{ @@ -139638,7 +158799,7 @@ func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItem) MarshalJSON() ([]b return json.Marshal(explicitMarshaler) } -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItem) String() string { +func (d *DocPagesRemoveName200ResponseMetaCacheDelta) String() string { if d == nil { return "" } @@ -139654,15 +158815,13 @@ func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItem) String() string { } var ( - docPagesInsertBlank200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID = big.NewInt(1 << 0) - docPagesInsertBlank200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docPagesInsertBlank200ResponseMetaAffectedPagesItemRevisionFieldGeneration = big.NewInt(1 << 2) + docPagesRemoveName200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) + docPagesRemoveName200ResponseMetaCacheDeltaPagesItemFieldCache = big.NewInt(1 << 1) ) -type DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Cache *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache `json:"cache" url:"cache"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -139671,69 +158830,55 @@ type DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision struct { rawJSON json.RawMessage } -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision) GetDocSessionID() string { - if d == nil { - return "" - } - return d.DocSessionID -} - -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision) GetPageObjectNumber() int { +func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision) GetGeneration() int { +func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem) GetCache() *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache { if d == nil { - return 0 + return nil } - return d.Generation + return d.Cache } -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision) GetExtraProperties() map[string]interface{} { +func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision) require(field *big.Int) { +func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docPagesInsertBlank200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID) -} - // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docPagesInsertBlank200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber) + d.require(docPagesRemoveName200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetCache sets the Cache field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docPagesInsertBlank200ResponseMetaAffectedPagesItemRevisionFieldGeneration) +func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem) SetCache(cache *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache) { + d.Cache = cache + d.require(docPagesRemoveName200ResponseMetaCacheDeltaPagesItemFieldCache) } -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision +func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision(value) + *d = DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -139743,8 +158888,8 @@ func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision) UnmarshalJ return nil } -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision) MarshalJSON() ([]byte, error) { - type embed DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision +func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem) MarshalJSON() ([]byte, error) { + type embed DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem var marshaler = struct { embed }{ @@ -139754,7 +158899,7 @@ func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision) MarshalJSO return json.Marshal(explicitMarshaler) } -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision) String() string { +func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem) String() string { if d == nil { return "" } @@ -139769,138 +158914,14 @@ func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision) String() s return fmt.Sprintf("%#v", d) } -type DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState struct { - Kind string - Unknown *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - Known *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - - rawJSON json.RawMessage -} - -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKind() string { - if d == nil { - return "" - } - return d.Kind -} - -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState) GetUnknown() *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown { - if d == nil { - return nil - } - return d.Unknown -} - -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKnown() *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown { - if d == nil { - return nil - } - return d.Known -} - -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "unknown": - value := new(DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Unknown = value - case "known": - value := new(DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Known = value - } - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.Unknown != nil { - return internal.MarshalJSONWithExtraProperty(d.Unknown, "kind", "unknown") - } - if d.Known != nil { - return internal.MarshalJSONWithExtraProperty(d.Known, "kind", "known") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil - } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) -} - -type DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor interface { - VisitUnknown(*DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) error - VisitKnown(*DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) error -} - -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState) Accept(visitor DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor) error { - if d.Unknown != nil { - return visitor.VisitUnknown(d.Unknown) - } - if d.Known != nil { - return visitor.VisitKnown(d.Known) - } - return fmt.Errorf("type %T does not define a non-empty union type", d) -} - -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState) validate() error { - if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.Unknown != nil { - fields = append(fields, "unknown") - } - if d.Known != nil { - fields = append(fields, "known") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } - } - return nil -} - var ( - docPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations = big.NewInt(1 << 0) + docPagesRemoveName200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion = big.NewInt(1 << 0) + docPagesRemoveName200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion = big.NewInt(1 << 1) ) -type DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown struct { - HasAnyWeakAnnotations bool `json:"hasAnyWeakAnnotations" url:"hasAnyWeakAnnotations"` +type DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache struct { + ContentVersion int `json:"contentVersion" url:"contentVersion"` + AnnotationVersion int `json:"annotationVersion" url:"annotationVersion"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -139909,41 +158930,55 @@ type DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown rawJSON json.RawMessage } -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetHasAnyWeakAnnotations() bool { +func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache) GetContentVersion() int { if d == nil { - return false + return 0 } - return d.HasAnyWeakAnnotations + return d.ContentVersion } -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetExtraProperties() map[string]interface{} { +func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache) GetAnnotationVersion() int { + if d == nil { + return 0 + } + return d.AnnotationVersion +} + +func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) require(field *big.Int) { +func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetHasAnyWeakAnnotations sets the HasAnyWeakAnnotations field and marks it as non-optional; +// SetContentVersion sets the ContentVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) SetHasAnyWeakAnnotations(hasAnyWeakAnnotations bool) { - d.HasAnyWeakAnnotations = hasAnyWeakAnnotations - d.require(docPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations) +func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache) SetContentVersion(contentVersion int) { + d.ContentVersion = contentVersion + d.require(docPagesRemoveName200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion) } -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown +// SetAnnotationVersion sets the AnnotationVersion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache) SetAnnotationVersion(annotationVersion int) { + d.AnnotationVersion = annotationVersion + d.require(docPagesRemoveName200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion) +} + +func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(value) + *d = DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -139953,8 +158988,8 @@ func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateK return nil } -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) MarshalJSON() ([]byte, error) { - type embed DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown +func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON() ([]byte, error) { + type embed DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache var marshaler = struct { embed }{ @@ -139964,7 +158999,7 @@ func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateK return json.Marshal(explicitMarshaler) } -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) String() string { +func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache) String() string { if d == nil { return "" } @@ -139979,7 +159014,18 @@ func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateK return fmt.Sprintf("%#v", d) } -type DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown struct { +var ( + docPagesRemoveName400ResponseFieldName = big.NewInt(1 << 0) + docPagesRemoveName400ResponseFieldCode = big.NewInt(1 << 1) + docPagesRemoveName400ResponseFieldMessage = big.NewInt(1 << 2) + docPagesRemoveName400ResponseFieldDetails = big.NewInt(1 << 3) +) + +type DocPagesRemoveName400Response struct { + Name DocPagesRemoveName400ResponseName `json:"name" url:"name"` + Code DocPagesRemoveName400ResponseCode `json:"code" url:"code"` + Message string `json:"message" url:"message"` + Details map[string]any `json:"details,omitempty" url:"details,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -139988,27 +159034,83 @@ type DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnkno rawJSON json.RawMessage } -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) GetExtraProperties() map[string]interface{} { +func (d *DocPagesRemoveName400Response) GetName() DocPagesRemoveName400ResponseName { + if d == nil { + return "" + } + return d.Name +} + +func (d *DocPagesRemoveName400Response) GetCode() DocPagesRemoveName400ResponseCode { + if d == nil { + return "" + } + return d.Code +} + +func (d *DocPagesRemoveName400Response) GetMessage() string { + if d == nil { + return "" + } + return d.Message +} + +func (d *DocPagesRemoveName400Response) GetDetails() map[string]any { + if d == nil { + return nil + } + return d.Details +} + +func (d *DocPagesRemoveName400Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) require(field *big.Int) { +func (d *DocPagesRemoveName400Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown +// SetName sets the Name field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesRemoveName400Response) SetName(name DocPagesRemoveName400ResponseName) { + d.Name = name + d.require(docPagesRemoveName400ResponseFieldName) +} + +// SetCode sets the Code field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesRemoveName400Response) SetCode(code DocPagesRemoveName400ResponseCode) { + d.Code = code + d.require(docPagesRemoveName400ResponseFieldCode) +} + +// SetMessage sets the Message field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesRemoveName400Response) SetMessage(message string) { + d.Message = message + d.require(docPagesRemoveName400ResponseFieldMessage) +} + +// SetDetails sets the Details field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesRemoveName400Response) SetDetails(details map[string]any) { + d.Details = details + d.require(docPagesRemoveName400ResponseFieldDetails) +} + +func (d *DocPagesRemoveName400Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesRemoveName400Response var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(value) + *d = DocPagesRemoveName400Response(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -140018,8 +159120,8 @@ func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateU return nil } -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) MarshalJSON() ([]byte, error) { - type embed DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown +func (d *DocPagesRemoveName400Response) MarshalJSON() ([]byte, error) { + type embed DocPagesRemoveName400Response var marshaler = struct { embed }{ @@ -140029,7 +159131,7 @@ func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateU return json.Marshal(explicitMarshaler) } -func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) String() string { +func (d *DocPagesRemoveName400Response) String() string { if d == nil { return "" } @@ -140044,22 +159146,128 @@ func (d *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateU return fmt.Sprintf("%#v", d) } +type DocPagesRemoveName400ResponseCode string + +const ( + DocPagesRemoveName400ResponseCodeUnknown DocPagesRemoveName400ResponseCode = "Unknown" + DocPagesRemoveName400ResponseCodeInvalidArg DocPagesRemoveName400ResponseCode = "InvalidArg" + DocPagesRemoveName400ResponseCodeDocNotOpen DocPagesRemoveName400ResponseCode = "DocNotOpen" + DocPagesRemoveName400ResponseCodeDocOpenFailed DocPagesRemoveName400ResponseCode = "DocOpenFailed" + DocPagesRemoveName400ResponseCodeDocPasswordRequired DocPagesRemoveName400ResponseCode = "DocPasswordRequired" + DocPagesRemoveName400ResponseCodeDocPasswordIncorrect DocPagesRemoveName400ResponseCode = "DocPasswordIncorrect" + DocPagesRemoveName400ResponseCodeSharePasswordRequired DocPagesRemoveName400ResponseCode = "SharePasswordRequired" + DocPagesRemoveName400ResponseCodeAborted DocPagesRemoveName400ResponseCode = "Aborted" + DocPagesRemoveName400ResponseCodeNetwork DocPagesRemoveName400ResponseCode = "Network" + DocPagesRemoveName400ResponseCodeUnauthenticated DocPagesRemoveName400ResponseCode = "Unauthenticated" + DocPagesRemoveName400ResponseCodeForbidden DocPagesRemoveName400ResponseCode = "Forbidden" + DocPagesRemoveName400ResponseCodeNotFound DocPagesRemoveName400ResponseCode = "NotFound" + DocPagesRemoveName400ResponseCodeWireFormat DocPagesRemoveName400ResponseCode = "WireFormat" + DocPagesRemoveName400ResponseCodeRuntimeUnavailable DocPagesRemoveName400ResponseCode = "RuntimeUnavailable" + DocPagesRemoveName400ResponseCodeInvalidReference DocPagesRemoveName400ResponseCode = "InvalidReference" + DocPagesRemoveName400ResponseCodeWeakAnnotationSessionConflict DocPagesRemoveName400ResponseCode = "WeakAnnotationSessionConflict" + DocPagesRemoveName400ResponseCodeLayerVersionConflict DocPagesRemoveName400ResponseCode = "LayerVersionConflict" + DocPagesRemoveName400ResponseCodeNotImplemented DocPagesRemoveName400ResponseCode = "NotImplemented" + DocPagesRemoveName400ResponseCodeMalformedPdf DocPagesRemoveName400ResponseCode = "MalformedPdf" + DocPagesRemoveName400ResponseCodeSigningPending DocPagesRemoveName400ResponseCode = "SigningPending" + DocPagesRemoveName400ResponseCodeSigningExpired DocPagesRemoveName400ResponseCode = "SigningExpired" + DocPagesRemoveName400ResponseCodeSigningVersionMismatch DocPagesRemoveName400ResponseCode = "SigningVersionMismatch" + DocPagesRemoveName400ResponseCodeSignatureRefused DocPagesRemoveName400ResponseCode = "SignatureRefused" + DocPagesRemoveName400ResponseCodeProtectedDocument DocPagesRemoveName400ResponseCode = "ProtectedDocument" + DocPagesRemoveName400ResponseCodeStaleBase DocPagesRemoveName400ResponseCode = "StaleBase" +) + +func NewDocPagesRemoveName400ResponseCodeFromString(s string) (DocPagesRemoveName400ResponseCode, error) { + switch s { + case "Unknown": + return DocPagesRemoveName400ResponseCodeUnknown, nil + case "InvalidArg": + return DocPagesRemoveName400ResponseCodeInvalidArg, nil + case "DocNotOpen": + return DocPagesRemoveName400ResponseCodeDocNotOpen, nil + case "DocOpenFailed": + return DocPagesRemoveName400ResponseCodeDocOpenFailed, nil + case "DocPasswordRequired": + return DocPagesRemoveName400ResponseCodeDocPasswordRequired, nil + case "DocPasswordIncorrect": + return DocPagesRemoveName400ResponseCodeDocPasswordIncorrect, nil + case "SharePasswordRequired": + return DocPagesRemoveName400ResponseCodeSharePasswordRequired, nil + case "Aborted": + return DocPagesRemoveName400ResponseCodeAborted, nil + case "Network": + return DocPagesRemoveName400ResponseCodeNetwork, nil + case "Unauthenticated": + return DocPagesRemoveName400ResponseCodeUnauthenticated, nil + case "Forbidden": + return DocPagesRemoveName400ResponseCodeForbidden, nil + case "NotFound": + return DocPagesRemoveName400ResponseCodeNotFound, nil + case "WireFormat": + return DocPagesRemoveName400ResponseCodeWireFormat, nil + case "RuntimeUnavailable": + return DocPagesRemoveName400ResponseCodeRuntimeUnavailable, nil + case "InvalidReference": + return DocPagesRemoveName400ResponseCodeInvalidReference, nil + case "WeakAnnotationSessionConflict": + return DocPagesRemoveName400ResponseCodeWeakAnnotationSessionConflict, nil + case "LayerVersionConflict": + return DocPagesRemoveName400ResponseCodeLayerVersionConflict, nil + case "NotImplemented": + return DocPagesRemoveName400ResponseCodeNotImplemented, nil + case "MalformedPdf": + return DocPagesRemoveName400ResponseCodeMalformedPdf, nil + case "SigningPending": + return DocPagesRemoveName400ResponseCodeSigningPending, nil + case "SigningExpired": + return DocPagesRemoveName400ResponseCodeSigningExpired, nil + case "SigningVersionMismatch": + return DocPagesRemoveName400ResponseCodeSigningVersionMismatch, nil + case "SignatureRefused": + return DocPagesRemoveName400ResponseCodeSignatureRefused, nil + case "ProtectedDocument": + return DocPagesRemoveName400ResponseCodeProtectedDocument, nil + case "StaleBase": + return DocPagesRemoveName400ResponseCodeStaleBase, nil + } + var t DocPagesRemoveName400ResponseCode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesRemoveName400ResponseCode) Ptr() *DocPagesRemoveName400ResponseCode { + return &d +} + +type DocPagesRemoveName400ResponseName string + +const ( + DocPagesRemoveName400ResponseNameEngineError DocPagesRemoveName400ResponseName = "EngineError" +) + +func NewDocPagesRemoveName400ResponseNameFromString(s string) (DocPagesRemoveName400ResponseName, error) { + switch s { + case "EngineError": + return DocPagesRemoveName400ResponseNameEngineError, nil + } + var t DocPagesRemoveName400ResponseName + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesRemoveName400ResponseName) Ptr() *DocPagesRemoveName400ResponseName { + return &d +} + var ( - docPagesInsertBlank200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) - docPagesInsertBlank200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) - docPagesInsertBlank200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) - docPagesInsertBlank200ResponseMetaCacheDeltaFieldLayerVersion = big.NewInt(1 << 3) - docPagesInsertBlank200ResponseMetaCacheDeltaFieldWorking = big.NewInt(1 << 4) - docPagesInsertBlank200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 5) + docPagesRemoveName404ResponseFieldName = big.NewInt(1 << 0) + docPagesRemoveName404ResponseFieldCode = big.NewInt(1 << 1) + docPagesRemoveName404ResponseFieldMessage = big.NewInt(1 << 2) + docPagesRemoveName404ResponseFieldDetails = big.NewInt(1 << 3) ) -type DocPagesInsertBlank200ResponseMetaCacheDelta struct { - PreviousDocVersion int `json:"previousDocVersion" url:"previousDocVersion"` - DocVersion int `json:"docVersion" url:"docVersion"` - AnnotationsVersion *int `json:"annotationsVersion,omitempty" url:"annotationsVersion,omitempty"` - LayerVersion *int `json:"layerVersion,omitempty" url:"layerVersion,omitempty"` - Working *bool `json:"working,omitempty" url:"working,omitempty"` - Pages []*DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` +type DocPagesRemoveName404Response struct { + Name DocPagesRemoveName404ResponseName `json:"name" url:"name"` + Code DocPagesRemoveName404ResponseCode `json:"code" url:"code"` + Message string `json:"message" url:"message"` + Details map[string]any `json:"details,omitempty" url:"details,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -140068,111 +159276,83 @@ type DocPagesInsertBlank200ResponseMetaCacheDelta struct { rawJSON json.RawMessage } -func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) GetPreviousDocVersion() int { - if d == nil { - return 0 - } - return d.PreviousDocVersion -} - -func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) GetDocVersion() int { - if d == nil { - return 0 - } - return d.DocVersion -} - -func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { +func (d *DocPagesRemoveName404Response) GetName() DocPagesRemoveName404ResponseName { if d == nil { - return nil + return "" } - return d.AnnotationsVersion + return d.Name } -func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) GetLayerVersion() *int { +func (d *DocPagesRemoveName404Response) GetCode() DocPagesRemoveName404ResponseCode { if d == nil { - return nil + return "" } - return d.LayerVersion + return d.Code } -func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) GetWorking() *bool { +func (d *DocPagesRemoveName404Response) GetMessage() string { if d == nil { - return nil + return "" } - return d.Working + return d.Message } -func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) GetPages() []*DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem { +func (d *DocPagesRemoveName404Response) GetDetails() map[string]any { if d == nil { return nil } - return d.Pages + return d.Details } -func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) GetExtraProperties() map[string]interface{} { +func (d *DocPagesRemoveName404Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) require(field *big.Int) { +func (d *DocPagesRemoveName404Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPreviousDocVersion sets the PreviousDocVersion field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) SetPreviousDocVersion(previousDocVersion int) { - d.PreviousDocVersion = previousDocVersion - d.require(docPagesInsertBlank200ResponseMetaCacheDeltaFieldPreviousDocVersion) -} - -// SetDocVersion sets the DocVersion field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) SetDocVersion(docVersion int) { - d.DocVersion = docVersion - d.require(docPagesInsertBlank200ResponseMetaCacheDeltaFieldDocVersion) -} - -// SetAnnotationsVersion sets the AnnotationsVersion field and marks it as non-optional; +// SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) SetAnnotationsVersion(annotationsVersion *int) { - d.AnnotationsVersion = annotationsVersion - d.require(docPagesInsertBlank200ResponseMetaCacheDeltaFieldAnnotationsVersion) +func (d *DocPagesRemoveName404Response) SetName(name DocPagesRemoveName404ResponseName) { + d.Name = name + d.require(docPagesRemoveName404ResponseFieldName) } -// SetLayerVersion sets the LayerVersion field and marks it as non-optional; +// SetCode sets the Code field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) SetLayerVersion(layerVersion *int) { - d.LayerVersion = layerVersion - d.require(docPagesInsertBlank200ResponseMetaCacheDeltaFieldLayerVersion) +func (d *DocPagesRemoveName404Response) SetCode(code DocPagesRemoveName404ResponseCode) { + d.Code = code + d.require(docPagesRemoveName404ResponseFieldCode) } -// SetWorking sets the Working field and marks it as non-optional; +// SetMessage sets the Message field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) SetWorking(working *bool) { - d.Working = working - d.require(docPagesInsertBlank200ResponseMetaCacheDeltaFieldWorking) +func (d *DocPagesRemoveName404Response) SetMessage(message string) { + d.Message = message + d.require(docPagesRemoveName404ResponseFieldMessage) } -// SetPages sets the Pages field and marks it as non-optional; +// SetDetails sets the Details field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) SetPages(pages []*DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem) { - d.Pages = pages - d.require(docPagesInsertBlank200ResponseMetaCacheDeltaFieldPages) +func (d *DocPagesRemoveName404Response) SetDetails(details map[string]any) { + d.Details = details + d.require(docPagesRemoveName404ResponseFieldDetails) } -func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesInsertBlank200ResponseMetaCacheDelta +func (d *DocPagesRemoveName404Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesRemoveName404Response var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesInsertBlank200ResponseMetaCacheDelta(value) + *d = DocPagesRemoveName404Response(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -140182,8 +159362,8 @@ func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) UnmarshalJSON(data []byte return nil } -func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) MarshalJSON() ([]byte, error) { - type embed DocPagesInsertBlank200ResponseMetaCacheDelta +func (d *DocPagesRemoveName404Response) MarshalJSON() ([]byte, error) { + type embed DocPagesRemoveName404Response var marshaler = struct { embed }{ @@ -140193,7 +159373,7 @@ func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) MarshalJSON() ([]byte, er return json.Marshal(explicitMarshaler) } -func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) String() string { +func (d *DocPagesRemoveName404Response) String() string { if d == nil { return "" } @@ -140208,92 +159388,193 @@ func (d *DocPagesInsertBlank200ResponseMetaCacheDelta) String() string { return fmt.Sprintf("%#v", d) } +type DocPagesRemoveName404ResponseCode string + +const ( + DocPagesRemoveName404ResponseCodeUnknown DocPagesRemoveName404ResponseCode = "Unknown" + DocPagesRemoveName404ResponseCodeInvalidArg DocPagesRemoveName404ResponseCode = "InvalidArg" + DocPagesRemoveName404ResponseCodeDocNotOpen DocPagesRemoveName404ResponseCode = "DocNotOpen" + DocPagesRemoveName404ResponseCodeDocOpenFailed DocPagesRemoveName404ResponseCode = "DocOpenFailed" + DocPagesRemoveName404ResponseCodeDocPasswordRequired DocPagesRemoveName404ResponseCode = "DocPasswordRequired" + DocPagesRemoveName404ResponseCodeDocPasswordIncorrect DocPagesRemoveName404ResponseCode = "DocPasswordIncorrect" + DocPagesRemoveName404ResponseCodeSharePasswordRequired DocPagesRemoveName404ResponseCode = "SharePasswordRequired" + DocPagesRemoveName404ResponseCodeAborted DocPagesRemoveName404ResponseCode = "Aborted" + DocPagesRemoveName404ResponseCodeNetwork DocPagesRemoveName404ResponseCode = "Network" + DocPagesRemoveName404ResponseCodeUnauthenticated DocPagesRemoveName404ResponseCode = "Unauthenticated" + DocPagesRemoveName404ResponseCodeForbidden DocPagesRemoveName404ResponseCode = "Forbidden" + DocPagesRemoveName404ResponseCodeNotFound DocPagesRemoveName404ResponseCode = "NotFound" + DocPagesRemoveName404ResponseCodeWireFormat DocPagesRemoveName404ResponseCode = "WireFormat" + DocPagesRemoveName404ResponseCodeRuntimeUnavailable DocPagesRemoveName404ResponseCode = "RuntimeUnavailable" + DocPagesRemoveName404ResponseCodeInvalidReference DocPagesRemoveName404ResponseCode = "InvalidReference" + DocPagesRemoveName404ResponseCodeWeakAnnotationSessionConflict DocPagesRemoveName404ResponseCode = "WeakAnnotationSessionConflict" + DocPagesRemoveName404ResponseCodeLayerVersionConflict DocPagesRemoveName404ResponseCode = "LayerVersionConflict" + DocPagesRemoveName404ResponseCodeNotImplemented DocPagesRemoveName404ResponseCode = "NotImplemented" + DocPagesRemoveName404ResponseCodeMalformedPdf DocPagesRemoveName404ResponseCode = "MalformedPdf" + DocPagesRemoveName404ResponseCodeSigningPending DocPagesRemoveName404ResponseCode = "SigningPending" + DocPagesRemoveName404ResponseCodeSigningExpired DocPagesRemoveName404ResponseCode = "SigningExpired" + DocPagesRemoveName404ResponseCodeSigningVersionMismatch DocPagesRemoveName404ResponseCode = "SigningVersionMismatch" + DocPagesRemoveName404ResponseCodeSignatureRefused DocPagesRemoveName404ResponseCode = "SignatureRefused" + DocPagesRemoveName404ResponseCodeProtectedDocument DocPagesRemoveName404ResponseCode = "ProtectedDocument" + DocPagesRemoveName404ResponseCodeStaleBase DocPagesRemoveName404ResponseCode = "StaleBase" +) + +func NewDocPagesRemoveName404ResponseCodeFromString(s string) (DocPagesRemoveName404ResponseCode, error) { + switch s { + case "Unknown": + return DocPagesRemoveName404ResponseCodeUnknown, nil + case "InvalidArg": + return DocPagesRemoveName404ResponseCodeInvalidArg, nil + case "DocNotOpen": + return DocPagesRemoveName404ResponseCodeDocNotOpen, nil + case "DocOpenFailed": + return DocPagesRemoveName404ResponseCodeDocOpenFailed, nil + case "DocPasswordRequired": + return DocPagesRemoveName404ResponseCodeDocPasswordRequired, nil + case "DocPasswordIncorrect": + return DocPagesRemoveName404ResponseCodeDocPasswordIncorrect, nil + case "SharePasswordRequired": + return DocPagesRemoveName404ResponseCodeSharePasswordRequired, nil + case "Aborted": + return DocPagesRemoveName404ResponseCodeAborted, nil + case "Network": + return DocPagesRemoveName404ResponseCodeNetwork, nil + case "Unauthenticated": + return DocPagesRemoveName404ResponseCodeUnauthenticated, nil + case "Forbidden": + return DocPagesRemoveName404ResponseCodeForbidden, nil + case "NotFound": + return DocPagesRemoveName404ResponseCodeNotFound, nil + case "WireFormat": + return DocPagesRemoveName404ResponseCodeWireFormat, nil + case "RuntimeUnavailable": + return DocPagesRemoveName404ResponseCodeRuntimeUnavailable, nil + case "InvalidReference": + return DocPagesRemoveName404ResponseCodeInvalidReference, nil + case "WeakAnnotationSessionConflict": + return DocPagesRemoveName404ResponseCodeWeakAnnotationSessionConflict, nil + case "LayerVersionConflict": + return DocPagesRemoveName404ResponseCodeLayerVersionConflict, nil + case "NotImplemented": + return DocPagesRemoveName404ResponseCodeNotImplemented, nil + case "MalformedPdf": + return DocPagesRemoveName404ResponseCodeMalformedPdf, nil + case "SigningPending": + return DocPagesRemoveName404ResponseCodeSigningPending, nil + case "SigningExpired": + return DocPagesRemoveName404ResponseCodeSigningExpired, nil + case "SigningVersionMismatch": + return DocPagesRemoveName404ResponseCodeSigningVersionMismatch, nil + case "SignatureRefused": + return DocPagesRemoveName404ResponseCodeSignatureRefused, nil + case "ProtectedDocument": + return DocPagesRemoveName404ResponseCodeProtectedDocument, nil + case "StaleBase": + return DocPagesRemoveName404ResponseCodeStaleBase, nil + } + var t DocPagesRemoveName404ResponseCode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesRemoveName404ResponseCode) Ptr() *DocPagesRemoveName404ResponseCode { + return &d +} + +type DocPagesRemoveName404ResponseName string + +const ( + DocPagesRemoveName404ResponseNameEngineError DocPagesRemoveName404ResponseName = "EngineError" +) + +func NewDocPagesRemoveName404ResponseNameFromString(s string) (DocPagesRemoveName404ResponseName, error) { + switch s { + case "EngineError": + return DocPagesRemoveName404ResponseNameEngineError, nil + } + var t DocPagesRemoveName404ResponseName + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesRemoveName404ResponseName) Ptr() *DocPagesRemoveName404ResponseName { + return &d +} + +type DocPagesRemoveNameRequest = map[string]any + var ( - docPagesInsertBlank200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) - docPagesInsertBlank200ResponseMetaCacheDeltaPagesItemFieldCache = big.NewInt(1 << 1) + docPagesRotate200ResponseFieldMeta = big.NewInt(1 << 0) ) -type DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Cache *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache `json:"cache" url:"cache"` +type DocPagesRotate200Response struct { + Meta *DocPagesRotate200ResponseMeta `json:"meta" url:"meta"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` - extraProperties map[string]interface{} - rawJSON json.RawMessage -} + ExtraProperties map[string]interface{} `json:"-" url:"-"` -func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber + rawJSON json.RawMessage } -func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem) GetCache() *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache { +func (d *DocPagesRotate200Response) GetMeta() *DocPagesRotate200ResponseMeta { if d == nil { return nil } - return d.Cache + return d.Meta } -func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem) GetExtraProperties() map[string]interface{} { +func (d *DocPagesRotate200Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.extraProperties + return d.ExtraProperties } -func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem) require(field *big.Int) { +func (d *DocPagesRotate200Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docPagesInsertBlank200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber) -} - -// SetCache sets the Cache field and marks it as non-optional; +// SetMeta sets the Meta field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem) SetCache(cache *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache) { - d.Cache = cache - d.require(docPagesInsertBlank200ResponseMetaCacheDeltaPagesItemFieldCache) +func (d *DocPagesRotate200Response) SetMeta(meta *DocPagesRotate200ResponseMeta) { + d.Meta = meta + d.require(docPagesRotate200ResponseFieldMeta) } -func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { +func (d *DocPagesRotate200Response) UnmarshalJSON(data []byte) error { + type embed DocPagesRotate200Response + var unmarshaler = struct { + embed + }{ + embed: embed(*d), + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem(value) + *d = DocPagesRotate200Response(unmarshaler.embed) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err } - d.extraProperties = extraProperties + d.ExtraProperties = extraProperties d.rawJSON = json.RawMessage(data) return nil } -func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem) MarshalJSON() ([]byte, error) { - type embed DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem +func (d *DocPagesRotate200Response) MarshalJSON() ([]byte, error) { + type embed DocPagesRotate200Response var marshaler = struct { embed }{ embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return internal.MarshalJSONWithExtraProperties(explicitMarshaler, d.ExtraProperties) } -func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem) String() string { +func (d *DocPagesRotate200Response) String() string { if d == nil { return "" } @@ -140309,13 +159590,13 @@ func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem) String() string } var ( - docPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion = big.NewInt(1 << 0) - docPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion = big.NewInt(1 << 1) + docPagesRotate200ResponseMetaFieldAffectedPages = big.NewInt(1 << 0) + docPagesRotate200ResponseMetaFieldCacheDelta = big.NewInt(1 << 1) ) -type DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache struct { - ContentVersion int `json:"contentVersion" url:"contentVersion"` - AnnotationVersion int `json:"annotationVersion" url:"annotationVersion"` +type DocPagesRotate200ResponseMeta struct { + AffectedPages []*DocPagesRotate200ResponseMetaAffectedPagesItem `json:"affectedPages" url:"affectedPages"` + CacheDelta *DocPagesRotate200ResponseMetaCacheDelta `json:"cacheDelta,omitempty" url:"cacheDelta,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -140324,55 +159605,55 @@ type DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache struct { rawJSON json.RawMessage } -func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache) GetContentVersion() int { +func (d *DocPagesRotate200ResponseMeta) GetAffectedPages() []*DocPagesRotate200ResponseMetaAffectedPagesItem { if d == nil { - return 0 + return nil } - return d.ContentVersion + return d.AffectedPages } -func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache) GetAnnotationVersion() int { +func (d *DocPagesRotate200ResponseMeta) GetCacheDelta() *DocPagesRotate200ResponseMetaCacheDelta { if d == nil { - return 0 + return nil } - return d.AnnotationVersion + return d.CacheDelta } -func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache) GetExtraProperties() map[string]interface{} { +func (d *DocPagesRotate200ResponseMeta) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache) require(field *big.Int) { +func (d *DocPagesRotate200ResponseMeta) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetContentVersion sets the ContentVersion field and marks it as non-optional; +// SetAffectedPages sets the AffectedPages field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache) SetContentVersion(contentVersion int) { - d.ContentVersion = contentVersion - d.require(docPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion) +func (d *DocPagesRotate200ResponseMeta) SetAffectedPages(affectedPages []*DocPagesRotate200ResponseMetaAffectedPagesItem) { + d.AffectedPages = affectedPages + d.require(docPagesRotate200ResponseMetaFieldAffectedPages) } -// SetAnnotationVersion sets the AnnotationVersion field and marks it as non-optional; +// SetCacheDelta sets the CacheDelta field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache) SetAnnotationVersion(annotationVersion int) { - d.AnnotationVersion = annotationVersion - d.require(docPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion) +func (d *DocPagesRotate200ResponseMeta) SetCacheDelta(cacheDelta *DocPagesRotate200ResponseMetaCacheDelta) { + d.CacheDelta = cacheDelta + d.require(docPagesRotate200ResponseMetaFieldCacheDelta) } -func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache +func (d *DocPagesRotate200ResponseMeta) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesRotate200ResponseMeta var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache(value) + *d = DocPagesRotate200ResponseMeta(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -140382,8 +159663,8 @@ func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJS return nil } -func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON() ([]byte, error) { - type embed DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache +func (d *DocPagesRotate200ResponseMeta) MarshalJSON() ([]byte, error) { + type embed DocPagesRotate200ResponseMeta var marshaler = struct { embed }{ @@ -140393,7 +159674,7 @@ func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON return json.Marshal(explicitMarshaler) } -func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache) String() string { +func (d *DocPagesRotate200ResponseMeta) String() string { if d == nil { return "" } @@ -140409,17 +159690,15 @@ func (d *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache) String() st } var ( - docPagesInsertBlank400ResponseFieldName = big.NewInt(1 << 0) - docPagesInsertBlank400ResponseFieldCode = big.NewInt(1 << 1) - docPagesInsertBlank400ResponseFieldMessage = big.NewInt(1 << 2) - docPagesInsertBlank400ResponseFieldDetails = big.NewInt(1 << 3) + docPagesRotate200ResponseMetaAffectedPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) + docPagesRotate200ResponseMetaAffectedPagesItemFieldRevision = big.NewInt(1 << 1) + docPagesRotate200ResponseMetaAffectedPagesItemFieldWeakAnnotationState = big.NewInt(1 << 2) ) -type DocPagesInsertBlank400Response struct { - Name DocPagesInsertBlank400ResponseName `json:"name" url:"name"` - Code DocPagesInsertBlank400ResponseCode `json:"code" url:"code"` - Message string `json:"message" url:"message"` - Details map[string]any `json:"details,omitempty" url:"details,omitempty"` +type DocPagesRotate200ResponseMetaAffectedPagesItem struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Revision *DocPagesRotate200ResponseMetaAffectedPagesItemRevision `json:"revision" url:"revision"` + WeakAnnotationState *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState `json:"weakAnnotationState" url:"weakAnnotationState"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -140428,83 +159707,69 @@ type DocPagesInsertBlank400Response struct { rawJSON json.RawMessage } -func (d *DocPagesInsertBlank400Response) GetName() DocPagesInsertBlank400ResponseName { - if d == nil { - return "" - } - return d.Name -} - -func (d *DocPagesInsertBlank400Response) GetCode() DocPagesInsertBlank400ResponseCode { +func (d *DocPagesRotate200ResponseMetaAffectedPagesItem) GetPageObjectNumber() int { if d == nil { - return "" + return 0 } - return d.Code + return d.PageObjectNumber } -func (d *DocPagesInsertBlank400Response) GetMessage() string { +func (d *DocPagesRotate200ResponseMetaAffectedPagesItem) GetRevision() *DocPagesRotate200ResponseMetaAffectedPagesItemRevision { if d == nil { - return "" + return nil } - return d.Message + return d.Revision } -func (d *DocPagesInsertBlank400Response) GetDetails() map[string]any { +func (d *DocPagesRotate200ResponseMetaAffectedPagesItem) GetWeakAnnotationState() *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState { if d == nil { return nil } - return d.Details + return d.WeakAnnotationState } -func (d *DocPagesInsertBlank400Response) GetExtraProperties() map[string]interface{} { +func (d *DocPagesRotate200ResponseMetaAffectedPagesItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesInsertBlank400Response) require(field *big.Int) { +func (d *DocPagesRotate200ResponseMetaAffectedPagesItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetName sets the Name field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsertBlank400Response) SetName(name DocPagesInsertBlank400ResponseName) { - d.Name = name - d.require(docPagesInsertBlank400ResponseFieldName) -} - -// SetCode sets the Code field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsertBlank400Response) SetCode(code DocPagesInsertBlank400ResponseCode) { - d.Code = code - d.require(docPagesInsertBlank400ResponseFieldCode) +func (d *DocPagesRotate200ResponseMetaAffectedPagesItem) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docPagesRotate200ResponseMetaAffectedPagesItemFieldPageObjectNumber) } -// SetMessage sets the Message field and marks it as non-optional; +// SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsertBlank400Response) SetMessage(message string) { - d.Message = message - d.require(docPagesInsertBlank400ResponseFieldMessage) +func (d *DocPagesRotate200ResponseMetaAffectedPagesItem) SetRevision(revision *DocPagesRotate200ResponseMetaAffectedPagesItemRevision) { + d.Revision = revision + d.require(docPagesRotate200ResponseMetaAffectedPagesItemFieldRevision) } -// SetDetails sets the Details field and marks it as non-optional; +// SetWeakAnnotationState sets the WeakAnnotationState field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsertBlank400Response) SetDetails(details map[string]any) { - d.Details = details - d.require(docPagesInsertBlank400ResponseFieldDetails) +func (d *DocPagesRotate200ResponseMetaAffectedPagesItem) SetWeakAnnotationState(weakAnnotationState *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState) { + d.WeakAnnotationState = weakAnnotationState + d.require(docPagesRotate200ResponseMetaAffectedPagesItemFieldWeakAnnotationState) } -func (d *DocPagesInsertBlank400Response) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesInsertBlank400Response +func (d *DocPagesRotate200ResponseMetaAffectedPagesItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesRotate200ResponseMetaAffectedPagesItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesInsertBlank400Response(value) + *d = DocPagesRotate200ResponseMetaAffectedPagesItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -140514,154 +159779,42 @@ func (d *DocPagesInsertBlank400Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocPagesInsertBlank400Response) MarshalJSON() ([]byte, error) { - type embed DocPagesInsertBlank400Response - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) -} - -func (d *DocPagesInsertBlank400Response) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) -} - -type DocPagesInsertBlank400ResponseCode string - -const ( - DocPagesInsertBlank400ResponseCodeUnknown DocPagesInsertBlank400ResponseCode = "Unknown" - DocPagesInsertBlank400ResponseCodeInvalidArg DocPagesInsertBlank400ResponseCode = "InvalidArg" - DocPagesInsertBlank400ResponseCodeDocNotOpen DocPagesInsertBlank400ResponseCode = "DocNotOpen" - DocPagesInsertBlank400ResponseCodeDocOpenFailed DocPagesInsertBlank400ResponseCode = "DocOpenFailed" - DocPagesInsertBlank400ResponseCodeDocPasswordRequired DocPagesInsertBlank400ResponseCode = "DocPasswordRequired" - DocPagesInsertBlank400ResponseCodeDocPasswordIncorrect DocPagesInsertBlank400ResponseCode = "DocPasswordIncorrect" - DocPagesInsertBlank400ResponseCodeSharePasswordRequired DocPagesInsertBlank400ResponseCode = "SharePasswordRequired" - DocPagesInsertBlank400ResponseCodeAborted DocPagesInsertBlank400ResponseCode = "Aborted" - DocPagesInsertBlank400ResponseCodeNetwork DocPagesInsertBlank400ResponseCode = "Network" - DocPagesInsertBlank400ResponseCodeUnauthenticated DocPagesInsertBlank400ResponseCode = "Unauthenticated" - DocPagesInsertBlank400ResponseCodeForbidden DocPagesInsertBlank400ResponseCode = "Forbidden" - DocPagesInsertBlank400ResponseCodeNotFound DocPagesInsertBlank400ResponseCode = "NotFound" - DocPagesInsertBlank400ResponseCodeWireFormat DocPagesInsertBlank400ResponseCode = "WireFormat" - DocPagesInsertBlank400ResponseCodeRuntimeUnavailable DocPagesInsertBlank400ResponseCode = "RuntimeUnavailable" - DocPagesInsertBlank400ResponseCodeInvalidReference DocPagesInsertBlank400ResponseCode = "InvalidReference" - DocPagesInsertBlank400ResponseCodeWeakAnnotationSessionConflict DocPagesInsertBlank400ResponseCode = "WeakAnnotationSessionConflict" - DocPagesInsertBlank400ResponseCodeLayerVersionConflict DocPagesInsertBlank400ResponseCode = "LayerVersionConflict" - DocPagesInsertBlank400ResponseCodeNotImplemented DocPagesInsertBlank400ResponseCode = "NotImplemented" - DocPagesInsertBlank400ResponseCodeMalformedPdf DocPagesInsertBlank400ResponseCode = "MalformedPdf" - DocPagesInsertBlank400ResponseCodeSigningPending DocPagesInsertBlank400ResponseCode = "SigningPending" - DocPagesInsertBlank400ResponseCodeSigningExpired DocPagesInsertBlank400ResponseCode = "SigningExpired" - DocPagesInsertBlank400ResponseCodeSigningVersionMismatch DocPagesInsertBlank400ResponseCode = "SigningVersionMismatch" - DocPagesInsertBlank400ResponseCodeSignatureRefused DocPagesInsertBlank400ResponseCode = "SignatureRefused" - DocPagesInsertBlank400ResponseCodeProtectedDocument DocPagesInsertBlank400ResponseCode = "ProtectedDocument" - DocPagesInsertBlank400ResponseCodeStaleBase DocPagesInsertBlank400ResponseCode = "StaleBase" -) - -func NewDocPagesInsertBlank400ResponseCodeFromString(s string) (DocPagesInsertBlank400ResponseCode, error) { - switch s { - case "Unknown": - return DocPagesInsertBlank400ResponseCodeUnknown, nil - case "InvalidArg": - return DocPagesInsertBlank400ResponseCodeInvalidArg, nil - case "DocNotOpen": - return DocPagesInsertBlank400ResponseCodeDocNotOpen, nil - case "DocOpenFailed": - return DocPagesInsertBlank400ResponseCodeDocOpenFailed, nil - case "DocPasswordRequired": - return DocPagesInsertBlank400ResponseCodeDocPasswordRequired, nil - case "DocPasswordIncorrect": - return DocPagesInsertBlank400ResponseCodeDocPasswordIncorrect, nil - case "SharePasswordRequired": - return DocPagesInsertBlank400ResponseCodeSharePasswordRequired, nil - case "Aborted": - return DocPagesInsertBlank400ResponseCodeAborted, nil - case "Network": - return DocPagesInsertBlank400ResponseCodeNetwork, nil - case "Unauthenticated": - return DocPagesInsertBlank400ResponseCodeUnauthenticated, nil - case "Forbidden": - return DocPagesInsertBlank400ResponseCodeForbidden, nil - case "NotFound": - return DocPagesInsertBlank400ResponseCodeNotFound, nil - case "WireFormat": - return DocPagesInsertBlank400ResponseCodeWireFormat, nil - case "RuntimeUnavailable": - return DocPagesInsertBlank400ResponseCodeRuntimeUnavailable, nil - case "InvalidReference": - return DocPagesInsertBlank400ResponseCodeInvalidReference, nil - case "WeakAnnotationSessionConflict": - return DocPagesInsertBlank400ResponseCodeWeakAnnotationSessionConflict, nil - case "LayerVersionConflict": - return DocPagesInsertBlank400ResponseCodeLayerVersionConflict, nil - case "NotImplemented": - return DocPagesInsertBlank400ResponseCodeNotImplemented, nil - case "MalformedPdf": - return DocPagesInsertBlank400ResponseCodeMalformedPdf, nil - case "SigningPending": - return DocPagesInsertBlank400ResponseCodeSigningPending, nil - case "SigningExpired": - return DocPagesInsertBlank400ResponseCodeSigningExpired, nil - case "SigningVersionMismatch": - return DocPagesInsertBlank400ResponseCodeSigningVersionMismatch, nil - case "SignatureRefused": - return DocPagesInsertBlank400ResponseCodeSignatureRefused, nil - case "ProtectedDocument": - return DocPagesInsertBlank400ResponseCodeProtectedDocument, nil - case "StaleBase": - return DocPagesInsertBlank400ResponseCodeStaleBase, nil - } - var t DocPagesInsertBlank400ResponseCode - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocPagesInsertBlank400ResponseCode) Ptr() *DocPagesInsertBlank400ResponseCode { - return &d -} - -type DocPagesInsertBlank400ResponseName string - -const ( - DocPagesInsertBlank400ResponseNameEngineError DocPagesInsertBlank400ResponseName = "EngineError" -) - -func NewDocPagesInsertBlank400ResponseNameFromString(s string) (DocPagesInsertBlank400ResponseName, error) { - switch s { - case "EngineError": - return DocPagesInsertBlank400ResponseNameEngineError, nil +func (d *DocPagesRotate200ResponseMetaAffectedPagesItem) MarshalJSON() ([]byte, error) { + type embed DocPagesRotate200ResponseMetaAffectedPagesItem + var marshaler = struct { + embed + }{ + embed: embed(*d), } - var t DocPagesInsertBlank400ResponseName - return "", fmt.Errorf("%s is not a valid %T", s, t) + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d DocPagesInsertBlank400ResponseName) Ptr() *DocPagesInsertBlank400ResponseName { - return &d +func (d *DocPagesRotate200ResponseMetaAffectedPagesItem) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } var ( - docPagesInsertBlank404ResponseFieldName = big.NewInt(1 << 0) - docPagesInsertBlank404ResponseFieldCode = big.NewInt(1 << 1) - docPagesInsertBlank404ResponseFieldMessage = big.NewInt(1 << 2) - docPagesInsertBlank404ResponseFieldDetails = big.NewInt(1 << 3) + docPagesRotate200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID = big.NewInt(1 << 0) + docPagesRotate200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docPagesRotate200ResponseMetaAffectedPagesItemRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocPagesInsertBlank404Response struct { - Name DocPagesInsertBlank404ResponseName `json:"name" url:"name"` - Code DocPagesInsertBlank404ResponseCode `json:"code" url:"code"` - Message string `json:"message" url:"message"` - Details map[string]any `json:"details,omitempty" url:"details,omitempty"` +type DocPagesRotate200ResponseMetaAffectedPagesItemRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -140670,83 +159823,69 @@ type DocPagesInsertBlank404Response struct { rawJSON json.RawMessage } -func (d *DocPagesInsertBlank404Response) GetName() DocPagesInsertBlank404ResponseName { - if d == nil { - return "" - } - return d.Name -} - -func (d *DocPagesInsertBlank404Response) GetCode() DocPagesInsertBlank404ResponseCode { +func (d *DocPagesRotate200ResponseMetaAffectedPagesItemRevision) GetDocSessionID() string { if d == nil { return "" } - return d.Code + return d.DocSessionID } -func (d *DocPagesInsertBlank404Response) GetMessage() string { +func (d *DocPagesRotate200ResponseMetaAffectedPagesItemRevision) GetPageObjectNumber() int { if d == nil { - return "" + return 0 } - return d.Message + return d.PageObjectNumber } -func (d *DocPagesInsertBlank404Response) GetDetails() map[string]any { +func (d *DocPagesRotate200ResponseMetaAffectedPagesItemRevision) GetGeneration() int { if d == nil { - return nil + return 0 } - return d.Details + return d.Generation } -func (d *DocPagesInsertBlank404Response) GetExtraProperties() map[string]interface{} { +func (d *DocPagesRotate200ResponseMetaAffectedPagesItemRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesInsertBlank404Response) require(field *big.Int) { +func (d *DocPagesRotate200ResponseMetaAffectedPagesItemRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetName sets the Name field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsertBlank404Response) SetName(name DocPagesInsertBlank404ResponseName) { - d.Name = name - d.require(docPagesInsertBlank404ResponseFieldName) -} - -// SetCode sets the Code field and marks it as non-optional; +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsertBlank404Response) SetCode(code DocPagesInsertBlank404ResponseCode) { - d.Code = code - d.require(docPagesInsertBlank404ResponseFieldCode) +func (d *DocPagesRotate200ResponseMetaAffectedPagesItemRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docPagesRotate200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID) } -// SetMessage sets the Message field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsertBlank404Response) SetMessage(message string) { - d.Message = message - d.require(docPagesInsertBlank404ResponseFieldMessage) +func (d *DocPagesRotate200ResponseMetaAffectedPagesItemRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docPagesRotate200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber) } -// SetDetails sets the Details field and marks it as non-optional; +// SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesInsertBlank404Response) SetDetails(details map[string]any) { - d.Details = details - d.require(docPagesInsertBlank404ResponseFieldDetails) +func (d *DocPagesRotate200ResponseMetaAffectedPagesItemRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docPagesRotate200ResponseMetaAffectedPagesItemRevisionFieldGeneration) } -func (d *DocPagesInsertBlank404Response) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesInsertBlank404Response +func (d *DocPagesRotate200ResponseMetaAffectedPagesItemRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesRotate200ResponseMetaAffectedPagesItemRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesInsertBlank404Response(value) + *d = DocPagesRotate200ResponseMetaAffectedPagesItemRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -140756,8 +159895,8 @@ func (d *DocPagesInsertBlank404Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocPagesInsertBlank404Response) MarshalJSON() ([]byte, error) { - type embed DocPagesInsertBlank404Response +func (d *DocPagesRotate200ResponseMetaAffectedPagesItemRevision) MarshalJSON() ([]byte, error) { + type embed DocPagesRotate200ResponseMetaAffectedPagesItemRevision var marshaler = struct { embed }{ @@ -140767,7 +159906,7 @@ func (d *DocPagesInsertBlank404Response) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocPagesInsertBlank404Response) String() string { +func (d *DocPagesRotate200ResponseMetaAffectedPagesItemRevision) String() string { if d == nil { return "" } @@ -140782,193 +159921,202 @@ func (d *DocPagesInsertBlank404Response) String() string { return fmt.Sprintf("%#v", d) } -type DocPagesInsertBlank404ResponseCode string +type DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState struct { + Kind string + Unknown *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + Known *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown -const ( - DocPagesInsertBlank404ResponseCodeUnknown DocPagesInsertBlank404ResponseCode = "Unknown" - DocPagesInsertBlank404ResponseCodeInvalidArg DocPagesInsertBlank404ResponseCode = "InvalidArg" - DocPagesInsertBlank404ResponseCodeDocNotOpen DocPagesInsertBlank404ResponseCode = "DocNotOpen" - DocPagesInsertBlank404ResponseCodeDocOpenFailed DocPagesInsertBlank404ResponseCode = "DocOpenFailed" - DocPagesInsertBlank404ResponseCodeDocPasswordRequired DocPagesInsertBlank404ResponseCode = "DocPasswordRequired" - DocPagesInsertBlank404ResponseCodeDocPasswordIncorrect DocPagesInsertBlank404ResponseCode = "DocPasswordIncorrect" - DocPagesInsertBlank404ResponseCodeSharePasswordRequired DocPagesInsertBlank404ResponseCode = "SharePasswordRequired" - DocPagesInsertBlank404ResponseCodeAborted DocPagesInsertBlank404ResponseCode = "Aborted" - DocPagesInsertBlank404ResponseCodeNetwork DocPagesInsertBlank404ResponseCode = "Network" - DocPagesInsertBlank404ResponseCodeUnauthenticated DocPagesInsertBlank404ResponseCode = "Unauthenticated" - DocPagesInsertBlank404ResponseCodeForbidden DocPagesInsertBlank404ResponseCode = "Forbidden" - DocPagesInsertBlank404ResponseCodeNotFound DocPagesInsertBlank404ResponseCode = "NotFound" - DocPagesInsertBlank404ResponseCodeWireFormat DocPagesInsertBlank404ResponseCode = "WireFormat" - DocPagesInsertBlank404ResponseCodeRuntimeUnavailable DocPagesInsertBlank404ResponseCode = "RuntimeUnavailable" - DocPagesInsertBlank404ResponseCodeInvalidReference DocPagesInsertBlank404ResponseCode = "InvalidReference" - DocPagesInsertBlank404ResponseCodeWeakAnnotationSessionConflict DocPagesInsertBlank404ResponseCode = "WeakAnnotationSessionConflict" - DocPagesInsertBlank404ResponseCodeLayerVersionConflict DocPagesInsertBlank404ResponseCode = "LayerVersionConflict" - DocPagesInsertBlank404ResponseCodeNotImplemented DocPagesInsertBlank404ResponseCode = "NotImplemented" - DocPagesInsertBlank404ResponseCodeMalformedPdf DocPagesInsertBlank404ResponseCode = "MalformedPdf" - DocPagesInsertBlank404ResponseCodeSigningPending DocPagesInsertBlank404ResponseCode = "SigningPending" - DocPagesInsertBlank404ResponseCodeSigningExpired DocPagesInsertBlank404ResponseCode = "SigningExpired" - DocPagesInsertBlank404ResponseCodeSigningVersionMismatch DocPagesInsertBlank404ResponseCode = "SigningVersionMismatch" - DocPagesInsertBlank404ResponseCodeSignatureRefused DocPagesInsertBlank404ResponseCode = "SignatureRefused" - DocPagesInsertBlank404ResponseCodeProtectedDocument DocPagesInsertBlank404ResponseCode = "ProtectedDocument" - DocPagesInsertBlank404ResponseCodeStaleBase DocPagesInsertBlank404ResponseCode = "StaleBase" -) + rawJSON json.RawMessage +} -func NewDocPagesInsertBlank404ResponseCodeFromString(s string) (DocPagesInsertBlank404ResponseCode, error) { - switch s { - case "Unknown": - return DocPagesInsertBlank404ResponseCodeUnknown, nil - case "InvalidArg": - return DocPagesInsertBlank404ResponseCodeInvalidArg, nil - case "DocNotOpen": - return DocPagesInsertBlank404ResponseCodeDocNotOpen, nil - case "DocOpenFailed": - return DocPagesInsertBlank404ResponseCodeDocOpenFailed, nil - case "DocPasswordRequired": - return DocPagesInsertBlank404ResponseCodeDocPasswordRequired, nil - case "DocPasswordIncorrect": - return DocPagesInsertBlank404ResponseCodeDocPasswordIncorrect, nil - case "SharePasswordRequired": - return DocPagesInsertBlank404ResponseCodeSharePasswordRequired, nil - case "Aborted": - return DocPagesInsertBlank404ResponseCodeAborted, nil - case "Network": - return DocPagesInsertBlank404ResponseCodeNetwork, nil - case "Unauthenticated": - return DocPagesInsertBlank404ResponseCodeUnauthenticated, nil - case "Forbidden": - return DocPagesInsertBlank404ResponseCodeForbidden, nil - case "NotFound": - return DocPagesInsertBlank404ResponseCodeNotFound, nil - case "WireFormat": - return DocPagesInsertBlank404ResponseCodeWireFormat, nil - case "RuntimeUnavailable": - return DocPagesInsertBlank404ResponseCodeRuntimeUnavailable, nil - case "InvalidReference": - return DocPagesInsertBlank404ResponseCodeInvalidReference, nil - case "WeakAnnotationSessionConflict": - return DocPagesInsertBlank404ResponseCodeWeakAnnotationSessionConflict, nil - case "LayerVersionConflict": - return DocPagesInsertBlank404ResponseCodeLayerVersionConflict, nil - case "NotImplemented": - return DocPagesInsertBlank404ResponseCodeNotImplemented, nil - case "MalformedPdf": - return DocPagesInsertBlank404ResponseCodeMalformedPdf, nil - case "SigningPending": - return DocPagesInsertBlank404ResponseCodeSigningPending, nil - case "SigningExpired": - return DocPagesInsertBlank404ResponseCodeSigningExpired, nil - case "SigningVersionMismatch": - return DocPagesInsertBlank404ResponseCodeSigningVersionMismatch, nil - case "SignatureRefused": - return DocPagesInsertBlank404ResponseCodeSignatureRefused, nil - case "ProtectedDocument": - return DocPagesInsertBlank404ResponseCodeProtectedDocument, nil - case "StaleBase": - return DocPagesInsertBlank404ResponseCodeStaleBase, nil +func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKind() string { + if d == nil { + return "" } - var t DocPagesInsertBlank404ResponseCode - return "", fmt.Errorf("%s is not a valid %T", s, t) + return d.Kind } -func (d DocPagesInsertBlank404ResponseCode) Ptr() *DocPagesInsertBlank404ResponseCode { - return &d +func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState) GetUnknown() *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown { + if d == nil { + return nil + } + return d.Unknown } -type DocPagesInsertBlank404ResponseName string +func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKnown() *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown { + if d == nil { + return nil + } + return d.Known +} -const ( - DocPagesInsertBlank404ResponseNameEngineError DocPagesInsertBlank404ResponseName = "EngineError" -) +func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "unknown": + value := new(DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Unknown = value + case "known": + value := new(DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Known = value + } + d.rawJSON = json.RawMessage(data) + return nil +} -func NewDocPagesInsertBlank404ResponseNameFromString(s string) (DocPagesInsertBlank404ResponseName, error) { - switch s { - case "EngineError": - return DocPagesInsertBlank404ResponseNameEngineError, nil +func (d DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err } - var t DocPagesInsertBlank404ResponseName - return "", fmt.Errorf("%s is not a valid %T", s, t) + if d.Unknown != nil { + return internal.MarshalJSONWithExtraProperty(d.Unknown, "kind", "unknown") + } + if d.Known != nil { + return internal.MarshalJSONWithExtraProperty(d.Known, "kind", "known") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d DocPagesInsertBlank404ResponseName) Ptr() *DocPagesInsertBlank404ResponseName { - return &d +type DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor interface { + VisitUnknown(*DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) error + VisitKnown(*DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) error } -type DocPagesInsertBlankRequest = map[string]any +func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState) Accept(visitor DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor) error { + if d.Unknown != nil { + return visitor.VisitUnknown(d.Unknown) + } + if d.Known != nil { + return visitor.VisitKnown(d.Known) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.Unknown != nil { + fields = append(fields, "unknown") + } + if d.Known != nil { + fields = append(fields, "known") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil +} var ( - docPagesMove200ResponseFieldMeta = big.NewInt(1 << 0) + docPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations = big.NewInt(1 << 0) ) -type DocPagesMove200Response struct { - Meta *DocPagesMove200ResponseMeta `json:"meta" url:"meta"` +type DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown struct { + HasAnyWeakAnnotations bool `json:"hasAnyWeakAnnotations" url:"hasAnyWeakAnnotations"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` - ExtraProperties map[string]interface{} `json:"-" url:"-"` - - rawJSON json.RawMessage + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocPagesMove200Response) GetMeta() *DocPagesMove200ResponseMeta { +func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetHasAnyWeakAnnotations() bool { if d == nil { - return nil + return false } - return d.Meta + return d.HasAnyWeakAnnotations } -func (d *DocPagesMove200Response) GetExtraProperties() map[string]interface{} { +func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.ExtraProperties + return d.extraProperties } -func (d *DocPagesMove200Response) require(field *big.Int) { +func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetMeta sets the Meta field and marks it as non-optional; +// SetHasAnyWeakAnnotations sets the HasAnyWeakAnnotations field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesMove200Response) SetMeta(meta *DocPagesMove200ResponseMeta) { - d.Meta = meta - d.require(docPagesMove200ResponseFieldMeta) +func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) SetHasAnyWeakAnnotations(hasAnyWeakAnnotations bool) { + d.HasAnyWeakAnnotations = hasAnyWeakAnnotations + d.require(docPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations) } -func (d *DocPagesMove200Response) UnmarshalJSON(data []byte) error { - type embed DocPagesMove200Response - var unmarshaler = struct { - embed - }{ - embed: embed(*d), - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesMove200Response(unmarshaler.embed) + *d = DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err } - d.ExtraProperties = extraProperties + d.extraProperties = extraProperties d.rawJSON = json.RawMessage(data) return nil } -func (d *DocPagesMove200Response) MarshalJSON() ([]byte, error) { - type embed DocPagesMove200Response +func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) MarshalJSON() ([]byte, error) { + type embed DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown var marshaler = struct { embed }{ embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return internal.MarshalJSONWithExtraProperties(explicitMarshaler, d.ExtraProperties) + return json.Marshal(explicitMarshaler) } -func (d *DocPagesMove200Response) String() string { +func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) String() string { if d == nil { return "" } @@ -140983,14 +160131,7 @@ func (d *DocPagesMove200Response) String() string { return fmt.Sprintf("%#v", d) } -var ( - docPagesMove200ResponseMetaFieldAffectedPages = big.NewInt(1 << 0) - docPagesMove200ResponseMetaFieldCacheDelta = big.NewInt(1 << 1) -) - -type DocPagesMove200ResponseMeta struct { - AffectedPages []*DocPagesMove200ResponseMetaAffectedPagesItem `json:"affectedPages" url:"affectedPages"` - CacheDelta *DocPagesMove200ResponseMetaCacheDelta `json:"cacheDelta,omitempty" url:"cacheDelta,omitempty"` +type DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -140999,55 +160140,27 @@ type DocPagesMove200ResponseMeta struct { rawJSON json.RawMessage } -func (d *DocPagesMove200ResponseMeta) GetAffectedPages() []*DocPagesMove200ResponseMetaAffectedPagesItem { - if d == nil { - return nil - } - return d.AffectedPages -} - -func (d *DocPagesMove200ResponseMeta) GetCacheDelta() *DocPagesMove200ResponseMetaCacheDelta { - if d == nil { - return nil - } - return d.CacheDelta -} - -func (d *DocPagesMove200ResponseMeta) GetExtraProperties() map[string]interface{} { +func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesMove200ResponseMeta) require(field *big.Int) { +func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetAffectedPages sets the AffectedPages field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesMove200ResponseMeta) SetAffectedPages(affectedPages []*DocPagesMove200ResponseMetaAffectedPagesItem) { - d.AffectedPages = affectedPages - d.require(docPagesMove200ResponseMetaFieldAffectedPages) -} - -// SetCacheDelta sets the CacheDelta field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesMove200ResponseMeta) SetCacheDelta(cacheDelta *DocPagesMove200ResponseMetaCacheDelta) { - d.CacheDelta = cacheDelta - d.require(docPagesMove200ResponseMetaFieldCacheDelta) -} - -func (d *DocPagesMove200ResponseMeta) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesMove200ResponseMeta +func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesMove200ResponseMeta(value) + *d = DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -141057,8 +160170,8 @@ func (d *DocPagesMove200ResponseMeta) UnmarshalJSON(data []byte) error { return nil } -func (d *DocPagesMove200ResponseMeta) MarshalJSON() ([]byte, error) { - type embed DocPagesMove200ResponseMeta +func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) MarshalJSON() ([]byte, error) { + type embed DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown var marshaler = struct { embed }{ @@ -141068,7 +160181,7 @@ func (d *DocPagesMove200ResponseMeta) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocPagesMove200ResponseMeta) String() string { +func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) String() string { if d == nil { return "" } @@ -141084,15 +160197,21 @@ func (d *DocPagesMove200ResponseMeta) String() string { } var ( - docPagesMove200ResponseMetaAffectedPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) - docPagesMove200ResponseMetaAffectedPagesItemFieldRevision = big.NewInt(1 << 1) - docPagesMove200ResponseMetaAffectedPagesItemFieldWeakAnnotationState = big.NewInt(1 << 2) + docPagesRotate200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) + docPagesRotate200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) + docPagesRotate200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) + docPagesRotate200ResponseMetaCacheDeltaFieldLayerVersion = big.NewInt(1 << 3) + docPagesRotate200ResponseMetaCacheDeltaFieldWorking = big.NewInt(1 << 4) + docPagesRotate200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 5) ) -type DocPagesMove200ResponseMetaAffectedPagesItem struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Revision *DocPagesMove200ResponseMetaAffectedPagesItemRevision `json:"revision" url:"revision"` - WeakAnnotationState *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState `json:"weakAnnotationState" url:"weakAnnotationState"` +type DocPagesRotate200ResponseMetaCacheDelta struct { + PreviousDocVersion int `json:"previousDocVersion" url:"previousDocVersion"` + DocVersion int `json:"docVersion" url:"docVersion"` + AnnotationsVersion *int `json:"annotationsVersion,omitempty" url:"annotationsVersion,omitempty"` + LayerVersion *int `json:"layerVersion,omitempty" url:"layerVersion,omitempty"` + Working *bool `json:"working,omitempty" url:"working,omitempty"` + Pages []*DocPagesRotate200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -141101,69 +160220,111 @@ type DocPagesMove200ResponseMetaAffectedPagesItem struct { rawJSON json.RawMessage } -func (d *DocPagesMove200ResponseMetaAffectedPagesItem) GetPageObjectNumber() int { +func (d *DocPagesRotate200ResponseMetaCacheDelta) GetPreviousDocVersion() int { if d == nil { return 0 } - return d.PageObjectNumber + return d.PreviousDocVersion } -func (d *DocPagesMove200ResponseMetaAffectedPagesItem) GetRevision() *DocPagesMove200ResponseMetaAffectedPagesItemRevision { +func (d *DocPagesRotate200ResponseMetaCacheDelta) GetDocVersion() int { + if d == nil { + return 0 + } + return d.DocVersion +} + +func (d *DocPagesRotate200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { if d == nil { return nil } - return d.Revision + return d.AnnotationsVersion } -func (d *DocPagesMove200ResponseMetaAffectedPagesItem) GetWeakAnnotationState() *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState { +func (d *DocPagesRotate200ResponseMetaCacheDelta) GetLayerVersion() *int { if d == nil { return nil } - return d.WeakAnnotationState + return d.LayerVersion } -func (d *DocPagesMove200ResponseMetaAffectedPagesItem) GetExtraProperties() map[string]interface{} { +func (d *DocPagesRotate200ResponseMetaCacheDelta) GetWorking() *bool { + if d == nil { + return nil + } + return d.Working +} + +func (d *DocPagesRotate200ResponseMetaCacheDelta) GetPages() []*DocPagesRotate200ResponseMetaCacheDeltaPagesItem { + if d == nil { + return nil + } + return d.Pages +} + +func (d *DocPagesRotate200ResponseMetaCacheDelta) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesMove200ResponseMetaAffectedPagesItem) require(field *big.Int) { +func (d *DocPagesRotate200ResponseMetaCacheDelta) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetPreviousDocVersion sets the PreviousDocVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesMove200ResponseMetaAffectedPagesItem) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docPagesMove200ResponseMetaAffectedPagesItemFieldPageObjectNumber) +func (d *DocPagesRotate200ResponseMetaCacheDelta) SetPreviousDocVersion(previousDocVersion int) { + d.PreviousDocVersion = previousDocVersion + d.require(docPagesRotate200ResponseMetaCacheDeltaFieldPreviousDocVersion) +} + +// SetDocVersion sets the DocVersion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesRotate200ResponseMetaCacheDelta) SetDocVersion(docVersion int) { + d.DocVersion = docVersion + d.require(docPagesRotate200ResponseMetaCacheDeltaFieldDocVersion) +} + +// SetAnnotationsVersion sets the AnnotationsVersion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesRotate200ResponseMetaCacheDelta) SetAnnotationsVersion(annotationsVersion *int) { + d.AnnotationsVersion = annotationsVersion + d.require(docPagesRotate200ResponseMetaCacheDeltaFieldAnnotationsVersion) +} + +// SetLayerVersion sets the LayerVersion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesRotate200ResponseMetaCacheDelta) SetLayerVersion(layerVersion *int) { + d.LayerVersion = layerVersion + d.require(docPagesRotate200ResponseMetaCacheDeltaFieldLayerVersion) } -// SetRevision sets the Revision field and marks it as non-optional; +// SetWorking sets the Working field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesMove200ResponseMetaAffectedPagesItem) SetRevision(revision *DocPagesMove200ResponseMetaAffectedPagesItemRevision) { - d.Revision = revision - d.require(docPagesMove200ResponseMetaAffectedPagesItemFieldRevision) +func (d *DocPagesRotate200ResponseMetaCacheDelta) SetWorking(working *bool) { + d.Working = working + d.require(docPagesRotate200ResponseMetaCacheDeltaFieldWorking) } -// SetWeakAnnotationState sets the WeakAnnotationState field and marks it as non-optional; +// SetPages sets the Pages field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesMove200ResponseMetaAffectedPagesItem) SetWeakAnnotationState(weakAnnotationState *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState) { - d.WeakAnnotationState = weakAnnotationState - d.require(docPagesMove200ResponseMetaAffectedPagesItemFieldWeakAnnotationState) +func (d *DocPagesRotate200ResponseMetaCacheDelta) SetPages(pages []*DocPagesRotate200ResponseMetaCacheDeltaPagesItem) { + d.Pages = pages + d.require(docPagesRotate200ResponseMetaCacheDeltaFieldPages) } -func (d *DocPagesMove200ResponseMetaAffectedPagesItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesMove200ResponseMetaAffectedPagesItem +func (d *DocPagesRotate200ResponseMetaCacheDelta) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesRotate200ResponseMetaCacheDelta var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesMove200ResponseMetaAffectedPagesItem(value) + *d = DocPagesRotate200ResponseMetaCacheDelta(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -141173,8 +160334,8 @@ func (d *DocPagesMove200ResponseMetaAffectedPagesItem) UnmarshalJSON(data []byte return nil } -func (d *DocPagesMove200ResponseMetaAffectedPagesItem) MarshalJSON() ([]byte, error) { - type embed DocPagesMove200ResponseMetaAffectedPagesItem +func (d *DocPagesRotate200ResponseMetaCacheDelta) MarshalJSON() ([]byte, error) { + type embed DocPagesRotate200ResponseMetaCacheDelta var marshaler = struct { embed }{ @@ -141184,7 +160345,7 @@ func (d *DocPagesMove200ResponseMetaAffectedPagesItem) MarshalJSON() ([]byte, er return json.Marshal(explicitMarshaler) } -func (d *DocPagesMove200ResponseMetaAffectedPagesItem) String() string { +func (d *DocPagesRotate200ResponseMetaCacheDelta) String() string { if d == nil { return "" } @@ -141200,15 +160361,13 @@ func (d *DocPagesMove200ResponseMetaAffectedPagesItem) String() string { } var ( - docPagesMove200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID = big.NewInt(1 << 0) - docPagesMove200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docPagesMove200ResponseMetaAffectedPagesItemRevisionFieldGeneration = big.NewInt(1 << 2) + docPagesRotate200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) + docPagesRotate200ResponseMetaCacheDeltaPagesItemFieldCache = big.NewInt(1 << 1) ) -type DocPagesMove200ResponseMetaAffectedPagesItemRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocPagesRotate200ResponseMetaCacheDeltaPagesItem struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Cache *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache `json:"cache" url:"cache"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -141217,69 +160376,55 @@ type DocPagesMove200ResponseMetaAffectedPagesItemRevision struct { rawJSON json.RawMessage } -func (d *DocPagesMove200ResponseMetaAffectedPagesItemRevision) GetDocSessionID() string { - if d == nil { - return "" - } - return d.DocSessionID -} - -func (d *DocPagesMove200ResponseMetaAffectedPagesItemRevision) GetPageObjectNumber() int { +func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItem) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocPagesMove200ResponseMetaAffectedPagesItemRevision) GetGeneration() int { +func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItem) GetCache() *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache { if d == nil { - return 0 + return nil } - return d.Generation + return d.Cache } -func (d *DocPagesMove200ResponseMetaAffectedPagesItemRevision) GetExtraProperties() map[string]interface{} { +func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesMove200ResponseMetaAffectedPagesItemRevision) require(field *big.Int) { +func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesMove200ResponseMetaAffectedPagesItemRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docPagesMove200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID) -} - // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesMove200ResponseMetaAffectedPagesItemRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItem) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docPagesMove200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber) + d.require(docPagesRotate200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetCache sets the Cache field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesMove200ResponseMetaAffectedPagesItemRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docPagesMove200ResponseMetaAffectedPagesItemRevisionFieldGeneration) +func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItem) SetCache(cache *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache) { + d.Cache = cache + d.require(docPagesRotate200ResponseMetaCacheDeltaPagesItemFieldCache) } -func (d *DocPagesMove200ResponseMetaAffectedPagesItemRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesMove200ResponseMetaAffectedPagesItemRevision +func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesRotate200ResponseMetaCacheDeltaPagesItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesMove200ResponseMetaAffectedPagesItemRevision(value) + *d = DocPagesRotate200ResponseMetaCacheDeltaPagesItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -141289,8 +160434,8 @@ func (d *DocPagesMove200ResponseMetaAffectedPagesItemRevision) UnmarshalJSON(dat return nil } -func (d *DocPagesMove200ResponseMetaAffectedPagesItemRevision) MarshalJSON() ([]byte, error) { - type embed DocPagesMove200ResponseMetaAffectedPagesItemRevision +func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItem) MarshalJSON() ([]byte, error) { + type embed DocPagesRotate200ResponseMetaCacheDeltaPagesItem var marshaler = struct { embed }{ @@ -141300,7 +160445,7 @@ func (d *DocPagesMove200ResponseMetaAffectedPagesItemRevision) MarshalJSON() ([] return json.Marshal(explicitMarshaler) } -func (d *DocPagesMove200ResponseMetaAffectedPagesItemRevision) String() string { +func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItem) String() string { if d == nil { return "" } @@ -141315,138 +160460,14 @@ func (d *DocPagesMove200ResponseMetaAffectedPagesItemRevision) String() string { return fmt.Sprintf("%#v", d) } -type DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState struct { - Kind string - Unknown *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - Known *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - - rawJSON json.RawMessage -} - -func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKind() string { - if d == nil { - return "" - } - return d.Kind -} - -func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState) GetUnknown() *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown { - if d == nil { - return nil - } - return d.Unknown -} - -func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKnown() *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown { - if d == nil { - return nil - } - return d.Known -} - -func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "unknown": - value := new(DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Unknown = value - case "known": - value := new(DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Known = value - } - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.Unknown != nil { - return internal.MarshalJSONWithExtraProperty(d.Unknown, "kind", "unknown") - } - if d.Known != nil { - return internal.MarshalJSONWithExtraProperty(d.Known, "kind", "known") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil - } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) -} - -type DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor interface { - VisitUnknown(*DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) error - VisitKnown(*DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) error -} - -func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState) Accept(visitor DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor) error { - if d.Unknown != nil { - return visitor.VisitUnknown(d.Unknown) - } - if d.Known != nil { - return visitor.VisitKnown(d.Known) - } - return fmt.Errorf("type %T does not define a non-empty union type", d) -} - -func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState) validate() error { - if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.Unknown != nil { - fields = append(fields, "unknown") - } - if d.Known != nil { - fields = append(fields, "known") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } - } - return nil -} - var ( - docPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations = big.NewInt(1 << 0) + docPagesRotate200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion = big.NewInt(1 << 0) + docPagesRotate200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion = big.NewInt(1 << 1) ) -type DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown struct { - HasAnyWeakAnnotations bool `json:"hasAnyWeakAnnotations" url:"hasAnyWeakAnnotations"` +type DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache struct { + ContentVersion int `json:"contentVersion" url:"contentVersion"` + AnnotationVersion int `json:"annotationVersion" url:"annotationVersion"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -141455,41 +160476,55 @@ type DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown struct rawJSON json.RawMessage } -func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetHasAnyWeakAnnotations() bool { +func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache) GetContentVersion() int { if d == nil { - return false + return 0 } - return d.HasAnyWeakAnnotations + return d.ContentVersion } -func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetExtraProperties() map[string]interface{} { +func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache) GetAnnotationVersion() int { + if d == nil { + return 0 + } + return d.AnnotationVersion +} + +func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) require(field *big.Int) { +func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetHasAnyWeakAnnotations sets the HasAnyWeakAnnotations field and marks it as non-optional; +// SetContentVersion sets the ContentVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) SetHasAnyWeakAnnotations(hasAnyWeakAnnotations bool) { - d.HasAnyWeakAnnotations = hasAnyWeakAnnotations - d.require(docPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations) +func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache) SetContentVersion(contentVersion int) { + d.ContentVersion = contentVersion + d.require(docPagesRotate200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion) } -func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown +// SetAnnotationVersion sets the AnnotationVersion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache) SetAnnotationVersion(annotationVersion int) { + d.AnnotationVersion = annotationVersion + d.require(docPagesRotate200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion) +} + +func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(value) + *d = DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -141499,8 +160534,8 @@ func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) U return nil } -func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) MarshalJSON() ([]byte, error) { - type embed DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown +func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON() ([]byte, error) { + type embed DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache var marshaler = struct { embed }{ @@ -141510,7 +160545,7 @@ func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) M return json.Marshal(explicitMarshaler) } -func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) String() string { +func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache) String() string { if d == nil { return "" } @@ -141525,7 +160560,18 @@ func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) S return fmt.Sprintf("%#v", d) } -type DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown struct { +var ( + docPagesRotate400ResponseFieldName = big.NewInt(1 << 0) + docPagesRotate400ResponseFieldCode = big.NewInt(1 << 1) + docPagesRotate400ResponseFieldMessage = big.NewInt(1 << 2) + docPagesRotate400ResponseFieldDetails = big.NewInt(1 << 3) +) + +type DocPagesRotate400Response struct { + Name DocPagesRotate400ResponseName `json:"name" url:"name"` + Code DocPagesRotate400ResponseCode `json:"code" url:"code"` + Message string `json:"message" url:"message"` + Details map[string]any `json:"details,omitempty" url:"details,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -141534,27 +160580,83 @@ type DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown stru rawJSON json.RawMessage } -func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) GetExtraProperties() map[string]interface{} { +func (d *DocPagesRotate400Response) GetName() DocPagesRotate400ResponseName { + if d == nil { + return "" + } + return d.Name +} + +func (d *DocPagesRotate400Response) GetCode() DocPagesRotate400ResponseCode { + if d == nil { + return "" + } + return d.Code +} + +func (d *DocPagesRotate400Response) GetMessage() string { + if d == nil { + return "" + } + return d.Message +} + +func (d *DocPagesRotate400Response) GetDetails() map[string]any { + if d == nil { + return nil + } + return d.Details +} + +func (d *DocPagesRotate400Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) require(field *big.Int) { +func (d *DocPagesRotate400Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown +// SetName sets the Name field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesRotate400Response) SetName(name DocPagesRotate400ResponseName) { + d.Name = name + d.require(docPagesRotate400ResponseFieldName) +} + +// SetCode sets the Code field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesRotate400Response) SetCode(code DocPagesRotate400ResponseCode) { + d.Code = code + d.require(docPagesRotate400ResponseFieldCode) +} + +// SetMessage sets the Message field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesRotate400Response) SetMessage(message string) { + d.Message = message + d.require(docPagesRotate400ResponseFieldMessage) +} + +// SetDetails sets the Details field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesRotate400Response) SetDetails(details map[string]any) { + d.Details = details + d.require(docPagesRotate400ResponseFieldDetails) +} + +func (d *DocPagesRotate400Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesRotate400Response var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(value) + *d = DocPagesRotate400Response(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -141564,8 +160666,8 @@ func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) return nil } -func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) MarshalJSON() ([]byte, error) { - type embed DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown +func (d *DocPagesRotate400Response) MarshalJSON() ([]byte, error) { + type embed DocPagesRotate400Response var marshaler = struct { embed }{ @@ -141575,7 +160677,7 @@ func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) return json.Marshal(explicitMarshaler) } -func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) String() string { +func (d *DocPagesRotate400Response) String() string { if d == nil { return "" } @@ -141590,22 +160692,128 @@ func (d *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) return fmt.Sprintf("%#v", d) } +type DocPagesRotate400ResponseCode string + +const ( + DocPagesRotate400ResponseCodeUnknown DocPagesRotate400ResponseCode = "Unknown" + DocPagesRotate400ResponseCodeInvalidArg DocPagesRotate400ResponseCode = "InvalidArg" + DocPagesRotate400ResponseCodeDocNotOpen DocPagesRotate400ResponseCode = "DocNotOpen" + DocPagesRotate400ResponseCodeDocOpenFailed DocPagesRotate400ResponseCode = "DocOpenFailed" + DocPagesRotate400ResponseCodeDocPasswordRequired DocPagesRotate400ResponseCode = "DocPasswordRequired" + DocPagesRotate400ResponseCodeDocPasswordIncorrect DocPagesRotate400ResponseCode = "DocPasswordIncorrect" + DocPagesRotate400ResponseCodeSharePasswordRequired DocPagesRotate400ResponseCode = "SharePasswordRequired" + DocPagesRotate400ResponseCodeAborted DocPagesRotate400ResponseCode = "Aborted" + DocPagesRotate400ResponseCodeNetwork DocPagesRotate400ResponseCode = "Network" + DocPagesRotate400ResponseCodeUnauthenticated DocPagesRotate400ResponseCode = "Unauthenticated" + DocPagesRotate400ResponseCodeForbidden DocPagesRotate400ResponseCode = "Forbidden" + DocPagesRotate400ResponseCodeNotFound DocPagesRotate400ResponseCode = "NotFound" + DocPagesRotate400ResponseCodeWireFormat DocPagesRotate400ResponseCode = "WireFormat" + DocPagesRotate400ResponseCodeRuntimeUnavailable DocPagesRotate400ResponseCode = "RuntimeUnavailable" + DocPagesRotate400ResponseCodeInvalidReference DocPagesRotate400ResponseCode = "InvalidReference" + DocPagesRotate400ResponseCodeWeakAnnotationSessionConflict DocPagesRotate400ResponseCode = "WeakAnnotationSessionConflict" + DocPagesRotate400ResponseCodeLayerVersionConflict DocPagesRotate400ResponseCode = "LayerVersionConflict" + DocPagesRotate400ResponseCodeNotImplemented DocPagesRotate400ResponseCode = "NotImplemented" + DocPagesRotate400ResponseCodeMalformedPdf DocPagesRotate400ResponseCode = "MalformedPdf" + DocPagesRotate400ResponseCodeSigningPending DocPagesRotate400ResponseCode = "SigningPending" + DocPagesRotate400ResponseCodeSigningExpired DocPagesRotate400ResponseCode = "SigningExpired" + DocPagesRotate400ResponseCodeSigningVersionMismatch DocPagesRotate400ResponseCode = "SigningVersionMismatch" + DocPagesRotate400ResponseCodeSignatureRefused DocPagesRotate400ResponseCode = "SignatureRefused" + DocPagesRotate400ResponseCodeProtectedDocument DocPagesRotate400ResponseCode = "ProtectedDocument" + DocPagesRotate400ResponseCodeStaleBase DocPagesRotate400ResponseCode = "StaleBase" +) + +func NewDocPagesRotate400ResponseCodeFromString(s string) (DocPagesRotate400ResponseCode, error) { + switch s { + case "Unknown": + return DocPagesRotate400ResponseCodeUnknown, nil + case "InvalidArg": + return DocPagesRotate400ResponseCodeInvalidArg, nil + case "DocNotOpen": + return DocPagesRotate400ResponseCodeDocNotOpen, nil + case "DocOpenFailed": + return DocPagesRotate400ResponseCodeDocOpenFailed, nil + case "DocPasswordRequired": + return DocPagesRotate400ResponseCodeDocPasswordRequired, nil + case "DocPasswordIncorrect": + return DocPagesRotate400ResponseCodeDocPasswordIncorrect, nil + case "SharePasswordRequired": + return DocPagesRotate400ResponseCodeSharePasswordRequired, nil + case "Aborted": + return DocPagesRotate400ResponseCodeAborted, nil + case "Network": + return DocPagesRotate400ResponseCodeNetwork, nil + case "Unauthenticated": + return DocPagesRotate400ResponseCodeUnauthenticated, nil + case "Forbidden": + return DocPagesRotate400ResponseCodeForbidden, nil + case "NotFound": + return DocPagesRotate400ResponseCodeNotFound, nil + case "WireFormat": + return DocPagesRotate400ResponseCodeWireFormat, nil + case "RuntimeUnavailable": + return DocPagesRotate400ResponseCodeRuntimeUnavailable, nil + case "InvalidReference": + return DocPagesRotate400ResponseCodeInvalidReference, nil + case "WeakAnnotationSessionConflict": + return DocPagesRotate400ResponseCodeWeakAnnotationSessionConflict, nil + case "LayerVersionConflict": + return DocPagesRotate400ResponseCodeLayerVersionConflict, nil + case "NotImplemented": + return DocPagesRotate400ResponseCodeNotImplemented, nil + case "MalformedPdf": + return DocPagesRotate400ResponseCodeMalformedPdf, nil + case "SigningPending": + return DocPagesRotate400ResponseCodeSigningPending, nil + case "SigningExpired": + return DocPagesRotate400ResponseCodeSigningExpired, nil + case "SigningVersionMismatch": + return DocPagesRotate400ResponseCodeSigningVersionMismatch, nil + case "SignatureRefused": + return DocPagesRotate400ResponseCodeSignatureRefused, nil + case "ProtectedDocument": + return DocPagesRotate400ResponseCodeProtectedDocument, nil + case "StaleBase": + return DocPagesRotate400ResponseCodeStaleBase, nil + } + var t DocPagesRotate400ResponseCode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesRotate400ResponseCode) Ptr() *DocPagesRotate400ResponseCode { + return &d +} + +type DocPagesRotate400ResponseName string + +const ( + DocPagesRotate400ResponseNameEngineError DocPagesRotate400ResponseName = "EngineError" +) + +func NewDocPagesRotate400ResponseNameFromString(s string) (DocPagesRotate400ResponseName, error) { + switch s { + case "EngineError": + return DocPagesRotate400ResponseNameEngineError, nil + } + var t DocPagesRotate400ResponseName + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesRotate400ResponseName) Ptr() *DocPagesRotate400ResponseName { + return &d +} + var ( - docPagesMove200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) - docPagesMove200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) - docPagesMove200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) - docPagesMove200ResponseMetaCacheDeltaFieldLayerVersion = big.NewInt(1 << 3) - docPagesMove200ResponseMetaCacheDeltaFieldWorking = big.NewInt(1 << 4) - docPagesMove200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 5) + docPagesRotate404ResponseFieldName = big.NewInt(1 << 0) + docPagesRotate404ResponseFieldCode = big.NewInt(1 << 1) + docPagesRotate404ResponseFieldMessage = big.NewInt(1 << 2) + docPagesRotate404ResponseFieldDetails = big.NewInt(1 << 3) ) -type DocPagesMove200ResponseMetaCacheDelta struct { - PreviousDocVersion int `json:"previousDocVersion" url:"previousDocVersion"` - DocVersion int `json:"docVersion" url:"docVersion"` - AnnotationsVersion *int `json:"annotationsVersion,omitempty" url:"annotationsVersion,omitempty"` - LayerVersion *int `json:"layerVersion,omitempty" url:"layerVersion,omitempty"` - Working *bool `json:"working,omitempty" url:"working,omitempty"` - Pages []*DocPagesMove200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` +type DocPagesRotate404Response struct { + Name DocPagesRotate404ResponseName `json:"name" url:"name"` + Code DocPagesRotate404ResponseCode `json:"code" url:"code"` + Message string `json:"message" url:"message"` + Details map[string]any `json:"details,omitempty" url:"details,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -141614,111 +160822,83 @@ type DocPagesMove200ResponseMetaCacheDelta struct { rawJSON json.RawMessage } -func (d *DocPagesMove200ResponseMetaCacheDelta) GetPreviousDocVersion() int { - if d == nil { - return 0 - } - return d.PreviousDocVersion -} - -func (d *DocPagesMove200ResponseMetaCacheDelta) GetDocVersion() int { - if d == nil { - return 0 - } - return d.DocVersion -} - -func (d *DocPagesMove200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { +func (d *DocPagesRotate404Response) GetName() DocPagesRotate404ResponseName { if d == nil { - return nil + return "" } - return d.AnnotationsVersion + return d.Name } -func (d *DocPagesMove200ResponseMetaCacheDelta) GetLayerVersion() *int { +func (d *DocPagesRotate404Response) GetCode() DocPagesRotate404ResponseCode { if d == nil { - return nil + return "" } - return d.LayerVersion + return d.Code } -func (d *DocPagesMove200ResponseMetaCacheDelta) GetWorking() *bool { +func (d *DocPagesRotate404Response) GetMessage() string { if d == nil { - return nil + return "" } - return d.Working + return d.Message } -func (d *DocPagesMove200ResponseMetaCacheDelta) GetPages() []*DocPagesMove200ResponseMetaCacheDeltaPagesItem { +func (d *DocPagesRotate404Response) GetDetails() map[string]any { if d == nil { return nil } - return d.Pages + return d.Details } -func (d *DocPagesMove200ResponseMetaCacheDelta) GetExtraProperties() map[string]interface{} { +func (d *DocPagesRotate404Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesMove200ResponseMetaCacheDelta) require(field *big.Int) { +func (d *DocPagesRotate404Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPreviousDocVersion sets the PreviousDocVersion field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesMove200ResponseMetaCacheDelta) SetPreviousDocVersion(previousDocVersion int) { - d.PreviousDocVersion = previousDocVersion - d.require(docPagesMove200ResponseMetaCacheDeltaFieldPreviousDocVersion) -} - -// SetDocVersion sets the DocVersion field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesMove200ResponseMetaCacheDelta) SetDocVersion(docVersion int) { - d.DocVersion = docVersion - d.require(docPagesMove200ResponseMetaCacheDeltaFieldDocVersion) -} - -// SetAnnotationsVersion sets the AnnotationsVersion field and marks it as non-optional; +// SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesMove200ResponseMetaCacheDelta) SetAnnotationsVersion(annotationsVersion *int) { - d.AnnotationsVersion = annotationsVersion - d.require(docPagesMove200ResponseMetaCacheDeltaFieldAnnotationsVersion) +func (d *DocPagesRotate404Response) SetName(name DocPagesRotate404ResponseName) { + d.Name = name + d.require(docPagesRotate404ResponseFieldName) } -// SetLayerVersion sets the LayerVersion field and marks it as non-optional; +// SetCode sets the Code field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesMove200ResponseMetaCacheDelta) SetLayerVersion(layerVersion *int) { - d.LayerVersion = layerVersion - d.require(docPagesMove200ResponseMetaCacheDeltaFieldLayerVersion) +func (d *DocPagesRotate404Response) SetCode(code DocPagesRotate404ResponseCode) { + d.Code = code + d.require(docPagesRotate404ResponseFieldCode) } -// SetWorking sets the Working field and marks it as non-optional; +// SetMessage sets the Message field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesMove200ResponseMetaCacheDelta) SetWorking(working *bool) { - d.Working = working - d.require(docPagesMove200ResponseMetaCacheDeltaFieldWorking) +func (d *DocPagesRotate404Response) SetMessage(message string) { + d.Message = message + d.require(docPagesRotate404ResponseFieldMessage) } -// SetPages sets the Pages field and marks it as non-optional; +// SetDetails sets the Details field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesMove200ResponseMetaCacheDelta) SetPages(pages []*DocPagesMove200ResponseMetaCacheDeltaPagesItem) { - d.Pages = pages - d.require(docPagesMove200ResponseMetaCacheDeltaFieldPages) +func (d *DocPagesRotate404Response) SetDetails(details map[string]any) { + d.Details = details + d.require(docPagesRotate404ResponseFieldDetails) } -func (d *DocPagesMove200ResponseMetaCacheDelta) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesMove200ResponseMetaCacheDelta +func (d *DocPagesRotate404Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesRotate404Response var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesMove200ResponseMetaCacheDelta(value) + *d = DocPagesRotate404Response(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -141728,8 +160908,8 @@ func (d *DocPagesMove200ResponseMetaCacheDelta) UnmarshalJSON(data []byte) error return nil } -func (d *DocPagesMove200ResponseMetaCacheDelta) MarshalJSON() ([]byte, error) { - type embed DocPagesMove200ResponseMetaCacheDelta +func (d *DocPagesRotate404Response) MarshalJSON() ([]byte, error) { + type embed DocPagesRotate404Response var marshaler = struct { embed }{ @@ -141739,7 +160919,7 @@ func (d *DocPagesMove200ResponseMetaCacheDelta) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocPagesMove200ResponseMetaCacheDelta) String() string { +func (d *DocPagesRotate404Response) String() string { if d == nil { return "" } @@ -141754,92 +160934,193 @@ func (d *DocPagesMove200ResponseMetaCacheDelta) String() string { return fmt.Sprintf("%#v", d) } +type DocPagesRotate404ResponseCode string + +const ( + DocPagesRotate404ResponseCodeUnknown DocPagesRotate404ResponseCode = "Unknown" + DocPagesRotate404ResponseCodeInvalidArg DocPagesRotate404ResponseCode = "InvalidArg" + DocPagesRotate404ResponseCodeDocNotOpen DocPagesRotate404ResponseCode = "DocNotOpen" + DocPagesRotate404ResponseCodeDocOpenFailed DocPagesRotate404ResponseCode = "DocOpenFailed" + DocPagesRotate404ResponseCodeDocPasswordRequired DocPagesRotate404ResponseCode = "DocPasswordRequired" + DocPagesRotate404ResponseCodeDocPasswordIncorrect DocPagesRotate404ResponseCode = "DocPasswordIncorrect" + DocPagesRotate404ResponseCodeSharePasswordRequired DocPagesRotate404ResponseCode = "SharePasswordRequired" + DocPagesRotate404ResponseCodeAborted DocPagesRotate404ResponseCode = "Aborted" + DocPagesRotate404ResponseCodeNetwork DocPagesRotate404ResponseCode = "Network" + DocPagesRotate404ResponseCodeUnauthenticated DocPagesRotate404ResponseCode = "Unauthenticated" + DocPagesRotate404ResponseCodeForbidden DocPagesRotate404ResponseCode = "Forbidden" + DocPagesRotate404ResponseCodeNotFound DocPagesRotate404ResponseCode = "NotFound" + DocPagesRotate404ResponseCodeWireFormat DocPagesRotate404ResponseCode = "WireFormat" + DocPagesRotate404ResponseCodeRuntimeUnavailable DocPagesRotate404ResponseCode = "RuntimeUnavailable" + DocPagesRotate404ResponseCodeInvalidReference DocPagesRotate404ResponseCode = "InvalidReference" + DocPagesRotate404ResponseCodeWeakAnnotationSessionConflict DocPagesRotate404ResponseCode = "WeakAnnotationSessionConflict" + DocPagesRotate404ResponseCodeLayerVersionConflict DocPagesRotate404ResponseCode = "LayerVersionConflict" + DocPagesRotate404ResponseCodeNotImplemented DocPagesRotate404ResponseCode = "NotImplemented" + DocPagesRotate404ResponseCodeMalformedPdf DocPagesRotate404ResponseCode = "MalformedPdf" + DocPagesRotate404ResponseCodeSigningPending DocPagesRotate404ResponseCode = "SigningPending" + DocPagesRotate404ResponseCodeSigningExpired DocPagesRotate404ResponseCode = "SigningExpired" + DocPagesRotate404ResponseCodeSigningVersionMismatch DocPagesRotate404ResponseCode = "SigningVersionMismatch" + DocPagesRotate404ResponseCodeSignatureRefused DocPagesRotate404ResponseCode = "SignatureRefused" + DocPagesRotate404ResponseCodeProtectedDocument DocPagesRotate404ResponseCode = "ProtectedDocument" + DocPagesRotate404ResponseCodeStaleBase DocPagesRotate404ResponseCode = "StaleBase" +) + +func NewDocPagesRotate404ResponseCodeFromString(s string) (DocPagesRotate404ResponseCode, error) { + switch s { + case "Unknown": + return DocPagesRotate404ResponseCodeUnknown, nil + case "InvalidArg": + return DocPagesRotate404ResponseCodeInvalidArg, nil + case "DocNotOpen": + return DocPagesRotate404ResponseCodeDocNotOpen, nil + case "DocOpenFailed": + return DocPagesRotate404ResponseCodeDocOpenFailed, nil + case "DocPasswordRequired": + return DocPagesRotate404ResponseCodeDocPasswordRequired, nil + case "DocPasswordIncorrect": + return DocPagesRotate404ResponseCodeDocPasswordIncorrect, nil + case "SharePasswordRequired": + return DocPagesRotate404ResponseCodeSharePasswordRequired, nil + case "Aborted": + return DocPagesRotate404ResponseCodeAborted, nil + case "Network": + return DocPagesRotate404ResponseCodeNetwork, nil + case "Unauthenticated": + return DocPagesRotate404ResponseCodeUnauthenticated, nil + case "Forbidden": + return DocPagesRotate404ResponseCodeForbidden, nil + case "NotFound": + return DocPagesRotate404ResponseCodeNotFound, nil + case "WireFormat": + return DocPagesRotate404ResponseCodeWireFormat, nil + case "RuntimeUnavailable": + return DocPagesRotate404ResponseCodeRuntimeUnavailable, nil + case "InvalidReference": + return DocPagesRotate404ResponseCodeInvalidReference, nil + case "WeakAnnotationSessionConflict": + return DocPagesRotate404ResponseCodeWeakAnnotationSessionConflict, nil + case "LayerVersionConflict": + return DocPagesRotate404ResponseCodeLayerVersionConflict, nil + case "NotImplemented": + return DocPagesRotate404ResponseCodeNotImplemented, nil + case "MalformedPdf": + return DocPagesRotate404ResponseCodeMalformedPdf, nil + case "SigningPending": + return DocPagesRotate404ResponseCodeSigningPending, nil + case "SigningExpired": + return DocPagesRotate404ResponseCodeSigningExpired, nil + case "SigningVersionMismatch": + return DocPagesRotate404ResponseCodeSigningVersionMismatch, nil + case "SignatureRefused": + return DocPagesRotate404ResponseCodeSignatureRefused, nil + case "ProtectedDocument": + return DocPagesRotate404ResponseCodeProtectedDocument, nil + case "StaleBase": + return DocPagesRotate404ResponseCodeStaleBase, nil + } + var t DocPagesRotate404ResponseCode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesRotate404ResponseCode) Ptr() *DocPagesRotate404ResponseCode { + return &d +} + +type DocPagesRotate404ResponseName string + +const ( + DocPagesRotate404ResponseNameEngineError DocPagesRotate404ResponseName = "EngineError" +) + +func NewDocPagesRotate404ResponseNameFromString(s string) (DocPagesRotate404ResponseName, error) { + switch s { + case "EngineError": + return DocPagesRotate404ResponseNameEngineError, nil + } + var t DocPagesRotate404ResponseName + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesRotate404ResponseName) Ptr() *DocPagesRotate404ResponseName { + return &d +} + +type DocPagesRotateRequest = map[string]any + var ( - docPagesMove200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) - docPagesMove200ResponseMetaCacheDeltaPagesItemFieldCache = big.NewInt(1 << 1) + docPagesSetName200ResponseFieldMeta = big.NewInt(1 << 0) ) -type DocPagesMove200ResponseMetaCacheDeltaPagesItem struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Cache *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache `json:"cache" url:"cache"` +type DocPagesSetName200Response struct { + Meta *DocPagesSetName200ResponseMeta `json:"meta" url:"meta"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` - extraProperties map[string]interface{} - rawJSON json.RawMessage -} + ExtraProperties map[string]interface{} `json:"-" url:"-"` -func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItem) GetPageObjectNumber() int { - if d == nil { - return 0 - } - return d.PageObjectNumber + rawJSON json.RawMessage } -func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItem) GetCache() *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache { +func (d *DocPagesSetName200Response) GetMeta() *DocPagesSetName200ResponseMeta { if d == nil { return nil } - return d.Cache + return d.Meta } -func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItem) GetExtraProperties() map[string]interface{} { +func (d *DocPagesSetName200Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.extraProperties + return d.ExtraProperties } -func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItem) require(field *big.Int) { +func (d *DocPagesSetName200Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItem) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docPagesMove200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber) -} - -// SetCache sets the Cache field and marks it as non-optional; +// SetMeta sets the Meta field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItem) SetCache(cache *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache) { - d.Cache = cache - d.require(docPagesMove200ResponseMetaCacheDeltaPagesItemFieldCache) +func (d *DocPagesSetName200Response) SetMeta(meta *DocPagesSetName200ResponseMeta) { + d.Meta = meta + d.require(docPagesSetName200ResponseFieldMeta) } -func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesMove200ResponseMetaCacheDeltaPagesItem - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { +func (d *DocPagesSetName200Response) UnmarshalJSON(data []byte) error { + type embed DocPagesSetName200Response + var unmarshaler = struct { + embed + }{ + embed: embed(*d), + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *d = DocPagesMove200ResponseMetaCacheDeltaPagesItem(value) + *d = DocPagesSetName200Response(unmarshaler.embed) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err } - d.extraProperties = extraProperties + d.ExtraProperties = extraProperties d.rawJSON = json.RawMessage(data) return nil } -func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItem) MarshalJSON() ([]byte, error) { - type embed DocPagesMove200ResponseMetaCacheDeltaPagesItem +func (d *DocPagesSetName200Response) MarshalJSON() ([]byte, error) { + type embed DocPagesSetName200Response var marshaler = struct { embed }{ embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return internal.MarshalJSONWithExtraProperties(explicitMarshaler, d.ExtraProperties) } -func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItem) String() string { +func (d *DocPagesSetName200Response) String() string { if d == nil { return "" } @@ -141855,13 +161136,13 @@ func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItem) String() string { } var ( - docPagesMove200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion = big.NewInt(1 << 0) - docPagesMove200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion = big.NewInt(1 << 1) + docPagesSetName200ResponseMetaFieldAffectedPages = big.NewInt(1 << 0) + docPagesSetName200ResponseMetaFieldCacheDelta = big.NewInt(1 << 1) ) -type DocPagesMove200ResponseMetaCacheDeltaPagesItemCache struct { - ContentVersion int `json:"contentVersion" url:"contentVersion"` - AnnotationVersion int `json:"annotationVersion" url:"annotationVersion"` +type DocPagesSetName200ResponseMeta struct { + AffectedPages []*DocPagesSetName200ResponseMetaAffectedPagesItem `json:"affectedPages" url:"affectedPages"` + CacheDelta *DocPagesSetName200ResponseMetaCacheDelta `json:"cacheDelta,omitempty" url:"cacheDelta,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -141870,55 +161151,55 @@ type DocPagesMove200ResponseMetaCacheDeltaPagesItemCache struct { rawJSON json.RawMessage } -func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache) GetContentVersion() int { +func (d *DocPagesSetName200ResponseMeta) GetAffectedPages() []*DocPagesSetName200ResponseMetaAffectedPagesItem { if d == nil { - return 0 + return nil } - return d.ContentVersion + return d.AffectedPages } -func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache) GetAnnotationVersion() int { +func (d *DocPagesSetName200ResponseMeta) GetCacheDelta() *DocPagesSetName200ResponseMetaCacheDelta { if d == nil { - return 0 + return nil } - return d.AnnotationVersion + return d.CacheDelta } -func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache) GetExtraProperties() map[string]interface{} { +func (d *DocPagesSetName200ResponseMeta) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache) require(field *big.Int) { +func (d *DocPagesSetName200ResponseMeta) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetContentVersion sets the ContentVersion field and marks it as non-optional; +// SetAffectedPages sets the AffectedPages field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache) SetContentVersion(contentVersion int) { - d.ContentVersion = contentVersion - d.require(docPagesMove200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion) +func (d *DocPagesSetName200ResponseMeta) SetAffectedPages(affectedPages []*DocPagesSetName200ResponseMetaAffectedPagesItem) { + d.AffectedPages = affectedPages + d.require(docPagesSetName200ResponseMetaFieldAffectedPages) } -// SetAnnotationVersion sets the AnnotationVersion field and marks it as non-optional; +// SetCacheDelta sets the CacheDelta field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache) SetAnnotationVersion(annotationVersion int) { - d.AnnotationVersion = annotationVersion - d.require(docPagesMove200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion) +func (d *DocPagesSetName200ResponseMeta) SetCacheDelta(cacheDelta *DocPagesSetName200ResponseMetaCacheDelta) { + d.CacheDelta = cacheDelta + d.require(docPagesSetName200ResponseMetaFieldCacheDelta) } -func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesMove200ResponseMetaCacheDeltaPagesItemCache +func (d *DocPagesSetName200ResponseMeta) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesSetName200ResponseMeta var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesMove200ResponseMetaCacheDeltaPagesItemCache(value) + *d = DocPagesSetName200ResponseMeta(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -141928,8 +161209,8 @@ func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJSON(data return nil } -func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON() ([]byte, error) { - type embed DocPagesMove200ResponseMetaCacheDeltaPagesItemCache +func (d *DocPagesSetName200ResponseMeta) MarshalJSON() ([]byte, error) { + type embed DocPagesSetName200ResponseMeta var marshaler = struct { embed }{ @@ -141939,7 +161220,7 @@ func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON() ([]b return json.Marshal(explicitMarshaler) } -func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache) String() string { +func (d *DocPagesSetName200ResponseMeta) String() string { if d == nil { return "" } @@ -141955,17 +161236,15 @@ func (d *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache) String() string { } var ( - docPagesMove400ResponseFieldName = big.NewInt(1 << 0) - docPagesMove400ResponseFieldCode = big.NewInt(1 << 1) - docPagesMove400ResponseFieldMessage = big.NewInt(1 << 2) - docPagesMove400ResponseFieldDetails = big.NewInt(1 << 3) + docPagesSetName200ResponseMetaAffectedPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) + docPagesSetName200ResponseMetaAffectedPagesItemFieldRevision = big.NewInt(1 << 1) + docPagesSetName200ResponseMetaAffectedPagesItemFieldWeakAnnotationState = big.NewInt(1 << 2) ) -type DocPagesMove400Response struct { - Name DocPagesMove400ResponseName `json:"name" url:"name"` - Code DocPagesMove400ResponseCode `json:"code" url:"code"` - Message string `json:"message" url:"message"` - Details map[string]any `json:"details,omitempty" url:"details,omitempty"` +type DocPagesSetName200ResponseMetaAffectedPagesItem struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Revision *DocPagesSetName200ResponseMetaAffectedPagesItemRevision `json:"revision" url:"revision"` + WeakAnnotationState *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState `json:"weakAnnotationState" url:"weakAnnotationState"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -141974,83 +161253,69 @@ type DocPagesMove400Response struct { rawJSON json.RawMessage } -func (d *DocPagesMove400Response) GetName() DocPagesMove400ResponseName { - if d == nil { - return "" - } - return d.Name -} - -func (d *DocPagesMove400Response) GetCode() DocPagesMove400ResponseCode { +func (d *DocPagesSetName200ResponseMetaAffectedPagesItem) GetPageObjectNumber() int { if d == nil { - return "" + return 0 } - return d.Code + return d.PageObjectNumber } -func (d *DocPagesMove400Response) GetMessage() string { +func (d *DocPagesSetName200ResponseMetaAffectedPagesItem) GetRevision() *DocPagesSetName200ResponseMetaAffectedPagesItemRevision { if d == nil { - return "" + return nil } - return d.Message + return d.Revision } -func (d *DocPagesMove400Response) GetDetails() map[string]any { +func (d *DocPagesSetName200ResponseMetaAffectedPagesItem) GetWeakAnnotationState() *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState { if d == nil { return nil } - return d.Details + return d.WeakAnnotationState } -func (d *DocPagesMove400Response) GetExtraProperties() map[string]interface{} { +func (d *DocPagesSetName200ResponseMetaAffectedPagesItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesMove400Response) require(field *big.Int) { +func (d *DocPagesSetName200ResponseMetaAffectedPagesItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetName sets the Name field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesMove400Response) SetName(name DocPagesMove400ResponseName) { - d.Name = name - d.require(docPagesMove400ResponseFieldName) -} - -// SetCode sets the Code field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesMove400Response) SetCode(code DocPagesMove400ResponseCode) { - d.Code = code - d.require(docPagesMove400ResponseFieldCode) +func (d *DocPagesSetName200ResponseMetaAffectedPagesItem) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docPagesSetName200ResponseMetaAffectedPagesItemFieldPageObjectNumber) } -// SetMessage sets the Message field and marks it as non-optional; +// SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesMove400Response) SetMessage(message string) { - d.Message = message - d.require(docPagesMove400ResponseFieldMessage) +func (d *DocPagesSetName200ResponseMetaAffectedPagesItem) SetRevision(revision *DocPagesSetName200ResponseMetaAffectedPagesItemRevision) { + d.Revision = revision + d.require(docPagesSetName200ResponseMetaAffectedPagesItemFieldRevision) } -// SetDetails sets the Details field and marks it as non-optional; +// SetWeakAnnotationState sets the WeakAnnotationState field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesMove400Response) SetDetails(details map[string]any) { - d.Details = details - d.require(docPagesMove400ResponseFieldDetails) +func (d *DocPagesSetName200ResponseMetaAffectedPagesItem) SetWeakAnnotationState(weakAnnotationState *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState) { + d.WeakAnnotationState = weakAnnotationState + d.require(docPagesSetName200ResponseMetaAffectedPagesItemFieldWeakAnnotationState) } -func (d *DocPagesMove400Response) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesMove400Response +func (d *DocPagesSetName200ResponseMetaAffectedPagesItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesSetName200ResponseMetaAffectedPagesItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesMove400Response(value) + *d = DocPagesSetName200ResponseMetaAffectedPagesItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -142060,154 +161325,42 @@ func (d *DocPagesMove400Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocPagesMove400Response) MarshalJSON() ([]byte, error) { - type embed DocPagesMove400Response - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) -} - -func (d *DocPagesMove400Response) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) -} - -type DocPagesMove400ResponseCode string - -const ( - DocPagesMove400ResponseCodeUnknown DocPagesMove400ResponseCode = "Unknown" - DocPagesMove400ResponseCodeInvalidArg DocPagesMove400ResponseCode = "InvalidArg" - DocPagesMove400ResponseCodeDocNotOpen DocPagesMove400ResponseCode = "DocNotOpen" - DocPagesMove400ResponseCodeDocOpenFailed DocPagesMove400ResponseCode = "DocOpenFailed" - DocPagesMove400ResponseCodeDocPasswordRequired DocPagesMove400ResponseCode = "DocPasswordRequired" - DocPagesMove400ResponseCodeDocPasswordIncorrect DocPagesMove400ResponseCode = "DocPasswordIncorrect" - DocPagesMove400ResponseCodeSharePasswordRequired DocPagesMove400ResponseCode = "SharePasswordRequired" - DocPagesMove400ResponseCodeAborted DocPagesMove400ResponseCode = "Aborted" - DocPagesMove400ResponseCodeNetwork DocPagesMove400ResponseCode = "Network" - DocPagesMove400ResponseCodeUnauthenticated DocPagesMove400ResponseCode = "Unauthenticated" - DocPagesMove400ResponseCodeForbidden DocPagesMove400ResponseCode = "Forbidden" - DocPagesMove400ResponseCodeNotFound DocPagesMove400ResponseCode = "NotFound" - DocPagesMove400ResponseCodeWireFormat DocPagesMove400ResponseCode = "WireFormat" - DocPagesMove400ResponseCodeRuntimeUnavailable DocPagesMove400ResponseCode = "RuntimeUnavailable" - DocPagesMove400ResponseCodeInvalidReference DocPagesMove400ResponseCode = "InvalidReference" - DocPagesMove400ResponseCodeWeakAnnotationSessionConflict DocPagesMove400ResponseCode = "WeakAnnotationSessionConflict" - DocPagesMove400ResponseCodeLayerVersionConflict DocPagesMove400ResponseCode = "LayerVersionConflict" - DocPagesMove400ResponseCodeNotImplemented DocPagesMove400ResponseCode = "NotImplemented" - DocPagesMove400ResponseCodeMalformedPdf DocPagesMove400ResponseCode = "MalformedPdf" - DocPagesMove400ResponseCodeSigningPending DocPagesMove400ResponseCode = "SigningPending" - DocPagesMove400ResponseCodeSigningExpired DocPagesMove400ResponseCode = "SigningExpired" - DocPagesMove400ResponseCodeSigningVersionMismatch DocPagesMove400ResponseCode = "SigningVersionMismatch" - DocPagesMove400ResponseCodeSignatureRefused DocPagesMove400ResponseCode = "SignatureRefused" - DocPagesMove400ResponseCodeProtectedDocument DocPagesMove400ResponseCode = "ProtectedDocument" - DocPagesMove400ResponseCodeStaleBase DocPagesMove400ResponseCode = "StaleBase" -) - -func NewDocPagesMove400ResponseCodeFromString(s string) (DocPagesMove400ResponseCode, error) { - switch s { - case "Unknown": - return DocPagesMove400ResponseCodeUnknown, nil - case "InvalidArg": - return DocPagesMove400ResponseCodeInvalidArg, nil - case "DocNotOpen": - return DocPagesMove400ResponseCodeDocNotOpen, nil - case "DocOpenFailed": - return DocPagesMove400ResponseCodeDocOpenFailed, nil - case "DocPasswordRequired": - return DocPagesMove400ResponseCodeDocPasswordRequired, nil - case "DocPasswordIncorrect": - return DocPagesMove400ResponseCodeDocPasswordIncorrect, nil - case "SharePasswordRequired": - return DocPagesMove400ResponseCodeSharePasswordRequired, nil - case "Aborted": - return DocPagesMove400ResponseCodeAborted, nil - case "Network": - return DocPagesMove400ResponseCodeNetwork, nil - case "Unauthenticated": - return DocPagesMove400ResponseCodeUnauthenticated, nil - case "Forbidden": - return DocPagesMove400ResponseCodeForbidden, nil - case "NotFound": - return DocPagesMove400ResponseCodeNotFound, nil - case "WireFormat": - return DocPagesMove400ResponseCodeWireFormat, nil - case "RuntimeUnavailable": - return DocPagesMove400ResponseCodeRuntimeUnavailable, nil - case "InvalidReference": - return DocPagesMove400ResponseCodeInvalidReference, nil - case "WeakAnnotationSessionConflict": - return DocPagesMove400ResponseCodeWeakAnnotationSessionConflict, nil - case "LayerVersionConflict": - return DocPagesMove400ResponseCodeLayerVersionConflict, nil - case "NotImplemented": - return DocPagesMove400ResponseCodeNotImplemented, nil - case "MalformedPdf": - return DocPagesMove400ResponseCodeMalformedPdf, nil - case "SigningPending": - return DocPagesMove400ResponseCodeSigningPending, nil - case "SigningExpired": - return DocPagesMove400ResponseCodeSigningExpired, nil - case "SigningVersionMismatch": - return DocPagesMove400ResponseCodeSigningVersionMismatch, nil - case "SignatureRefused": - return DocPagesMove400ResponseCodeSignatureRefused, nil - case "ProtectedDocument": - return DocPagesMove400ResponseCodeProtectedDocument, nil - case "StaleBase": - return DocPagesMove400ResponseCodeStaleBase, nil - } - var t DocPagesMove400ResponseCode - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocPagesMove400ResponseCode) Ptr() *DocPagesMove400ResponseCode { - return &d -} - -type DocPagesMove400ResponseName string - -const ( - DocPagesMove400ResponseNameEngineError DocPagesMove400ResponseName = "EngineError" -) - -func NewDocPagesMove400ResponseNameFromString(s string) (DocPagesMove400ResponseName, error) { - switch s { - case "EngineError": - return DocPagesMove400ResponseNameEngineError, nil +func (d *DocPagesSetName200ResponseMetaAffectedPagesItem) MarshalJSON() ([]byte, error) { + type embed DocPagesSetName200ResponseMetaAffectedPagesItem + var marshaler = struct { + embed + }{ + embed: embed(*d), } - var t DocPagesMove400ResponseName - return "", fmt.Errorf("%s is not a valid %T", s, t) + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d DocPagesMove400ResponseName) Ptr() *DocPagesMove400ResponseName { - return &d +func (d *DocPagesSetName200ResponseMetaAffectedPagesItem) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) } var ( - docPagesMove404ResponseFieldName = big.NewInt(1 << 0) - docPagesMove404ResponseFieldCode = big.NewInt(1 << 1) - docPagesMove404ResponseFieldMessage = big.NewInt(1 << 2) - docPagesMove404ResponseFieldDetails = big.NewInt(1 << 3) + docPagesSetName200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID = big.NewInt(1 << 0) + docPagesSetName200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docPagesSetName200ResponseMetaAffectedPagesItemRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocPagesMove404Response struct { - Name DocPagesMove404ResponseName `json:"name" url:"name"` - Code DocPagesMove404ResponseCode `json:"code" url:"code"` - Message string `json:"message" url:"message"` - Details map[string]any `json:"details,omitempty" url:"details,omitempty"` +type DocPagesSetName200ResponseMetaAffectedPagesItemRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -142216,83 +161369,69 @@ type DocPagesMove404Response struct { rawJSON json.RawMessage } -func (d *DocPagesMove404Response) GetName() DocPagesMove404ResponseName { - if d == nil { - return "" - } - return d.Name -} - -func (d *DocPagesMove404Response) GetCode() DocPagesMove404ResponseCode { +func (d *DocPagesSetName200ResponseMetaAffectedPagesItemRevision) GetDocSessionID() string { if d == nil { return "" } - return d.Code + return d.DocSessionID } -func (d *DocPagesMove404Response) GetMessage() string { +func (d *DocPagesSetName200ResponseMetaAffectedPagesItemRevision) GetPageObjectNumber() int { if d == nil { - return "" + return 0 } - return d.Message + return d.PageObjectNumber } -func (d *DocPagesMove404Response) GetDetails() map[string]any { +func (d *DocPagesSetName200ResponseMetaAffectedPagesItemRevision) GetGeneration() int { if d == nil { - return nil + return 0 } - return d.Details + return d.Generation } -func (d *DocPagesMove404Response) GetExtraProperties() map[string]interface{} { +func (d *DocPagesSetName200ResponseMetaAffectedPagesItemRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesMove404Response) require(field *big.Int) { +func (d *DocPagesSetName200ResponseMetaAffectedPagesItemRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetName sets the Name field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesMove404Response) SetName(name DocPagesMove404ResponseName) { - d.Name = name - d.require(docPagesMove404ResponseFieldName) -} - -// SetCode sets the Code field and marks it as non-optional; +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesMove404Response) SetCode(code DocPagesMove404ResponseCode) { - d.Code = code - d.require(docPagesMove404ResponseFieldCode) +func (d *DocPagesSetName200ResponseMetaAffectedPagesItemRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docPagesSetName200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID) } -// SetMessage sets the Message field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesMove404Response) SetMessage(message string) { - d.Message = message - d.require(docPagesMove404ResponseFieldMessage) +func (d *DocPagesSetName200ResponseMetaAffectedPagesItemRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docPagesSetName200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber) } -// SetDetails sets the Details field and marks it as non-optional; +// SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesMove404Response) SetDetails(details map[string]any) { - d.Details = details - d.require(docPagesMove404ResponseFieldDetails) +func (d *DocPagesSetName200ResponseMetaAffectedPagesItemRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docPagesSetName200ResponseMetaAffectedPagesItemRevisionFieldGeneration) } -func (d *DocPagesMove404Response) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesMove404Response +func (d *DocPagesSetName200ResponseMetaAffectedPagesItemRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesSetName200ResponseMetaAffectedPagesItemRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesMove404Response(value) + *d = DocPagesSetName200ResponseMetaAffectedPagesItemRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -142302,8 +161441,8 @@ func (d *DocPagesMove404Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocPagesMove404Response) MarshalJSON() ([]byte, error) { - type embed DocPagesMove404Response +func (d *DocPagesSetName200ResponseMetaAffectedPagesItemRevision) MarshalJSON() ([]byte, error) { + type embed DocPagesSetName200ResponseMetaAffectedPagesItemRevision var marshaler = struct { embed }{ @@ -142313,7 +161452,7 @@ func (d *DocPagesMove404Response) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocPagesMove404Response) String() string { +func (d *DocPagesSetName200ResponseMetaAffectedPagesItemRevision) String() string { if d == nil { return "" } @@ -142328,193 +161467,267 @@ func (d *DocPagesMove404Response) String() string { return fmt.Sprintf("%#v", d) } -type DocPagesMove404ResponseCode string +type DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState struct { + Kind string + Unknown *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + Known *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown -const ( - DocPagesMove404ResponseCodeUnknown DocPagesMove404ResponseCode = "Unknown" - DocPagesMove404ResponseCodeInvalidArg DocPagesMove404ResponseCode = "InvalidArg" - DocPagesMove404ResponseCodeDocNotOpen DocPagesMove404ResponseCode = "DocNotOpen" - DocPagesMove404ResponseCodeDocOpenFailed DocPagesMove404ResponseCode = "DocOpenFailed" - DocPagesMove404ResponseCodeDocPasswordRequired DocPagesMove404ResponseCode = "DocPasswordRequired" - DocPagesMove404ResponseCodeDocPasswordIncorrect DocPagesMove404ResponseCode = "DocPasswordIncorrect" - DocPagesMove404ResponseCodeSharePasswordRequired DocPagesMove404ResponseCode = "SharePasswordRequired" - DocPagesMove404ResponseCodeAborted DocPagesMove404ResponseCode = "Aborted" - DocPagesMove404ResponseCodeNetwork DocPagesMove404ResponseCode = "Network" - DocPagesMove404ResponseCodeUnauthenticated DocPagesMove404ResponseCode = "Unauthenticated" - DocPagesMove404ResponseCodeForbidden DocPagesMove404ResponseCode = "Forbidden" - DocPagesMove404ResponseCodeNotFound DocPagesMove404ResponseCode = "NotFound" - DocPagesMove404ResponseCodeWireFormat DocPagesMove404ResponseCode = "WireFormat" - DocPagesMove404ResponseCodeRuntimeUnavailable DocPagesMove404ResponseCode = "RuntimeUnavailable" - DocPagesMove404ResponseCodeInvalidReference DocPagesMove404ResponseCode = "InvalidReference" - DocPagesMove404ResponseCodeWeakAnnotationSessionConflict DocPagesMove404ResponseCode = "WeakAnnotationSessionConflict" - DocPagesMove404ResponseCodeLayerVersionConflict DocPagesMove404ResponseCode = "LayerVersionConflict" - DocPagesMove404ResponseCodeNotImplemented DocPagesMove404ResponseCode = "NotImplemented" - DocPagesMove404ResponseCodeMalformedPdf DocPagesMove404ResponseCode = "MalformedPdf" - DocPagesMove404ResponseCodeSigningPending DocPagesMove404ResponseCode = "SigningPending" - DocPagesMove404ResponseCodeSigningExpired DocPagesMove404ResponseCode = "SigningExpired" - DocPagesMove404ResponseCodeSigningVersionMismatch DocPagesMove404ResponseCode = "SigningVersionMismatch" - DocPagesMove404ResponseCodeSignatureRefused DocPagesMove404ResponseCode = "SignatureRefused" - DocPagesMove404ResponseCodeProtectedDocument DocPagesMove404ResponseCode = "ProtectedDocument" - DocPagesMove404ResponseCodeStaleBase DocPagesMove404ResponseCode = "StaleBase" -) + rawJSON json.RawMessage +} -func NewDocPagesMove404ResponseCodeFromString(s string) (DocPagesMove404ResponseCode, error) { - switch s { - case "Unknown": - return DocPagesMove404ResponseCodeUnknown, nil - case "InvalidArg": - return DocPagesMove404ResponseCodeInvalidArg, nil - case "DocNotOpen": - return DocPagesMove404ResponseCodeDocNotOpen, nil - case "DocOpenFailed": - return DocPagesMove404ResponseCodeDocOpenFailed, nil - case "DocPasswordRequired": - return DocPagesMove404ResponseCodeDocPasswordRequired, nil - case "DocPasswordIncorrect": - return DocPagesMove404ResponseCodeDocPasswordIncorrect, nil - case "SharePasswordRequired": - return DocPagesMove404ResponseCodeSharePasswordRequired, nil - case "Aborted": - return DocPagesMove404ResponseCodeAborted, nil - case "Network": - return DocPagesMove404ResponseCodeNetwork, nil - case "Unauthenticated": - return DocPagesMove404ResponseCodeUnauthenticated, nil - case "Forbidden": - return DocPagesMove404ResponseCodeForbidden, nil - case "NotFound": - return DocPagesMove404ResponseCodeNotFound, nil - case "WireFormat": - return DocPagesMove404ResponseCodeWireFormat, nil - case "RuntimeUnavailable": - return DocPagesMove404ResponseCodeRuntimeUnavailable, nil - case "InvalidReference": - return DocPagesMove404ResponseCodeInvalidReference, nil - case "WeakAnnotationSessionConflict": - return DocPagesMove404ResponseCodeWeakAnnotationSessionConflict, nil - case "LayerVersionConflict": - return DocPagesMove404ResponseCodeLayerVersionConflict, nil - case "NotImplemented": - return DocPagesMove404ResponseCodeNotImplemented, nil - case "MalformedPdf": - return DocPagesMove404ResponseCodeMalformedPdf, nil - case "SigningPending": - return DocPagesMove404ResponseCodeSigningPending, nil - case "SigningExpired": - return DocPagesMove404ResponseCodeSigningExpired, nil - case "SigningVersionMismatch": - return DocPagesMove404ResponseCodeSigningVersionMismatch, nil - case "SignatureRefused": - return DocPagesMove404ResponseCodeSignatureRefused, nil - case "ProtectedDocument": - return DocPagesMove404ResponseCodeProtectedDocument, nil - case "StaleBase": - return DocPagesMove404ResponseCodeStaleBase, nil +func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKind() string { + if d == nil { + return "" } - var t DocPagesMove404ResponseCode - return "", fmt.Errorf("%s is not a valid %T", s, t) + return d.Kind } -func (d DocPagesMove404ResponseCode) Ptr() *DocPagesMove404ResponseCode { - return &d +func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState) GetUnknown() *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown { + if d == nil { + return nil + } + return d.Unknown } -type DocPagesMove404ResponseName string +func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKnown() *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown { + if d == nil { + return nil + } + return d.Known +} -const ( - DocPagesMove404ResponseNameEngineError DocPagesMove404ResponseName = "EngineError" -) +func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "unknown": + value := new(DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Unknown = value + case "known": + value := new(DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Known = value + } + d.rawJSON = json.RawMessage(data) + return nil +} -func NewDocPagesMove404ResponseNameFromString(s string) (DocPagesMove404ResponseName, error) { - switch s { - case "EngineError": - return DocPagesMove404ResponseNameEngineError, nil +func (d DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err } - var t DocPagesMove404ResponseName - return "", fmt.Errorf("%s is not a valid %T", s, t) + if d.Unknown != nil { + return internal.MarshalJSONWithExtraProperty(d.Unknown, "kind", "unknown") + } + if d.Known != nil { + return internal.MarshalJSONWithExtraProperty(d.Known, "kind", "known") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d DocPagesMove404ResponseName) Ptr() *DocPagesMove404ResponseName { - return &d +type DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor interface { + VisitUnknown(*DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) error + VisitKnown(*DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) error } -type DocPagesMoveRequest = map[string]any +func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState) Accept(visitor DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor) error { + if d.Unknown != nil { + return visitor.VisitUnknown(d.Unknown) + } + if d.Known != nil { + return visitor.VisitKnown(d.Known) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.Unknown != nil { + fields = append(fields, "unknown") + } + if d.Known != nil { + fields = append(fields, "known") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil +} var ( - docPagesRemoveName200ResponseFieldMeta = big.NewInt(1 << 0) + docPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations = big.NewInt(1 << 0) ) -type DocPagesRemoveName200Response struct { - Meta *DocPagesRemoveName200ResponseMeta `json:"meta" url:"meta"` +type DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown struct { + HasAnyWeakAnnotations bool `json:"hasAnyWeakAnnotations" url:"hasAnyWeakAnnotations"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` - ExtraProperties map[string]interface{} `json:"-" url:"-"` - - rawJSON json.RawMessage + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocPagesRemoveName200Response) GetMeta() *DocPagesRemoveName200ResponseMeta { +func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetHasAnyWeakAnnotations() bool { if d == nil { - return nil + return false } - return d.Meta + return d.HasAnyWeakAnnotations } -func (d *DocPagesRemoveName200Response) GetExtraProperties() map[string]interface{} { +func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.ExtraProperties + return d.extraProperties } -func (d *DocPagesRemoveName200Response) require(field *big.Int) { +func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetMeta sets the Meta field and marks it as non-optional; +// SetHasAnyWeakAnnotations sets the HasAnyWeakAnnotations field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRemoveName200Response) SetMeta(meta *DocPagesRemoveName200ResponseMeta) { - d.Meta = meta - d.require(docPagesRemoveName200ResponseFieldMeta) +func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) SetHasAnyWeakAnnotations(hasAnyWeakAnnotations bool) { + d.HasAnyWeakAnnotations = hasAnyWeakAnnotations + d.require(docPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations) } -func (d *DocPagesRemoveName200Response) UnmarshalJSON(data []byte) error { - type embed DocPagesRemoveName200Response - var unmarshaler = struct { +func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) MarshalJSON() ([]byte, error) { + type embed DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + var marshaler = struct { embed }{ embed: embed(*d), } - if err := json.Unmarshal(data, &unmarshaler); err != nil { + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) +} + +func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) String() string { + if d == nil { + return "" + } + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value + } + } + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown struct { + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage +} + +func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) GetExtraProperties() map[string]interface{} { + if d == nil { + return nil + } + return d.extraProperties +} + +func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) + } + d.explicitFields.Or(d.explicitFields, field) +} + +func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesRemoveName200Response(unmarshaler.embed) + *d = DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err } - d.ExtraProperties = extraProperties + d.extraProperties = extraProperties d.rawJSON = json.RawMessage(data) return nil } -func (d *DocPagesRemoveName200Response) MarshalJSON() ([]byte, error) { - type embed DocPagesRemoveName200Response +func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) MarshalJSON() ([]byte, error) { + type embed DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown var marshaler = struct { embed }{ embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return internal.MarshalJSONWithExtraProperties(explicitMarshaler, d.ExtraProperties) + return json.Marshal(explicitMarshaler) } -func (d *DocPagesRemoveName200Response) String() string { +func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) String() string { if d == nil { return "" } @@ -142530,13 +161743,21 @@ func (d *DocPagesRemoveName200Response) String() string { } var ( - docPagesRemoveName200ResponseMetaFieldAffectedPages = big.NewInt(1 << 0) - docPagesRemoveName200ResponseMetaFieldCacheDelta = big.NewInt(1 << 1) + docPagesSetName200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) + docPagesSetName200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) + docPagesSetName200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) + docPagesSetName200ResponseMetaCacheDeltaFieldLayerVersion = big.NewInt(1 << 3) + docPagesSetName200ResponseMetaCacheDeltaFieldWorking = big.NewInt(1 << 4) + docPagesSetName200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 5) ) -type DocPagesRemoveName200ResponseMeta struct { - AffectedPages []*DocPagesRemoveName200ResponseMetaAffectedPagesItem `json:"affectedPages" url:"affectedPages"` - CacheDelta *DocPagesRemoveName200ResponseMetaCacheDelta `json:"cacheDelta,omitempty" url:"cacheDelta,omitempty"` +type DocPagesSetName200ResponseMetaCacheDelta struct { + PreviousDocVersion int `json:"previousDocVersion" url:"previousDocVersion"` + DocVersion int `json:"docVersion" url:"docVersion"` + AnnotationsVersion *int `json:"annotationsVersion,omitempty" url:"annotationsVersion,omitempty"` + LayerVersion *int `json:"layerVersion,omitempty" url:"layerVersion,omitempty"` + Working *bool `json:"working,omitempty" url:"working,omitempty"` + Pages []*DocPagesSetName200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -142545,55 +161766,111 @@ type DocPagesRemoveName200ResponseMeta struct { rawJSON json.RawMessage } -func (d *DocPagesRemoveName200ResponseMeta) GetAffectedPages() []*DocPagesRemoveName200ResponseMetaAffectedPagesItem { +func (d *DocPagesSetName200ResponseMetaCacheDelta) GetPreviousDocVersion() int { + if d == nil { + return 0 + } + return d.PreviousDocVersion +} + +func (d *DocPagesSetName200ResponseMetaCacheDelta) GetDocVersion() int { + if d == nil { + return 0 + } + return d.DocVersion +} + +func (d *DocPagesSetName200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { if d == nil { return nil } - return d.AffectedPages + return d.AnnotationsVersion } -func (d *DocPagesRemoveName200ResponseMeta) GetCacheDelta() *DocPagesRemoveName200ResponseMetaCacheDelta { +func (d *DocPagesSetName200ResponseMetaCacheDelta) GetLayerVersion() *int { if d == nil { return nil } - return d.CacheDelta + return d.LayerVersion } -func (d *DocPagesRemoveName200ResponseMeta) GetExtraProperties() map[string]interface{} { +func (d *DocPagesSetName200ResponseMetaCacheDelta) GetWorking() *bool { + if d == nil { + return nil + } + return d.Working +} + +func (d *DocPagesSetName200ResponseMetaCacheDelta) GetPages() []*DocPagesSetName200ResponseMetaCacheDeltaPagesItem { + if d == nil { + return nil + } + return d.Pages +} + +func (d *DocPagesSetName200ResponseMetaCacheDelta) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesRemoveName200ResponseMeta) require(field *big.Int) { +func (d *DocPagesSetName200ResponseMetaCacheDelta) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetAffectedPages sets the AffectedPages field and marks it as non-optional; +// SetPreviousDocVersion sets the PreviousDocVersion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetName200ResponseMetaCacheDelta) SetPreviousDocVersion(previousDocVersion int) { + d.PreviousDocVersion = previousDocVersion + d.require(docPagesSetName200ResponseMetaCacheDeltaFieldPreviousDocVersion) +} + +// SetDocVersion sets the DocVersion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetName200ResponseMetaCacheDelta) SetDocVersion(docVersion int) { + d.DocVersion = docVersion + d.require(docPagesSetName200ResponseMetaCacheDeltaFieldDocVersion) +} + +// SetAnnotationsVersion sets the AnnotationsVersion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetName200ResponseMetaCacheDelta) SetAnnotationsVersion(annotationsVersion *int) { + d.AnnotationsVersion = annotationsVersion + d.require(docPagesSetName200ResponseMetaCacheDeltaFieldAnnotationsVersion) +} + +// SetLayerVersion sets the LayerVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRemoveName200ResponseMeta) SetAffectedPages(affectedPages []*DocPagesRemoveName200ResponseMetaAffectedPagesItem) { - d.AffectedPages = affectedPages - d.require(docPagesRemoveName200ResponseMetaFieldAffectedPages) +func (d *DocPagesSetName200ResponseMetaCacheDelta) SetLayerVersion(layerVersion *int) { + d.LayerVersion = layerVersion + d.require(docPagesSetName200ResponseMetaCacheDeltaFieldLayerVersion) } -// SetCacheDelta sets the CacheDelta field and marks it as non-optional; +// SetWorking sets the Working field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRemoveName200ResponseMeta) SetCacheDelta(cacheDelta *DocPagesRemoveName200ResponseMetaCacheDelta) { - d.CacheDelta = cacheDelta - d.require(docPagesRemoveName200ResponseMetaFieldCacheDelta) +func (d *DocPagesSetName200ResponseMetaCacheDelta) SetWorking(working *bool) { + d.Working = working + d.require(docPagesSetName200ResponseMetaCacheDeltaFieldWorking) } -func (d *DocPagesRemoveName200ResponseMeta) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesRemoveName200ResponseMeta +// SetPages sets the Pages field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetName200ResponseMetaCacheDelta) SetPages(pages []*DocPagesSetName200ResponseMetaCacheDeltaPagesItem) { + d.Pages = pages + d.require(docPagesSetName200ResponseMetaCacheDeltaFieldPages) +} + +func (d *DocPagesSetName200ResponseMetaCacheDelta) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesSetName200ResponseMetaCacheDelta var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesRemoveName200ResponseMeta(value) + *d = DocPagesSetName200ResponseMetaCacheDelta(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -142603,8 +161880,8 @@ func (d *DocPagesRemoveName200ResponseMeta) UnmarshalJSON(data []byte) error { return nil } -func (d *DocPagesRemoveName200ResponseMeta) MarshalJSON() ([]byte, error) { - type embed DocPagesRemoveName200ResponseMeta +func (d *DocPagesSetName200ResponseMetaCacheDelta) MarshalJSON() ([]byte, error) { + type embed DocPagesSetName200ResponseMetaCacheDelta var marshaler = struct { embed }{ @@ -142614,7 +161891,7 @@ func (d *DocPagesRemoveName200ResponseMeta) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocPagesRemoveName200ResponseMeta) String() string { +func (d *DocPagesSetName200ResponseMetaCacheDelta) String() string { if d == nil { return "" } @@ -142630,15 +161907,13 @@ func (d *DocPagesRemoveName200ResponseMeta) String() string { } var ( - docPagesRemoveName200ResponseMetaAffectedPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) - docPagesRemoveName200ResponseMetaAffectedPagesItemFieldRevision = big.NewInt(1 << 1) - docPagesRemoveName200ResponseMetaAffectedPagesItemFieldWeakAnnotationState = big.NewInt(1 << 2) + docPagesSetName200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) + docPagesSetName200ResponseMetaCacheDeltaPagesItemFieldCache = big.NewInt(1 << 1) ) -type DocPagesRemoveName200ResponseMetaAffectedPagesItem struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Revision *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision `json:"revision" url:"revision"` - WeakAnnotationState *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState `json:"weakAnnotationState" url:"weakAnnotationState"` +type DocPagesSetName200ResponseMetaCacheDeltaPagesItem struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Cache *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache `json:"cache" url:"cache"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -142647,35 +161922,28 @@ type DocPagesRemoveName200ResponseMetaAffectedPagesItem struct { rawJSON json.RawMessage } -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItem) GetPageObjectNumber() int { +func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItem) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItem) GetRevision() *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision { - if d == nil { - return nil - } - return d.Revision -} - -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItem) GetWeakAnnotationState() *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState { +func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItem) GetCache() *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache { if d == nil { return nil } - return d.WeakAnnotationState + return d.Cache } -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItem) GetExtraProperties() map[string]interface{} { +func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItem) require(field *big.Int) { +func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -142684,32 +161952,25 @@ func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItem) require(field *big. // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItem) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItem) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docPagesRemoveName200ResponseMetaAffectedPagesItemFieldPageObjectNumber) -} - -// SetRevision sets the Revision field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItem) SetRevision(revision *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision) { - d.Revision = revision - d.require(docPagesRemoveName200ResponseMetaAffectedPagesItemFieldRevision) + d.require(docPagesSetName200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber) } -// SetWeakAnnotationState sets the WeakAnnotationState field and marks it as non-optional; +// SetCache sets the Cache field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItem) SetWeakAnnotationState(weakAnnotationState *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState) { - d.WeakAnnotationState = weakAnnotationState - d.require(docPagesRemoveName200ResponseMetaAffectedPagesItemFieldWeakAnnotationState) +func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItem) SetCache(cache *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache) { + d.Cache = cache + d.require(docPagesSetName200ResponseMetaCacheDeltaPagesItemFieldCache) } -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesRemoveName200ResponseMetaAffectedPagesItem +func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesSetName200ResponseMetaCacheDeltaPagesItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesRemoveName200ResponseMetaAffectedPagesItem(value) + *d = DocPagesSetName200ResponseMetaCacheDeltaPagesItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -142719,8 +161980,8 @@ func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItem) UnmarshalJSON(data return nil } -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItem) MarshalJSON() ([]byte, error) { - type embed DocPagesRemoveName200ResponseMetaAffectedPagesItem +func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItem) MarshalJSON() ([]byte, error) { + type embed DocPagesSetName200ResponseMetaCacheDeltaPagesItem var marshaler = struct { embed }{ @@ -142730,7 +161991,7 @@ func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItem) MarshalJSON() ([]by return json.Marshal(explicitMarshaler) } -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItem) String() string { +func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItem) String() string { if d == nil { return "" } @@ -142746,15 +162007,13 @@ func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItem) String() string { } var ( - docPagesRemoveName200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID = big.NewInt(1 << 0) - docPagesRemoveName200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docPagesRemoveName200ResponseMetaAffectedPagesItemRevisionFieldGeneration = big.NewInt(1 << 2) + docPagesSetName200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion = big.NewInt(1 << 0) + docPagesSetName200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion = big.NewInt(1 << 1) ) -type DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache struct { + ContentVersion int `json:"contentVersion" url:"contentVersion"` + AnnotationVersion int `json:"annotationVersion" url:"annotationVersion"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -142763,69 +162022,55 @@ type DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision struct { rawJSON json.RawMessage } -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision) GetDocSessionID() string { - if d == nil { - return "" - } - return d.DocSessionID -} - -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision) GetPageObjectNumber() int { +func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache) GetContentVersion() int { if d == nil { return 0 } - return d.PageObjectNumber + return d.ContentVersion } -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision) GetGeneration() int { +func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache) GetAnnotationVersion() int { if d == nil { return 0 } - return d.Generation + return d.AnnotationVersion } -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision) GetExtraProperties() map[string]interface{} { +func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision) require(field *big.Int) { +func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docPagesRemoveName200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetContentVersion sets the ContentVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docPagesRemoveName200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber) +func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache) SetContentVersion(contentVersion int) { + d.ContentVersion = contentVersion + d.require(docPagesSetName200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetAnnotationVersion sets the AnnotationVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docPagesRemoveName200ResponseMetaAffectedPagesItemRevisionFieldGeneration) +func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache) SetAnnotationVersion(annotationVersion int) { + d.AnnotationVersion = annotationVersion + d.require(docPagesSetName200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion) } -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision +func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision(value) + *d = DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -142835,8 +162080,8 @@ func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision) UnmarshalJS return nil } -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision) MarshalJSON() ([]byte, error) { - type embed DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision +func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON() ([]byte, error) { + type embed DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache var marshaler = struct { embed }{ @@ -142846,7 +162091,7 @@ func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision) MarshalJSON return json.Marshal(explicitMarshaler) } -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision) String() string { +func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache) String() string { if d == nil { return "" } @@ -142861,181 +162106,103 @@ func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision) String() st return fmt.Sprintf("%#v", d) } -type DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState struct { - Kind string - Unknown *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - Known *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown +var ( + docPagesSetName400ResponseFieldName = big.NewInt(1 << 0) + docPagesSetName400ResponseFieldCode = big.NewInt(1 << 1) + docPagesSetName400ResponseFieldMessage = big.NewInt(1 << 2) + docPagesSetName400ResponseFieldDetails = big.NewInt(1 << 3) +) - rawJSON json.RawMessage -} +type DocPagesSetName400Response struct { + Name DocPagesSetName400ResponseName `json:"name" url:"name"` + Code DocPagesSetName400ResponseCode `json:"code" url:"code"` + Message string `json:"message" url:"message"` + Details map[string]any `json:"details,omitempty" url:"details,omitempty"` -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKind() string { - if d == nil { - return "" - } - return d.Kind -} + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState) GetUnknown() *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown { - if d == nil { - return nil - } - return d.Unknown + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKnown() *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown { +func (d *DocPagesSetName400Response) GetName() DocPagesSetName400ResponseName { if d == nil { - return nil - } - return d.Known -} - -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "unknown": - value := new(DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Unknown = value - case "known": - value := new(DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Known = value - } - d.rawJSON = json.RawMessage(data) - return nil -} - -func (d DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.Unknown != nil { - return internal.MarshalJSONWithExtraProperty(d.Unknown, "kind", "unknown") - } - if d.Known != nil { - return internal.MarshalJSONWithExtraProperty(d.Known, "kind", "known") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil + return "" } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) -} - -type DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor interface { - VisitUnknown(*DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) error - VisitKnown(*DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) error + return d.Name } -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState) Accept(visitor DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor) error { - if d.Unknown != nil { - return visitor.VisitUnknown(d.Unknown) - } - if d.Known != nil { - return visitor.VisitKnown(d.Known) +func (d *DocPagesSetName400Response) GetCode() DocPagesSetName400ResponseCode { + if d == nil { + return "" } - return fmt.Errorf("type %T does not define a non-empty union type", d) + return d.Code } -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState) validate() error { +func (d *DocPagesSetName400Response) GetMessage() string { if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.Unknown != nil { - fields = append(fields, "unknown") - } - if d.Known != nil { - fields = append(fields, "known") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } + return "" } - return nil -} - -var ( - docPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations = big.NewInt(1 << 0) -) - -type DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown struct { - HasAnyWeakAnnotations bool `json:"hasAnyWeakAnnotations" url:"hasAnyWeakAnnotations"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage + return d.Message } -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetHasAnyWeakAnnotations() bool { +func (d *DocPagesSetName400Response) GetDetails() map[string]any { if d == nil { - return false + return nil } - return d.HasAnyWeakAnnotations + return d.Details } -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetExtraProperties() map[string]interface{} { +func (d *DocPagesSetName400Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) require(field *big.Int) { +func (d *DocPagesSetName400Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetHasAnyWeakAnnotations sets the HasAnyWeakAnnotations field and marks it as non-optional; +// SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) SetHasAnyWeakAnnotations(hasAnyWeakAnnotations bool) { - d.HasAnyWeakAnnotations = hasAnyWeakAnnotations - d.require(docPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations) +func (d *DocPagesSetName400Response) SetName(name DocPagesSetName400ResponseName) { + d.Name = name + d.require(docPagesSetName400ResponseFieldName) } -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown +// SetCode sets the Code field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetName400Response) SetCode(code DocPagesSetName400ResponseCode) { + d.Code = code + d.require(docPagesSetName400ResponseFieldCode) +} + +// SetMessage sets the Message field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetName400Response) SetMessage(message string) { + d.Message = message + d.require(docPagesSetName400ResponseFieldMessage) +} + +// SetDetails sets the Details field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetName400Response) SetDetails(details map[string]any) { + d.Details = details + d.require(docPagesSetName400ResponseFieldDetails) +} + +func (d *DocPagesSetName400Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesSetName400Response var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(value) + *d = DocPagesSetName400Response(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -143045,8 +162212,8 @@ func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKn return nil } -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) MarshalJSON() ([]byte, error) { - type embed DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown +func (d *DocPagesSetName400Response) MarshalJSON() ([]byte, error) { + type embed DocPagesSetName400Response var marshaler = struct { embed }{ @@ -143056,7 +162223,7 @@ func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKn return json.Marshal(explicitMarshaler) } -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) String() string { +func (d *DocPagesSetName400Response) String() string { if d == nil { return "" } @@ -143071,87 +162238,128 @@ func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKn return fmt.Sprintf("%#v", d) } -type DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown struct { - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +type DocPagesSetName400ResponseCode string - extraProperties map[string]interface{} - rawJSON json.RawMessage -} +const ( + DocPagesSetName400ResponseCodeUnknown DocPagesSetName400ResponseCode = "Unknown" + DocPagesSetName400ResponseCodeInvalidArg DocPagesSetName400ResponseCode = "InvalidArg" + DocPagesSetName400ResponseCodeDocNotOpen DocPagesSetName400ResponseCode = "DocNotOpen" + DocPagesSetName400ResponseCodeDocOpenFailed DocPagesSetName400ResponseCode = "DocOpenFailed" + DocPagesSetName400ResponseCodeDocPasswordRequired DocPagesSetName400ResponseCode = "DocPasswordRequired" + DocPagesSetName400ResponseCodeDocPasswordIncorrect DocPagesSetName400ResponseCode = "DocPasswordIncorrect" + DocPagesSetName400ResponseCodeSharePasswordRequired DocPagesSetName400ResponseCode = "SharePasswordRequired" + DocPagesSetName400ResponseCodeAborted DocPagesSetName400ResponseCode = "Aborted" + DocPagesSetName400ResponseCodeNetwork DocPagesSetName400ResponseCode = "Network" + DocPagesSetName400ResponseCodeUnauthenticated DocPagesSetName400ResponseCode = "Unauthenticated" + DocPagesSetName400ResponseCodeForbidden DocPagesSetName400ResponseCode = "Forbidden" + DocPagesSetName400ResponseCodeNotFound DocPagesSetName400ResponseCode = "NotFound" + DocPagesSetName400ResponseCodeWireFormat DocPagesSetName400ResponseCode = "WireFormat" + DocPagesSetName400ResponseCodeRuntimeUnavailable DocPagesSetName400ResponseCode = "RuntimeUnavailable" + DocPagesSetName400ResponseCodeInvalidReference DocPagesSetName400ResponseCode = "InvalidReference" + DocPagesSetName400ResponseCodeWeakAnnotationSessionConflict DocPagesSetName400ResponseCode = "WeakAnnotationSessionConflict" + DocPagesSetName400ResponseCodeLayerVersionConflict DocPagesSetName400ResponseCode = "LayerVersionConflict" + DocPagesSetName400ResponseCodeNotImplemented DocPagesSetName400ResponseCode = "NotImplemented" + DocPagesSetName400ResponseCodeMalformedPdf DocPagesSetName400ResponseCode = "MalformedPdf" + DocPagesSetName400ResponseCodeSigningPending DocPagesSetName400ResponseCode = "SigningPending" + DocPagesSetName400ResponseCodeSigningExpired DocPagesSetName400ResponseCode = "SigningExpired" + DocPagesSetName400ResponseCodeSigningVersionMismatch DocPagesSetName400ResponseCode = "SigningVersionMismatch" + DocPagesSetName400ResponseCodeSignatureRefused DocPagesSetName400ResponseCode = "SignatureRefused" + DocPagesSetName400ResponseCodeProtectedDocument DocPagesSetName400ResponseCode = "ProtectedDocument" + DocPagesSetName400ResponseCodeStaleBase DocPagesSetName400ResponseCode = "StaleBase" +) -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil +func NewDocPagesSetName400ResponseCodeFromString(s string) (DocPagesSetName400ResponseCode, error) { + switch s { + case "Unknown": + return DocPagesSetName400ResponseCodeUnknown, nil + case "InvalidArg": + return DocPagesSetName400ResponseCodeInvalidArg, nil + case "DocNotOpen": + return DocPagesSetName400ResponseCodeDocNotOpen, nil + case "DocOpenFailed": + return DocPagesSetName400ResponseCodeDocOpenFailed, nil + case "DocPasswordRequired": + return DocPagesSetName400ResponseCodeDocPasswordRequired, nil + case "DocPasswordIncorrect": + return DocPagesSetName400ResponseCodeDocPasswordIncorrect, nil + case "SharePasswordRequired": + return DocPagesSetName400ResponseCodeSharePasswordRequired, nil + case "Aborted": + return DocPagesSetName400ResponseCodeAborted, nil + case "Network": + return DocPagesSetName400ResponseCodeNetwork, nil + case "Unauthenticated": + return DocPagesSetName400ResponseCodeUnauthenticated, nil + case "Forbidden": + return DocPagesSetName400ResponseCodeForbidden, nil + case "NotFound": + return DocPagesSetName400ResponseCodeNotFound, nil + case "WireFormat": + return DocPagesSetName400ResponseCodeWireFormat, nil + case "RuntimeUnavailable": + return DocPagesSetName400ResponseCodeRuntimeUnavailable, nil + case "InvalidReference": + return DocPagesSetName400ResponseCodeInvalidReference, nil + case "WeakAnnotationSessionConflict": + return DocPagesSetName400ResponseCodeWeakAnnotationSessionConflict, nil + case "LayerVersionConflict": + return DocPagesSetName400ResponseCodeLayerVersionConflict, nil + case "NotImplemented": + return DocPagesSetName400ResponseCodeNotImplemented, nil + case "MalformedPdf": + return DocPagesSetName400ResponseCodeMalformedPdf, nil + case "SigningPending": + return DocPagesSetName400ResponseCodeSigningPending, nil + case "SigningExpired": + return DocPagesSetName400ResponseCodeSigningExpired, nil + case "SigningVersionMismatch": + return DocPagesSetName400ResponseCodeSigningVersionMismatch, nil + case "SignatureRefused": + return DocPagesSetName400ResponseCodeSignatureRefused, nil + case "ProtectedDocument": + return DocPagesSetName400ResponseCodeProtectedDocument, nil + case "StaleBase": + return DocPagesSetName400ResponseCodeStaleBase, nil } - return d.extraProperties + var t DocPagesSetName400ResponseCode + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) +func (d DocPagesSetName400ResponseCode) Ptr() *DocPagesSetName400ResponseCode { + return &d } -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil -} +type DocPagesSetName400ResponseName string -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) MarshalJSON() ([]byte, error) { - type embed DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - var marshaler = struct { - embed - }{ - embed: embed(*d), +const ( + DocPagesSetName400ResponseNameEngineError DocPagesSetName400ResponseName = "EngineError" +) + +func NewDocPagesSetName400ResponseNameFromString(s string) (DocPagesSetName400ResponseName, error) { + switch s { + case "EngineError": + return DocPagesSetName400ResponseNameEngineError, nil } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + var t DocPagesSetName400ResponseName + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) +func (d DocPagesSetName400ResponseName) Ptr() *DocPagesSetName400ResponseName { + return &d } var ( - docPagesRemoveName200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) - docPagesRemoveName200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) - docPagesRemoveName200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) - docPagesRemoveName200ResponseMetaCacheDeltaFieldLayerVersion = big.NewInt(1 << 3) - docPagesRemoveName200ResponseMetaCacheDeltaFieldWorking = big.NewInt(1 << 4) - docPagesRemoveName200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 5) + docPagesSetName404ResponseFieldName = big.NewInt(1 << 0) + docPagesSetName404ResponseFieldCode = big.NewInt(1 << 1) + docPagesSetName404ResponseFieldMessage = big.NewInt(1 << 2) + docPagesSetName404ResponseFieldDetails = big.NewInt(1 << 3) ) -type DocPagesRemoveName200ResponseMetaCacheDelta struct { - PreviousDocVersion int `json:"previousDocVersion" url:"previousDocVersion"` - DocVersion int `json:"docVersion" url:"docVersion"` - AnnotationsVersion *int `json:"annotationsVersion,omitempty" url:"annotationsVersion,omitempty"` - LayerVersion *int `json:"layerVersion,omitempty" url:"layerVersion,omitempty"` - Working *bool `json:"working,omitempty" url:"working,omitempty"` - Pages []*DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` +type DocPagesSetName404Response struct { + Name DocPagesSetName404ResponseName `json:"name" url:"name"` + Code DocPagesSetName404ResponseCode `json:"code" url:"code"` + Message string `json:"message" url:"message"` + Details map[string]any `json:"details,omitempty" url:"details,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -143160,111 +162368,83 @@ type DocPagesRemoveName200ResponseMetaCacheDelta struct { rawJSON json.RawMessage } -func (d *DocPagesRemoveName200ResponseMetaCacheDelta) GetPreviousDocVersion() int { - if d == nil { - return 0 - } - return d.PreviousDocVersion -} - -func (d *DocPagesRemoveName200ResponseMetaCacheDelta) GetDocVersion() int { - if d == nil { - return 0 - } - return d.DocVersion -} - -func (d *DocPagesRemoveName200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { +func (d *DocPagesSetName404Response) GetName() DocPagesSetName404ResponseName { if d == nil { - return nil + return "" } - return d.AnnotationsVersion + return d.Name } -func (d *DocPagesRemoveName200ResponseMetaCacheDelta) GetLayerVersion() *int { +func (d *DocPagesSetName404Response) GetCode() DocPagesSetName404ResponseCode { if d == nil { - return nil + return "" } - return d.LayerVersion + return d.Code } -func (d *DocPagesRemoveName200ResponseMetaCacheDelta) GetWorking() *bool { +func (d *DocPagesSetName404Response) GetMessage() string { if d == nil { - return nil + return "" } - return d.Working + return d.Message } -func (d *DocPagesRemoveName200ResponseMetaCacheDelta) GetPages() []*DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem { +func (d *DocPagesSetName404Response) GetDetails() map[string]any { if d == nil { return nil } - return d.Pages + return d.Details } -func (d *DocPagesRemoveName200ResponseMetaCacheDelta) GetExtraProperties() map[string]interface{} { +func (d *DocPagesSetName404Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesRemoveName200ResponseMetaCacheDelta) require(field *big.Int) { +func (d *DocPagesSetName404Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPreviousDocVersion sets the PreviousDocVersion field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRemoveName200ResponseMetaCacheDelta) SetPreviousDocVersion(previousDocVersion int) { - d.PreviousDocVersion = previousDocVersion - d.require(docPagesRemoveName200ResponseMetaCacheDeltaFieldPreviousDocVersion) -} - -// SetDocVersion sets the DocVersion field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRemoveName200ResponseMetaCacheDelta) SetDocVersion(docVersion int) { - d.DocVersion = docVersion - d.require(docPagesRemoveName200ResponseMetaCacheDeltaFieldDocVersion) -} - -// SetAnnotationsVersion sets the AnnotationsVersion field and marks it as non-optional; +// SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRemoveName200ResponseMetaCacheDelta) SetAnnotationsVersion(annotationsVersion *int) { - d.AnnotationsVersion = annotationsVersion - d.require(docPagesRemoveName200ResponseMetaCacheDeltaFieldAnnotationsVersion) +func (d *DocPagesSetName404Response) SetName(name DocPagesSetName404ResponseName) { + d.Name = name + d.require(docPagesSetName404ResponseFieldName) } -// SetLayerVersion sets the LayerVersion field and marks it as non-optional; +// SetCode sets the Code field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRemoveName200ResponseMetaCacheDelta) SetLayerVersion(layerVersion *int) { - d.LayerVersion = layerVersion - d.require(docPagesRemoveName200ResponseMetaCacheDeltaFieldLayerVersion) +func (d *DocPagesSetName404Response) SetCode(code DocPagesSetName404ResponseCode) { + d.Code = code + d.require(docPagesSetName404ResponseFieldCode) } -// SetWorking sets the Working field and marks it as non-optional; +// SetMessage sets the Message field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRemoveName200ResponseMetaCacheDelta) SetWorking(working *bool) { - d.Working = working - d.require(docPagesRemoveName200ResponseMetaCacheDeltaFieldWorking) +func (d *DocPagesSetName404Response) SetMessage(message string) { + d.Message = message + d.require(docPagesSetName404ResponseFieldMessage) } -// SetPages sets the Pages field and marks it as non-optional; +// SetDetails sets the Details field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRemoveName200ResponseMetaCacheDelta) SetPages(pages []*DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem) { - d.Pages = pages - d.require(docPagesRemoveName200ResponseMetaCacheDeltaFieldPages) +func (d *DocPagesSetName404Response) SetDetails(details map[string]any) { + d.Details = details + d.require(docPagesSetName404ResponseFieldDetails) } -func (d *DocPagesRemoveName200ResponseMetaCacheDelta) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesRemoveName200ResponseMetaCacheDelta +func (d *DocPagesSetName404Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesSetName404Response var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesRemoveName200ResponseMetaCacheDelta(value) + *d = DocPagesSetName404Response(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -143274,8 +162454,8 @@ func (d *DocPagesRemoveName200ResponseMetaCacheDelta) UnmarshalJSON(data []byte) return nil } -func (d *DocPagesRemoveName200ResponseMetaCacheDelta) MarshalJSON() ([]byte, error) { - type embed DocPagesRemoveName200ResponseMetaCacheDelta +func (d *DocPagesSetName404Response) MarshalJSON() ([]byte, error) { + type embed DocPagesSetName404Response var marshaler = struct { embed }{ @@ -143285,7 +162465,7 @@ func (d *DocPagesRemoveName200ResponseMetaCacheDelta) MarshalJSON() ([]byte, err return json.Marshal(explicitMarshaler) } -func (d *DocPagesRemoveName200ResponseMetaCacheDelta) String() string { +func (d *DocPagesSetName404Response) String() string { if d == nil { return "" } @@ -143300,14 +162480,126 @@ func (d *DocPagesRemoveName200ResponseMetaCacheDelta) String() string { return fmt.Sprintf("%#v", d) } +type DocPagesSetName404ResponseCode string + +const ( + DocPagesSetName404ResponseCodeUnknown DocPagesSetName404ResponseCode = "Unknown" + DocPagesSetName404ResponseCodeInvalidArg DocPagesSetName404ResponseCode = "InvalidArg" + DocPagesSetName404ResponseCodeDocNotOpen DocPagesSetName404ResponseCode = "DocNotOpen" + DocPagesSetName404ResponseCodeDocOpenFailed DocPagesSetName404ResponseCode = "DocOpenFailed" + DocPagesSetName404ResponseCodeDocPasswordRequired DocPagesSetName404ResponseCode = "DocPasswordRequired" + DocPagesSetName404ResponseCodeDocPasswordIncorrect DocPagesSetName404ResponseCode = "DocPasswordIncorrect" + DocPagesSetName404ResponseCodeSharePasswordRequired DocPagesSetName404ResponseCode = "SharePasswordRequired" + DocPagesSetName404ResponseCodeAborted DocPagesSetName404ResponseCode = "Aborted" + DocPagesSetName404ResponseCodeNetwork DocPagesSetName404ResponseCode = "Network" + DocPagesSetName404ResponseCodeUnauthenticated DocPagesSetName404ResponseCode = "Unauthenticated" + DocPagesSetName404ResponseCodeForbidden DocPagesSetName404ResponseCode = "Forbidden" + DocPagesSetName404ResponseCodeNotFound DocPagesSetName404ResponseCode = "NotFound" + DocPagesSetName404ResponseCodeWireFormat DocPagesSetName404ResponseCode = "WireFormat" + DocPagesSetName404ResponseCodeRuntimeUnavailable DocPagesSetName404ResponseCode = "RuntimeUnavailable" + DocPagesSetName404ResponseCodeInvalidReference DocPagesSetName404ResponseCode = "InvalidReference" + DocPagesSetName404ResponseCodeWeakAnnotationSessionConflict DocPagesSetName404ResponseCode = "WeakAnnotationSessionConflict" + DocPagesSetName404ResponseCodeLayerVersionConflict DocPagesSetName404ResponseCode = "LayerVersionConflict" + DocPagesSetName404ResponseCodeNotImplemented DocPagesSetName404ResponseCode = "NotImplemented" + DocPagesSetName404ResponseCodeMalformedPdf DocPagesSetName404ResponseCode = "MalformedPdf" + DocPagesSetName404ResponseCodeSigningPending DocPagesSetName404ResponseCode = "SigningPending" + DocPagesSetName404ResponseCodeSigningExpired DocPagesSetName404ResponseCode = "SigningExpired" + DocPagesSetName404ResponseCodeSigningVersionMismatch DocPagesSetName404ResponseCode = "SigningVersionMismatch" + DocPagesSetName404ResponseCodeSignatureRefused DocPagesSetName404ResponseCode = "SignatureRefused" + DocPagesSetName404ResponseCodeProtectedDocument DocPagesSetName404ResponseCode = "ProtectedDocument" + DocPagesSetName404ResponseCodeStaleBase DocPagesSetName404ResponseCode = "StaleBase" +) + +func NewDocPagesSetName404ResponseCodeFromString(s string) (DocPagesSetName404ResponseCode, error) { + switch s { + case "Unknown": + return DocPagesSetName404ResponseCodeUnknown, nil + case "InvalidArg": + return DocPagesSetName404ResponseCodeInvalidArg, nil + case "DocNotOpen": + return DocPagesSetName404ResponseCodeDocNotOpen, nil + case "DocOpenFailed": + return DocPagesSetName404ResponseCodeDocOpenFailed, nil + case "DocPasswordRequired": + return DocPagesSetName404ResponseCodeDocPasswordRequired, nil + case "DocPasswordIncorrect": + return DocPagesSetName404ResponseCodeDocPasswordIncorrect, nil + case "SharePasswordRequired": + return DocPagesSetName404ResponseCodeSharePasswordRequired, nil + case "Aborted": + return DocPagesSetName404ResponseCodeAborted, nil + case "Network": + return DocPagesSetName404ResponseCodeNetwork, nil + case "Unauthenticated": + return DocPagesSetName404ResponseCodeUnauthenticated, nil + case "Forbidden": + return DocPagesSetName404ResponseCodeForbidden, nil + case "NotFound": + return DocPagesSetName404ResponseCodeNotFound, nil + case "WireFormat": + return DocPagesSetName404ResponseCodeWireFormat, nil + case "RuntimeUnavailable": + return DocPagesSetName404ResponseCodeRuntimeUnavailable, nil + case "InvalidReference": + return DocPagesSetName404ResponseCodeInvalidReference, nil + case "WeakAnnotationSessionConflict": + return DocPagesSetName404ResponseCodeWeakAnnotationSessionConflict, nil + case "LayerVersionConflict": + return DocPagesSetName404ResponseCodeLayerVersionConflict, nil + case "NotImplemented": + return DocPagesSetName404ResponseCodeNotImplemented, nil + case "MalformedPdf": + return DocPagesSetName404ResponseCodeMalformedPdf, nil + case "SigningPending": + return DocPagesSetName404ResponseCodeSigningPending, nil + case "SigningExpired": + return DocPagesSetName404ResponseCodeSigningExpired, nil + case "SigningVersionMismatch": + return DocPagesSetName404ResponseCodeSigningVersionMismatch, nil + case "SignatureRefused": + return DocPagesSetName404ResponseCodeSignatureRefused, nil + case "ProtectedDocument": + return DocPagesSetName404ResponseCodeProtectedDocument, nil + case "StaleBase": + return DocPagesSetName404ResponseCodeStaleBase, nil + } + var t DocPagesSetName404ResponseCode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesSetName404ResponseCode) Ptr() *DocPagesSetName404ResponseCode { + return &d +} + +type DocPagesSetName404ResponseName string + +const ( + DocPagesSetName404ResponseNameEngineError DocPagesSetName404ResponseName = "EngineError" +) + +func NewDocPagesSetName404ResponseNameFromString(s string) (DocPagesSetName404ResponseName, error) { + switch s { + case "EngineError": + return DocPagesSetName404ResponseNameEngineError, nil + } + var t DocPagesSetName404ResponseName + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesSetName404ResponseName) Ptr() *DocPagesSetName404ResponseName { + return &d +} + +type DocPagesSetNameRequest = map[string]any + var ( - docPagesRemoveName200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) - docPagesRemoveName200ResponseMetaCacheDeltaPagesItemFieldCache = big.NewInt(1 << 1) + docPagesSetScale200ResponseFieldPageObjectNumber = big.NewInt(1 << 0) + docPagesSetScale200ResponseFieldMeta = big.NewInt(1 << 1) ) -type DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Cache *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache `json:"cache" url:"cache"` +type DocPagesSetScale200Response struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Meta *DocPagesSetScale200ResponseMeta `json:"meta" url:"meta"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -143316,28 +162608,28 @@ type DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem struct { rawJSON json.RawMessage } -func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem) GetPageObjectNumber() int { +func (d *DocPagesSetScale200Response) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem) GetCache() *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache { +func (d *DocPagesSetScale200Response) GetMeta() *DocPagesSetScale200ResponseMeta { if d == nil { return nil } - return d.Cache + return d.Meta } -func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem) GetExtraProperties() map[string]interface{} { +func (d *DocPagesSetScale200Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem) require(field *big.Int) { +func (d *DocPagesSetScale200Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -143346,25 +162638,25 @@ func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem) require(field *bi // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocPagesSetScale200Response) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docPagesRemoveName200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber) + d.require(docPagesSetScale200ResponseFieldPageObjectNumber) } -// SetCache sets the Cache field and marks it as non-optional; +// SetMeta sets the Meta field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem) SetCache(cache *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache) { - d.Cache = cache - d.require(docPagesRemoveName200ResponseMetaCacheDeltaPagesItemFieldCache) +func (d *DocPagesSetScale200Response) SetMeta(meta *DocPagesSetScale200ResponseMeta) { + d.Meta = meta + d.require(docPagesSetScale200ResponseFieldMeta) } -func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem +func (d *DocPagesSetScale200Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesSetScale200Response var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem(value) + *d = DocPagesSetScale200Response(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -143374,8 +162666,8 @@ func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem) UnmarshalJSON(dat return nil } -func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem) MarshalJSON() ([]byte, error) { - type embed DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem +func (d *DocPagesSetScale200Response) MarshalJSON() ([]byte, error) { + type embed DocPagesSetScale200Response var marshaler = struct { embed }{ @@ -143385,7 +162677,7 @@ func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem) MarshalJSON() ([] return json.Marshal(explicitMarshaler) } -func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem) String() string { +func (d *DocPagesSetScale200Response) String() string { if d == nil { return "" } @@ -143401,13 +162693,13 @@ func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem) String() string { } var ( - docPagesRemoveName200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion = big.NewInt(1 << 0) - docPagesRemoveName200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion = big.NewInt(1 << 1) + docPagesSetScale200ResponseMetaFieldAffectedPages = big.NewInt(1 << 0) + docPagesSetScale200ResponseMetaFieldCacheDelta = big.NewInt(1 << 1) ) -type DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache struct { - ContentVersion int `json:"contentVersion" url:"contentVersion"` - AnnotationVersion int `json:"annotationVersion" url:"annotationVersion"` +type DocPagesSetScale200ResponseMeta struct { + AffectedPages []*DocPagesSetScale200ResponseMetaAffectedPagesItem `json:"affectedPages" url:"affectedPages"` + CacheDelta *DocPagesSetScale200ResponseMetaCacheDelta `json:"cacheDelta,omitempty" url:"cacheDelta,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -143416,55 +162708,55 @@ type DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache struct { rawJSON json.RawMessage } -func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache) GetContentVersion() int { +func (d *DocPagesSetScale200ResponseMeta) GetAffectedPages() []*DocPagesSetScale200ResponseMetaAffectedPagesItem { if d == nil { - return 0 + return nil } - return d.ContentVersion + return d.AffectedPages } -func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache) GetAnnotationVersion() int { +func (d *DocPagesSetScale200ResponseMeta) GetCacheDelta() *DocPagesSetScale200ResponseMetaCacheDelta { if d == nil { - return 0 + return nil } - return d.AnnotationVersion + return d.CacheDelta } -func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache) GetExtraProperties() map[string]interface{} { +func (d *DocPagesSetScale200ResponseMeta) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache) require(field *big.Int) { +func (d *DocPagesSetScale200ResponseMeta) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetContentVersion sets the ContentVersion field and marks it as non-optional; +// SetAffectedPages sets the AffectedPages field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache) SetContentVersion(contentVersion int) { - d.ContentVersion = contentVersion - d.require(docPagesRemoveName200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion) +func (d *DocPagesSetScale200ResponseMeta) SetAffectedPages(affectedPages []*DocPagesSetScale200ResponseMetaAffectedPagesItem) { + d.AffectedPages = affectedPages + d.require(docPagesSetScale200ResponseMetaFieldAffectedPages) } -// SetAnnotationVersion sets the AnnotationVersion field and marks it as non-optional; +// SetCacheDelta sets the CacheDelta field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache) SetAnnotationVersion(annotationVersion int) { - d.AnnotationVersion = annotationVersion - d.require(docPagesRemoveName200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion) +func (d *DocPagesSetScale200ResponseMeta) SetCacheDelta(cacheDelta *DocPagesSetScale200ResponseMetaCacheDelta) { + d.CacheDelta = cacheDelta + d.require(docPagesSetScale200ResponseMetaFieldCacheDelta) } -func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache +func (d *DocPagesSetScale200ResponseMeta) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesSetScale200ResponseMeta var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache(value) + *d = DocPagesSetScale200ResponseMeta(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -143474,8 +162766,8 @@ func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJSO return nil } -func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON() ([]byte, error) { - type embed DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache +func (d *DocPagesSetScale200ResponseMeta) MarshalJSON() ([]byte, error) { + type embed DocPagesSetScale200ResponseMeta var marshaler = struct { embed }{ @@ -143485,7 +162777,7 @@ func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON( return json.Marshal(explicitMarshaler) } -func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache) String() string { +func (d *DocPagesSetScale200ResponseMeta) String() string { if d == nil { return "" } @@ -143501,17 +162793,15 @@ func (d *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache) String() str } var ( - docPagesRemoveName400ResponseFieldName = big.NewInt(1 << 0) - docPagesRemoveName400ResponseFieldCode = big.NewInt(1 << 1) - docPagesRemoveName400ResponseFieldMessage = big.NewInt(1 << 2) - docPagesRemoveName400ResponseFieldDetails = big.NewInt(1 << 3) + docPagesSetScale200ResponseMetaAffectedPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) + docPagesSetScale200ResponseMetaAffectedPagesItemFieldRevision = big.NewInt(1 << 1) + docPagesSetScale200ResponseMetaAffectedPagesItemFieldWeakAnnotationState = big.NewInt(1 << 2) ) -type DocPagesRemoveName400Response struct { - Name DocPagesRemoveName400ResponseName `json:"name" url:"name"` - Code DocPagesRemoveName400ResponseCode `json:"code" url:"code"` - Message string `json:"message" url:"message"` - Details map[string]any `json:"details,omitempty" url:"details,omitempty"` +type DocPagesSetScale200ResponseMetaAffectedPagesItem struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Revision *DocPagesSetScale200ResponseMetaAffectedPagesItemRevision `json:"revision" url:"revision"` + WeakAnnotationState *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationState `json:"weakAnnotationState" url:"weakAnnotationState"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -143520,83 +162810,69 @@ type DocPagesRemoveName400Response struct { rawJSON json.RawMessage } -func (d *DocPagesRemoveName400Response) GetName() DocPagesRemoveName400ResponseName { - if d == nil { - return "" - } - return d.Name -} - -func (d *DocPagesRemoveName400Response) GetCode() DocPagesRemoveName400ResponseCode { +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItem) GetPageObjectNumber() int { if d == nil { - return "" + return 0 } - return d.Code + return d.PageObjectNumber } -func (d *DocPagesRemoveName400Response) GetMessage() string { +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItem) GetRevision() *DocPagesSetScale200ResponseMetaAffectedPagesItemRevision { if d == nil { - return "" + return nil } - return d.Message + return d.Revision } -func (d *DocPagesRemoveName400Response) GetDetails() map[string]any { +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItem) GetWeakAnnotationState() *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationState { if d == nil { return nil } - return d.Details + return d.WeakAnnotationState } -func (d *DocPagesRemoveName400Response) GetExtraProperties() map[string]interface{} { +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesRemoveName400Response) require(field *big.Int) { +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetName sets the Name field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRemoveName400Response) SetName(name DocPagesRemoveName400ResponseName) { - d.Name = name - d.require(docPagesRemoveName400ResponseFieldName) -} - -// SetCode sets the Code field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRemoveName400Response) SetCode(code DocPagesRemoveName400ResponseCode) { - d.Code = code - d.require(docPagesRemoveName400ResponseFieldCode) +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItem) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docPagesSetScale200ResponseMetaAffectedPagesItemFieldPageObjectNumber) } -// SetMessage sets the Message field and marks it as non-optional; +// SetRevision sets the Revision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRemoveName400Response) SetMessage(message string) { - d.Message = message - d.require(docPagesRemoveName400ResponseFieldMessage) +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItem) SetRevision(revision *DocPagesSetScale200ResponseMetaAffectedPagesItemRevision) { + d.Revision = revision + d.require(docPagesSetScale200ResponseMetaAffectedPagesItemFieldRevision) } -// SetDetails sets the Details field and marks it as non-optional; +// SetWeakAnnotationState sets the WeakAnnotationState field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRemoveName400Response) SetDetails(details map[string]any) { - d.Details = details - d.require(docPagesRemoveName400ResponseFieldDetails) +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItem) SetWeakAnnotationState(weakAnnotationState *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationState) { + d.WeakAnnotationState = weakAnnotationState + d.require(docPagesSetScale200ResponseMetaAffectedPagesItemFieldWeakAnnotationState) } -func (d *DocPagesRemoveName400Response) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesRemoveName400Response +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesSetScale200ResponseMetaAffectedPagesItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesRemoveName400Response(value) + *d = DocPagesSetScale200ResponseMetaAffectedPagesItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -143606,8 +162882,8 @@ func (d *DocPagesRemoveName400Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocPagesRemoveName400Response) MarshalJSON() ([]byte, error) { - type embed DocPagesRemoveName400Response +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItem) MarshalJSON() ([]byte, error) { + type embed DocPagesSetScale200ResponseMetaAffectedPagesItem var marshaler = struct { embed }{ @@ -143617,7 +162893,7 @@ func (d *DocPagesRemoveName400Response) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocPagesRemoveName400Response) String() string { +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItem) String() string { if d == nil { return "" } @@ -143632,128 +162908,16 @@ func (d *DocPagesRemoveName400Response) String() string { return fmt.Sprintf("%#v", d) } -type DocPagesRemoveName400ResponseCode string - -const ( - DocPagesRemoveName400ResponseCodeUnknown DocPagesRemoveName400ResponseCode = "Unknown" - DocPagesRemoveName400ResponseCodeInvalidArg DocPagesRemoveName400ResponseCode = "InvalidArg" - DocPagesRemoveName400ResponseCodeDocNotOpen DocPagesRemoveName400ResponseCode = "DocNotOpen" - DocPagesRemoveName400ResponseCodeDocOpenFailed DocPagesRemoveName400ResponseCode = "DocOpenFailed" - DocPagesRemoveName400ResponseCodeDocPasswordRequired DocPagesRemoveName400ResponseCode = "DocPasswordRequired" - DocPagesRemoveName400ResponseCodeDocPasswordIncorrect DocPagesRemoveName400ResponseCode = "DocPasswordIncorrect" - DocPagesRemoveName400ResponseCodeSharePasswordRequired DocPagesRemoveName400ResponseCode = "SharePasswordRequired" - DocPagesRemoveName400ResponseCodeAborted DocPagesRemoveName400ResponseCode = "Aborted" - DocPagesRemoveName400ResponseCodeNetwork DocPagesRemoveName400ResponseCode = "Network" - DocPagesRemoveName400ResponseCodeUnauthenticated DocPagesRemoveName400ResponseCode = "Unauthenticated" - DocPagesRemoveName400ResponseCodeForbidden DocPagesRemoveName400ResponseCode = "Forbidden" - DocPagesRemoveName400ResponseCodeNotFound DocPagesRemoveName400ResponseCode = "NotFound" - DocPagesRemoveName400ResponseCodeWireFormat DocPagesRemoveName400ResponseCode = "WireFormat" - DocPagesRemoveName400ResponseCodeRuntimeUnavailable DocPagesRemoveName400ResponseCode = "RuntimeUnavailable" - DocPagesRemoveName400ResponseCodeInvalidReference DocPagesRemoveName400ResponseCode = "InvalidReference" - DocPagesRemoveName400ResponseCodeWeakAnnotationSessionConflict DocPagesRemoveName400ResponseCode = "WeakAnnotationSessionConflict" - DocPagesRemoveName400ResponseCodeLayerVersionConflict DocPagesRemoveName400ResponseCode = "LayerVersionConflict" - DocPagesRemoveName400ResponseCodeNotImplemented DocPagesRemoveName400ResponseCode = "NotImplemented" - DocPagesRemoveName400ResponseCodeMalformedPdf DocPagesRemoveName400ResponseCode = "MalformedPdf" - DocPagesRemoveName400ResponseCodeSigningPending DocPagesRemoveName400ResponseCode = "SigningPending" - DocPagesRemoveName400ResponseCodeSigningExpired DocPagesRemoveName400ResponseCode = "SigningExpired" - DocPagesRemoveName400ResponseCodeSigningVersionMismatch DocPagesRemoveName400ResponseCode = "SigningVersionMismatch" - DocPagesRemoveName400ResponseCodeSignatureRefused DocPagesRemoveName400ResponseCode = "SignatureRefused" - DocPagesRemoveName400ResponseCodeProtectedDocument DocPagesRemoveName400ResponseCode = "ProtectedDocument" - DocPagesRemoveName400ResponseCodeStaleBase DocPagesRemoveName400ResponseCode = "StaleBase" -) - -func NewDocPagesRemoveName400ResponseCodeFromString(s string) (DocPagesRemoveName400ResponseCode, error) { - switch s { - case "Unknown": - return DocPagesRemoveName400ResponseCodeUnknown, nil - case "InvalidArg": - return DocPagesRemoveName400ResponseCodeInvalidArg, nil - case "DocNotOpen": - return DocPagesRemoveName400ResponseCodeDocNotOpen, nil - case "DocOpenFailed": - return DocPagesRemoveName400ResponseCodeDocOpenFailed, nil - case "DocPasswordRequired": - return DocPagesRemoveName400ResponseCodeDocPasswordRequired, nil - case "DocPasswordIncorrect": - return DocPagesRemoveName400ResponseCodeDocPasswordIncorrect, nil - case "SharePasswordRequired": - return DocPagesRemoveName400ResponseCodeSharePasswordRequired, nil - case "Aborted": - return DocPagesRemoveName400ResponseCodeAborted, nil - case "Network": - return DocPagesRemoveName400ResponseCodeNetwork, nil - case "Unauthenticated": - return DocPagesRemoveName400ResponseCodeUnauthenticated, nil - case "Forbidden": - return DocPagesRemoveName400ResponseCodeForbidden, nil - case "NotFound": - return DocPagesRemoveName400ResponseCodeNotFound, nil - case "WireFormat": - return DocPagesRemoveName400ResponseCodeWireFormat, nil - case "RuntimeUnavailable": - return DocPagesRemoveName400ResponseCodeRuntimeUnavailable, nil - case "InvalidReference": - return DocPagesRemoveName400ResponseCodeInvalidReference, nil - case "WeakAnnotationSessionConflict": - return DocPagesRemoveName400ResponseCodeWeakAnnotationSessionConflict, nil - case "LayerVersionConflict": - return DocPagesRemoveName400ResponseCodeLayerVersionConflict, nil - case "NotImplemented": - return DocPagesRemoveName400ResponseCodeNotImplemented, nil - case "MalformedPdf": - return DocPagesRemoveName400ResponseCodeMalformedPdf, nil - case "SigningPending": - return DocPagesRemoveName400ResponseCodeSigningPending, nil - case "SigningExpired": - return DocPagesRemoveName400ResponseCodeSigningExpired, nil - case "SigningVersionMismatch": - return DocPagesRemoveName400ResponseCodeSigningVersionMismatch, nil - case "SignatureRefused": - return DocPagesRemoveName400ResponseCodeSignatureRefused, nil - case "ProtectedDocument": - return DocPagesRemoveName400ResponseCodeProtectedDocument, nil - case "StaleBase": - return DocPagesRemoveName400ResponseCodeStaleBase, nil - } - var t DocPagesRemoveName400ResponseCode - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocPagesRemoveName400ResponseCode) Ptr() *DocPagesRemoveName400ResponseCode { - return &d -} - -type DocPagesRemoveName400ResponseName string - -const ( - DocPagesRemoveName400ResponseNameEngineError DocPagesRemoveName400ResponseName = "EngineError" -) - -func NewDocPagesRemoveName400ResponseNameFromString(s string) (DocPagesRemoveName400ResponseName, error) { - switch s { - case "EngineError": - return DocPagesRemoveName400ResponseNameEngineError, nil - } - var t DocPagesRemoveName400ResponseName - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocPagesRemoveName400ResponseName) Ptr() *DocPagesRemoveName400ResponseName { - return &d -} - var ( - docPagesRemoveName404ResponseFieldName = big.NewInt(1 << 0) - docPagesRemoveName404ResponseFieldCode = big.NewInt(1 << 1) - docPagesRemoveName404ResponseFieldMessage = big.NewInt(1 << 2) - docPagesRemoveName404ResponseFieldDetails = big.NewInt(1 << 3) + docPagesSetScale200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID = big.NewInt(1 << 0) + docPagesSetScale200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber = big.NewInt(1 << 1) + docPagesSetScale200ResponseMetaAffectedPagesItemRevisionFieldGeneration = big.NewInt(1 << 2) ) -type DocPagesRemoveName404Response struct { - Name DocPagesRemoveName404ResponseName `json:"name" url:"name"` - Code DocPagesRemoveName404ResponseCode `json:"code" url:"code"` - Message string `json:"message" url:"message"` - Details map[string]any `json:"details,omitempty" url:"details,omitempty"` +type DocPagesSetScale200ResponseMetaAffectedPagesItemRevision struct { + DocSessionID string `json:"docSessionId" url:"docSessionId"` + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Generation int `json:"generation" url:"generation"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -143762,83 +162926,69 @@ type DocPagesRemoveName404Response struct { rawJSON json.RawMessage } -func (d *DocPagesRemoveName404Response) GetName() DocPagesRemoveName404ResponseName { - if d == nil { - return "" - } - return d.Name -} - -func (d *DocPagesRemoveName404Response) GetCode() DocPagesRemoveName404ResponseCode { +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItemRevision) GetDocSessionID() string { if d == nil { return "" } - return d.Code + return d.DocSessionID } -func (d *DocPagesRemoveName404Response) GetMessage() string { +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItemRevision) GetPageObjectNumber() int { if d == nil { - return "" + return 0 } - return d.Message + return d.PageObjectNumber } -func (d *DocPagesRemoveName404Response) GetDetails() map[string]any { +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItemRevision) GetGeneration() int { if d == nil { - return nil + return 0 } - return d.Details + return d.Generation } -func (d *DocPagesRemoveName404Response) GetExtraProperties() map[string]interface{} { +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItemRevision) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesRemoveName404Response) require(field *big.Int) { +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItemRevision) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetName sets the Name field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRemoveName404Response) SetName(name DocPagesRemoveName404ResponseName) { - d.Name = name - d.require(docPagesRemoveName404ResponseFieldName) -} - -// SetCode sets the Code field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRemoveName404Response) SetCode(code DocPagesRemoveName404ResponseCode) { - d.Code = code - d.require(docPagesRemoveName404ResponseFieldCode) +// SetDocSessionID sets the DocSessionID field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItemRevision) SetDocSessionID(docSessionID string) { + d.DocSessionID = docSessionID + d.require(docPagesSetScale200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID) } -// SetMessage sets the Message field and marks it as non-optional; +// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRemoveName404Response) SetMessage(message string) { - d.Message = message - d.require(docPagesRemoveName404ResponseFieldMessage) +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItemRevision) SetPageObjectNumber(pageObjectNumber int) { + d.PageObjectNumber = pageObjectNumber + d.require(docPagesSetScale200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber) } -// SetDetails sets the Details field and marks it as non-optional; +// SetGeneration sets the Generation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRemoveName404Response) SetDetails(details map[string]any) { - d.Details = details - d.require(docPagesRemoveName404ResponseFieldDetails) +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItemRevision) SetGeneration(generation int) { + d.Generation = generation + d.require(docPagesSetScale200ResponseMetaAffectedPagesItemRevisionFieldGeneration) } -func (d *DocPagesRemoveName404Response) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesRemoveName404Response +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItemRevision) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesSetScale200ResponseMetaAffectedPagesItemRevision var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesRemoveName404Response(value) + *d = DocPagesSetScale200ResponseMetaAffectedPagesItemRevision(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -143848,8 +162998,8 @@ func (d *DocPagesRemoveName404Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocPagesRemoveName404Response) MarshalJSON() ([]byte, error) { - type embed DocPagesRemoveName404Response +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItemRevision) MarshalJSON() ([]byte, error) { + type embed DocPagesSetScale200ResponseMetaAffectedPagesItemRevision var marshaler = struct { embed }{ @@ -143859,7 +163009,7 @@ func (d *DocPagesRemoveName404Response) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocPagesRemoveName404Response) String() string { +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItemRevision) String() string { if d == nil { return "" } @@ -143874,193 +163024,202 @@ func (d *DocPagesRemoveName404Response) String() string { return fmt.Sprintf("%#v", d) } -type DocPagesRemoveName404ResponseCode string +type DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationState struct { + Kind string + Unknown *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + Known *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown -const ( - DocPagesRemoveName404ResponseCodeUnknown DocPagesRemoveName404ResponseCode = "Unknown" - DocPagesRemoveName404ResponseCodeInvalidArg DocPagesRemoveName404ResponseCode = "InvalidArg" - DocPagesRemoveName404ResponseCodeDocNotOpen DocPagesRemoveName404ResponseCode = "DocNotOpen" - DocPagesRemoveName404ResponseCodeDocOpenFailed DocPagesRemoveName404ResponseCode = "DocOpenFailed" - DocPagesRemoveName404ResponseCodeDocPasswordRequired DocPagesRemoveName404ResponseCode = "DocPasswordRequired" - DocPagesRemoveName404ResponseCodeDocPasswordIncorrect DocPagesRemoveName404ResponseCode = "DocPasswordIncorrect" - DocPagesRemoveName404ResponseCodeSharePasswordRequired DocPagesRemoveName404ResponseCode = "SharePasswordRequired" - DocPagesRemoveName404ResponseCodeAborted DocPagesRemoveName404ResponseCode = "Aborted" - DocPagesRemoveName404ResponseCodeNetwork DocPagesRemoveName404ResponseCode = "Network" - DocPagesRemoveName404ResponseCodeUnauthenticated DocPagesRemoveName404ResponseCode = "Unauthenticated" - DocPagesRemoveName404ResponseCodeForbidden DocPagesRemoveName404ResponseCode = "Forbidden" - DocPagesRemoveName404ResponseCodeNotFound DocPagesRemoveName404ResponseCode = "NotFound" - DocPagesRemoveName404ResponseCodeWireFormat DocPagesRemoveName404ResponseCode = "WireFormat" - DocPagesRemoveName404ResponseCodeRuntimeUnavailable DocPagesRemoveName404ResponseCode = "RuntimeUnavailable" - DocPagesRemoveName404ResponseCodeInvalidReference DocPagesRemoveName404ResponseCode = "InvalidReference" - DocPagesRemoveName404ResponseCodeWeakAnnotationSessionConflict DocPagesRemoveName404ResponseCode = "WeakAnnotationSessionConflict" - DocPagesRemoveName404ResponseCodeLayerVersionConflict DocPagesRemoveName404ResponseCode = "LayerVersionConflict" - DocPagesRemoveName404ResponseCodeNotImplemented DocPagesRemoveName404ResponseCode = "NotImplemented" - DocPagesRemoveName404ResponseCodeMalformedPdf DocPagesRemoveName404ResponseCode = "MalformedPdf" - DocPagesRemoveName404ResponseCodeSigningPending DocPagesRemoveName404ResponseCode = "SigningPending" - DocPagesRemoveName404ResponseCodeSigningExpired DocPagesRemoveName404ResponseCode = "SigningExpired" - DocPagesRemoveName404ResponseCodeSigningVersionMismatch DocPagesRemoveName404ResponseCode = "SigningVersionMismatch" - DocPagesRemoveName404ResponseCodeSignatureRefused DocPagesRemoveName404ResponseCode = "SignatureRefused" - DocPagesRemoveName404ResponseCodeProtectedDocument DocPagesRemoveName404ResponseCode = "ProtectedDocument" - DocPagesRemoveName404ResponseCodeStaleBase DocPagesRemoveName404ResponseCode = "StaleBase" -) + rawJSON json.RawMessage +} -func NewDocPagesRemoveName404ResponseCodeFromString(s string) (DocPagesRemoveName404ResponseCode, error) { - switch s { - case "Unknown": - return DocPagesRemoveName404ResponseCodeUnknown, nil - case "InvalidArg": - return DocPagesRemoveName404ResponseCodeInvalidArg, nil - case "DocNotOpen": - return DocPagesRemoveName404ResponseCodeDocNotOpen, nil - case "DocOpenFailed": - return DocPagesRemoveName404ResponseCodeDocOpenFailed, nil - case "DocPasswordRequired": - return DocPagesRemoveName404ResponseCodeDocPasswordRequired, nil - case "DocPasswordIncorrect": - return DocPagesRemoveName404ResponseCodeDocPasswordIncorrect, nil - case "SharePasswordRequired": - return DocPagesRemoveName404ResponseCodeSharePasswordRequired, nil - case "Aborted": - return DocPagesRemoveName404ResponseCodeAborted, nil - case "Network": - return DocPagesRemoveName404ResponseCodeNetwork, nil - case "Unauthenticated": - return DocPagesRemoveName404ResponseCodeUnauthenticated, nil - case "Forbidden": - return DocPagesRemoveName404ResponseCodeForbidden, nil - case "NotFound": - return DocPagesRemoveName404ResponseCodeNotFound, nil - case "WireFormat": - return DocPagesRemoveName404ResponseCodeWireFormat, nil - case "RuntimeUnavailable": - return DocPagesRemoveName404ResponseCodeRuntimeUnavailable, nil - case "InvalidReference": - return DocPagesRemoveName404ResponseCodeInvalidReference, nil - case "WeakAnnotationSessionConflict": - return DocPagesRemoveName404ResponseCodeWeakAnnotationSessionConflict, nil - case "LayerVersionConflict": - return DocPagesRemoveName404ResponseCodeLayerVersionConflict, nil - case "NotImplemented": - return DocPagesRemoveName404ResponseCodeNotImplemented, nil - case "MalformedPdf": - return DocPagesRemoveName404ResponseCodeMalformedPdf, nil - case "SigningPending": - return DocPagesRemoveName404ResponseCodeSigningPending, nil - case "SigningExpired": - return DocPagesRemoveName404ResponseCodeSigningExpired, nil - case "SigningVersionMismatch": - return DocPagesRemoveName404ResponseCodeSigningVersionMismatch, nil - case "SignatureRefused": - return DocPagesRemoveName404ResponseCodeSignatureRefused, nil - case "ProtectedDocument": - return DocPagesRemoveName404ResponseCodeProtectedDocument, nil - case "StaleBase": - return DocPagesRemoveName404ResponseCodeStaleBase, nil +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKind() string { + if d == nil { + return "" } - var t DocPagesRemoveName404ResponseCode - return "", fmt.Errorf("%s is not a valid %T", s, t) + return d.Kind } -func (d DocPagesRemoveName404ResponseCode) Ptr() *DocPagesRemoveName404ResponseCode { - return &d +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationState) GetUnknown() *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown { + if d == nil { + return nil + } + return d.Unknown } -type DocPagesRemoveName404ResponseName string +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKnown() *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown { + if d == nil { + return nil + } + return d.Known +} -const ( - DocPagesRemoveName404ResponseNameEngineError DocPagesRemoveName404ResponseName = "EngineError" -) +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationState) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Kind string `json:"kind"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Kind = unmarshaler.Kind + if unmarshaler.Kind == "" { + return fmt.Errorf("%T did not include discriminant kind", d) + } + switch unmarshaler.Kind { + case "unknown": + value := new(DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Unknown = value + case "known": + value := new(DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Known = value + } + d.rawJSON = json.RawMessage(data) + return nil +} -func NewDocPagesRemoveName404ResponseNameFromString(s string) (DocPagesRemoveName404ResponseName, error) { - switch s { - case "EngineError": - return DocPagesRemoveName404ResponseNameEngineError, nil +func (d DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationState) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err } - var t DocPagesRemoveName404ResponseName - return "", fmt.Errorf("%s is not a valid %T", s, t) + if d.Unknown != nil { + return internal.MarshalJSONWithExtraProperty(d.Unknown, "kind", "unknown") + } + if d.Known != nil { + return internal.MarshalJSONWithExtraProperty(d.Known, "kind", "known") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) } -func (d DocPagesRemoveName404ResponseName) Ptr() *DocPagesRemoveName404ResponseName { - return &d +type DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor interface { + VisitUnknown(*DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) error + VisitKnown(*DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) error } -type DocPagesRemoveNameRequest = map[string]any +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationState) Accept(visitor DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor) error { + if d.Unknown != nil { + return visitor.VisitUnknown(d.Unknown) + } + if d.Known != nil { + return visitor.VisitKnown(d.Known) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationState) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.Unknown != nil { + fields = append(fields, "unknown") + } + if d.Known != nil { + fields = append(fields, "known") + } + if len(fields) == 0 { + if d.Kind != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Kind != "" { + field := fields[0] + if d.Kind != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Kind, + d, + ) + } + } + return nil +} var ( - docPagesRotate200ResponseFieldMeta = big.NewInt(1 << 0) + docPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations = big.NewInt(1 << 0) ) -type DocPagesRotate200Response struct { - Meta *DocPagesRotate200ResponseMeta `json:"meta" url:"meta"` +type DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown struct { + HasAnyWeakAnnotations bool `json:"hasAnyWeakAnnotations" url:"hasAnyWeakAnnotations"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` - ExtraProperties map[string]interface{} `json:"-" url:"-"` - - rawJSON json.RawMessage + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocPagesRotate200Response) GetMeta() *DocPagesRotate200ResponseMeta { +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetHasAnyWeakAnnotations() bool { if d == nil { - return nil + return false } - return d.Meta + return d.HasAnyWeakAnnotations } -func (d *DocPagesRotate200Response) GetExtraProperties() map[string]interface{} { +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.ExtraProperties + return d.extraProperties } -func (d *DocPagesRotate200Response) require(field *big.Int) { +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetMeta sets the Meta field and marks it as non-optional; +// SetHasAnyWeakAnnotations sets the HasAnyWeakAnnotations field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRotate200Response) SetMeta(meta *DocPagesRotate200ResponseMeta) { - d.Meta = meta - d.require(docPagesRotate200ResponseFieldMeta) +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) SetHasAnyWeakAnnotations(hasAnyWeakAnnotations bool) { + d.HasAnyWeakAnnotations = hasAnyWeakAnnotations + d.require(docPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations) } -func (d *DocPagesRotate200Response) UnmarshalJSON(data []byte) error { - type embed DocPagesRotate200Response - var unmarshaler = struct { - embed - }{ - embed: embed(*d), - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesRotate200Response(unmarshaler.embed) + *d = DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err } - d.ExtraProperties = extraProperties + d.extraProperties = extraProperties d.rawJSON = json.RawMessage(data) return nil } -func (d *DocPagesRotate200Response) MarshalJSON() ([]byte, error) { - type embed DocPagesRotate200Response +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) MarshalJSON() ([]byte, error) { + type embed DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown var marshaler = struct { embed }{ embed: embed(*d), } explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return internal.MarshalJSONWithExtraProperties(explicitMarshaler, d.ExtraProperties) + return json.Marshal(explicitMarshaler) } -func (d *DocPagesRotate200Response) String() string { +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) String() string { if d == nil { return "" } @@ -144075,14 +163234,7 @@ func (d *DocPagesRotate200Response) String() string { return fmt.Sprintf("%#v", d) } -var ( - docPagesRotate200ResponseMetaFieldAffectedPages = big.NewInt(1 << 0) - docPagesRotate200ResponseMetaFieldCacheDelta = big.NewInt(1 << 1) -) - -type DocPagesRotate200ResponseMeta struct { - AffectedPages []*DocPagesRotate200ResponseMetaAffectedPagesItem `json:"affectedPages" url:"affectedPages"` - CacheDelta *DocPagesRotate200ResponseMetaCacheDelta `json:"cacheDelta,omitempty" url:"cacheDelta,omitempty"` +type DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -144091,55 +163243,27 @@ type DocPagesRotate200ResponseMeta struct { rawJSON json.RawMessage } -func (d *DocPagesRotate200ResponseMeta) GetAffectedPages() []*DocPagesRotate200ResponseMetaAffectedPagesItem { - if d == nil { - return nil - } - return d.AffectedPages -} - -func (d *DocPagesRotate200ResponseMeta) GetCacheDelta() *DocPagesRotate200ResponseMetaCacheDelta { - if d == nil { - return nil - } - return d.CacheDelta -} - -func (d *DocPagesRotate200ResponseMeta) GetExtraProperties() map[string]interface{} { +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesRotate200ResponseMeta) require(field *big.Int) { +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetAffectedPages sets the AffectedPages field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRotate200ResponseMeta) SetAffectedPages(affectedPages []*DocPagesRotate200ResponseMetaAffectedPagesItem) { - d.AffectedPages = affectedPages - d.require(docPagesRotate200ResponseMetaFieldAffectedPages) -} - -// SetCacheDelta sets the CacheDelta field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRotate200ResponseMeta) SetCacheDelta(cacheDelta *DocPagesRotate200ResponseMetaCacheDelta) { - d.CacheDelta = cacheDelta - d.require(docPagesRotate200ResponseMetaFieldCacheDelta) -} - -func (d *DocPagesRotate200ResponseMeta) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesRotate200ResponseMeta +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesRotate200ResponseMeta(value) + *d = DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -144149,8 +163273,8 @@ func (d *DocPagesRotate200ResponseMeta) UnmarshalJSON(data []byte) error { return nil } -func (d *DocPagesRotate200ResponseMeta) MarshalJSON() ([]byte, error) { - type embed DocPagesRotate200ResponseMeta +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) MarshalJSON() ([]byte, error) { + type embed DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown var marshaler = struct { embed }{ @@ -144160,7 +163284,7 @@ func (d *DocPagesRotate200ResponseMeta) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocPagesRotate200ResponseMeta) String() string { +func (d *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) String() string { if d == nil { return "" } @@ -144176,15 +163300,21 @@ func (d *DocPagesRotate200ResponseMeta) String() string { } var ( - docPagesRotate200ResponseMetaAffectedPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) - docPagesRotate200ResponseMetaAffectedPagesItemFieldRevision = big.NewInt(1 << 1) - docPagesRotate200ResponseMetaAffectedPagesItemFieldWeakAnnotationState = big.NewInt(1 << 2) + docPagesSetScale200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) + docPagesSetScale200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) + docPagesSetScale200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) + docPagesSetScale200ResponseMetaCacheDeltaFieldLayerVersion = big.NewInt(1 << 3) + docPagesSetScale200ResponseMetaCacheDeltaFieldWorking = big.NewInt(1 << 4) + docPagesSetScale200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 5) ) -type DocPagesRotate200ResponseMetaAffectedPagesItem struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Revision *DocPagesRotate200ResponseMetaAffectedPagesItemRevision `json:"revision" url:"revision"` - WeakAnnotationState *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState `json:"weakAnnotationState" url:"weakAnnotationState"` +type DocPagesSetScale200ResponseMetaCacheDelta struct { + PreviousDocVersion int `json:"previousDocVersion" url:"previousDocVersion"` + DocVersion int `json:"docVersion" url:"docVersion"` + AnnotationsVersion *int `json:"annotationsVersion,omitempty" url:"annotationsVersion,omitempty"` + LayerVersion *int `json:"layerVersion,omitempty" url:"layerVersion,omitempty"` + Working *bool `json:"working,omitempty" url:"working,omitempty"` + Pages []*DocPagesSetScale200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -144193,69 +163323,111 @@ type DocPagesRotate200ResponseMetaAffectedPagesItem struct { rawJSON json.RawMessage } -func (d *DocPagesRotate200ResponseMetaAffectedPagesItem) GetPageObjectNumber() int { +func (d *DocPagesSetScale200ResponseMetaCacheDelta) GetPreviousDocVersion() int { if d == nil { return 0 } - return d.PageObjectNumber + return d.PreviousDocVersion } -func (d *DocPagesRotate200ResponseMetaAffectedPagesItem) GetRevision() *DocPagesRotate200ResponseMetaAffectedPagesItemRevision { +func (d *DocPagesSetScale200ResponseMetaCacheDelta) GetDocVersion() int { + if d == nil { + return 0 + } + return d.DocVersion +} + +func (d *DocPagesSetScale200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { if d == nil { return nil } - return d.Revision + return d.AnnotationsVersion } -func (d *DocPagesRotate200ResponseMetaAffectedPagesItem) GetWeakAnnotationState() *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState { +func (d *DocPagesSetScale200ResponseMetaCacheDelta) GetLayerVersion() *int { if d == nil { return nil } - return d.WeakAnnotationState + return d.LayerVersion } -func (d *DocPagesRotate200ResponseMetaAffectedPagesItem) GetExtraProperties() map[string]interface{} { +func (d *DocPagesSetScale200ResponseMetaCacheDelta) GetWorking() *bool { + if d == nil { + return nil + } + return d.Working +} + +func (d *DocPagesSetScale200ResponseMetaCacheDelta) GetPages() []*DocPagesSetScale200ResponseMetaCacheDeltaPagesItem { + if d == nil { + return nil + } + return d.Pages +} + +func (d *DocPagesSetScale200ResponseMetaCacheDelta) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesRotate200ResponseMetaAffectedPagesItem) require(field *big.Int) { +func (d *DocPagesSetScale200ResponseMetaCacheDelta) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetPreviousDocVersion sets the PreviousDocVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRotate200ResponseMetaAffectedPagesItem) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docPagesRotate200ResponseMetaAffectedPagesItemFieldPageObjectNumber) +func (d *DocPagesSetScale200ResponseMetaCacheDelta) SetPreviousDocVersion(previousDocVersion int) { + d.PreviousDocVersion = previousDocVersion + d.require(docPagesSetScale200ResponseMetaCacheDeltaFieldPreviousDocVersion) } -// SetRevision sets the Revision field and marks it as non-optional; +// SetDocVersion sets the DocVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRotate200ResponseMetaAffectedPagesItem) SetRevision(revision *DocPagesRotate200ResponseMetaAffectedPagesItemRevision) { - d.Revision = revision - d.require(docPagesRotate200ResponseMetaAffectedPagesItemFieldRevision) +func (d *DocPagesSetScale200ResponseMetaCacheDelta) SetDocVersion(docVersion int) { + d.DocVersion = docVersion + d.require(docPagesSetScale200ResponseMetaCacheDeltaFieldDocVersion) } -// SetWeakAnnotationState sets the WeakAnnotationState field and marks it as non-optional; +// SetAnnotationsVersion sets the AnnotationsVersion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRotate200ResponseMetaAffectedPagesItem) SetWeakAnnotationState(weakAnnotationState *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState) { - d.WeakAnnotationState = weakAnnotationState - d.require(docPagesRotate200ResponseMetaAffectedPagesItemFieldWeakAnnotationState) +func (d *DocPagesSetScale200ResponseMetaCacheDelta) SetAnnotationsVersion(annotationsVersion *int) { + d.AnnotationsVersion = annotationsVersion + d.require(docPagesSetScale200ResponseMetaCacheDeltaFieldAnnotationsVersion) } -func (d *DocPagesRotate200ResponseMetaAffectedPagesItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesRotate200ResponseMetaAffectedPagesItem +// SetLayerVersion sets the LayerVersion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScale200ResponseMetaCacheDelta) SetLayerVersion(layerVersion *int) { + d.LayerVersion = layerVersion + d.require(docPagesSetScale200ResponseMetaCacheDeltaFieldLayerVersion) +} + +// SetWorking sets the Working field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScale200ResponseMetaCacheDelta) SetWorking(working *bool) { + d.Working = working + d.require(docPagesSetScale200ResponseMetaCacheDeltaFieldWorking) +} + +// SetPages sets the Pages field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScale200ResponseMetaCacheDelta) SetPages(pages []*DocPagesSetScale200ResponseMetaCacheDeltaPagesItem) { + d.Pages = pages + d.require(docPagesSetScale200ResponseMetaCacheDeltaFieldPages) +} + +func (d *DocPagesSetScale200ResponseMetaCacheDelta) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesSetScale200ResponseMetaCacheDelta var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesRotate200ResponseMetaAffectedPagesItem(value) + *d = DocPagesSetScale200ResponseMetaCacheDelta(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -144265,8 +163437,8 @@ func (d *DocPagesRotate200ResponseMetaAffectedPagesItem) UnmarshalJSON(data []by return nil } -func (d *DocPagesRotate200ResponseMetaAffectedPagesItem) MarshalJSON() ([]byte, error) { - type embed DocPagesRotate200ResponseMetaAffectedPagesItem +func (d *DocPagesSetScale200ResponseMetaCacheDelta) MarshalJSON() ([]byte, error) { + type embed DocPagesSetScale200ResponseMetaCacheDelta var marshaler = struct { embed }{ @@ -144276,7 +163448,7 @@ func (d *DocPagesRotate200ResponseMetaAffectedPagesItem) MarshalJSON() ([]byte, return json.Marshal(explicitMarshaler) } -func (d *DocPagesRotate200ResponseMetaAffectedPagesItem) String() string { +func (d *DocPagesSetScale200ResponseMetaCacheDelta) String() string { if d == nil { return "" } @@ -144292,15 +163464,13 @@ func (d *DocPagesRotate200ResponseMetaAffectedPagesItem) String() string { } var ( - docPagesRotate200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID = big.NewInt(1 << 0) - docPagesRotate200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docPagesRotate200ResponseMetaAffectedPagesItemRevisionFieldGeneration = big.NewInt(1 << 2) + docPagesSetScale200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) + docPagesSetScale200ResponseMetaCacheDeltaPagesItemFieldCache = big.NewInt(1 << 1) ) -type DocPagesRotate200ResponseMetaAffectedPagesItemRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocPagesSetScale200ResponseMetaCacheDeltaPagesItem struct { + PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` + Cache *DocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache `json:"cache" url:"cache"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -144309,69 +163479,55 @@ type DocPagesRotate200ResponseMetaAffectedPagesItemRevision struct { rawJSON json.RawMessage } -func (d *DocPagesRotate200ResponseMetaAffectedPagesItemRevision) GetDocSessionID() string { - if d == nil { - return "" - } - return d.DocSessionID -} - -func (d *DocPagesRotate200ResponseMetaAffectedPagesItemRevision) GetPageObjectNumber() int { +func (d *DocPagesSetScale200ResponseMetaCacheDeltaPagesItem) GetPageObjectNumber() int { if d == nil { return 0 } return d.PageObjectNumber } -func (d *DocPagesRotate200ResponseMetaAffectedPagesItemRevision) GetGeneration() int { +func (d *DocPagesSetScale200ResponseMetaCacheDeltaPagesItem) GetCache() *DocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache { if d == nil { - return 0 + return nil } - return d.Generation + return d.Cache } -func (d *DocPagesRotate200ResponseMetaAffectedPagesItemRevision) GetExtraProperties() map[string]interface{} { +func (d *DocPagesSetScale200ResponseMetaCacheDeltaPagesItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesRotate200ResponseMetaAffectedPagesItemRevision) require(field *big.Int) { +func (d *DocPagesSetScale200ResponseMetaCacheDeltaPagesItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRotate200ResponseMetaAffectedPagesItemRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docPagesRotate200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID) -} - // SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRotate200ResponseMetaAffectedPagesItemRevision) SetPageObjectNumber(pageObjectNumber int) { +func (d *DocPagesSetScale200ResponseMetaCacheDeltaPagesItem) SetPageObjectNumber(pageObjectNumber int) { d.PageObjectNumber = pageObjectNumber - d.require(docPagesRotate200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber) + d.require(docPagesSetScale200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetCache sets the Cache field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRotate200ResponseMetaAffectedPagesItemRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docPagesRotate200ResponseMetaAffectedPagesItemRevisionFieldGeneration) +func (d *DocPagesSetScale200ResponseMetaCacheDeltaPagesItem) SetCache(cache *DocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache) { + d.Cache = cache + d.require(docPagesSetScale200ResponseMetaCacheDeltaPagesItemFieldCache) } -func (d *DocPagesRotate200ResponseMetaAffectedPagesItemRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesRotate200ResponseMetaAffectedPagesItemRevision +func (d *DocPagesSetScale200ResponseMetaCacheDeltaPagesItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesSetScale200ResponseMetaCacheDeltaPagesItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesRotate200ResponseMetaAffectedPagesItemRevision(value) + *d = DocPagesSetScale200ResponseMetaCacheDeltaPagesItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -144381,8 +163537,8 @@ func (d *DocPagesRotate200ResponseMetaAffectedPagesItemRevision) UnmarshalJSON(d return nil } -func (d *DocPagesRotate200ResponseMetaAffectedPagesItemRevision) MarshalJSON() ([]byte, error) { - type embed DocPagesRotate200ResponseMetaAffectedPagesItemRevision +func (d *DocPagesSetScale200ResponseMetaCacheDeltaPagesItem) MarshalJSON() ([]byte, error) { + type embed DocPagesSetScale200ResponseMetaCacheDeltaPagesItem var marshaler = struct { embed }{ @@ -144392,7 +163548,7 @@ func (d *DocPagesRotate200ResponseMetaAffectedPagesItemRevision) MarshalJSON() ( return json.Marshal(explicitMarshaler) } -func (d *DocPagesRotate200ResponseMetaAffectedPagesItemRevision) String() string { +func (d *DocPagesSetScale200ResponseMetaCacheDeltaPagesItem) String() string { if d == nil { return "" } @@ -144407,138 +163563,118 @@ func (d *DocPagesRotate200ResponseMetaAffectedPagesItemRevision) String() string return fmt.Sprintf("%#v", d) } -type DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState struct { - Kind string - Unknown *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - Known *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown +var ( + docPagesSetScale200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion = big.NewInt(1 << 0) + docPagesSetScale200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion = big.NewInt(1 << 1) +) - rawJSON json.RawMessage +type DocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache struct { + ContentVersion int `json:"contentVersion" url:"contentVersion"` + AnnotationVersion int `json:"annotationVersion" url:"annotationVersion"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKind() string { +func (d *DocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache) GetContentVersion() int { if d == nil { - return "" + return 0 } - return d.Kind + return d.ContentVersion } -func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState) GetUnknown() *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown { +func (d *DocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache) GetAnnotationVersion() int { if d == nil { - return nil + return 0 } - return d.Unknown + return d.AnnotationVersion } -func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKnown() *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown { +func (d *DocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache) GetExtraProperties() map[string]interface{} { if d == nil { return nil } - return d.Known + return d.extraProperties } -func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "unknown": - value := new(DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Unknown = value - case "known": - value := new(DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Known = value +func (d *DocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache) require(field *big.Int) { + if d.explicitFields == nil { + d.explicitFields = big.NewInt(0) } - d.rawJSON = json.RawMessage(data) - return nil + d.explicitFields.Or(d.explicitFields, field) } -func (d DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.Unknown != nil { - return internal.MarshalJSONWithExtraProperty(d.Unknown, "kind", "unknown") - } - if d.Known != nil { - return internal.MarshalJSONWithExtraProperty(d.Known, "kind", "known") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil - } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +// SetContentVersion sets the ContentVersion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache) SetContentVersion(contentVersion int) { + d.ContentVersion = contentVersion + d.require(docPagesSetScale200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion) } -type DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor interface { - VisitUnknown(*DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) error - VisitKnown(*DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) error +// SetAnnotationVersion sets the AnnotationVersion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache) SetAnnotationVersion(annotationVersion int) { + d.AnnotationVersion = annotationVersion + d.require(docPagesSetScale200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion) +} + +func (d *DocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *d = DocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache(value) + extraProperties, err := internal.ExtractExtraProperties(data, *d) + if err != nil { + return err + } + d.extraProperties = extraProperties + d.rawJSON = json.RawMessage(data) + return nil } -func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState) Accept(visitor DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor) error { - if d.Unknown != nil { - return visitor.VisitUnknown(d.Unknown) - } - if d.Known != nil { - return visitor.VisitKnown(d.Known) +func (d *DocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON() ([]byte, error) { + type embed DocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache + var marshaler = struct { + embed + }{ + embed: embed(*d), } - return fmt.Errorf("type %T does not define a non-empty union type", d) + explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) + return json.Marshal(explicitMarshaler) } -func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState) validate() error { +func (d *DocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache) String() string { if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.Unknown != nil { - fields = append(fields, "unknown") - } - if d.Known != nil { - fields = append(fields, "known") + return "" } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) + if len(d.rawJSON) > 0 { + if value, err := internal.StringifyJSON(d.rawJSON); err == nil { + return value } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } + if value, err := internal.StringifyJSON(d); err == nil { + return value } - return nil + return fmt.Sprintf("%#v", d) } var ( - docPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations = big.NewInt(1 << 0) + docPagesSetScale400ResponseFieldName = big.NewInt(1 << 0) + docPagesSetScale400ResponseFieldCode = big.NewInt(1 << 1) + docPagesSetScale400ResponseFieldMessage = big.NewInt(1 << 2) + docPagesSetScale400ResponseFieldDetails = big.NewInt(1 << 3) ) -type DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown struct { - HasAnyWeakAnnotations bool `json:"hasAnyWeakAnnotations" url:"hasAnyWeakAnnotations"` +type DocPagesSetScale400Response struct { + Name DocPagesSetScale400ResponseName `json:"name" url:"name"` + Code DocPagesSetScale400ResponseCode `json:"code" url:"code"` + Message string `json:"message" url:"message"` + Details map[string]any `json:"details,omitempty" url:"details,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -144547,41 +163683,83 @@ type DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown stru rawJSON json.RawMessage } -func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetHasAnyWeakAnnotations() bool { +func (d *DocPagesSetScale400Response) GetName() DocPagesSetScale400ResponseName { if d == nil { - return false + return "" } - return d.HasAnyWeakAnnotations + return d.Name } -func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetExtraProperties() map[string]interface{} { +func (d *DocPagesSetScale400Response) GetCode() DocPagesSetScale400ResponseCode { + if d == nil { + return "" + } + return d.Code +} + +func (d *DocPagesSetScale400Response) GetMessage() string { + if d == nil { + return "" + } + return d.Message +} + +func (d *DocPagesSetScale400Response) GetDetails() map[string]any { + if d == nil { + return nil + } + return d.Details +} + +func (d *DocPagesSetScale400Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) require(field *big.Int) { +func (d *DocPagesSetScale400Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetHasAnyWeakAnnotations sets the HasAnyWeakAnnotations field and marks it as non-optional; +// SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) SetHasAnyWeakAnnotations(hasAnyWeakAnnotations bool) { - d.HasAnyWeakAnnotations = hasAnyWeakAnnotations - d.require(docPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations) +func (d *DocPagesSetScale400Response) SetName(name DocPagesSetScale400ResponseName) { + d.Name = name + d.require(docPagesSetScale400ResponseFieldName) } -func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown +// SetCode sets the Code field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScale400Response) SetCode(code DocPagesSetScale400ResponseCode) { + d.Code = code + d.require(docPagesSetScale400ResponseFieldCode) +} + +// SetMessage sets the Message field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScale400Response) SetMessage(message string) { + d.Message = message + d.require(docPagesSetScale400ResponseFieldMessage) +} + +// SetDetails sets the Details field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScale400Response) SetDetails(details map[string]any) { + d.Details = details + d.require(docPagesSetScale400ResponseFieldDetails) +} + +func (d *DocPagesSetScale400Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesSetScale400Response var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(value) + *d = DocPagesSetScale400Response(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -144591,8 +163769,8 @@ func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) return nil } -func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) MarshalJSON() ([]byte, error) { - type embed DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown +func (d *DocPagesSetScale400Response) MarshalJSON() ([]byte, error) { + type embed DocPagesSetScale400Response var marshaler = struct { embed }{ @@ -144602,7 +163780,7 @@ func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) return json.Marshal(explicitMarshaler) } -func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) String() string { +func (d *DocPagesSetScale400Response) String() string { if d == nil { return "" } @@ -144617,7 +163795,128 @@ func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) return fmt.Sprintf("%#v", d) } -type DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown struct { +type DocPagesSetScale400ResponseCode string + +const ( + DocPagesSetScale400ResponseCodeUnknown DocPagesSetScale400ResponseCode = "Unknown" + DocPagesSetScale400ResponseCodeInvalidArg DocPagesSetScale400ResponseCode = "InvalidArg" + DocPagesSetScale400ResponseCodeDocNotOpen DocPagesSetScale400ResponseCode = "DocNotOpen" + DocPagesSetScale400ResponseCodeDocOpenFailed DocPagesSetScale400ResponseCode = "DocOpenFailed" + DocPagesSetScale400ResponseCodeDocPasswordRequired DocPagesSetScale400ResponseCode = "DocPasswordRequired" + DocPagesSetScale400ResponseCodeDocPasswordIncorrect DocPagesSetScale400ResponseCode = "DocPasswordIncorrect" + DocPagesSetScale400ResponseCodeSharePasswordRequired DocPagesSetScale400ResponseCode = "SharePasswordRequired" + DocPagesSetScale400ResponseCodeAborted DocPagesSetScale400ResponseCode = "Aborted" + DocPagesSetScale400ResponseCodeNetwork DocPagesSetScale400ResponseCode = "Network" + DocPagesSetScale400ResponseCodeUnauthenticated DocPagesSetScale400ResponseCode = "Unauthenticated" + DocPagesSetScale400ResponseCodeForbidden DocPagesSetScale400ResponseCode = "Forbidden" + DocPagesSetScale400ResponseCodeNotFound DocPagesSetScale400ResponseCode = "NotFound" + DocPagesSetScale400ResponseCodeWireFormat DocPagesSetScale400ResponseCode = "WireFormat" + DocPagesSetScale400ResponseCodeRuntimeUnavailable DocPagesSetScale400ResponseCode = "RuntimeUnavailable" + DocPagesSetScale400ResponseCodeInvalidReference DocPagesSetScale400ResponseCode = "InvalidReference" + DocPagesSetScale400ResponseCodeWeakAnnotationSessionConflict DocPagesSetScale400ResponseCode = "WeakAnnotationSessionConflict" + DocPagesSetScale400ResponseCodeLayerVersionConflict DocPagesSetScale400ResponseCode = "LayerVersionConflict" + DocPagesSetScale400ResponseCodeNotImplemented DocPagesSetScale400ResponseCode = "NotImplemented" + DocPagesSetScale400ResponseCodeMalformedPdf DocPagesSetScale400ResponseCode = "MalformedPdf" + DocPagesSetScale400ResponseCodeSigningPending DocPagesSetScale400ResponseCode = "SigningPending" + DocPagesSetScale400ResponseCodeSigningExpired DocPagesSetScale400ResponseCode = "SigningExpired" + DocPagesSetScale400ResponseCodeSigningVersionMismatch DocPagesSetScale400ResponseCode = "SigningVersionMismatch" + DocPagesSetScale400ResponseCodeSignatureRefused DocPagesSetScale400ResponseCode = "SignatureRefused" + DocPagesSetScale400ResponseCodeProtectedDocument DocPagesSetScale400ResponseCode = "ProtectedDocument" + DocPagesSetScale400ResponseCodeStaleBase DocPagesSetScale400ResponseCode = "StaleBase" +) + +func NewDocPagesSetScale400ResponseCodeFromString(s string) (DocPagesSetScale400ResponseCode, error) { + switch s { + case "Unknown": + return DocPagesSetScale400ResponseCodeUnknown, nil + case "InvalidArg": + return DocPagesSetScale400ResponseCodeInvalidArg, nil + case "DocNotOpen": + return DocPagesSetScale400ResponseCodeDocNotOpen, nil + case "DocOpenFailed": + return DocPagesSetScale400ResponseCodeDocOpenFailed, nil + case "DocPasswordRequired": + return DocPagesSetScale400ResponseCodeDocPasswordRequired, nil + case "DocPasswordIncorrect": + return DocPagesSetScale400ResponseCodeDocPasswordIncorrect, nil + case "SharePasswordRequired": + return DocPagesSetScale400ResponseCodeSharePasswordRequired, nil + case "Aborted": + return DocPagesSetScale400ResponseCodeAborted, nil + case "Network": + return DocPagesSetScale400ResponseCodeNetwork, nil + case "Unauthenticated": + return DocPagesSetScale400ResponseCodeUnauthenticated, nil + case "Forbidden": + return DocPagesSetScale400ResponseCodeForbidden, nil + case "NotFound": + return DocPagesSetScale400ResponseCodeNotFound, nil + case "WireFormat": + return DocPagesSetScale400ResponseCodeWireFormat, nil + case "RuntimeUnavailable": + return DocPagesSetScale400ResponseCodeRuntimeUnavailable, nil + case "InvalidReference": + return DocPagesSetScale400ResponseCodeInvalidReference, nil + case "WeakAnnotationSessionConflict": + return DocPagesSetScale400ResponseCodeWeakAnnotationSessionConflict, nil + case "LayerVersionConflict": + return DocPagesSetScale400ResponseCodeLayerVersionConflict, nil + case "NotImplemented": + return DocPagesSetScale400ResponseCodeNotImplemented, nil + case "MalformedPdf": + return DocPagesSetScale400ResponseCodeMalformedPdf, nil + case "SigningPending": + return DocPagesSetScale400ResponseCodeSigningPending, nil + case "SigningExpired": + return DocPagesSetScale400ResponseCodeSigningExpired, nil + case "SigningVersionMismatch": + return DocPagesSetScale400ResponseCodeSigningVersionMismatch, nil + case "SignatureRefused": + return DocPagesSetScale400ResponseCodeSignatureRefused, nil + case "ProtectedDocument": + return DocPagesSetScale400ResponseCodeProtectedDocument, nil + case "StaleBase": + return DocPagesSetScale400ResponseCodeStaleBase, nil + } + var t DocPagesSetScale400ResponseCode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesSetScale400ResponseCode) Ptr() *DocPagesSetScale400ResponseCode { + return &d +} + +type DocPagesSetScale400ResponseName string + +const ( + DocPagesSetScale400ResponseNameEngineError DocPagesSetScale400ResponseName = "EngineError" +) + +func NewDocPagesSetScale400ResponseNameFromString(s string) (DocPagesSetScale400ResponseName, error) { + switch s { + case "EngineError": + return DocPagesSetScale400ResponseNameEngineError, nil + } + var t DocPagesSetScale400ResponseName + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesSetScale400ResponseName) Ptr() *DocPagesSetScale400ResponseName { + return &d +} + +var ( + docPagesSetScale404ResponseFieldName = big.NewInt(1 << 0) + docPagesSetScale404ResponseFieldCode = big.NewInt(1 << 1) + docPagesSetScale404ResponseFieldMessage = big.NewInt(1 << 2) + docPagesSetScale404ResponseFieldDetails = big.NewInt(1 << 3) +) + +type DocPagesSetScale404Response struct { + Name DocPagesSetScale404ResponseName `json:"name" url:"name"` + Code DocPagesSetScale404ResponseCode `json:"code" url:"code"` + Message string `json:"message" url:"message"` + Details map[string]any `json:"details,omitempty" url:"details,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -144626,27 +163925,83 @@ type DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown st rawJSON json.RawMessage } -func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) GetExtraProperties() map[string]interface{} { +func (d *DocPagesSetScale404Response) GetName() DocPagesSetScale404ResponseName { + if d == nil { + return "" + } + return d.Name +} + +func (d *DocPagesSetScale404Response) GetCode() DocPagesSetScale404ResponseCode { + if d == nil { + return "" + } + return d.Code +} + +func (d *DocPagesSetScale404Response) GetMessage() string { + if d == nil { + return "" + } + return d.Message +} + +func (d *DocPagesSetScale404Response) GetDetails() map[string]any { + if d == nil { + return nil + } + return d.Details +} + +func (d *DocPagesSetScale404Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) require(field *big.Int) { +func (d *DocPagesSetScale404Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown +// SetName sets the Name field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScale404Response) SetName(name DocPagesSetScale404ResponseName) { + d.Name = name + d.require(docPagesSetScale404ResponseFieldName) +} + +// SetCode sets the Code field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScale404Response) SetCode(code DocPagesSetScale404ResponseCode) { + d.Code = code + d.require(docPagesSetScale404ResponseFieldCode) +} + +// SetMessage sets the Message field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScale404Response) SetMessage(message string) { + d.Message = message + d.require(docPagesSetScale404ResponseFieldMessage) +} + +// SetDetails sets the Details field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesSetScale404Response) SetDetails(details map[string]any) { + d.Details = details + d.require(docPagesSetScale404ResponseFieldDetails) +} + +func (d *DocPagesSetScale404Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesSetScale404Response var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(value) + *d = DocPagesSetScale404Response(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -144656,8 +164011,8 @@ func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknow return nil } -func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) MarshalJSON() ([]byte, error) { - type embed DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown +func (d *DocPagesSetScale404Response) MarshalJSON() ([]byte, error) { + type embed DocPagesSetScale404Response var marshaler = struct { embed }{ @@ -144667,7 +164022,7 @@ func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknow return json.Marshal(explicitMarshaler) } -func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) String() string { +func (d *DocPagesSetScale404Response) String() string { if d == nil { return "" } @@ -144682,22 +164037,130 @@ func (d *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknow return fmt.Sprintf("%#v", d) } +type DocPagesSetScale404ResponseCode string + +const ( + DocPagesSetScale404ResponseCodeUnknown DocPagesSetScale404ResponseCode = "Unknown" + DocPagesSetScale404ResponseCodeInvalidArg DocPagesSetScale404ResponseCode = "InvalidArg" + DocPagesSetScale404ResponseCodeDocNotOpen DocPagesSetScale404ResponseCode = "DocNotOpen" + DocPagesSetScale404ResponseCodeDocOpenFailed DocPagesSetScale404ResponseCode = "DocOpenFailed" + DocPagesSetScale404ResponseCodeDocPasswordRequired DocPagesSetScale404ResponseCode = "DocPasswordRequired" + DocPagesSetScale404ResponseCodeDocPasswordIncorrect DocPagesSetScale404ResponseCode = "DocPasswordIncorrect" + DocPagesSetScale404ResponseCodeSharePasswordRequired DocPagesSetScale404ResponseCode = "SharePasswordRequired" + DocPagesSetScale404ResponseCodeAborted DocPagesSetScale404ResponseCode = "Aborted" + DocPagesSetScale404ResponseCodeNetwork DocPagesSetScale404ResponseCode = "Network" + DocPagesSetScale404ResponseCodeUnauthenticated DocPagesSetScale404ResponseCode = "Unauthenticated" + DocPagesSetScale404ResponseCodeForbidden DocPagesSetScale404ResponseCode = "Forbidden" + DocPagesSetScale404ResponseCodeNotFound DocPagesSetScale404ResponseCode = "NotFound" + DocPagesSetScale404ResponseCodeWireFormat DocPagesSetScale404ResponseCode = "WireFormat" + DocPagesSetScale404ResponseCodeRuntimeUnavailable DocPagesSetScale404ResponseCode = "RuntimeUnavailable" + DocPagesSetScale404ResponseCodeInvalidReference DocPagesSetScale404ResponseCode = "InvalidReference" + DocPagesSetScale404ResponseCodeWeakAnnotationSessionConflict DocPagesSetScale404ResponseCode = "WeakAnnotationSessionConflict" + DocPagesSetScale404ResponseCodeLayerVersionConflict DocPagesSetScale404ResponseCode = "LayerVersionConflict" + DocPagesSetScale404ResponseCodeNotImplemented DocPagesSetScale404ResponseCode = "NotImplemented" + DocPagesSetScale404ResponseCodeMalformedPdf DocPagesSetScale404ResponseCode = "MalformedPdf" + DocPagesSetScale404ResponseCodeSigningPending DocPagesSetScale404ResponseCode = "SigningPending" + DocPagesSetScale404ResponseCodeSigningExpired DocPagesSetScale404ResponseCode = "SigningExpired" + DocPagesSetScale404ResponseCodeSigningVersionMismatch DocPagesSetScale404ResponseCode = "SigningVersionMismatch" + DocPagesSetScale404ResponseCodeSignatureRefused DocPagesSetScale404ResponseCode = "SignatureRefused" + DocPagesSetScale404ResponseCodeProtectedDocument DocPagesSetScale404ResponseCode = "ProtectedDocument" + DocPagesSetScale404ResponseCodeStaleBase DocPagesSetScale404ResponseCode = "StaleBase" +) + +func NewDocPagesSetScale404ResponseCodeFromString(s string) (DocPagesSetScale404ResponseCode, error) { + switch s { + case "Unknown": + return DocPagesSetScale404ResponseCodeUnknown, nil + case "InvalidArg": + return DocPagesSetScale404ResponseCodeInvalidArg, nil + case "DocNotOpen": + return DocPagesSetScale404ResponseCodeDocNotOpen, nil + case "DocOpenFailed": + return DocPagesSetScale404ResponseCodeDocOpenFailed, nil + case "DocPasswordRequired": + return DocPagesSetScale404ResponseCodeDocPasswordRequired, nil + case "DocPasswordIncorrect": + return DocPagesSetScale404ResponseCodeDocPasswordIncorrect, nil + case "SharePasswordRequired": + return DocPagesSetScale404ResponseCodeSharePasswordRequired, nil + case "Aborted": + return DocPagesSetScale404ResponseCodeAborted, nil + case "Network": + return DocPagesSetScale404ResponseCodeNetwork, nil + case "Unauthenticated": + return DocPagesSetScale404ResponseCodeUnauthenticated, nil + case "Forbidden": + return DocPagesSetScale404ResponseCodeForbidden, nil + case "NotFound": + return DocPagesSetScale404ResponseCodeNotFound, nil + case "WireFormat": + return DocPagesSetScale404ResponseCodeWireFormat, nil + case "RuntimeUnavailable": + return DocPagesSetScale404ResponseCodeRuntimeUnavailable, nil + case "InvalidReference": + return DocPagesSetScale404ResponseCodeInvalidReference, nil + case "WeakAnnotationSessionConflict": + return DocPagesSetScale404ResponseCodeWeakAnnotationSessionConflict, nil + case "LayerVersionConflict": + return DocPagesSetScale404ResponseCodeLayerVersionConflict, nil + case "NotImplemented": + return DocPagesSetScale404ResponseCodeNotImplemented, nil + case "MalformedPdf": + return DocPagesSetScale404ResponseCodeMalformedPdf, nil + case "SigningPending": + return DocPagesSetScale404ResponseCodeSigningPending, nil + case "SigningExpired": + return DocPagesSetScale404ResponseCodeSigningExpired, nil + case "SigningVersionMismatch": + return DocPagesSetScale404ResponseCodeSigningVersionMismatch, nil + case "SignatureRefused": + return DocPagesSetScale404ResponseCodeSignatureRefused, nil + case "ProtectedDocument": + return DocPagesSetScale404ResponseCodeProtectedDocument, nil + case "StaleBase": + return DocPagesSetScale404ResponseCodeStaleBase, nil + } + var t DocPagesSetScale404ResponseCode + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesSetScale404ResponseCode) Ptr() *DocPagesSetScale404ResponseCode { + return &d +} + +type DocPagesSetScale404ResponseName string + +const ( + DocPagesSetScale404ResponseNameEngineError DocPagesSetScale404ResponseName = "EngineError" +) + +func NewDocPagesSetScale404ResponseNameFromString(s string) (DocPagesSetScale404ResponseName, error) { + switch s { + case "EngineError": + return DocPagesSetScale404ResponseNameEngineError, nil + } + var t DocPagesSetScale404ResponseName + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesSetScale404ResponseName) Ptr() *DocPagesSetScale404ResponseName { + return &d +} + +type DocPagesViewports200Response = []*DocPagesViewports200ResponseItem + var ( - docPagesRotate200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) - docPagesRotate200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) - docPagesRotate200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) - docPagesRotate200ResponseMetaCacheDeltaFieldLayerVersion = big.NewInt(1 << 3) - docPagesRotate200ResponseMetaCacheDeltaFieldWorking = big.NewInt(1 << 4) - docPagesRotate200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 5) + docPagesViewports200ResponseItemFieldBbox = big.NewInt(1 << 0) + docPagesViewports200ResponseItemFieldName = big.NewInt(1 << 1) + docPagesViewports200ResponseItemFieldMeasure = big.NewInt(1 << 2) + docPagesViewports200ResponseItemFieldOwned = big.NewInt(1 << 3) ) -type DocPagesRotate200ResponseMetaCacheDelta struct { - PreviousDocVersion int `json:"previousDocVersion" url:"previousDocVersion"` - DocVersion int `json:"docVersion" url:"docVersion"` - AnnotationsVersion *int `json:"annotationsVersion,omitempty" url:"annotationsVersion,omitempty"` - LayerVersion *int `json:"layerVersion,omitempty" url:"layerVersion,omitempty"` - Working *bool `json:"working,omitempty" url:"working,omitempty"` - Pages []*DocPagesRotate200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` +type DocPagesViewports200ResponseItem struct { + Bbox *DocPagesViewports200ResponseItemBbox `json:"bbox" url:"bbox"` + Name *string `json:"name,omitempty" url:"name,omitempty"` + Measure *DocPagesViewports200ResponseItemMeasure `json:"measure,omitempty" url:"measure,omitempty"` + Owned bool `json:"owned" url:"owned"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -144706,111 +164169,83 @@ type DocPagesRotate200ResponseMetaCacheDelta struct { rawJSON json.RawMessage } -func (d *DocPagesRotate200ResponseMetaCacheDelta) GetPreviousDocVersion() int { - if d == nil { - return 0 - } - return d.PreviousDocVersion -} - -func (d *DocPagesRotate200ResponseMetaCacheDelta) GetDocVersion() int { - if d == nil { - return 0 - } - return d.DocVersion -} - -func (d *DocPagesRotate200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { +func (d *DocPagesViewports200ResponseItem) GetBbox() *DocPagesViewports200ResponseItemBbox { if d == nil { return nil } - return d.AnnotationsVersion + return d.Bbox } -func (d *DocPagesRotate200ResponseMetaCacheDelta) GetLayerVersion() *int { +func (d *DocPagesViewports200ResponseItem) GetName() *string { if d == nil { return nil } - return d.LayerVersion + return d.Name } -func (d *DocPagesRotate200ResponseMetaCacheDelta) GetWorking() *bool { +func (d *DocPagesViewports200ResponseItem) GetMeasure() *DocPagesViewports200ResponseItemMeasure { if d == nil { return nil } - return d.Working + return d.Measure } -func (d *DocPagesRotate200ResponseMetaCacheDelta) GetPages() []*DocPagesRotate200ResponseMetaCacheDeltaPagesItem { +func (d *DocPagesViewports200ResponseItem) GetOwned() bool { if d == nil { - return nil + return false } - return d.Pages + return d.Owned } -func (d *DocPagesRotate200ResponseMetaCacheDelta) GetExtraProperties() map[string]interface{} { +func (d *DocPagesViewports200ResponseItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesRotate200ResponseMetaCacheDelta) require(field *big.Int) { +func (d *DocPagesViewports200ResponseItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPreviousDocVersion sets the PreviousDocVersion field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRotate200ResponseMetaCacheDelta) SetPreviousDocVersion(previousDocVersion int) { - d.PreviousDocVersion = previousDocVersion - d.require(docPagesRotate200ResponseMetaCacheDeltaFieldPreviousDocVersion) -} - -// SetDocVersion sets the DocVersion field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRotate200ResponseMetaCacheDelta) SetDocVersion(docVersion int) { - d.DocVersion = docVersion - d.require(docPagesRotate200ResponseMetaCacheDeltaFieldDocVersion) -} - -// SetAnnotationsVersion sets the AnnotationsVersion field and marks it as non-optional; +// SetBbox sets the Bbox field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRotate200ResponseMetaCacheDelta) SetAnnotationsVersion(annotationsVersion *int) { - d.AnnotationsVersion = annotationsVersion - d.require(docPagesRotate200ResponseMetaCacheDeltaFieldAnnotationsVersion) +func (d *DocPagesViewports200ResponseItem) SetBbox(bbox *DocPagesViewports200ResponseItemBbox) { + d.Bbox = bbox + d.require(docPagesViewports200ResponseItemFieldBbox) } -// SetLayerVersion sets the LayerVersion field and marks it as non-optional; +// SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRotate200ResponseMetaCacheDelta) SetLayerVersion(layerVersion *int) { - d.LayerVersion = layerVersion - d.require(docPagesRotate200ResponseMetaCacheDeltaFieldLayerVersion) +func (d *DocPagesViewports200ResponseItem) SetName(name *string) { + d.Name = name + d.require(docPagesViewports200ResponseItemFieldName) } -// SetWorking sets the Working field and marks it as non-optional; +// SetMeasure sets the Measure field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRotate200ResponseMetaCacheDelta) SetWorking(working *bool) { - d.Working = working - d.require(docPagesRotate200ResponseMetaCacheDeltaFieldWorking) +func (d *DocPagesViewports200ResponseItem) SetMeasure(measure *DocPagesViewports200ResponseItemMeasure) { + d.Measure = measure + d.require(docPagesViewports200ResponseItemFieldMeasure) } -// SetPages sets the Pages field and marks it as non-optional; +// SetOwned sets the Owned field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRotate200ResponseMetaCacheDelta) SetPages(pages []*DocPagesRotate200ResponseMetaCacheDeltaPagesItem) { - d.Pages = pages - d.require(docPagesRotate200ResponseMetaCacheDeltaFieldPages) +func (d *DocPagesViewports200ResponseItem) SetOwned(owned bool) { + d.Owned = owned + d.require(docPagesViewports200ResponseItemFieldOwned) } -func (d *DocPagesRotate200ResponseMetaCacheDelta) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesRotate200ResponseMetaCacheDelta +func (d *DocPagesViewports200ResponseItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesViewports200ResponseItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesRotate200ResponseMetaCacheDelta(value) + *d = DocPagesViewports200ResponseItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -144820,8 +164255,8 @@ func (d *DocPagesRotate200ResponseMetaCacheDelta) UnmarshalJSON(data []byte) err return nil } -func (d *DocPagesRotate200ResponseMetaCacheDelta) MarshalJSON() ([]byte, error) { - type embed DocPagesRotate200ResponseMetaCacheDelta +func (d *DocPagesViewports200ResponseItem) MarshalJSON() ([]byte, error) { + type embed DocPagesViewports200ResponseItem var marshaler = struct { embed }{ @@ -144831,7 +164266,7 @@ func (d *DocPagesRotate200ResponseMetaCacheDelta) MarshalJSON() ([]byte, error) return json.Marshal(explicitMarshaler) } -func (d *DocPagesRotate200ResponseMetaCacheDelta) String() string { +func (d *DocPagesViewports200ResponseItem) String() string { if d == nil { return "" } @@ -144847,13 +164282,17 @@ func (d *DocPagesRotate200ResponseMetaCacheDelta) String() string { } var ( - docPagesRotate200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) - docPagesRotate200ResponseMetaCacheDeltaPagesItemFieldCache = big.NewInt(1 << 1) + docPagesViewports200ResponseItemBboxFieldLeft = big.NewInt(1 << 0) + docPagesViewports200ResponseItemBboxFieldBottom = big.NewInt(1 << 1) + docPagesViewports200ResponseItemBboxFieldRight = big.NewInt(1 << 2) + docPagesViewports200ResponseItemBboxFieldTop = big.NewInt(1 << 3) ) -type DocPagesRotate200ResponseMetaCacheDeltaPagesItem struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Cache *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache `json:"cache" url:"cache"` +type DocPagesViewports200ResponseItemBbox struct { + Left float64 `json:"left" url:"left"` + Bottom float64 `json:"bottom" url:"bottom"` + Right float64 `json:"right" url:"right"` + Top float64 `json:"top" url:"top"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -144862,55 +164301,83 @@ type DocPagesRotate200ResponseMetaCacheDeltaPagesItem struct { rawJSON json.RawMessage } -func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItem) GetPageObjectNumber() int { +func (d *DocPagesViewports200ResponseItemBbox) GetLeft() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.Left } -func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItem) GetCache() *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache { +func (d *DocPagesViewports200ResponseItemBbox) GetBottom() float64 { if d == nil { - return nil + return 0 } - return d.Cache + return d.Bottom } -func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItem) GetExtraProperties() map[string]interface{} { +func (d *DocPagesViewports200ResponseItemBbox) GetRight() float64 { + if d == nil { + return 0 + } + return d.Right +} + +func (d *DocPagesViewports200ResponseItemBbox) GetTop() float64 { + if d == nil { + return 0 + } + return d.Top +} + +func (d *DocPagesViewports200ResponseItemBbox) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItem) require(field *big.Int) { +func (d *DocPagesViewports200ResponseItemBbox) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetLeft sets the Left field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItem) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docPagesRotate200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber) +func (d *DocPagesViewports200ResponseItemBbox) SetLeft(left float64) { + d.Left = left + d.require(docPagesViewports200ResponseItemBboxFieldLeft) } -// SetCache sets the Cache field and marks it as non-optional; +// SetBottom sets the Bottom field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItem) SetCache(cache *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache) { - d.Cache = cache - d.require(docPagesRotate200ResponseMetaCacheDeltaPagesItemFieldCache) +func (d *DocPagesViewports200ResponseItemBbox) SetBottom(bottom float64) { + d.Bottom = bottom + d.require(docPagesViewports200ResponseItemBboxFieldBottom) } -func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesRotate200ResponseMetaCacheDeltaPagesItem +// SetRight sets the Right field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemBbox) SetRight(right float64) { + d.Right = right + d.require(docPagesViewports200ResponseItemBboxFieldRight) +} + +// SetTop sets the Top field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemBbox) SetTop(top float64) { + d.Top = top + d.require(docPagesViewports200ResponseItemBboxFieldTop) +} + +func (d *DocPagesViewports200ResponseItemBbox) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesViewports200ResponseItemBbox var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesRotate200ResponseMetaCacheDeltaPagesItem(value) + *d = DocPagesViewports200ResponseItemBbox(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -144920,8 +164387,8 @@ func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItem) UnmarshalJSON(data [] return nil } -func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItem) MarshalJSON() ([]byte, error) { - type embed DocPagesRotate200ResponseMetaCacheDeltaPagesItem +func (d *DocPagesViewports200ResponseItemBbox) MarshalJSON() ([]byte, error) { + type embed DocPagesViewports200ResponseItemBbox var marshaler = struct { embed }{ @@ -144931,7 +164398,7 @@ func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItem) MarshalJSON() ([]byte return json.Marshal(explicitMarshaler) } -func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItem) String() string { +func (d *DocPagesViewports200ResponseItemBbox) String() string { if d == nil { return "" } @@ -144940,20 +164407,163 @@ func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItem) String() string { return value } } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) + if value, err := internal.StringifyJSON(d); err == nil { + return value + } + return fmt.Sprintf("%#v", d) +} + +type DocPagesViewports200ResponseItemMeasure struct { + Subtype string + Rl *DocPagesViewports200ResponseItemMeasureRl + Geo *DocPagesViewports200ResponseItemMeasureGeo + Unknown *DocPagesViewports200ResponseItemMeasureUnknown + + rawJSON json.RawMessage +} + +func (d *DocPagesViewports200ResponseItemMeasure) GetSubtype() string { + if d == nil { + return "" + } + return d.Subtype +} + +func (d *DocPagesViewports200ResponseItemMeasure) GetRl() *DocPagesViewports200ResponseItemMeasureRl { + if d == nil { + return nil + } + return d.Rl +} + +func (d *DocPagesViewports200ResponseItemMeasure) GetGeo() *DocPagesViewports200ResponseItemMeasureGeo { + if d == nil { + return nil + } + return d.Geo +} + +func (d *DocPagesViewports200ResponseItemMeasure) GetUnknown() *DocPagesViewports200ResponseItemMeasureUnknown { + if d == nil { + return nil + } + return d.Unknown +} + +func (d *DocPagesViewports200ResponseItemMeasure) UnmarshalJSON(data []byte) error { + var unmarshaler struct { + Subtype string `json:"subtype"` + } + if err := json.Unmarshal(data, &unmarshaler); err != nil { + return err + } + d.Subtype = unmarshaler.Subtype + if unmarshaler.Subtype == "" { + return fmt.Errorf("%T did not include discriminant subtype", d) + } + switch unmarshaler.Subtype { + case "RL": + value := new(DocPagesViewports200ResponseItemMeasureRl) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Rl = value + case "GEO": + value := new(DocPagesViewports200ResponseItemMeasureGeo) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Geo = value + case "unknown": + value := new(DocPagesViewports200ResponseItemMeasureUnknown) + if err := json.Unmarshal(data, &value); err != nil { + return err + } + d.Unknown = value + } + d.rawJSON = json.RawMessage(data) + return nil +} + +func (d DocPagesViewports200ResponseItemMeasure) MarshalJSON() ([]byte, error) { + if err := d.validate(); err != nil { + return nil, err + } + if d.Rl != nil { + return internal.MarshalJSONWithExtraProperty(d.Rl, "subtype", "RL") + } + if d.Geo != nil { + return internal.MarshalJSONWithExtraProperty(d.Geo, "subtype", "GEO") + } + if d.Unknown != nil { + return internal.MarshalJSONWithExtraProperty(d.Unknown, "subtype", "unknown") + } + if len(d.rawJSON) > 0 { + return d.rawJSON, nil + } + return nil, fmt.Errorf("type %T does not define a non-empty union type", d) +} + +type DocPagesViewports200ResponseItemMeasureVisitor interface { + VisitRl(*DocPagesViewports200ResponseItemMeasureRl) error + VisitGeo(*DocPagesViewports200ResponseItemMeasureGeo) error + VisitUnknown(*DocPagesViewports200ResponseItemMeasureUnknown) error +} + +func (d *DocPagesViewports200ResponseItemMeasure) Accept(visitor DocPagesViewports200ResponseItemMeasureVisitor) error { + if d.Rl != nil { + return visitor.VisitRl(d.Rl) + } + if d.Geo != nil { + return visitor.VisitGeo(d.Geo) + } + if d.Unknown != nil { + return visitor.VisitUnknown(d.Unknown) + } + return fmt.Errorf("type %T does not define a non-empty union type", d) +} + +func (d *DocPagesViewports200ResponseItemMeasure) validate() error { + if d == nil { + return fmt.Errorf("type %T is nil", d) + } + var fields []string + if d.Rl != nil { + fields = append(fields, "RL") + } + if d.Geo != nil { + fields = append(fields, "GEO") + } + if d.Unknown != nil { + fields = append(fields, "unknown") + } + if len(fields) == 0 { + if d.Subtype != "" { + if len(d.rawJSON) > 0 { + return nil + } + return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Subtype) + } + return fmt.Errorf("type %T is empty", d) + } + if len(fields) > 1 { + return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) + } + if d.Subtype != "" { + field := fields[0] + if d.Subtype != field { + return fmt.Errorf( + "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", + d, + d.Subtype, + d, + ) + } + } + return nil } -var ( - docPagesRotate200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion = big.NewInt(1 << 0) - docPagesRotate200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion = big.NewInt(1 << 1) -) - -type DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache struct { - ContentVersion int `json:"contentVersion" url:"contentVersion"` - AnnotationVersion int `json:"annotationVersion" url:"annotationVersion"` +type DocPagesViewports200ResponseItemMeasureGeo struct { // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -144962,55 +164572,27 @@ type DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache struct { rawJSON json.RawMessage } -func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache) GetContentVersion() int { - if d == nil { - return 0 - } - return d.ContentVersion -} - -func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache) GetAnnotationVersion() int { - if d == nil { - return 0 - } - return d.AnnotationVersion -} - -func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache) GetExtraProperties() map[string]interface{} { +func (d *DocPagesViewports200ResponseItemMeasureGeo) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache) require(field *big.Int) { +func (d *DocPagesViewports200ResponseItemMeasureGeo) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetContentVersion sets the ContentVersion field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache) SetContentVersion(contentVersion int) { - d.ContentVersion = contentVersion - d.require(docPagesRotate200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion) -} - -// SetAnnotationVersion sets the AnnotationVersion field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache) SetAnnotationVersion(annotationVersion int) { - d.AnnotationVersion = annotationVersion - d.require(docPagesRotate200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion) -} - -func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache +func (d *DocPagesViewports200ResponseItemMeasureGeo) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesViewports200ResponseItemMeasureGeo var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache(value) + *d = DocPagesViewports200ResponseItemMeasureGeo(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -145020,8 +164602,8 @@ func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJSON(da return nil } -func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON() ([]byte, error) { - type embed DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache +func (d *DocPagesViewports200ResponseItemMeasureGeo) MarshalJSON() ([]byte, error) { + type embed DocPagesViewports200ResponseItemMeasureGeo var marshaler = struct { embed }{ @@ -145031,7 +164613,7 @@ func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON() ([ return json.Marshal(explicitMarshaler) } -func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache) String() string { +func (d *DocPagesViewports200ResponseItemMeasureGeo) String() string { if d == nil { return "" } @@ -145047,17 +164629,27 @@ func (d *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache) String() string } var ( - docPagesRotate400ResponseFieldName = big.NewInt(1 << 0) - docPagesRotate400ResponseFieldCode = big.NewInt(1 << 1) - docPagesRotate400ResponseFieldMessage = big.NewInt(1 << 2) - docPagesRotate400ResponseFieldDetails = big.NewInt(1 << 3) + docPagesViewports200ResponseItemMeasureRlFieldRatio = big.NewInt(1 << 0) + docPagesViewports200ResponseItemMeasureRlFieldX = big.NewInt(1 << 1) + docPagesViewports200ResponseItemMeasureRlFieldY = big.NewInt(1 << 2) + docPagesViewports200ResponseItemMeasureRlFieldDistance = big.NewInt(1 << 3) + docPagesViewports200ResponseItemMeasureRlFieldArea = big.NewInt(1 << 4) + docPagesViewports200ResponseItemMeasureRlFieldAngle = big.NewInt(1 << 5) + docPagesViewports200ResponseItemMeasureRlFieldSlope = big.NewInt(1 << 6) + docPagesViewports200ResponseItemMeasureRlFieldOrigin = big.NewInt(1 << 7) + docPagesViewports200ResponseItemMeasureRlFieldCyx = big.NewInt(1 << 8) ) -type DocPagesRotate400Response struct { - Name DocPagesRotate400ResponseName `json:"name" url:"name"` - Code DocPagesRotate400ResponseCode `json:"code" url:"code"` - Message string `json:"message" url:"message"` - Details map[string]any `json:"details,omitempty" url:"details,omitempty"` +type DocPagesViewports200ResponseItemMeasureRl struct { + Ratio *string `json:"ratio,omitempty" url:"ratio,omitempty"` + X []*DocPagesViewports200ResponseItemMeasureRlXItem `json:"x" url:"x"` + Y []*DocPagesViewports200ResponseItemMeasureRlYItem `json:"y,omitempty" url:"y,omitempty"` + Distance []*DocPagesViewports200ResponseItemMeasureRlDistanceItem `json:"distance" url:"distance"` + Area []*DocPagesViewports200ResponseItemMeasureRlAreaItem `json:"area" url:"area"` + Angle []*DocPagesViewports200ResponseItemMeasureRlAngleItem `json:"angle,omitempty" url:"angle,omitempty"` + Slope []*DocPagesViewports200ResponseItemMeasureRlSlopeItem `json:"slope,omitempty" url:"slope,omitempty"` + Origin *DocPagesViewports200ResponseItemMeasureRlOrigin `json:"origin,omitempty" url:"origin,omitempty"` + Cyx *float64 `json:"cyx,omitempty" url:"cyx,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -145066,83 +164658,153 @@ type DocPagesRotate400Response struct { rawJSON json.RawMessage } -func (d *DocPagesRotate400Response) GetName() DocPagesRotate400ResponseName { +func (d *DocPagesViewports200ResponseItemMeasureRl) GetRatio() *string { if d == nil { - return "" + return nil } - return d.Name + return d.Ratio } -func (d *DocPagesRotate400Response) GetCode() DocPagesRotate400ResponseCode { +func (d *DocPagesViewports200ResponseItemMeasureRl) GetX() []*DocPagesViewports200ResponseItemMeasureRlXItem { if d == nil { - return "" + return nil } - return d.Code + return d.X } -func (d *DocPagesRotate400Response) GetMessage() string { +func (d *DocPagesViewports200ResponseItemMeasureRl) GetY() []*DocPagesViewports200ResponseItemMeasureRlYItem { if d == nil { - return "" + return nil } - return d.Message + return d.Y } -func (d *DocPagesRotate400Response) GetDetails() map[string]any { +func (d *DocPagesViewports200ResponseItemMeasureRl) GetDistance() []*DocPagesViewports200ResponseItemMeasureRlDistanceItem { if d == nil { return nil } - return d.Details + return d.Distance } -func (d *DocPagesRotate400Response) GetExtraProperties() map[string]interface{} { +func (d *DocPagesViewports200ResponseItemMeasureRl) GetArea() []*DocPagesViewports200ResponseItemMeasureRlAreaItem { + if d == nil { + return nil + } + return d.Area +} + +func (d *DocPagesViewports200ResponseItemMeasureRl) GetAngle() []*DocPagesViewports200ResponseItemMeasureRlAngleItem { + if d == nil { + return nil + } + return d.Angle +} + +func (d *DocPagesViewports200ResponseItemMeasureRl) GetSlope() []*DocPagesViewports200ResponseItemMeasureRlSlopeItem { + if d == nil { + return nil + } + return d.Slope +} + +func (d *DocPagesViewports200ResponseItemMeasureRl) GetOrigin() *DocPagesViewports200ResponseItemMeasureRlOrigin { + if d == nil { + return nil + } + return d.Origin +} + +func (d *DocPagesViewports200ResponseItemMeasureRl) GetCyx() *float64 { + if d == nil { + return nil + } + return d.Cyx +} + +func (d *DocPagesViewports200ResponseItemMeasureRl) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesRotate400Response) require(field *big.Int) { +func (d *DocPagesViewports200ResponseItemMeasureRl) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetName sets the Name field and marks it as non-optional; +// SetRatio sets the Ratio field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRotate400Response) SetName(name DocPagesRotate400ResponseName) { - d.Name = name - d.require(docPagesRotate400ResponseFieldName) +func (d *DocPagesViewports200ResponseItemMeasureRl) SetRatio(ratio *string) { + d.Ratio = ratio + d.require(docPagesViewports200ResponseItemMeasureRlFieldRatio) } -// SetCode sets the Code field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRotate400Response) SetCode(code DocPagesRotate400ResponseCode) { - d.Code = code - d.require(docPagesRotate400ResponseFieldCode) +func (d *DocPagesViewports200ResponseItemMeasureRl) SetX(x []*DocPagesViewports200ResponseItemMeasureRlXItem) { + d.X = x + d.require(docPagesViewports200ResponseItemMeasureRlFieldX) } -// SetMessage sets the Message field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRotate400Response) SetMessage(message string) { - d.Message = message - d.require(docPagesRotate400ResponseFieldMessage) +func (d *DocPagesViewports200ResponseItemMeasureRl) SetY(y []*DocPagesViewports200ResponseItemMeasureRlYItem) { + d.Y = y + d.require(docPagesViewports200ResponseItemMeasureRlFieldY) } -// SetDetails sets the Details field and marks it as non-optional; +// SetDistance sets the Distance field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRotate400Response) SetDetails(details map[string]any) { - d.Details = details - d.require(docPagesRotate400ResponseFieldDetails) +func (d *DocPagesViewports200ResponseItemMeasureRl) SetDistance(distance []*DocPagesViewports200ResponseItemMeasureRlDistanceItem) { + d.Distance = distance + d.require(docPagesViewports200ResponseItemMeasureRlFieldDistance) } -func (d *DocPagesRotate400Response) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesRotate400Response +// SetArea sets the Area field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRl) SetArea(area []*DocPagesViewports200ResponseItemMeasureRlAreaItem) { + d.Area = area + d.require(docPagesViewports200ResponseItemMeasureRlFieldArea) +} + +// SetAngle sets the Angle field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRl) SetAngle(angle []*DocPagesViewports200ResponseItemMeasureRlAngleItem) { + d.Angle = angle + d.require(docPagesViewports200ResponseItemMeasureRlFieldAngle) +} + +// SetSlope sets the Slope field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRl) SetSlope(slope []*DocPagesViewports200ResponseItemMeasureRlSlopeItem) { + d.Slope = slope + d.require(docPagesViewports200ResponseItemMeasureRlFieldSlope) +} + +// SetOrigin sets the Origin field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRl) SetOrigin(origin *DocPagesViewports200ResponseItemMeasureRlOrigin) { + d.Origin = origin + d.require(docPagesViewports200ResponseItemMeasureRlFieldOrigin) +} + +// SetCyx sets the Cyx field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRl) SetCyx(cyx *float64) { + d.Cyx = cyx + d.require(docPagesViewports200ResponseItemMeasureRlFieldCyx) +} + +func (d *DocPagesViewports200ResponseItemMeasureRl) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesViewports200ResponseItemMeasureRl var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesRotate400Response(value) + *d = DocPagesViewports200ResponseItemMeasureRl(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -145152,8 +164814,8 @@ func (d *DocPagesRotate400Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocPagesRotate400Response) MarshalJSON() ([]byte, error) { - type embed DocPagesRotate400Response +func (d *DocPagesViewports200ResponseItemMeasureRl) MarshalJSON() ([]byte, error) { + type embed DocPagesViewports200ResponseItemMeasureRl var marshaler = struct { embed }{ @@ -145163,7 +164825,7 @@ func (d *DocPagesRotate400Response) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocPagesRotate400Response) String() string { +func (d *DocPagesViewports200ResponseItemMeasureRl) String() string { if d == nil { return "" } @@ -145178,213 +164840,199 @@ func (d *DocPagesRotate400Response) String() string { return fmt.Sprintf("%#v", d) } -type DocPagesRotate400ResponseCode string - -const ( - DocPagesRotate400ResponseCodeUnknown DocPagesRotate400ResponseCode = "Unknown" - DocPagesRotate400ResponseCodeInvalidArg DocPagesRotate400ResponseCode = "InvalidArg" - DocPagesRotate400ResponseCodeDocNotOpen DocPagesRotate400ResponseCode = "DocNotOpen" - DocPagesRotate400ResponseCodeDocOpenFailed DocPagesRotate400ResponseCode = "DocOpenFailed" - DocPagesRotate400ResponseCodeDocPasswordRequired DocPagesRotate400ResponseCode = "DocPasswordRequired" - DocPagesRotate400ResponseCodeDocPasswordIncorrect DocPagesRotate400ResponseCode = "DocPasswordIncorrect" - DocPagesRotate400ResponseCodeSharePasswordRequired DocPagesRotate400ResponseCode = "SharePasswordRequired" - DocPagesRotate400ResponseCodeAborted DocPagesRotate400ResponseCode = "Aborted" - DocPagesRotate400ResponseCodeNetwork DocPagesRotate400ResponseCode = "Network" - DocPagesRotate400ResponseCodeUnauthenticated DocPagesRotate400ResponseCode = "Unauthenticated" - DocPagesRotate400ResponseCodeForbidden DocPagesRotate400ResponseCode = "Forbidden" - DocPagesRotate400ResponseCodeNotFound DocPagesRotate400ResponseCode = "NotFound" - DocPagesRotate400ResponseCodeWireFormat DocPagesRotate400ResponseCode = "WireFormat" - DocPagesRotate400ResponseCodeRuntimeUnavailable DocPagesRotate400ResponseCode = "RuntimeUnavailable" - DocPagesRotate400ResponseCodeInvalidReference DocPagesRotate400ResponseCode = "InvalidReference" - DocPagesRotate400ResponseCodeWeakAnnotationSessionConflict DocPagesRotate400ResponseCode = "WeakAnnotationSessionConflict" - DocPagesRotate400ResponseCodeLayerVersionConflict DocPagesRotate400ResponseCode = "LayerVersionConflict" - DocPagesRotate400ResponseCodeNotImplemented DocPagesRotate400ResponseCode = "NotImplemented" - DocPagesRotate400ResponseCodeMalformedPdf DocPagesRotate400ResponseCode = "MalformedPdf" - DocPagesRotate400ResponseCodeSigningPending DocPagesRotate400ResponseCode = "SigningPending" - DocPagesRotate400ResponseCodeSigningExpired DocPagesRotate400ResponseCode = "SigningExpired" - DocPagesRotate400ResponseCodeSigningVersionMismatch DocPagesRotate400ResponseCode = "SigningVersionMismatch" - DocPagesRotate400ResponseCodeSignatureRefused DocPagesRotate400ResponseCode = "SignatureRefused" - DocPagesRotate400ResponseCodeProtectedDocument DocPagesRotate400ResponseCode = "ProtectedDocument" - DocPagesRotate400ResponseCodeStaleBase DocPagesRotate400ResponseCode = "StaleBase" +var ( + docPagesViewports200ResponseItemMeasureRlAngleItemFieldUnit = big.NewInt(1 << 0) + docPagesViewports200ResponseItemMeasureRlAngleItemFieldConversion = big.NewInt(1 << 1) + docPagesViewports200ResponseItemMeasureRlAngleItemFieldFraction = big.NewInt(1 << 2) + docPagesViewports200ResponseItemMeasureRlAngleItemFieldPrecision = big.NewInt(1 << 3) + docPagesViewports200ResponseItemMeasureRlAngleItemFieldFixed = big.NewInt(1 << 4) + docPagesViewports200ResponseItemMeasureRlAngleItemFieldThousands = big.NewInt(1 << 5) + docPagesViewports200ResponseItemMeasureRlAngleItemFieldDecimal = big.NewInt(1 << 6) + docPagesViewports200ResponseItemMeasureRlAngleItemFieldPrefixSpacing = big.NewInt(1 << 7) + docPagesViewports200ResponseItemMeasureRlAngleItemFieldSuffixSpacing = big.NewInt(1 << 8) + docPagesViewports200ResponseItemMeasureRlAngleItemFieldLabelPosition = big.NewInt(1 << 9) ) -func NewDocPagesRotate400ResponseCodeFromString(s string) (DocPagesRotate400ResponseCode, error) { - switch s { - case "Unknown": - return DocPagesRotate400ResponseCodeUnknown, nil - case "InvalidArg": - return DocPagesRotate400ResponseCodeInvalidArg, nil - case "DocNotOpen": - return DocPagesRotate400ResponseCodeDocNotOpen, nil - case "DocOpenFailed": - return DocPagesRotate400ResponseCodeDocOpenFailed, nil - case "DocPasswordRequired": - return DocPagesRotate400ResponseCodeDocPasswordRequired, nil - case "DocPasswordIncorrect": - return DocPagesRotate400ResponseCodeDocPasswordIncorrect, nil - case "SharePasswordRequired": - return DocPagesRotate400ResponseCodeSharePasswordRequired, nil - case "Aborted": - return DocPagesRotate400ResponseCodeAborted, nil - case "Network": - return DocPagesRotate400ResponseCodeNetwork, nil - case "Unauthenticated": - return DocPagesRotate400ResponseCodeUnauthenticated, nil - case "Forbidden": - return DocPagesRotate400ResponseCodeForbidden, nil - case "NotFound": - return DocPagesRotate400ResponseCodeNotFound, nil - case "WireFormat": - return DocPagesRotate400ResponseCodeWireFormat, nil - case "RuntimeUnavailable": - return DocPagesRotate400ResponseCodeRuntimeUnavailable, nil - case "InvalidReference": - return DocPagesRotate400ResponseCodeInvalidReference, nil - case "WeakAnnotationSessionConflict": - return DocPagesRotate400ResponseCodeWeakAnnotationSessionConflict, nil - case "LayerVersionConflict": - return DocPagesRotate400ResponseCodeLayerVersionConflict, nil - case "NotImplemented": - return DocPagesRotate400ResponseCodeNotImplemented, nil - case "MalformedPdf": - return DocPagesRotate400ResponseCodeMalformedPdf, nil - case "SigningPending": - return DocPagesRotate400ResponseCodeSigningPending, nil - case "SigningExpired": - return DocPagesRotate400ResponseCodeSigningExpired, nil - case "SigningVersionMismatch": - return DocPagesRotate400ResponseCodeSigningVersionMismatch, nil - case "SignatureRefused": - return DocPagesRotate400ResponseCodeSignatureRefused, nil - case "ProtectedDocument": - return DocPagesRotate400ResponseCodeProtectedDocument, nil - case "StaleBase": - return DocPagesRotate400ResponseCodeStaleBase, nil - } - var t DocPagesRotate400ResponseCode - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocPagesRotate400ResponseCode) Ptr() *DocPagesRotate400ResponseCode { - return &d -} +type DocPagesViewports200ResponseItemMeasureRlAngleItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocPagesViewports200ResponseItemMeasureRlAngleItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocPagesViewports200ResponseItemMeasureRlAngleItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` -type DocPagesRotate400ResponseName string + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` -const ( - DocPagesRotate400ResponseNameEngineError DocPagesRotate400ResponseName = "EngineError" -) + extraProperties map[string]interface{} + rawJSON json.RawMessage +} -func NewDocPagesRotate400ResponseNameFromString(s string) (DocPagesRotate400ResponseName, error) { - switch s { - case "EngineError": - return DocPagesRotate400ResponseNameEngineError, nil +func (d *DocPagesViewports200ResponseItemMeasureRlAngleItem) GetUnit() string { + if d == nil { + return "" } - var t DocPagesRotate400ResponseName - return "", fmt.Errorf("%s is not a valid %T", s, t) + return d.Unit } -func (d DocPagesRotate400ResponseName) Ptr() *DocPagesRotate400ResponseName { - return &d +func (d *DocPagesViewports200ResponseItemMeasureRlAngleItem) GetConversion() *float64 { + if d == nil { + return nil + } + return d.Conversion } -var ( - docPagesRotate404ResponseFieldName = big.NewInt(1 << 0) - docPagesRotate404ResponseFieldCode = big.NewInt(1 << 1) - docPagesRotate404ResponseFieldMessage = big.NewInt(1 << 2) - docPagesRotate404ResponseFieldDetails = big.NewInt(1 << 3) -) +func (d *DocPagesViewports200ResponseItemMeasureRlAngleItem) GetFraction() *DocPagesViewports200ResponseItemMeasureRlAngleItemFraction { + if d == nil { + return nil + } + return d.Fraction +} -type DocPagesRotate404Response struct { - Name DocPagesRotate404ResponseName `json:"name" url:"name"` - Code DocPagesRotate404ResponseCode `json:"code" url:"code"` - Message string `json:"message" url:"message"` - Details map[string]any `json:"details,omitempty" url:"details,omitempty"` +func (d *DocPagesViewports200ResponseItemMeasureRlAngleItem) GetPrecision() *int { + if d == nil { + return nil + } + return d.Precision +} - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +func (d *DocPagesViewports200ResponseItemMeasureRlAngleItem) GetFixed() *bool { + if d == nil { + return nil + } + return d.Fixed +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocPagesViewports200ResponseItemMeasureRlAngleItem) GetThousands() *string { + if d == nil { + return nil + } + return d.Thousands } -func (d *DocPagesRotate404Response) GetName() DocPagesRotate404ResponseName { +func (d *DocPagesViewports200ResponseItemMeasureRlAngleItem) GetDecimal() *string { if d == nil { - return "" + return nil } - return d.Name + return d.Decimal } -func (d *DocPagesRotate404Response) GetCode() DocPagesRotate404ResponseCode { +func (d *DocPagesViewports200ResponseItemMeasureRlAngleItem) GetPrefixSpacing() *string { if d == nil { - return "" + return nil } - return d.Code + return d.PrefixSpacing } -func (d *DocPagesRotate404Response) GetMessage() string { +func (d *DocPagesViewports200ResponseItemMeasureRlAngleItem) GetSuffixSpacing() *string { if d == nil { - return "" + return nil } - return d.Message + return d.SuffixSpacing } -func (d *DocPagesRotate404Response) GetDetails() map[string]any { +func (d *DocPagesViewports200ResponseItemMeasureRlAngleItem) GetLabelPosition() *DocPagesViewports200ResponseItemMeasureRlAngleItemLabelPosition { if d == nil { return nil } - return d.Details + return d.LabelPosition } -func (d *DocPagesRotate404Response) GetExtraProperties() map[string]interface{} { +func (d *DocPagesViewports200ResponseItemMeasureRlAngleItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesRotate404Response) require(field *big.Int) { +func (d *DocPagesViewports200ResponseItemMeasureRlAngleItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetName sets the Name field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRotate404Response) SetName(name DocPagesRotate404ResponseName) { - d.Name = name - d.require(docPagesRotate404ResponseFieldName) +func (d *DocPagesViewports200ResponseItemMeasureRlAngleItem) SetUnit(unit string) { + d.Unit = unit + d.require(docPagesViewports200ResponseItemMeasureRlAngleItemFieldUnit) } -// SetCode sets the Code field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRotate404Response) SetCode(code DocPagesRotate404ResponseCode) { - d.Code = code - d.require(docPagesRotate404ResponseFieldCode) +func (d *DocPagesViewports200ResponseItemMeasureRlAngleItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docPagesViewports200ResponseItemMeasureRlAngleItemFieldConversion) } -// SetMessage sets the Message field and marks it as non-optional; +// SetFraction sets the Fraction field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRotate404Response) SetMessage(message string) { - d.Message = message - d.require(docPagesRotate404ResponseFieldMessage) +func (d *DocPagesViewports200ResponseItemMeasureRlAngleItem) SetFraction(fraction *DocPagesViewports200ResponseItemMeasureRlAngleItemFraction) { + d.Fraction = fraction + d.require(docPagesViewports200ResponseItemMeasureRlAngleItemFieldFraction) } -// SetDetails sets the Details field and marks it as non-optional; +// SetPrecision sets the Precision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesRotate404Response) SetDetails(details map[string]any) { - d.Details = details - d.require(docPagesRotate404ResponseFieldDetails) +func (d *DocPagesViewports200ResponseItemMeasureRlAngleItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docPagesViewports200ResponseItemMeasureRlAngleItemFieldPrecision) } -func (d *DocPagesRotate404Response) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesRotate404Response +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlAngleItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docPagesViewports200ResponseItemMeasureRlAngleItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlAngleItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docPagesViewports200ResponseItemMeasureRlAngleItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlAngleItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docPagesViewports200ResponseItemMeasureRlAngleItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlAngleItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docPagesViewports200ResponseItemMeasureRlAngleItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlAngleItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docPagesViewports200ResponseItemMeasureRlAngleItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlAngleItem) SetLabelPosition(labelPosition *DocPagesViewports200ResponseItemMeasureRlAngleItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docPagesViewports200ResponseItemMeasureRlAngleItemFieldLabelPosition) +} + +func (d *DocPagesViewports200ResponseItemMeasureRlAngleItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesViewports200ResponseItemMeasureRlAngleItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesRotate404Response(value) + *d = DocPagesViewports200ResponseItemMeasureRlAngleItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -145394,8 +165042,8 @@ func (d *DocPagesRotate404Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocPagesRotate404Response) MarshalJSON() ([]byte, error) { - type embed DocPagesRotate404Response +func (d *DocPagesViewports200ResponseItemMeasureRlAngleItem) MarshalJSON() ([]byte, error) { + type embed DocPagesViewports200ResponseItemMeasureRlAngleItem var marshaler = struct { embed }{ @@ -145405,7 +165053,7 @@ func (d *DocPagesRotate404Response) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocPagesRotate404Response) String() string { +func (d *DocPagesViewports200ResponseItemMeasureRlAngleItem) String() string { if d == nil { return "" } @@ -145420,272 +165068,249 @@ func (d *DocPagesRotate404Response) String() string { return fmt.Sprintf("%#v", d) } -type DocPagesRotate404ResponseCode string +type DocPagesViewports200ResponseItemMeasureRlAngleItemFraction string const ( - DocPagesRotate404ResponseCodeUnknown DocPagesRotate404ResponseCode = "Unknown" - DocPagesRotate404ResponseCodeInvalidArg DocPagesRotate404ResponseCode = "InvalidArg" - DocPagesRotate404ResponseCodeDocNotOpen DocPagesRotate404ResponseCode = "DocNotOpen" - DocPagesRotate404ResponseCodeDocOpenFailed DocPagesRotate404ResponseCode = "DocOpenFailed" - DocPagesRotate404ResponseCodeDocPasswordRequired DocPagesRotate404ResponseCode = "DocPasswordRequired" - DocPagesRotate404ResponseCodeDocPasswordIncorrect DocPagesRotate404ResponseCode = "DocPasswordIncorrect" - DocPagesRotate404ResponseCodeSharePasswordRequired DocPagesRotate404ResponseCode = "SharePasswordRequired" - DocPagesRotate404ResponseCodeAborted DocPagesRotate404ResponseCode = "Aborted" - DocPagesRotate404ResponseCodeNetwork DocPagesRotate404ResponseCode = "Network" - DocPagesRotate404ResponseCodeUnauthenticated DocPagesRotate404ResponseCode = "Unauthenticated" - DocPagesRotate404ResponseCodeForbidden DocPagesRotate404ResponseCode = "Forbidden" - DocPagesRotate404ResponseCodeNotFound DocPagesRotate404ResponseCode = "NotFound" - DocPagesRotate404ResponseCodeWireFormat DocPagesRotate404ResponseCode = "WireFormat" - DocPagesRotate404ResponseCodeRuntimeUnavailable DocPagesRotate404ResponseCode = "RuntimeUnavailable" - DocPagesRotate404ResponseCodeInvalidReference DocPagesRotate404ResponseCode = "InvalidReference" - DocPagesRotate404ResponseCodeWeakAnnotationSessionConflict DocPagesRotate404ResponseCode = "WeakAnnotationSessionConflict" - DocPagesRotate404ResponseCodeLayerVersionConflict DocPagesRotate404ResponseCode = "LayerVersionConflict" - DocPagesRotate404ResponseCodeNotImplemented DocPagesRotate404ResponseCode = "NotImplemented" - DocPagesRotate404ResponseCodeMalformedPdf DocPagesRotate404ResponseCode = "MalformedPdf" - DocPagesRotate404ResponseCodeSigningPending DocPagesRotate404ResponseCode = "SigningPending" - DocPagesRotate404ResponseCodeSigningExpired DocPagesRotate404ResponseCode = "SigningExpired" - DocPagesRotate404ResponseCodeSigningVersionMismatch DocPagesRotate404ResponseCode = "SigningVersionMismatch" - DocPagesRotate404ResponseCodeSignatureRefused DocPagesRotate404ResponseCode = "SignatureRefused" - DocPagesRotate404ResponseCodeProtectedDocument DocPagesRotate404ResponseCode = "ProtectedDocument" - DocPagesRotate404ResponseCodeStaleBase DocPagesRotate404ResponseCode = "StaleBase" + DocPagesViewports200ResponseItemMeasureRlAngleItemFractionDecimal DocPagesViewports200ResponseItemMeasureRlAngleItemFraction = "decimal" + DocPagesViewports200ResponseItemMeasureRlAngleItemFractionFraction DocPagesViewports200ResponseItemMeasureRlAngleItemFraction = "fraction" + DocPagesViewports200ResponseItemMeasureRlAngleItemFractionRound DocPagesViewports200ResponseItemMeasureRlAngleItemFraction = "round" + DocPagesViewports200ResponseItemMeasureRlAngleItemFractionTruncate DocPagesViewports200ResponseItemMeasureRlAngleItemFraction = "truncate" ) -func NewDocPagesRotate404ResponseCodeFromString(s string) (DocPagesRotate404ResponseCode, error) { +func NewDocPagesViewports200ResponseItemMeasureRlAngleItemFractionFromString(s string) (DocPagesViewports200ResponseItemMeasureRlAngleItemFraction, error) { switch s { - case "Unknown": - return DocPagesRotate404ResponseCodeUnknown, nil - case "InvalidArg": - return DocPagesRotate404ResponseCodeInvalidArg, nil - case "DocNotOpen": - return DocPagesRotate404ResponseCodeDocNotOpen, nil - case "DocOpenFailed": - return DocPagesRotate404ResponseCodeDocOpenFailed, nil - case "DocPasswordRequired": - return DocPagesRotate404ResponseCodeDocPasswordRequired, nil - case "DocPasswordIncorrect": - return DocPagesRotate404ResponseCodeDocPasswordIncorrect, nil - case "SharePasswordRequired": - return DocPagesRotate404ResponseCodeSharePasswordRequired, nil - case "Aborted": - return DocPagesRotate404ResponseCodeAborted, nil - case "Network": - return DocPagesRotate404ResponseCodeNetwork, nil - case "Unauthenticated": - return DocPagesRotate404ResponseCodeUnauthenticated, nil - case "Forbidden": - return DocPagesRotate404ResponseCodeForbidden, nil - case "NotFound": - return DocPagesRotate404ResponseCodeNotFound, nil - case "WireFormat": - return DocPagesRotate404ResponseCodeWireFormat, nil - case "RuntimeUnavailable": - return DocPagesRotate404ResponseCodeRuntimeUnavailable, nil - case "InvalidReference": - return DocPagesRotate404ResponseCodeInvalidReference, nil - case "WeakAnnotationSessionConflict": - return DocPagesRotate404ResponseCodeWeakAnnotationSessionConflict, nil - case "LayerVersionConflict": - return DocPagesRotate404ResponseCodeLayerVersionConflict, nil - case "NotImplemented": - return DocPagesRotate404ResponseCodeNotImplemented, nil - case "MalformedPdf": - return DocPagesRotate404ResponseCodeMalformedPdf, nil - case "SigningPending": - return DocPagesRotate404ResponseCodeSigningPending, nil - case "SigningExpired": - return DocPagesRotate404ResponseCodeSigningExpired, nil - case "SigningVersionMismatch": - return DocPagesRotate404ResponseCodeSigningVersionMismatch, nil - case "SignatureRefused": - return DocPagesRotate404ResponseCodeSignatureRefused, nil - case "ProtectedDocument": - return DocPagesRotate404ResponseCodeProtectedDocument, nil - case "StaleBase": - return DocPagesRotate404ResponseCodeStaleBase, nil - } - var t DocPagesRotate404ResponseCode + case "decimal": + return DocPagesViewports200ResponseItemMeasureRlAngleItemFractionDecimal, nil + case "fraction": + return DocPagesViewports200ResponseItemMeasureRlAngleItemFractionFraction, nil + case "round": + return DocPagesViewports200ResponseItemMeasureRlAngleItemFractionRound, nil + case "truncate": + return DocPagesViewports200ResponseItemMeasureRlAngleItemFractionTruncate, nil + } + var t DocPagesViewports200ResponseItemMeasureRlAngleItemFraction return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocPagesRotate404ResponseCode) Ptr() *DocPagesRotate404ResponseCode { +func (d DocPagesViewports200ResponseItemMeasureRlAngleItemFraction) Ptr() *DocPagesViewports200ResponseItemMeasureRlAngleItemFraction { return &d } -type DocPagesRotate404ResponseName string +type DocPagesViewports200ResponseItemMeasureRlAngleItemLabelPosition string const ( - DocPagesRotate404ResponseNameEngineError DocPagesRotate404ResponseName = "EngineError" + DocPagesViewports200ResponseItemMeasureRlAngleItemLabelPositionSuffix DocPagesViewports200ResponseItemMeasureRlAngleItemLabelPosition = "suffix" + DocPagesViewports200ResponseItemMeasureRlAngleItemLabelPositionPrefix DocPagesViewports200ResponseItemMeasureRlAngleItemLabelPosition = "prefix" ) -func NewDocPagesRotate404ResponseNameFromString(s string) (DocPagesRotate404ResponseName, error) { +func NewDocPagesViewports200ResponseItemMeasureRlAngleItemLabelPositionFromString(s string) (DocPagesViewports200ResponseItemMeasureRlAngleItemLabelPosition, error) { switch s { - case "EngineError": - return DocPagesRotate404ResponseNameEngineError, nil + case "suffix": + return DocPagesViewports200ResponseItemMeasureRlAngleItemLabelPositionSuffix, nil + case "prefix": + return DocPagesViewports200ResponseItemMeasureRlAngleItemLabelPositionPrefix, nil } - var t DocPagesRotate404ResponseName + var t DocPagesViewports200ResponseItemMeasureRlAngleItemLabelPosition return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocPagesRotate404ResponseName) Ptr() *DocPagesRotate404ResponseName { +func (d DocPagesViewports200ResponseItemMeasureRlAngleItemLabelPosition) Ptr() *DocPagesViewports200ResponseItemMeasureRlAngleItemLabelPosition { return &d } -type DocPagesRotateRequest = map[string]any - var ( - docPagesSetName200ResponseFieldMeta = big.NewInt(1 << 0) + docPagesViewports200ResponseItemMeasureRlAreaItemFieldUnit = big.NewInt(1 << 0) + docPagesViewports200ResponseItemMeasureRlAreaItemFieldConversion = big.NewInt(1 << 1) + docPagesViewports200ResponseItemMeasureRlAreaItemFieldFraction = big.NewInt(1 << 2) + docPagesViewports200ResponseItemMeasureRlAreaItemFieldPrecision = big.NewInt(1 << 3) + docPagesViewports200ResponseItemMeasureRlAreaItemFieldFixed = big.NewInt(1 << 4) + docPagesViewports200ResponseItemMeasureRlAreaItemFieldThousands = big.NewInt(1 << 5) + docPagesViewports200ResponseItemMeasureRlAreaItemFieldDecimal = big.NewInt(1 << 6) + docPagesViewports200ResponseItemMeasureRlAreaItemFieldPrefixSpacing = big.NewInt(1 << 7) + docPagesViewports200ResponseItemMeasureRlAreaItemFieldSuffixSpacing = big.NewInt(1 << 8) + docPagesViewports200ResponseItemMeasureRlAreaItemFieldLabelPosition = big.NewInt(1 << 9) ) -type DocPagesSetName200Response struct { - Meta *DocPagesSetName200ResponseMeta `json:"meta" url:"meta"` +type DocPagesViewports200ResponseItemMeasureRlAreaItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocPagesViewports200ResponseItemMeasureRlAreaItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocPagesViewports200ResponseItemMeasureRlAreaItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` - ExtraProperties map[string]interface{} `json:"-" url:"-"` - - rawJSON json.RawMessage + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocPagesSetName200Response) GetMeta() *DocPagesSetName200ResponseMeta { +func (d *DocPagesViewports200ResponseItemMeasureRlAreaItem) GetUnit() string { if d == nil { - return nil + return "" } - return d.Meta + return d.Unit } -func (d *DocPagesSetName200Response) GetExtraProperties() map[string]interface{} { +func (d *DocPagesViewports200ResponseItemMeasureRlAreaItem) GetConversion() *float64 { if d == nil { return nil } - return d.ExtraProperties -} - -func (d *DocPagesSetName200Response) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetMeta sets the Meta field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesSetName200Response) SetMeta(meta *DocPagesSetName200ResponseMeta) { - d.Meta = meta - d.require(docPagesSetName200ResponseFieldMeta) -} - -func (d *DocPagesSetName200Response) UnmarshalJSON(data []byte) error { - type embed DocPagesSetName200Response - var unmarshaler = struct { - embed - }{ - embed: embed(*d), - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - *d = DocPagesSetName200Response(unmarshaler.embed) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.ExtraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil + return d.Conversion } -func (d *DocPagesSetName200Response) MarshalJSON() ([]byte, error) { - type embed DocPagesSetName200Response - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d *DocPagesViewports200ResponseItemMeasureRlAreaItem) GetFraction() *DocPagesViewports200ResponseItemMeasureRlAreaItemFraction { + if d == nil { + return nil } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return internal.MarshalJSONWithExtraProperties(explicitMarshaler, d.ExtraProperties) + return d.Fraction } -func (d *DocPagesSetName200Response) String() string { +func (d *DocPagesViewports200ResponseItemMeasureRlAreaItem) GetPrecision() *int { if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value + return nil } - return fmt.Sprintf("%#v", d) + return d.Precision } -var ( - docPagesSetName200ResponseMetaFieldAffectedPages = big.NewInt(1 << 0) - docPagesSetName200ResponseMetaFieldCacheDelta = big.NewInt(1 << 1) -) +func (d *DocPagesViewports200ResponseItemMeasureRlAreaItem) GetFixed() *bool { + if d == nil { + return nil + } + return d.Fixed +} -type DocPagesSetName200ResponseMeta struct { - AffectedPages []*DocPagesSetName200ResponseMetaAffectedPagesItem `json:"affectedPages" url:"affectedPages"` - CacheDelta *DocPagesSetName200ResponseMetaCacheDelta `json:"cacheDelta,omitempty" url:"cacheDelta,omitempty"` +func (d *DocPagesViewports200ResponseItemMeasureRlAreaItem) GetThousands() *string { + if d == nil { + return nil + } + return d.Thousands +} - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +func (d *DocPagesViewports200ResponseItemMeasureRlAreaItem) GetDecimal() *string { + if d == nil { + return nil + } + return d.Decimal +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocPagesViewports200ResponseItemMeasureRlAreaItem) GetPrefixSpacing() *string { + if d == nil { + return nil + } + return d.PrefixSpacing } -func (d *DocPagesSetName200ResponseMeta) GetAffectedPages() []*DocPagesSetName200ResponseMetaAffectedPagesItem { +func (d *DocPagesViewports200ResponseItemMeasureRlAreaItem) GetSuffixSpacing() *string { if d == nil { return nil } - return d.AffectedPages + return d.SuffixSpacing } -func (d *DocPagesSetName200ResponseMeta) GetCacheDelta() *DocPagesSetName200ResponseMetaCacheDelta { +func (d *DocPagesViewports200ResponseItemMeasureRlAreaItem) GetLabelPosition() *DocPagesViewports200ResponseItemMeasureRlAreaItemLabelPosition { if d == nil { return nil } - return d.CacheDelta + return d.LabelPosition } -func (d *DocPagesSetName200ResponseMeta) GetExtraProperties() map[string]interface{} { +func (d *DocPagesViewports200ResponseItemMeasureRlAreaItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesSetName200ResponseMeta) require(field *big.Int) { +func (d *DocPagesViewports200ResponseItemMeasureRlAreaItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetAffectedPages sets the AffectedPages field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesSetName200ResponseMeta) SetAffectedPages(affectedPages []*DocPagesSetName200ResponseMetaAffectedPagesItem) { - d.AffectedPages = affectedPages - d.require(docPagesSetName200ResponseMetaFieldAffectedPages) +func (d *DocPagesViewports200ResponseItemMeasureRlAreaItem) SetUnit(unit string) { + d.Unit = unit + d.require(docPagesViewports200ResponseItemMeasureRlAreaItemFieldUnit) } -// SetCacheDelta sets the CacheDelta field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesSetName200ResponseMeta) SetCacheDelta(cacheDelta *DocPagesSetName200ResponseMetaCacheDelta) { - d.CacheDelta = cacheDelta - d.require(docPagesSetName200ResponseMetaFieldCacheDelta) +func (d *DocPagesViewports200ResponseItemMeasureRlAreaItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docPagesViewports200ResponseItemMeasureRlAreaItemFieldConversion) } -func (d *DocPagesSetName200ResponseMeta) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesSetName200ResponseMeta +// SetFraction sets the Fraction field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlAreaItem) SetFraction(fraction *DocPagesViewports200ResponseItemMeasureRlAreaItemFraction) { + d.Fraction = fraction + d.require(docPagesViewports200ResponseItemMeasureRlAreaItemFieldFraction) +} + +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlAreaItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docPagesViewports200ResponseItemMeasureRlAreaItemFieldPrecision) +} + +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlAreaItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docPagesViewports200ResponseItemMeasureRlAreaItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlAreaItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docPagesViewports200ResponseItemMeasureRlAreaItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlAreaItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docPagesViewports200ResponseItemMeasureRlAreaItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlAreaItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docPagesViewports200ResponseItemMeasureRlAreaItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlAreaItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docPagesViewports200ResponseItemMeasureRlAreaItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlAreaItem) SetLabelPosition(labelPosition *DocPagesViewports200ResponseItemMeasureRlAreaItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docPagesViewports200ResponseItemMeasureRlAreaItemFieldLabelPosition) +} + +func (d *DocPagesViewports200ResponseItemMeasureRlAreaItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesViewports200ResponseItemMeasureRlAreaItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesSetName200ResponseMeta(value) + *d = DocPagesViewports200ResponseItemMeasureRlAreaItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -145695,8 +165320,8 @@ func (d *DocPagesSetName200ResponseMeta) UnmarshalJSON(data []byte) error { return nil } -func (d *DocPagesSetName200ResponseMeta) MarshalJSON() ([]byte, error) { - type embed DocPagesSetName200ResponseMeta +func (d *DocPagesViewports200ResponseItemMeasureRlAreaItem) MarshalJSON() ([]byte, error) { + type embed DocPagesViewports200ResponseItemMeasureRlAreaItem var marshaler = struct { embed }{ @@ -145706,7 +165331,7 @@ func (d *DocPagesSetName200ResponseMeta) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocPagesSetName200ResponseMeta) String() string { +func (d *DocPagesViewports200ResponseItemMeasureRlAreaItem) String() string { if d == nil { return "" } @@ -145721,16 +165346,80 @@ func (d *DocPagesSetName200ResponseMeta) String() string { return fmt.Sprintf("%#v", d) } +type DocPagesViewports200ResponseItemMeasureRlAreaItemFraction string + +const ( + DocPagesViewports200ResponseItemMeasureRlAreaItemFractionDecimal DocPagesViewports200ResponseItemMeasureRlAreaItemFraction = "decimal" + DocPagesViewports200ResponseItemMeasureRlAreaItemFractionFraction DocPagesViewports200ResponseItemMeasureRlAreaItemFraction = "fraction" + DocPagesViewports200ResponseItemMeasureRlAreaItemFractionRound DocPagesViewports200ResponseItemMeasureRlAreaItemFraction = "round" + DocPagesViewports200ResponseItemMeasureRlAreaItemFractionTruncate DocPagesViewports200ResponseItemMeasureRlAreaItemFraction = "truncate" +) + +func NewDocPagesViewports200ResponseItemMeasureRlAreaItemFractionFromString(s string) (DocPagesViewports200ResponseItemMeasureRlAreaItemFraction, error) { + switch s { + case "decimal": + return DocPagesViewports200ResponseItemMeasureRlAreaItemFractionDecimal, nil + case "fraction": + return DocPagesViewports200ResponseItemMeasureRlAreaItemFractionFraction, nil + case "round": + return DocPagesViewports200ResponseItemMeasureRlAreaItemFractionRound, nil + case "truncate": + return DocPagesViewports200ResponseItemMeasureRlAreaItemFractionTruncate, nil + } + var t DocPagesViewports200ResponseItemMeasureRlAreaItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesViewports200ResponseItemMeasureRlAreaItemFraction) Ptr() *DocPagesViewports200ResponseItemMeasureRlAreaItemFraction { + return &d +} + +type DocPagesViewports200ResponseItemMeasureRlAreaItemLabelPosition string + +const ( + DocPagesViewports200ResponseItemMeasureRlAreaItemLabelPositionSuffix DocPagesViewports200ResponseItemMeasureRlAreaItemLabelPosition = "suffix" + DocPagesViewports200ResponseItemMeasureRlAreaItemLabelPositionPrefix DocPagesViewports200ResponseItemMeasureRlAreaItemLabelPosition = "prefix" +) + +func NewDocPagesViewports200ResponseItemMeasureRlAreaItemLabelPositionFromString(s string) (DocPagesViewports200ResponseItemMeasureRlAreaItemLabelPosition, error) { + switch s { + case "suffix": + return DocPagesViewports200ResponseItemMeasureRlAreaItemLabelPositionSuffix, nil + case "prefix": + return DocPagesViewports200ResponseItemMeasureRlAreaItemLabelPositionPrefix, nil + } + var t DocPagesViewports200ResponseItemMeasureRlAreaItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesViewports200ResponseItemMeasureRlAreaItemLabelPosition) Ptr() *DocPagesViewports200ResponseItemMeasureRlAreaItemLabelPosition { + return &d +} + var ( - docPagesSetName200ResponseMetaAffectedPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) - docPagesSetName200ResponseMetaAffectedPagesItemFieldRevision = big.NewInt(1 << 1) - docPagesSetName200ResponseMetaAffectedPagesItemFieldWeakAnnotationState = big.NewInt(1 << 2) + docPagesViewports200ResponseItemMeasureRlDistanceItemFieldUnit = big.NewInt(1 << 0) + docPagesViewports200ResponseItemMeasureRlDistanceItemFieldConversion = big.NewInt(1 << 1) + docPagesViewports200ResponseItemMeasureRlDistanceItemFieldFraction = big.NewInt(1 << 2) + docPagesViewports200ResponseItemMeasureRlDistanceItemFieldPrecision = big.NewInt(1 << 3) + docPagesViewports200ResponseItemMeasureRlDistanceItemFieldFixed = big.NewInt(1 << 4) + docPagesViewports200ResponseItemMeasureRlDistanceItemFieldThousands = big.NewInt(1 << 5) + docPagesViewports200ResponseItemMeasureRlDistanceItemFieldDecimal = big.NewInt(1 << 6) + docPagesViewports200ResponseItemMeasureRlDistanceItemFieldPrefixSpacing = big.NewInt(1 << 7) + docPagesViewports200ResponseItemMeasureRlDistanceItemFieldSuffixSpacing = big.NewInt(1 << 8) + docPagesViewports200ResponseItemMeasureRlDistanceItemFieldLabelPosition = big.NewInt(1 << 9) ) -type DocPagesSetName200ResponseMetaAffectedPagesItem struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Revision *DocPagesSetName200ResponseMetaAffectedPagesItemRevision `json:"revision" url:"revision"` - WeakAnnotationState *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState `json:"weakAnnotationState" url:"weakAnnotationState"` +type DocPagesViewports200ResponseItemMeasureRlDistanceItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocPagesViewports200ResponseItemMeasureRlDistanceItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocPagesViewports200ResponseItemMeasureRlDistanceItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -145739,69 +165428,167 @@ type DocPagesSetName200ResponseMetaAffectedPagesItem struct { rawJSON json.RawMessage } -func (d *DocPagesSetName200ResponseMetaAffectedPagesItem) GetPageObjectNumber() int { +func (d *DocPagesViewports200ResponseItemMeasureRlDistanceItem) GetUnit() string { if d == nil { - return 0 + return "" } - return d.PageObjectNumber + return d.Unit } -func (d *DocPagesSetName200ResponseMetaAffectedPagesItem) GetRevision() *DocPagesSetName200ResponseMetaAffectedPagesItemRevision { +func (d *DocPagesViewports200ResponseItemMeasureRlDistanceItem) GetConversion() *float64 { if d == nil { return nil } - return d.Revision + return d.Conversion } -func (d *DocPagesSetName200ResponseMetaAffectedPagesItem) GetWeakAnnotationState() *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState { +func (d *DocPagesViewports200ResponseItemMeasureRlDistanceItem) GetFraction() *DocPagesViewports200ResponseItemMeasureRlDistanceItemFraction { if d == nil { return nil } - return d.WeakAnnotationState + return d.Fraction } -func (d *DocPagesSetName200ResponseMetaAffectedPagesItem) GetExtraProperties() map[string]interface{} { +func (d *DocPagesViewports200ResponseItemMeasureRlDistanceItem) GetPrecision() *int { + if d == nil { + return nil + } + return d.Precision +} + +func (d *DocPagesViewports200ResponseItemMeasureRlDistanceItem) GetFixed() *bool { + if d == nil { + return nil + } + return d.Fixed +} + +func (d *DocPagesViewports200ResponseItemMeasureRlDistanceItem) GetThousands() *string { + if d == nil { + return nil + } + return d.Thousands +} + +func (d *DocPagesViewports200ResponseItemMeasureRlDistanceItem) GetDecimal() *string { + if d == nil { + return nil + } + return d.Decimal +} + +func (d *DocPagesViewports200ResponseItemMeasureRlDistanceItem) GetPrefixSpacing() *string { + if d == nil { + return nil + } + return d.PrefixSpacing +} + +func (d *DocPagesViewports200ResponseItemMeasureRlDistanceItem) GetSuffixSpacing() *string { + if d == nil { + return nil + } + return d.SuffixSpacing +} + +func (d *DocPagesViewports200ResponseItemMeasureRlDistanceItem) GetLabelPosition() *DocPagesViewports200ResponseItemMeasureRlDistanceItemLabelPosition { + if d == nil { + return nil + } + return d.LabelPosition +} + +func (d *DocPagesViewports200ResponseItemMeasureRlDistanceItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesSetName200ResponseMetaAffectedPagesItem) require(field *big.Int) { +func (d *DocPagesViewports200ResponseItemMeasureRlDistanceItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesSetName200ResponseMetaAffectedPagesItem) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docPagesSetName200ResponseMetaAffectedPagesItemFieldPageObjectNumber) +func (d *DocPagesViewports200ResponseItemMeasureRlDistanceItem) SetUnit(unit string) { + d.Unit = unit + d.require(docPagesViewports200ResponseItemMeasureRlDistanceItemFieldUnit) } -// SetRevision sets the Revision field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesSetName200ResponseMetaAffectedPagesItem) SetRevision(revision *DocPagesSetName200ResponseMetaAffectedPagesItemRevision) { - d.Revision = revision - d.require(docPagesSetName200ResponseMetaAffectedPagesItemFieldRevision) +func (d *DocPagesViewports200ResponseItemMeasureRlDistanceItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docPagesViewports200ResponseItemMeasureRlDistanceItemFieldConversion) } -// SetWeakAnnotationState sets the WeakAnnotationState field and marks it as non-optional; +// SetFraction sets the Fraction field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesSetName200ResponseMetaAffectedPagesItem) SetWeakAnnotationState(weakAnnotationState *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState) { - d.WeakAnnotationState = weakAnnotationState - d.require(docPagesSetName200ResponseMetaAffectedPagesItemFieldWeakAnnotationState) +func (d *DocPagesViewports200ResponseItemMeasureRlDistanceItem) SetFraction(fraction *DocPagesViewports200ResponseItemMeasureRlDistanceItemFraction) { + d.Fraction = fraction + d.require(docPagesViewports200ResponseItemMeasureRlDistanceItemFieldFraction) } -func (d *DocPagesSetName200ResponseMetaAffectedPagesItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesSetName200ResponseMetaAffectedPagesItem +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlDistanceItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docPagesViewports200ResponseItemMeasureRlDistanceItemFieldPrecision) +} + +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlDistanceItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docPagesViewports200ResponseItemMeasureRlDistanceItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlDistanceItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docPagesViewports200ResponseItemMeasureRlDistanceItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlDistanceItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docPagesViewports200ResponseItemMeasureRlDistanceItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlDistanceItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docPagesViewports200ResponseItemMeasureRlDistanceItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlDistanceItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docPagesViewports200ResponseItemMeasureRlDistanceItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlDistanceItem) SetLabelPosition(labelPosition *DocPagesViewports200ResponseItemMeasureRlDistanceItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docPagesViewports200ResponseItemMeasureRlDistanceItemFieldLabelPosition) +} + +func (d *DocPagesViewports200ResponseItemMeasureRlDistanceItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesViewports200ResponseItemMeasureRlDistanceItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesSetName200ResponseMetaAffectedPagesItem(value) + *d = DocPagesViewports200ResponseItemMeasureRlDistanceItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -145811,8 +165598,8 @@ func (d *DocPagesSetName200ResponseMetaAffectedPagesItem) UnmarshalJSON(data []b return nil } -func (d *DocPagesSetName200ResponseMetaAffectedPagesItem) MarshalJSON() ([]byte, error) { - type embed DocPagesSetName200ResponseMetaAffectedPagesItem +func (d *DocPagesViewports200ResponseItemMeasureRlDistanceItem) MarshalJSON() ([]byte, error) { + type embed DocPagesViewports200ResponseItemMeasureRlDistanceItem var marshaler = struct { embed }{ @@ -145822,7 +165609,7 @@ func (d *DocPagesSetName200ResponseMetaAffectedPagesItem) MarshalJSON() ([]byte, return json.Marshal(explicitMarshaler) } -func (d *DocPagesSetName200ResponseMetaAffectedPagesItem) String() string { +func (d *DocPagesViewports200ResponseItemMeasureRlDistanceItem) String() string { if d == nil { return "" } @@ -145837,16 +165624,64 @@ func (d *DocPagesSetName200ResponseMetaAffectedPagesItem) String() string { return fmt.Sprintf("%#v", d) } +type DocPagesViewports200ResponseItemMeasureRlDistanceItemFraction string + +const ( + DocPagesViewports200ResponseItemMeasureRlDistanceItemFractionDecimal DocPagesViewports200ResponseItemMeasureRlDistanceItemFraction = "decimal" + DocPagesViewports200ResponseItemMeasureRlDistanceItemFractionFraction DocPagesViewports200ResponseItemMeasureRlDistanceItemFraction = "fraction" + DocPagesViewports200ResponseItemMeasureRlDistanceItemFractionRound DocPagesViewports200ResponseItemMeasureRlDistanceItemFraction = "round" + DocPagesViewports200ResponseItemMeasureRlDistanceItemFractionTruncate DocPagesViewports200ResponseItemMeasureRlDistanceItemFraction = "truncate" +) + +func NewDocPagesViewports200ResponseItemMeasureRlDistanceItemFractionFromString(s string) (DocPagesViewports200ResponseItemMeasureRlDistanceItemFraction, error) { + switch s { + case "decimal": + return DocPagesViewports200ResponseItemMeasureRlDistanceItemFractionDecimal, nil + case "fraction": + return DocPagesViewports200ResponseItemMeasureRlDistanceItemFractionFraction, nil + case "round": + return DocPagesViewports200ResponseItemMeasureRlDistanceItemFractionRound, nil + case "truncate": + return DocPagesViewports200ResponseItemMeasureRlDistanceItemFractionTruncate, nil + } + var t DocPagesViewports200ResponseItemMeasureRlDistanceItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesViewports200ResponseItemMeasureRlDistanceItemFraction) Ptr() *DocPagesViewports200ResponseItemMeasureRlDistanceItemFraction { + return &d +} + +type DocPagesViewports200ResponseItemMeasureRlDistanceItemLabelPosition string + +const ( + DocPagesViewports200ResponseItemMeasureRlDistanceItemLabelPositionSuffix DocPagesViewports200ResponseItemMeasureRlDistanceItemLabelPosition = "suffix" + DocPagesViewports200ResponseItemMeasureRlDistanceItemLabelPositionPrefix DocPagesViewports200ResponseItemMeasureRlDistanceItemLabelPosition = "prefix" +) + +func NewDocPagesViewports200ResponseItemMeasureRlDistanceItemLabelPositionFromString(s string) (DocPagesViewports200ResponseItemMeasureRlDistanceItemLabelPosition, error) { + switch s { + case "suffix": + return DocPagesViewports200ResponseItemMeasureRlDistanceItemLabelPositionSuffix, nil + case "prefix": + return DocPagesViewports200ResponseItemMeasureRlDistanceItemLabelPositionPrefix, nil + } + var t DocPagesViewports200ResponseItemMeasureRlDistanceItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesViewports200ResponseItemMeasureRlDistanceItemLabelPosition) Ptr() *DocPagesViewports200ResponseItemMeasureRlDistanceItemLabelPosition { + return &d +} + var ( - docPagesSetName200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID = big.NewInt(1 << 0) - docPagesSetName200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber = big.NewInt(1 << 1) - docPagesSetName200ResponseMetaAffectedPagesItemRevisionFieldGeneration = big.NewInt(1 << 2) + docPagesViewports200ResponseItemMeasureRlOriginFieldX = big.NewInt(1 << 0) + docPagesViewports200ResponseItemMeasureRlOriginFieldY = big.NewInt(1 << 1) ) -type DocPagesSetName200ResponseMetaAffectedPagesItemRevision struct { - DocSessionID string `json:"docSessionId" url:"docSessionId"` - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Generation int `json:"generation" url:"generation"` +type DocPagesViewports200ResponseItemMeasureRlOrigin struct { + X float64 `json:"x" url:"x"` + Y float64 `json:"y" url:"y"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -145855,69 +165690,55 @@ type DocPagesSetName200ResponseMetaAffectedPagesItemRevision struct { rawJSON json.RawMessage } -func (d *DocPagesSetName200ResponseMetaAffectedPagesItemRevision) GetDocSessionID() string { - if d == nil { - return "" - } - return d.DocSessionID -} - -func (d *DocPagesSetName200ResponseMetaAffectedPagesItemRevision) GetPageObjectNumber() int { +func (d *DocPagesViewports200ResponseItemMeasureRlOrigin) GetX() float64 { if d == nil { return 0 } - return d.PageObjectNumber + return d.X } -func (d *DocPagesSetName200ResponseMetaAffectedPagesItemRevision) GetGeneration() int { +func (d *DocPagesViewports200ResponseItemMeasureRlOrigin) GetY() float64 { if d == nil { return 0 } - return d.Generation + return d.Y } -func (d *DocPagesSetName200ResponseMetaAffectedPagesItemRevision) GetExtraProperties() map[string]interface{} { +func (d *DocPagesViewports200ResponseItemMeasureRlOrigin) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesSetName200ResponseMetaAffectedPagesItemRevision) require(field *big.Int) { +func (d *DocPagesViewports200ResponseItemMeasureRlOrigin) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetDocSessionID sets the DocSessionID field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesSetName200ResponseMetaAffectedPagesItemRevision) SetDocSessionID(docSessionID string) { - d.DocSessionID = docSessionID - d.require(docPagesSetName200ResponseMetaAffectedPagesItemRevisionFieldDocSessionID) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; +// SetX sets the X field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesSetName200ResponseMetaAffectedPagesItemRevision) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docPagesSetName200ResponseMetaAffectedPagesItemRevisionFieldPageObjectNumber) +func (d *DocPagesViewports200ResponseItemMeasureRlOrigin) SetX(x float64) { + d.X = x + d.require(docPagesViewports200ResponseItemMeasureRlOriginFieldX) } -// SetGeneration sets the Generation field and marks it as non-optional; +// SetY sets the Y field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesSetName200ResponseMetaAffectedPagesItemRevision) SetGeneration(generation int) { - d.Generation = generation - d.require(docPagesSetName200ResponseMetaAffectedPagesItemRevisionFieldGeneration) +func (d *DocPagesViewports200ResponseItemMeasureRlOrigin) SetY(y float64) { + d.Y = y + d.require(docPagesViewports200ResponseItemMeasureRlOriginFieldY) } -func (d *DocPagesSetName200ResponseMetaAffectedPagesItemRevision) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesSetName200ResponseMetaAffectedPagesItemRevision +func (d *DocPagesViewports200ResponseItemMeasureRlOrigin) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesViewports200ResponseItemMeasureRlOrigin var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesSetName200ResponseMetaAffectedPagesItemRevision(value) + *d = DocPagesViewports200ResponseItemMeasureRlOrigin(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -145927,8 +165748,8 @@ func (d *DocPagesSetName200ResponseMetaAffectedPagesItemRevision) UnmarshalJSON( return nil } -func (d *DocPagesSetName200ResponseMetaAffectedPagesItemRevision) MarshalJSON() ([]byte, error) { - type embed DocPagesSetName200ResponseMetaAffectedPagesItemRevision +func (d *DocPagesViewports200ResponseItemMeasureRlOrigin) MarshalJSON() ([]byte, error) { + type embed DocPagesViewports200ResponseItemMeasureRlOrigin var marshaler = struct { embed }{ @@ -145938,7 +165759,7 @@ func (d *DocPagesSetName200ResponseMetaAffectedPagesItemRevision) MarshalJSON() return json.Marshal(explicitMarshaler) } -func (d *DocPagesSetName200ResponseMetaAffectedPagesItemRevision) String() string { +func (d *DocPagesViewports200ResponseItemMeasureRlOrigin) String() string { if d == nil { return "" } @@ -145953,246 +165774,199 @@ func (d *DocPagesSetName200ResponseMetaAffectedPagesItemRevision) String() strin return fmt.Sprintf("%#v", d) } -type DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState struct { - Kind string - Unknown *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - Known *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown +var ( + docPagesViewports200ResponseItemMeasureRlSlopeItemFieldUnit = big.NewInt(1 << 0) + docPagesViewports200ResponseItemMeasureRlSlopeItemFieldConversion = big.NewInt(1 << 1) + docPagesViewports200ResponseItemMeasureRlSlopeItemFieldFraction = big.NewInt(1 << 2) + docPagesViewports200ResponseItemMeasureRlSlopeItemFieldPrecision = big.NewInt(1 << 3) + docPagesViewports200ResponseItemMeasureRlSlopeItemFieldFixed = big.NewInt(1 << 4) + docPagesViewports200ResponseItemMeasureRlSlopeItemFieldThousands = big.NewInt(1 << 5) + docPagesViewports200ResponseItemMeasureRlSlopeItemFieldDecimal = big.NewInt(1 << 6) + docPagesViewports200ResponseItemMeasureRlSlopeItemFieldPrefixSpacing = big.NewInt(1 << 7) + docPagesViewports200ResponseItemMeasureRlSlopeItemFieldSuffixSpacing = big.NewInt(1 << 8) + docPagesViewports200ResponseItemMeasureRlSlopeItemFieldLabelPosition = big.NewInt(1 << 9) +) - rawJSON json.RawMessage +type DocPagesViewports200ResponseItemMeasureRlSlopeItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocPagesViewports200ResponseItemMeasureRlSlopeItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocPagesViewports200ResponseItemMeasureRlSlopeItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKind() string { +func (d *DocPagesViewports200ResponseItemMeasureRlSlopeItem) GetUnit() string { if d == nil { return "" } - return d.Kind + return d.Unit } -func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState) GetUnknown() *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown { +func (d *DocPagesViewports200ResponseItemMeasureRlSlopeItem) GetConversion() *float64 { if d == nil { return nil } - return d.Unknown + return d.Conversion } -func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState) GetKnown() *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown { +func (d *DocPagesViewports200ResponseItemMeasureRlSlopeItem) GetFraction() *DocPagesViewports200ResponseItemMeasureRlSlopeItemFraction { if d == nil { return nil } - return d.Known + return d.Fraction } -func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState) UnmarshalJSON(data []byte) error { - var unmarshaler struct { - Kind string `json:"kind"` - } - if err := json.Unmarshal(data, &unmarshaler); err != nil { - return err - } - d.Kind = unmarshaler.Kind - if unmarshaler.Kind == "" { - return fmt.Errorf("%T did not include discriminant kind", d) - } - switch unmarshaler.Kind { - case "unknown": - value := new(DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Unknown = value - case "known": - value := new(DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) - if err := json.Unmarshal(data, &value); err != nil { - return err - } - d.Known = value +func (d *DocPagesViewports200ResponseItemMeasureRlSlopeItem) GetPrecision() *int { + if d == nil { + return nil } - d.rawJSON = json.RawMessage(data) - return nil + return d.Precision } -func (d DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState) MarshalJSON() ([]byte, error) { - if err := d.validate(); err != nil { - return nil, err - } - if d.Unknown != nil { - return internal.MarshalJSONWithExtraProperty(d.Unknown, "kind", "unknown") - } - if d.Known != nil { - return internal.MarshalJSONWithExtraProperty(d.Known, "kind", "known") - } - if len(d.rawJSON) > 0 { - return d.rawJSON, nil +func (d *DocPagesViewports200ResponseItemMeasureRlSlopeItem) GetFixed() *bool { + if d == nil { + return nil } - return nil, fmt.Errorf("type %T does not define a non-empty union type", d) + return d.Fixed } -type DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor interface { - VisitUnknown(*DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) error - VisitKnown(*DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) error +func (d *DocPagesViewports200ResponseItemMeasureRlSlopeItem) GetThousands() *string { + if d == nil { + return nil + } + return d.Thousands } -func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState) Accept(visitor DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateVisitor) error { - if d.Unknown != nil { - return visitor.VisitUnknown(d.Unknown) - } - if d.Known != nil { - return visitor.VisitKnown(d.Known) +func (d *DocPagesViewports200ResponseItemMeasureRlSlopeItem) GetDecimal() *string { + if d == nil { + return nil } - return fmt.Errorf("type %T does not define a non-empty union type", d) + return d.Decimal } -func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState) validate() error { +func (d *DocPagesViewports200ResponseItemMeasureRlSlopeItem) GetPrefixSpacing() *string { if d == nil { - return fmt.Errorf("type %T is nil", d) - } - var fields []string - if d.Unknown != nil { - fields = append(fields, "unknown") - } - if d.Known != nil { - fields = append(fields, "known") - } - if len(fields) == 0 { - if d.Kind != "" { - if len(d.rawJSON) > 0 { - return nil - } - return fmt.Errorf("type %T defines a discriminant set to %q but the field is not set", d, d.Kind) - } - return fmt.Errorf("type %T is empty", d) - } - if len(fields) > 1 { - return fmt.Errorf("type %T defines values for %s, but only one value is allowed", d, fields) - } - if d.Kind != "" { - field := fields[0] - if d.Kind != field { - return fmt.Errorf( - "type %T defines a discriminant set to %q, but it does not match the %T field; either remove or update the discriminant to match", - d, - d.Kind, - d, - ) - } + return nil } - return nil + return d.PrefixSpacing } -var ( - docPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations = big.NewInt(1 << 0) -) - -type DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown struct { - HasAnyWeakAnnotations bool `json:"hasAnyWeakAnnotations" url:"hasAnyWeakAnnotations"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocPagesViewports200ResponseItemMeasureRlSlopeItem) GetSuffixSpacing() *string { + if d == nil { + return nil + } + return d.SuffixSpacing } -func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetHasAnyWeakAnnotations() bool { +func (d *DocPagesViewports200ResponseItemMeasureRlSlopeItem) GetLabelPosition() *DocPagesViewports200ResponseItemMeasureRlSlopeItemLabelPosition { if d == nil { - return false + return nil } - return d.HasAnyWeakAnnotations + return d.LabelPosition } -func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) GetExtraProperties() map[string]interface{} { +func (d *DocPagesViewports200ResponseItemMeasureRlSlopeItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) require(field *big.Int) { +func (d *DocPagesViewports200ResponseItemMeasureRlSlopeItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetHasAnyWeakAnnotations sets the HasAnyWeakAnnotations field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) SetHasAnyWeakAnnotations(hasAnyWeakAnnotations bool) { - d.HasAnyWeakAnnotations = hasAnyWeakAnnotations - d.require(docPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnownFieldHasAnyWeakAnnotations) +func (d *DocPagesViewports200ResponseItemMeasureRlSlopeItem) SetUnit(unit string) { + d.Unit = unit + d.require(docPagesViewports200ResponseItemMeasureRlSlopeItemFieldUnit) } -func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err - } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil +// SetConversion sets the Conversion field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlSlopeItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docPagesViewports200ResponseItemMeasureRlSlopeItemFieldConversion) } -func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) MarshalJSON() ([]byte, error) { - type embed DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - var marshaler = struct { - embed - }{ - embed: embed(*d), - } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) +// SetFraction sets the Fraction field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlSlopeItem) SetFraction(fraction *DocPagesViewports200ResponseItemMeasureRlSlopeItemFraction) { + d.Fraction = fraction + d.require(docPagesViewports200ResponseItemMeasureRlSlopeItemFieldFraction) } -func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown) String() string { - if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value - } - return fmt.Sprintf("%#v", d) +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlSlopeItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docPagesViewports200ResponseItemMeasureRlSlopeItemFieldPrecision) } -type DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown struct { +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlSlopeItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docPagesViewports200ResponseItemMeasureRlSlopeItemFieldFixed) +} - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlSlopeItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docPagesViewports200ResponseItemMeasureRlSlopeItemFieldThousands) +} - extraProperties map[string]interface{} - rawJSON json.RawMessage +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlSlopeItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docPagesViewports200ResponseItemMeasureRlSlopeItemFieldDecimal) } -func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) GetExtraProperties() map[string]interface{} { - if d == nil { - return nil - } - return d.extraProperties +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlSlopeItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docPagesViewports200ResponseItemMeasureRlSlopeItemFieldPrefixSpacing) } -func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) - } - d.explicitFields.Or(d.explicitFields, field) +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlSlopeItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docPagesViewports200ResponseItemMeasureRlSlopeItemFieldSuffixSpacing) } -func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlSlopeItem) SetLabelPosition(labelPosition *DocPagesViewports200ResponseItemMeasureRlSlopeItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docPagesViewports200ResponseItemMeasureRlSlopeItemFieldLabelPosition) +} + +func (d *DocPagesViewports200ResponseItemMeasureRlSlopeItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesViewports200ResponseItemMeasureRlSlopeItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(value) + *d = DocPagesViewports200ResponseItemMeasureRlSlopeItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -146202,8 +165976,8 @@ func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnkno return nil } -func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) MarshalJSON() ([]byte, error) { - type embed DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown +func (d *DocPagesViewports200ResponseItemMeasureRlSlopeItem) MarshalJSON() ([]byte, error) { + type embed DocPagesViewports200ResponseItemMeasureRlSlopeItem var marshaler = struct { embed }{ @@ -146213,7 +165987,7 @@ func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnkno return json.Marshal(explicitMarshaler) } -func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown) String() string { +func (d *DocPagesViewports200ResponseItemMeasureRlSlopeItem) String() string { if d == nil { return "" } @@ -146228,22 +166002,80 @@ func (d *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnkno return fmt.Sprintf("%#v", d) } +type DocPagesViewports200ResponseItemMeasureRlSlopeItemFraction string + +const ( + DocPagesViewports200ResponseItemMeasureRlSlopeItemFractionDecimal DocPagesViewports200ResponseItemMeasureRlSlopeItemFraction = "decimal" + DocPagesViewports200ResponseItemMeasureRlSlopeItemFractionFraction DocPagesViewports200ResponseItemMeasureRlSlopeItemFraction = "fraction" + DocPagesViewports200ResponseItemMeasureRlSlopeItemFractionRound DocPagesViewports200ResponseItemMeasureRlSlopeItemFraction = "round" + DocPagesViewports200ResponseItemMeasureRlSlopeItemFractionTruncate DocPagesViewports200ResponseItemMeasureRlSlopeItemFraction = "truncate" +) + +func NewDocPagesViewports200ResponseItemMeasureRlSlopeItemFractionFromString(s string) (DocPagesViewports200ResponseItemMeasureRlSlopeItemFraction, error) { + switch s { + case "decimal": + return DocPagesViewports200ResponseItemMeasureRlSlopeItemFractionDecimal, nil + case "fraction": + return DocPagesViewports200ResponseItemMeasureRlSlopeItemFractionFraction, nil + case "round": + return DocPagesViewports200ResponseItemMeasureRlSlopeItemFractionRound, nil + case "truncate": + return DocPagesViewports200ResponseItemMeasureRlSlopeItemFractionTruncate, nil + } + var t DocPagesViewports200ResponseItemMeasureRlSlopeItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesViewports200ResponseItemMeasureRlSlopeItemFraction) Ptr() *DocPagesViewports200ResponseItemMeasureRlSlopeItemFraction { + return &d +} + +type DocPagesViewports200ResponseItemMeasureRlSlopeItemLabelPosition string + +const ( + DocPagesViewports200ResponseItemMeasureRlSlopeItemLabelPositionSuffix DocPagesViewports200ResponseItemMeasureRlSlopeItemLabelPosition = "suffix" + DocPagesViewports200ResponseItemMeasureRlSlopeItemLabelPositionPrefix DocPagesViewports200ResponseItemMeasureRlSlopeItemLabelPosition = "prefix" +) + +func NewDocPagesViewports200ResponseItemMeasureRlSlopeItemLabelPositionFromString(s string) (DocPagesViewports200ResponseItemMeasureRlSlopeItemLabelPosition, error) { + switch s { + case "suffix": + return DocPagesViewports200ResponseItemMeasureRlSlopeItemLabelPositionSuffix, nil + case "prefix": + return DocPagesViewports200ResponseItemMeasureRlSlopeItemLabelPositionPrefix, nil + } + var t DocPagesViewports200ResponseItemMeasureRlSlopeItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesViewports200ResponseItemMeasureRlSlopeItemLabelPosition) Ptr() *DocPagesViewports200ResponseItemMeasureRlSlopeItemLabelPosition { + return &d +} + var ( - docPagesSetName200ResponseMetaCacheDeltaFieldPreviousDocVersion = big.NewInt(1 << 0) - docPagesSetName200ResponseMetaCacheDeltaFieldDocVersion = big.NewInt(1 << 1) - docPagesSetName200ResponseMetaCacheDeltaFieldAnnotationsVersion = big.NewInt(1 << 2) - docPagesSetName200ResponseMetaCacheDeltaFieldLayerVersion = big.NewInt(1 << 3) - docPagesSetName200ResponseMetaCacheDeltaFieldWorking = big.NewInt(1 << 4) - docPagesSetName200ResponseMetaCacheDeltaFieldPages = big.NewInt(1 << 5) + docPagesViewports200ResponseItemMeasureRlXItemFieldUnit = big.NewInt(1 << 0) + docPagesViewports200ResponseItemMeasureRlXItemFieldConversion = big.NewInt(1 << 1) + docPagesViewports200ResponseItemMeasureRlXItemFieldFraction = big.NewInt(1 << 2) + docPagesViewports200ResponseItemMeasureRlXItemFieldPrecision = big.NewInt(1 << 3) + docPagesViewports200ResponseItemMeasureRlXItemFieldFixed = big.NewInt(1 << 4) + docPagesViewports200ResponseItemMeasureRlXItemFieldThousands = big.NewInt(1 << 5) + docPagesViewports200ResponseItemMeasureRlXItemFieldDecimal = big.NewInt(1 << 6) + docPagesViewports200ResponseItemMeasureRlXItemFieldPrefixSpacing = big.NewInt(1 << 7) + docPagesViewports200ResponseItemMeasureRlXItemFieldSuffixSpacing = big.NewInt(1 << 8) + docPagesViewports200ResponseItemMeasureRlXItemFieldLabelPosition = big.NewInt(1 << 9) ) -type DocPagesSetName200ResponseMetaCacheDelta struct { - PreviousDocVersion int `json:"previousDocVersion" url:"previousDocVersion"` - DocVersion int `json:"docVersion" url:"docVersion"` - AnnotationsVersion *int `json:"annotationsVersion,omitempty" url:"annotationsVersion,omitempty"` - LayerVersion *int `json:"layerVersion,omitempty" url:"layerVersion,omitempty"` - Working *bool `json:"working,omitempty" url:"working,omitempty"` - Pages []*DocPagesSetName200ResponseMetaCacheDeltaPagesItem `json:"pages" url:"pages"` +type DocPagesViewports200ResponseItemMeasureRlXItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocPagesViewports200ResponseItemMeasureRlXItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocPagesViewports200ResponseItemMeasureRlXItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -146252,111 +166084,167 @@ type DocPagesSetName200ResponseMetaCacheDelta struct { rawJSON json.RawMessage } -func (d *DocPagesSetName200ResponseMetaCacheDelta) GetPreviousDocVersion() int { +func (d *DocPagesViewports200ResponseItemMeasureRlXItem) GetUnit() string { + if d == nil { + return "" + } + return d.Unit +} + +func (d *DocPagesViewports200ResponseItemMeasureRlXItem) GetConversion() *float64 { + if d == nil { + return nil + } + return d.Conversion +} + +func (d *DocPagesViewports200ResponseItemMeasureRlXItem) GetFraction() *DocPagesViewports200ResponseItemMeasureRlXItemFraction { + if d == nil { + return nil + } + return d.Fraction +} + +func (d *DocPagesViewports200ResponseItemMeasureRlXItem) GetPrecision() *int { + if d == nil { + return nil + } + return d.Precision +} + +func (d *DocPagesViewports200ResponseItemMeasureRlXItem) GetFixed() *bool { if d == nil { - return 0 + return nil } - return d.PreviousDocVersion + return d.Fixed } -func (d *DocPagesSetName200ResponseMetaCacheDelta) GetDocVersion() int { +func (d *DocPagesViewports200ResponseItemMeasureRlXItem) GetThousands() *string { if d == nil { - return 0 + return nil } - return d.DocVersion + return d.Thousands } -func (d *DocPagesSetName200ResponseMetaCacheDelta) GetAnnotationsVersion() *int { +func (d *DocPagesViewports200ResponseItemMeasureRlXItem) GetDecimal() *string { if d == nil { return nil } - return d.AnnotationsVersion + return d.Decimal } -func (d *DocPagesSetName200ResponseMetaCacheDelta) GetLayerVersion() *int { +func (d *DocPagesViewports200ResponseItemMeasureRlXItem) GetPrefixSpacing() *string { if d == nil { return nil } - return d.LayerVersion + return d.PrefixSpacing } -func (d *DocPagesSetName200ResponseMetaCacheDelta) GetWorking() *bool { +func (d *DocPagesViewports200ResponseItemMeasureRlXItem) GetSuffixSpacing() *string { if d == nil { return nil } - return d.Working + return d.SuffixSpacing } -func (d *DocPagesSetName200ResponseMetaCacheDelta) GetPages() []*DocPagesSetName200ResponseMetaCacheDeltaPagesItem { +func (d *DocPagesViewports200ResponseItemMeasureRlXItem) GetLabelPosition() *DocPagesViewports200ResponseItemMeasureRlXItemLabelPosition { if d == nil { return nil } - return d.Pages + return d.LabelPosition } -func (d *DocPagesSetName200ResponseMetaCacheDelta) GetExtraProperties() map[string]interface{} { +func (d *DocPagesViewports200ResponseItemMeasureRlXItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesSetName200ResponseMetaCacheDelta) require(field *big.Int) { +func (d *DocPagesViewports200ResponseItemMeasureRlXItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetPreviousDocVersion sets the PreviousDocVersion field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesSetName200ResponseMetaCacheDelta) SetPreviousDocVersion(previousDocVersion int) { - d.PreviousDocVersion = previousDocVersion - d.require(docPagesSetName200ResponseMetaCacheDeltaFieldPreviousDocVersion) +func (d *DocPagesViewports200ResponseItemMeasureRlXItem) SetUnit(unit string) { + d.Unit = unit + d.require(docPagesViewports200ResponseItemMeasureRlXItemFieldUnit) } -// SetDocVersion sets the DocVersion field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesSetName200ResponseMetaCacheDelta) SetDocVersion(docVersion int) { - d.DocVersion = docVersion - d.require(docPagesSetName200ResponseMetaCacheDeltaFieldDocVersion) +func (d *DocPagesViewports200ResponseItemMeasureRlXItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docPagesViewports200ResponseItemMeasureRlXItemFieldConversion) } -// SetAnnotationsVersion sets the AnnotationsVersion field and marks it as non-optional; +// SetFraction sets the Fraction field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesSetName200ResponseMetaCacheDelta) SetAnnotationsVersion(annotationsVersion *int) { - d.AnnotationsVersion = annotationsVersion - d.require(docPagesSetName200ResponseMetaCacheDeltaFieldAnnotationsVersion) +func (d *DocPagesViewports200ResponseItemMeasureRlXItem) SetFraction(fraction *DocPagesViewports200ResponseItemMeasureRlXItemFraction) { + d.Fraction = fraction + d.require(docPagesViewports200ResponseItemMeasureRlXItemFieldFraction) } -// SetLayerVersion sets the LayerVersion field and marks it as non-optional; +// SetPrecision sets the Precision field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesSetName200ResponseMetaCacheDelta) SetLayerVersion(layerVersion *int) { - d.LayerVersion = layerVersion - d.require(docPagesSetName200ResponseMetaCacheDeltaFieldLayerVersion) +func (d *DocPagesViewports200ResponseItemMeasureRlXItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docPagesViewports200ResponseItemMeasureRlXItemFieldPrecision) } -// SetWorking sets the Working field and marks it as non-optional; +// SetFixed sets the Fixed field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesSetName200ResponseMetaCacheDelta) SetWorking(working *bool) { - d.Working = working - d.require(docPagesSetName200ResponseMetaCacheDeltaFieldWorking) +func (d *DocPagesViewports200ResponseItemMeasureRlXItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docPagesViewports200ResponseItemMeasureRlXItemFieldFixed) } -// SetPages sets the Pages field and marks it as non-optional; +// SetThousands sets the Thousands field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesSetName200ResponseMetaCacheDelta) SetPages(pages []*DocPagesSetName200ResponseMetaCacheDeltaPagesItem) { - d.Pages = pages - d.require(docPagesSetName200ResponseMetaCacheDeltaFieldPages) +func (d *DocPagesViewports200ResponseItemMeasureRlXItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docPagesViewports200ResponseItemMeasureRlXItemFieldThousands) } -func (d *DocPagesSetName200ResponseMetaCacheDelta) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesSetName200ResponseMetaCacheDelta +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlXItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docPagesViewports200ResponseItemMeasureRlXItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlXItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docPagesViewports200ResponseItemMeasureRlXItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlXItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docPagesViewports200ResponseItemMeasureRlXItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlXItem) SetLabelPosition(labelPosition *DocPagesViewports200ResponseItemMeasureRlXItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docPagesViewports200ResponseItemMeasureRlXItemFieldLabelPosition) +} + +func (d *DocPagesViewports200ResponseItemMeasureRlXItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesViewports200ResponseItemMeasureRlXItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesSetName200ResponseMetaCacheDelta(value) + *d = DocPagesViewports200ResponseItemMeasureRlXItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -146366,8 +166254,8 @@ func (d *DocPagesSetName200ResponseMetaCacheDelta) UnmarshalJSON(data []byte) er return nil } -func (d *DocPagesSetName200ResponseMetaCacheDelta) MarshalJSON() ([]byte, error) { - type embed DocPagesSetName200ResponseMetaCacheDelta +func (d *DocPagesViewports200ResponseItemMeasureRlXItem) MarshalJSON() ([]byte, error) { + type embed DocPagesViewports200ResponseItemMeasureRlXItem var marshaler = struct { embed }{ @@ -146377,7 +166265,7 @@ func (d *DocPagesSetName200ResponseMetaCacheDelta) MarshalJSON() ([]byte, error) return json.Marshal(explicitMarshaler) } -func (d *DocPagesSetName200ResponseMetaCacheDelta) String() string { +func (d *DocPagesViewports200ResponseItemMeasureRlXItem) String() string { if d == nil { return "" } @@ -146392,14 +166280,80 @@ func (d *DocPagesSetName200ResponseMetaCacheDelta) String() string { return fmt.Sprintf("%#v", d) } +type DocPagesViewports200ResponseItemMeasureRlXItemFraction string + +const ( + DocPagesViewports200ResponseItemMeasureRlXItemFractionDecimal DocPagesViewports200ResponseItemMeasureRlXItemFraction = "decimal" + DocPagesViewports200ResponseItemMeasureRlXItemFractionFraction DocPagesViewports200ResponseItemMeasureRlXItemFraction = "fraction" + DocPagesViewports200ResponseItemMeasureRlXItemFractionRound DocPagesViewports200ResponseItemMeasureRlXItemFraction = "round" + DocPagesViewports200ResponseItemMeasureRlXItemFractionTruncate DocPagesViewports200ResponseItemMeasureRlXItemFraction = "truncate" +) + +func NewDocPagesViewports200ResponseItemMeasureRlXItemFractionFromString(s string) (DocPagesViewports200ResponseItemMeasureRlXItemFraction, error) { + switch s { + case "decimal": + return DocPagesViewports200ResponseItemMeasureRlXItemFractionDecimal, nil + case "fraction": + return DocPagesViewports200ResponseItemMeasureRlXItemFractionFraction, nil + case "round": + return DocPagesViewports200ResponseItemMeasureRlXItemFractionRound, nil + case "truncate": + return DocPagesViewports200ResponseItemMeasureRlXItemFractionTruncate, nil + } + var t DocPagesViewports200ResponseItemMeasureRlXItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesViewports200ResponseItemMeasureRlXItemFraction) Ptr() *DocPagesViewports200ResponseItemMeasureRlXItemFraction { + return &d +} + +type DocPagesViewports200ResponseItemMeasureRlXItemLabelPosition string + +const ( + DocPagesViewports200ResponseItemMeasureRlXItemLabelPositionSuffix DocPagesViewports200ResponseItemMeasureRlXItemLabelPosition = "suffix" + DocPagesViewports200ResponseItemMeasureRlXItemLabelPositionPrefix DocPagesViewports200ResponseItemMeasureRlXItemLabelPosition = "prefix" +) + +func NewDocPagesViewports200ResponseItemMeasureRlXItemLabelPositionFromString(s string) (DocPagesViewports200ResponseItemMeasureRlXItemLabelPosition, error) { + switch s { + case "suffix": + return DocPagesViewports200ResponseItemMeasureRlXItemLabelPositionSuffix, nil + case "prefix": + return DocPagesViewports200ResponseItemMeasureRlXItemLabelPositionPrefix, nil + } + var t DocPagesViewports200ResponseItemMeasureRlXItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) +} + +func (d DocPagesViewports200ResponseItemMeasureRlXItemLabelPosition) Ptr() *DocPagesViewports200ResponseItemMeasureRlXItemLabelPosition { + return &d +} + var ( - docPagesSetName200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber = big.NewInt(1 << 0) - docPagesSetName200ResponseMetaCacheDeltaPagesItemFieldCache = big.NewInt(1 << 1) + docPagesViewports200ResponseItemMeasureRlYItemFieldUnit = big.NewInt(1 << 0) + docPagesViewports200ResponseItemMeasureRlYItemFieldConversion = big.NewInt(1 << 1) + docPagesViewports200ResponseItemMeasureRlYItemFieldFraction = big.NewInt(1 << 2) + docPagesViewports200ResponseItemMeasureRlYItemFieldPrecision = big.NewInt(1 << 3) + docPagesViewports200ResponseItemMeasureRlYItemFieldFixed = big.NewInt(1 << 4) + docPagesViewports200ResponseItemMeasureRlYItemFieldThousands = big.NewInt(1 << 5) + docPagesViewports200ResponseItemMeasureRlYItemFieldDecimal = big.NewInt(1 << 6) + docPagesViewports200ResponseItemMeasureRlYItemFieldPrefixSpacing = big.NewInt(1 << 7) + docPagesViewports200ResponseItemMeasureRlYItemFieldSuffixSpacing = big.NewInt(1 << 8) + docPagesViewports200ResponseItemMeasureRlYItemFieldLabelPosition = big.NewInt(1 << 9) ) -type DocPagesSetName200ResponseMetaCacheDeltaPagesItem struct { - PageObjectNumber int `json:"pageObjectNumber" url:"pageObjectNumber"` - Cache *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache `json:"cache" url:"cache"` +type DocPagesViewports200ResponseItemMeasureRlYItem struct { + Unit string `json:"unit" url:"unit"` + Conversion *float64 `json:"conversion,omitempty" url:"conversion,omitempty"` + Fraction *DocPagesViewports200ResponseItemMeasureRlYItemFraction `json:"fraction,omitempty" url:"fraction,omitempty"` + Precision *int `json:"precision,omitempty" url:"precision,omitempty"` + Fixed *bool `json:"fixed,omitempty" url:"fixed,omitempty"` + Thousands *string `json:"thousands,omitempty" url:"thousands,omitempty"` + Decimal *string `json:"decimal,omitempty" url:"decimal,omitempty"` + PrefixSpacing *string `json:"prefixSpacing,omitempty" url:"prefixSpacing,omitempty"` + SuffixSpacing *string `json:"suffixSpacing,omitempty" url:"suffixSpacing,omitempty"` + LabelPosition *DocPagesViewports200ResponseItemMeasureRlYItemLabelPosition `json:"labelPosition,omitempty" url:"labelPosition,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -146408,155 +166362,167 @@ type DocPagesSetName200ResponseMetaCacheDeltaPagesItem struct { rawJSON json.RawMessage } -func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItem) GetPageObjectNumber() int { +func (d *DocPagesViewports200ResponseItemMeasureRlYItem) GetUnit() string { if d == nil { - return 0 + return "" } - return d.PageObjectNumber + return d.Unit } -func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItem) GetCache() *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache { +func (d *DocPagesViewports200ResponseItemMeasureRlYItem) GetConversion() *float64 { if d == nil { return nil } - return d.Cache + return d.Conversion } -func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItem) GetExtraProperties() map[string]interface{} { +func (d *DocPagesViewports200ResponseItemMeasureRlYItem) GetFraction() *DocPagesViewports200ResponseItemMeasureRlYItemFraction { if d == nil { return nil } - return d.extraProperties + return d.Fraction } -func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItem) require(field *big.Int) { - if d.explicitFields == nil { - d.explicitFields = big.NewInt(0) +func (d *DocPagesViewports200ResponseItemMeasureRlYItem) GetPrecision() *int { + if d == nil { + return nil } - d.explicitFields.Or(d.explicitFields, field) -} - -// SetPageObjectNumber sets the PageObjectNumber field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItem) SetPageObjectNumber(pageObjectNumber int) { - d.PageObjectNumber = pageObjectNumber - d.require(docPagesSetName200ResponseMetaCacheDeltaPagesItemFieldPageObjectNumber) -} - -// SetCache sets the Cache field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItem) SetCache(cache *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache) { - d.Cache = cache - d.require(docPagesSetName200ResponseMetaCacheDeltaPagesItemFieldCache) + return d.Precision } -func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItem) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesSetName200ResponseMetaCacheDeltaPagesItem - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *d = DocPagesSetName200ResponseMetaCacheDeltaPagesItem(value) - extraProperties, err := internal.ExtractExtraProperties(data, *d) - if err != nil { - return err +func (d *DocPagesViewports200ResponseItemMeasureRlYItem) GetFixed() *bool { + if d == nil { + return nil } - d.extraProperties = extraProperties - d.rawJSON = json.RawMessage(data) - return nil + return d.Fixed } -func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItem) MarshalJSON() ([]byte, error) { - type embed DocPagesSetName200ResponseMetaCacheDeltaPagesItem - var marshaler = struct { - embed - }{ - embed: embed(*d), +func (d *DocPagesViewports200ResponseItemMeasureRlYItem) GetThousands() *string { + if d == nil { + return nil } - explicitMarshaler := internal.HandleExplicitFields(marshaler, d.explicitFields) - return json.Marshal(explicitMarshaler) + return d.Thousands } -func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItem) String() string { +func (d *DocPagesViewports200ResponseItemMeasureRlYItem) GetDecimal() *string { if d == nil { - return "" - } - if len(d.rawJSON) > 0 { - if value, err := internal.StringifyJSON(d.rawJSON); err == nil { - return value - } - } - if value, err := internal.StringifyJSON(d); err == nil { - return value + return nil } - return fmt.Sprintf("%#v", d) + return d.Decimal } -var ( - docPagesSetName200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion = big.NewInt(1 << 0) - docPagesSetName200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion = big.NewInt(1 << 1) -) - -type DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache struct { - ContentVersion int `json:"contentVersion" url:"contentVersion"` - AnnotationVersion int `json:"annotationVersion" url:"annotationVersion"` - - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` - - extraProperties map[string]interface{} - rawJSON json.RawMessage +func (d *DocPagesViewports200ResponseItemMeasureRlYItem) GetPrefixSpacing() *string { + if d == nil { + return nil + } + return d.PrefixSpacing } -func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache) GetContentVersion() int { +func (d *DocPagesViewports200ResponseItemMeasureRlYItem) GetSuffixSpacing() *string { if d == nil { - return 0 + return nil } - return d.ContentVersion + return d.SuffixSpacing } -func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache) GetAnnotationVersion() int { +func (d *DocPagesViewports200ResponseItemMeasureRlYItem) GetLabelPosition() *DocPagesViewports200ResponseItemMeasureRlYItemLabelPosition { if d == nil { - return 0 + return nil } - return d.AnnotationVersion + return d.LabelPosition } -func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache) GetExtraProperties() map[string]interface{} { +func (d *DocPagesViewports200ResponseItemMeasureRlYItem) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache) require(field *big.Int) { +func (d *DocPagesViewports200ResponseItemMeasureRlYItem) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetContentVersion sets the ContentVersion field and marks it as non-optional; +// SetUnit sets the Unit field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache) SetContentVersion(contentVersion int) { - d.ContentVersion = contentVersion - d.require(docPagesSetName200ResponseMetaCacheDeltaPagesItemCacheFieldContentVersion) +func (d *DocPagesViewports200ResponseItemMeasureRlYItem) SetUnit(unit string) { + d.Unit = unit + d.require(docPagesViewports200ResponseItemMeasureRlYItemFieldUnit) } -// SetAnnotationVersion sets the AnnotationVersion field and marks it as non-optional; +// SetConversion sets the Conversion field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache) SetAnnotationVersion(annotationVersion int) { - d.AnnotationVersion = annotationVersion - d.require(docPagesSetName200ResponseMetaCacheDeltaPagesItemCacheFieldAnnotationVersion) +func (d *DocPagesViewports200ResponseItemMeasureRlYItem) SetConversion(conversion *float64) { + d.Conversion = conversion + d.require(docPagesViewports200ResponseItemMeasureRlYItemFieldConversion) } -func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache +// SetFraction sets the Fraction field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlYItem) SetFraction(fraction *DocPagesViewports200ResponseItemMeasureRlYItemFraction) { + d.Fraction = fraction + d.require(docPagesViewports200ResponseItemMeasureRlYItemFieldFraction) +} + +// SetPrecision sets the Precision field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlYItem) SetPrecision(precision *int) { + d.Precision = precision + d.require(docPagesViewports200ResponseItemMeasureRlYItemFieldPrecision) +} + +// SetFixed sets the Fixed field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlYItem) SetFixed(fixed *bool) { + d.Fixed = fixed + d.require(docPagesViewports200ResponseItemMeasureRlYItemFieldFixed) +} + +// SetThousands sets the Thousands field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlYItem) SetThousands(thousands *string) { + d.Thousands = thousands + d.require(docPagesViewports200ResponseItemMeasureRlYItemFieldThousands) +} + +// SetDecimal sets the Decimal field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlYItem) SetDecimal(decimal *string) { + d.Decimal = decimal + d.require(docPagesViewports200ResponseItemMeasureRlYItemFieldDecimal) +} + +// SetPrefixSpacing sets the PrefixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlYItem) SetPrefixSpacing(prefixSpacing *string) { + d.PrefixSpacing = prefixSpacing + d.require(docPagesViewports200ResponseItemMeasureRlYItemFieldPrefixSpacing) +} + +// SetSuffixSpacing sets the SuffixSpacing field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlYItem) SetSuffixSpacing(suffixSpacing *string) { + d.SuffixSpacing = suffixSpacing + d.require(docPagesViewports200ResponseItemMeasureRlYItemFieldSuffixSpacing) +} + +// SetLabelPosition sets the LabelPosition field and marks it as non-optional; +// this prevents an empty or null value for this field from being omitted during serialization. +func (d *DocPagesViewports200ResponseItemMeasureRlYItem) SetLabelPosition(labelPosition *DocPagesViewports200ResponseItemMeasureRlYItemLabelPosition) { + d.LabelPosition = labelPosition + d.require(docPagesViewports200ResponseItemMeasureRlYItemFieldLabelPosition) +} + +func (d *DocPagesViewports200ResponseItemMeasureRlYItem) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesViewports200ResponseItemMeasureRlYItem var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache(value) + *d = DocPagesViewports200ResponseItemMeasureRlYItem(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -146566,8 +166532,8 @@ func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache) UnmarshalJSON(d return nil } -func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON() ([]byte, error) { - type embed DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache +func (d *DocPagesViewports200ResponseItemMeasureRlYItem) MarshalJSON() ([]byte, error) { + type embed DocPagesViewports200ResponseItemMeasureRlYItem var marshaler = struct { embed }{ @@ -146577,7 +166543,7 @@ func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache) MarshalJSON() ( return json.Marshal(explicitMarshaler) } -func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache) String() string { +func (d *DocPagesViewports200ResponseItemMeasureRlYItem) String() string { if d == nil { return "" } @@ -146592,103 +166558,86 @@ func (d *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache) String() string return fmt.Sprintf("%#v", d) } -var ( - docPagesSetName400ResponseFieldName = big.NewInt(1 << 0) - docPagesSetName400ResponseFieldCode = big.NewInt(1 << 1) - docPagesSetName400ResponseFieldMessage = big.NewInt(1 << 2) - docPagesSetName400ResponseFieldDetails = big.NewInt(1 << 3) -) - -type DocPagesSetName400Response struct { - Name DocPagesSetName400ResponseName `json:"name" url:"name"` - Code DocPagesSetName400ResponseCode `json:"code" url:"code"` - Message string `json:"message" url:"message"` - Details map[string]any `json:"details,omitempty" url:"details,omitempty"` +type DocPagesViewports200ResponseItemMeasureRlYItemFraction string - // Private bitmask of fields set to an explicit value and therefore not to be omitted - explicitFields *big.Int `json:"-" url:"-"` +const ( + DocPagesViewports200ResponseItemMeasureRlYItemFractionDecimal DocPagesViewports200ResponseItemMeasureRlYItemFraction = "decimal" + DocPagesViewports200ResponseItemMeasureRlYItemFractionFraction DocPagesViewports200ResponseItemMeasureRlYItemFraction = "fraction" + DocPagesViewports200ResponseItemMeasureRlYItemFractionRound DocPagesViewports200ResponseItemMeasureRlYItemFraction = "round" + DocPagesViewports200ResponseItemMeasureRlYItemFractionTruncate DocPagesViewports200ResponseItemMeasureRlYItemFraction = "truncate" +) - extraProperties map[string]interface{} - rawJSON json.RawMessage +func NewDocPagesViewports200ResponseItemMeasureRlYItemFractionFromString(s string) (DocPagesViewports200ResponseItemMeasureRlYItemFraction, error) { + switch s { + case "decimal": + return DocPagesViewports200ResponseItemMeasureRlYItemFractionDecimal, nil + case "fraction": + return DocPagesViewports200ResponseItemMeasureRlYItemFractionFraction, nil + case "round": + return DocPagesViewports200ResponseItemMeasureRlYItemFractionRound, nil + case "truncate": + return DocPagesViewports200ResponseItemMeasureRlYItemFractionTruncate, nil + } + var t DocPagesViewports200ResponseItemMeasureRlYItemFraction + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocPagesSetName400Response) GetName() DocPagesSetName400ResponseName { - if d == nil { - return "" - } - return d.Name +func (d DocPagesViewports200ResponseItemMeasureRlYItemFraction) Ptr() *DocPagesViewports200ResponseItemMeasureRlYItemFraction { + return &d } -func (d *DocPagesSetName400Response) GetCode() DocPagesSetName400ResponseCode { - if d == nil { - return "" +type DocPagesViewports200ResponseItemMeasureRlYItemLabelPosition string + +const ( + DocPagesViewports200ResponseItemMeasureRlYItemLabelPositionSuffix DocPagesViewports200ResponseItemMeasureRlYItemLabelPosition = "suffix" + DocPagesViewports200ResponseItemMeasureRlYItemLabelPositionPrefix DocPagesViewports200ResponseItemMeasureRlYItemLabelPosition = "prefix" +) + +func NewDocPagesViewports200ResponseItemMeasureRlYItemLabelPositionFromString(s string) (DocPagesViewports200ResponseItemMeasureRlYItemLabelPosition, error) { + switch s { + case "suffix": + return DocPagesViewports200ResponseItemMeasureRlYItemLabelPositionSuffix, nil + case "prefix": + return DocPagesViewports200ResponseItemMeasureRlYItemLabelPositionPrefix, nil } - return d.Code + var t DocPagesViewports200ResponseItemMeasureRlYItemLabelPosition + return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d *DocPagesSetName400Response) GetMessage() string { - if d == nil { - return "" - } - return d.Message +func (d DocPagesViewports200ResponseItemMeasureRlYItemLabelPosition) Ptr() *DocPagesViewports200ResponseItemMeasureRlYItemLabelPosition { + return &d } -func (d *DocPagesSetName400Response) GetDetails() map[string]any { - if d == nil { - return nil - } - return d.Details +type DocPagesViewports200ResponseItemMeasureUnknown struct { + + // Private bitmask of fields set to an explicit value and therefore not to be omitted + explicitFields *big.Int `json:"-" url:"-"` + + extraProperties map[string]interface{} + rawJSON json.RawMessage } -func (d *DocPagesSetName400Response) GetExtraProperties() map[string]interface{} { +func (d *DocPagesViewports200ResponseItemMeasureUnknown) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesSetName400Response) require(field *big.Int) { +func (d *DocPagesViewports200ResponseItemMeasureUnknown) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } d.explicitFields.Or(d.explicitFields, field) } -// SetName sets the Name field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesSetName400Response) SetName(name DocPagesSetName400ResponseName) { - d.Name = name - d.require(docPagesSetName400ResponseFieldName) -} - -// SetCode sets the Code field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesSetName400Response) SetCode(code DocPagesSetName400ResponseCode) { - d.Code = code - d.require(docPagesSetName400ResponseFieldCode) -} - -// SetMessage sets the Message field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesSetName400Response) SetMessage(message string) { - d.Message = message - d.require(docPagesSetName400ResponseFieldMessage) -} - -// SetDetails sets the Details field and marks it as non-optional; -// this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesSetName400Response) SetDetails(details map[string]any) { - d.Details = details - d.require(docPagesSetName400ResponseFieldDetails) -} - -func (d *DocPagesSetName400Response) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesSetName400Response +func (d *DocPagesViewports200ResponseItemMeasureUnknown) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesViewports200ResponseItemMeasureUnknown var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesSetName400Response(value) + *d = DocPagesViewports200ResponseItemMeasureUnknown(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -146698,8 +166647,8 @@ func (d *DocPagesSetName400Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocPagesSetName400Response) MarshalJSON() ([]byte, error) { - type embed DocPagesSetName400Response +func (d *DocPagesViewports200ResponseItemMeasureUnknown) MarshalJSON() ([]byte, error) { + type embed DocPagesViewports200ResponseItemMeasureUnknown var marshaler = struct { embed }{ @@ -146709,7 +166658,7 @@ func (d *DocPagesSetName400Response) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocPagesSetName400Response) String() string { +func (d *DocPagesViewports200ResponseItemMeasureUnknown) String() string { if d == nil { return "" } @@ -146724,128 +166673,18 @@ func (d *DocPagesSetName400Response) String() string { return fmt.Sprintf("%#v", d) } -type DocPagesSetName400ResponseCode string - -const ( - DocPagesSetName400ResponseCodeUnknown DocPagesSetName400ResponseCode = "Unknown" - DocPagesSetName400ResponseCodeInvalidArg DocPagesSetName400ResponseCode = "InvalidArg" - DocPagesSetName400ResponseCodeDocNotOpen DocPagesSetName400ResponseCode = "DocNotOpen" - DocPagesSetName400ResponseCodeDocOpenFailed DocPagesSetName400ResponseCode = "DocOpenFailed" - DocPagesSetName400ResponseCodeDocPasswordRequired DocPagesSetName400ResponseCode = "DocPasswordRequired" - DocPagesSetName400ResponseCodeDocPasswordIncorrect DocPagesSetName400ResponseCode = "DocPasswordIncorrect" - DocPagesSetName400ResponseCodeSharePasswordRequired DocPagesSetName400ResponseCode = "SharePasswordRequired" - DocPagesSetName400ResponseCodeAborted DocPagesSetName400ResponseCode = "Aborted" - DocPagesSetName400ResponseCodeNetwork DocPagesSetName400ResponseCode = "Network" - DocPagesSetName400ResponseCodeUnauthenticated DocPagesSetName400ResponseCode = "Unauthenticated" - DocPagesSetName400ResponseCodeForbidden DocPagesSetName400ResponseCode = "Forbidden" - DocPagesSetName400ResponseCodeNotFound DocPagesSetName400ResponseCode = "NotFound" - DocPagesSetName400ResponseCodeWireFormat DocPagesSetName400ResponseCode = "WireFormat" - DocPagesSetName400ResponseCodeRuntimeUnavailable DocPagesSetName400ResponseCode = "RuntimeUnavailable" - DocPagesSetName400ResponseCodeInvalidReference DocPagesSetName400ResponseCode = "InvalidReference" - DocPagesSetName400ResponseCodeWeakAnnotationSessionConflict DocPagesSetName400ResponseCode = "WeakAnnotationSessionConflict" - DocPagesSetName400ResponseCodeLayerVersionConflict DocPagesSetName400ResponseCode = "LayerVersionConflict" - DocPagesSetName400ResponseCodeNotImplemented DocPagesSetName400ResponseCode = "NotImplemented" - DocPagesSetName400ResponseCodeMalformedPdf DocPagesSetName400ResponseCode = "MalformedPdf" - DocPagesSetName400ResponseCodeSigningPending DocPagesSetName400ResponseCode = "SigningPending" - DocPagesSetName400ResponseCodeSigningExpired DocPagesSetName400ResponseCode = "SigningExpired" - DocPagesSetName400ResponseCodeSigningVersionMismatch DocPagesSetName400ResponseCode = "SigningVersionMismatch" - DocPagesSetName400ResponseCodeSignatureRefused DocPagesSetName400ResponseCode = "SignatureRefused" - DocPagesSetName400ResponseCodeProtectedDocument DocPagesSetName400ResponseCode = "ProtectedDocument" - DocPagesSetName400ResponseCodeStaleBase DocPagesSetName400ResponseCode = "StaleBase" -) - -func NewDocPagesSetName400ResponseCodeFromString(s string) (DocPagesSetName400ResponseCode, error) { - switch s { - case "Unknown": - return DocPagesSetName400ResponseCodeUnknown, nil - case "InvalidArg": - return DocPagesSetName400ResponseCodeInvalidArg, nil - case "DocNotOpen": - return DocPagesSetName400ResponseCodeDocNotOpen, nil - case "DocOpenFailed": - return DocPagesSetName400ResponseCodeDocOpenFailed, nil - case "DocPasswordRequired": - return DocPagesSetName400ResponseCodeDocPasswordRequired, nil - case "DocPasswordIncorrect": - return DocPagesSetName400ResponseCodeDocPasswordIncorrect, nil - case "SharePasswordRequired": - return DocPagesSetName400ResponseCodeSharePasswordRequired, nil - case "Aborted": - return DocPagesSetName400ResponseCodeAborted, nil - case "Network": - return DocPagesSetName400ResponseCodeNetwork, nil - case "Unauthenticated": - return DocPagesSetName400ResponseCodeUnauthenticated, nil - case "Forbidden": - return DocPagesSetName400ResponseCodeForbidden, nil - case "NotFound": - return DocPagesSetName400ResponseCodeNotFound, nil - case "WireFormat": - return DocPagesSetName400ResponseCodeWireFormat, nil - case "RuntimeUnavailable": - return DocPagesSetName400ResponseCodeRuntimeUnavailable, nil - case "InvalidReference": - return DocPagesSetName400ResponseCodeInvalidReference, nil - case "WeakAnnotationSessionConflict": - return DocPagesSetName400ResponseCodeWeakAnnotationSessionConflict, nil - case "LayerVersionConflict": - return DocPagesSetName400ResponseCodeLayerVersionConflict, nil - case "NotImplemented": - return DocPagesSetName400ResponseCodeNotImplemented, nil - case "MalformedPdf": - return DocPagesSetName400ResponseCodeMalformedPdf, nil - case "SigningPending": - return DocPagesSetName400ResponseCodeSigningPending, nil - case "SigningExpired": - return DocPagesSetName400ResponseCodeSigningExpired, nil - case "SigningVersionMismatch": - return DocPagesSetName400ResponseCodeSigningVersionMismatch, nil - case "SignatureRefused": - return DocPagesSetName400ResponseCodeSignatureRefused, nil - case "ProtectedDocument": - return DocPagesSetName400ResponseCodeProtectedDocument, nil - case "StaleBase": - return DocPagesSetName400ResponseCodeStaleBase, nil - } - var t DocPagesSetName400ResponseCode - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocPagesSetName400ResponseCode) Ptr() *DocPagesSetName400ResponseCode { - return &d -} - -type DocPagesSetName400ResponseName string - -const ( - DocPagesSetName400ResponseNameEngineError DocPagesSetName400ResponseName = "EngineError" -) - -func NewDocPagesSetName400ResponseNameFromString(s string) (DocPagesSetName400ResponseName, error) { - switch s { - case "EngineError": - return DocPagesSetName400ResponseNameEngineError, nil - } - var t DocPagesSetName400ResponseName - return "", fmt.Errorf("%s is not a valid %T", s, t) -} - -func (d DocPagesSetName400ResponseName) Ptr() *DocPagesSetName400ResponseName { - return &d -} - var ( - docPagesSetName404ResponseFieldName = big.NewInt(1 << 0) - docPagesSetName404ResponseFieldCode = big.NewInt(1 << 1) - docPagesSetName404ResponseFieldMessage = big.NewInt(1 << 2) - docPagesSetName404ResponseFieldDetails = big.NewInt(1 << 3) + docPagesViewports404ResponseFieldName = big.NewInt(1 << 0) + docPagesViewports404ResponseFieldCode = big.NewInt(1 << 1) + docPagesViewports404ResponseFieldMessage = big.NewInt(1 << 2) + docPagesViewports404ResponseFieldDetails = big.NewInt(1 << 3) ) -type DocPagesSetName404Response struct { - Name DocPagesSetName404ResponseName `json:"name" url:"name"` - Code DocPagesSetName404ResponseCode `json:"code" url:"code"` - Message string `json:"message" url:"message"` - Details map[string]any `json:"details,omitempty" url:"details,omitempty"` +type DocPagesViewports404Response struct { + Name DocPagesViewports404ResponseName `json:"name" url:"name"` + Code DocPagesViewports404ResponseCode `json:"code" url:"code"` + Message string `json:"message" url:"message"` + Details map[string]any `json:"details,omitempty" url:"details,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -146854,42 +166693,42 @@ type DocPagesSetName404Response struct { rawJSON json.RawMessage } -func (d *DocPagesSetName404Response) GetName() DocPagesSetName404ResponseName { +func (d *DocPagesViewports404Response) GetName() DocPagesViewports404ResponseName { if d == nil { return "" } return d.Name } -func (d *DocPagesSetName404Response) GetCode() DocPagesSetName404ResponseCode { +func (d *DocPagesViewports404Response) GetCode() DocPagesViewports404ResponseCode { if d == nil { return "" } return d.Code } -func (d *DocPagesSetName404Response) GetMessage() string { +func (d *DocPagesViewports404Response) GetMessage() string { if d == nil { return "" } return d.Message } -func (d *DocPagesSetName404Response) GetDetails() map[string]any { +func (d *DocPagesViewports404Response) GetDetails() map[string]any { if d == nil { return nil } return d.Details } -func (d *DocPagesSetName404Response) GetExtraProperties() map[string]interface{} { +func (d *DocPagesViewports404Response) GetExtraProperties() map[string]interface{} { if d == nil { return nil } return d.extraProperties } -func (d *DocPagesSetName404Response) require(field *big.Int) { +func (d *DocPagesViewports404Response) require(field *big.Int) { if d.explicitFields == nil { d.explicitFields = big.NewInt(0) } @@ -146898,39 +166737,39 @@ func (d *DocPagesSetName404Response) require(field *big.Int) { // SetName sets the Name field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesSetName404Response) SetName(name DocPagesSetName404ResponseName) { +func (d *DocPagesViewports404Response) SetName(name DocPagesViewports404ResponseName) { d.Name = name - d.require(docPagesSetName404ResponseFieldName) + d.require(docPagesViewports404ResponseFieldName) } // SetCode sets the Code field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesSetName404Response) SetCode(code DocPagesSetName404ResponseCode) { +func (d *DocPagesViewports404Response) SetCode(code DocPagesViewports404ResponseCode) { d.Code = code - d.require(docPagesSetName404ResponseFieldCode) + d.require(docPagesViewports404ResponseFieldCode) } // SetMessage sets the Message field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesSetName404Response) SetMessage(message string) { +func (d *DocPagesViewports404Response) SetMessage(message string) { d.Message = message - d.require(docPagesSetName404ResponseFieldMessage) + d.require(docPagesViewports404ResponseFieldMessage) } // SetDetails sets the Details field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (d *DocPagesSetName404Response) SetDetails(details map[string]any) { +func (d *DocPagesViewports404Response) SetDetails(details map[string]any) { d.Details = details - d.require(docPagesSetName404ResponseFieldDetails) + d.require(docPagesViewports404ResponseFieldDetails) } -func (d *DocPagesSetName404Response) UnmarshalJSON(data []byte) error { - type unmarshaler DocPagesSetName404Response +func (d *DocPagesViewports404Response) UnmarshalJSON(data []byte) error { + type unmarshaler DocPagesViewports404Response var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *d = DocPagesSetName404Response(value) + *d = DocPagesViewports404Response(value) extraProperties, err := internal.ExtractExtraProperties(data, *d) if err != nil { return err @@ -146940,8 +166779,8 @@ func (d *DocPagesSetName404Response) UnmarshalJSON(data []byte) error { return nil } -func (d *DocPagesSetName404Response) MarshalJSON() ([]byte, error) { - type embed DocPagesSetName404Response +func (d *DocPagesViewports404Response) MarshalJSON() ([]byte, error) { + type embed DocPagesViewports404Response var marshaler = struct { embed }{ @@ -146951,7 +166790,7 @@ func (d *DocPagesSetName404Response) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (d *DocPagesSetName404Response) String() string { +func (d *DocPagesViewports404Response) String() string { if d == nil { return "" } @@ -146966,118 +166805,116 @@ func (d *DocPagesSetName404Response) String() string { return fmt.Sprintf("%#v", d) } -type DocPagesSetName404ResponseCode string +type DocPagesViewports404ResponseCode string const ( - DocPagesSetName404ResponseCodeUnknown DocPagesSetName404ResponseCode = "Unknown" - DocPagesSetName404ResponseCodeInvalidArg DocPagesSetName404ResponseCode = "InvalidArg" - DocPagesSetName404ResponseCodeDocNotOpen DocPagesSetName404ResponseCode = "DocNotOpen" - DocPagesSetName404ResponseCodeDocOpenFailed DocPagesSetName404ResponseCode = "DocOpenFailed" - DocPagesSetName404ResponseCodeDocPasswordRequired DocPagesSetName404ResponseCode = "DocPasswordRequired" - DocPagesSetName404ResponseCodeDocPasswordIncorrect DocPagesSetName404ResponseCode = "DocPasswordIncorrect" - DocPagesSetName404ResponseCodeSharePasswordRequired DocPagesSetName404ResponseCode = "SharePasswordRequired" - DocPagesSetName404ResponseCodeAborted DocPagesSetName404ResponseCode = "Aborted" - DocPagesSetName404ResponseCodeNetwork DocPagesSetName404ResponseCode = "Network" - DocPagesSetName404ResponseCodeUnauthenticated DocPagesSetName404ResponseCode = "Unauthenticated" - DocPagesSetName404ResponseCodeForbidden DocPagesSetName404ResponseCode = "Forbidden" - DocPagesSetName404ResponseCodeNotFound DocPagesSetName404ResponseCode = "NotFound" - DocPagesSetName404ResponseCodeWireFormat DocPagesSetName404ResponseCode = "WireFormat" - DocPagesSetName404ResponseCodeRuntimeUnavailable DocPagesSetName404ResponseCode = "RuntimeUnavailable" - DocPagesSetName404ResponseCodeInvalidReference DocPagesSetName404ResponseCode = "InvalidReference" - DocPagesSetName404ResponseCodeWeakAnnotationSessionConflict DocPagesSetName404ResponseCode = "WeakAnnotationSessionConflict" - DocPagesSetName404ResponseCodeLayerVersionConflict DocPagesSetName404ResponseCode = "LayerVersionConflict" - DocPagesSetName404ResponseCodeNotImplemented DocPagesSetName404ResponseCode = "NotImplemented" - DocPagesSetName404ResponseCodeMalformedPdf DocPagesSetName404ResponseCode = "MalformedPdf" - DocPagesSetName404ResponseCodeSigningPending DocPagesSetName404ResponseCode = "SigningPending" - DocPagesSetName404ResponseCodeSigningExpired DocPagesSetName404ResponseCode = "SigningExpired" - DocPagesSetName404ResponseCodeSigningVersionMismatch DocPagesSetName404ResponseCode = "SigningVersionMismatch" - DocPagesSetName404ResponseCodeSignatureRefused DocPagesSetName404ResponseCode = "SignatureRefused" - DocPagesSetName404ResponseCodeProtectedDocument DocPagesSetName404ResponseCode = "ProtectedDocument" - DocPagesSetName404ResponseCodeStaleBase DocPagesSetName404ResponseCode = "StaleBase" -) - -func NewDocPagesSetName404ResponseCodeFromString(s string) (DocPagesSetName404ResponseCode, error) { + DocPagesViewports404ResponseCodeUnknown DocPagesViewports404ResponseCode = "Unknown" + DocPagesViewports404ResponseCodeInvalidArg DocPagesViewports404ResponseCode = "InvalidArg" + DocPagesViewports404ResponseCodeDocNotOpen DocPagesViewports404ResponseCode = "DocNotOpen" + DocPagesViewports404ResponseCodeDocOpenFailed DocPagesViewports404ResponseCode = "DocOpenFailed" + DocPagesViewports404ResponseCodeDocPasswordRequired DocPagesViewports404ResponseCode = "DocPasswordRequired" + DocPagesViewports404ResponseCodeDocPasswordIncorrect DocPagesViewports404ResponseCode = "DocPasswordIncorrect" + DocPagesViewports404ResponseCodeSharePasswordRequired DocPagesViewports404ResponseCode = "SharePasswordRequired" + DocPagesViewports404ResponseCodeAborted DocPagesViewports404ResponseCode = "Aborted" + DocPagesViewports404ResponseCodeNetwork DocPagesViewports404ResponseCode = "Network" + DocPagesViewports404ResponseCodeUnauthenticated DocPagesViewports404ResponseCode = "Unauthenticated" + DocPagesViewports404ResponseCodeForbidden DocPagesViewports404ResponseCode = "Forbidden" + DocPagesViewports404ResponseCodeNotFound DocPagesViewports404ResponseCode = "NotFound" + DocPagesViewports404ResponseCodeWireFormat DocPagesViewports404ResponseCode = "WireFormat" + DocPagesViewports404ResponseCodeRuntimeUnavailable DocPagesViewports404ResponseCode = "RuntimeUnavailable" + DocPagesViewports404ResponseCodeInvalidReference DocPagesViewports404ResponseCode = "InvalidReference" + DocPagesViewports404ResponseCodeWeakAnnotationSessionConflict DocPagesViewports404ResponseCode = "WeakAnnotationSessionConflict" + DocPagesViewports404ResponseCodeLayerVersionConflict DocPagesViewports404ResponseCode = "LayerVersionConflict" + DocPagesViewports404ResponseCodeNotImplemented DocPagesViewports404ResponseCode = "NotImplemented" + DocPagesViewports404ResponseCodeMalformedPdf DocPagesViewports404ResponseCode = "MalformedPdf" + DocPagesViewports404ResponseCodeSigningPending DocPagesViewports404ResponseCode = "SigningPending" + DocPagesViewports404ResponseCodeSigningExpired DocPagesViewports404ResponseCode = "SigningExpired" + DocPagesViewports404ResponseCodeSigningVersionMismatch DocPagesViewports404ResponseCode = "SigningVersionMismatch" + DocPagesViewports404ResponseCodeSignatureRefused DocPagesViewports404ResponseCode = "SignatureRefused" + DocPagesViewports404ResponseCodeProtectedDocument DocPagesViewports404ResponseCode = "ProtectedDocument" + DocPagesViewports404ResponseCodeStaleBase DocPagesViewports404ResponseCode = "StaleBase" +) + +func NewDocPagesViewports404ResponseCodeFromString(s string) (DocPagesViewports404ResponseCode, error) { switch s { case "Unknown": - return DocPagesSetName404ResponseCodeUnknown, nil + return DocPagesViewports404ResponseCodeUnknown, nil case "InvalidArg": - return DocPagesSetName404ResponseCodeInvalidArg, nil + return DocPagesViewports404ResponseCodeInvalidArg, nil case "DocNotOpen": - return DocPagesSetName404ResponseCodeDocNotOpen, nil + return DocPagesViewports404ResponseCodeDocNotOpen, nil case "DocOpenFailed": - return DocPagesSetName404ResponseCodeDocOpenFailed, nil + return DocPagesViewports404ResponseCodeDocOpenFailed, nil case "DocPasswordRequired": - return DocPagesSetName404ResponseCodeDocPasswordRequired, nil + return DocPagesViewports404ResponseCodeDocPasswordRequired, nil case "DocPasswordIncorrect": - return DocPagesSetName404ResponseCodeDocPasswordIncorrect, nil + return DocPagesViewports404ResponseCodeDocPasswordIncorrect, nil case "SharePasswordRequired": - return DocPagesSetName404ResponseCodeSharePasswordRequired, nil + return DocPagesViewports404ResponseCodeSharePasswordRequired, nil case "Aborted": - return DocPagesSetName404ResponseCodeAborted, nil + return DocPagesViewports404ResponseCodeAborted, nil case "Network": - return DocPagesSetName404ResponseCodeNetwork, nil + return DocPagesViewports404ResponseCodeNetwork, nil case "Unauthenticated": - return DocPagesSetName404ResponseCodeUnauthenticated, nil + return DocPagesViewports404ResponseCodeUnauthenticated, nil case "Forbidden": - return DocPagesSetName404ResponseCodeForbidden, nil + return DocPagesViewports404ResponseCodeForbidden, nil case "NotFound": - return DocPagesSetName404ResponseCodeNotFound, nil + return DocPagesViewports404ResponseCodeNotFound, nil case "WireFormat": - return DocPagesSetName404ResponseCodeWireFormat, nil + return DocPagesViewports404ResponseCodeWireFormat, nil case "RuntimeUnavailable": - return DocPagesSetName404ResponseCodeRuntimeUnavailable, nil + return DocPagesViewports404ResponseCodeRuntimeUnavailable, nil case "InvalidReference": - return DocPagesSetName404ResponseCodeInvalidReference, nil + return DocPagesViewports404ResponseCodeInvalidReference, nil case "WeakAnnotationSessionConflict": - return DocPagesSetName404ResponseCodeWeakAnnotationSessionConflict, nil + return DocPagesViewports404ResponseCodeWeakAnnotationSessionConflict, nil case "LayerVersionConflict": - return DocPagesSetName404ResponseCodeLayerVersionConflict, nil + return DocPagesViewports404ResponseCodeLayerVersionConflict, nil case "NotImplemented": - return DocPagesSetName404ResponseCodeNotImplemented, nil + return DocPagesViewports404ResponseCodeNotImplemented, nil case "MalformedPdf": - return DocPagesSetName404ResponseCodeMalformedPdf, nil + return DocPagesViewports404ResponseCodeMalformedPdf, nil case "SigningPending": - return DocPagesSetName404ResponseCodeSigningPending, nil + return DocPagesViewports404ResponseCodeSigningPending, nil case "SigningExpired": - return DocPagesSetName404ResponseCodeSigningExpired, nil + return DocPagesViewports404ResponseCodeSigningExpired, nil case "SigningVersionMismatch": - return DocPagesSetName404ResponseCodeSigningVersionMismatch, nil + return DocPagesViewports404ResponseCodeSigningVersionMismatch, nil case "SignatureRefused": - return DocPagesSetName404ResponseCodeSignatureRefused, nil + return DocPagesViewports404ResponseCodeSignatureRefused, nil case "ProtectedDocument": - return DocPagesSetName404ResponseCodeProtectedDocument, nil + return DocPagesViewports404ResponseCodeProtectedDocument, nil case "StaleBase": - return DocPagesSetName404ResponseCodeStaleBase, nil + return DocPagesViewports404ResponseCodeStaleBase, nil } - var t DocPagesSetName404ResponseCode + var t DocPagesViewports404ResponseCode return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocPagesSetName404ResponseCode) Ptr() *DocPagesSetName404ResponseCode { +func (d DocPagesViewports404ResponseCode) Ptr() *DocPagesViewports404ResponseCode { return &d } -type DocPagesSetName404ResponseName string +type DocPagesViewports404ResponseName string const ( - DocPagesSetName404ResponseNameEngineError DocPagesSetName404ResponseName = "EngineError" + DocPagesViewports404ResponseNameEngineError DocPagesViewports404ResponseName = "EngineError" ) -func NewDocPagesSetName404ResponseNameFromString(s string) (DocPagesSetName404ResponseName, error) { +func NewDocPagesViewports404ResponseNameFromString(s string) (DocPagesViewports404ResponseName, error) { switch s { case "EngineError": - return DocPagesSetName404ResponseNameEngineError, nil + return DocPagesViewports404ResponseNameEngineError, nil } - var t DocPagesSetName404ResponseName + var t DocPagesViewports404ResponseName return "", fmt.Errorf("%s is not a valid %T", s, t) } -func (d DocPagesSetName404ResponseName) Ptr() *DocPagesSetName404ResponseName { +func (d DocPagesViewports404ResponseName) Ptr() *DocPagesViewports404ResponseName { return &d } -type DocPagesSetNameRequest = map[string]any - var ( docRedactionsApply200ResponseFieldMeta = big.NewInt(1 << 0) ) diff --git a/types_test.go b/types_test.go index 8951b9d..bb466ad 100644 --- a/types_test.go +++ b/types_test.go @@ -41691,6 +41691,38 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemInkRefOb } func TestSettersDocAnnotationsList200ResponseAnnotationsItemLine(t *testing.T) { + t.Run("SetIntent", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} + var fernTestValueIntent *DocAnnotationsList200ResponseAnnotationsItemLineIntent + obj.SetIntent(fernTestValueIntent) + assert.Equal(t, fernTestValueIntent, obj.Intent) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMeasure", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} + var fernTestValueMeasure *DocAnnotationsList200ResponseAnnotationsItemLineMeasure + obj.SetMeasure(fernTestValueMeasure) + assert.Equal(t, fernTestValueMeasure, obj.Measure) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCaption", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} + var fernTestValueCaption *DocAnnotationsList200ResponseAnnotationsItemLineCaption + obj.SetCaption(fernTestValueCaption) + assert.Equal(t, fernTestValueCaption, obj.Caption) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLeader", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} + var fernTestValueLeader *DocAnnotationsList200ResponseAnnotationsItemLineLeader + obj.SetLeader(fernTestValueLeader) + assert.Equal(t, fernTestValueLeader, obj.Leader) + assert.NotNil(t, obj.explicitFields) + }) + t.Run("SetRef", func(t *testing.T) { obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemLineRef @@ -41926,6 +41958,138 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemLine(t *testing.T) { } func TestGettersDocAnnotationsList200ResponseAnnotationsItemLine(t *testing.T) { + t.Run("GetIntent", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLineIntent + obj.Intent = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIntent(), "getter should return the property value") + }) + + t.Run("GetIntent_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} + obj.Intent = nil + + // Act & Assert + assert.Nil(t, obj.GetIntent(), "getter should return nil when property is nil") + }) + + t.Run("GetIntent_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLine + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIntent() // Should return zero value + }) + + t.Run("GetMeasure", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLineMeasure + obj.Measure = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMeasure(), "getter should return the property value") + }) + + t.Run("GetMeasure_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} + obj.Measure = nil + + // Act & Assert + assert.Nil(t, obj.GetMeasure(), "getter should return nil when property is nil") + }) + + t.Run("GetMeasure_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLine + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMeasure() // Should return zero value + }) + + t.Run("GetCaption", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLineCaption + obj.Caption = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCaption(), "getter should return the property value") + }) + + t.Run("GetCaption_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} + obj.Caption = nil + + // Act & Assert + assert.Nil(t, obj.GetCaption(), "getter should return nil when property is nil") + }) + + t.Run("GetCaption_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLine + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCaption() // Should return zero value + }) + + t.Run("GetLeader", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLineLeader + obj.Leader = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLeader(), "getter should return the property value") + }) + + t.Run("GetLeader_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} + obj.Leader = nil + + // Act & Assert + assert.Nil(t, obj.GetLeader(), "getter should return nil when property is nil") + }) + + t.Run("GetLeader_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLine + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLeader() // Should return zero value + }) + t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange @@ -42816,14 +42980,14 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemLine(t *testing.T) { } func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLine(t *testing.T) { - t.Run("SetRef_MarksExplicit", func(t *testing.T) { + t.Run("SetIntent_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} - var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemLineRef + var fernTestValueIntent *DocAnnotationsList200ResponseAnnotationsItemLineIntent // Act - obj.SetRef(fernTestValueRef) + obj.SetIntent(fernTestValueIntent) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -42847,14 +43011,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLine(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetMeasure_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} - var fernTestValuePageObjectNumber int + var fernTestValueMeasure *DocAnnotationsList200ResponseAnnotationsItemLineMeasure // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetMeasure(fernTestValueMeasure) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -42878,14 +43042,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLine(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("SetCaption_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} - var fernTestValueIndex int + var fernTestValueCaption *DocAnnotationsList200ResponseAnnotationsItemLineCaption // Act - obj.SetIndex(fernTestValueIndex) + obj.SetCaption(fernTestValueCaption) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -42909,14 +43073,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLine(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { + t.Run("SetLeader_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} - var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemLineIdentityQuality + var fernTestValueLeader *DocAnnotationsList200ResponseAnnotationsItemLineLeader // Act - obj.SetIdentityQuality(fernTestValueIdentityQuality) + obj.SetLeader(fernTestValueLeader) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -42940,14 +43104,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLine(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} - var fernTestValueNm *string + var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemLineRef // Act - obj.SetNm(fernTestValueNm) + obj.SetRef(fernTestValueRef) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -42971,14 +43135,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLine(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFlags_MarksExplicit", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} - var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemLineFlags + var fernTestValuePageObjectNumber int // Act - obj.SetFlags(fernTestValueFlags) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -43002,14 +43166,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLine(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRect_MarksExplicit", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} - var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemLineRect + var fernTestValueIndex int // Act - obj.SetRect(fernTestValueRect) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -43033,14 +43197,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLine(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetContents_MarksExplicit", func(t *testing.T) { + t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} - var fernTestValueContents *string + var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemLineIdentityQuality // Act - obj.SetContents(fernTestValueContents) + obj.SetIdentityQuality(fernTestValueIdentityQuality) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -43064,14 +43228,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLine(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetSubject_MarksExplicit", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} - var fernTestValueSubject *string + var fernTestValueNm *string // Act - obj.SetSubject(fernTestValueSubject) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -43095,14 +43259,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLine(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { + t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} - var fernTestValueAuthor *string + var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemLineFlags // Act - obj.SetAuthor(fernTestValueAuthor) + obj.SetFlags(fernTestValueFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -43126,14 +43290,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLine(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreated_MarksExplicit", func(t *testing.T) { + t.Run("SetRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} - var fernTestValueCreated *time.Time + var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemLineRect // Act - obj.SetCreated(fernTestValueCreated) + obj.SetRect(fernTestValueRect) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -43157,14 +43321,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLine(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetModified_MarksExplicit", func(t *testing.T) { + t.Run("SetContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} - var fernTestValueModified *time.Time + var fernTestValueContents *string // Act - obj.SetModified(fernTestValueModified) + obj.SetContents(fernTestValueContents) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -43188,14 +43352,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLine(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { + t.Run("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} - var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemLineBlendMode + var fernTestValueSubject *string // Act - obj.SetBlendMode(fernTestValueBlendMode) + obj.SetSubject(fernTestValueSubject) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -43219,14 +43383,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLine(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { + t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} - var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemLineInReplyTo + var fernTestValueAuthor *string // Act - obj.SetInReplyTo(fernTestValueInReplyTo) + obj.SetAuthor(fernTestValueAuthor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -43250,14 +43414,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLine(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { + t.Run("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} - var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemLineReplyType + var fernTestValueCreated *time.Time // Act - obj.SetReplyType(fernTestValueReplyType) + obj.SetCreated(fernTestValueCreated) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -43281,14 +43445,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLine(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUserID_MarksExplicit", func(t *testing.T) { + t.Run("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} - var fernTestValueUserID *string + var fernTestValueModified *time.Time // Act - obj.SetUserID(fernTestValueUserID) + obj.SetModified(fernTestValueModified) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -43312,14 +43476,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLine(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { + t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} - var fernTestValueGroupID *string + var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemLineBlendMode // Act - obj.SetGroupID(fernTestValueGroupID) + obj.SetBlendMode(fernTestValueBlendMode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -43343,14 +43507,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLine(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} - var fernTestValueCreatedBy *string + var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemLineInReplyTo // Act - obj.SetCreatedBy(fernTestValueCreatedBy) + obj.SetInReplyTo(fernTestValueInReplyTo) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -43374,14 +43538,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLine(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} - var fernTestValueUpdatedBy *string + var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemLineReplyType // Act - obj.SetUpdatedBy(fernTestValueUpdatedBy) + obj.SetReplyType(fernTestValueReplyType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -43405,14 +43569,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLine(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Run("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} - var fernTestValueActions *PdfAnnotationActions + var fernTestValueUserID *string // Act - obj.SetActions(fernTestValueActions) + obj.SetUserID(fernTestValueUserID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -43436,14 +43600,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLine(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetColor_MarksExplicit", func(t *testing.T) { + t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} - var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemLineColor + var fernTestValueGroupID *string // Act - obj.SetColor(fernTestValueColor) + obj.SetGroupID(fernTestValueGroupID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -43467,14 +43631,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLine(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { + t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} - var fernTestValueOpacity float64 + var fernTestValueCreatedBy *string // Act - obj.SetOpacity(fernTestValueOpacity) + obj.SetCreatedBy(fernTestValueCreatedBy) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -43498,14 +43662,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLine(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetStrokeWidth_MarksExplicit", func(t *testing.T) { + t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} - var fernTestValueStrokeWidth float64 + var fernTestValueUpdatedBy *string // Act - obj.SetStrokeWidth(fernTestValueStrokeWidth) + obj.SetUpdatedBy(fernTestValueUpdatedBy) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -43529,14 +43693,138 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLine(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBorderStyle_MarksExplicit", func(t *testing.T) { + t.Run("SetActions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} - var fernTestValueBorderStyle DocAnnotationsList200ResponseAnnotationsItemLineBorderStyle + var fernTestValueActions *PdfAnnotationActions // Act - obj.SetBorderStyle(fernTestValueBorderStyle) + obj.SetActions(fernTestValueActions) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetColor_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} + var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemLineColor + + // Act + obj.SetColor(fernTestValueColor) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} + var fernTestValueOpacity float64 + + // Act + obj.SetOpacity(fernTestValueOpacity) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetStrokeWidth_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} + var fernTestValueStrokeWidth float64 + + // Act + obj.SetStrokeWidth(fernTestValueStrokeWidth) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBorderStyle_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLine{} + var fernTestValueBorderStyle DocAnnotationsList200ResponseAnnotationsItemLineBorderStyle + + // Act + obj.SetBorderStyle(fernTestValueBorderStyle) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -43717,6 +44005,354 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLine(t * } +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLineCaption(t *testing.T) { + t.Run("SetEnabled", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineCaption{} + var fernTestValueEnabled bool + obj.SetEnabled(fernTestValueEnabled) + assert.Equal(t, fernTestValueEnabled, obj.Enabled) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPosition", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineCaption{} + var fernTestValuePosition *DocAnnotationsList200ResponseAnnotationsItemLineCaptionPosition + obj.SetPosition(fernTestValuePosition) + assert.Equal(t, fernTestValuePosition, obj.Position) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetOffset", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineCaption{} + var fernTestValueOffset *DocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset + obj.SetOffset(fernTestValueOffset) + assert.Equal(t, fernTestValueOffset, obj.Offset) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineCaption(t *testing.T) { + t.Run("GetEnabled", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineCaption{} + var expected bool + obj.Enabled = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetEnabled(), "getter should return the property value") + }) + + t.Run("GetEnabled_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineCaption + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetEnabled() // Should return zero value + }) + + t.Run("GetPosition", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineCaption{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLineCaptionPosition + obj.Position = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPosition(), "getter should return the property value") + }) + + t.Run("GetPosition_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineCaption{} + obj.Position = nil + + // Act & Assert + assert.Nil(t, obj.GetPosition(), "getter should return nil when property is nil") + }) + + t.Run("GetPosition_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineCaption + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPosition() // Should return zero value + }) + + t.Run("GetOffset", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineCaption{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset + obj.Offset = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetOffset(), "getter should return the property value") + }) + + t.Run("GetOffset_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineCaption{} + obj.Offset = nil + + // Act & Assert + assert.Nil(t, obj.GetOffset(), "getter should return nil when property is nil") + }) + + t.Run("GetOffset_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineCaption + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetOffset() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineCaption(t *testing.T) { + t.Run("SetEnabled_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineCaption{} + var fernTestValueEnabled bool + + // Act + obj.SetEnabled(fernTestValueEnabled) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPosition_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineCaption{} + var fernTestValuePosition *DocAnnotationsList200ResponseAnnotationsItemLineCaptionPosition + + // Act + obj.SetPosition(fernTestValuePosition) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetOffset_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineCaption{} + var fernTestValueOffset *DocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset + + // Act + obj.SetOffset(fernTestValueOffset) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset(t *testing.T) { + t.Run("SetAlong", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset{} + var fernTestValueAlong float64 + obj.SetAlong(fernTestValueAlong) + assert.Equal(t, fernTestValueAlong, obj.Along) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPerpendicular", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset{} + var fernTestValuePerpendicular float64 + obj.SetPerpendicular(fernTestValuePerpendicular) + assert.Equal(t, fernTestValuePerpendicular, obj.Perpendicular) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset(t *testing.T) { + t.Run("GetAlong", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset{} + var expected float64 + obj.Along = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAlong(), "getter should return the property value") + }) + + t.Run("GetAlong_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAlong() // Should return zero value + }) + + t.Run("GetPerpendicular", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset{} + var expected float64 + obj.Perpendicular = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPerpendicular(), "getter should return the property value") + }) + + t.Run("GetPerpendicular_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPerpendicular() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset(t *testing.T) { + t.Run("SetAlong_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset{} + var fernTestValueAlong float64 + + // Act + obj.SetAlong(fernTestValueAlong) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPerpendicular_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset{} + var fernTestValuePerpendicular float64 + + // Act + obj.SetPerpendicular(fernTestValuePerpendicular) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + func TestSettersDocAnnotationsList200ResponseAnnotationsItemLineColor(t *testing.T) { t.Run("SetR", func(t *testing.T) { obj := &DocAnnotationsList200ResponseAnnotationsItemLineColor{} @@ -45527,83 +46163,134 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineInte } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemLineLineEndings(t *testing.T) { - t.Run("SetStart", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLineEndings{} - var fernTestValueStart DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStart - obj.SetStart(fernTestValueStart) - assert.Equal(t, fernTestValueStart, obj.Start) +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLineLeader(t *testing.T) { + t.Run("SetLength", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLeader{} + var fernTestValueLength float64 + obj.SetLength(fernTestValueLength) + assert.Equal(t, fernTestValueLength, obj.Length) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetEnd", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLineEndings{} - var fernTestValueEnd DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEnd - obj.SetEnd(fernTestValueEnd) - assert.Equal(t, fernTestValueEnd, obj.End) + t.Run("SetExtension", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLeader{} + var fernTestValueExtension *float64 + obj.SetExtension(fernTestValueExtension) + assert.Equal(t, fernTestValueExtension, obj.Extension) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetOffset", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLeader{} + var fernTestValueOffset *float64 + obj.SetOffset(fernTestValueOffset) + assert.Equal(t, fernTestValueOffset, obj.Offset) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineLineEndings(t *testing.T) { - t.Run("GetStart", func(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineLeader(t *testing.T) { + t.Run("GetLength", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLineEndings{} - var expected DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStart - obj.Start = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLeader{} + var expected float64 + obj.Length = expected // Act & Assert - assert.Equal(t, expected, obj.GetStart(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLength(), "getter should return the property value") }) - t.Run("GetStart_NilReceiver", func(t *testing.T) { + t.Run("GetLength_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineLineEndings + var obj *DocAnnotationsList200ResponseAnnotationsItemLineLeader // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetStart() // Should return zero value + _ = obj.GetLength() // Should return zero value }) - t.Run("GetEnd", func(t *testing.T) { + t.Run("GetExtension", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLineEndings{} - var expected DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEnd - obj.End = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLeader{} + var expected *float64 + obj.Extension = expected // Act & Assert - assert.Equal(t, expected, obj.GetEnd(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExtension(), "getter should return the property value") }) - t.Run("GetEnd_NilReceiver", func(t *testing.T) { + t.Run("GetExtension_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineLineEndings + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLeader{} + obj.Extension = nil + + // Act & Assert + assert.Nil(t, obj.GetExtension(), "getter should return nil when property is nil") + }) + + t.Run("GetExtension_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineLeader // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetEnd() // Should return zero value + _ = obj.GetExtension() // Should return zero value + }) + + t.Run("GetOffset", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLeader{} + var expected *float64 + obj.Offset = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetOffset(), "getter should return the property value") + }) + + t.Run("GetOffset_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLeader{} + obj.Offset = nil + + // Act & Assert + assert.Nil(t, obj.GetOffset(), "getter should return nil when property is nil") + }) + + t.Run("GetOffset_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineLeader + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetOffset() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineLineEndings(t *testing.T) { - t.Run("SetStart_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineLeader(t *testing.T) { + t.Run("SetLength_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLineEndings{} - var fernTestValueStart DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStart + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLeader{} + var fernTestValueLength float64 // Act - obj.SetStart(fernTestValueStart) + obj.SetLength(fernTestValueLength) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -45627,14 +46314,45 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineLine // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetEnd_MarksExplicit", func(t *testing.T) { + t.Run("SetExtension_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLineEndings{} - var fernTestValueEnd DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEnd + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLeader{} + var fernTestValueExtension *float64 // Act - obj.SetEnd(fernTestValueEnd) + obj.SetExtension(fernTestValueExtension) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetOffset_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLeader{} + var fernTestValueOffset *float64 + + // Act + obj.SetOffset(fernTestValueOffset) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -45660,18 +46378,18 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineLine } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemLineLinePoints(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLineLineEndings(t *testing.T) { t.Run("SetStart", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePoints{} - var fernTestValueStart *DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLineEndings{} + var fernTestValueStart DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStart obj.SetStart(fernTestValueStart) assert.Equal(t, fernTestValueStart, obj.Start) assert.NotNil(t, obj.explicitFields) }) t.Run("SetEnd", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePoints{} - var fernTestValueEnd *DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLineEndings{} + var fernTestValueEnd DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEnd obj.SetEnd(fernTestValueEnd) assert.Equal(t, fernTestValueEnd, obj.End) assert.NotNil(t, obj.explicitFields) @@ -45679,31 +46397,21 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemLineLinePoints(t *te } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineLinePoints(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineLineEndings(t *testing.T) { t.Run("GetStart", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePoints{} - var expected *DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLineEndings{} + var expected DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStart obj.Start = expected // Act & Assert assert.Equal(t, expected, obj.GetStart(), "getter should return the property value") }) - t.Run("GetStart_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePoints{} - obj.Start = nil - - // Act & Assert - assert.Nil(t, obj.GetStart(), "getter should return nil when property is nil") - }) - t.Run("GetStart_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineLinePoints + var obj *DocAnnotationsList200ResponseAnnotationsItemLineLineEndings // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -45716,27 +46424,17 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineLinePoints(t *te t.Run("GetEnd", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePoints{} - var expected *DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLineEndings{} + var expected DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEnd obj.End = expected // Act & Assert assert.Equal(t, expected, obj.GetEnd(), "getter should return the property value") }) - t.Run("GetEnd_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePoints{} - obj.End = nil - - // Act & Assert - assert.Nil(t, obj.GetEnd(), "getter should return nil when property is nil") - }) - t.Run("GetEnd_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineLinePoints + var obj *DocAnnotationsList200ResponseAnnotationsItemLineLineEndings // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -45748,12 +46446,12 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineLinePoints(t *te } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineLinePoints(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineLineEndings(t *testing.T) { t.Run("SetStart_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePoints{} - var fernTestValueStart *DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLineEndings{} + var fernTestValueStart DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStart // Act obj.SetStart(fernTestValueStart) @@ -45783,8 +46481,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineLine t.Run("SetEnd_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePoints{} - var fernTestValueEnd *DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLineEndings{} + var fernTestValueEnd DocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEnd // Act obj.SetEnd(fernTestValueEnd) @@ -45813,83 +46511,103 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineLine } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLineLinePoints(t *testing.T) { + t.Run("SetStart", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePoints{} + var fernTestValueStart *DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart + obj.SetStart(fernTestValueStart) + assert.Equal(t, fernTestValueStart, obj.Start) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) + t.Run("SetEnd", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePoints{} + var fernTestValueEnd *DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd + obj.SetEnd(fernTestValueEnd) + assert.Equal(t, fernTestValueEnd, obj.End) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd(t *testing.T) { - t.Run("GetX", func(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineLinePoints(t *testing.T) { + t.Run("GetStart", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd{} - var expected float64 - obj.X = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePoints{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart + obj.Start = expected // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + assert.Equal(t, expected, obj.GetStart(), "getter should return the property value") }) - t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Run("GetStart_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePoints{} + obj.Start = nil + + // Act & Assert + assert.Nil(t, obj.GetStart(), "getter should return nil when property is nil") + }) + + t.Run("GetStart_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineLinePoints // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetX() // Should return zero value + _ = obj.GetStart() // Should return zero value }) - t.Run("GetY", func(t *testing.T) { + t.Run("GetEnd", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd{} - var expected float64 - obj.Y = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePoints{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd + obj.End = expected // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + assert.Equal(t, expected, obj.GetEnd(), "getter should return the property value") }) - t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Run("GetEnd_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePoints{} + obj.End = nil + + // Act & Assert + assert.Nil(t, obj.GetEnd(), "getter should return nil when property is nil") + }) + + t.Run("GetEnd_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineLinePoints // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetY() // Should return zero value + _ = obj.GetEnd() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineLinePoints(t *testing.T) { + t.Run("SetStart_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd{} - var fernTestValueX float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePoints{} + var fernTestValueStart *DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart // Act - obj.SetX(fernTestValueX) + obj.SetStart(fernTestValueStart) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -45913,14 +46631,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineLine // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Run("SetEnd_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd{} - var fernTestValueY float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePoints{} + var fernTestValueEnd *DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd // Act - obj.SetY(fernTestValueY) + obj.SetEnd(fernTestValueEnd) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -45946,9 +46664,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineLine } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd(t *testing.T) { t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd{} var fernTestValueX float64 obj.SetX(fernTestValueX) assert.Equal(t, fernTestValueX, obj.X) @@ -45956,7 +46674,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart( }) t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd{} var fernTestValueY float64 obj.SetY(fernTestValueY) assert.Equal(t, fernTestValueY, obj.Y) @@ -45965,11 +46683,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart( } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd(t *testing.T) { t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd{} var expected float64 obj.X = expected @@ -45979,7 +46697,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart( t.Run("GetX_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart + var obj *DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -45992,7 +46710,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart( t.Run("GetY", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd{} var expected float64 obj.Y = expected @@ -46002,7 +46720,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart( t.Run("GetY_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart + var obj *DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -46014,11 +46732,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart( } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd(t *testing.T) { t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd{} var fernTestValueX float64 // Act @@ -46049,7 +46767,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineLine t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsEnd{} var fernTestValueY float64 // Act @@ -46079,207 +46797,83 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineLine } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemLineRect(t *testing.T) { - t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRect{} - var fernTestValueLeft float64 - obj.SetLeft(fernTestValueLeft) - assert.Equal(t, fernTestValueLeft, obj.Left) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRect{} - var fernTestValueBottom float64 - obj.SetBottom(fernTestValueBottom) - assert.Equal(t, fernTestValueBottom, obj.Bottom) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRect{} - var fernTestValueRight float64 - obj.SetRight(fernTestValueRight) - assert.Equal(t, fernTestValueRight, obj.Right) +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRect{} - var fernTestValueTop float64 - obj.SetTop(fernTestValueTop) - assert.Equal(t, fernTestValueTop, obj.Top) + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineRect(t *testing.T) { - t.Run("GetLeft", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRect{} - var expected float64 - obj.Left = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") - }) - - t.Run("GetLeft_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetLeft() // Should return zero value - }) - - t.Run("GetBottom", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRect{} - var expected float64 - obj.Bottom = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") - }) - - t.Run("GetBottom_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetBottom() // Should return zero value - }) - - t.Run("GetRight", func(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRect{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart{} var expected float64 - obj.Right = expected + obj.X = expected // Act & Assert - assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") }) - t.Run("GetRight_NilReceiver", func(t *testing.T) { + t.Run("GetX_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineRect + var obj *DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRight() // Should return zero value + _ = obj.GetX() // Should return zero value }) - t.Run("GetTop", func(t *testing.T) { + t.Run("GetY", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRect{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart{} var expected float64 - obj.Top = expected + obj.Y = expected // Act & Assert - assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") }) - t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Run("GetY_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineRect + var obj *DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTop() // Should return zero value + _ = obj.GetY() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineRect(t *testing.T) { - t.Run("SetLeft_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRect{} - var fernTestValueLeft float64 - - // Act - obj.SetLeft(fernTestValueLeft) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetBottom_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRect{} - var fernTestValueBottom float64 - - // Act - obj.SetBottom(fernTestValueBottom) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetRight_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRect{} - var fernTestValueRight float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart{} + var fernTestValueX float64 // Act - obj.SetRight(fernTestValueRight) + obj.SetX(fernTestValueX) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -46303,14 +46897,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineRect // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRect{} - var fernTestValueTop float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart{} + var fernTestValueY float64 // Act - obj.SetTop(fernTestValueTop) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -46336,444 +46930,515 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineRect } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineRef(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineMeasure(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRef{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasure{} var expected string - obj.Kind = expected + obj.Subtype = expected // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineRef + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasure // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKind() // Should return zero value + _ = obj.GetSubtype() // Should return zero value }) - t.Run("GetObjectNumber", func(t *testing.T) { + t.Run("GetRl", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber - obj.ObjectNumber = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasure{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl + obj.Rl = expected // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRl(), "getter should return the property value") }) - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Run("GetRl_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRef{} - obj.ObjectNumber = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasure{} + obj.Rl = nil // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRl(), "getter should return nil when property is nil") }) - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetRl_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineRef + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasure // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetObjectNumber() // Should return zero value + _ = obj.GetRl() // Should return zero value }) - t.Run("GetNm", func(t *testing.T) { + t.Run("GetGeo", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemLineRefNm - obj.Nm = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasure{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLineMeasureGeo + obj.Geo = expected // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + assert.Equal(t, expected, obj.GetGeo(), "getter should return the property value") }) - t.Run("GetNm_NilValue", func(t *testing.T) { + t.Run("GetGeo_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRef{} - obj.Nm = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasure{} + obj.Geo = nil // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetGeo(), "getter should return nil when property is nil") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetGeo_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineRef + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasure // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetGeo() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetUnknown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex - obj.Index = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasure{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLineMeasureUnknown + obj.Unknown = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") }) - t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Run("GetUnknown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRef{} - obj.Index = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasure{} + obj.Unknown = nil // Act & Assert - assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetUnknown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineRef + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasure // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetUnknown() // Should return zero value }) } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemLineRefIndex(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndex{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLineMeasureRl(t *testing.T) { + t.Run("SetRatio", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + var fernTestValueRatio *string + obj.SetRatio(fernTestValueRatio) + assert.Equal(t, fernTestValueRatio, obj.Ratio) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndex{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + var fernTestValueX []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + var fernTestValueY []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDistance", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + var fernTestValueDistance []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem + obj.SetDistance(fernTestValueDistance) + assert.Equal(t, fernTestValueDistance, obj.Distance) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetArea", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + var fernTestValueArea []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem + obj.SetArea(fernTestValueArea) + assert.Equal(t, fernTestValueArea, obj.Area) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAngle", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + var fernTestValueAngle []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem + obj.SetAngle(fernTestValueAngle) + assert.Equal(t, fernTestValueAngle, obj.Angle) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSlope", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + var fernTestValueSlope []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem + obj.SetSlope(fernTestValueSlope) + assert.Equal(t, fernTestValueSlope, obj.Slope) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetOrigin", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + var fernTestValueOrigin *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin + obj.SetOrigin(fernTestValueOrigin) + assert.Equal(t, fernTestValueOrigin, obj.Origin) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCyx", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + var fernTestValueCyx *float64 + obj.SetCyx(fernTestValueCyx) + assert.Equal(t, fernTestValueCyx, obj.Cyx) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineRefIndex(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineMeasureRl(t *testing.T) { + t.Run("GetRatio", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndex{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + var expected *string + obj.Ratio = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRatio(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetRatio_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + obj.Ratio = nil + + // Act & Assert + assert.Nil(t, obj.GetRatio(), "getter should return nil when property is nil") + }) + + t.Run("GetRatio_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetRatio() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndex{} - var expected int - obj.Index = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + var expected []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem + obj.X = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetX_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + obj.X = nil + + // Act & Assert + assert.Nil(t, obj.GetX(), "getter should return nil when property is nil") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetX() // Should return zero value }) - t.Run("GetRevision", func(t *testing.T) { + t.Run("GetY", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndex{} - var expected *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision - obj.Revision = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + var expected []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem + obj.Y = expected // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") }) - t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Run("GetY_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndex{} - obj.Revision = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + obj.Y = nil // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetY(), "getter should return nil when property is nil") }) - t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Run("GetY_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRevision() // Should return zero value + _ = obj.GetY() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineRefIndex(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("GetDistance", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndex{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + var expected []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem + obj.Distance = expected - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetDistance(), "getter should return the property value") }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("GetDistance_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndex{} - var fernTestValueIndex int + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + obj.Distance = nil - // Act - obj.SetIndex(fernTestValueIndex) + // Act & Assert + assert.Nil(t, obj.GetDistance(), "getter should return nil when property is nil") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetDistance_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDistance() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetArea", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + var expected []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem + obj.Area = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetArea(), "getter should return the property value") }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("GetArea_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + obj.Area = nil - // Act - obj.SetRevision(fernTestValueRevision) + // Act & Assert + assert.Nil(t, obj.GetArea(), "getter should return nil when property is nil") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetArea_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetArea() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetAngle", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + var expected []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem + obj.Angle = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetAngle(), "getter should return the property value") }) -} + t.Run("GetAngle_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + obj.Angle = nil -func TestSettersDocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision{} - var fernTestValueDocSessionID string - obj.SetDocSessionID(fernTestValueDocSessionID) - assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Nil(t, obj.GetAngle(), "getter should return nil when property is nil") }) - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) + t.Run("GetAngle_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAngle() // Should return zero value }) - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("GetSlope", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + var expected []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem + obj.Slope = expected -} + // Act & Assert + assert.Equal(t, expected, obj.GetSlope(), "getter should return the property value") + }) -func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { + t.Run("GetSlope_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision{} - var expected string - obj.DocSessionID = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + obj.Slope = nil // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + assert.Nil(t, obj.GetSlope(), "getter should return nil when property is nil") }) - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Run("GetSlope_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDocSessionID() // Should return zero value + _ = obj.GetSlope() // Should return zero value }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetOrigin", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin + obj.Origin = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrigin(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetOrigin_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + obj.Origin = nil + + // Act & Assert + assert.Nil(t, obj.GetOrigin(), "getter should return nil when property is nil") + }) + + t.Run("GetOrigin_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetOrigin() // Should return zero value }) - t.Run("GetGeneration", func(t *testing.T) { + t.Run("GetCyx", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision{} - var expected int - obj.Generation = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + var expected *float64 + obj.Cyx = expected // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCyx(), "getter should return the property value") }) - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Run("GetCyx_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + obj.Cyx = nil + + // Act & Assert + assert.Nil(t, obj.GetCyx(), "getter should return nil when property is nil") + }) + + t.Run("GetCyx_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGeneration() // Should return zero value + _ = obj.GetCyx() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineMeasureRl(t *testing.T) { + t.Run("SetRatio_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision{} - var fernTestValueDocSessionID string + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + var fernTestValueRatio *string // Act - obj.SetDocSessionID(fernTestValueDocSessionID) + obj.SetRatio(fernTestValueRatio) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -46797,14 +47462,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineRefI // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + var fernTestValueX []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetX(fernTestValueX) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -46828,14 +47493,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineRefI // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision{} - var fernTestValueGeneration int + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + var fernTestValueY []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem // Act - obj.SetGeneration(fernTestValueGeneration) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -46859,85 +47524,45 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineRefI // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemLineRefNm(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefNm{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefNm{} - var fernTestValueNm string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineRefNm(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("SetDistance_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefNm{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + var fernTestValueDistance []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineRefNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) + // Act + obj.SetDistance(fernTestValueDistance) - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefNm{} - var expected string - obj.Nm = expected + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetNm_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineRefNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNm() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineRefNm(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetArea_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefNm{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + var fernTestValueArea []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetArea(fernTestValueArea) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -46961,14 +47586,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineRefN // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetAngle_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefNm{} - var fernTestValueNm string + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + var fernTestValueAngle []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem // Act - obj.SetNm(fernTestValueNm) + obj.SetAngle(fernTestValueAngle) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -46992,85 +47617,45 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineRefN // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("SetSlope_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + var fernTestValueSlope []*DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) + // Act + obj.SetSlope(fernTestValueSlope) - t.Run("GetAnnotObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAnnotObjectNumber() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetOrigin_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + var fernTestValueOrigin *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetOrigin(fernTestValueOrigin) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -47094,14 +47679,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineRefO // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetCyx_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber{} - var fernTestValueAnnotObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + var fernTestValueCyx *float64 // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + obj.SetCyx(fernTestValueCyx) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -47127,842 +47712,421 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineRefO } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemLink(t *testing.T) { - t.Run("SetRef", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemLinkRef - obj.SetRef(fernTestValueRef) - assert.Equal(t, fernTestValueRef, obj.Ref) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIdentityQuality", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQuality - obj.SetIdentityQuality(fernTestValueIdentityQuality) - assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueNm *string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetFlags", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemLinkFlags - obj.SetFlags(fernTestValueFlags) - assert.Equal(t, fernTestValueFlags, obj.Flags) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRect", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemLinkRect - obj.SetRect(fernTestValueRect) - assert.Equal(t, fernTestValueRect, obj.Rect) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetContents", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueContents *string - obj.SetContents(fernTestValueContents) - assert.Equal(t, fernTestValueContents, obj.Contents) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetSubject", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueSubject *string - obj.SetSubject(fernTestValueSubject) - assert.Equal(t, fernTestValueSubject, obj.Subject) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAuthor", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueAuthor *string - obj.SetAuthor(fernTestValueAuthor) - assert.Equal(t, fernTestValueAuthor, obj.Author) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCreated", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueCreated *time.Time - obj.SetCreated(fernTestValueCreated) - assert.Equal(t, fernTestValueCreated, obj.Created) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetModified", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueModified *time.Time - obj.SetModified(fernTestValueModified) - assert.Equal(t, fernTestValueModified, obj.Modified) +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetBlendMode", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode - obj.SetBlendMode(fernTestValueBlendMode) - assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetInReplyTo", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo - obj.SetInReplyTo(fernTestValueInReplyTo) - assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetReplyType", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemLinkReplyType - obj.SetReplyType(fernTestValueReplyType) - assert.Equal(t, fernTestValueReplyType, obj.ReplyType) + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetUserID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueUserID *string - obj.SetUserID(fernTestValueUserID) - assert.Equal(t, fernTestValueUserID, obj.UserID) + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetGroupID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueGroupID *string - obj.SetGroupID(fernTestValueGroupID) - assert.Equal(t, fernTestValueGroupID, obj.GroupID) + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCreatedBy", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueCreatedBy *string - obj.SetCreatedBy(fernTestValueCreatedBy) - assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetUpdatedBy", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueUpdatedBy *string - obj.SetUpdatedBy(fernTestValueUpdatedBy) - assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetActions", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueActions *PdfAnnotationActions - obj.SetActions(fernTestValueActions) - assert.Equal(t, fernTestValueActions, obj.Actions) + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTarget", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueTarget *DocAnnotationsList200ResponseAnnotationsItemLinkTarget - obj.SetTarget(fernTestValueTarget) - assert.Equal(t, fernTestValueTarget, obj.Target) + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemLink(t *testing.T) { - t.Run("GetRef", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var expected *DocAnnotationsList200ResponseAnnotationsItemLinkRef - obj.Ref = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") - }) - - t.Run("GetRef_NilValue", func(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - obj.Ref = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + var expected string + obj.Unit = expected // Act & Assert - assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") }) - t.Run("GetRef_NilReceiver", func(t *testing.T) { + t.Run("GetUnit_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLink + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRef() // Should return zero value + _ = obj.GetUnit() // Should return zero value }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetConversion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + var expected *float64 + obj.Conversion = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLink - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetConversion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var expected int - obj.Index = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + obj.Conversion = nil // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetConversion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLink + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetConversion() // Should return zero value }) - t.Run("GetIdentityQuality", func(t *testing.T) { + t.Run("GetFraction", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var expected DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQuality - obj.IdentityQuality = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFraction + obj.Fraction = expected // Act & Assert - assert.Equal(t, expected, obj.GetIdentityQuality(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") }) - t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { + t.Run("GetFraction_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLink + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + obj.Fraction = nil + + // Act & Assert + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") + }) + + t.Run("GetFraction_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIdentityQuality() // Should return zero value + _ = obj.GetFraction() // Should return zero value }) - t.Run("GetNm", func(t *testing.T) { + t.Run("GetPrecision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var expected *string - obj.Nm = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + var expected *int + obj.Precision = expected // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") }) - t.Run("GetNm_NilValue", func(t *testing.T) { + t.Run("GetPrecision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - obj.Nm = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + obj.Precision = nil // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLink + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetPrecision() // Should return zero value }) - t.Run("GetFlags", func(t *testing.T) { + t.Run("GetFixed", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var expected *DocAnnotationsList200ResponseAnnotationsItemLinkFlags - obj.Flags = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + var expected *bool + obj.Fixed = expected // Act & Assert - assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") }) - t.Run("GetFlags_NilValue", func(t *testing.T) { + t.Run("GetFixed_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - obj.Flags = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + obj.Fixed = nil // Act & Assert - assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") }) - t.Run("GetFlags_NilReceiver", func(t *testing.T) { + t.Run("GetFixed_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLink + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFlags() // Should return zero value + _ = obj.GetFixed() // Should return zero value }) - t.Run("GetRect", func(t *testing.T) { + t.Run("GetThousands", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var expected *DocAnnotationsList200ResponseAnnotationsItemLinkRect - obj.Rect = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + var expected *string + obj.Thousands = expected // Act & Assert - assert.Equal(t, expected, obj.GetRect(), "getter should return the property value") + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") }) - t.Run("GetRect_NilValue", func(t *testing.T) { + t.Run("GetThousands_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - obj.Rect = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + obj.Thousands = nil // Act & Assert - assert.Nil(t, obj.GetRect(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") }) - t.Run("GetRect_NilReceiver", func(t *testing.T) { + t.Run("GetThousands_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLink + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRect() // Should return zero value + _ = obj.GetThousands() // Should return zero value }) - t.Run("GetContents", func(t *testing.T) { + t.Run("GetDecimal", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} var expected *string - obj.Contents = expected + obj.Decimal = expected // Act & Assert - assert.Equal(t, expected, obj.GetContents(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") }) - t.Run("GetContents_NilValue", func(t *testing.T) { + t.Run("GetDecimal_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - obj.Contents = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + obj.Decimal = nil // Act & Assert - assert.Nil(t, obj.GetContents(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") }) - t.Run("GetContents_NilReceiver", func(t *testing.T) { + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLink + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetContents() // Should return zero value + _ = obj.GetDecimal() // Should return zero value }) - t.Run("GetSubject", func(t *testing.T) { + t.Run("GetPrefixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} var expected *string - obj.Subject = expected + obj.PrefixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetSubject(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") }) - t.Run("GetSubject_NilValue", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - obj.Subject = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + obj.PrefixSpacing = nil // Act & Assert - assert.Nil(t, obj.GetSubject(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetSubject_NilReceiver", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLink + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetSubject() // Should return zero value + _ = obj.GetPrefixSpacing() // Should return zero value }) - t.Run("GetAuthor", func(t *testing.T) { + t.Run("GetSuffixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} var expected *string - obj.Author = expected + obj.SuffixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetAuthor(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") }) - t.Run("GetAuthor_NilValue", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - obj.Author = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + obj.SuffixSpacing = nil // Act & Assert - assert.Nil(t, obj.GetAuthor(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetAuthor_NilReceiver", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLink + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAuthor() // Should return zero value + _ = obj.GetSuffixSpacing() // Should return zero value }) - t.Run("GetCreated", func(t *testing.T) { + t.Run("GetLabelPosition", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var expected *time.Time - obj.Created = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemLabelPosition + obj.LabelPosition = expected // Act & Assert - assert.Equal(t, expected, obj.GetCreated(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") }) - t.Run("GetCreated_NilValue", func(t *testing.T) { + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - obj.Created = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + obj.LabelPosition = nil // Act & Assert - assert.Nil(t, obj.GetCreated(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") }) - t.Run("GetCreated_NilReceiver", func(t *testing.T) { + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLink + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCreated() // Should return zero value + _ = obj.GetLabelPosition() // Should return zero value }) - t.Run("GetModified", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var expected *time.Time - obj.Modified = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") - }) +} - t.Run("GetModified_NilValue", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - obj.Modified = nil - - // Act & Assert - assert.Nil(t, obj.GetModified(), "getter should return nil when property is nil") - }) - - t.Run("GetModified_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLink - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetModified() // Should return zero value - }) - - t.Run("GetBlendMode", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var expected DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode - obj.BlendMode = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetBlendMode(), "getter should return the property value") - }) - - t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLink - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetBlendMode() // Should return zero value - }) - - t.Run("GetInReplyTo", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var expected *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo - obj.InReplyTo = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetInReplyTo(), "getter should return the property value") - }) - - t.Run("GetInReplyTo_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - obj.InReplyTo = nil - - // Act & Assert - assert.Nil(t, obj.GetInReplyTo(), "getter should return nil when property is nil") - }) - - t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLink - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetInReplyTo() // Should return zero value - }) - - t.Run("GetReplyType", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var expected *DocAnnotationsList200ResponseAnnotationsItemLinkReplyType - obj.ReplyType = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetReplyType(), "getter should return the property value") - }) - - t.Run("GetReplyType_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - obj.ReplyType = nil - - // Act & Assert - assert.Nil(t, obj.GetReplyType(), "getter should return nil when property is nil") - }) - - t.Run("GetReplyType_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLink - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetReplyType() // Should return zero value - }) - - t.Run("GetUserID", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var expected *string - obj.UserID = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") - }) - - t.Run("GetUserID_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - obj.UserID = nil - - // Act & Assert - assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") - }) - - t.Run("GetUserID_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLink - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetUserID() // Should return zero value - }) - - t.Run("GetGroupID", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var expected *string - obj.GroupID = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetGroupID(), "getter should return the property value") - }) - - t.Run("GetGroupID_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - obj.GroupID = nil - - // Act & Assert - assert.Nil(t, obj.GetGroupID(), "getter should return nil when property is nil") - }) - - t.Run("GetGroupID_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLink - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetGroupID() // Should return zero value - }) - - t.Run("GetCreatedBy", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var expected *string - obj.CreatedBy = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") - }) - - t.Run("GetCreatedBy_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - obj.CreatedBy = nil - - // Act & Assert - assert.Nil(t, obj.GetCreatedBy(), "getter should return nil when property is nil") - }) - - t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLink - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetCreatedBy() // Should return zero value - }) - - t.Run("GetUpdatedBy", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var expected *string - obj.UpdatedBy = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetUpdatedBy(), "getter should return the property value") - }) - - t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - obj.UpdatedBy = nil - - // Act & Assert - assert.Nil(t, obj.GetUpdatedBy(), "getter should return nil when property is nil") - }) - - t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLink - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetUpdatedBy() // Should return zero value - }) - - t.Run("GetActions", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var expected *PdfAnnotationActions - obj.Actions = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") - }) - - t.Run("GetActions_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - obj.Actions = nil - - // Act & Assert - assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") - }) - - t.Run("GetActions_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLink - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetActions() // Should return zero value - }) - - t.Run("GetTarget", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var expected *DocAnnotationsList200ResponseAnnotationsItemLinkTarget - obj.Target = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetTarget(), "getter should return the property value") - }) - - t.Run("GetTarget_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - obj.Target = nil - - // Act & Assert - assert.Nil(t, obj.GetTarget(), "getter should return nil when property is nil") - }) - - t.Run("GetTarget_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLink - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetTarget() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLink(t *testing.T) { - t.Run("SetRef_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemLinkRef + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValueUnit string // Act - obj.SetRef(fernTestValueRef) + obj.SetUnit(fernTestValueUnit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -47986,14 +48150,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLink(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValueConversion *float64 // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetConversion(fernTestValueConversion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -48017,14 +48181,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLink(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueIndex int + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFraction // Act - obj.SetIndex(fernTestValueIndex) + obj.SetFraction(fernTestValueFraction) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -48048,14 +48212,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLink(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQuality + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValuePrecision *int // Act - obj.SetIdentityQuality(fernTestValueIdentityQuality) + obj.SetPrecision(fernTestValuePrecision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -48079,14 +48243,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLink(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueNm *string + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValueFixed *bool // Act - obj.SetNm(fernTestValueNm) + obj.SetFixed(fernTestValueFixed) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -48110,14 +48274,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLink(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFlags_MarksExplicit", func(t *testing.T) { + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemLinkFlags + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValueThousands *string // Act - obj.SetFlags(fernTestValueFlags) + obj.SetThousands(fernTestValueThousands) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -48141,14 +48305,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLink(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRect_MarksExplicit", func(t *testing.T) { + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemLinkRect + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValueDecimal *string // Act - obj.SetRect(fernTestValueRect) + obj.SetDecimal(fernTestValueDecimal) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -48172,14 +48336,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLink(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetContents_MarksExplicit", func(t *testing.T) { + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueContents *string + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValuePrefixSpacing *string // Act - obj.SetContents(fernTestValueContents) + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -48203,14 +48367,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLink(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetSubject_MarksExplicit", func(t *testing.T) { + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueSubject *string + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValueSuffixSpacing *string // Act - obj.SetSubject(fernTestValueSubject) + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -48234,14 +48398,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLink(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueAuthor *string + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemLabelPosition // Act - obj.SetAuthor(fernTestValueAuthor) + obj.SetLabelPosition(fernTestValueLabelPosition) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -48265,45 +48429,423 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLink(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreated_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueCreated *time.Time + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + var expected string + obj.Unit = expected - // Act - obj.SetCreated(fernTestValueCreated) + // Act & Assert + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetUnit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnit() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetConversion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + var expected *float64 + obj.Conversion = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") }) - t.Run("SetModified_MarksExplicit", func(t *testing.T) { + t.Run("GetConversion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueModified *time.Time + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + obj.Conversion = nil + + // Act & Assert + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") + }) + + t.Run("GetConversion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetConversion() // Should return zero value + }) + + t.Run("GetFraction", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFraction + obj.Fraction = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") + }) + + t.Run("GetFraction_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + obj.Fraction = nil + + // Act & Assert + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") + }) + + t.Run("GetFraction_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFraction() // Should return zero value + }) + + t.Run("GetPrecision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + var expected *int + obj.Precision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") + }) + + t.Run("GetPrecision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + obj.Precision = nil + + // Act & Assert + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") + }) + + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrecision() // Should return zero value + }) + + t.Run("GetFixed", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + var expected *bool + obj.Fixed = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") + }) + + t.Run("GetFixed_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + obj.Fixed = nil + + // Act & Assert + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") + }) + + t.Run("GetFixed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFixed() // Should return zero value + }) + + t.Run("GetThousands", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + var expected *string + obj.Thousands = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") + }) + + t.Run("GetThousands_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + obj.Thousands = nil + + // Act & Assert + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") + }) + + t.Run("GetThousands_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetThousands() // Should return zero value + }) + + t.Run("GetDecimal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + var expected *string + obj.Decimal = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") + }) + + t.Run("GetDecimal_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + obj.Decimal = nil + + // Act & Assert + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") + }) + + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDecimal() // Should return zero value + }) + + t.Run("GetPrefixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + var expected *string + obj.PrefixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") + }) + + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + obj.PrefixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrefixSpacing() // Should return zero value + }) + + t.Run("GetSuffixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + var expected *string + obj.SuffixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") + }) + + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + obj.SuffixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSuffixSpacing() // Should return zero value + }) + + t.Run("GetLabelPosition", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemLabelPosition + obj.LabelPosition = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") + }) + + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + obj.LabelPosition = nil + + // Act & Assert + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") + }) + + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLabelPosition() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValueUnit string // Act - obj.SetModified(fernTestValueModified) + obj.SetUnit(fernTestValueUnit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -48327,14 +48869,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLink(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValueConversion *float64 // Act - obj.SetBlendMode(fernTestValueBlendMode) + obj.SetConversion(fernTestValueConversion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -48358,14 +48900,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLink(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFraction // Act - obj.SetInReplyTo(fernTestValueInReplyTo) + obj.SetFraction(fernTestValueFraction) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -48389,14 +48931,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLink(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemLinkReplyType + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValuePrecision *int // Act - obj.SetReplyType(fernTestValueReplyType) + obj.SetPrecision(fernTestValuePrecision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -48420,14 +48962,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLink(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUserID_MarksExplicit", func(t *testing.T) { + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueUserID *string + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValueFixed *bool // Act - obj.SetUserID(fernTestValueUserID) + obj.SetFixed(fernTestValueFixed) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -48451,14 +48993,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLink(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueGroupID *string + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValueThousands *string // Act - obj.SetGroupID(fernTestValueGroupID) + obj.SetThousands(fernTestValueThousands) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -48482,14 +49024,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLink(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueCreatedBy *string + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValueDecimal *string // Act - obj.SetCreatedBy(fernTestValueCreatedBy) + obj.SetDecimal(fernTestValueDecimal) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -48513,14 +49055,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLink(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueUpdatedBy *string + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValuePrefixSpacing *string // Act - obj.SetUpdatedBy(fernTestValueUpdatedBy) + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -48544,14 +49086,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLink(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueActions *PdfAnnotationActions + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValueSuffixSpacing *string // Act - obj.SetActions(fernTestValueActions) + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -48575,14 +49117,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLink(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTarget_MarksExplicit", func(t *testing.T) { + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} - var fernTestValueTarget *DocAnnotationsList200ResponseAnnotationsItemLinkTarget + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemLabelPosition // Act - obj.SetTarget(fernTestValueTarget) + obj.SetLabelPosition(fernTestValueLabelPosition) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -48608,331 +49150,421 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLink(t * } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemLinkFlags(t *testing.T) { - t.Run("SetInvisible", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} - var fernTestValueInvisible bool - obj.SetInvisible(fernTestValueInvisible) - assert.Equal(t, fernTestValueInvisible, obj.Invisible) +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetHidden", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} - var fernTestValueHidden bool - obj.SetHidden(fernTestValueHidden) - assert.Equal(t, fernTestValueHidden, obj.Hidden) + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPrint", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} - var fernTestValuePrint bool - obj.SetPrint(fernTestValuePrint) - assert.Equal(t, fernTestValuePrint, obj.Print) + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNoZoom", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} - var fernTestValueNoZoom bool - obj.SetNoZoom(fernTestValueNoZoom) - assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNoRotate", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} - var fernTestValueNoRotate bool - obj.SetNoRotate(fernTestValueNoRotate) - assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNoView", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} - var fernTestValueNoView bool - obj.SetNoView(fernTestValueNoView) - assert.Equal(t, fernTestValueNoView, obj.NoView) + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} - var fernTestValueReadOnly bool - obj.SetReadOnly(fernTestValueReadOnly) - assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetLocked", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} - var fernTestValueLocked bool - obj.SetLocked(fernTestValueLocked) - assert.Equal(t, fernTestValueLocked, obj.Locked) + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetToggleNoView", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} - var fernTestValueToggleNoView bool - obj.SetToggleNoView(fernTestValueToggleNoView) - assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetLockedContents", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} - var fernTestValueLockedContents bool - obj.SetLockedContents(fernTestValueLockedContents) - assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkFlags(t *testing.T) { - t.Run("GetInvisible", func(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} - var expected bool - obj.Invisible = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + var expected string + obj.Unit = expected // Act & Assert - assert.Equal(t, expected, obj.GetInvisible(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") }) - t.Run("GetInvisible_NilReceiver", func(t *testing.T) { + t.Run("GetUnit_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInvisible() // Should return zero value + _ = obj.GetUnit() // Should return zero value }) - t.Run("GetHidden", func(t *testing.T) { + t.Run("GetConversion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} - var expected bool - obj.Hidden = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + var expected *float64 + obj.Conversion = expected // Act & Assert - assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") }) - t.Run("GetHidden_NilReceiver", func(t *testing.T) { + t.Run("GetConversion_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkFlags + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + obj.Conversion = nil + + // Act & Assert + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") + }) + + t.Run("GetConversion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetHidden() // Should return zero value + _ = obj.GetConversion() // Should return zero value }) - t.Run("GetPrint", func(t *testing.T) { + t.Run("GetFraction", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} - var expected bool - obj.Print = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFraction + obj.Fraction = expected // Act & Assert - assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") }) - t.Run("GetPrint_NilReceiver", func(t *testing.T) { + t.Run("GetFraction_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkFlags + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + obj.Fraction = nil + + // Act & Assert + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") + }) + + t.Run("GetFraction_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPrint() // Should return zero value + _ = obj.GetFraction() // Should return zero value }) - t.Run("GetNoZoom", func(t *testing.T) { + t.Run("GetPrecision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} - var expected bool - obj.NoZoom = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + var expected *int + obj.Precision = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") }) - t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { + t.Run("GetPrecision_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkFlags + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + obj.Precision = nil + + // Act & Assert + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") + }) + + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNoZoom() // Should return zero value + _ = obj.GetPrecision() // Should return zero value }) - t.Run("GetNoRotate", func(t *testing.T) { + t.Run("GetFixed", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} - var expected bool - obj.NoRotate = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + var expected *bool + obj.Fixed = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") }) - t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { + t.Run("GetFixed_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkFlags + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + obj.Fixed = nil + + // Act & Assert + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") + }) + + t.Run("GetFixed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNoRotate() // Should return zero value + _ = obj.GetFixed() // Should return zero value }) - t.Run("GetNoView", func(t *testing.T) { + t.Run("GetThousands", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} - var expected bool - obj.NoView = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + var expected *string + obj.Thousands = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") }) - t.Run("GetNoView_NilReceiver", func(t *testing.T) { + t.Run("GetThousands_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkFlags + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + obj.Thousands = nil + + // Act & Assert + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") + }) + + t.Run("GetThousands_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNoView() // Should return zero value + _ = obj.GetThousands() // Should return zero value }) - t.Run("GetReadOnly", func(t *testing.T) { + t.Run("GetDecimal", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} - var expected bool - obj.ReadOnly = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + var expected *string + obj.Decimal = expected // Act & Assert - assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") }) - t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { + t.Run("GetDecimal_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkFlags + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + obj.Decimal = nil + + // Act & Assert + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") + }) + + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReadOnly() // Should return zero value + _ = obj.GetDecimal() // Should return zero value }) - t.Run("GetLocked", func(t *testing.T) { + t.Run("GetPrefixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} - var expected bool - obj.Locked = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + var expected *string + obj.PrefixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") }) - t.Run("GetLocked_NilReceiver", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkFlags + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + obj.PrefixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLocked() // Should return zero value + _ = obj.GetPrefixSpacing() // Should return zero value }) - t.Run("GetToggleNoView", func(t *testing.T) { + t.Run("GetSuffixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} - var expected bool - obj.ToggleNoView = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + var expected *string + obj.SuffixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") }) - t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkFlags + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + obj.SuffixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetToggleNoView() // Should return zero value + _ = obj.GetSuffixSpacing() // Should return zero value }) - t.Run("GetLockedContents", func(t *testing.T) { + t.Run("GetLabelPosition", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} - var expected bool - obj.LockedContents = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemLabelPosition + obj.LabelPosition = expected // Act & Assert - assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") }) - t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkFlags + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + obj.LabelPosition = nil + + // Act & Assert + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") + }) + + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLockedContents() // Should return zero value + _ = obj.GetLabelPosition() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkFlags(t *testing.T) { - t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} - var fernTestValueInvisible bool + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValueUnit string // Act - obj.SetInvisible(fernTestValueInvisible) + obj.SetUnit(fernTestValueUnit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -48956,14 +49588,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkFlag // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetHidden_MarksExplicit", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} - var fernTestValueHidden bool + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValueConversion *float64 // Act - obj.SetHidden(fernTestValueHidden) + obj.SetConversion(fernTestValueConversion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -48987,14 +49619,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkFlag // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPrint_MarksExplicit", func(t *testing.T) { + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} - var fernTestValuePrint bool + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFraction // Act - obj.SetPrint(fernTestValuePrint) + obj.SetFraction(fernTestValueFraction) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -49018,14 +49650,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkFlag // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} - var fernTestValueNoZoom bool + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValuePrecision *int // Act - obj.SetNoZoom(fernTestValueNoZoom) + obj.SetPrecision(fernTestValuePrecision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -49049,14 +49681,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkFlag // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} - var fernTestValueNoRotate bool + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValueFixed *bool // Act - obj.SetNoRotate(fernTestValueNoRotate) + obj.SetFixed(fernTestValueFixed) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -49080,14 +49712,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkFlag // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoView_MarksExplicit", func(t *testing.T) { + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} - var fernTestValueNoView bool + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValueThousands *string // Act - obj.SetNoView(fernTestValueNoView) + obj.SetThousands(fernTestValueThousands) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -49111,14 +49743,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkFlag // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} - var fernTestValueReadOnly bool + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValueDecimal *string // Act - obj.SetReadOnly(fernTestValueReadOnly) + obj.SetDecimal(fernTestValueDecimal) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -49142,14 +49774,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkFlag // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLocked_MarksExplicit", func(t *testing.T) { + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} - var fernTestValueLocked bool + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValuePrefixSpacing *string // Act - obj.SetLocked(fernTestValueLocked) + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -49173,14 +49805,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkFlag // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} - var fernTestValueToggleNoView bool + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValueSuffixSpacing *string // Act - obj.SetToggleNoView(fernTestValueToggleNoView) + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -49204,14 +49836,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkFlag // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} - var fernTestValueLockedContents bool + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemLabelPosition // Act - obj.SetLockedContents(fernTestValueLockedContents) + obj.SetLabelPosition(fernTestValueLabelPosition) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -49237,444 +49869,554 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkFlag } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo{} - var expected string - obj.Kind = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetKind() // Should return zero value + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber - obj.ObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") - }) +} - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo{} - obj.ObjectNumber = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin{} + var expected float64 + obj.X = expected // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") }) - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetX_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetObjectNumber() // Should return zero value - }) - - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm - obj.Nm = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + _ = obj.GetX() // Should return zero value }) - t.Run("GetNm_NilValue", func(t *testing.T) { + t.Run("GetY", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo{} - obj.Nm = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin{} + var expected float64 + obj.Y = expected // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetY_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetY() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex - obj.Index = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin{} + var fernTestValueX float64 - // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") - }) + // Act + obj.SetX(fernTestValueX) - t.Run("GetIndex_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo{} - obj.Index = nil + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetIndex() // Should return zero value - }) + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin{} + var fernTestValueY float64 -} + // Act + obj.SetY(fernTestValueY) -func TestSettersDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + var expected string + obj.Unit = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetUnit_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetUnit() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetConversion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex{} - var expected int - obj.Index = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + var expected *float64 + obj.Conversion = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetConversion_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + obj.Conversion = nil + + // Act & Assert + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") + }) + + t.Run("GetConversion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetConversion() // Should return zero value }) - t.Run("GetRevision", func(t *testing.T) { + t.Run("GetFraction", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex{} - var expected *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision - obj.Revision = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFraction + obj.Fraction = expected // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") }) - t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Run("GetFraction_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex{} - obj.Revision = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + obj.Fraction = nil // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") }) - t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Run("GetFraction_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRevision() // Should return zero value + _ = obj.GetFraction() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("GetPrecision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + var expected *int + obj.Precision = expected - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + // Act & Assert + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetPrecision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + obj.Precision = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrecision() // Should return zero value }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("GetFixed", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex{} - var fernTestValueIndex int + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + var expected *bool + obj.Fixed = expected - // Act - obj.SetIndex(fernTestValueIndex) + // Act & Assert + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetFixed_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + obj.Fixed = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetFixed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFixed() // Should return zero value }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("GetThousands", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + var expected *string + obj.Thousands = expected - // Act - obj.SetRevision(fernTestValueRevision) + // Act & Assert + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetThousands_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + obj.Thousands = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetThousands_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetThousands() // Should return zero value }) -} + t.Run("GetDecimal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + var expected *string + obj.Decimal = expected -func TestSettersDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision{} - var fernTestValueDocSessionID string - obj.SetDocSessionID(fernTestValueDocSessionID) - assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") }) - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) + t.Run("GetDecimal_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + obj.Decimal = nil + + // Act & Assert + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") }) - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) - assert.NotNil(t, obj.explicitFields) + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDecimal() // Should return zero value }) -} + t.Run("GetPrefixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + var expected *string + obj.PrefixSpacing = expected -func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { + // Act & Assert + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") + }) + + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision{} - var expected string - obj.DocSessionID = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + obj.PrefixSpacing = nil // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDocSessionID() // Should return zero value + _ = obj.GetPrefixSpacing() // Should return zero value }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetSuffixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + var expected *string + obj.SuffixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + obj.SuffixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetSuffixSpacing() // Should return zero value }) - t.Run("GetGeneration", func(t *testing.T) { + t.Run("GetLabelPosition", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision{} - var expected int - obj.Generation = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemLabelPosition + obj.LabelPosition = expected // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") }) - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + obj.LabelPosition = nil + + // Act & Assert + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") + }) + + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGeneration() // Should return zero value + _ = obj.GetLabelPosition() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision{} - var fernTestValueDocSessionID string + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValueUnit string // Act - obj.SetDocSessionID(fernTestValueDocSessionID) + obj.SetUnit(fernTestValueUnit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -49698,14 +50440,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkInRe // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValueConversion *float64 // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetConversion(fernTestValueConversion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -49729,14 +50471,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkInRe // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision{} - var fernTestValueGeneration int + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFraction // Act - obj.SetGeneration(fernTestValueGeneration) + obj.SetFraction(fernTestValueFraction) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -49760,85 +50502,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkInRe // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm{} - var fernTestValueNm string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm{} - var expected string - obj.Nm = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") - }) - - t.Run("GetNm_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNm() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValuePrecision *int // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetPrecision(fernTestValuePrecision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -49862,14 +50533,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkInRe // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm{} - var fernTestValueNm string + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValueFixed *bool // Act - obj.SetNm(fernTestValueNm) + obj.SetFixed(fernTestValueFixed) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -49893,85 +50564,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkInRe // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetAnnotObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") - }) - - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAnnotObjectNumber() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValueThousands *string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetThousands(fernTestValueThousands) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -49995,14 +50595,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkInRe // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValueDecimal *string // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + obj.SetDecimal(fernTestValueDecimal) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -50026,147 +50626,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkInRe // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemLinkRect(t *testing.T) { - t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRect{} - var fernTestValueLeft float64 - obj.SetLeft(fernTestValueLeft) - assert.Equal(t, fernTestValueLeft, obj.Left) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRect{} - var fernTestValueBottom float64 - obj.SetBottom(fernTestValueBottom) - assert.Equal(t, fernTestValueBottom, obj.Bottom) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRect{} - var fernTestValueRight float64 - obj.SetRight(fernTestValueRight) - assert.Equal(t, fernTestValueRight, obj.Right) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRect{} - var fernTestValueTop float64 - obj.SetTop(fernTestValueTop) - assert.Equal(t, fernTestValueTop, obj.Top) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkRect(t *testing.T) { - t.Run("GetLeft", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRect{} - var expected float64 - obj.Left = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") - }) - - t.Run("GetLeft_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetLeft() // Should return zero value - }) - - t.Run("GetBottom", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRect{} - var expected float64 - obj.Bottom = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") - }) - - t.Run("GetBottom_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetBottom() // Should return zero value - }) - - t.Run("GetRight", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRect{} - var expected float64 - obj.Right = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") - }) - - t.Run("GetRight_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRight() // Should return zero value - }) - - t.Run("GetTop", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRect{} - var expected float64 - obj.Top = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") - }) - - t.Run("GetTop_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetTop() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkRect(t *testing.T) { - t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRect{} - var fernTestValueLeft float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValuePrefixSpacing *string // Act - obj.SetLeft(fernTestValueLeft) + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -50190,14 +50657,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkRect // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRect{} - var fernTestValueBottom float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValueSuffixSpacing *string // Act - obj.SetBottom(fernTestValueBottom) + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -50221,14 +50688,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkRect // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRight_MarksExplicit", func(t *testing.T) { + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRect{} - var fernTestValueRight float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemLabelPosition // Act - obj.SetRight(fernTestValueRight) + obj.SetLabelPosition(fernTestValueLabelPosition) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -50252,282 +50719,423 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkRect // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTop_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRect{} - var fernTestValueTop float64 +} - // Act - obj.SetTop(fernTestValueTop) +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) + assert.NotNil(t, obj.explicitFields) + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) + assert.NotNil(t, obj.explicitFields) + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) + assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkRef(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRef{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} var expected string - obj.Kind = expected + obj.Unit = expected // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetUnit_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRef + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKind() // Should return zero value + _ = obj.GetUnit() // Should return zero value }) - t.Run("GetObjectNumber", func(t *testing.T) { + t.Run("GetConversion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber - obj.ObjectNumber = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + var expected *float64 + obj.Conversion = expected // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") }) - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Run("GetConversion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRef{} - obj.ObjectNumber = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + obj.Conversion = nil // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") }) - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetConversion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRef + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetObjectNumber() // Should return zero value + _ = obj.GetConversion() // Should return zero value }) - t.Run("GetNm", func(t *testing.T) { + t.Run("GetFraction", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm - obj.Nm = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFraction + obj.Fraction = expected // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") }) - t.Run("GetNm_NilValue", func(t *testing.T) { + t.Run("GetFraction_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRef{} - obj.Nm = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + obj.Fraction = nil // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetFraction_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRef + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetFraction() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetPrecision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex - obj.Index = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + var expected *int + obj.Precision = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") }) - t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Run("GetPrecision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRef{} - obj.Index = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + obj.Precision = nil // Act & Assert - assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRef + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetPrecision() // Should return zero value }) -} + t.Run("GetFixed", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + var expected *bool + obj.Fixed = expected -func TestSettersDocAnnotationsList200ResponseAnnotationsItemLinkRefIndex(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") }) - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) - assert.NotNil(t, obj.explicitFields) + t.Run("GetFixed_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + obj.Fixed = nil + + // Act & Assert + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") }) - t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) - assert.NotNil(t, obj.explicitFields) + t.Run("GetFixed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFixed() // Should return zero value }) -} + t.Run("GetThousands", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + var expected *string + obj.Thousands = expected -func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkRefIndex(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + // Act & Assert + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") + }) + + t.Run("GetThousands_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + obj.Thousands = nil // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetThousands_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetThousands() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetDecimal", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex{} - var expected int - obj.Index = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + var expected *string + obj.Decimal = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetDecimal_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + obj.Decimal = nil + + // Act & Assert + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") + }) + + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetDecimal() // Should return zero value }) - t.Run("GetRevision", func(t *testing.T) { + t.Run("GetPrefixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex{} - var expected *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision - obj.Revision = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + var expected *string + obj.PrefixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") }) - t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex{} - obj.Revision = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + obj.PrefixSpacing = nil // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRevision() // Should return zero value + _ = obj.GetPrefixSpacing() // Should return zero value + }) + + t.Run("GetSuffixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + var expected *string + obj.SuffixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") + }) + + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + obj.SuffixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSuffixSpacing() // Should return zero value + }) + + t.Run("GetLabelPosition", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemLabelPosition + obj.LabelPosition = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") + }) + + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + obj.LabelPosition = nil + + // Act & Assert + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") + }) + + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLabelPosition() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkRefIndex(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + var fernTestValueUnit string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetUnit(fernTestValueUnit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -50551,14 +51159,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkRefI // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex{} - var fernTestValueIndex int + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + var fernTestValueConversion *float64 // Act - obj.SetIndex(fernTestValueIndex) + obj.SetConversion(fernTestValueConversion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -50582,14 +51190,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkRefI // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFraction // Act - obj.SetRevision(fernTestValueRevision) + obj.SetFraction(fernTestValueFraction) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -50613,116 +51221,138 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkRefI // It verifies that setting a field via setter allows successful JSON round-trip }) -} + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + var fernTestValuePrecision *int -func TestSettersDocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision{} - var fernTestValueDocSessionID string - obj.SetDocSessionID(fernTestValueDocSessionID) - assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetPrecision(fernTestValuePrecision) - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) - assert.NotNil(t, obj.explicitFields) - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } -} + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) -func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision{} - var expected string - obj.DocSessionID = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + var fernTestValueFixed *bool - // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") - }) + // Act + obj.SetFixed(fernTestValueFixed) - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetDocSessionID() // Should return zero value + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + var fernTestValueThousands *string - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) + // Act + obj.SetThousands(fernTestValueThousands) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetGeneration", func(t *testing.T) { + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision{} - var expected int - obj.Generation = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + var fernTestValueDecimal *string - // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") - }) + // Act + obj.SetDecimal(fernTestValueDecimal) - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetGeneration() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") -} + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision{} - var fernTestValueDocSessionID string + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + var fernTestValuePrefixSpacing *string // Act - obj.SetDocSessionID(fernTestValueDocSessionID) + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -50746,14 +51376,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkRefI // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + var fernTestValueSuffixSpacing *string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -50777,14 +51407,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkRefI // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision{} - var fernTestValueGeneration int + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemLabelPosition // Act - obj.SetGeneration(fernTestValueGeneration) + obj.SetLabelPosition(fernTestValueLabelPosition) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -50810,585 +51440,421 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkRefI } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemLinkRefNm(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefNm{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefNm{} - var fernTestValueNm string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) assert.NotNil(t, obj.explicitFields) }) -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkRefNm(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefNm{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefNm{} - var expected string - obj.Nm = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNm() // Should return zero value + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkRefNm(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefNm{} - var fernTestValuePageObjectNumber int - - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefNm{} - var fernTestValueNm string - - // Act - obj.SetNm(fernTestValueNm) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + var expected string + obj.Unit = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetUnit_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetUnit() // Should return zero value }) - t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Run("GetConversion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + var expected *float64 + obj.Conversion = expected // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") - }) - - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAnnotObjectNumber() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber{} - var fernTestValuePageObjectNumber int - - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber{} - var fernTestValueAnnotObjectNumber int - - // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") }) -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkTarget(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { + t.Run("GetConversion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTarget{} - var expected string - obj.Kind = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + obj.Conversion = nil // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetConversion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTarget + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKind() // Should return zero value + _ = obj.GetConversion() // Should return zero value }) - t.Run("GetGoto", func(t *testing.T) { + t.Run("GetFraction", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTarget{} - var expected *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto - obj.Goto = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFraction + obj.Fraction = expected // Act & Assert - assert.Equal(t, expected, obj.GetGoto(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") }) - t.Run("GetGoto_NilValue", func(t *testing.T) { + t.Run("GetFraction_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTarget{} - obj.Goto = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + obj.Fraction = nil // Act & Assert - assert.Nil(t, obj.GetGoto(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") }) - t.Run("GetGoto_NilReceiver", func(t *testing.T) { + t.Run("GetFraction_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTarget + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGoto() // Should return zero value + _ = obj.GetFraction() // Should return zero value }) - t.Run("GetURI", func(t *testing.T) { + t.Run("GetPrecision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTarget{} - var expected *DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI - obj.URI = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + var expected *int + obj.Precision = expected // Act & Assert - assert.Equal(t, expected, obj.GetURI(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") }) - t.Run("GetURI_NilValue", func(t *testing.T) { + t.Run("GetPrecision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTarget{} - obj.URI = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + obj.Precision = nil // Act & Assert - assert.Nil(t, obj.GetURI(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") }) - t.Run("GetURI_NilReceiver", func(t *testing.T) { + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTarget + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetURI() // Should return zero value + _ = obj.GetPrecision() // Should return zero value }) - t.Run("GetGotoRemote", func(t *testing.T) { + t.Run("GetFixed", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTarget{} - var expected *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote - obj.GotoRemote = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + var expected *bool + obj.Fixed = expected // Act & Assert - assert.Equal(t, expected, obj.GetGotoRemote(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") }) - t.Run("GetGotoRemote_NilValue", func(t *testing.T) { + t.Run("GetFixed_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTarget{} - obj.GotoRemote = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + obj.Fixed = nil // Act & Assert - assert.Nil(t, obj.GetGotoRemote(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") }) - t.Run("GetGotoRemote_NilReceiver", func(t *testing.T) { + t.Run("GetFixed_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTarget + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGotoRemote() // Should return zero value + _ = obj.GetFixed() // Should return zero value }) - t.Run("GetLaunch", func(t *testing.T) { + t.Run("GetThousands", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTarget{} - var expected *DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch - obj.Launch = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + var expected *string + obj.Thousands = expected // Act & Assert - assert.Equal(t, expected, obj.GetLaunch(), "getter should return the property value") + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") }) - t.Run("GetLaunch_NilValue", func(t *testing.T) { + t.Run("GetThousands_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTarget{} - obj.Launch = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + obj.Thousands = nil // Act & Assert - assert.Nil(t, obj.GetLaunch(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") }) - t.Run("GetLaunch_NilReceiver", func(t *testing.T) { + t.Run("GetThousands_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTarget + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLaunch() // Should return zero value + _ = obj.GetThousands() // Should return zero value }) - t.Run("GetJavascript", func(t *testing.T) { + t.Run("GetDecimal", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTarget{} - var expected *DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript - obj.Javascript = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + var expected *string + obj.Decimal = expected // Act & Assert - assert.Equal(t, expected, obj.GetJavascript(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") }) - t.Run("GetJavascript_NilValue", func(t *testing.T) { + t.Run("GetDecimal_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTarget{} - obj.Javascript = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + obj.Decimal = nil // Act & Assert - assert.Nil(t, obj.GetJavascript(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") }) - t.Run("GetJavascript_NilReceiver", func(t *testing.T) { + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTarget + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetJavascript() // Should return zero value + _ = obj.GetDecimal() // Should return zero value }) - t.Run("GetNamed", func(t *testing.T) { + t.Run("GetPrefixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTarget{} - var expected *DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed - obj.Named = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + var expected *string + obj.PrefixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetNamed(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") }) - t.Run("GetNamed_NilValue", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTarget{} - obj.Named = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + obj.PrefixSpacing = nil // Act & Assert - assert.Nil(t, obj.GetNamed(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetNamed_NilReceiver", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTarget + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNamed() // Should return zero value + _ = obj.GetPrefixSpacing() // Should return zero value }) - t.Run("GetUnsupported", func(t *testing.T) { + t.Run("GetSuffixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTarget{} - var expected *DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported - obj.Unsupported = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + var expected *string + obj.SuffixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetUnsupported(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") }) - t.Run("GetUnsupported_NilValue", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTarget{} - obj.Unsupported = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + obj.SuffixSpacing = nil // Act & Assert - assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTarget + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUnsupported() // Should return zero value - }) - -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto(t *testing.T) { - t.Run("SetDestination", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto{} - var fernTestValueDestination *PdfDestination - obj.SetDestination(fernTestValueDestination) - assert.Equal(t, fernTestValueDestination, obj.Destination) - assert.NotNil(t, obj.explicitFields) + _ = obj.GetSuffixSpacing() // Should return zero value }) -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto(t *testing.T) { - t.Run("GetDestination", func(t *testing.T) { + t.Run("GetLabelPosition", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto{} - var expected *PdfDestination - obj.Destination = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemLabelPosition + obj.LabelPosition = expected // Act & Assert - assert.Equal(t, expected, obj.GetDestination(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") }) - t.Run("GetDestination_NilValue", func(t *testing.T) { + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto{} - obj.Destination = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + obj.LabelPosition = nil // Act & Assert - assert.Nil(t, obj.GetDestination(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") }) - t.Run("GetDestination_NilReceiver", func(t *testing.T) { + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDestination() // Should return zero value + _ = obj.GetLabelPosition() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto(t *testing.T) { - t.Run("SetDestination_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto{} - var fernTestValueDestination *PdfDestination + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + var fernTestValueUnit string // Act - obj.SetDestination(fernTestValueDestination) + obj.SetUnit(fernTestValueUnit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -51412,54 +51878,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkTarg // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote(t *testing.T) { - t.Run("SetFile", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote{} - var fernTestValueFile string - obj.SetFile(fernTestValueFile) - assert.Equal(t, fernTestValueFile, obj.File) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote(t *testing.T) { - t.Run("GetFile", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote{} - var expected string - obj.File = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetFile(), "getter should return the property value") - }) - - t.Run("GetFile_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetFile() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote(t *testing.T) { - t.Run("SetFile_MarksExplicit", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote{} - var fernTestValueFile string + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + var fernTestValueConversion *float64 // Act - obj.SetFile(fernTestValueFile) + obj.SetConversion(fernTestValueConversion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -51483,54 +51909,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkTarg // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch(t *testing.T) { - t.Run("SetPath", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch{} - var fernTestValuePath string - obj.SetPath(fernTestValuePath) - assert.Equal(t, fernTestValuePath, obj.Path) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch(t *testing.T) { - t.Run("GetPath", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch{} - var expected string - obj.Path = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPath(), "getter should return the property value") - }) - - t.Run("GetPath_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPath() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch(t *testing.T) { - t.Run("SetPath_MarksExplicit", func(t *testing.T) { + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch{} - var fernTestValuePath string + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFraction // Act - obj.SetPath(fernTestValuePath) + obj.SetFraction(fernTestValueFraction) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -51554,54 +51940,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkTarg // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed{} - var fernTestValueName string - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed(t *testing.T) { - t.Run("GetName", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed{} - var expected string - obj.Name = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") - }) - - t.Run("GetName_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetName() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed{} - var fernTestValueName string + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + var fernTestValuePrecision *int // Act - obj.SetName(fernTestValueName) + obj.SetPrecision(fernTestValuePrecision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -51625,54 +51971,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkTarg // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemLinkTargetURI(t *testing.T) { - t.Run("SetURI", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI{} - var fernTestValueURI string - obj.SetURI(fernTestValueURI) - assert.Equal(t, fernTestValueURI, obj.URI) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkTargetURI(t *testing.T) { - t.Run("GetURI", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI{} - var expected string - obj.URI = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetURI(), "getter should return the property value") - }) - - t.Run("GetURI_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetURI() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkTargetURI(t *testing.T) { - t.Run("SetURI_MarksExplicit", func(t *testing.T) { + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI{} - var fernTestValueURI string + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + var fernTestValueFixed *bool // Act - obj.SetURI(fernTestValueURI) + obj.SetFixed(fernTestValueFixed) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -51696,1142 +52002,858 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkTarg // It verifies that setting a field via setter allows successful JSON round-trip }) -} + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + var fernTestValueThousands *string -func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygon(t *testing.T) { - t.Run("SetRef", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemPolygonRef - obj.SetRef(fernTestValueRef) - assert.Equal(t, fernTestValueRef, obj.Ref) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetThousands(fernTestValueThousands) - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) - assert.NotNil(t, obj.explicitFields) - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("SetIdentityQuality", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQuality - obj.SetIdentityQuality(fernTestValueIdentityQuality) - assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) - assert.NotNil(t, obj.explicitFields) + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueNm *string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + var fernTestValueDecimal *string - t.Run("SetFlags", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags - obj.SetFlags(fernTestValueFlags) - assert.Equal(t, fernTestValueFlags, obj.Flags) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetDecimal(fernTestValueDecimal) - t.Run("SetRect", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemPolygonRect - obj.SetRect(fernTestValueRect) - assert.Equal(t, fernTestValueRect, obj.Rect) - assert.NotNil(t, obj.explicitFields) - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("SetContents", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueContents *string - obj.SetContents(fernTestValueContents) - assert.Equal(t, fernTestValueContents, obj.Contents) - assert.NotNil(t, obj.explicitFields) - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("SetSubject", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueSubject *string - obj.SetSubject(fernTestValueSubject) - assert.Equal(t, fernTestValueSubject, obj.Subject) - assert.NotNil(t, obj.explicitFields) + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAuthor", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueAuthor *string - obj.SetAuthor(fernTestValueAuthor) - assert.Equal(t, fernTestValueAuthor, obj.Author) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + var fernTestValuePrefixSpacing *string - t.Run("SetCreated", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueCreated *time.Time - obj.SetCreated(fernTestValueCreated) - assert.Equal(t, fernTestValueCreated, obj.Created) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) - t.Run("SetModified", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueModified *time.Time - obj.SetModified(fernTestValueModified) - assert.Equal(t, fernTestValueModified, obj.Modified) - assert.NotNil(t, obj.explicitFields) - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("SetBlendMode", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode - obj.SetBlendMode(fernTestValueBlendMode) - assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) - assert.NotNil(t, obj.explicitFields) - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("SetInReplyTo", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo - obj.SetInReplyTo(fernTestValueInReplyTo) - assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) - assert.NotNil(t, obj.explicitFields) + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReplyType", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemPolygonReplyType - obj.SetReplyType(fernTestValueReplyType) - assert.Equal(t, fernTestValueReplyType, obj.ReplyType) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + var fernTestValueSuffixSpacing *string - t.Run("SetUserID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueUserID *string - obj.SetUserID(fernTestValueUserID) - assert.Equal(t, fernTestValueUserID, obj.UserID) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) - t.Run("SetGroupID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueGroupID *string - obj.SetGroupID(fernTestValueGroupID) - assert.Equal(t, fernTestValueGroupID, obj.GroupID) - assert.NotNil(t, obj.explicitFields) - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("SetCreatedBy", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueCreatedBy *string - obj.SetCreatedBy(fernTestValueCreatedBy) - assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) - assert.NotNil(t, obj.explicitFields) - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("SetUpdatedBy", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueUpdatedBy *string - obj.SetUpdatedBy(fernTestValueUpdatedBy) - assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) - assert.NotNil(t, obj.explicitFields) + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetActions", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueActions *PdfAnnotationActions - obj.SetActions(fernTestValueActions) - assert.Equal(t, fernTestValueActions, obj.Actions) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemLabelPosition - t.Run("SetColor", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemPolygonColor - obj.SetColor(fernTestValueColor) - assert.Equal(t, fernTestValueColor, obj.Color) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetLabelPosition(fernTestValueLabelPosition) - t.Run("SetOpacity", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueOpacity float64 - obj.SetOpacity(fernTestValueOpacity) - assert.Equal(t, fernTestValueOpacity, obj.Opacity) - assert.NotNil(t, obj.explicitFields) - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("SetStrokeWidth", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueStrokeWidth float64 - obj.SetStrokeWidth(fernTestValueStrokeWidth) - assert.Equal(t, fernTestValueStrokeWidth, obj.StrokeWidth) - assert.NotNil(t, obj.explicitFields) - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("SetBorderStyle", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueBorderStyle DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle - obj.SetBorderStyle(fernTestValueBorderStyle) - assert.Equal(t, fernTestValueBorderStyle, obj.BorderStyle) - assert.NotNil(t, obj.explicitFields) + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDashArray", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueDashArray []float64 - obj.SetDashArray(fernTestValueDashArray) - assert.Equal(t, fernTestValueDashArray, obj.DashArray) - assert.NotNil(t, obj.explicitFields) - }) +} - t.Run("SetInteriorColor", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueInteriorColor *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor - obj.SetInteriorColor(fernTestValueInteriorColor) - assert.Equal(t, fernTestValueInteriorColor, obj.InteriorColor) +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLineRect(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRect{} + var fernTestValueLeft float64 + obj.SetLeft(fernTestValueLeft) + assert.Equal(t, fernTestValueLeft, obj.Left) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetVertices", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueVertices []*DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem - obj.SetVertices(fernTestValueVertices) - assert.Equal(t, fernTestValueVertices, obj.Vertices) + t.Run("SetBottom", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRect{} + var fernTestValueBottom float64 + obj.SetBottom(fernTestValueBottom) + assert.Equal(t, fernTestValueBottom, obj.Bottom) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRotation", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueRotation *float64 - obj.SetRotation(fernTestValueRotation) - assert.Equal(t, fernTestValueRotation, obj.Rotation) + t.Run("SetRight", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRect{} + var fernTestValueRight float64 + obj.SetRight(fernTestValueRight) + assert.Equal(t, fernTestValueRight, obj.Right) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCloudyIntensity", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueCloudyIntensity *float64 - obj.SetCloudyIntensity(fernTestValueCloudyIntensity) - assert.Equal(t, fernTestValueCloudyIntensity, obj.CloudyIntensity) + t.Run("SetTop", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRect{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygon(t *testing.T) { - t.Run("GetRef", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonRef - obj.Ref = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") - }) - - t.Run("GetRef_NilValue", func(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - obj.Ref = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRect{} + var expected float64 + obj.Left = expected // Act & Assert - assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") }) - t.Run("GetRef_NilReceiver", func(t *testing.T) { + t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon + var obj *DocAnnotationsList200ResponseAnnotationsItemLineRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRef() // Should return zero value + _ = obj.GetLeft() // Should return zero value }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRect{} + var expected float64 + obj.Bottom = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon + var obj *DocAnnotationsList200ResponseAnnotationsItemLineRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetBottom() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var expected int - obj.Index = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRect{} + var expected float64 + obj.Right = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon + var obj *DocAnnotationsList200ResponseAnnotationsItemLineRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetRight() // Should return zero value }) - t.Run("GetIdentityQuality", func(t *testing.T) { + t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var expected DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQuality - obj.IdentityQuality = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRect{} + var expected float64 + obj.Top = expected // Act & Assert - assert.Equal(t, expected, obj.GetIdentityQuality(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") }) - t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { + t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon + var obj *DocAnnotationsList200ResponseAnnotationsItemLineRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIdentityQuality() // Should return zero value + _ = obj.GetTop() // Should return zero value }) - t.Run("GetNm", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var expected *string - obj.Nm = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRect{} + var fernTestValueLeft float64 - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") - }) + // Act + obj.SetLeft(fernTestValueLeft) - t.Run("GetNm_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - obj.Nm = nil + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetNm_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNm() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetFlags", func(t *testing.T) { + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags - obj.Flags = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRect{} + var fernTestValueBottom float64 - // Act & Assert - assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") - }) + // Act + obj.SetBottom(fernTestValueBottom) - t.Run("GetFlags_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - obj.Flags = nil + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetFlags_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetFlags() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetRect", func(t *testing.T) { + t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonRect - obj.Rect = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRect{} + var fernTestValueRight float64 - // Act & Assert - assert.Equal(t, expected, obj.GetRect(), "getter should return the property value") - }) - - t.Run("GetRect_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - obj.Rect = nil - - // Act & Assert - assert.Nil(t, obj.GetRect(), "getter should return nil when property is nil") - }) - - t.Run("GetRect_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRect() // Should return zero value - }) - - t.Run("GetContents", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var expected *string - obj.Contents = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetContents(), "getter should return the property value") - }) - - t.Run("GetContents_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - obj.Contents = nil - - // Act & Assert - assert.Nil(t, obj.GetContents(), "getter should return nil when property is nil") - }) - - t.Run("GetContents_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetContents() // Should return zero value - }) - - t.Run("GetSubject", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var expected *string - obj.Subject = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetSubject(), "getter should return the property value") - }) - - t.Run("GetSubject_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - obj.Subject = nil - - // Act & Assert - assert.Nil(t, obj.GetSubject(), "getter should return nil when property is nil") - }) - - t.Run("GetSubject_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetSubject() // Should return zero value - }) - - t.Run("GetAuthor", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var expected *string - obj.Author = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAuthor(), "getter should return the property value") - }) - - t.Run("GetAuthor_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - obj.Author = nil - - // Act & Assert - assert.Nil(t, obj.GetAuthor(), "getter should return nil when property is nil") - }) + // Act + obj.SetRight(fernTestValueRight) - t.Run("GetAuthor_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAuthor() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("GetCreated", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var expected *time.Time - obj.Created = expected + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - // Act & Assert - assert.Equal(t, expected, obj.GetCreated(), "getter should return the property value") + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetCreated_NilValue", func(t *testing.T) { + t.Run("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - obj.Created = nil - - // Act & Assert - assert.Nil(t, obj.GetCreated(), "getter should return nil when property is nil") - }) - - t.Run("GetCreated_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetCreated() // Should return zero value - }) + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRect{} + var fernTestValueTop float64 - t.Run("GetModified", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var expected *time.Time - obj.Modified = expected + // Act + obj.SetTop(fernTestValueTop) - // Act & Assert - assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("GetModified_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - obj.Modified = nil + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - // Act & Assert - assert.Nil(t, obj.GetModified(), "getter should return nil when property is nil") + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetModified_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetModified() // Should return zero value - }) +} - t.Run("GetBlendMode", func(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var expected DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode - obj.BlendMode = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRef{} + var expected string + obj.Kind = expected // Act & Assert - assert.Equal(t, expected, obj.GetBlendMode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") }) - t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { + t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon + var obj *DocAnnotationsList200ResponseAnnotationsItemLineRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBlendMode() // Should return zero value + _ = obj.GetKind() // Should return zero value }) - t.Run("GetInReplyTo", func(t *testing.T) { + t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo - obj.InReplyTo = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber + obj.ObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetInReplyTo(), "getter should return the property value") + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") }) - t.Run("GetInReplyTo_NilValue", func(t *testing.T) { + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - obj.InReplyTo = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRef{} + obj.ObjectNumber = nil // Act & Assert - assert.Nil(t, obj.GetInReplyTo(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") }) - t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon + var obj *DocAnnotationsList200ResponseAnnotationsItemLineRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInReplyTo() // Should return zero value + _ = obj.GetObjectNumber() // Should return zero value }) - t.Run("GetReplyType", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonReplyType - obj.ReplyType = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLineRefNm + obj.Nm = expected // Act & Assert - assert.Equal(t, expected, obj.GetReplyType(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("GetReplyType_NilValue", func(t *testing.T) { + t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - obj.ReplyType = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRef{} + obj.Nm = nil // Act & Assert - assert.Nil(t, obj.GetReplyType(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") }) - t.Run("GetReplyType_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon + var obj *DocAnnotationsList200ResponseAnnotationsItemLineRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReplyType() // Should return zero value + _ = obj.GetNm() // Should return zero value }) - t.Run("GetUserID", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var expected *string - obj.UserID = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex + obj.Index = expected // Act & Assert - assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetUserID_NilValue", func(t *testing.T) { + t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - obj.UserID = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRef{} + obj.Index = nil // Act & Assert - assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") }) - t.Run("GetUserID_NilReceiver", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon + var obj *DocAnnotationsList200ResponseAnnotationsItemLineRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUserID() // Should return zero value + _ = obj.GetIndex() // Should return zero value }) - t.Run("GetGroupID", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var expected *string - obj.GroupID = expected +} - // Act & Assert - assert.Equal(t, expected, obj.GetGroupID(), "getter should return the property value") +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLineRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndex{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetGroupID_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - obj.GroupID = nil - - // Act & Assert - assert.Nil(t, obj.GetGroupID(), "getter should return nil when property is nil") + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndex{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetGroupID_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetGroupID() // Should return zero value + t.Run("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetCreatedBy", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var expected *string - obj.CreatedBy = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") - }) +} - t.Run("GetCreatedBy_NilValue", func(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineRefIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - obj.CreatedBy = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndex{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Nil(t, obj.GetCreatedBy(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon + var obj *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCreatedBy() // Should return zero value - }) - - t.Run("GetUpdatedBy", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var expected *string - obj.UpdatedBy = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetUpdatedBy(), "getter should return the property value") + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - obj.UpdatedBy = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndex{} + var expected int + obj.Index = expected // Act & Assert - assert.Nil(t, obj.GetUpdatedBy(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon + var obj *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUpdatedBy() // Should return zero value + _ = obj.GetIndex() // Should return zero value }) - t.Run("GetActions", func(t *testing.T) { + t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var expected *PdfAnnotationActions - obj.Actions = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndex{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision + obj.Revision = expected // Act & Assert - assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") }) - t.Run("GetActions_NilValue", func(t *testing.T) { + t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - obj.Actions = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndex{} + obj.Revision = nil // Act & Assert - assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") }) - t.Run("GetActions_NilReceiver", func(t *testing.T) { + t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon + var obj *DocAnnotationsList200ResponseAnnotationsItemLineRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetActions() // Should return zero value + _ = obj.GetRevision() // Should return zero value }) - t.Run("GetColor", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonColor - obj.Color = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") - }) +} - t.Run("GetColor_NilValue", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - obj.Color = nil - - // Act & Assert - assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") - }) + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndex{} + var fernTestValuePageObjectNumber int - t.Run("GetColor_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetColor() // Should return zero value - }) + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - t.Run("GetOpacity", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var expected float64 - obj.Opacity = expected + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Equal(t, expected, obj.GetOpacity(), "getter should return the property value") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetOpacity_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetOpacity() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetStrokeWidth", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var expected float64 - obj.StrokeWidth = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetStrokeWidth(), "getter should return the property value") - }) + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndex{} + var fernTestValueIndex int - t.Run("GetStrokeWidth_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetStrokeWidth() // Should return zero value - }) + // Act + obj.SetIndex(fernTestValueIndex) - t.Run("GetBorderStyle", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var expected DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle - obj.BorderStyle = expected + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Equal(t, expected, obj.GetBorderStyle(), "getter should return the property value") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetBorderStyle_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetBorderStyle() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetDashArray", func(t *testing.T) { + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var expected []float64 - obj.DashArray = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision - // Act & Assert - assert.Equal(t, expected, obj.GetDashArray(), "getter should return the property value") - }) + // Act + obj.SetRevision(fernTestValueRevision) - t.Run("GetDashArray_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - obj.DashArray = nil + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Nil(t, obj.GetDashArray(), "getter should return nil when property is nil") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetDashArray_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetDashArray() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetInteriorColor", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor - obj.InteriorColor = expected +} - // Act & Assert - assert.Equal(t, expected, obj.GetInteriorColor(), "getter should return the property value") +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision{} + var fernTestValueDocSessionID string + obj.SetDocSessionID(fernTestValueDocSessionID) + assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetInteriorColor_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - obj.InteriorColor = nil - - // Act & Assert - assert.Nil(t, obj.GetInteriorColor(), "getter should return nil when property is nil") + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetInteriorColor_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetInteriorColor() // Should return zero value + t.Run("SetGeneration", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetVertices", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var expected []*DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem - obj.Vertices = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetVertices(), "getter should return the property value") - }) +} - t.Run("GetVertices_NilValue", func(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - obj.Vertices = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision{} + var expected string + obj.DocSessionID = expected // Act & Assert - assert.Nil(t, obj.GetVertices(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") }) - t.Run("GetVertices_NilReceiver", func(t *testing.T) { + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon + var obj *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetVertices() // Should return zero value - }) - - t.Run("GetRotation", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var expected *float64 - obj.Rotation = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRotation(), "getter should return the property value") + _ = obj.GetDocSessionID() // Should return zero value }) - t.Run("GetRotation_NilValue", func(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - obj.Rotation = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Nil(t, obj.GetRotation(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetRotation_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon + var obj *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRotation() // Should return zero value - }) - - t.Run("GetCloudyIntensity", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var expected *float64 - obj.CloudyIntensity = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetCloudyIntensity(), "getter should return the property value") + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetCloudyIntensity_NilValue", func(t *testing.T) { + t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - obj.CloudyIntensity = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision{} + var expected int + obj.Generation = expected // Act & Assert - assert.Nil(t, obj.GetCloudyIntensity(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") }) - t.Run("GetCloudyIntensity_NilReceiver", func(t *testing.T) { + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon + var obj *DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCloudyIntensity() // Should return zero value + _ = obj.GetGeneration() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygon(t *testing.T) { - t.Run("SetRef_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemPolygonRef + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision{} + var fernTestValueDocSessionID string // Act - obj.SetRef(fernTestValueRef) + obj.SetDocSessionID(fernTestValueDocSessionID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -52858,7 +52880,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygon( t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -52886,14 +52908,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygon( // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueIndex int + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefIndexRevision{} + var fernTestValueGeneration int // Act - obj.SetIndex(fernTestValueIndex) + obj.SetGeneration(fernTestValueGeneration) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -52917,107 +52939,85 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygon( // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQuality - - // Act - obj.SetIdentityQuality(fernTestValueIdentityQuality) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") +} - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLineRefNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefNm{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineRefNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueNm *string - - // Act - obj.SetNm(fernTestValueNm) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefNm{} + var expected int + obj.PageObjectNumber = expected - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineRefNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("SetFlags_MarksExplicit", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags - - // Act - obj.SetFlags(fernTestValueFlags) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefNm{} + var expected string + obj.Nm = expected - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineRefNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value }) - t.Run("SetRect_MarksExplicit", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineRefNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemPolygonRect + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefNm{} + var fernTestValuePageObjectNumber int // Act - obj.SetRect(fernTestValueRect) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -53041,14 +53041,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygon( // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetContents_MarksExplicit", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueContents *string + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefNm{} + var fernTestValueNm string // Act - obj.SetContents(fernTestValueContents) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -53072,45 +53072,85 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygon( // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetSubject_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueSubject *string + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber{} + var expected int + obj.PageObjectNumber = expected - // Act - obj.SetSubject(fernTestValueSubject) + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") }) - t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAnnotObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueAuthor *string + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber{} + var fernTestValuePageObjectNumber int // Act - obj.SetAuthor(fernTestValueAuthor) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -53134,14 +53174,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygon( // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreated_MarksExplicit", func(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueCreated *time.Time + obj := &DocAnnotationsList200ResponseAnnotationsItemLineRefObjectNumber{} + var fernTestValueAnnotObjectNumber int // Act - obj.SetCreated(fernTestValueCreated) + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -53165,17 +53205,847 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygon( // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetModified_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueModified *time.Time +} - // Act - obj.SetModified(fernTestValueModified) +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLink(t *testing.T) { + t.Run("SetRef", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemLinkRef + obj.SetRef(fernTestValueRef) + assert.Equal(t, fernTestValueRef, obj.Ref) + assert.NotNil(t, obj.explicitFields) + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIdentityQuality", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQuality + obj.SetIdentityQuality(fernTestValueIdentityQuality) + assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueNm *string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFlags", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemLinkFlags + obj.SetFlags(fernTestValueFlags) + assert.Equal(t, fernTestValueFlags, obj.Flags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRect", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemLinkRect + obj.SetRect(fernTestValueRect) + assert.Equal(t, fernTestValueRect, obj.Rect) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetContents", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueContents *string + obj.SetContents(fernTestValueContents) + assert.Equal(t, fernTestValueContents, obj.Contents) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubject", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueSubject *string + obj.SetSubject(fernTestValueSubject) + assert.Equal(t, fernTestValueSubject, obj.Subject) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAuthor", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueAuthor *string + obj.SetAuthor(fernTestValueAuthor) + assert.Equal(t, fernTestValueAuthor, obj.Author) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCreated", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueCreated *time.Time + obj.SetCreated(fernTestValueCreated) + assert.Equal(t, fernTestValueCreated, obj.Created) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetModified", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueModified *time.Time + obj.SetModified(fernTestValueModified) + assert.Equal(t, fernTestValueModified, obj.Modified) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBlendMode", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode + obj.SetBlendMode(fernTestValueBlendMode) + assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetInReplyTo", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo + obj.SetInReplyTo(fernTestValueInReplyTo) + assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetReplyType", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemLinkReplyType + obj.SetReplyType(fernTestValueReplyType) + assert.Equal(t, fernTestValueReplyType, obj.ReplyType) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetUserID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueUserID *string + obj.SetUserID(fernTestValueUserID) + assert.Equal(t, fernTestValueUserID, obj.UserID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetGroupID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueGroupID *string + obj.SetGroupID(fernTestValueGroupID) + assert.Equal(t, fernTestValueGroupID, obj.GroupID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCreatedBy", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueCreatedBy *string + obj.SetCreatedBy(fernTestValueCreatedBy) + assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetUpdatedBy", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueUpdatedBy *string + obj.SetUpdatedBy(fernTestValueUpdatedBy) + assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetActions", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueActions *PdfAnnotationActions + obj.SetActions(fernTestValueActions) + assert.Equal(t, fernTestValueActions, obj.Actions) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetTarget", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueTarget *DocAnnotationsList200ResponseAnnotationsItemLinkTarget + obj.SetTarget(fernTestValueTarget) + assert.Equal(t, fernTestValueTarget, obj.Target) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLink(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLinkRef + obj.Ref = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") + }) + + t.Run("GetRef_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + obj.Ref = nil + + // Act & Assert + assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") + }) + + t.Run("GetRef_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLink + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRef() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLink + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var expected int + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLink + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + + t.Run("GetIdentityQuality", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var expected DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQuality + obj.IdentityQuality = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIdentityQuality(), "getter should return the property value") + }) + + t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLink + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIdentityQuality() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var expected *string + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + obj.Nm = nil + + // Act & Assert + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLink + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + + t.Run("GetFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLinkFlags + obj.Flags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") + }) + + t.Run("GetFlags_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + obj.Flags = nil + + // Act & Assert + assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") + }) + + t.Run("GetFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLink + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFlags() // Should return zero value + }) + + t.Run("GetRect", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLinkRect + obj.Rect = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRect(), "getter should return the property value") + }) + + t.Run("GetRect_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + obj.Rect = nil + + // Act & Assert + assert.Nil(t, obj.GetRect(), "getter should return nil when property is nil") + }) + + t.Run("GetRect_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLink + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRect() // Should return zero value + }) + + t.Run("GetContents", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var expected *string + obj.Contents = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetContents(), "getter should return the property value") + }) + + t.Run("GetContents_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + obj.Contents = nil + + // Act & Assert + assert.Nil(t, obj.GetContents(), "getter should return nil when property is nil") + }) + + t.Run("GetContents_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLink + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetContents() // Should return zero value + }) + + t.Run("GetSubject", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var expected *string + obj.Subject = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSubject(), "getter should return the property value") + }) + + t.Run("GetSubject_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + obj.Subject = nil + + // Act & Assert + assert.Nil(t, obj.GetSubject(), "getter should return nil when property is nil") + }) + + t.Run("GetSubject_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLink + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSubject() // Should return zero value + }) + + t.Run("GetAuthor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var expected *string + obj.Author = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAuthor(), "getter should return the property value") + }) + + t.Run("GetAuthor_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + obj.Author = nil + + // Act & Assert + assert.Nil(t, obj.GetAuthor(), "getter should return nil when property is nil") + }) + + t.Run("GetAuthor_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLink + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAuthor() // Should return zero value + }) + + t.Run("GetCreated", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var expected *time.Time + obj.Created = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCreated(), "getter should return the property value") + }) + + t.Run("GetCreated_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + obj.Created = nil + + // Act & Assert + assert.Nil(t, obj.GetCreated(), "getter should return nil when property is nil") + }) + + t.Run("GetCreated_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLink + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCreated() // Should return zero value + }) + + t.Run("GetModified", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var expected *time.Time + obj.Modified = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") + }) + + t.Run("GetModified_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + obj.Modified = nil + + // Act & Assert + assert.Nil(t, obj.GetModified(), "getter should return nil when property is nil") + }) + + t.Run("GetModified_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLink + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetModified() // Should return zero value + }) + + t.Run("GetBlendMode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var expected DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode + obj.BlendMode = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBlendMode(), "getter should return the property value") + }) + + t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLink + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBlendMode() // Should return zero value + }) + + t.Run("GetInReplyTo", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo + obj.InReplyTo = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetInReplyTo(), "getter should return the property value") + }) + + t.Run("GetInReplyTo_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + obj.InReplyTo = nil + + // Act & Assert + assert.Nil(t, obj.GetInReplyTo(), "getter should return nil when property is nil") + }) + + t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLink + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetInReplyTo() // Should return zero value + }) + + t.Run("GetReplyType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLinkReplyType + obj.ReplyType = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetReplyType(), "getter should return the property value") + }) + + t.Run("GetReplyType_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + obj.ReplyType = nil + + // Act & Assert + assert.Nil(t, obj.GetReplyType(), "getter should return nil when property is nil") + }) + + t.Run("GetReplyType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLink + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetReplyType() // Should return zero value + }) + + t.Run("GetUserID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var expected *string + obj.UserID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") + }) + + t.Run("GetUserID_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + obj.UserID = nil + + // Act & Assert + assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") + }) + + t.Run("GetUserID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLink + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUserID() // Should return zero value + }) + + t.Run("GetGroupID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var expected *string + obj.GroupID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetGroupID(), "getter should return the property value") + }) + + t.Run("GetGroupID_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + obj.GroupID = nil + + // Act & Assert + assert.Nil(t, obj.GetGroupID(), "getter should return nil when property is nil") + }) + + t.Run("GetGroupID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLink + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGroupID() // Should return zero value + }) + + t.Run("GetCreatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var expected *string + obj.CreatedBy = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") + }) + + t.Run("GetCreatedBy_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + obj.CreatedBy = nil + + // Act & Assert + assert.Nil(t, obj.GetCreatedBy(), "getter should return nil when property is nil") + }) + + t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLink + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCreatedBy() // Should return zero value + }) + + t.Run("GetUpdatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var expected *string + obj.UpdatedBy = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUpdatedBy(), "getter should return the property value") + }) + + t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + obj.UpdatedBy = nil + + // Act & Assert + assert.Nil(t, obj.GetUpdatedBy(), "getter should return nil when property is nil") + }) + + t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLink + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUpdatedBy() // Should return zero value + }) + + t.Run("GetActions", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var expected *PdfAnnotationActions + obj.Actions = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") + }) + + t.Run("GetActions_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + obj.Actions = nil + + // Act & Assert + assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") + }) + + t.Run("GetActions_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLink + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetActions() // Should return zero value + }) + + t.Run("GetTarget", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLinkTarget + obj.Target = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetTarget(), "getter should return the property value") + }) + + t.Run("GetTarget_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + obj.Target = nil + + // Act & Assert + assert.Nil(t, obj.GetTarget(), "getter should return nil when property is nil") + }) + + t.Run("GetTarget_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLink + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetTarget() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLink(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemLinkRef + + // Act + obj.SetRef(fernTestValueRef) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) require.NoError(t, err, "marshaling should succeed for test setup") // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value @@ -53196,14 +54066,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygon( // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValuePageObjectNumber int // Act - obj.SetBlendMode(fernTestValueBlendMode) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -53227,14 +54097,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygon( // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueIndex int // Act - obj.SetInReplyTo(fernTestValueInReplyTo) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -53258,14 +54128,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygon( // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { + t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemPolygonReplyType + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemLinkIdentityQuality // Act - obj.SetReplyType(fernTestValueReplyType) + obj.SetIdentityQuality(fernTestValueIdentityQuality) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -53289,14 +54159,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygon( // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUserID_MarksExplicit", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueUserID *string + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueNm *string // Act - obj.SetUserID(fernTestValueUserID) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -53320,14 +54190,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygon( // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { + t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueGroupID *string + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemLinkFlags // Act - obj.SetGroupID(fernTestValueGroupID) + obj.SetFlags(fernTestValueFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -53351,14 +54221,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygon( // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueCreatedBy *string + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemLinkRect // Act - obj.SetCreatedBy(fernTestValueCreatedBy) + obj.SetRect(fernTestValueRect) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -53382,14 +54252,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygon( // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueUpdatedBy *string + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueContents *string // Act - obj.SetUpdatedBy(fernTestValueUpdatedBy) + obj.SetContents(fernTestValueContents) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -53413,14 +54283,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygon( // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Run("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueActions *PdfAnnotationActions + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueSubject *string // Act - obj.SetActions(fernTestValueActions) + obj.SetSubject(fernTestValueSubject) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -53444,14 +54314,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygon( // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetColor_MarksExplicit", func(t *testing.T) { + t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemPolygonColor + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueAuthor *string // Act - obj.SetColor(fernTestValueColor) + obj.SetAuthor(fernTestValueAuthor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -53475,14 +54345,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygon( // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { + t.Run("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueOpacity float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueCreated *time.Time // Act - obj.SetOpacity(fernTestValueOpacity) + obj.SetCreated(fernTestValueCreated) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -53506,14 +54376,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygon( // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetStrokeWidth_MarksExplicit", func(t *testing.T) { + t.Run("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueStrokeWidth float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueModified *time.Time // Act - obj.SetStrokeWidth(fernTestValueStrokeWidth) + obj.SetModified(fernTestValueModified) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -53537,14 +54407,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygon( // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBorderStyle_MarksExplicit", func(t *testing.T) { + t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueBorderStyle DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemLinkBlendMode // Act - obj.SetBorderStyle(fernTestValueBorderStyle) + obj.SetBlendMode(fernTestValueBlendMode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -53568,14 +54438,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygon( // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDashArray_MarksExplicit", func(t *testing.T) { + t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueDashArray []float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo // Act - obj.SetDashArray(fernTestValueDashArray) + obj.SetInReplyTo(fernTestValueInReplyTo) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -53599,14 +54469,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygon( // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInteriorColor_MarksExplicit", func(t *testing.T) { + t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueInteriorColor *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemLinkReplyType // Act - obj.SetInteriorColor(fernTestValueInteriorColor) + obj.SetReplyType(fernTestValueReplyType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -53630,14 +54500,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygon( // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetVertices_MarksExplicit", func(t *testing.T) { + t.Run("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueVertices []*DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueUserID *string // Act - obj.SetVertices(fernTestValueVertices) + obj.SetUserID(fernTestValueUserID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -53661,14 +54531,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygon( // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRotation_MarksExplicit", func(t *testing.T) { + t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueRotation *float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueGroupID *string // Act - obj.SetRotation(fernTestValueRotation) + obj.SetGroupID(fernTestValueGroupID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -53692,14 +54562,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygon( // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCloudyIntensity_MarksExplicit", func(t *testing.T) { + t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} - var fernTestValueCloudyIntensity *float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueCreatedBy *string // Act - obj.SetCloudyIntensity(fernTestValueCloudyIntensity) + obj.SetCreatedBy(fernTestValueCreatedBy) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -53723,147 +54593,45 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygon( // It verifies that setting a field via setter allows successful JSON round-trip }) -} + t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueUpdatedBy *string -func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonColor(t *testing.T) { - t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonColor{} - var fernTestValueR int - obj.SetR(fernTestValueR) - assert.Equal(t, fernTestValueR, obj.R) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetUpdatedBy(fernTestValueUpdatedBy) - t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonColor{} - var fernTestValueG int - obj.SetG(fernTestValueG) - assert.Equal(t, fernTestValueG, obj.G) - assert.NotNil(t, obj.explicitFields) - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonColor{} - var fernTestValueB int - obj.SetB(fernTestValueB) - assert.Equal(t, fernTestValueB, obj.B) - assert.NotNil(t, obj.explicitFields) - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } -} + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) -func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonColor(t *testing.T) { - t.Run("GetR", func(t *testing.T) { + t.Run("SetActions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonColor{} - var expected int - obj.R = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetR(), "getter should return the property value") - }) - - t.Run("GetR_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetR() // Should return zero value - }) - - t.Run("GetG", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonColor{} - var expected int - obj.G = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetG(), "getter should return the property value") - }) - - t.Run("GetG_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetG() // Should return zero value - }) - - t.Run("GetB", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonColor{} - var expected int - obj.B = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetB(), "getter should return the property value") - }) - - t.Run("GetB_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetB() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonColor(t *testing.T) { - t.Run("SetR_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonColor{} - var fernTestValueR int + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueActions *PdfAnnotationActions // Act - obj.SetR(fernTestValueR) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetG_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonColor{} - var fernTestValueG int - - // Act - obj.SetG(fernTestValueG) + obj.SetActions(fernTestValueActions) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -53887,14 +54655,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonC // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Run("SetTarget_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonColor{} - var fernTestValueB int + obj := &DocAnnotationsList200ResponseAnnotationsItemLink{} + var fernTestValueTarget *DocAnnotationsList200ResponseAnnotationsItemLinkTarget // Act - obj.SetB(fernTestValueB) + obj.SetTarget(fernTestValueTarget) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -53920,9 +54688,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonC } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLinkFlags(t *testing.T) { t.Run("SetInvisible", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} var fernTestValueInvisible bool obj.SetInvisible(fernTestValueInvisible) assert.Equal(t, fernTestValueInvisible, obj.Invisible) @@ -53930,7 +54698,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *test }) t.Run("SetHidden", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} var fernTestValueHidden bool obj.SetHidden(fernTestValueHidden) assert.Equal(t, fernTestValueHidden, obj.Hidden) @@ -53938,7 +54706,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *test }) t.Run("SetPrint", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} var fernTestValuePrint bool obj.SetPrint(fernTestValuePrint) assert.Equal(t, fernTestValuePrint, obj.Print) @@ -53946,7 +54714,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *test }) t.Run("SetNoZoom", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} var fernTestValueNoZoom bool obj.SetNoZoom(fernTestValueNoZoom) assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) @@ -53954,7 +54722,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *test }) t.Run("SetNoRotate", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} var fernTestValueNoRotate bool obj.SetNoRotate(fernTestValueNoRotate) assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) @@ -53962,7 +54730,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *test }) t.Run("SetNoView", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} var fernTestValueNoView bool obj.SetNoView(fernTestValueNoView) assert.Equal(t, fernTestValueNoView, obj.NoView) @@ -53970,7 +54738,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *test }) t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} var fernTestValueReadOnly bool obj.SetReadOnly(fernTestValueReadOnly) assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) @@ -53978,7 +54746,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *test }) t.Run("SetLocked", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} var fernTestValueLocked bool obj.SetLocked(fernTestValueLocked) assert.Equal(t, fernTestValueLocked, obj.Locked) @@ -53986,7 +54754,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *test }) t.Run("SetToggleNoView", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} var fernTestValueToggleNoView bool obj.SetToggleNoView(fernTestValueToggleNoView) assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) @@ -53994,7 +54762,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *test }) t.Run("SetLockedContents", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} var fernTestValueLockedContents bool obj.SetLockedContents(fernTestValueLockedContents) assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) @@ -54003,11 +54771,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *test } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkFlags(t *testing.T) { t.Run("GetInvisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} var expected bool obj.Invisible = expected @@ -54017,7 +54785,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *test t.Run("GetInvisible_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -54030,7 +54798,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *test t.Run("GetHidden", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} var expected bool obj.Hidden = expected @@ -54040,7 +54808,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *test t.Run("GetHidden_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -54053,7 +54821,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *test t.Run("GetPrint", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} var expected bool obj.Print = expected @@ -54063,7 +54831,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *test t.Run("GetPrint_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -54076,7 +54844,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *test t.Run("GetNoZoom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} var expected bool obj.NoZoom = expected @@ -54086,7 +54854,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *test t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -54099,7 +54867,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *test t.Run("GetNoRotate", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} var expected bool obj.NoRotate = expected @@ -54109,7 +54877,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *test t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -54122,7 +54890,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *test t.Run("GetNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} var expected bool obj.NoView = expected @@ -54132,7 +54900,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *test t.Run("GetNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -54145,7 +54913,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *test t.Run("GetReadOnly", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} var expected bool obj.ReadOnly = expected @@ -54155,7 +54923,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *test t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -54168,7 +54936,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *test t.Run("GetLocked", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} var expected bool obj.Locked = expected @@ -54178,7 +54946,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *test t.Run("GetLocked_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -54191,7 +54959,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *test t.Run("GetToggleNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} var expected bool obj.ToggleNoView = expected @@ -54201,7 +54969,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *test t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -54214,7 +54982,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *test t.Run("GetLockedContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} var expected bool obj.LockedContents = expected @@ -54224,7 +54992,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *test t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -54236,11 +55004,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *test } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkFlags(t *testing.T) { t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} var fernTestValueInvisible bool // Act @@ -54271,7 +55039,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonF t.Run("SetHidden_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} var fernTestValueHidden bool // Act @@ -54302,7 +55070,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonF t.Run("SetPrint_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} var fernTestValuePrint bool // Act @@ -54333,7 +55101,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonF t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} var fernTestValueNoZoom bool // Act @@ -54364,7 +55132,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonF t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} var fernTestValueNoRotate bool // Act @@ -54395,7 +55163,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonF t.Run("SetNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} var fernTestValueNoView bool // Act @@ -54426,7 +55194,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonF t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} var fernTestValueReadOnly bool // Act @@ -54457,7 +55225,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonF t.Run("SetLocked_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} var fernTestValueLocked bool // Act @@ -54488,7 +55256,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonF t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} var fernTestValueToggleNoView bool // Act @@ -54519,7 +55287,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonF t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkFlags{} var fernTestValueLockedContents bool // Act @@ -54549,11 +55317,11 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonF } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo{} var expected string obj.Kind = expected @@ -54563,7 +55331,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo(t * t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -54576,8 +55344,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo(t * t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -54587,7 +55355,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo(t * t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo{} obj.ObjectNumber = nil // Act & Assert @@ -54596,7 +55364,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo(t * t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -54609,8 +55377,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo(t * t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm obj.Nm = expected // Act & Assert @@ -54620,7 +55388,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo(t * t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo{} obj.Nm = nil // Act & Assert @@ -54629,7 +55397,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo(t * t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -54642,8 +55410,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo(t * t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex obj.Index = expected // Act & Assert @@ -54653,7 +55421,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo(t * t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo{} obj.Index = nil // Act & Assert @@ -54662,7 +55430,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo(t * t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -54674,9 +55442,9 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo(t * } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -54684,7 +55452,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToInde }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -54692,8 +55460,8 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToInde }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -54701,11 +55469,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToInde } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex{} var expected int obj.PageObjectNumber = expected @@ -54715,7 +55483,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToInde t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -54728,7 +55496,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToInde t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex{} var expected int obj.Index = expected @@ -54738,7 +55506,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToInde t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -54751,8 +55519,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToInde t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex{} - var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision obj.Revision = expected // Act & Assert @@ -54762,7 +55530,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToInde t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex{} obj.Revision = nil // Act & Assert @@ -54771,7 +55539,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToInde t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -54783,11 +55551,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToInde } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex{} var fernTestValuePageObjectNumber int // Act @@ -54818,7 +55586,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonI t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex{} var fernTestValueIndex int // Act @@ -54849,8 +55617,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonI t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -54879,9 +55647,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonI } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -54889,7 +55657,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToInde }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -54897,7 +55665,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToInde }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -54906,11 +55674,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToInde } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision{} var expected string obj.DocSessionID = expected @@ -54920,7 +55688,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToInde t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -54933,7 +55701,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToInde t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -54943,7 +55711,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToInde t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -54956,7 +55724,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToInde t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision{} var expected int obj.Generation = expected @@ -54966,7 +55734,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToInde t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -54978,11 +55746,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToInde } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision{} var fernTestValueDocSessionID string // Act @@ -55013,7 +55781,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonI t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -55044,7 +55812,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonI t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToIndexRevision{} var fernTestValueGeneration int // Act @@ -55074,9 +55842,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonI } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -55084,7 +55852,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm(t }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm{} var fernTestValueNm string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -55093,11 +55861,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm(t } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm{} var expected int obj.PageObjectNumber = expected @@ -55107,7 +55875,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm(t t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -55120,7 +55888,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm(t t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm{} var expected string obj.Nm = expected @@ -55130,7 +55898,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm(t t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -55142,11 +55910,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm(t } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm{} var fernTestValuePageObjectNumber int // Act @@ -55177,7 +55945,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonI t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToNm{} var fernTestValueNm string // Act @@ -55207,9 +55975,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonI } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -55217,7 +55985,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObje }) t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber{} var fernTestValueAnnotObjectNumber int obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) @@ -55226,11 +55994,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObje } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber{} var expected int obj.PageObjectNumber = expected @@ -55240,7 +56008,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObje t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -55253,7 +56021,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObje t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber{} var expected int obj.AnnotObjectNumber = expected @@ -55263,7 +56031,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObje t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -55275,11 +56043,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObje } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber{} var fernTestValuePageObjectNumber int // Act @@ -55310,7 +56078,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonI t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkInReplyToObjectNumber{} var fernTestValueAnnotObjectNumber int // Act @@ -55340,204 +56108,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonI } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor(t *testing.T) { - t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor{} - var fernTestValueR int - obj.SetR(fernTestValueR) - assert.Equal(t, fernTestValueR, obj.R) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor{} - var fernTestValueG int - obj.SetG(fernTestValueG) - assert.Equal(t, fernTestValueG, obj.G) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor{} - var fernTestValueB int - obj.SetB(fernTestValueB) - assert.Equal(t, fernTestValueB, obj.B) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor(t *testing.T) { - t.Run("GetR", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor{} - var expected int - obj.R = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetR(), "getter should return the property value") - }) - - t.Run("GetR_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetR() // Should return zero value - }) - - t.Run("GetG", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor{} - var expected int - obj.G = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetG(), "getter should return the property value") - }) - - t.Run("GetG_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetG() // Should return zero value - }) - - t.Run("GetB", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor{} - var expected int - obj.B = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetB(), "getter should return the property value") - }) - - t.Run("GetB_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetB() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor(t *testing.T) { - t.Run("SetR_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor{} - var fernTestValueR int - - // Act - obj.SetR(fernTestValueR) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetG_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor{} - var fernTestValueG int - - // Act - obj.SetG(fernTestValueG) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetB_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor{} - var fernTestValueB int - - // Act - obj.SetB(fernTestValueB) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonRect(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLinkRect(t *testing.T) { t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRect{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRect{} var fernTestValueLeft float64 obj.SetLeft(fernTestValueLeft) assert.Equal(t, fernTestValueLeft, obj.Left) @@ -55545,7 +56118,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonRect(t *testi }) t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRect{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRect{} var fernTestValueBottom float64 obj.SetBottom(fernTestValueBottom) assert.Equal(t, fernTestValueBottom, obj.Bottom) @@ -55553,7 +56126,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonRect(t *testi }) t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRect{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRect{} var fernTestValueRight float64 obj.SetRight(fernTestValueRight) assert.Equal(t, fernTestValueRight, obj.Right) @@ -55561,7 +56134,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonRect(t *testi }) t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRect{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRect{} var fernTestValueTop float64 obj.SetTop(fernTestValueTop) assert.Equal(t, fernTestValueTop, obj.Top) @@ -55570,11 +56143,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonRect(t *testi } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRect(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkRect(t *testing.T) { t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRect{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRect{} var expected float64 obj.Left = expected @@ -55584,7 +56157,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRect(t *testi t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRect + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -55597,7 +56170,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRect(t *testi t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRect{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRect{} var expected float64 obj.Bottom = expected @@ -55607,7 +56180,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRect(t *testi t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRect + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -55620,7 +56193,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRect(t *testi t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRect{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRect{} var expected float64 obj.Right = expected @@ -55630,7 +56203,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRect(t *testi t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRect + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -55643,7 +56216,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRect(t *testi t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRect{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRect{} var expected float64 obj.Top = expected @@ -55653,7 +56226,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRect(t *testi t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRect + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -55665,11 +56238,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRect(t *testi } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonRect(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkRect(t *testing.T) { t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRect{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRect{} var fernTestValueLeft float64 // Act @@ -55700,7 +56273,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonR t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRect{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRect{} var fernTestValueBottom float64 // Act @@ -55731,7 +56304,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonR t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRect{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRect{} var fernTestValueRight float64 // Act @@ -55762,7 +56335,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonR t.Run("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRect{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRect{} var fernTestValueTop float64 // Act @@ -55792,11 +56365,11 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonR } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRef(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkRef(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRef{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRef{} var expected string obj.Kind = expected @@ -55806,7 +56379,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRef(t *testin t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRef + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -55819,8 +56392,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRef(t *testin t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -55830,7 +56403,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRef(t *testin t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRef{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRef{} obj.ObjectNumber = nil // Act & Assert @@ -55839,7 +56412,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRef(t *testin t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRef + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -55852,8 +56425,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRef(t *testin t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm obj.Nm = expected // Act & Assert @@ -55863,7 +56436,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRef(t *testin t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRef{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRef{} obj.Nm = nil // Act & Assert @@ -55872,7 +56445,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRef(t *testin t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRef + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -55885,8 +56458,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRef(t *testin t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex obj.Index = expected // Act & Assert @@ -55896,7 +56469,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRef(t *testin t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRef{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRef{} obj.Index = nil // Act & Assert @@ -55905,7 +56478,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRef(t *testin t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRef + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -55917,9 +56490,9 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRef(t *testin } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLinkRefIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -55927,7 +56500,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex(t *t }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -55935,8 +56508,8 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex(t *t }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -55944,11 +56517,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex(t *t } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkRefIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex{} var expected int obj.PageObjectNumber = expected @@ -55958,7 +56531,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex(t *t t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -55971,7 +56544,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex(t *t t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex{} var expected int obj.Index = expected @@ -55981,7 +56554,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex(t *t t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -55994,8 +56567,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex(t *t t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex{} - var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision obj.Revision = expected // Act & Assert @@ -56005,7 +56578,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex(t *t t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex{} obj.Revision = nil // Act & Assert @@ -56014,7 +56587,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex(t *t t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -56026,11 +56599,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex(t *t } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkRefIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex{} var fernTestValuePageObjectNumber int // Act @@ -56061,7 +56634,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonR t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex{} var fernTestValueIndex int // Act @@ -56092,8 +56665,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonR t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -56122,9 +56695,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonR } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -56132,7 +56705,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevis }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -56140,7 +56713,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevis }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -56149,11 +56722,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevis } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision{} var expected string obj.DocSessionID = expected @@ -56163,7 +56736,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevis t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -56176,7 +56749,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevis t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -56186,7 +56759,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevis t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -56199,7 +56772,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevis t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision{} var expected int obj.Generation = expected @@ -56209,7 +56782,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevis t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -56221,11 +56794,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevis } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision{} var fernTestValueDocSessionID string // Act @@ -56256,7 +56829,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonR t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -56287,7 +56860,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonR t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefIndexRevision{} var fernTestValueGeneration int // Act @@ -56317,9 +56890,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonR } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefNm(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLinkRefNm(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefNm{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -56327,7 +56900,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefNm(t *test }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefNm{} var fernTestValueNm string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -56336,11 +56909,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefNm(t *test } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefNm(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkRefNm(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefNm{} var expected int obj.PageObjectNumber = expected @@ -56350,7 +56923,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefNm(t *test t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -56363,7 +56936,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefNm(t *test t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefNm{} var expected string obj.Nm = expected @@ -56373,7 +56946,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefNm(t *test t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -56385,11 +56958,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefNm(t *test } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonRefNm(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkRefNm(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefNm{} var fernTestValuePageObjectNumber int // Act @@ -56420,7 +56993,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonR t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefNm{} var fernTestValueNm string // Act @@ -56450,9 +57023,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonR } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -56460,7 +57033,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumb }) t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber{} var fernTestValueAnnotObjectNumber int obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) @@ -56469,11 +57042,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumb } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber{} var expected int obj.PageObjectNumber = expected @@ -56483,7 +57056,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumb t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -56496,7 +57069,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumb t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber{} var expected int obj.AnnotObjectNumber = expected @@ -56506,7 +57079,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumb t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -56518,11 +57091,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumb } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber{} var fernTestValuePageObjectNumber int // Act @@ -56553,7 +57126,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonR t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkRefObjectNumber{} var fernTestValueAnnotObjectNumber int // Act @@ -56583,83 +57156,319 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonR } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) - assert.NotNil(t, obj.explicitFields) +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkTarget(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTarget{} + var expected string + obj.Kind = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") }) - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) - assert.NotNil(t, obj.explicitFields) + t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTarget + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKind() // Should return zero value }) -} + t.Run("GetGoto", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTarget{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto + obj.Goto = expected -func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem(t *testing.T) { - t.Run("GetX", func(t *testing.T) { + // Act & Assert + assert.Equal(t, expected, obj.GetGoto(), "getter should return the property value") + }) + + t.Run("GetGoto_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem{} - var expected float64 - obj.X = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTarget{} + obj.Goto = nil // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + assert.Nil(t, obj.GetGoto(), "getter should return nil when property is nil") }) - t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Run("GetGoto_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTarget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetX() // Should return zero value + _ = obj.GetGoto() // Should return zero value }) - t.Run("GetY", func(t *testing.T) { + t.Run("GetURI", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem{} - var expected float64 - obj.Y = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTarget{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI + obj.URI = expected // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + assert.Equal(t, expected, obj.GetURI(), "getter should return the property value") }) - t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Run("GetURI_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTarget{} + obj.URI = nil + + // Act & Assert + assert.Nil(t, obj.GetURI(), "getter should return nil when property is nil") + }) + + t.Run("GetURI_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTarget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetY() // Should return zero value + _ = obj.GetURI() // Should return zero value + }) + + t.Run("GetGotoRemote", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTarget{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote + obj.GotoRemote = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetGotoRemote(), "getter should return the property value") + }) + + t.Run("GetGotoRemote_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTarget{} + obj.GotoRemote = nil + + // Act & Assert + assert.Nil(t, obj.GetGotoRemote(), "getter should return nil when property is nil") + }) + + t.Run("GetGotoRemote_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTarget + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGotoRemote() // Should return zero value + }) + + t.Run("GetLaunch", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTarget{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch + obj.Launch = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLaunch(), "getter should return the property value") + }) + + t.Run("GetLaunch_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTarget{} + obj.Launch = nil + + // Act & Assert + assert.Nil(t, obj.GetLaunch(), "getter should return nil when property is nil") + }) + + t.Run("GetLaunch_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTarget + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLaunch() // Should return zero value + }) + + t.Run("GetJavascript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTarget{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLinkTargetJavascript + obj.Javascript = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetJavascript(), "getter should return the property value") + }) + + t.Run("GetJavascript_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTarget{} + obj.Javascript = nil + + // Act & Assert + assert.Nil(t, obj.GetJavascript(), "getter should return nil when property is nil") + }) + + t.Run("GetJavascript_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTarget + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetJavascript() // Should return zero value + }) + + t.Run("GetNamed", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTarget{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed + obj.Named = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNamed(), "getter should return the property value") + }) + + t.Run("GetNamed_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTarget{} + obj.Named = nil + + // Act & Assert + assert.Nil(t, obj.GetNamed(), "getter should return nil when property is nil") + }) + + t.Run("GetNamed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTarget + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNamed() // Should return zero value + }) + + t.Run("GetUnsupported", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTarget{} + var expected *DocAnnotationsList200ResponseAnnotationsItemLinkTargetUnsupported + obj.Unsupported = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUnsupported(), "getter should return the property value") + }) + + t.Run("GetUnsupported_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTarget{} + obj.Unsupported = nil + + // Act & Assert + assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") + }) + + t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTarget + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnsupported() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto(t *testing.T) { + t.Run("SetDestination", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto{} + var fernTestValueDestination *PdfDestination + obj.SetDestination(fernTestValueDestination) + assert.Equal(t, fernTestValueDestination, obj.Destination) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto(t *testing.T) { + t.Run("GetDestination", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem{} - var fernTestValueX float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto{} + var expected *PdfDestination + obj.Destination = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDestination(), "getter should return the property value") + }) + + t.Run("GetDestination_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto{} + obj.Destination = nil + + // Act & Assert + assert.Nil(t, obj.GetDestination(), "getter should return nil when property is nil") + }) + + t.Run("GetDestination_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDestination() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto(t *testing.T) { + t.Run("SetDestination_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGoto{} + var fernTestValueDestination *PdfDestination // Act - obj.SetX(fernTestValueX) + obj.SetDestination(fernTestValueDestination) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -56683,14 +57492,54 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonV // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetY_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote(t *testing.T) { + t.Run("SetFile", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote{} + var fernTestValueFile string + obj.SetFile(fernTestValueFile) + assert.Equal(t, fernTestValueFile, obj.File) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote(t *testing.T) { + t.Run("GetFile", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem{} - var fernTestValueY float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote{} + var expected string + obj.File = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFile(), "getter should return the property value") + }) + + t.Run("GetFile_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFile() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote(t *testing.T) { + t.Run("SetFile_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetGotoRemote{} + var fernTestValueFile string // Act - obj.SetY(fernTestValueY) + obj.SetFile(fernTestValueFile) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -56716,17 +57565,254 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonV } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch(t *testing.T) { + t.Run("SetPath", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch{} + var fernTestValuePath string + obj.SetPath(fernTestValuePath) + assert.Equal(t, fernTestValuePath, obj.Path) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch(t *testing.T) { + t.Run("GetPath", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch{} + var expected string + obj.Path = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPath(), "getter should return the property value") + }) + + t.Run("GetPath_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPath() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch(t *testing.T) { + t.Run("SetPath_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetLaunch{} + var fernTestValuePath string + + // Act + obj.SetPath(fernTestValuePath) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed{} + var fernTestValueName string + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed(t *testing.T) { + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed{} + var expected string + obj.Name = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + }) + + t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetName() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetNamed{} + var fernTestValueName string + + // Act + obj.SetName(fernTestValueName) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemLinkTargetURI(t *testing.T) { + t.Run("SetURI", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI{} + var fernTestValueURI string + obj.SetURI(fernTestValueURI) + assert.Equal(t, fernTestValueURI, obj.URI) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemLinkTargetURI(t *testing.T) { + t.Run("GetURI", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI{} + var expected string + obj.URI = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetURI(), "getter should return the property value") + }) + + t.Run("GetURI_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetURI() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemLinkTargetURI(t *testing.T) { + t.Run("SetURI_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLinkTargetURI{} + var fernTestValueURI string + + // Act + obj.SetURI(fernTestValueURI) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygon(t *testing.T) { + t.Run("SetIntent", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueIntent *DocAnnotationsList200ResponseAnnotationsItemPolygonIntent + obj.SetIntent(fernTestValueIntent) + assert.Equal(t, fernTestValueIntent, obj.Intent) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMeasure", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueMeasure *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasure + obj.SetMeasure(fernTestValueMeasure) + assert.Equal(t, fernTestValueMeasure, obj.Measure) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCaption", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueCaption *DocAnnotationsList200ResponseAnnotationsItemPolygonCaption + obj.SetCaption(fernTestValueCaption) + assert.Equal(t, fernTestValueCaption, obj.Caption) + assert.NotNil(t, obj.explicitFields) + }) + t.Run("SetRef", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemPolylineRef + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemPolygonRef obj.SetRef(fernTestValueRef) assert.Equal(t, fernTestValueRef, obj.Ref) assert.NotNil(t, obj.explicitFields) }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -56734,7 +57820,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -56742,15 +57828,15 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. }) t.Run("SetIdentityQuality", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQuality + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQuality obj.SetIdentityQuality(fernTestValueIdentityQuality) assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) assert.NotNil(t, obj.explicitFields) }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} var fernTestValueNm *string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -56758,23 +57844,23 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. }) t.Run("SetFlags", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags obj.SetFlags(fernTestValueFlags) assert.Equal(t, fernTestValueFlags, obj.Flags) assert.NotNil(t, obj.explicitFields) }) t.Run("SetRect", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemPolylineRect + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemPolygonRect obj.SetRect(fernTestValueRect) assert.Equal(t, fernTestValueRect, obj.Rect) assert.NotNil(t, obj.explicitFields) }) t.Run("SetContents", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} var fernTestValueContents *string obj.SetContents(fernTestValueContents) assert.Equal(t, fernTestValueContents, obj.Contents) @@ -56782,7 +57868,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. }) t.Run("SetSubject", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} var fernTestValueSubject *string obj.SetSubject(fernTestValueSubject) assert.Equal(t, fernTestValueSubject, obj.Subject) @@ -56790,7 +57876,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. }) t.Run("SetAuthor", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} var fernTestValueAuthor *string obj.SetAuthor(fernTestValueAuthor) assert.Equal(t, fernTestValueAuthor, obj.Author) @@ -56798,7 +57884,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. }) t.Run("SetCreated", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} var fernTestValueCreated *time.Time obj.SetCreated(fernTestValueCreated) assert.Equal(t, fernTestValueCreated, obj.Created) @@ -56806,7 +57892,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. }) t.Run("SetModified", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} var fernTestValueModified *time.Time obj.SetModified(fernTestValueModified) assert.Equal(t, fernTestValueModified, obj.Modified) @@ -56814,31 +57900,31 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. }) t.Run("SetBlendMode", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode obj.SetBlendMode(fernTestValueBlendMode) assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) assert.NotNil(t, obj.explicitFields) }) t.Run("SetInReplyTo", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo obj.SetInReplyTo(fernTestValueInReplyTo) assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) assert.NotNil(t, obj.explicitFields) }) t.Run("SetReplyType", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemPolylineReplyType + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemPolygonReplyType obj.SetReplyType(fernTestValueReplyType) assert.Equal(t, fernTestValueReplyType, obj.ReplyType) assert.NotNil(t, obj.explicitFields) }) t.Run("SetUserID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} var fernTestValueUserID *string obj.SetUserID(fernTestValueUserID) assert.Equal(t, fernTestValueUserID, obj.UserID) @@ -56846,7 +57932,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. }) t.Run("SetGroupID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} var fernTestValueGroupID *string obj.SetGroupID(fernTestValueGroupID) assert.Equal(t, fernTestValueGroupID, obj.GroupID) @@ -56854,7 +57940,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. }) t.Run("SetCreatedBy", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} var fernTestValueCreatedBy *string obj.SetCreatedBy(fernTestValueCreatedBy) assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) @@ -56862,7 +57948,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. }) t.Run("SetUpdatedBy", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} var fernTestValueUpdatedBy *string obj.SetUpdatedBy(fernTestValueUpdatedBy) assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) @@ -56870,7 +57956,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. }) t.Run("SetActions", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} var fernTestValueActions *PdfAnnotationActions obj.SetActions(fernTestValueActions) assert.Equal(t, fernTestValueActions, obj.Actions) @@ -56878,15 +57964,15 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. }) t.Run("SetColor", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemPolylineColor + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemPolygonColor obj.SetColor(fernTestValueColor) assert.Equal(t, fernTestValueColor, obj.Color) assert.NotNil(t, obj.explicitFields) }) t.Run("SetOpacity", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} var fernTestValueOpacity float64 obj.SetOpacity(fernTestValueOpacity) assert.Equal(t, fernTestValueOpacity, obj.Opacity) @@ -56894,7 +57980,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. }) t.Run("SetStrokeWidth", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} var fernTestValueStrokeWidth float64 obj.SetStrokeWidth(fernTestValueStrokeWidth) assert.Equal(t, fernTestValueStrokeWidth, obj.StrokeWidth) @@ -56902,15 +57988,15 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. }) t.Run("SetBorderStyle", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueBorderStyle DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueBorderStyle DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle obj.SetBorderStyle(fernTestValueBorderStyle) assert.Equal(t, fernTestValueBorderStyle, obj.BorderStyle) assert.NotNil(t, obj.explicitFields) }) t.Run("SetDashArray", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} var fernTestValueDashArray []float64 obj.SetDashArray(fernTestValueDashArray) assert.Equal(t, fernTestValueDashArray, obj.DashArray) @@ -56918,45 +58004,144 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. }) t.Run("SetInteriorColor", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueInteriorColor *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueInteriorColor *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor obj.SetInteriorColor(fernTestValueInteriorColor) assert.Equal(t, fernTestValueInteriorColor, obj.InteriorColor) assert.NotNil(t, obj.explicitFields) }) t.Run("SetVertices", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueVertices []*DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueVertices []*DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem obj.SetVertices(fernTestValueVertices) assert.Equal(t, fernTestValueVertices, obj.Vertices) assert.NotNil(t, obj.explicitFields) }) t.Run("SetRotation", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} var fernTestValueRotation *float64 obj.SetRotation(fernTestValueRotation) assert.Equal(t, fernTestValueRotation, obj.Rotation) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetLineEndings", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueLineEndings *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings - obj.SetLineEndings(fernTestValueLineEndings) - assert.Equal(t, fernTestValueLineEndings, obj.LineEndings) + t.Run("SetCloudyIntensity", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueCloudyIntensity *float64 + obj.SetCloudyIntensity(fernTestValueCloudyIntensity) + assert.Equal(t, fernTestValueCloudyIntensity, obj.CloudyIntensity) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygon(t *testing.T) { + t.Run("GetIntent", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonIntent + obj.Intent = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIntent(), "getter should return the property value") + }) + + t.Run("GetIntent_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + obj.Intent = nil + + // Act & Assert + assert.Nil(t, obj.GetIntent(), "getter should return nil when property is nil") + }) + + t.Run("GetIntent_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIntent() // Should return zero value + }) + + t.Run("GetMeasure", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasure + obj.Measure = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMeasure(), "getter should return the property value") + }) + + t.Run("GetMeasure_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + obj.Measure = nil + + // Act & Assert + assert.Nil(t, obj.GetMeasure(), "getter should return nil when property is nil") + }) + + t.Run("GetMeasure_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMeasure() // Should return zero value + }) + + t.Run("GetCaption", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonCaption + obj.Caption = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCaption(), "getter should return the property value") + }) + + t.Run("GetCaption_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + obj.Caption = nil + + // Act & Assert + assert.Nil(t, obj.GetCaption(), "getter should return nil when property is nil") + }) + + t.Run("GetCaption_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCaption() // Should return zero value + }) + t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineRef + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonRef obj.Ref = expected // Act & Assert @@ -56966,7 +58151,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetRef_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} obj.Ref = nil // Act & Assert @@ -56975,7 +58160,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetRef_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -56988,7 +58173,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} var expected int obj.PageObjectNumber = expected @@ -56998,7 +58183,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -57011,7 +58196,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} var expected int obj.Index = expected @@ -57021,7 +58206,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -57034,8 +58219,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetIdentityQuality", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var expected DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQuality + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var expected DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQuality obj.IdentityQuality = expected // Act & Assert @@ -57044,7 +58229,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -57057,7 +58242,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} var expected *string obj.Nm = expected @@ -57068,7 +58253,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} obj.Nm = nil // Act & Assert @@ -57077,7 +58262,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -57090,8 +58275,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags obj.Flags = expected // Act & Assert @@ -57101,7 +58286,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} obj.Flags = nil // Act & Assert @@ -57110,7 +58295,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -57123,8 +58308,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetRect", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineRect + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonRect obj.Rect = expected // Act & Assert @@ -57134,7 +58319,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetRect_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} obj.Rect = nil // Act & Assert @@ -57143,7 +58328,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetRect_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -57156,7 +58341,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} var expected *string obj.Contents = expected @@ -57167,7 +58352,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetContents_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} obj.Contents = nil // Act & Assert @@ -57176,7 +58361,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -57189,7 +58374,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetSubject", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} var expected *string obj.Subject = expected @@ -57200,7 +58385,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetSubject_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} obj.Subject = nil // Act & Assert @@ -57209,7 +58394,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetSubject_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -57222,7 +58407,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetAuthor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} var expected *string obj.Author = expected @@ -57233,7 +58418,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetAuthor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} obj.Author = nil // Act & Assert @@ -57242,7 +58427,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetAuthor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -57255,7 +58440,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetCreated", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} var expected *time.Time obj.Created = expected @@ -57266,7 +58451,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetCreated_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} obj.Created = nil // Act & Assert @@ -57275,7 +58460,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetCreated_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -57288,7 +58473,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetModified", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} var expected *time.Time obj.Modified = expected @@ -57299,7 +58484,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetModified_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} obj.Modified = nil // Act & Assert @@ -57308,7 +58493,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetModified_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -57321,8 +58506,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetBlendMode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var expected DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var expected DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode obj.BlendMode = expected // Act & Assert @@ -57331,7 +58516,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -57344,8 +58529,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetInReplyTo", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo obj.InReplyTo = expected // Act & Assert @@ -57355,7 +58540,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetInReplyTo_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} obj.InReplyTo = nil // Act & Assert @@ -57364,7 +58549,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -57377,8 +58562,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetReplyType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineReplyType + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonReplyType obj.ReplyType = expected // Act & Assert @@ -57388,7 +58573,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetReplyType_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} obj.ReplyType = nil // Act & Assert @@ -57397,7 +58582,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetReplyType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -57410,7 +58595,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetUserID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} var expected *string obj.UserID = expected @@ -57421,7 +58606,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetUserID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} obj.UserID = nil // Act & Assert @@ -57430,7 +58615,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetUserID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -57443,7 +58628,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetGroupID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} var expected *string obj.GroupID = expected @@ -57454,7 +58639,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetGroupID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} obj.GroupID = nil // Act & Assert @@ -57463,7 +58648,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetGroupID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -57476,7 +58661,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetCreatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} var expected *string obj.CreatedBy = expected @@ -57487,7 +58672,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetCreatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} obj.CreatedBy = nil // Act & Assert @@ -57496,7 +58681,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -57509,7 +58694,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetUpdatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} var expected *string obj.UpdatedBy = expected @@ -57520,7 +58705,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} obj.UpdatedBy = nil // Act & Assert @@ -57529,7 +58714,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -57542,7 +58727,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetActions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} var expected *PdfAnnotationActions obj.Actions = expected @@ -57553,7 +58738,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetActions_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} obj.Actions = nil // Act & Assert @@ -57562,7 +58747,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetActions_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -57575,8 +58760,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetColor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineColor + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonColor obj.Color = expected // Act & Assert @@ -57586,7 +58771,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetColor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} obj.Color = nil // Act & Assert @@ -57595,7 +58780,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetColor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -57608,7 +58793,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetOpacity", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} var expected float64 obj.Opacity = expected @@ -57618,7 +58803,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetOpacity_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -57631,7 +58816,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetStrokeWidth", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} var expected float64 obj.StrokeWidth = expected @@ -57641,7 +58826,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetStrokeWidth_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -57654,8 +58839,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetBorderStyle", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var expected DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var expected DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle obj.BorderStyle = expected // Act & Assert @@ -57664,7 +58849,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetBorderStyle_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -57677,7 +58862,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetDashArray", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} var expected []float64 obj.DashArray = expected @@ -57688,7 +58873,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetDashArray_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} obj.DashArray = nil // Act & Assert @@ -57697,7 +58882,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetDashArray_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -57710,8 +58895,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetInteriorColor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor obj.InteriorColor = expected // Act & Assert @@ -57721,7 +58906,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetInteriorColor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} obj.InteriorColor = nil // Act & Assert @@ -57730,7 +58915,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetInteriorColor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -57743,8 +58928,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetVertices", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var expected []*DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var expected []*DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem obj.Vertices = expected // Act & Assert @@ -57754,7 +58939,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetVertices_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} obj.Vertices = nil // Act & Assert @@ -57763,7 +58948,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetVertices_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -57776,7 +58961,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetRotation", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} var expected *float64 obj.Rotation = expected @@ -57787,7 +58972,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetRotation_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} obj.Rotation = nil // Act & Assert @@ -57796,7 +58981,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. t.Run("GetRotation_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -57806,50 +58991,50 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing. _ = obj.GetRotation() // Should return zero value }) - t.Run("GetLineEndings", func(t *testing.T) { + t.Run("GetCloudyIntensity", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings - obj.LineEndings = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var expected *float64 + obj.CloudyIntensity = expected // Act & Assert - assert.Equal(t, expected, obj.GetLineEndings(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCloudyIntensity(), "getter should return the property value") }) - t.Run("GetLineEndings_NilValue", func(t *testing.T) { + t.Run("GetCloudyIntensity_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - obj.LineEndings = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + obj.CloudyIntensity = nil // Act & Assert - assert.Nil(t, obj.GetLineEndings(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCloudyIntensity(), "getter should return nil when property is nil") }) - t.Run("GetLineEndings_NilReceiver", func(t *testing.T) { + t.Run("GetCloudyIntensity_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLineEndings() // Should return zero value + _ = obj.GetCloudyIntensity() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing.T) { - t.Run("SetRef_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygon(t *testing.T) { + t.Run("SetIntent_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemPolylineRef + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueIntent *DocAnnotationsList200ResponseAnnotationsItemPolygonIntent // Act - obj.SetRef(fernTestValueRef) + obj.SetIntent(fernTestValueIntent) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -57873,14 +59058,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetMeasure_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueMeasure *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasure // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetMeasure(fernTestValueMeasure) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -57904,14 +59089,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("SetCaption_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueIndex int + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueCaption *DocAnnotationsList200ResponseAnnotationsItemPolygonCaption // Act - obj.SetIndex(fernTestValueIndex) + obj.SetCaption(fernTestValueCaption) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -57935,14 +59120,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQuality + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemPolygonRef // Act - obj.SetIdentityQuality(fernTestValueIdentityQuality) + obj.SetRef(fernTestValueRef) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -57966,14 +59151,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueNm *string + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValuePageObjectNumber int // Act - obj.SetNm(fernTestValueNm) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -57997,14 +59182,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFlags_MarksExplicit", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueIndex int // Act - obj.SetFlags(fernTestValueFlags) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -58028,14 +59213,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRect_MarksExplicit", func(t *testing.T) { + t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemPolylineRect + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQuality // Act - obj.SetRect(fernTestValueRect) + obj.SetIdentityQuality(fernTestValueIdentityQuality) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -58059,14 +59244,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetContents_MarksExplicit", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueContents *string + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueNm *string // Act - obj.SetContents(fernTestValueContents) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -58090,14 +59275,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetSubject_MarksExplicit", func(t *testing.T) { + t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueSubject *string + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags // Act - obj.SetSubject(fernTestValueSubject) + obj.SetFlags(fernTestValueFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -58121,14 +59306,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { + t.Run("SetRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueAuthor *string + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemPolygonRect // Act - obj.SetAuthor(fernTestValueAuthor) + obj.SetRect(fernTestValueRect) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -58152,14 +59337,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreated_MarksExplicit", func(t *testing.T) { + t.Run("SetContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueCreated *time.Time + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueContents *string // Act - obj.SetCreated(fernTestValueCreated) + obj.SetContents(fernTestValueContents) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -58183,14 +59368,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetModified_MarksExplicit", func(t *testing.T) { + t.Run("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueModified *time.Time + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueSubject *string // Act - obj.SetModified(fernTestValueModified) + obj.SetSubject(fernTestValueSubject) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -58214,14 +59399,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { + t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueAuthor *string // Act - obj.SetBlendMode(fernTestValueBlendMode) + obj.SetAuthor(fernTestValueAuthor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -58245,14 +59430,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { + t.Run("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueCreated *time.Time // Act - obj.SetInReplyTo(fernTestValueInReplyTo) + obj.SetCreated(fernTestValueCreated) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -58276,14 +59461,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { + t.Run("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemPolylineReplyType + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueModified *time.Time // Act - obj.SetReplyType(fernTestValueReplyType) + obj.SetModified(fernTestValueModified) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -58307,14 +59492,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUserID_MarksExplicit", func(t *testing.T) { + t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueUserID *string + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemPolygonBlendMode // Act - obj.SetUserID(fernTestValueUserID) + obj.SetBlendMode(fernTestValueBlendMode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -58338,14 +59523,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { + t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueGroupID *string + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo // Act - obj.SetGroupID(fernTestValueGroupID) + obj.SetInReplyTo(fernTestValueInReplyTo) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -58369,14 +59554,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueCreatedBy *string + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemPolygonReplyType // Act - obj.SetCreatedBy(fernTestValueCreatedBy) + obj.SetReplyType(fernTestValueReplyType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -58400,14 +59585,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueUpdatedBy *string + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueUserID *string // Act - obj.SetUpdatedBy(fernTestValueUpdatedBy) + obj.SetUserID(fernTestValueUserID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -58431,14 +59616,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueActions *PdfAnnotationActions + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueGroupID *string // Act - obj.SetActions(fernTestValueActions) + obj.SetGroupID(fernTestValueGroupID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -58462,14 +59647,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetColor_MarksExplicit", func(t *testing.T) { + t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemPolylineColor + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueCreatedBy *string // Act - obj.SetColor(fernTestValueColor) + obj.SetCreatedBy(fernTestValueCreatedBy) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -58493,14 +59678,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { + t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueOpacity float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueUpdatedBy *string // Act - obj.SetOpacity(fernTestValueOpacity) + obj.SetUpdatedBy(fernTestValueUpdatedBy) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -58524,14 +59709,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetStrokeWidth_MarksExplicit", func(t *testing.T) { + t.Run("SetActions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueStrokeWidth float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueActions *PdfAnnotationActions // Act - obj.SetStrokeWidth(fernTestValueStrokeWidth) + obj.SetActions(fernTestValueActions) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -58555,14 +59740,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBorderStyle_MarksExplicit", func(t *testing.T) { + t.Run("SetColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueBorderStyle DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemPolygonColor // Act - obj.SetBorderStyle(fernTestValueBorderStyle) + obj.SetColor(fernTestValueColor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -58586,14 +59771,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDashArray_MarksExplicit", func(t *testing.T) { + t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueDashArray []float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueOpacity float64 // Act - obj.SetDashArray(fernTestValueDashArray) + obj.SetOpacity(fernTestValueOpacity) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -58617,14 +59802,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInteriorColor_MarksExplicit", func(t *testing.T) { + t.Run("SetStrokeWidth_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueInteriorColor *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueStrokeWidth float64 // Act - obj.SetInteriorColor(fernTestValueInteriorColor) + obj.SetStrokeWidth(fernTestValueStrokeWidth) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -58648,14 +59833,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetVertices_MarksExplicit", func(t *testing.T) { + t.Run("SetBorderStyle_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueVertices []*DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueBorderStyle DocAnnotationsList200ResponseAnnotationsItemPolygonBorderStyle // Act - obj.SetVertices(fernTestValueVertices) + obj.SetBorderStyle(fernTestValueBorderStyle) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -58679,14 +59864,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRotation_MarksExplicit", func(t *testing.T) { + t.Run("SetDashArray_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueRotation *float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueDashArray []float64 // Act - obj.SetRotation(fernTestValueRotation) + obj.SetDashArray(fernTestValueDashArray) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -58710,14 +59895,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLineEndings_MarksExplicit", func(t *testing.T) { + t.Run("SetInteriorColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} - var fernTestValueLineEndings *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueInteriorColor *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor // Act - obj.SetLineEndings(fernTestValueLineEndings) + obj.SetInteriorColor(fernTestValueInteriorColor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -58741,116 +59926,485 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineColor(t *testing.T) { - t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineColor{} - var fernTestValueR int - obj.SetR(fernTestValueR) - assert.Equal(t, fernTestValueR, obj.R) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineColor{} - var fernTestValueG int - obj.SetG(fernTestValueG) - assert.Equal(t, fernTestValueG, obj.G) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineColor{} - var fernTestValueB int - obj.SetB(fernTestValueB) - assert.Equal(t, fernTestValueB, obj.B) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineColor(t *testing.T) { - t.Run("GetR", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineColor{} - var expected int - obj.R = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetR(), "getter should return the property value") - }) - - t.Run("GetR_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetR() // Should return zero value - }) - - t.Run("GetG", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineColor{} - var expected int - obj.G = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetG(), "getter should return the property value") - }) - - t.Run("GetG_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetG() // Should return zero value - }) - - t.Run("GetB", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineColor{} - var expected int - obj.B = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetB(), "getter should return the property value") - }) - - t.Run("GetB_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetB() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineColor(t *testing.T) { - t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Run("SetVertices_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineColor{} - var fernTestValueR int + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueVertices []*DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem // Act - obj.SetR(fernTestValueR) + obj.SetVertices(fernTestValueVertices) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRotation_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueRotation *float64 + + // Act + obj.SetRotation(fernTestValueRotation) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCloudyIntensity_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygon{} + var fernTestValueCloudyIntensity *float64 + + // Act + obj.SetCloudyIntensity(fernTestValueCloudyIntensity) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonCaption(t *testing.T) { + t.Run("SetEnabled", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonCaption{} + var fernTestValueEnabled bool + obj.SetEnabled(fernTestValueEnabled) + assert.Equal(t, fernTestValueEnabled, obj.Enabled) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCenter", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonCaption{} + var fernTestValueCenter *DocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter + obj.SetCenter(fernTestValueCenter) + assert.Equal(t, fernTestValueCenter, obj.Center) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonCaption(t *testing.T) { + t.Run("GetEnabled", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonCaption{} + var expected bool + obj.Enabled = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetEnabled(), "getter should return the property value") + }) + + t.Run("GetEnabled_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonCaption + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetEnabled() // Should return zero value + }) + + t.Run("GetCenter", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonCaption{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter + obj.Center = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCenter(), "getter should return the property value") + }) + + t.Run("GetCenter_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonCaption{} + obj.Center = nil + + // Act & Assert + assert.Nil(t, obj.GetCenter(), "getter should return nil when property is nil") + }) + + t.Run("GetCenter_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonCaption + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCenter() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonCaption(t *testing.T) { + t.Run("SetEnabled_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonCaption{} + var fernTestValueEnabled bool + + // Act + obj.SetEnabled(fernTestValueEnabled) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCenter_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonCaption{} + var fernTestValueCenter *DocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter + + // Act + obj.SetCenter(fernTestValueCenter) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter(t *testing.T) { + t.Run("GetX", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter{} + var expected float64 + obj.X = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter{} + var expected float64 + obj.Y = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + }) + + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter{} + var fernTestValueX float64 + + // Act + obj.SetX(fernTestValueX) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter{} + var fernTestValueY float64 + + // Act + obj.SetY(fernTestValueY) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonColor(t *testing.T) { + t.Run("SetR", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonColor{} + var fernTestValueR int + obj.SetR(fernTestValueR) + assert.Equal(t, fernTestValueR, obj.R) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetG", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonColor{} + var fernTestValueG int + obj.SetG(fernTestValueG) + assert.Equal(t, fernTestValueG, obj.G) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetB", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonColor{} + var expected int + obj.R = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") + }) + + t.Run("GetR_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetR() // Should return zero value + }) + + t.Run("GetG", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonColor{} + var expected int + obj.G = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") + }) + + t.Run("GetG_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetG() // Should return zero value + }) + + t.Run("GetB", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonColor{} + var expected int + obj.B = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + }) + + t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetB() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonColor{} + var fernTestValueR int + + // Act + obj.SetR(fernTestValueR) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -58877,7 +60431,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineColor{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonColor{} var fernTestValueG int // Act @@ -58908,7 +60462,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline t.Run("SetB_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineColor{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonColor{} var fernTestValueB int // Act @@ -58938,9 +60492,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *testing.T) { t.Run("SetInvisible", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} var fernTestValueInvisible bool obj.SetInvisible(fernTestValueInvisible) assert.Equal(t, fernTestValueInvisible, obj.Invisible) @@ -58948,7 +60502,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *tes }) t.Run("SetHidden", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} var fernTestValueHidden bool obj.SetHidden(fernTestValueHidden) assert.Equal(t, fernTestValueHidden, obj.Hidden) @@ -58956,7 +60510,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *tes }) t.Run("SetPrint", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} var fernTestValuePrint bool obj.SetPrint(fernTestValuePrint) assert.Equal(t, fernTestValuePrint, obj.Print) @@ -58964,7 +60518,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *tes }) t.Run("SetNoZoom", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} var fernTestValueNoZoom bool obj.SetNoZoom(fernTestValueNoZoom) assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) @@ -58972,7 +60526,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *tes }) t.Run("SetNoRotate", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} var fernTestValueNoRotate bool obj.SetNoRotate(fernTestValueNoRotate) assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) @@ -58980,7 +60534,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *tes }) t.Run("SetNoView", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} var fernTestValueNoView bool obj.SetNoView(fernTestValueNoView) assert.Equal(t, fernTestValueNoView, obj.NoView) @@ -58988,7 +60542,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *tes }) t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} var fernTestValueReadOnly bool obj.SetReadOnly(fernTestValueReadOnly) assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) @@ -58996,7 +60550,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *tes }) t.Run("SetLocked", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} var fernTestValueLocked bool obj.SetLocked(fernTestValueLocked) assert.Equal(t, fernTestValueLocked, obj.Locked) @@ -59004,7 +60558,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *tes }) t.Run("SetToggleNoView", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} var fernTestValueToggleNoView bool obj.SetToggleNoView(fernTestValueToggleNoView) assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) @@ -59012,7 +60566,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *tes }) t.Run("SetLockedContents", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} var fernTestValueLockedContents bool obj.SetLockedContents(fernTestValueLockedContents) assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) @@ -59021,11 +60575,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *tes } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *testing.T) { t.Run("GetInvisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} var expected bool obj.Invisible = expected @@ -59035,7 +60589,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *tes t.Run("GetInvisible_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -59048,7 +60602,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *tes t.Run("GetHidden", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} var expected bool obj.Hidden = expected @@ -59058,7 +60612,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *tes t.Run("GetHidden_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -59071,7 +60625,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *tes t.Run("GetPrint", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} var expected bool obj.Print = expected @@ -59081,7 +60635,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *tes t.Run("GetPrint_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -59094,7 +60648,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *tes t.Run("GetNoZoom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} var expected bool obj.NoZoom = expected @@ -59104,7 +60658,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *tes t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -59117,7 +60671,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *tes t.Run("GetNoRotate", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} var expected bool obj.NoRotate = expected @@ -59127,7 +60681,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *tes t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -59140,7 +60694,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *tes t.Run("GetNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} var expected bool obj.NoView = expected @@ -59150,7 +60704,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *tes t.Run("GetNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -59163,7 +60717,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *tes t.Run("GetReadOnly", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} var expected bool obj.ReadOnly = expected @@ -59173,7 +60727,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *tes t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -59186,7 +60740,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *tes t.Run("GetLocked", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} var expected bool obj.Locked = expected @@ -59196,7 +60750,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *tes t.Run("GetLocked_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -59209,7 +60763,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *tes t.Run("GetToggleNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} var expected bool obj.ToggleNoView = expected @@ -59219,7 +60773,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *tes t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -59232,7 +60786,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *tes t.Run("GetLockedContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} var expected bool obj.LockedContents = expected @@ -59242,7 +60796,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *tes t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -59254,11 +60808,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *tes } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonFlags(t *testing.T) { t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} var fernTestValueInvisible bool // Act @@ -59289,7 +60843,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline t.Run("SetHidden_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} var fernTestValueHidden bool // Act @@ -59320,7 +60874,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline t.Run("SetPrint_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} var fernTestValuePrint bool // Act @@ -59351,7 +60905,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} var fernTestValueNoZoom bool // Act @@ -59382,7 +60936,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} var fernTestValueNoRotate bool // Act @@ -59413,7 +60967,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline t.Run("SetNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} var fernTestValueNoView bool // Act @@ -59444,7 +60998,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} var fernTestValueReadOnly bool // Act @@ -59475,7 +61029,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline t.Run("SetLocked_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} var fernTestValueLocked bool // Act @@ -59506,7 +61060,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} var fernTestValueToggleNoView bool // Act @@ -59537,7 +61091,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonFlags{} var fernTestValueLockedContents bool // Act @@ -59567,11 +61121,11 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo{} var expected string obj.Kind = expected @@ -59581,7 +61135,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo(t t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -59594,8 +61148,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo(t t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -59605,7 +61159,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo(t t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo{} obj.ObjectNumber = nil // Act & Assert @@ -59614,7 +61168,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo(t t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -59627,8 +61181,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo(t t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm obj.Nm = expected // Act & Assert @@ -59638,7 +61192,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo(t t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo{} obj.Nm = nil // Act & Assert @@ -59647,7 +61201,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo(t t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -59660,8 +61214,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo(t t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex obj.Index = expected // Act & Assert @@ -59671,7 +61225,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo(t t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo{} obj.Index = nil // Act & Assert @@ -59680,7 +61234,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo(t t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -59692,9 +61246,9 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo(t } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -59702,7 +61256,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToInd }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -59710,8 +61264,8 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToInd }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -59719,11 +61273,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToInd } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex{} var expected int obj.PageObjectNumber = expected @@ -59733,7 +61287,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToInd t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -59746,7 +61300,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToInd t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex{} var expected int obj.Index = expected @@ -59756,7 +61310,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToInd t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -59769,8 +61323,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToInd t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex{} - var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision obj.Revision = expected // Act & Assert @@ -59780,7 +61334,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToInd t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex{} obj.Revision = nil // Act & Assert @@ -59789,7 +61343,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToInd t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -59801,11 +61355,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToInd } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex{} var fernTestValuePageObjectNumber int // Act @@ -59836,7 +61390,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex{} var fernTestValueIndex int // Act @@ -59867,8 +61421,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -59897,9 +61451,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -59907,7 +61461,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToInd }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -59915,7 +61469,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToInd }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -59924,11 +61478,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToInd } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision{} var expected string obj.DocSessionID = expected @@ -59938,7 +61492,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToInd t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -59951,7 +61505,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToInd t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -59961,7 +61515,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToInd t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -59974,7 +61528,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToInd t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision{} var expected int obj.Generation = expected @@ -59984,7 +61538,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToInd t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -59996,11 +61550,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToInd } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision{} var fernTestValueDocSessionID string // Act @@ -60031,7 +61585,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -60062,7 +61616,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToIndexRevision{} var fernTestValueGeneration int // Act @@ -60092,9 +61646,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -60102,7 +61656,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm( }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm{} var fernTestValueNm string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -60111,11 +61665,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm( } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm{} var expected int obj.PageObjectNumber = expected @@ -60125,7 +61679,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm( t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -60138,7 +61692,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm( t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm{} var expected string obj.Nm = expected @@ -60148,7 +61702,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm( t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -60160,11 +61714,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm( } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm{} var fernTestValuePageObjectNumber int // Act @@ -60195,7 +61749,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToNm{} var fernTestValueNm string // Act @@ -60225,9 +61779,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -60235,7 +61789,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObj }) t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber{} var fernTestValueAnnotObjectNumber int obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) @@ -60244,11 +61798,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObj } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber{} var expected int obj.PageObjectNumber = expected @@ -60258,7 +61812,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObj t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -60271,7 +61825,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObj t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber{} var expected int obj.AnnotObjectNumber = expected @@ -60281,7 +61835,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObj t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -60293,11 +61847,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObj } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber{} var fernTestValuePageObjectNumber int // Act @@ -60328,7 +61882,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInReplyToObjectNumber{} var fernTestValueAnnotObjectNumber int // Act @@ -60358,9 +61912,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor(t *testing.T) { t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor{} var fernTestValueR int obj.SetR(fernTestValueR) assert.Equal(t, fernTestValueR, obj.R) @@ -60368,7 +61922,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColo }) t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor{} var fernTestValueG int obj.SetG(fernTestValueG) assert.Equal(t, fernTestValueG, obj.G) @@ -60376,7 +61930,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColo }) t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor{} var fernTestValueB int obj.SetB(fernTestValueB) assert.Equal(t, fernTestValueB, obj.B) @@ -60385,11 +61939,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColo } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor(t *testing.T) { t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor{} var expected int obj.R = expected @@ -60399,7 +61953,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColo t.Run("GetR_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -60412,7 +61966,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColo t.Run("GetG", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor{} var expected int obj.G = expected @@ -60422,7 +61976,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColo t.Run("GetG_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -60435,7 +61989,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColo t.Run("GetB", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor{} var expected int obj.B = expected @@ -60445,7 +61999,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColo t.Run("GetB_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -60457,11 +62011,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColo } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor(t *testing.T) { t.Run("SetR_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor{} var fernTestValueR int // Act @@ -60492,7 +62046,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor{} var fernTestValueG int // Act @@ -60523,7 +62077,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline t.Run("SetB_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor{} var fernTestValueB int // Act @@ -60553,278 +62107,515 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings(t *testing.T) { - t.Run("SetStart", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings{} - var fernTestValueStart DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart - obj.SetStart(fernTestValueStart) - assert.Equal(t, fernTestValueStart, obj.Start) - assert.NotNil(t, obj.explicitFields) +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonMeasure(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasure{} + var expected string + obj.Subtype = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("SetEnd", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings{} - var fernTestValueEnd DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd - obj.SetEnd(fernTestValueEnd) - assert.Equal(t, fernTestValueEnd, obj.End) - assert.NotNil(t, obj.explicitFields) + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasure + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSubtype() // Should return zero value }) -} + t.Run("GetRl", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasure{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl + obj.Rl = expected -func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings(t *testing.T) { - t.Run("GetStart", func(t *testing.T) { + // Act & Assert + assert.Equal(t, expected, obj.GetRl(), "getter should return the property value") + }) + + t.Run("GetRl_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings{} - var expected DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart - obj.Start = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasure{} + obj.Rl = nil // Act & Assert - assert.Equal(t, expected, obj.GetStart(), "getter should return the property value") + assert.Nil(t, obj.GetRl(), "getter should return nil when property is nil") }) - t.Run("GetStart_NilReceiver", func(t *testing.T) { + t.Run("GetRl_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasure // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetStart() // Should return zero value + _ = obj.GetRl() // Should return zero value }) - t.Run("GetEnd", func(t *testing.T) { + t.Run("GetGeo", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings{} - var expected DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd - obj.End = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasure{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureGeo + obj.Geo = expected // Act & Assert - assert.Equal(t, expected, obj.GetEnd(), "getter should return the property value") + assert.Equal(t, expected, obj.GetGeo(), "getter should return the property value") }) - t.Run("GetEnd_NilReceiver", func(t *testing.T) { + t.Run("GetGeo_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasure{} + obj.Geo = nil + + // Act & Assert + assert.Nil(t, obj.GetGeo(), "getter should return nil when property is nil") + }) + + t.Run("GetGeo_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasure // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetEnd() // Should return zero value + _ = obj.GetGeo() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings(t *testing.T) { - t.Run("SetStart_MarksExplicit", func(t *testing.T) { + t.Run("GetUnknown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings{} - var fernTestValueStart DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart - - // Act - obj.SetStart(fernTestValueStart) + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasure{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureUnknown + obj.Unknown = expected - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + // Act & Assert + assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetUnknown_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasure{} + obj.Unknown = nil - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") }) - t.Run("SetEnd_MarksExplicit", func(t *testing.T) { + t.Run("GetUnknown_NilReceiver", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings{} - var fernTestValueEnd DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasure + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnknown() // Should return zero value + }) - // Act - obj.SetEnd(fernTestValueEnd) +} - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl(t *testing.T) { + t.Run("SetRatio", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + var fernTestValueRatio *string + obj.SetRatio(fernTestValueRatio) + assert.Equal(t, fernTestValueRatio, obj.Ratio) + assert.NotNil(t, obj.explicitFields) + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + var fernTestValueX []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + var fernTestValueY []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) }) -} + t.Run("SetDistance", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + var fernTestValueDistance []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem + obj.SetDistance(fernTestValueDistance) + assert.Equal(t, fernTestValueDistance, obj.Distance) + assert.NotNil(t, obj.explicitFields) + }) -func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineRect(t *testing.T) { - t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRect{} - var fernTestValueLeft float64 - obj.SetLeft(fernTestValueLeft) - assert.Equal(t, fernTestValueLeft, obj.Left) + t.Run("SetArea", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + var fernTestValueArea []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem + obj.SetArea(fernTestValueArea) + assert.Equal(t, fernTestValueArea, obj.Area) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRect{} - var fernTestValueBottom float64 - obj.SetBottom(fernTestValueBottom) - assert.Equal(t, fernTestValueBottom, obj.Bottom) + t.Run("SetAngle", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + var fernTestValueAngle []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem + obj.SetAngle(fernTestValueAngle) + assert.Equal(t, fernTestValueAngle, obj.Angle) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRect{} - var fernTestValueRight float64 - obj.SetRight(fernTestValueRight) - assert.Equal(t, fernTestValueRight, obj.Right) + t.Run("SetSlope", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + var fernTestValueSlope []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem + obj.SetSlope(fernTestValueSlope) + assert.Equal(t, fernTestValueSlope, obj.Slope) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRect{} - var fernTestValueTop float64 - obj.SetTop(fernTestValueTop) - assert.Equal(t, fernTestValueTop, obj.Top) + t.Run("SetOrigin", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + var fernTestValueOrigin *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin + obj.SetOrigin(fernTestValueOrigin) + assert.Equal(t, fernTestValueOrigin, obj.Origin) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCyx", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + var fernTestValueCyx *float64 + obj.SetCyx(fernTestValueCyx) + assert.Equal(t, fernTestValueCyx, obj.Cyx) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineRect(t *testing.T) { - t.Run("GetLeft", func(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl(t *testing.T) { + t.Run("GetRatio", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRect{} - var expected float64 - obj.Left = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + var expected *string + obj.Ratio = expected // Act & Assert - assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRatio(), "getter should return the property value") }) - t.Run("GetLeft_NilReceiver", func(t *testing.T) { + t.Run("GetRatio_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRect + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + obj.Ratio = nil + + // Act & Assert + assert.Nil(t, obj.GetRatio(), "getter should return nil when property is nil") + }) + + t.Run("GetRatio_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLeft() // Should return zero value + _ = obj.GetRatio() // Should return zero value }) - t.Run("GetBottom", func(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRect{} - var expected float64 - obj.Bottom = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + var expected []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem + obj.X = expected // Act & Assert - assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") }) - t.Run("GetBottom_NilReceiver", func(t *testing.T) { + t.Run("GetX_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRect + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + obj.X = nil + + // Act & Assert + assert.Nil(t, obj.GetX(), "getter should return nil when property is nil") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBottom() // Should return zero value + _ = obj.GetX() // Should return zero value }) - t.Run("GetRight", func(t *testing.T) { + t.Run("GetY", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRect{} - var expected float64 - obj.Right = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + var expected []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem + obj.Y = expected // Act & Assert - assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") }) - t.Run("GetRight_NilReceiver", func(t *testing.T) { + t.Run("GetY_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRect + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + obj.Y = nil + + // Act & Assert + assert.Nil(t, obj.GetY(), "getter should return nil when property is nil") + }) + + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRight() // Should return zero value + _ = obj.GetY() // Should return zero value }) - t.Run("GetTop", func(t *testing.T) { + t.Run("GetDistance", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRect{} - var expected float64 - obj.Top = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + var expected []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem + obj.Distance = expected // Act & Assert - assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDistance(), "getter should return the property value") }) - t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Run("GetDistance_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRect + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + obj.Distance = nil + + // Act & Assert + assert.Nil(t, obj.GetDistance(), "getter should return nil when property is nil") + }) + + t.Run("GetDistance_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTop() // Should return zero value + _ = obj.GetDistance() // Should return zero value + }) + + t.Run("GetArea", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + var expected []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem + obj.Area = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetArea(), "getter should return the property value") + }) + + t.Run("GetArea_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + obj.Area = nil + + // Act & Assert + assert.Nil(t, obj.GetArea(), "getter should return nil when property is nil") + }) + + t.Run("GetArea_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetArea() // Should return zero value + }) + + t.Run("GetAngle", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + var expected []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem + obj.Angle = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAngle(), "getter should return the property value") + }) + + t.Run("GetAngle_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + obj.Angle = nil + + // Act & Assert + assert.Nil(t, obj.GetAngle(), "getter should return nil when property is nil") + }) + + t.Run("GetAngle_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAngle() // Should return zero value + }) + + t.Run("GetSlope", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + var expected []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem + obj.Slope = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSlope(), "getter should return the property value") + }) + + t.Run("GetSlope_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + obj.Slope = nil + + // Act & Assert + assert.Nil(t, obj.GetSlope(), "getter should return nil when property is nil") + }) + + t.Run("GetSlope_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSlope() // Should return zero value + }) + + t.Run("GetOrigin", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin + obj.Origin = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetOrigin(), "getter should return the property value") + }) + + t.Run("GetOrigin_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + obj.Origin = nil + + // Act & Assert + assert.Nil(t, obj.GetOrigin(), "getter should return nil when property is nil") + }) + + t.Run("GetOrigin_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetOrigin() // Should return zero value + }) + + t.Run("GetCyx", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + var expected *float64 + obj.Cyx = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCyx(), "getter should return the property value") + }) + + t.Run("GetCyx_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + obj.Cyx = nil + + // Act & Assert + assert.Nil(t, obj.GetCyx(), "getter should return nil when property is nil") + }) + + t.Run("GetCyx_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCyx() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineRect(t *testing.T) { - t.Run("SetLeft_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl(t *testing.T) { + t.Run("SetRatio_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRect{} - var fernTestValueLeft float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + var fernTestValueRatio *string // Act - obj.SetLeft(fernTestValueLeft) + obj.SetRatio(fernTestValueRatio) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -60848,14 +62639,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRect{} - var fernTestValueBottom float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + var fernTestValueX []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem // Act - obj.SetBottom(fernTestValueBottom) + obj.SetX(fernTestValueX) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -60879,14 +62670,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRight_MarksExplicit", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRect{} - var fernTestValueRight float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + var fernTestValueY []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem // Act - obj.SetRight(fernTestValueRight) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -60910,14 +62701,169 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Run("SetDistance_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRect{} - var fernTestValueTop float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + var fernTestValueDistance []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem // Act - obj.SetTop(fernTestValueTop) + obj.SetDistance(fernTestValueDistance) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetArea_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + var fernTestValueArea []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem + + // Act + obj.SetArea(fernTestValueArea) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetAngle_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + var fernTestValueAngle []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem + + // Act + obj.SetAngle(fernTestValueAngle) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSlope_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + var fernTestValueSlope []*DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem + + // Act + obj.SetSlope(fernTestValueSlope) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetOrigin_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + var fernTestValueOrigin *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin + + // Act + obj.SetOrigin(fernTestValueOrigin) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCyx_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + var fernTestValueCyx *float64 + + // Act + obj.SetCyx(fernTestValueCyx) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -60943,249 +62889,421 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineRef(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRef{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} var expected string - obj.Kind = expected + obj.Unit = expected // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetUnit_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRef + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKind() // Should return zero value + _ = obj.GetUnit() // Should return zero value }) - t.Run("GetObjectNumber", func(t *testing.T) { + t.Run("GetConversion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber - obj.ObjectNumber = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + var expected *float64 + obj.Conversion = expected // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") }) - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Run("GetConversion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRef{} - obj.ObjectNumber = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + obj.Conversion = nil // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") }) - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetConversion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRef + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetObjectNumber() // Should return zero value + _ = obj.GetConversion() // Should return zero value }) - t.Run("GetNm", func(t *testing.T) { + t.Run("GetFraction", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm - obj.Nm = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFraction + obj.Fraction = expected // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") }) - t.Run("GetNm_NilValue", func(t *testing.T) { + t.Run("GetFraction_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRef{} - obj.Nm = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + obj.Fraction = nil // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetFraction_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRef + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetFraction() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetPrecision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex - obj.Index = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + var expected *int + obj.Precision = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") }) - t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Run("GetPrecision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRef{} - obj.Index = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + obj.Precision = nil // Act & Assert - assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRef + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetPrecision() // Should return zero value }) -} + t.Run("GetFixed", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + var expected *bool + obj.Fixed = expected -func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") }) - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) - assert.NotNil(t, obj.explicitFields) + t.Run("GetFixed_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + obj.Fixed = nil + + // Act & Assert + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") }) - t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) - assert.NotNil(t, obj.explicitFields) + t.Run("GetFixed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFixed() // Should return zero value }) -} + t.Run("GetThousands", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + var expected *string + obj.Thousands = expected -func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + // Act & Assert + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") + }) + + t.Run("GetThousands_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + obj.Thousands = nil // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetThousands_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetThousands() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetDecimal", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex{} - var expected int - obj.Index = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + var expected *string + obj.Decimal = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetDecimal_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + obj.Decimal = nil + + // Act & Assert + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") + }) + + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetDecimal() // Should return zero value }) - t.Run("GetRevision", func(t *testing.T) { + t.Run("GetPrefixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex{} - var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision - obj.Revision = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + var expected *string + obj.PrefixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") }) - t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex{} - obj.Revision = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + obj.PrefixSpacing = nil // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRevision() // Should return zero value + _ = obj.GetPrefixSpacing() // Should return zero value + }) + + t.Run("GetSuffixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + var expected *string + obj.SuffixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") + }) + + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + obj.SuffixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSuffixSpacing() // Should return zero value + }) + + t.Run("GetLabelPosition", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemLabelPosition + obj.LabelPosition = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") + }) + + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + obj.LabelPosition = nil + + // Act & Assert + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") + }) + + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLabelPosition() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValueUnit string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetUnit(fernTestValueUnit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -61209,14 +63327,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex{} - var fernTestValueIndex int + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValueConversion *float64 // Act - obj.SetIndex(fernTestValueIndex) + obj.SetConversion(fernTestValueConversion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -61240,14 +63358,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFraction // Act - obj.SetRevision(fernTestValueRevision) + obj.SetFraction(fernTestValueFraction) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -61271,116 +63389,45 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision{} - var fernTestValueDocSessionID string - obj.SetDocSessionID(fernTestValueDocSessionID) - assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision{} - var expected string - obj.DocSessionID = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") - }) - - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetDocSessionID() // Should return zero value - }) - - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValuePrecision *int - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) + // Act + obj.SetPrecision(fernTestValuePrecision) - t.Run("GetGeneration", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision{} - var expected int - obj.Generation = expected + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetGeneration() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision{} - var fernTestValueDocSessionID string + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValueFixed *bool // Act - obj.SetDocSessionID(fernTestValueDocSessionID) + obj.SetFixed(fernTestValueFixed) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -61404,14 +63451,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValueThousands *string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetThousands(fernTestValueThousands) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -61435,14 +63482,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision{} - var fernTestValueGeneration int + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValueDecimal *string // Act - obj.SetGeneration(fernTestValueGeneration) + obj.SetDecimal(fernTestValueDecimal) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -61466,85 +63513,45 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineRefNm(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm{} - var fernTestValueNm string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineRefNm(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValuePrefixSpacing *string - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) + // Act + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm{} - var expected string - obj.Nm = expected + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetNm_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNm() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineRefNm(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValueSuffixSpacing *string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -61568,14 +63575,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm{} - var fernTestValueNm string + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemLabelPosition // Act - obj.SetNm(fernTestValueNm) + obj.SetLabelPosition(fernTestValueLabelPosition) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -61601,1427 +63608,1202 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) assert.NotNil(t, obj.explicitFields) }) -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetAnnotObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAnnotObjectNumber() // Should return zero value + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber{} - var fernTestValuePageObjectNumber int - - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) }) - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber{} - var fernTestValueAnnotObjectNumber int - - // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem(t *testing.T) { - t.Run("GetX", func(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem{} - var expected float64 - obj.X = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + var expected string + obj.Unit = expected // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") }) - t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Run("GetUnit_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetX() // Should return zero value + _ = obj.GetUnit() // Should return zero value }) - t.Run("GetY", func(t *testing.T) { + t.Run("GetConversion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem{} - var expected float64 - obj.Y = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + var expected *float64 + obj.Conversion = expected // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") }) - t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Run("GetConversion_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + obj.Conversion = nil + + // Act & Assert + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") + }) + + t.Run("GetConversion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetY() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem{} - var fernTestValueX float64 - - // Act - obj.SetX(fernTestValueX) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetY_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem{} - var fernTestValueY float64 - - // Act - obj.SetY(fernTestValueY) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedact(t *testing.T) { - t.Run("SetRef", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemRedactRef - obj.SetRef(fernTestValueRef) - assert.Equal(t, fernTestValueRef, obj.Ref) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIdentityQuality", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQuality - obj.SetIdentityQuality(fernTestValueIdentityQuality) - assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueNm *string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetFlags", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemRedactFlags - obj.SetFlags(fernTestValueFlags) - assert.Equal(t, fernTestValueFlags, obj.Flags) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRect", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemRedactRect - obj.SetRect(fernTestValueRect) - assert.Equal(t, fernTestValueRect, obj.Rect) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetContents", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueContents *string - obj.SetContents(fernTestValueContents) - assert.Equal(t, fernTestValueContents, obj.Contents) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetSubject", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueSubject *string - obj.SetSubject(fernTestValueSubject) - assert.Equal(t, fernTestValueSubject, obj.Subject) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAuthor", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueAuthor *string - obj.SetAuthor(fernTestValueAuthor) - assert.Equal(t, fernTestValueAuthor, obj.Author) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCreated", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueCreated *time.Time - obj.SetCreated(fernTestValueCreated) - assert.Equal(t, fernTestValueCreated, obj.Created) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetModified", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueModified *time.Time - obj.SetModified(fernTestValueModified) - assert.Equal(t, fernTestValueModified, obj.Modified) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetBlendMode", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode - obj.SetBlendMode(fernTestValueBlendMode) - assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetInReplyTo", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo - obj.SetInReplyTo(fernTestValueInReplyTo) - assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetReplyType", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemRedactReplyType - obj.SetReplyType(fernTestValueReplyType) - assert.Equal(t, fernTestValueReplyType, obj.ReplyType) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetUserID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueUserID *string - obj.SetUserID(fernTestValueUserID) - assert.Equal(t, fernTestValueUserID, obj.UserID) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetGroupID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueGroupID *string - obj.SetGroupID(fernTestValueGroupID) - assert.Equal(t, fernTestValueGroupID, obj.GroupID) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCreatedBy", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueCreatedBy *string - obj.SetCreatedBy(fernTestValueCreatedBy) - assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetUpdatedBy", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueUpdatedBy *string - obj.SetUpdatedBy(fernTestValueUpdatedBy) - assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetActions", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueActions *PdfAnnotationActions - obj.SetActions(fernTestValueActions) - assert.Equal(t, fernTestValueActions, obj.Actions) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetQuadPoints", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueQuadPoints []*DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem - obj.SetQuadPoints(fernTestValueQuadPoints) - assert.Equal(t, fernTestValueQuadPoints, obj.QuadPoints) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetColor", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemRedactColor - obj.SetColor(fernTestValueColor) - assert.Equal(t, fernTestValueColor, obj.Color) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetOpacity", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueOpacity float64 - obj.SetOpacity(fernTestValueOpacity) - assert.Equal(t, fernTestValueOpacity, obj.Opacity) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetInteriorColor", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueInteriorColor *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor - obj.SetInteriorColor(fernTestValueInteriorColor) - assert.Equal(t, fernTestValueInteriorColor, obj.InteriorColor) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetOverlayText", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueOverlayText *string - obj.SetOverlayText(fernTestValueOverlayText) - assert.Equal(t, fernTestValueOverlayText, obj.OverlayText) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRepeat", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueRepeat bool - obj.SetRepeat(fernTestValueRepeat) - assert.Equal(t, fernTestValueRepeat, obj.Repeat) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetFontFamily", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueFontFamily DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily - obj.SetFontFamily(fernTestValueFontFamily) - assert.Equal(t, fernTestValueFontFamily, obj.FontFamily) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetFontSize", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueFontSize float64 - obj.SetFontSize(fernTestValueFontSize) - assert.Equal(t, fernTestValueFontSize, obj.FontSize) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetFontColor", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueFontColor *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor - obj.SetFontColor(fernTestValueFontColor) - assert.Equal(t, fernTestValueFontColor, obj.FontColor) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetTextAlign", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueTextAlign DocAnnotationsList200ResponseAnnotationsItemRedactTextAlign - obj.SetTextAlign(fernTestValueTextAlign) - assert.Equal(t, fernTestValueTextAlign, obj.TextAlign) - assert.NotNil(t, obj.explicitFields) + _ = obj.GetConversion() // Should return zero value }) -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedact(t *testing.T) { - t.Run("GetRef", func(t *testing.T) { + t.Run("GetFraction", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var expected *DocAnnotationsList200ResponseAnnotationsItemRedactRef - obj.Ref = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFraction + obj.Fraction = expected // Act & Assert - assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") }) - t.Run("GetRef_NilValue", func(t *testing.T) { + t.Run("GetFraction_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - obj.Ref = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + obj.Fraction = nil // Act & Assert - assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") }) - t.Run("GetRef_NilReceiver", func(t *testing.T) { + t.Run("GetFraction_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRef() // Should return zero value + _ = obj.GetFraction() // Should return zero value }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetPrecision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + var expected *int + obj.Precision = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedact - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetPrecision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var expected int - obj.Index = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + obj.Precision = nil // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetPrecision() // Should return zero value }) - t.Run("GetIdentityQuality", func(t *testing.T) { + t.Run("GetFixed", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var expected DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQuality - obj.IdentityQuality = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + var expected *bool + obj.Fixed = expected // Act & Assert - assert.Equal(t, expected, obj.GetIdentityQuality(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") }) - t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { + t.Run("GetFixed_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + obj.Fixed = nil + + // Act & Assert + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") + }) + + t.Run("GetFixed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIdentityQuality() // Should return zero value + _ = obj.GetFixed() // Should return zero value }) - t.Run("GetNm", func(t *testing.T) { + t.Run("GetThousands", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} var expected *string - obj.Nm = expected + obj.Thousands = expected // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") }) - t.Run("GetNm_NilValue", func(t *testing.T) { + t.Run("GetThousands_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - obj.Nm = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + obj.Thousands = nil // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetThousands_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetThousands() // Should return zero value }) - t.Run("GetFlags", func(t *testing.T) { + t.Run("GetDecimal", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var expected *DocAnnotationsList200ResponseAnnotationsItemRedactFlags - obj.Flags = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + var expected *string + obj.Decimal = expected // Act & Assert - assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") }) - t.Run("GetFlags_NilValue", func(t *testing.T) { + t.Run("GetDecimal_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - obj.Flags = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + obj.Decimal = nil // Act & Assert - assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") }) - t.Run("GetFlags_NilReceiver", func(t *testing.T) { + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFlags() // Should return zero value + _ = obj.GetDecimal() // Should return zero value }) - t.Run("GetRect", func(t *testing.T) { + t.Run("GetPrefixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var expected *DocAnnotationsList200ResponseAnnotationsItemRedactRect - obj.Rect = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + var expected *string + obj.PrefixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetRect(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") }) - t.Run("GetRect_NilValue", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - obj.Rect = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + obj.PrefixSpacing = nil // Act & Assert - assert.Nil(t, obj.GetRect(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetRect_NilReceiver", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRect() // Should return zero value + _ = obj.GetPrefixSpacing() // Should return zero value }) - t.Run("GetContents", func(t *testing.T) { + t.Run("GetSuffixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} var expected *string - obj.Contents = expected + obj.SuffixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetContents(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") }) - t.Run("GetContents_NilValue", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - obj.Contents = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + obj.SuffixSpacing = nil // Act & Assert - assert.Nil(t, obj.GetContents(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetContents_NilReceiver", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetContents() // Should return zero value + _ = obj.GetSuffixSpacing() // Should return zero value }) - t.Run("GetSubject", func(t *testing.T) { + t.Run("GetLabelPosition", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var expected *string - obj.Subject = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemLabelPosition + obj.LabelPosition = expected // Act & Assert - assert.Equal(t, expected, obj.GetSubject(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") }) - t.Run("GetSubject_NilValue", func(t *testing.T) { + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - obj.Subject = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + obj.LabelPosition = nil // Act & Assert - assert.Nil(t, obj.GetSubject(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") }) - t.Run("GetSubject_NilReceiver", func(t *testing.T) { + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetSubject() // Should return zero value + _ = obj.GetLabelPosition() // Should return zero value }) - t.Run("GetAuthor", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var expected *string - obj.Author = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValueUnit string - // Act & Assert - assert.Equal(t, expected, obj.GetAuthor(), "getter should return the property value") + // Act + obj.SetUnit(fernTestValueUnit) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetAuthor_NilValue", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - obj.Author = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValueConversion *float64 - // Act & Assert - assert.Nil(t, obj.GetAuthor(), "getter should return nil when property is nil") + // Act + obj.SetConversion(fernTestValueConversion) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetAuthor_NilReceiver", func(t *testing.T) { + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedact - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAuthor() // Should return zero value + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFraction + + // Act + obj.SetFraction(fernTestValueFraction) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetCreated", func(t *testing.T) { + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var expected *time.Time - obj.Created = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValuePrecision *int - // Act & Assert - assert.Equal(t, expected, obj.GetCreated(), "getter should return the property value") + // Act + obj.SetPrecision(fernTestValuePrecision) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetCreated_NilValue", func(t *testing.T) { + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - obj.Created = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValueFixed *bool - // Act & Assert - assert.Nil(t, obj.GetCreated(), "getter should return nil when property is nil") + // Act + obj.SetFixed(fernTestValueFixed) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetCreated_NilReceiver", func(t *testing.T) { + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedact - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetCreated() // Should return zero value + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValueThousands *string + + // Act + obj.SetThousands(fernTestValueThousands) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetModified", func(t *testing.T) { + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var expected *time.Time - obj.Modified = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValueDecimal *string - // Act & Assert - assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") + // Act + obj.SetDecimal(fernTestValueDecimal) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetModified_NilValue", func(t *testing.T) { + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - obj.Modified = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValuePrefixSpacing *string - // Act & Assert - assert.Nil(t, obj.GetModified(), "getter should return nil when property is nil") + // Act + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetModified_NilReceiver", func(t *testing.T) { + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedact - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetModified() // Should return zero value + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValueSuffixSpacing *string + + // Act + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetBlendMode", func(t *testing.T) { + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var expected DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode - obj.BlendMode = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemLabelPosition + + // Act + obj.SetLabelPosition(fernTestValueLabelPosition) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + var expected string + obj.Unit = expected // Act & Assert - assert.Equal(t, expected, obj.GetBlendMode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") }) - t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { + t.Run("GetUnit_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBlendMode() // Should return zero value + _ = obj.GetUnit() // Should return zero value }) - t.Run("GetInReplyTo", func(t *testing.T) { + t.Run("GetConversion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var expected *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo - obj.InReplyTo = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + var expected *float64 + obj.Conversion = expected // Act & Assert - assert.Equal(t, expected, obj.GetInReplyTo(), "getter should return the property value") + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") }) - t.Run("GetInReplyTo_NilValue", func(t *testing.T) { + t.Run("GetConversion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - obj.InReplyTo = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + obj.Conversion = nil // Act & Assert - assert.Nil(t, obj.GetInReplyTo(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") }) - t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { + t.Run("GetConversion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInReplyTo() // Should return zero value + _ = obj.GetConversion() // Should return zero value }) - t.Run("GetReplyType", func(t *testing.T) { + t.Run("GetFraction", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var expected *DocAnnotationsList200ResponseAnnotationsItemRedactReplyType - obj.ReplyType = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFraction + obj.Fraction = expected // Act & Assert - assert.Equal(t, expected, obj.GetReplyType(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") }) - t.Run("GetReplyType_NilValue", func(t *testing.T) { + t.Run("GetFraction_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - obj.ReplyType = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + obj.Fraction = nil // Act & Assert - assert.Nil(t, obj.GetReplyType(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") }) - t.Run("GetReplyType_NilReceiver", func(t *testing.T) { + t.Run("GetFraction_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReplyType() // Should return zero value + _ = obj.GetFraction() // Should return zero value }) - t.Run("GetUserID", func(t *testing.T) { + t.Run("GetPrecision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var expected *string - obj.UserID = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + var expected *int + obj.Precision = expected // Act & Assert - assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") }) - t.Run("GetUserID_NilValue", func(t *testing.T) { + t.Run("GetPrecision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - obj.UserID = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + obj.Precision = nil // Act & Assert - assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") }) - t.Run("GetUserID_NilReceiver", func(t *testing.T) { + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUserID() // Should return zero value + _ = obj.GetPrecision() // Should return zero value }) - t.Run("GetGroupID", func(t *testing.T) { + t.Run("GetFixed", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var expected *string - obj.GroupID = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + var expected *bool + obj.Fixed = expected // Act & Assert - assert.Equal(t, expected, obj.GetGroupID(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") }) - t.Run("GetGroupID_NilValue", func(t *testing.T) { + t.Run("GetFixed_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - obj.GroupID = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + obj.Fixed = nil // Act & Assert - assert.Nil(t, obj.GetGroupID(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") }) - t.Run("GetGroupID_NilReceiver", func(t *testing.T) { + t.Run("GetFixed_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGroupID() // Should return zero value + _ = obj.GetFixed() // Should return zero value }) - t.Run("GetCreatedBy", func(t *testing.T) { + t.Run("GetThousands", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} var expected *string - obj.CreatedBy = expected + obj.Thousands = expected // Act & Assert - assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") }) - t.Run("GetCreatedBy_NilValue", func(t *testing.T) { + t.Run("GetThousands_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - obj.CreatedBy = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + obj.Thousands = nil // Act & Assert - assert.Nil(t, obj.GetCreatedBy(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") }) - t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { + t.Run("GetThousands_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCreatedBy() // Should return zero value + _ = obj.GetThousands() // Should return zero value }) - t.Run("GetUpdatedBy", func(t *testing.T) { + t.Run("GetDecimal", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} var expected *string - obj.UpdatedBy = expected + obj.Decimal = expected // Act & Assert - assert.Equal(t, expected, obj.GetUpdatedBy(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") }) - t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { + t.Run("GetDecimal_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - obj.UpdatedBy = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + obj.Decimal = nil // Act & Assert - assert.Nil(t, obj.GetUpdatedBy(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") }) - t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUpdatedBy() // Should return zero value + _ = obj.GetDecimal() // Should return zero value }) - t.Run("GetActions", func(t *testing.T) { + t.Run("GetPrefixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var expected *PdfAnnotationActions - obj.Actions = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + var expected *string + obj.PrefixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") }) - t.Run("GetActions_NilValue", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - obj.Actions = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + obj.PrefixSpacing = nil // Act & Assert - assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetActions_NilReceiver", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetActions() // Should return zero value + _ = obj.GetPrefixSpacing() // Should return zero value }) - t.Run("GetQuadPoints", func(t *testing.T) { + t.Run("GetSuffixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var expected []*DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem - obj.QuadPoints = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + var expected *string + obj.SuffixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetQuadPoints(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") }) - t.Run("GetQuadPoints_NilValue", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - obj.QuadPoints = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + obj.SuffixSpacing = nil // Act & Assert - assert.Nil(t, obj.GetQuadPoints(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetQuadPoints_NilReceiver", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetQuadPoints() // Should return zero value + _ = obj.GetSuffixSpacing() // Should return zero value }) - t.Run("GetColor", func(t *testing.T) { + t.Run("GetLabelPosition", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var expected *DocAnnotationsList200ResponseAnnotationsItemRedactColor - obj.Color = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemLabelPosition + obj.LabelPosition = expected // Act & Assert - assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") }) - t.Run("GetColor_NilValue", func(t *testing.T) { + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - obj.Color = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + obj.LabelPosition = nil // Act & Assert - assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") }) - t.Run("GetColor_NilReceiver", func(t *testing.T) { + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetColor() // Should return zero value + _ = obj.GetLabelPosition() // Should return zero value }) - t.Run("GetOpacity", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var expected float64 - obj.Opacity = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValueUnit string - // Act & Assert - assert.Equal(t, expected, obj.GetOpacity(), "getter should return the property value") - }) - - t.Run("GetOpacity_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedact - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetOpacity() // Should return zero value - }) - - t.Run("GetInteriorColor", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var expected *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor - obj.InteriorColor = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetInteriorColor(), "getter should return the property value") - }) - - t.Run("GetInteriorColor_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - obj.InteriorColor = nil - - // Act & Assert - assert.Nil(t, obj.GetInteriorColor(), "getter should return nil when property is nil") - }) - - t.Run("GetInteriorColor_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedact - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetInteriorColor() // Should return zero value - }) - - t.Run("GetOverlayText", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var expected *string - obj.OverlayText = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetOverlayText(), "getter should return the property value") - }) - - t.Run("GetOverlayText_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - obj.OverlayText = nil - - // Act & Assert - assert.Nil(t, obj.GetOverlayText(), "getter should return nil when property is nil") - }) - - t.Run("GetOverlayText_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedact - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetOverlayText() // Should return zero value - }) - - t.Run("GetRepeat", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var expected bool - obj.Repeat = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRepeat(), "getter should return the property value") - }) - - t.Run("GetRepeat_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedact - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRepeat() // Should return zero value - }) - - t.Run("GetFontFamily", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var expected DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily - obj.FontFamily = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetFontFamily(), "getter should return the property value") - }) - - t.Run("GetFontFamily_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedact - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetFontFamily() // Should return zero value - }) - - t.Run("GetFontSize", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var expected float64 - obj.FontSize = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetFontSize(), "getter should return the property value") - }) + // Act + obj.SetUnit(fernTestValueUnit) - t.Run("GetFontSize_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedact - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetFontSize() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("GetFontColor", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var expected *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor - obj.FontColor = expected + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - // Act & Assert - assert.Equal(t, expected, obj.GetFontColor(), "getter should return the property value") + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetFontColor_NilValue", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - obj.FontColor = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValueConversion *float64 - // Act & Assert - assert.Nil(t, obj.GetFontColor(), "getter should return nil when property is nil") - }) - - t.Run("GetFontColor_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedact - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetFontColor() // Should return zero value - }) + // Act + obj.SetConversion(fernTestValueConversion) - t.Run("GetTextAlign", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var expected DocAnnotationsList200ResponseAnnotationsItemRedactTextAlign - obj.TextAlign = expected + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Equal(t, expected, obj.GetTextAlign(), "getter should return the property value") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetTextAlign_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedact - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetTextAlign() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedact(t *testing.T) { - t.Run("SetRef_MarksExplicit", func(t *testing.T) { + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemRedactRef + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFraction // Act - obj.SetRef(fernTestValueRef) + obj.SetFraction(fernTestValueFraction) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -63045,14 +64827,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedact(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValuePrecision *int // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetPrecision(fernTestValuePrecision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -63076,14 +64858,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedact(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueIndex int + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValueFixed *bool // Act - obj.SetIndex(fernTestValueIndex) + obj.SetFixed(fernTestValueFixed) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -63107,14 +64889,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedact(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQuality + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValueThousands *string // Act - obj.SetIdentityQuality(fernTestValueIdentityQuality) + obj.SetThousands(fernTestValueThousands) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -63138,14 +64920,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedact(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueNm *string + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValueDecimal *string // Act - obj.SetNm(fernTestValueNm) + obj.SetDecimal(fernTestValueDecimal) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -63169,14 +64951,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedact(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFlags_MarksExplicit", func(t *testing.T) { + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemRedactFlags + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValuePrefixSpacing *string // Act - obj.SetFlags(fernTestValueFlags) + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -63200,14 +64982,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedact(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRect_MarksExplicit", func(t *testing.T) { + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemRedactRect + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValueSuffixSpacing *string // Act - obj.SetRect(fernTestValueRect) + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -63231,14 +65013,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedact(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetContents_MarksExplicit", func(t *testing.T) { + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueContents *string + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemLabelPosition // Act - obj.SetContents(fernTestValueContents) + obj.SetLabelPosition(fernTestValueLabelPosition) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -63262,14 +65044,85 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedact(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetSubject_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueSubject *string + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin{} + var expected float64 + obj.X = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin{} + var expected float64 + obj.Y = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + }) + + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin{} + var fernTestValueX float64 // Act - obj.SetSubject(fernTestValueSubject) + obj.SetX(fernTestValueX) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -63293,14 +65146,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedact(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueAuthor *string + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin{} + var fernTestValueY float64 // Act - obj.SetAuthor(fernTestValueAuthor) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -63324,14 +65177,423 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedact(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreated_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueCreated *time.Time + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + var expected string + obj.Unit = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") + }) + + t.Run("GetUnit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnit() // Should return zero value + }) + + t.Run("GetConversion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + var expected *float64 + obj.Conversion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") + }) + + t.Run("GetConversion_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + obj.Conversion = nil + + // Act & Assert + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") + }) + + t.Run("GetConversion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetConversion() // Should return zero value + }) + + t.Run("GetFraction", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFraction + obj.Fraction = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") + }) + + t.Run("GetFraction_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + obj.Fraction = nil + + // Act & Assert + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") + }) + + t.Run("GetFraction_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFraction() // Should return zero value + }) + + t.Run("GetPrecision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + var expected *int + obj.Precision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") + }) + + t.Run("GetPrecision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + obj.Precision = nil + + // Act & Assert + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") + }) + + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrecision() // Should return zero value + }) + + t.Run("GetFixed", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + var expected *bool + obj.Fixed = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") + }) + + t.Run("GetFixed_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + obj.Fixed = nil + + // Act & Assert + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") + }) + + t.Run("GetFixed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFixed() // Should return zero value + }) + + t.Run("GetThousands", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + var expected *string + obj.Thousands = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") + }) + + t.Run("GetThousands_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + obj.Thousands = nil + + // Act & Assert + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") + }) + + t.Run("GetThousands_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetThousands() // Should return zero value + }) + + t.Run("GetDecimal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + var expected *string + obj.Decimal = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") + }) + + t.Run("GetDecimal_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + obj.Decimal = nil + + // Act & Assert + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") + }) + + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDecimal() // Should return zero value + }) + + t.Run("GetPrefixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + var expected *string + obj.PrefixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") + }) + + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + obj.PrefixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrefixSpacing() // Should return zero value + }) + + t.Run("GetSuffixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + var expected *string + obj.SuffixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") + }) + + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + obj.SuffixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSuffixSpacing() // Should return zero value + }) + + t.Run("GetLabelPosition", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemLabelPosition + obj.LabelPosition = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") + }) + + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + obj.LabelPosition = nil + + // Act & Assert + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") + }) + + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLabelPosition() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValueUnit string // Act - obj.SetCreated(fernTestValueCreated) + obj.SetUnit(fernTestValueUnit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -63355,14 +65617,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedact(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetModified_MarksExplicit", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueModified *time.Time + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValueConversion *float64 // Act - obj.SetModified(fernTestValueModified) + obj.SetConversion(fernTestValueConversion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -63386,14 +65648,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedact(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFraction // Act - obj.SetBlendMode(fernTestValueBlendMode) + obj.SetFraction(fernTestValueFraction) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -63417,14 +65679,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedact(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValuePrecision *int // Act - obj.SetInReplyTo(fernTestValueInReplyTo) + obj.SetPrecision(fernTestValuePrecision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -63448,14 +65710,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedact(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemRedactReplyType + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValueFixed *bool // Act - obj.SetReplyType(fernTestValueReplyType) + obj.SetFixed(fernTestValueFixed) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -63479,14 +65741,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedact(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUserID_MarksExplicit", func(t *testing.T) { + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueUserID *string + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValueThousands *string // Act - obj.SetUserID(fernTestValueUserID) + obj.SetThousands(fernTestValueThousands) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -63510,14 +65772,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedact(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueGroupID *string + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValueDecimal *string // Act - obj.SetGroupID(fernTestValueGroupID) + obj.SetDecimal(fernTestValueDecimal) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -63541,14 +65803,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedact(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueCreatedBy *string + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValuePrefixSpacing *string // Act - obj.SetCreatedBy(fernTestValueCreatedBy) + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -63572,14 +65834,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedact(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueUpdatedBy *string + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValueSuffixSpacing *string // Act - obj.SetUpdatedBy(fernTestValueUpdatedBy) + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -63603,14 +65865,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedact(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueActions *PdfAnnotationActions + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemLabelPosition // Act - obj.SetActions(fernTestValueActions) + obj.SetLabelPosition(fernTestValueLabelPosition) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -63634,14 +65896,423 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedact(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetQuadPoints_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueQuadPoints []*DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + var expected string + obj.Unit = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") + }) + + t.Run("GetUnit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnit() // Should return zero value + }) + + t.Run("GetConversion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + var expected *float64 + obj.Conversion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") + }) + + t.Run("GetConversion_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + obj.Conversion = nil + + // Act & Assert + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") + }) + + t.Run("GetConversion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetConversion() // Should return zero value + }) + + t.Run("GetFraction", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFraction + obj.Fraction = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") + }) + + t.Run("GetFraction_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + obj.Fraction = nil + + // Act & Assert + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") + }) + + t.Run("GetFraction_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFraction() // Should return zero value + }) + + t.Run("GetPrecision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + var expected *int + obj.Precision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") + }) + + t.Run("GetPrecision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + obj.Precision = nil + + // Act & Assert + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") + }) + + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrecision() // Should return zero value + }) + + t.Run("GetFixed", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + var expected *bool + obj.Fixed = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") + }) + + t.Run("GetFixed_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + obj.Fixed = nil + + // Act & Assert + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") + }) + + t.Run("GetFixed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFixed() // Should return zero value + }) + + t.Run("GetThousands", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + var expected *string + obj.Thousands = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") + }) + + t.Run("GetThousands_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + obj.Thousands = nil + + // Act & Assert + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") + }) + + t.Run("GetThousands_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetThousands() // Should return zero value + }) + + t.Run("GetDecimal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + var expected *string + obj.Decimal = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") + }) + + t.Run("GetDecimal_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + obj.Decimal = nil + + // Act & Assert + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") + }) + + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDecimal() // Should return zero value + }) + + t.Run("GetPrefixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + var expected *string + obj.PrefixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") + }) + + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + obj.PrefixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrefixSpacing() // Should return zero value + }) + + t.Run("GetSuffixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + var expected *string + obj.SuffixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") + }) + + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + obj.SuffixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSuffixSpacing() // Should return zero value + }) + + t.Run("GetLabelPosition", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemLabelPosition + obj.LabelPosition = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") + }) + + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + obj.LabelPosition = nil + + // Act & Assert + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") + }) + + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLabelPosition() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValueUnit string // Act - obj.SetQuadPoints(fernTestValueQuadPoints) + obj.SetUnit(fernTestValueUnit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -63665,14 +66336,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedact(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetColor_MarksExplicit", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemRedactColor + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValueConversion *float64 // Act - obj.SetColor(fernTestValueColor) + obj.SetConversion(fernTestValueConversion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -63696,14 +66367,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedact(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueOpacity float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFraction // Act - obj.SetOpacity(fernTestValueOpacity) + obj.SetFraction(fernTestValueFraction) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -63727,14 +66398,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedact(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInteriorColor_MarksExplicit", func(t *testing.T) { + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueInteriorColor *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValuePrecision *int // Act - obj.SetInteriorColor(fernTestValueInteriorColor) + obj.SetPrecision(fernTestValuePrecision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -63758,14 +66429,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedact(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOverlayText_MarksExplicit", func(t *testing.T) { + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueOverlayText *string + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValueFixed *bool // Act - obj.SetOverlayText(fernTestValueOverlayText) + obj.SetFixed(fernTestValueFixed) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -63789,14 +66460,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedact(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRepeat_MarksExplicit", func(t *testing.T) { + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueRepeat bool + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValueThousands *string // Act - obj.SetRepeat(fernTestValueRepeat) + obj.SetThousands(fernTestValueThousands) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -63820,14 +66491,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedact(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFontFamily_MarksExplicit", func(t *testing.T) { + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueFontFamily DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValueDecimal *string // Act - obj.SetFontFamily(fernTestValueFontFamily) + obj.SetDecimal(fernTestValueDecimal) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -63851,14 +66522,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedact(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFontSize_MarksExplicit", func(t *testing.T) { + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueFontSize float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValuePrefixSpacing *string // Act - obj.SetFontSize(fernTestValueFontSize) + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -63882,14 +66553,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedact(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFontColor_MarksExplicit", func(t *testing.T) { + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueFontColor *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValueSuffixSpacing *string // Act - obj.SetFontColor(fernTestValueFontColor) + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -63913,14 +66584,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedact(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTextAlign_MarksExplicit", func(t *testing.T) { + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} - var fernTestValueTextAlign DocAnnotationsList200ResponseAnnotationsItemRedactTextAlign + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemLabelPosition // Act - obj.SetTextAlign(fernTestValueTextAlign) + obj.SetLabelPosition(fernTestValueLabelPosition) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -63946,526 +66617,421 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedact(t } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactColor(t *testing.T) { - t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactColor{} - var fernTestValueR int - obj.SetR(fernTestValueR) - assert.Equal(t, fernTestValueR, obj.R) +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactColor{} - var fernTestValueG int - obj.SetG(fernTestValueG) - assert.Equal(t, fernTestValueG, obj.G) + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactColor{} - var fernTestValueB int - obj.SetB(fernTestValueB) - assert.Equal(t, fernTestValueB, obj.B) + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactColor(t *testing.T) { - t.Run("GetR", func(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactColor{} - var expected int - obj.R = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + var expected string + obj.Unit = expected // Act & Assert - assert.Equal(t, expected, obj.GetR(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") }) - t.Run("GetR_NilReceiver", func(t *testing.T) { + t.Run("GetUnit_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactColor + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetR() // Should return zero value + _ = obj.GetUnit() // Should return zero value }) - t.Run("GetG", func(t *testing.T) { + t.Run("GetConversion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactColor{} - var expected int - obj.G = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + var expected *float64 + obj.Conversion = expected // Act & Assert - assert.Equal(t, expected, obj.GetG(), "getter should return the property value") + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") }) - t.Run("GetG_NilReceiver", func(t *testing.T) { + t.Run("GetConversion_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactColor + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + obj.Conversion = nil + + // Act & Assert + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") + }) + + t.Run("GetConversion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetG() // Should return zero value + _ = obj.GetConversion() // Should return zero value }) - t.Run("GetB", func(t *testing.T) { + t.Run("GetFraction", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactColor{} - var expected int - obj.B = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFraction + obj.Fraction = expected // Act & Assert - assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") }) - t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Run("GetFraction_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactColor + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + obj.Fraction = nil + + // Act & Assert + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") + }) + + t.Run("GetFraction_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetB() // Should return zero value + _ = obj.GetFraction() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactColor(t *testing.T) { - t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Run("GetPrecision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactColor{} - var fernTestValueR int - - // Act - obj.SetR(fernTestValueR) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + var expected *int + obj.Precision = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") }) - t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Run("GetPrecision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactColor{} - var fernTestValueG int - - // Act - obj.SetG(fernTestValueG) + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + obj.Precision = nil - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") }) - t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactColor{} - var fernTestValueB int - - // Act - obj.SetB(fernTestValueB) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactFlags(t *testing.T) { - t.Run("SetInvisible", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} - var fernTestValueInvisible bool - obj.SetInvisible(fernTestValueInvisible) - assert.Equal(t, fernTestValueInvisible, obj.Invisible) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetHidden", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} - var fernTestValueHidden bool - obj.SetHidden(fernTestValueHidden) - assert.Equal(t, fernTestValueHidden, obj.Hidden) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetPrint", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} - var fernTestValuePrint bool - obj.SetPrint(fernTestValuePrint) - assert.Equal(t, fernTestValuePrint, obj.Print) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNoZoom", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} - var fernTestValueNoZoom bool - obj.SetNoZoom(fernTestValueNoZoom) - assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNoRotate", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} - var fernTestValueNoRotate bool - obj.SetNoRotate(fernTestValueNoRotate) - assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNoView", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} - var fernTestValueNoView bool - obj.SetNoView(fernTestValueNoView) - assert.Equal(t, fernTestValueNoView, obj.NoView) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} - var fernTestValueReadOnly bool - obj.SetReadOnly(fernTestValueReadOnly) - assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetLocked", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} - var fernTestValueLocked bool - obj.SetLocked(fernTestValueLocked) - assert.Equal(t, fernTestValueLocked, obj.Locked) - assert.NotNil(t, obj.explicitFields) + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrecision() // Should return zero value }) - t.Run("SetToggleNoView", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} - var fernTestValueToggleNoView bool - obj.SetToggleNoView(fernTestValueToggleNoView) - assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("GetFixed", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + var expected *bool + obj.Fixed = expected - t.Run("SetLockedContents", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} - var fernTestValueLockedContents bool - obj.SetLockedContents(fernTestValueLockedContents) - assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") }) -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactFlags(t *testing.T) { - t.Run("GetInvisible", func(t *testing.T) { + t.Run("GetFixed_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} - var expected bool - obj.Invisible = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + obj.Fixed = nil // Act & Assert - assert.Equal(t, expected, obj.GetInvisible(), "getter should return the property value") + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") }) - t.Run("GetInvisible_NilReceiver", func(t *testing.T) { + t.Run("GetFixed_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInvisible() // Should return zero value + _ = obj.GetFixed() // Should return zero value }) - t.Run("GetHidden", func(t *testing.T) { + t.Run("GetThousands", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} - var expected bool - obj.Hidden = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + var expected *string + obj.Thousands = expected // Act & Assert - assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") }) - t.Run("GetHidden_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetHidden() // Should return zero value - }) - - t.Run("GetPrint", func(t *testing.T) { + t.Run("GetThousands_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} - var expected bool - obj.Print = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + obj.Thousands = nil // Act & Assert - assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") }) - t.Run("GetPrint_NilReceiver", func(t *testing.T) { + t.Run("GetThousands_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPrint() // Should return zero value + _ = obj.GetThousands() // Should return zero value }) - t.Run("GetNoZoom", func(t *testing.T) { + t.Run("GetDecimal", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} - var expected bool - obj.NoZoom = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + var expected *string + obj.Decimal = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") - }) - - t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNoZoom() // Should return zero value + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") }) - t.Run("GetNoRotate", func(t *testing.T) { + t.Run("GetDecimal_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} - var expected bool - obj.NoRotate = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + obj.Decimal = nil // Act & Assert - assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") }) - t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNoRotate() // Should return zero value + _ = obj.GetDecimal() // Should return zero value }) - t.Run("GetNoView", func(t *testing.T) { + t.Run("GetPrefixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} - var expected bool - obj.NoView = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + var expected *string + obj.PrefixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") }) - t.Run("GetNoView_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNoView() // Should return zero value - }) - - t.Run("GetReadOnly", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} - var expected bool - obj.ReadOnly = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + obj.PrefixSpacing = nil // Act & Assert - assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReadOnly() // Should return zero value + _ = obj.GetPrefixSpacing() // Should return zero value }) - t.Run("GetLocked", func(t *testing.T) { + t.Run("GetSuffixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} - var expected bool - obj.Locked = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + var expected *string + obj.SuffixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") - }) - - t.Run("GetLocked_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetLocked() // Should return zero value + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") }) - t.Run("GetToggleNoView", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} - var expected bool - obj.ToggleNoView = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + obj.SuffixSpacing = nil // Act & Assert - assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetToggleNoView() // Should return zero value + _ = obj.GetSuffixSpacing() // Should return zero value }) - t.Run("GetLockedContents", func(t *testing.T) { + t.Run("GetLabelPosition", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} - var expected bool - obj.LockedContents = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemLabelPosition + obj.LabelPosition = expected // Act & Assert - assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") }) - t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactFlags + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + obj.LabelPosition = nil + + // Act & Assert + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") + }) + + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLockedContents() // Should return zero value + _ = obj.GetLabelPosition() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactFlags(t *testing.T) { - t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} - var fernTestValueInvisible bool + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValueUnit string // Act - obj.SetInvisible(fernTestValueInvisible) + obj.SetUnit(fernTestValueUnit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -64489,14 +67055,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactFl // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetHidden_MarksExplicit", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} - var fernTestValueHidden bool + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValueConversion *float64 // Act - obj.SetHidden(fernTestValueHidden) + obj.SetConversion(fernTestValueConversion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -64520,14 +67086,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactFl // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPrint_MarksExplicit", func(t *testing.T) { + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} - var fernTestValuePrint bool + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFraction // Act - obj.SetPrint(fernTestValuePrint) + obj.SetFraction(fernTestValueFraction) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -64551,14 +67117,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactFl // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} - var fernTestValueNoZoom bool + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValuePrecision *int // Act - obj.SetNoZoom(fernTestValueNoZoom) + obj.SetPrecision(fernTestValuePrecision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -64582,14 +67148,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactFl // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} - var fernTestValueNoRotate bool + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValueFixed *bool // Act - obj.SetNoRotate(fernTestValueNoRotate) + obj.SetFixed(fernTestValueFixed) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -64613,14 +67179,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactFl // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoView_MarksExplicit", func(t *testing.T) { + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} - var fernTestValueNoView bool + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValueThousands *string // Act - obj.SetNoView(fernTestValueNoView) + obj.SetThousands(fernTestValueThousands) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -64644,14 +67210,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactFl // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} - var fernTestValueReadOnly bool + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValueDecimal *string // Act - obj.SetReadOnly(fernTestValueReadOnly) + obj.SetDecimal(fernTestValueDecimal) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -64675,14 +67241,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactFl // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLocked_MarksExplicit", func(t *testing.T) { + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} - var fernTestValueLocked bool + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValuePrefixSpacing *string // Act - obj.SetLocked(fernTestValueLocked) + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -64706,14 +67272,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactFl // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} - var fernTestValueToggleNoView bool + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValueSuffixSpacing *string // Act - obj.SetToggleNoView(fernTestValueToggleNoView) + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -64737,14 +67303,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactFl // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} - var fernTestValueLockedContents bool + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemLabelPosition // Act - obj.SetLockedContents(fernTestValueLockedContents) + obj.SetLabelPosition(fernTestValueLabelPosition) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -64770,114 +67336,145 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactFl } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactFontColor(t *testing.T) { - t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFontColor{} - var fernTestValueR int - obj.SetR(fernTestValueR) - assert.Equal(t, fernTestValueR, obj.R) +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonRect(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRect{} + var fernTestValueLeft float64 + obj.SetLeft(fernTestValueLeft) + assert.Equal(t, fernTestValueLeft, obj.Left) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFontColor{} - var fernTestValueG int - obj.SetG(fernTestValueG) - assert.Equal(t, fernTestValueG, obj.G) + t.Run("SetBottom", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRect{} + var fernTestValueBottom float64 + obj.SetBottom(fernTestValueBottom) + assert.Equal(t, fernTestValueBottom, obj.Bottom) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFontColor{} - var fernTestValueB int - obj.SetB(fernTestValueB) - assert.Equal(t, fernTestValueB, obj.B) + t.Run("SetRight", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRect{} + var fernTestValueRight float64 + obj.SetRight(fernTestValueRight) + assert.Equal(t, fernTestValueRight, obj.Right) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetTop", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRect{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactFontColor(t *testing.T) { - t.Run("GetR", func(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFontColor{} - var expected int - obj.R = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRect{} + var expected float64 + obj.Left = expected // Act & Assert - assert.Equal(t, expected, obj.GetR(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") }) - t.Run("GetR_NilReceiver", func(t *testing.T) { + t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetR() // Should return zero value + _ = obj.GetLeft() // Should return zero value }) - t.Run("GetG", func(t *testing.T) { + t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFontColor{} - var expected int - obj.G = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRect{} + var expected float64 + obj.Bottom = expected // Act & Assert - assert.Equal(t, expected, obj.GetG(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") }) - t.Run("GetG_NilReceiver", func(t *testing.T) { + t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetG() // Should return zero value + _ = obj.GetBottom() // Should return zero value }) - t.Run("GetB", func(t *testing.T) { + t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFontColor{} - var expected int - obj.B = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRect{} + var expected float64 + obj.Right = expected // Act & Assert - assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") }) - t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetB() // Should return zero value + _ = obj.GetRight() // Should return zero value + }) + + t.Run("GetTop", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRect{} + var expected float64 + obj.Top = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + }) + + t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetTop() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactFontColor(t *testing.T) { - t.Run("SetR_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFontColor{} - var fernTestValueR int + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRect{} + var fernTestValueLeft float64 // Act - obj.SetR(fernTestValueR) + obj.SetLeft(fernTestValueLeft) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -64901,14 +67498,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactFo // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFontColor{} - var fernTestValueG int + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRect{} + var fernTestValueBottom float64 // Act - obj.SetG(fernTestValueG) + obj.SetBottom(fernTestValueBottom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -64932,14 +67529,45 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactFo // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFontColor{} - var fernTestValueB int + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRect{} + var fernTestValueRight float64 // Act - obj.SetB(fernTestValueB) + obj.SetRight(fernTestValueRight) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRect{} + var fernTestValueTop float64 + + // Act + obj.SetTop(fernTestValueTop) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -64965,11 +67593,11 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactFo } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRef(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRef{} var expected string obj.Kind = expected @@ -64979,7 +67607,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo(t *t t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -64992,8 +67620,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo(t *t t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -65003,7 +67631,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo(t *t t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRef{} obj.ObjectNumber = nil // Act & Assert @@ -65012,7 +67640,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo(t *t t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -65025,8 +67653,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo(t *t t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm obj.Nm = expected // Act & Assert @@ -65036,7 +67664,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo(t *t t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRef{} obj.Nm = nil // Act & Assert @@ -65045,7 +67673,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo(t *t t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -65058,8 +67686,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo(t *t t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex obj.Index = expected // Act & Assert @@ -65069,7 +67697,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo(t *t t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRef{} obj.Index = nil // Act & Assert @@ -65078,7 +67706,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo(t *t t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -65090,9 +67718,9 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo(t *t } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -65100,7 +67728,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -65108,8 +67736,8 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -65117,11 +67745,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex{} var expected int obj.PageObjectNumber = expected @@ -65131,7 +67759,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -65144,7 +67772,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex{} var expected int obj.Index = expected @@ -65154,7 +67782,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -65167,8 +67795,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex{} - var expected *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision obj.Revision = expected // Act & Assert @@ -65178,7 +67806,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex{} obj.Revision = nil // Act & Assert @@ -65187,7 +67815,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -65199,11 +67827,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex{} var fernTestValuePageObjectNumber int // Act @@ -65234,7 +67862,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactIn t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex{} var fernTestValueIndex int // Act @@ -65265,8 +67893,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactIn t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -65295,9 +67923,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactIn } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -65305,7 +67933,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -65313,7 +67941,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -65322,11 +67950,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision{} var expected string obj.DocSessionID = expected @@ -65336,7 +67964,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -65349,7 +67977,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -65359,7 +67987,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -65372,7 +68000,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision{} var expected int obj.Generation = expected @@ -65382,7 +68010,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -65394,11 +68022,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision{} var fernTestValueDocSessionID string // Act @@ -65429,7 +68057,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactIn t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -65460,7 +68088,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactIn t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefIndexRevision{} var fernTestValueGeneration int // Act @@ -65490,9 +68118,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactIn } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefNm(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -65500,7 +68128,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm(t }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm{} var fernTestValueNm string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -65509,11 +68137,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm(t } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefNm(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm{} var expected int obj.PageObjectNumber = expected @@ -65523,7 +68151,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm(t t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -65536,7 +68164,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm(t t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm{} var expected string obj.Nm = expected @@ -65546,7 +68174,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm(t t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -65558,11 +68186,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm(t } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonRefNm(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm{} var fernTestValuePageObjectNumber int // Act @@ -65593,7 +68221,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactIn t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefNm{} var fernTestValueNm string // Act @@ -65623,9 +68251,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactIn } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -65633,7 +68261,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjec }) t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber{} var fernTestValueAnnotObjectNumber int obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) @@ -65642,11 +68270,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjec } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber{} var expected int obj.PageObjectNumber = expected @@ -65656,7 +68284,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjec t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -65669,7 +68297,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjec t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber{} var expected int obj.AnnotObjectNumber = expected @@ -65679,7 +68307,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjec t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -65691,11 +68319,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjec } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber{} var fernTestValuePageObjectNumber int // Act @@ -65726,7 +68354,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactIn t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonRefObjectNumber{} var fernTestValueAnnotObjectNumber int // Act @@ -65756,114 +68384,83 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactIn } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor(t *testing.T) { - t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor{} - var fernTestValueR int - obj.SetR(fernTestValueR) - assert.Equal(t, fernTestValueR, obj.R) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor{} - var fernTestValueG int - obj.SetG(fernTestValueG) - assert.Equal(t, fernTestValueG, obj.G) +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor{} - var fernTestValueB int - obj.SetB(fernTestValueB) - assert.Equal(t, fernTestValueB, obj.B) + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor(t *testing.T) { - t.Run("GetR", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor{} - var expected int - obj.R = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetR(), "getter should return the property value") - }) - - t.Run("GetR_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetR() // Should return zero value - }) - - t.Run("GetG", func(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor{} - var expected int - obj.G = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem{} + var expected float64 + obj.X = expected // Act & Assert - assert.Equal(t, expected, obj.GetG(), "getter should return the property value") + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") }) - t.Run("GetG_NilReceiver", func(t *testing.T) { + t.Run("GetX_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetG() // Should return zero value + _ = obj.GetX() // Should return zero value }) - t.Run("GetB", func(t *testing.T) { + t.Run("GetY", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor{} - var expected int - obj.B = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem{} + var expected float64 + obj.Y = expected // Act & Assert - assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") }) - t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Run("GetY_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetB() // Should return zero value + _ = obj.GetY() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor(t *testing.T) { - t.Run("SetR_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor{} - var fernTestValueR int + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem{} + var fernTestValueX float64 // Act - obj.SetR(fernTestValueR) + obj.SetX(fernTestValueX) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -65887,14 +68484,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactIn // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor{} - var fernTestValueG int + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonVerticesItem{} + var fernTestValueY float64 // Act - obj.SetG(fernTestValueG) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -65918,1368 +68515,1265 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactIn // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetB_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor{} - var fernTestValueB int +} - // Act - obj.SetB(fernTestValueB) +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing.T) { + t.Run("SetIntent", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueIntent *DocAnnotationsList200ResponseAnnotationsItemPolylineIntent + obj.SetIntent(fernTestValueIntent) + assert.Equal(t, fernTestValueIntent, obj.Intent) + assert.NotNil(t, obj.explicitFields) + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("SetMeasure", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueMeasure *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasure + obj.SetMeasure(fernTestValueMeasure) + assert.Equal(t, fernTestValueMeasure, obj.Measure) + assert.NotNil(t, obj.explicitFields) + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("SetCaption", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueCaption *DocAnnotationsList200ResponseAnnotationsItemPolylineCaption + obj.SetCaption(fernTestValueCaption) + assert.Equal(t, fernTestValueCaption, obj.Caption) + assert.NotNil(t, obj.explicitFields) + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("SetRef", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemPolylineRef + obj.SetRef(fernTestValueRef) + assert.Equal(t, fernTestValueRef, obj.Ref) + assert.NotNil(t, obj.explicitFields) }) -} + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) -func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem(t *testing.T) { - t.Run("SetP1", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} - var fernTestValueP1 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1 - obj.SetP1(fernTestValueP1) - assert.Equal(t, fernTestValueP1, obj.P1) + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetP2", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} - var fernTestValueP2 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2 - obj.SetP2(fernTestValueP2) - assert.Equal(t, fernTestValueP2, obj.P2) + t.Run("SetIdentityQuality", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQuality + obj.SetIdentityQuality(fernTestValueIdentityQuality) + assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetP3", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} - var fernTestValueP3 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3 - obj.SetP3(fernTestValueP3) - assert.Equal(t, fernTestValueP3, obj.P3) + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueNm *string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetP4", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} - var fernTestValueP4 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4 - obj.SetP4(fernTestValueP4) - assert.Equal(t, fernTestValueP4, obj.P4) + t.Run("SetFlags", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags + obj.SetFlags(fernTestValueFlags) + assert.Equal(t, fernTestValueFlags, obj.Flags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRect", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemPolylineRect + obj.SetRect(fernTestValueRect) + assert.Equal(t, fernTestValueRect, obj.Rect) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetContents", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueContents *string + obj.SetContents(fernTestValueContents) + assert.Equal(t, fernTestValueContents, obj.Contents) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubject", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueSubject *string + obj.SetSubject(fernTestValueSubject) + assert.Equal(t, fernTestValueSubject, obj.Subject) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAuthor", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueAuthor *string + obj.SetAuthor(fernTestValueAuthor) + assert.Equal(t, fernTestValueAuthor, obj.Author) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCreated", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueCreated *time.Time + obj.SetCreated(fernTestValueCreated) + assert.Equal(t, fernTestValueCreated, obj.Created) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetModified", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueModified *time.Time + obj.SetModified(fernTestValueModified) + assert.Equal(t, fernTestValueModified, obj.Modified) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBlendMode", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode + obj.SetBlendMode(fernTestValueBlendMode) + assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetInReplyTo", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo + obj.SetInReplyTo(fernTestValueInReplyTo) + assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetReplyType", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemPolylineReplyType + obj.SetReplyType(fernTestValueReplyType) + assert.Equal(t, fernTestValueReplyType, obj.ReplyType) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetUserID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueUserID *string + obj.SetUserID(fernTestValueUserID) + assert.Equal(t, fernTestValueUserID, obj.UserID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetGroupID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueGroupID *string + obj.SetGroupID(fernTestValueGroupID) + assert.Equal(t, fernTestValueGroupID, obj.GroupID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCreatedBy", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueCreatedBy *string + obj.SetCreatedBy(fernTestValueCreatedBy) + assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetUpdatedBy", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueUpdatedBy *string + obj.SetUpdatedBy(fernTestValueUpdatedBy) + assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetActions", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueActions *PdfAnnotationActions + obj.SetActions(fernTestValueActions) + assert.Equal(t, fernTestValueActions, obj.Actions) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetColor", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemPolylineColor + obj.SetColor(fernTestValueColor) + assert.Equal(t, fernTestValueColor, obj.Color) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetOpacity", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueOpacity float64 + obj.SetOpacity(fernTestValueOpacity) + assert.Equal(t, fernTestValueOpacity, obj.Opacity) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetStrokeWidth", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueStrokeWidth float64 + obj.SetStrokeWidth(fernTestValueStrokeWidth) + assert.Equal(t, fernTestValueStrokeWidth, obj.StrokeWidth) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBorderStyle", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueBorderStyle DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle + obj.SetBorderStyle(fernTestValueBorderStyle) + assert.Equal(t, fernTestValueBorderStyle, obj.BorderStyle) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDashArray", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueDashArray []float64 + obj.SetDashArray(fernTestValueDashArray) + assert.Equal(t, fernTestValueDashArray, obj.DashArray) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetInteriorColor", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueInteriorColor *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor + obj.SetInteriorColor(fernTestValueInteriorColor) + assert.Equal(t, fernTestValueInteriorColor, obj.InteriorColor) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetVertices", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueVertices []*DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem + obj.SetVertices(fernTestValueVertices) + assert.Equal(t, fernTestValueVertices, obj.Vertices) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRotation", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueRotation *float64 + obj.SetRotation(fernTestValueRotation) + assert.Equal(t, fernTestValueRotation, obj.Rotation) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLineEndings", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueLineEndings *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings + obj.SetLineEndings(fernTestValueLineEndings) + assert.Equal(t, fernTestValueLineEndings, obj.LineEndings) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem(t *testing.T) { - t.Run("GetP1", func(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing.T) { + t.Run("GetIntent", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} - var expected *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1 - obj.P1 = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineIntent + obj.Intent = expected // Act & Assert - assert.Equal(t, expected, obj.GetP1(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIntent(), "getter should return the property value") }) - t.Run("GetP1_NilValue", func(t *testing.T) { + t.Run("GetIntent_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} - obj.P1 = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj.Intent = nil // Act & Assert - assert.Nil(t, obj.GetP1(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIntent(), "getter should return nil when property is nil") }) - t.Run("GetP1_NilReceiver", func(t *testing.T) { + t.Run("GetIntent_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem + var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetP1() // Should return zero value + _ = obj.GetIntent() // Should return zero value }) - t.Run("GetP2", func(t *testing.T) { + t.Run("GetMeasure", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} - var expected *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2 - obj.P2 = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasure + obj.Measure = expected // Act & Assert - assert.Equal(t, expected, obj.GetP2(), "getter should return the property value") + assert.Equal(t, expected, obj.GetMeasure(), "getter should return the property value") }) - t.Run("GetP2_NilValue", func(t *testing.T) { + t.Run("GetMeasure_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} - obj.P2 = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj.Measure = nil // Act & Assert - assert.Nil(t, obj.GetP2(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetMeasure(), "getter should return nil when property is nil") }) - t.Run("GetP2_NilReceiver", func(t *testing.T) { + t.Run("GetMeasure_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem + var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetP2() // Should return zero value + _ = obj.GetMeasure() // Should return zero value }) - t.Run("GetP3", func(t *testing.T) { + t.Run("GetCaption", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} - var expected *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3 - obj.P3 = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineCaption + obj.Caption = expected // Act & Assert - assert.Equal(t, expected, obj.GetP3(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCaption(), "getter should return the property value") }) - t.Run("GetP3_NilValue", func(t *testing.T) { + t.Run("GetCaption_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} - obj.P3 = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj.Caption = nil // Act & Assert - assert.Nil(t, obj.GetP3(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCaption(), "getter should return nil when property is nil") }) - t.Run("GetP3_NilReceiver", func(t *testing.T) { + t.Run("GetCaption_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem + var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetP3() // Should return zero value + _ = obj.GetCaption() // Should return zero value }) - t.Run("GetP4", func(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} - var expected *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4 - obj.P4 = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineRef + obj.Ref = expected // Act & Assert - assert.Equal(t, expected, obj.GetP4(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") }) - t.Run("GetP4_NilValue", func(t *testing.T) { + t.Run("GetRef_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} - obj.P4 = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj.Ref = nil // Act & Assert - assert.Nil(t, obj.GetP4(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") }) - t.Run("GetP4_NilReceiver", func(t *testing.T) { + t.Run("GetRef_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem + var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetP4() // Should return zero value + _ = obj.GetRef() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem(t *testing.T) { - t.Run("SetP1_MarksExplicit", func(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} - var fernTestValueP1 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1 - - // Act - obj.SetP1(fernTestValueP1) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var expected int + obj.PageObjectNumber = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("SetP2_MarksExplicit", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} - var fernTestValueP2 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2 - - // Act - obj.SetP2(fernTestValueP2) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("SetP3_MarksExplicit", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} - var fernTestValueP3 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3 - - // Act - obj.SetP3(fernTestValueP3) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var expected int + obj.Index = expected - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value }) - t.Run("SetP4_MarksExplicit", func(t *testing.T) { + t.Run("GetIdentityQuality", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} - var fernTestValueP4 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4 - - // Act - obj.SetP4(fernTestValueP4) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var expected DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQuality + obj.IdentityQuality = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetIdentityQuality(), "getter should return the property value") }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) - assert.NotNil(t, obj.explicitFields) + t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIdentityQuality() // Should return zero value }) - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var expected *string + obj.Nm = expected -} + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) -func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1(t *testing.T) { - t.Run("GetX", func(t *testing.T) { + t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1{} - var expected float64 - obj.X = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj.Nm = nil // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") }) - t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1 + var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetX() // Should return zero value + _ = obj.GetNm() // Should return zero value }) - t.Run("GetY", func(t *testing.T) { + t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1{} - var expected float64 - obj.Y = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags + obj.Flags = expected // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") }) - t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1 + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj.Flags = nil + + // Act & Assert + assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") + }) + + t.Run("GetFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetY() // Should return zero value + _ = obj.GetFlags() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Run("GetRect", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1{} - var fernTestValueX float64 - - // Act - obj.SetX(fernTestValueX) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineRect + obj.Rect = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetRect(), "getter should return the property value") }) - t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Run("GetRect_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1{} - var fernTestValueY float64 - - // Act - obj.SetY(fernTestValueY) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj.Rect = nil - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Nil(t, obj.GetRect(), "getter should return nil when property is nil") }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) - assert.NotNil(t, obj.explicitFields) + t.Run("GetRect_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRect() // Should return zero value }) - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("GetContents", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var expected *string + obj.Contents = expected -} + // Act & Assert + assert.Equal(t, expected, obj.GetContents(), "getter should return the property value") + }) -func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2(t *testing.T) { - t.Run("GetX", func(t *testing.T) { + t.Run("GetContents_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2{} - var expected float64 - obj.X = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj.Contents = nil // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + assert.Nil(t, obj.GetContents(), "getter should return nil when property is nil") }) - t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Run("GetContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2 + var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetX() // Should return zero value + _ = obj.GetContents() // Should return zero value }) - t.Run("GetY", func(t *testing.T) { + t.Run("GetSubject", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2{} - var expected float64 - obj.Y = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var expected *string + obj.Subject = expected // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubject(), "getter should return the property value") }) - t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Run("GetSubject_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2 + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj.Subject = nil + + // Act & Assert + assert.Nil(t, obj.GetSubject(), "getter should return nil when property is nil") + }) + + t.Run("GetSubject_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetY() // Should return zero value + _ = obj.GetSubject() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Run("GetAuthor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2{} - var fernTestValueX float64 - - // Act - obj.SetX(fernTestValueX) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var expected *string + obj.Author = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetAuthor(), "getter should return the property value") }) - t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Run("GetAuthor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2{} - var fernTestValueY float64 - - // Act - obj.SetY(fernTestValueY) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj.Author = nil - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Nil(t, obj.GetAuthor(), "getter should return nil when property is nil") }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) - assert.NotNil(t, obj.explicitFields) + t.Run("GetAuthor_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAuthor() // Should return zero value }) - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("GetCreated", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var expected *time.Time + obj.Created = expected -} + // Act & Assert + assert.Equal(t, expected, obj.GetCreated(), "getter should return the property value") + }) -func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3(t *testing.T) { - t.Run("GetX", func(t *testing.T) { + t.Run("GetCreated_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3{} - var expected float64 - obj.X = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj.Created = nil // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + assert.Nil(t, obj.GetCreated(), "getter should return nil when property is nil") }) - t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Run("GetCreated_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3 + var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetX() // Should return zero value + _ = obj.GetCreated() // Should return zero value }) - t.Run("GetY", func(t *testing.T) { + t.Run("GetModified", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3{} - var expected float64 - obj.Y = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var expected *time.Time + obj.Modified = expected // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") }) - t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Run("GetModified_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3 + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj.Modified = nil + + // Act & Assert + assert.Nil(t, obj.GetModified(), "getter should return nil when property is nil") + }) + + t.Run("GetModified_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetY() // Should return zero value + _ = obj.GetModified() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Run("GetBlendMode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3{} - var fernTestValueX float64 - - // Act - obj.SetX(fernTestValueX) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var expected DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode + obj.BlendMode = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetBlendMode(), "getter should return the property value") }) - t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3{} - var fernTestValueY float64 - - // Act - obj.SetY(fernTestValueY) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBlendMode() // Should return zero value }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("GetInReplyTo", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo + obj.InReplyTo = expected - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetInReplyTo(), "getter should return the property value") }) -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4(t *testing.T) { - t.Run("GetX", func(t *testing.T) { + t.Run("GetInReplyTo_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4{} - var expected float64 - obj.X = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj.InReplyTo = nil // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + assert.Nil(t, obj.GetInReplyTo(), "getter should return nil when property is nil") }) - t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4 + var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetX() // Should return zero value + _ = obj.GetInReplyTo() // Should return zero value }) - t.Run("GetY", func(t *testing.T) { + t.Run("GetReplyType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4{} - var expected float64 - obj.Y = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineReplyType + obj.ReplyType = expected // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + assert.Equal(t, expected, obj.GetReplyType(), "getter should return the property value") }) - t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Run("GetReplyType_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4 + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj.ReplyType = nil + + // Act & Assert + assert.Nil(t, obj.GetReplyType(), "getter should return nil when property is nil") + }) + + t.Run("GetReplyType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetY() // Should return zero value + _ = obj.GetReplyType() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Run("GetUserID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4{} - var fernTestValueX float64 - - // Act - obj.SetX(fernTestValueX) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var expected *string + obj.UserID = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") }) - t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Run("GetUserID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4{} - var fernTestValueY float64 - - // Act - obj.SetY(fernTestValueY) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj.UserID = nil -func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactRect(t *testing.T) { - t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRect{} - var fernTestValueLeft float64 - obj.SetLeft(fernTestValueLeft) - assert.Equal(t, fernTestValueLeft, obj.Left) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") }) - t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRect{} - var fernTestValueBottom float64 - obj.SetBottom(fernTestValueBottom) - assert.Equal(t, fernTestValueBottom, obj.Bottom) - assert.NotNil(t, obj.explicitFields) + t.Run("GetUserID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUserID() // Should return zero value }) - t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRect{} - var fernTestValueRight float64 - obj.SetRight(fernTestValueRight) - assert.Equal(t, fernTestValueRight, obj.Right) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("GetGroupID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var expected *string + obj.GroupID = expected - t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRect{} - var fernTestValueTop float64 - obj.SetTop(fernTestValueTop) - assert.Equal(t, fernTestValueTop, obj.Top) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetGroupID(), "getter should return the property value") }) -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactRect(t *testing.T) { - t.Run("GetLeft", func(t *testing.T) { + t.Run("GetGroupID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRect{} - var expected float64 - obj.Left = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj.GroupID = nil // Act & Assert - assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") + assert.Nil(t, obj.GetGroupID(), "getter should return nil when property is nil") }) - t.Run("GetLeft_NilReceiver", func(t *testing.T) { + t.Run("GetGroupID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRect + var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLeft() // Should return zero value + _ = obj.GetGroupID() // Should return zero value }) - t.Run("GetBottom", func(t *testing.T) { + t.Run("GetCreatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRect{} - var expected float64 - obj.Bottom = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var expected *string + obj.CreatedBy = expected // Act & Assert - assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") - }) - - t.Run("GetBottom_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetBottom() // Should return zero value + assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") }) - t.Run("GetRight", func(t *testing.T) { + t.Run("GetCreatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRect{} - var expected float64 - obj.Right = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj.CreatedBy = nil // Act & Assert - assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") + assert.Nil(t, obj.GetCreatedBy(), "getter should return nil when property is nil") }) - t.Run("GetRight_NilReceiver", func(t *testing.T) { + t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRect + var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRight() // Should return zero value + _ = obj.GetCreatedBy() // Should return zero value }) - t.Run("GetTop", func(t *testing.T) { + t.Run("GetUpdatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRect{} - var expected float64 - obj.Top = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var expected *string + obj.UpdatedBy = expected // Act & Assert - assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUpdatedBy(), "getter should return the property value") }) - t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRect + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj.UpdatedBy = nil + + // Act & Assert + assert.Nil(t, obj.GetUpdatedBy(), "getter should return nil when property is nil") + }) + + t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTop() // Should return zero value + _ = obj.GetUpdatedBy() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactRect(t *testing.T) { - t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Run("GetActions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRect{} - var fernTestValueLeft float64 - - // Act - obj.SetLeft(fernTestValueLeft) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var expected *PdfAnnotationActions + obj.Actions = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") }) - t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Run("GetActions_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRect{} - var fernTestValueBottom float64 - - // Act - obj.SetBottom(fernTestValueBottom) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj.Actions = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetActions_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetActions() // Should return zero value }) - t.Run("SetRight_MarksExplicit", func(t *testing.T) { + t.Run("GetColor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRect{} - var fernTestValueRight float64 - - // Act - obj.SetRight(fernTestValueRight) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineColor + obj.Color = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") }) - t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Run("GetColor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRect{} - var fernTestValueTop float64 - - // Act - obj.SetTop(fernTestValueTop) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj.Color = nil - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") }) -} + t.Run("GetColor_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetColor() // Should return zero value + }) -func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactRef(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { + t.Run("GetOpacity", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRef{} - var expected string - obj.Kind = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var expected float64 + obj.Opacity = expected // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOpacity(), "getter should return the property value") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetOpacity_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRef + var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKind() // Should return zero value + _ = obj.GetOpacity() // Should return zero value }) - t.Run("GetObjectNumber", func(t *testing.T) { + t.Run("GetStrokeWidth", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber - obj.ObjectNumber = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var expected float64 + obj.StrokeWidth = expected // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetStrokeWidth(), "getter should return the property value") }) - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Run("GetStrokeWidth_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetStrokeWidth() // Should return zero value + }) + + t.Run("GetBorderStyle", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRef{} - obj.ObjectNumber = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var expected DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle + obj.BorderStyle = expected // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetBorderStyle(), "getter should return the property value") }) - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetBorderStyle_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRef + var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetObjectNumber() // Should return zero value + _ = obj.GetBorderStyle() // Should return zero value }) - t.Run("GetNm", func(t *testing.T) { + t.Run("GetDashArray", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemRedactRefNm - obj.Nm = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var expected []float64 + obj.DashArray = expected // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDashArray(), "getter should return the property value") }) - t.Run("GetNm_NilValue", func(t *testing.T) { + t.Run("GetDashArray_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRef{} - obj.Nm = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj.DashArray = nil // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetDashArray(), "getter should return nil when property is nil") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetDashArray_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRef + var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetDashArray() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetInteriorColor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex - obj.Index = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor + obj.InteriorColor = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetInteriorColor(), "getter should return the property value") }) - t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Run("GetInteriorColor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRef{} - obj.Index = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj.InteriorColor = nil // Act & Assert - assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetInteriorColor(), "getter should return nil when property is nil") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetInteriorColor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRef + var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value - }) - -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactRefIndex(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) + _ = obj.GetInteriorColor() // Should return zero value }) - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("GetVertices", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var expected []*DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem + obj.Vertices = expected - t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetVertices(), "getter should return the property value") }) -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactRefIndex(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetVertices_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj.Vertices = nil // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Nil(t, obj.GetVertices(), "getter should return nil when property is nil") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetVertices_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex + var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetVertices() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetRotation", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex{} - var expected int - obj.Index = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var expected *float64 + obj.Rotation = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRotation(), "getter should return the property value") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetRotation_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj.Rotation = nil + + // Act & Assert + assert.Nil(t, obj.GetRotation(), "getter should return nil when property is nil") + }) + + t.Run("GetRotation_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetRotation() // Should return zero value }) - t.Run("GetRevision", func(t *testing.T) { + t.Run("GetLineEndings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex{} - var expected *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision - obj.Revision = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings + obj.LineEndings = expected // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLineEndings(), "getter should return the property value") }) - t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Run("GetLineEndings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex{} - obj.Revision = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + obj.LineEndings = nil // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetLineEndings(), "getter should return nil when property is nil") }) - t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Run("GetLineEndings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex + var obj *DocAnnotationsList200ResponseAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRevision() // Should return zero value + _ = obj.GetLineEndings() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactRefIndex(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing.T) { + t.Run("SetIntent_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueIntent *DocAnnotationsList200ResponseAnnotationsItemPolylineIntent // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetIntent(fernTestValueIntent) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -67303,14 +69797,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactRe // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("SetMeasure_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex{} - var fernTestValueIndex int + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueMeasure *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasure // Act - obj.SetIndex(fernTestValueIndex) + obj.SetMeasure(fernTestValueMeasure) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -67334,14 +69828,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactRe // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("SetCaption_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueCaption *DocAnnotationsList200ResponseAnnotationsItemPolylineCaption // Act - obj.SetRevision(fernTestValueRevision) + obj.SetCaption(fernTestValueCaption) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -67365,116 +69859,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactRe // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision{} - var fernTestValueDocSessionID string - obj.SetDocSessionID(fernTestValueDocSessionID) - assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision{} - var expected string - obj.DocSessionID = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") - }) - - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetDocSessionID() // Should return zero value - }) - - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetGeneration", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision{} - var expected int - obj.Generation = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") - }) - - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetGeneration() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision{} - var fernTestValueDocSessionID string + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemPolylineRef // Act - obj.SetDocSessionID(fernTestValueDocSessionID) + obj.SetRef(fernTestValueRef) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -67501,7 +69893,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactRe t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} var fernTestValuePageObjectNumber int // Act @@ -67529,14 +69921,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactRe // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision{} - var fernTestValueGeneration int + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueIndex int // Act - obj.SetGeneration(fernTestValueGeneration) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -67560,85 +69952,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactRe // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactRefNm(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefNm{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefNm{} - var fernTestValueNm string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactRefNm(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefNm{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRefNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefNm{} - var expected string - obj.Nm = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") - }) - - t.Run("GetNm_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRefNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNm() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactRefNm(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefNm{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQuality // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetIdentityQuality(fernTestValueIdentityQuality) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -67665,8 +69986,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactRe t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefNm{} - var fernTestValueNm string + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueNm *string // Act obj.SetNm(fernTestValueNm) @@ -67693,85 +70014,45 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactRe // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) + // Act + obj.SetFlags(fernTestValueFlags) - t.Run("GetAnnotObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAnnotObjectNumber() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemPolylineRect // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetRect(fernTestValueRect) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -67795,14 +70076,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactRe // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber{} - var fernTestValueAnnotObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueContents *string // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + obj.SetContents(fernTestValueContents) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -67826,19 +70107,35367 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactRe // It verifies that setting a field via setter allows successful JSON round-trip }) -} + t.Run("SetSubject_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueSubject *string -func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) { - t.Run("SetRef", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemSquareRef - obj.SetRef(fernTestValueRef) - assert.Equal(t, fernTestValueRef, obj.Ref) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetSubject(fernTestValueSubject) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueAuthor *string + + // Act + obj.SetAuthor(fernTestValueAuthor) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCreated_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueCreated *time.Time + + // Act + obj.SetCreated(fernTestValueCreated) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetModified_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueModified *time.Time + + // Act + obj.SetModified(fernTestValueModified) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemPolylineBlendMode + + // Act + obj.SetBlendMode(fernTestValueBlendMode) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo + + // Act + obj.SetInReplyTo(fernTestValueInReplyTo) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemPolylineReplyType + + // Act + obj.SetReplyType(fernTestValueReplyType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetUserID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueUserID *string + + // Act + obj.SetUserID(fernTestValueUserID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueGroupID *string + + // Act + obj.SetGroupID(fernTestValueGroupID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueCreatedBy *string + + // Act + obj.SetCreatedBy(fernTestValueCreatedBy) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueUpdatedBy *string + + // Act + obj.SetUpdatedBy(fernTestValueUpdatedBy) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueActions *PdfAnnotationActions + + // Act + obj.SetActions(fernTestValueActions) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetColor_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemPolylineColor + + // Act + obj.SetColor(fernTestValueColor) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueOpacity float64 + + // Act + obj.SetOpacity(fernTestValueOpacity) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetStrokeWidth_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueStrokeWidth float64 + + // Act + obj.SetStrokeWidth(fernTestValueStrokeWidth) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBorderStyle_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueBorderStyle DocAnnotationsList200ResponseAnnotationsItemPolylineBorderStyle + + // Act + obj.SetBorderStyle(fernTestValueBorderStyle) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDashArray_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueDashArray []float64 + + // Act + obj.SetDashArray(fernTestValueDashArray) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetInteriorColor_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueInteriorColor *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor + + // Act + obj.SetInteriorColor(fernTestValueInteriorColor) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetVertices_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueVertices []*DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem + + // Act + obj.SetVertices(fernTestValueVertices) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRotation_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueRotation *float64 + + // Act + obj.SetRotation(fernTestValueRotation) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetLineEndings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolyline{} + var fernTestValueLineEndings *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings + + // Act + obj.SetLineEndings(fernTestValueLineEndings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineCaption(t *testing.T) { + t.Run("SetEnabled", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineCaption{} + var fernTestValueEnabled bool + obj.SetEnabled(fernTestValueEnabled) + assert.Equal(t, fernTestValueEnabled, obj.Enabled) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCenter", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineCaption{} + var fernTestValueCenter *DocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter + obj.SetCenter(fernTestValueCenter) + assert.Equal(t, fernTestValueCenter, obj.Center) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineCaption(t *testing.T) { + t.Run("GetEnabled", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineCaption{} + var expected bool + obj.Enabled = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetEnabled(), "getter should return the property value") + }) + + t.Run("GetEnabled_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineCaption + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetEnabled() // Should return zero value + }) + + t.Run("GetCenter", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineCaption{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter + obj.Center = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCenter(), "getter should return the property value") + }) + + t.Run("GetCenter_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineCaption{} + obj.Center = nil + + // Act & Assert + assert.Nil(t, obj.GetCenter(), "getter should return nil when property is nil") + }) + + t.Run("GetCenter_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineCaption + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCenter() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineCaption(t *testing.T) { + t.Run("SetEnabled_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineCaption{} + var fernTestValueEnabled bool + + // Act + obj.SetEnabled(fernTestValueEnabled) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCenter_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineCaption{} + var fernTestValueCenter *DocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter + + // Act + obj.SetCenter(fernTestValueCenter) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter(t *testing.T) { + t.Run("GetX", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter{} + var expected float64 + obj.X = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter{} + var expected float64 + obj.Y = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + }) + + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter{} + var fernTestValueX float64 + + // Act + obj.SetX(fernTestValueX) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter{} + var fernTestValueY float64 + + // Act + obj.SetY(fernTestValueY) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineColor(t *testing.T) { + t.Run("SetR", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineColor{} + var fernTestValueR int + obj.SetR(fernTestValueR) + assert.Equal(t, fernTestValueR, obj.R) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetG", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineColor{} + var fernTestValueG int + obj.SetG(fernTestValueG) + assert.Equal(t, fernTestValueG, obj.G) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetB", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineColor{} + var expected int + obj.R = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") + }) + + t.Run("GetR_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetR() // Should return zero value + }) + + t.Run("GetG", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineColor{} + var expected int + obj.G = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") + }) + + t.Run("GetG_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetG() // Should return zero value + }) + + t.Run("GetB", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineColor{} + var expected int + obj.B = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + }) + + t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetB() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineColor{} + var fernTestValueR int + + // Act + obj.SetR(fernTestValueR) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineColor{} + var fernTestValueG int + + // Act + obj.SetG(fernTestValueG) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineColor{} + var fernTestValueB int + + // Act + obj.SetB(fernTestValueB) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *testing.T) { + t.Run("SetInvisible", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + var fernTestValueInvisible bool + obj.SetInvisible(fernTestValueInvisible) + assert.Equal(t, fernTestValueInvisible, obj.Invisible) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetHidden", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + var fernTestValueHidden bool + obj.SetHidden(fernTestValueHidden) + assert.Equal(t, fernTestValueHidden, obj.Hidden) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrint", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + var fernTestValuePrint bool + obj.SetPrint(fernTestValuePrint) + assert.Equal(t, fernTestValuePrint, obj.Print) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNoZoom", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + var fernTestValueNoZoom bool + obj.SetNoZoom(fernTestValueNoZoom) + assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNoRotate", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + var fernTestValueNoRotate bool + obj.SetNoRotate(fernTestValueNoRotate) + assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNoView", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + var fernTestValueNoView bool + obj.SetNoView(fernTestValueNoView) + assert.Equal(t, fernTestValueNoView, obj.NoView) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetReadOnly", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + var fernTestValueReadOnly bool + obj.SetReadOnly(fernTestValueReadOnly) + assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLocked", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + var fernTestValueLocked bool + obj.SetLocked(fernTestValueLocked) + assert.Equal(t, fernTestValueLocked, obj.Locked) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetToggleNoView", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + var fernTestValueToggleNoView bool + obj.SetToggleNoView(fernTestValueToggleNoView) + assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLockedContents", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + var fernTestValueLockedContents bool + obj.SetLockedContents(fernTestValueLockedContents) + assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *testing.T) { + t.Run("GetInvisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + var expected bool + obj.Invisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetInvisible(), "getter should return the property value") + }) + + t.Run("GetInvisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetInvisible() // Should return zero value + }) + + t.Run("GetHidden", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + var expected bool + obj.Hidden = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") + }) + + t.Run("GetHidden_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetHidden() // Should return zero value + }) + + t.Run("GetPrint", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + var expected bool + obj.Print = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") + }) + + t.Run("GetPrint_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrint() // Should return zero value + }) + + t.Run("GetNoZoom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + var expected bool + obj.NoZoom = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") + }) + + t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNoZoom() // Should return zero value + }) + + t.Run("GetNoRotate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + var expected bool + obj.NoRotate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") + }) + + t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNoRotate() // Should return zero value + }) + + t.Run("GetNoView", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + var expected bool + obj.NoView = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") + }) + + t.Run("GetNoView_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNoView() // Should return zero value + }) + + t.Run("GetReadOnly", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + var expected bool + obj.ReadOnly = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") + }) + + t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetReadOnly() // Should return zero value + }) + + t.Run("GetLocked", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + var expected bool + obj.Locked = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") + }) + + t.Run("GetLocked_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLocked() // Should return zero value + }) + + t.Run("GetToggleNoView", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + var expected bool + obj.ToggleNoView = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") + }) + + t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetToggleNoView() // Should return zero value + }) + + t.Run("GetLockedContents", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + var expected bool + obj.LockedContents = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") + }) + + t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLockedContents() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineFlags(t *testing.T) { + t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + var fernTestValueInvisible bool + + // Act + obj.SetInvisible(fernTestValueInvisible) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetHidden_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + var fernTestValueHidden bool + + // Act + obj.SetHidden(fernTestValueHidden) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrint_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + var fernTestValuePrint bool + + // Act + obj.SetPrint(fernTestValuePrint) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + var fernTestValueNoZoom bool + + // Act + obj.SetNoZoom(fernTestValueNoZoom) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + var fernTestValueNoRotate bool + + // Act + obj.SetNoRotate(fernTestValueNoRotate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNoView_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + var fernTestValueNoView bool + + // Act + obj.SetNoView(fernTestValueNoView) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + var fernTestValueReadOnly bool + + // Act + obj.SetReadOnly(fernTestValueReadOnly) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetLocked_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + var fernTestValueLocked bool + + // Act + obj.SetLocked(fernTestValueLocked) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + var fernTestValueToggleNoView bool + + // Act + obj.SetToggleNoView(fernTestValueToggleNoView) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineFlags{} + var fernTestValueLockedContents bool + + // Act + obj.SetLockedContents(fernTestValueLockedContents) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo{} + var expected string + obj.Kind = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + }) + + t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKind() // Should return zero value + }) + + t.Run("GetObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber + obj.ObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + }) + + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo{} + obj.ObjectNumber = nil + + // Act & Assert + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + }) + + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo{} + obj.Nm = nil + + // Act & Assert + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo{} + obj.Index = nil + + // Act & Assert + assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex{} + var expected int + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + + t.Run("GetRevision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision + obj.Revision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + }) + + t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex{} + obj.Revision = nil + + // Act & Assert + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + }) + + t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRevision() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex{} + var fernTestValueIndex int + + // Act + obj.SetIndex(fernTestValueIndex) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision + + // Act + obj.SetRevision(fernTestValueRevision) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision{} + var fernTestValueDocSessionID string + obj.SetDocSessionID(fernTestValueDocSessionID) + assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetGeneration", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision{} + var expected string + obj.DocSessionID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + }) + + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDocSessionID() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetGeneration", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision{} + var expected int + obj.Generation = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + }) + + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGeneration() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision{} + var fernTestValueDocSessionID string + + // Act + obj.SetDocSessionID(fernTestValueDocSessionID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToIndexRevision{} + var fernTestValueGeneration int + + // Act + obj.SetGeneration(fernTestValueGeneration) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm{} + var expected string + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToNm{} + var fernTestValueNm string + + // Act + obj.SetNm(fernTestValueNm) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + }) + + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAnnotObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int + + // Act + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor(t *testing.T) { + t.Run("SetR", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor{} + var fernTestValueR int + obj.SetR(fernTestValueR) + assert.Equal(t, fernTestValueR, obj.R) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetG", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor{} + var fernTestValueG int + obj.SetG(fernTestValueG) + assert.Equal(t, fernTestValueG, obj.G) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetB", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor{} + var expected int + obj.R = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") + }) + + t.Run("GetR_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetR() // Should return zero value + }) + + t.Run("GetG", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor{} + var expected int + obj.G = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") + }) + + t.Run("GetG_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetG() // Should return zero value + }) + + t.Run("GetB", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor{} + var expected int + obj.B = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + }) + + t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetB() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor{} + var fernTestValueR int + + // Act + obj.SetR(fernTestValueR) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor{} + var fernTestValueG int + + // Act + obj.SetG(fernTestValueG) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineInteriorColor{} + var fernTestValueB int + + // Act + obj.SetB(fernTestValueB) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings(t *testing.T) { + t.Run("SetStart", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings{} + var fernTestValueStart DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart + obj.SetStart(fernTestValueStart) + assert.Equal(t, fernTestValueStart, obj.Start) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetEnd", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings{} + var fernTestValueEnd DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd + obj.SetEnd(fernTestValueEnd) + assert.Equal(t, fernTestValueEnd, obj.End) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings(t *testing.T) { + t.Run("GetStart", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings{} + var expected DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart + obj.Start = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetStart(), "getter should return the property value") + }) + + t.Run("GetStart_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetStart() // Should return zero value + }) + + t.Run("GetEnd", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings{} + var expected DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd + obj.End = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetEnd(), "getter should return the property value") + }) + + t.Run("GetEnd_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetEnd() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings(t *testing.T) { + t.Run("SetStart_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings{} + var fernTestValueStart DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStart + + // Act + obj.SetStart(fernTestValueStart) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetEnd_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings{} + var fernTestValueEnd DocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd + + // Act + obj.SetEnd(fernTestValueEnd) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineMeasure(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasure{} + var expected string + obj.Subtype = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") + }) + + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasure + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSubtype() // Should return zero value + }) + + t.Run("GetRl", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasure{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl + obj.Rl = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRl(), "getter should return the property value") + }) + + t.Run("GetRl_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasure{} + obj.Rl = nil + + // Act & Assert + assert.Nil(t, obj.GetRl(), "getter should return nil when property is nil") + }) + + t.Run("GetRl_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasure + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRl() // Should return zero value + }) + + t.Run("GetGeo", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasure{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureGeo + obj.Geo = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetGeo(), "getter should return the property value") + }) + + t.Run("GetGeo_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasure{} + obj.Geo = nil + + // Act & Assert + assert.Nil(t, obj.GetGeo(), "getter should return nil when property is nil") + }) + + t.Run("GetGeo_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasure + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGeo() // Should return zero value + }) + + t.Run("GetUnknown", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasure{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureUnknown + obj.Unknown = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") + }) + + t.Run("GetUnknown_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasure{} + obj.Unknown = nil + + // Act & Assert + assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") + }) + + t.Run("GetUnknown_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasure + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnknown() // Should return zero value + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl(t *testing.T) { + t.Run("SetRatio", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + var fernTestValueRatio *string + obj.SetRatio(fernTestValueRatio) + assert.Equal(t, fernTestValueRatio, obj.Ratio) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + var fernTestValueX []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + var fernTestValueY []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDistance", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + var fernTestValueDistance []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem + obj.SetDistance(fernTestValueDistance) + assert.Equal(t, fernTestValueDistance, obj.Distance) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetArea", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + var fernTestValueArea []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem + obj.SetArea(fernTestValueArea) + assert.Equal(t, fernTestValueArea, obj.Area) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAngle", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + var fernTestValueAngle []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem + obj.SetAngle(fernTestValueAngle) + assert.Equal(t, fernTestValueAngle, obj.Angle) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSlope", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + var fernTestValueSlope []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem + obj.SetSlope(fernTestValueSlope) + assert.Equal(t, fernTestValueSlope, obj.Slope) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetOrigin", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + var fernTestValueOrigin *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin + obj.SetOrigin(fernTestValueOrigin) + assert.Equal(t, fernTestValueOrigin, obj.Origin) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCyx", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + var fernTestValueCyx *float64 + obj.SetCyx(fernTestValueCyx) + assert.Equal(t, fernTestValueCyx, obj.Cyx) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl(t *testing.T) { + t.Run("GetRatio", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + var expected *string + obj.Ratio = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRatio(), "getter should return the property value") + }) + + t.Run("GetRatio_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + obj.Ratio = nil + + // Act & Assert + assert.Nil(t, obj.GetRatio(), "getter should return nil when property is nil") + }) + + t.Run("GetRatio_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRatio() // Should return zero value + }) + + t.Run("GetX", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + var expected []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem + obj.X = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) + + t.Run("GetX_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + obj.X = nil + + // Act & Assert + assert.Nil(t, obj.GetX(), "getter should return nil when property is nil") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + var expected []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem + obj.Y = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + }) + + t.Run("GetY_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + obj.Y = nil + + // Act & Assert + assert.Nil(t, obj.GetY(), "getter should return nil when property is nil") + }) + + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + + t.Run("GetDistance", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + var expected []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem + obj.Distance = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDistance(), "getter should return the property value") + }) + + t.Run("GetDistance_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + obj.Distance = nil + + // Act & Assert + assert.Nil(t, obj.GetDistance(), "getter should return nil when property is nil") + }) + + t.Run("GetDistance_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDistance() // Should return zero value + }) + + t.Run("GetArea", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + var expected []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem + obj.Area = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetArea(), "getter should return the property value") + }) + + t.Run("GetArea_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + obj.Area = nil + + // Act & Assert + assert.Nil(t, obj.GetArea(), "getter should return nil when property is nil") + }) + + t.Run("GetArea_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetArea() // Should return zero value + }) + + t.Run("GetAngle", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + var expected []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem + obj.Angle = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAngle(), "getter should return the property value") + }) + + t.Run("GetAngle_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + obj.Angle = nil + + // Act & Assert + assert.Nil(t, obj.GetAngle(), "getter should return nil when property is nil") + }) + + t.Run("GetAngle_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAngle() // Should return zero value + }) + + t.Run("GetSlope", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + var expected []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem + obj.Slope = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSlope(), "getter should return the property value") + }) + + t.Run("GetSlope_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + obj.Slope = nil + + // Act & Assert + assert.Nil(t, obj.GetSlope(), "getter should return nil when property is nil") + }) + + t.Run("GetSlope_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSlope() // Should return zero value + }) + + t.Run("GetOrigin", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin + obj.Origin = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetOrigin(), "getter should return the property value") + }) + + t.Run("GetOrigin_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + obj.Origin = nil + + // Act & Assert + assert.Nil(t, obj.GetOrigin(), "getter should return nil when property is nil") + }) + + t.Run("GetOrigin_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetOrigin() // Should return zero value + }) + + t.Run("GetCyx", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + var expected *float64 + obj.Cyx = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCyx(), "getter should return the property value") + }) + + t.Run("GetCyx_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + obj.Cyx = nil + + // Act & Assert + assert.Nil(t, obj.GetCyx(), "getter should return nil when property is nil") + }) + + t.Run("GetCyx_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCyx() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl(t *testing.T) { + t.Run("SetRatio_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + var fernTestValueRatio *string + + // Act + obj.SetRatio(fernTestValueRatio) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + var fernTestValueX []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem + + // Act + obj.SetX(fernTestValueX) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + var fernTestValueY []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem + + // Act + obj.SetY(fernTestValueY) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDistance_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + var fernTestValueDistance []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem + + // Act + obj.SetDistance(fernTestValueDistance) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetArea_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + var fernTestValueArea []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem + + // Act + obj.SetArea(fernTestValueArea) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetAngle_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + var fernTestValueAngle []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem + + // Act + obj.SetAngle(fernTestValueAngle) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSlope_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + var fernTestValueSlope []*DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem + + // Act + obj.SetSlope(fernTestValueSlope) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetOrigin_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + var fernTestValueOrigin *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin + + // Act + obj.SetOrigin(fernTestValueOrigin) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCyx_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + var fernTestValueCyx *float64 + + // Act + obj.SetCyx(fernTestValueCyx) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + var expected string + obj.Unit = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") + }) + + t.Run("GetUnit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnit() // Should return zero value + }) + + t.Run("GetConversion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + var expected *float64 + obj.Conversion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") + }) + + t.Run("GetConversion_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + obj.Conversion = nil + + // Act & Assert + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") + }) + + t.Run("GetConversion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetConversion() // Should return zero value + }) + + t.Run("GetFraction", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFraction + obj.Fraction = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") + }) + + t.Run("GetFraction_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + obj.Fraction = nil + + // Act & Assert + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") + }) + + t.Run("GetFraction_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFraction() // Should return zero value + }) + + t.Run("GetPrecision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + var expected *int + obj.Precision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") + }) + + t.Run("GetPrecision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + obj.Precision = nil + + // Act & Assert + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") + }) + + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrecision() // Should return zero value + }) + + t.Run("GetFixed", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + var expected *bool + obj.Fixed = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") + }) + + t.Run("GetFixed_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + obj.Fixed = nil + + // Act & Assert + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") + }) + + t.Run("GetFixed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFixed() // Should return zero value + }) + + t.Run("GetThousands", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + var expected *string + obj.Thousands = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") + }) + + t.Run("GetThousands_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + obj.Thousands = nil + + // Act & Assert + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") + }) + + t.Run("GetThousands_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetThousands() // Should return zero value + }) + + t.Run("GetDecimal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + var expected *string + obj.Decimal = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") + }) + + t.Run("GetDecimal_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + obj.Decimal = nil + + // Act & Assert + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") + }) + + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDecimal() // Should return zero value + }) + + t.Run("GetPrefixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + var expected *string + obj.PrefixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") + }) + + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + obj.PrefixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrefixSpacing() // Should return zero value + }) + + t.Run("GetSuffixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + var expected *string + obj.SuffixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") + }) + + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + obj.SuffixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSuffixSpacing() // Should return zero value + }) + + t.Run("GetLabelPosition", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemLabelPosition + obj.LabelPosition = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") + }) + + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + obj.LabelPosition = nil + + // Act & Assert + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") + }) + + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLabelPosition() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValueUnit string + + // Act + obj.SetUnit(fernTestValueUnit) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValueConversion *float64 + + // Act + obj.SetConversion(fernTestValueConversion) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFraction + + // Act + obj.SetFraction(fernTestValueFraction) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValuePrecision *int + + // Act + obj.SetPrecision(fernTestValuePrecision) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValueFixed *bool + + // Act + obj.SetFixed(fernTestValueFixed) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValueThousands *string + + // Act + obj.SetThousands(fernTestValueThousands) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValueDecimal *string + + // Act + obj.SetDecimal(fernTestValueDecimal) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValuePrefixSpacing *string + + // Act + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValueSuffixSpacing *string + + // Act + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemLabelPosition + + // Act + obj.SetLabelPosition(fernTestValueLabelPosition) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + var expected string + obj.Unit = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") + }) + + t.Run("GetUnit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnit() // Should return zero value + }) + + t.Run("GetConversion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + var expected *float64 + obj.Conversion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") + }) + + t.Run("GetConversion_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + obj.Conversion = nil + + // Act & Assert + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") + }) + + t.Run("GetConversion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetConversion() // Should return zero value + }) + + t.Run("GetFraction", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFraction + obj.Fraction = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") + }) + + t.Run("GetFraction_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + obj.Fraction = nil + + // Act & Assert + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") + }) + + t.Run("GetFraction_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFraction() // Should return zero value + }) + + t.Run("GetPrecision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + var expected *int + obj.Precision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") + }) + + t.Run("GetPrecision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + obj.Precision = nil + + // Act & Assert + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") + }) + + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrecision() // Should return zero value + }) + + t.Run("GetFixed", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + var expected *bool + obj.Fixed = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") + }) + + t.Run("GetFixed_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + obj.Fixed = nil + + // Act & Assert + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") + }) + + t.Run("GetFixed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFixed() // Should return zero value + }) + + t.Run("GetThousands", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + var expected *string + obj.Thousands = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") + }) + + t.Run("GetThousands_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + obj.Thousands = nil + + // Act & Assert + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") + }) + + t.Run("GetThousands_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetThousands() // Should return zero value + }) + + t.Run("GetDecimal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + var expected *string + obj.Decimal = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") + }) + + t.Run("GetDecimal_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + obj.Decimal = nil + + // Act & Assert + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") + }) + + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDecimal() // Should return zero value + }) + + t.Run("GetPrefixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + var expected *string + obj.PrefixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") + }) + + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + obj.PrefixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrefixSpacing() // Should return zero value + }) + + t.Run("GetSuffixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + var expected *string + obj.SuffixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") + }) + + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + obj.SuffixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSuffixSpacing() // Should return zero value + }) + + t.Run("GetLabelPosition", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemLabelPosition + obj.LabelPosition = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") + }) + + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + obj.LabelPosition = nil + + // Act & Assert + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") + }) + + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLabelPosition() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValueUnit string + + // Act + obj.SetUnit(fernTestValueUnit) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValueConversion *float64 + + // Act + obj.SetConversion(fernTestValueConversion) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFraction + + // Act + obj.SetFraction(fernTestValueFraction) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValuePrecision *int + + // Act + obj.SetPrecision(fernTestValuePrecision) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValueFixed *bool + + // Act + obj.SetFixed(fernTestValueFixed) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValueThousands *string + + // Act + obj.SetThousands(fernTestValueThousands) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValueDecimal *string + + // Act + obj.SetDecimal(fernTestValueDecimal) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValuePrefixSpacing *string + + // Act + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValueSuffixSpacing *string + + // Act + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemLabelPosition + + // Act + obj.SetLabelPosition(fernTestValueLabelPosition) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + var expected string + obj.Unit = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") + }) + + t.Run("GetUnit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnit() // Should return zero value + }) + + t.Run("GetConversion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + var expected *float64 + obj.Conversion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") + }) + + t.Run("GetConversion_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + obj.Conversion = nil + + // Act & Assert + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") + }) + + t.Run("GetConversion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetConversion() // Should return zero value + }) + + t.Run("GetFraction", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFraction + obj.Fraction = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") + }) + + t.Run("GetFraction_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + obj.Fraction = nil + + // Act & Assert + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") + }) + + t.Run("GetFraction_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFraction() // Should return zero value + }) + + t.Run("GetPrecision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + var expected *int + obj.Precision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") + }) + + t.Run("GetPrecision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + obj.Precision = nil + + // Act & Assert + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") + }) + + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrecision() // Should return zero value + }) + + t.Run("GetFixed", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + var expected *bool + obj.Fixed = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") + }) + + t.Run("GetFixed_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + obj.Fixed = nil + + // Act & Assert + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") + }) + + t.Run("GetFixed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFixed() // Should return zero value + }) + + t.Run("GetThousands", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + var expected *string + obj.Thousands = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") + }) + + t.Run("GetThousands_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + obj.Thousands = nil + + // Act & Assert + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") + }) + + t.Run("GetThousands_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetThousands() // Should return zero value + }) + + t.Run("GetDecimal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + var expected *string + obj.Decimal = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") + }) + + t.Run("GetDecimal_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + obj.Decimal = nil + + // Act & Assert + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") + }) + + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDecimal() // Should return zero value + }) + + t.Run("GetPrefixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + var expected *string + obj.PrefixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") + }) + + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + obj.PrefixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrefixSpacing() // Should return zero value + }) + + t.Run("GetSuffixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + var expected *string + obj.SuffixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") + }) + + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + obj.SuffixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSuffixSpacing() // Should return zero value + }) + + t.Run("GetLabelPosition", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemLabelPosition + obj.LabelPosition = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") + }) + + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + obj.LabelPosition = nil + + // Act & Assert + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") + }) + + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLabelPosition() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValueUnit string + + // Act + obj.SetUnit(fernTestValueUnit) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValueConversion *float64 + + // Act + obj.SetConversion(fernTestValueConversion) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFraction + + // Act + obj.SetFraction(fernTestValueFraction) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValuePrecision *int + + // Act + obj.SetPrecision(fernTestValuePrecision) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValueFixed *bool + + // Act + obj.SetFixed(fernTestValueFixed) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValueThousands *string + + // Act + obj.SetThousands(fernTestValueThousands) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValueDecimal *string + + // Act + obj.SetDecimal(fernTestValueDecimal) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValuePrefixSpacing *string + + // Act + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValueSuffixSpacing *string + + // Act + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemLabelPosition + + // Act + obj.SetLabelPosition(fernTestValueLabelPosition) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin(t *testing.T) { + t.Run("GetX", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin{} + var expected float64 + obj.X = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin{} + var expected float64 + obj.Y = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + }) + + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin{} + var fernTestValueX float64 + + // Act + obj.SetX(fernTestValueX) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin{} + var fernTestValueY float64 + + // Act + obj.SetY(fernTestValueY) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + var expected string + obj.Unit = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") + }) + + t.Run("GetUnit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnit() // Should return zero value + }) + + t.Run("GetConversion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + var expected *float64 + obj.Conversion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") + }) + + t.Run("GetConversion_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + obj.Conversion = nil + + // Act & Assert + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") + }) + + t.Run("GetConversion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetConversion() // Should return zero value + }) + + t.Run("GetFraction", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFraction + obj.Fraction = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") + }) + + t.Run("GetFraction_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + obj.Fraction = nil + + // Act & Assert + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") + }) + + t.Run("GetFraction_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFraction() // Should return zero value + }) + + t.Run("GetPrecision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + var expected *int + obj.Precision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") + }) + + t.Run("GetPrecision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + obj.Precision = nil + + // Act & Assert + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") + }) + + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrecision() // Should return zero value + }) + + t.Run("GetFixed", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + var expected *bool + obj.Fixed = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") + }) + + t.Run("GetFixed_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + obj.Fixed = nil + + // Act & Assert + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") + }) + + t.Run("GetFixed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFixed() // Should return zero value + }) + + t.Run("GetThousands", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + var expected *string + obj.Thousands = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") + }) + + t.Run("GetThousands_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + obj.Thousands = nil + + // Act & Assert + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") + }) + + t.Run("GetThousands_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetThousands() // Should return zero value + }) + + t.Run("GetDecimal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + var expected *string + obj.Decimal = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") + }) + + t.Run("GetDecimal_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + obj.Decimal = nil + + // Act & Assert + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") + }) + + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDecimal() // Should return zero value + }) + + t.Run("GetPrefixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + var expected *string + obj.PrefixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") + }) + + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + obj.PrefixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrefixSpacing() // Should return zero value + }) + + t.Run("GetSuffixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + var expected *string + obj.SuffixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") + }) + + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + obj.SuffixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSuffixSpacing() // Should return zero value + }) + + t.Run("GetLabelPosition", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemLabelPosition + obj.LabelPosition = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") + }) + + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + obj.LabelPosition = nil + + // Act & Assert + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") + }) + + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLabelPosition() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValueUnit string + + // Act + obj.SetUnit(fernTestValueUnit) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValueConversion *float64 + + // Act + obj.SetConversion(fernTestValueConversion) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFraction + + // Act + obj.SetFraction(fernTestValueFraction) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValuePrecision *int + + // Act + obj.SetPrecision(fernTestValuePrecision) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValueFixed *bool + + // Act + obj.SetFixed(fernTestValueFixed) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValueThousands *string + + // Act + obj.SetThousands(fernTestValueThousands) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValueDecimal *string + + // Act + obj.SetDecimal(fernTestValueDecimal) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValuePrefixSpacing *string + + // Act + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValueSuffixSpacing *string + + // Act + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemLabelPosition + + // Act + obj.SetLabelPosition(fernTestValueLabelPosition) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + var expected string + obj.Unit = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") + }) + + t.Run("GetUnit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnit() // Should return zero value + }) + + t.Run("GetConversion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + var expected *float64 + obj.Conversion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") + }) + + t.Run("GetConversion_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + obj.Conversion = nil + + // Act & Assert + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") + }) + + t.Run("GetConversion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetConversion() // Should return zero value + }) + + t.Run("GetFraction", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFraction + obj.Fraction = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") + }) + + t.Run("GetFraction_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + obj.Fraction = nil + + // Act & Assert + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") + }) + + t.Run("GetFraction_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFraction() // Should return zero value + }) + + t.Run("GetPrecision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + var expected *int + obj.Precision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") + }) + + t.Run("GetPrecision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + obj.Precision = nil + + // Act & Assert + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") + }) + + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrecision() // Should return zero value + }) + + t.Run("GetFixed", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + var expected *bool + obj.Fixed = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") + }) + + t.Run("GetFixed_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + obj.Fixed = nil + + // Act & Assert + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") + }) + + t.Run("GetFixed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFixed() // Should return zero value + }) + + t.Run("GetThousands", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + var expected *string + obj.Thousands = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") + }) + + t.Run("GetThousands_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + obj.Thousands = nil + + // Act & Assert + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") + }) + + t.Run("GetThousands_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetThousands() // Should return zero value + }) + + t.Run("GetDecimal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + var expected *string + obj.Decimal = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") + }) + + t.Run("GetDecimal_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + obj.Decimal = nil + + // Act & Assert + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") + }) + + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDecimal() // Should return zero value + }) + + t.Run("GetPrefixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + var expected *string + obj.PrefixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") + }) + + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + obj.PrefixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrefixSpacing() // Should return zero value + }) + + t.Run("GetSuffixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + var expected *string + obj.SuffixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") + }) + + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + obj.SuffixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSuffixSpacing() // Should return zero value + }) + + t.Run("GetLabelPosition", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemLabelPosition + obj.LabelPosition = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") + }) + + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + obj.LabelPosition = nil + + // Act & Assert + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") + }) + + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLabelPosition() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValueUnit string + + // Act + obj.SetUnit(fernTestValueUnit) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValueConversion *float64 + + // Act + obj.SetConversion(fernTestValueConversion) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFraction + + // Act + obj.SetFraction(fernTestValueFraction) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValuePrecision *int + + // Act + obj.SetPrecision(fernTestValuePrecision) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValueFixed *bool + + // Act + obj.SetFixed(fernTestValueFixed) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValueThousands *string + + // Act + obj.SetThousands(fernTestValueThousands) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValueDecimal *string + + // Act + obj.SetDecimal(fernTestValueDecimal) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValuePrefixSpacing *string + + // Act + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValueSuffixSpacing *string + + // Act + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemLabelPosition + + // Act + obj.SetLabelPosition(fernTestValueLabelPosition) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + var expected string + obj.Unit = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") + }) + + t.Run("GetUnit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnit() // Should return zero value + }) + + t.Run("GetConversion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + var expected *float64 + obj.Conversion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") + }) + + t.Run("GetConversion_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + obj.Conversion = nil + + // Act & Assert + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") + }) + + t.Run("GetConversion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetConversion() // Should return zero value + }) + + t.Run("GetFraction", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFraction + obj.Fraction = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") + }) + + t.Run("GetFraction_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + obj.Fraction = nil + + // Act & Assert + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") + }) + + t.Run("GetFraction_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFraction() // Should return zero value + }) + + t.Run("GetPrecision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + var expected *int + obj.Precision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") + }) + + t.Run("GetPrecision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + obj.Precision = nil + + // Act & Assert + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") + }) + + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrecision() // Should return zero value + }) + + t.Run("GetFixed", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + var expected *bool + obj.Fixed = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") + }) + + t.Run("GetFixed_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + obj.Fixed = nil + + // Act & Assert + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") + }) + + t.Run("GetFixed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFixed() // Should return zero value + }) + + t.Run("GetThousands", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + var expected *string + obj.Thousands = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") + }) + + t.Run("GetThousands_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + obj.Thousands = nil + + // Act & Assert + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") + }) + + t.Run("GetThousands_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetThousands() // Should return zero value + }) + + t.Run("GetDecimal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + var expected *string + obj.Decimal = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") + }) + + t.Run("GetDecimal_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + obj.Decimal = nil + + // Act & Assert + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") + }) + + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDecimal() // Should return zero value + }) + + t.Run("GetPrefixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + var expected *string + obj.PrefixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") + }) + + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + obj.PrefixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrefixSpacing() // Should return zero value + }) + + t.Run("GetSuffixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + var expected *string + obj.SuffixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") + }) + + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + obj.SuffixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSuffixSpacing() // Should return zero value + }) + + t.Run("GetLabelPosition", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemLabelPosition + obj.LabelPosition = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") + }) + + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + obj.LabelPosition = nil + + // Act & Assert + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") + }) + + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLabelPosition() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValueUnit string + + // Act + obj.SetUnit(fernTestValueUnit) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValueConversion *float64 + + // Act + obj.SetConversion(fernTestValueConversion) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValueFraction *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFraction + + // Act + obj.SetFraction(fernTestValueFraction) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValuePrecision *int + + // Act + obj.SetPrecision(fernTestValuePrecision) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValueFixed *bool + + // Act + obj.SetFixed(fernTestValueFixed) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValueThousands *string + + // Act + obj.SetThousands(fernTestValueThousands) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValueDecimal *string + + // Act + obj.SetDecimal(fernTestValueDecimal) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValuePrefixSpacing *string + + // Act + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValueSuffixSpacing *string + + // Act + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValueLabelPosition *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemLabelPosition + + // Act + obj.SetLabelPosition(fernTestValueLabelPosition) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineRect(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRect{} + var fernTestValueLeft float64 + obj.SetLeft(fernTestValueLeft) + assert.Equal(t, fernTestValueLeft, obj.Left) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBottom", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRect{} + var fernTestValueBottom float64 + obj.SetBottom(fernTestValueBottom) + assert.Equal(t, fernTestValueBottom, obj.Bottom) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRight", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRect{} + var fernTestValueRight float64 + obj.SetRight(fernTestValueRight) + assert.Equal(t, fernTestValueRight, obj.Right) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetTop", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRect{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRect{} + var expected float64 + obj.Left = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") + }) + + t.Run("GetLeft_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLeft() // Should return zero value + }) + + t.Run("GetBottom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRect{} + var expected float64 + obj.Bottom = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") + }) + + t.Run("GetBottom_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBottom() // Should return zero value + }) + + t.Run("GetRight", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRect{} + var expected float64 + obj.Right = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") + }) + + t.Run("GetRight_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRight() // Should return zero value + }) + + t.Run("GetTop", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRect{} + var expected float64 + obj.Top = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + }) + + t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetTop() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRect{} + var fernTestValueLeft float64 + + // Act + obj.SetLeft(fernTestValueLeft) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRect{} + var fernTestValueBottom float64 + + // Act + obj.SetBottom(fernTestValueBottom) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRight_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRect{} + var fernTestValueRight float64 + + // Act + obj.SetRight(fernTestValueRight) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRect{} + var fernTestValueTop float64 + + // Act + obj.SetTop(fernTestValueTop) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRef{} + var expected string + obj.Kind = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + }) + + t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKind() // Should return zero value + }) + + t.Run("GetObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber + obj.ObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + }) + + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRef{} + obj.ObjectNumber = nil + + // Act & Assert + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + }) + + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRef{} + obj.Nm = nil + + // Act & Assert + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRef{} + obj.Index = nil + + // Act & Assert + assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex{} + var expected int + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + + t.Run("GetRevision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex{} + var expected *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision + obj.Revision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + }) + + t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex{} + obj.Revision = nil + + // Act & Assert + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + }) + + t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRevision() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex{} + var fernTestValueIndex int + + // Act + obj.SetIndex(fernTestValueIndex) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision + + // Act + obj.SetRevision(fernTestValueRevision) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision{} + var fernTestValueDocSessionID string + obj.SetDocSessionID(fernTestValueDocSessionID) + assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetGeneration", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision{} + var expected string + obj.DocSessionID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + }) + + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDocSessionID() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetGeneration", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision{} + var expected int + obj.Generation = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + }) + + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGeneration() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision{} + var fernTestValueDocSessionID string + + // Act + obj.SetDocSessionID(fernTestValueDocSessionID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefIndexRevision{} + var fernTestValueGeneration int + + // Act + obj.SetGeneration(fernTestValueGeneration) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineRefNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineRefNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm{} + var expected string + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineRefNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefNm{} + var fernTestValueNm string + + // Act + obj.SetNm(fernTestValueNm) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + }) + + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAnnotObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineRefObjectNumber{} + var fernTestValueAnnotObjectNumber int + + // Act + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem(t *testing.T) { + t.Run("GetX", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem{} + var expected float64 + obj.X = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem{} + var expected float64 + obj.Y = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + }) + + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem{} + var fernTestValueX float64 + + // Act + obj.SetX(fernTestValueX) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineVerticesItem{} + var fernTestValueY float64 + + // Act + obj.SetY(fernTestValueY) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedact(t *testing.T) { + t.Run("SetRef", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemRedactRef + obj.SetRef(fernTestValueRef) + assert.Equal(t, fernTestValueRef, obj.Ref) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIdentityQuality", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQuality + obj.SetIdentityQuality(fernTestValueIdentityQuality) + assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueNm *string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFlags", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemRedactFlags + obj.SetFlags(fernTestValueFlags) + assert.Equal(t, fernTestValueFlags, obj.Flags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRect", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemRedactRect + obj.SetRect(fernTestValueRect) + assert.Equal(t, fernTestValueRect, obj.Rect) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetContents", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueContents *string + obj.SetContents(fernTestValueContents) + assert.Equal(t, fernTestValueContents, obj.Contents) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubject", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueSubject *string + obj.SetSubject(fernTestValueSubject) + assert.Equal(t, fernTestValueSubject, obj.Subject) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAuthor", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueAuthor *string + obj.SetAuthor(fernTestValueAuthor) + assert.Equal(t, fernTestValueAuthor, obj.Author) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCreated", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueCreated *time.Time + obj.SetCreated(fernTestValueCreated) + assert.Equal(t, fernTestValueCreated, obj.Created) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetModified", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueModified *time.Time + obj.SetModified(fernTestValueModified) + assert.Equal(t, fernTestValueModified, obj.Modified) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBlendMode", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode + obj.SetBlendMode(fernTestValueBlendMode) + assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetInReplyTo", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo + obj.SetInReplyTo(fernTestValueInReplyTo) + assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetReplyType", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemRedactReplyType + obj.SetReplyType(fernTestValueReplyType) + assert.Equal(t, fernTestValueReplyType, obj.ReplyType) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetUserID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueUserID *string + obj.SetUserID(fernTestValueUserID) + assert.Equal(t, fernTestValueUserID, obj.UserID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetGroupID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueGroupID *string + obj.SetGroupID(fernTestValueGroupID) + assert.Equal(t, fernTestValueGroupID, obj.GroupID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCreatedBy", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueCreatedBy *string + obj.SetCreatedBy(fernTestValueCreatedBy) + assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetUpdatedBy", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueUpdatedBy *string + obj.SetUpdatedBy(fernTestValueUpdatedBy) + assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetActions", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueActions *PdfAnnotationActions + obj.SetActions(fernTestValueActions) + assert.Equal(t, fernTestValueActions, obj.Actions) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetQuadPoints", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueQuadPoints []*DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem + obj.SetQuadPoints(fernTestValueQuadPoints) + assert.Equal(t, fernTestValueQuadPoints, obj.QuadPoints) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetColor", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemRedactColor + obj.SetColor(fernTestValueColor) + assert.Equal(t, fernTestValueColor, obj.Color) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetOpacity", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueOpacity float64 + obj.SetOpacity(fernTestValueOpacity) + assert.Equal(t, fernTestValueOpacity, obj.Opacity) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetInteriorColor", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueInteriorColor *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor + obj.SetInteriorColor(fernTestValueInteriorColor) + assert.Equal(t, fernTestValueInteriorColor, obj.InteriorColor) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetOverlayText", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueOverlayText *string + obj.SetOverlayText(fernTestValueOverlayText) + assert.Equal(t, fernTestValueOverlayText, obj.OverlayText) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRepeat", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueRepeat bool + obj.SetRepeat(fernTestValueRepeat) + assert.Equal(t, fernTestValueRepeat, obj.Repeat) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFontFamily", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueFontFamily DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily + obj.SetFontFamily(fernTestValueFontFamily) + assert.Equal(t, fernTestValueFontFamily, obj.FontFamily) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFontSize", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueFontSize float64 + obj.SetFontSize(fernTestValueFontSize) + assert.Equal(t, fernTestValueFontSize, obj.FontSize) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFontColor", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueFontColor *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor + obj.SetFontColor(fernTestValueFontColor) + assert.Equal(t, fernTestValueFontColor, obj.FontColor) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetTextAlign", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueTextAlign DocAnnotationsList200ResponseAnnotationsItemRedactTextAlign + obj.SetTextAlign(fernTestValueTextAlign) + assert.Equal(t, fernTestValueTextAlign, obj.TextAlign) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedact(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var expected *DocAnnotationsList200ResponseAnnotationsItemRedactRef + obj.Ref = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") + }) + + t.Run("GetRef_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + obj.Ref = nil + + // Act & Assert + assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") + }) + + t.Run("GetRef_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRef() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var expected int + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + + t.Run("GetIdentityQuality", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var expected DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQuality + obj.IdentityQuality = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIdentityQuality(), "getter should return the property value") + }) + + t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIdentityQuality() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var expected *string + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + obj.Nm = nil + + // Act & Assert + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + + t.Run("GetFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var expected *DocAnnotationsList200ResponseAnnotationsItemRedactFlags + obj.Flags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") + }) + + t.Run("GetFlags_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + obj.Flags = nil + + // Act & Assert + assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") + }) + + t.Run("GetFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFlags() // Should return zero value + }) + + t.Run("GetRect", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var expected *DocAnnotationsList200ResponseAnnotationsItemRedactRect + obj.Rect = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRect(), "getter should return the property value") + }) + + t.Run("GetRect_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + obj.Rect = nil + + // Act & Assert + assert.Nil(t, obj.GetRect(), "getter should return nil when property is nil") + }) + + t.Run("GetRect_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRect() // Should return zero value + }) + + t.Run("GetContents", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var expected *string + obj.Contents = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetContents(), "getter should return the property value") + }) + + t.Run("GetContents_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + obj.Contents = nil + + // Act & Assert + assert.Nil(t, obj.GetContents(), "getter should return nil when property is nil") + }) + + t.Run("GetContents_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetContents() // Should return zero value + }) + + t.Run("GetSubject", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var expected *string + obj.Subject = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSubject(), "getter should return the property value") + }) + + t.Run("GetSubject_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + obj.Subject = nil + + // Act & Assert + assert.Nil(t, obj.GetSubject(), "getter should return nil when property is nil") + }) + + t.Run("GetSubject_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSubject() // Should return zero value + }) + + t.Run("GetAuthor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var expected *string + obj.Author = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAuthor(), "getter should return the property value") + }) + + t.Run("GetAuthor_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + obj.Author = nil + + // Act & Assert + assert.Nil(t, obj.GetAuthor(), "getter should return nil when property is nil") + }) + + t.Run("GetAuthor_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAuthor() // Should return zero value + }) + + t.Run("GetCreated", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var expected *time.Time + obj.Created = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCreated(), "getter should return the property value") + }) + + t.Run("GetCreated_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + obj.Created = nil + + // Act & Assert + assert.Nil(t, obj.GetCreated(), "getter should return nil when property is nil") + }) + + t.Run("GetCreated_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCreated() // Should return zero value + }) + + t.Run("GetModified", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var expected *time.Time + obj.Modified = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") + }) + + t.Run("GetModified_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + obj.Modified = nil + + // Act & Assert + assert.Nil(t, obj.GetModified(), "getter should return nil when property is nil") + }) + + t.Run("GetModified_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetModified() // Should return zero value + }) + + t.Run("GetBlendMode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var expected DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode + obj.BlendMode = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBlendMode(), "getter should return the property value") + }) + + t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBlendMode() // Should return zero value + }) + + t.Run("GetInReplyTo", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var expected *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo + obj.InReplyTo = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetInReplyTo(), "getter should return the property value") + }) + + t.Run("GetInReplyTo_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + obj.InReplyTo = nil + + // Act & Assert + assert.Nil(t, obj.GetInReplyTo(), "getter should return nil when property is nil") + }) + + t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetInReplyTo() // Should return zero value + }) + + t.Run("GetReplyType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var expected *DocAnnotationsList200ResponseAnnotationsItemRedactReplyType + obj.ReplyType = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetReplyType(), "getter should return the property value") + }) + + t.Run("GetReplyType_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + obj.ReplyType = nil + + // Act & Assert + assert.Nil(t, obj.GetReplyType(), "getter should return nil when property is nil") + }) + + t.Run("GetReplyType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetReplyType() // Should return zero value + }) + + t.Run("GetUserID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var expected *string + obj.UserID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") + }) + + t.Run("GetUserID_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + obj.UserID = nil + + // Act & Assert + assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") + }) + + t.Run("GetUserID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUserID() // Should return zero value + }) + + t.Run("GetGroupID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var expected *string + obj.GroupID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetGroupID(), "getter should return the property value") + }) + + t.Run("GetGroupID_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + obj.GroupID = nil + + // Act & Assert + assert.Nil(t, obj.GetGroupID(), "getter should return nil when property is nil") + }) + + t.Run("GetGroupID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGroupID() // Should return zero value + }) + + t.Run("GetCreatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var expected *string + obj.CreatedBy = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") + }) + + t.Run("GetCreatedBy_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + obj.CreatedBy = nil + + // Act & Assert + assert.Nil(t, obj.GetCreatedBy(), "getter should return nil when property is nil") + }) + + t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCreatedBy() // Should return zero value + }) + + t.Run("GetUpdatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var expected *string + obj.UpdatedBy = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUpdatedBy(), "getter should return the property value") + }) + + t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + obj.UpdatedBy = nil + + // Act & Assert + assert.Nil(t, obj.GetUpdatedBy(), "getter should return nil when property is nil") + }) + + t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUpdatedBy() // Should return zero value + }) + + t.Run("GetActions", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var expected *PdfAnnotationActions + obj.Actions = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") + }) + + t.Run("GetActions_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + obj.Actions = nil + + // Act & Assert + assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") + }) + + t.Run("GetActions_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetActions() // Should return zero value + }) + + t.Run("GetQuadPoints", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var expected []*DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem + obj.QuadPoints = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetQuadPoints(), "getter should return the property value") + }) + + t.Run("GetQuadPoints_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + obj.QuadPoints = nil + + // Act & Assert + assert.Nil(t, obj.GetQuadPoints(), "getter should return nil when property is nil") + }) + + t.Run("GetQuadPoints_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetQuadPoints() // Should return zero value + }) + + t.Run("GetColor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var expected *DocAnnotationsList200ResponseAnnotationsItemRedactColor + obj.Color = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") + }) + + t.Run("GetColor_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + obj.Color = nil + + // Act & Assert + assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") + }) + + t.Run("GetColor_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetColor() // Should return zero value + }) + + t.Run("GetOpacity", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var expected float64 + obj.Opacity = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetOpacity(), "getter should return the property value") + }) + + t.Run("GetOpacity_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetOpacity() // Should return zero value + }) + + t.Run("GetInteriorColor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var expected *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor + obj.InteriorColor = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetInteriorColor(), "getter should return the property value") + }) + + t.Run("GetInteriorColor_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + obj.InteriorColor = nil + + // Act & Assert + assert.Nil(t, obj.GetInteriorColor(), "getter should return nil when property is nil") + }) + + t.Run("GetInteriorColor_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetInteriorColor() // Should return zero value + }) + + t.Run("GetOverlayText", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var expected *string + obj.OverlayText = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetOverlayText(), "getter should return the property value") + }) + + t.Run("GetOverlayText_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + obj.OverlayText = nil + + // Act & Assert + assert.Nil(t, obj.GetOverlayText(), "getter should return nil when property is nil") + }) + + t.Run("GetOverlayText_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetOverlayText() // Should return zero value + }) + + t.Run("GetRepeat", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var expected bool + obj.Repeat = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRepeat(), "getter should return the property value") + }) + + t.Run("GetRepeat_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRepeat() // Should return zero value + }) + + t.Run("GetFontFamily", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var expected DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily + obj.FontFamily = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFontFamily(), "getter should return the property value") + }) + + t.Run("GetFontFamily_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFontFamily() // Should return zero value + }) + + t.Run("GetFontSize", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var expected float64 + obj.FontSize = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFontSize(), "getter should return the property value") + }) + + t.Run("GetFontSize_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFontSize() // Should return zero value + }) + + t.Run("GetFontColor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var expected *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor + obj.FontColor = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFontColor(), "getter should return the property value") + }) + + t.Run("GetFontColor_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + obj.FontColor = nil + + // Act & Assert + assert.Nil(t, obj.GetFontColor(), "getter should return nil when property is nil") + }) + + t.Run("GetFontColor_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFontColor() // Should return zero value + }) + + t.Run("GetTextAlign", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var expected DocAnnotationsList200ResponseAnnotationsItemRedactTextAlign + obj.TextAlign = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetTextAlign(), "getter should return the property value") + }) + + t.Run("GetTextAlign_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedact + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetTextAlign() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedact(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemRedactRef + + // Act + obj.SetRef(fernTestValueRef) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueIndex int + + // Act + obj.SetIndex(fernTestValueIndex) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemRedactIdentityQuality + + // Act + obj.SetIdentityQuality(fernTestValueIdentityQuality) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueNm *string + + // Act + obj.SetNm(fernTestValueNm) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemRedactFlags + + // Act + obj.SetFlags(fernTestValueFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRect_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemRedactRect + + // Act + obj.SetRect(fernTestValueRect) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetContents_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueContents *string + + // Act + obj.SetContents(fernTestValueContents) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubject_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueSubject *string + + // Act + obj.SetSubject(fernTestValueSubject) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueAuthor *string + + // Act + obj.SetAuthor(fernTestValueAuthor) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCreated_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueCreated *time.Time + + // Act + obj.SetCreated(fernTestValueCreated) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetModified_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueModified *time.Time + + // Act + obj.SetModified(fernTestValueModified) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemRedactBlendMode + + // Act + obj.SetBlendMode(fernTestValueBlendMode) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo + + // Act + obj.SetInReplyTo(fernTestValueInReplyTo) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemRedactReplyType + + // Act + obj.SetReplyType(fernTestValueReplyType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetUserID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueUserID *string + + // Act + obj.SetUserID(fernTestValueUserID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueGroupID *string + + // Act + obj.SetGroupID(fernTestValueGroupID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueCreatedBy *string + + // Act + obj.SetCreatedBy(fernTestValueCreatedBy) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueUpdatedBy *string + + // Act + obj.SetUpdatedBy(fernTestValueUpdatedBy) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueActions *PdfAnnotationActions + + // Act + obj.SetActions(fernTestValueActions) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetQuadPoints_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueQuadPoints []*DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem + + // Act + obj.SetQuadPoints(fernTestValueQuadPoints) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetColor_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemRedactColor + + // Act + obj.SetColor(fernTestValueColor) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueOpacity float64 + + // Act + obj.SetOpacity(fernTestValueOpacity) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetInteriorColor_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueInteriorColor *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor + + // Act + obj.SetInteriorColor(fernTestValueInteriorColor) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetOverlayText_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueOverlayText *string + + // Act + obj.SetOverlayText(fernTestValueOverlayText) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRepeat_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueRepeat bool + + // Act + obj.SetRepeat(fernTestValueRepeat) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFontFamily_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueFontFamily DocAnnotationsList200ResponseAnnotationsItemRedactFontFamily + + // Act + obj.SetFontFamily(fernTestValueFontFamily) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFontSize_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueFontSize float64 + + // Act + obj.SetFontSize(fernTestValueFontSize) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFontColor_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueFontColor *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor + + // Act + obj.SetFontColor(fernTestValueFontColor) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetTextAlign_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedact{} + var fernTestValueTextAlign DocAnnotationsList200ResponseAnnotationsItemRedactTextAlign + + // Act + obj.SetTextAlign(fernTestValueTextAlign) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactColor(t *testing.T) { + t.Run("SetR", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactColor{} + var fernTestValueR int + obj.SetR(fernTestValueR) + assert.Equal(t, fernTestValueR, obj.R) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetG", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactColor{} + var fernTestValueG int + obj.SetG(fernTestValueG) + assert.Equal(t, fernTestValueG, obj.G) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetB", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactColor{} + var expected int + obj.R = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") + }) + + t.Run("GetR_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetR() // Should return zero value + }) + + t.Run("GetG", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactColor{} + var expected int + obj.G = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") + }) + + t.Run("GetG_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetG() // Should return zero value + }) + + t.Run("GetB", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactColor{} + var expected int + obj.B = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + }) + + t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetB() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactColor{} + var fernTestValueR int + + // Act + obj.SetR(fernTestValueR) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactColor{} + var fernTestValueG int + + // Act + obj.SetG(fernTestValueG) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactColor{} + var fernTestValueB int + + // Act + obj.SetB(fernTestValueB) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactFlags(t *testing.T) { + t.Run("SetInvisible", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} + var fernTestValueInvisible bool + obj.SetInvisible(fernTestValueInvisible) + assert.Equal(t, fernTestValueInvisible, obj.Invisible) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetHidden", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} + var fernTestValueHidden bool + obj.SetHidden(fernTestValueHidden) + assert.Equal(t, fernTestValueHidden, obj.Hidden) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrint", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} + var fernTestValuePrint bool + obj.SetPrint(fernTestValuePrint) + assert.Equal(t, fernTestValuePrint, obj.Print) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNoZoom", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} + var fernTestValueNoZoom bool + obj.SetNoZoom(fernTestValueNoZoom) + assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNoRotate", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} + var fernTestValueNoRotate bool + obj.SetNoRotate(fernTestValueNoRotate) + assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNoView", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} + var fernTestValueNoView bool + obj.SetNoView(fernTestValueNoView) + assert.Equal(t, fernTestValueNoView, obj.NoView) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetReadOnly", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} + var fernTestValueReadOnly bool + obj.SetReadOnly(fernTestValueReadOnly) + assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLocked", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} + var fernTestValueLocked bool + obj.SetLocked(fernTestValueLocked) + assert.Equal(t, fernTestValueLocked, obj.Locked) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetToggleNoView", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} + var fernTestValueToggleNoView bool + obj.SetToggleNoView(fernTestValueToggleNoView) + assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLockedContents", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} + var fernTestValueLockedContents bool + obj.SetLockedContents(fernTestValueLockedContents) + assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactFlags(t *testing.T) { + t.Run("GetInvisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} + var expected bool + obj.Invisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetInvisible(), "getter should return the property value") + }) + + t.Run("GetInvisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetInvisible() // Should return zero value + }) + + t.Run("GetHidden", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} + var expected bool + obj.Hidden = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") + }) + + t.Run("GetHidden_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetHidden() // Should return zero value + }) + + t.Run("GetPrint", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} + var expected bool + obj.Print = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") + }) + + t.Run("GetPrint_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrint() // Should return zero value + }) + + t.Run("GetNoZoom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} + var expected bool + obj.NoZoom = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") + }) + + t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNoZoom() // Should return zero value + }) + + t.Run("GetNoRotate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} + var expected bool + obj.NoRotate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") + }) + + t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNoRotate() // Should return zero value + }) + + t.Run("GetNoView", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} + var expected bool + obj.NoView = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") + }) + + t.Run("GetNoView_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNoView() // Should return zero value + }) + + t.Run("GetReadOnly", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} + var expected bool + obj.ReadOnly = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") + }) + + t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetReadOnly() // Should return zero value + }) + + t.Run("GetLocked", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} + var expected bool + obj.Locked = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") + }) + + t.Run("GetLocked_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLocked() // Should return zero value + }) + + t.Run("GetToggleNoView", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} + var expected bool + obj.ToggleNoView = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") + }) + + t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetToggleNoView() // Should return zero value + }) + + t.Run("GetLockedContents", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} + var expected bool + obj.LockedContents = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") + }) + + t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLockedContents() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactFlags(t *testing.T) { + t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} + var fernTestValueInvisible bool + + // Act + obj.SetInvisible(fernTestValueInvisible) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetHidden_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} + var fernTestValueHidden bool + + // Act + obj.SetHidden(fernTestValueHidden) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrint_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} + var fernTestValuePrint bool + + // Act + obj.SetPrint(fernTestValuePrint) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} + var fernTestValueNoZoom bool + + // Act + obj.SetNoZoom(fernTestValueNoZoom) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} + var fernTestValueNoRotate bool + + // Act + obj.SetNoRotate(fernTestValueNoRotate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNoView_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} + var fernTestValueNoView bool + + // Act + obj.SetNoView(fernTestValueNoView) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} + var fernTestValueReadOnly bool + + // Act + obj.SetReadOnly(fernTestValueReadOnly) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetLocked_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} + var fernTestValueLocked bool + + // Act + obj.SetLocked(fernTestValueLocked) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} + var fernTestValueToggleNoView bool + + // Act + obj.SetToggleNoView(fernTestValueToggleNoView) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFlags{} + var fernTestValueLockedContents bool + + // Act + obj.SetLockedContents(fernTestValueLockedContents) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactFontColor(t *testing.T) { + t.Run("SetR", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFontColor{} + var fernTestValueR int + obj.SetR(fernTestValueR) + assert.Equal(t, fernTestValueR, obj.R) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetG", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFontColor{} + var fernTestValueG int + obj.SetG(fernTestValueG) + assert.Equal(t, fernTestValueG, obj.G) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetB", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFontColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactFontColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFontColor{} + var expected int + obj.R = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") + }) + + t.Run("GetR_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetR() // Should return zero value + }) + + t.Run("GetG", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFontColor{} + var expected int + obj.G = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") + }) + + t.Run("GetG_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetG() // Should return zero value + }) + + t.Run("GetB", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFontColor{} + var expected int + obj.B = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + }) + + t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactFontColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetB() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactFontColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFontColor{} + var fernTestValueR int + + // Act + obj.SetR(fernTestValueR) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFontColor{} + var fernTestValueG int + + // Act + obj.SetG(fernTestValueG) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactFontColor{} + var fernTestValueB int + + // Act + obj.SetB(fernTestValueB) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo{} + var expected string + obj.Kind = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + }) + + t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKind() // Should return zero value + }) + + t.Run("GetObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber + obj.ObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + }) + + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo{} + obj.ObjectNumber = nil + + // Act & Assert + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + }) + + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo{} + obj.Nm = nil + + // Act & Assert + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo{} + obj.Index = nil + + // Act & Assert + assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex{} + var expected int + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + + t.Run("GetRevision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex{} + var expected *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision + obj.Revision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + }) + + t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex{} + obj.Revision = nil + + // Act & Assert + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + }) + + t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRevision() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex{} + var fernTestValueIndex int + + // Act + obj.SetIndex(fernTestValueIndex) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision + + // Act + obj.SetRevision(fernTestValueRevision) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision{} + var fernTestValueDocSessionID string + obj.SetDocSessionID(fernTestValueDocSessionID) + assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetGeneration", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision{} + var expected string + obj.DocSessionID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + }) + + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDocSessionID() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetGeneration", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision{} + var expected int + obj.Generation = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + }) + + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGeneration() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision{} + var fernTestValueDocSessionID string + + // Act + obj.SetDocSessionID(fernTestValueDocSessionID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToIndexRevision{} + var fernTestValueGeneration int + + // Act + obj.SetGeneration(fernTestValueGeneration) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm{} + var expected string + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToNm{} + var fernTestValueNm string + + // Act + obj.SetNm(fernTestValueNm) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + }) + + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAnnotObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int + + // Act + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor(t *testing.T) { + t.Run("SetR", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor{} + var fernTestValueR int + obj.SetR(fernTestValueR) + assert.Equal(t, fernTestValueR, obj.R) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetG", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor{} + var fernTestValueG int + obj.SetG(fernTestValueG) + assert.Equal(t, fernTestValueG, obj.G) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetB", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor{} + var expected int + obj.R = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") + }) + + t.Run("GetR_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetR() // Should return zero value + }) + + t.Run("GetG", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor{} + var expected int + obj.G = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") + }) + + t.Run("GetG_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetG() // Should return zero value + }) + + t.Run("GetB", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor{} + var expected int + obj.B = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + }) + + t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetB() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor{} + var fernTestValueR int + + // Act + obj.SetR(fernTestValueR) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor{} + var fernTestValueG int + + // Act + obj.SetG(fernTestValueG) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactInteriorColor{} + var fernTestValueB int + + // Act + obj.SetB(fernTestValueB) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem(t *testing.T) { + t.Run("SetP1", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} + var fernTestValueP1 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1 + obj.SetP1(fernTestValueP1) + assert.Equal(t, fernTestValueP1, obj.P1) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetP2", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} + var fernTestValueP2 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2 + obj.SetP2(fernTestValueP2) + assert.Equal(t, fernTestValueP2, obj.P2) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetP3", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} + var fernTestValueP3 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3 + obj.SetP3(fernTestValueP3) + assert.Equal(t, fernTestValueP3, obj.P3) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetP4", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} + var fernTestValueP4 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4 + obj.SetP4(fernTestValueP4) + assert.Equal(t, fernTestValueP4, obj.P4) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem(t *testing.T) { + t.Run("GetP1", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1 + obj.P1 = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetP1(), "getter should return the property value") + }) + + t.Run("GetP1_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} + obj.P1 = nil + + // Act & Assert + assert.Nil(t, obj.GetP1(), "getter should return nil when property is nil") + }) + + t.Run("GetP1_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetP1() // Should return zero value + }) + + t.Run("GetP2", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2 + obj.P2 = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetP2(), "getter should return the property value") + }) + + t.Run("GetP2_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} + obj.P2 = nil + + // Act & Assert + assert.Nil(t, obj.GetP2(), "getter should return nil when property is nil") + }) + + t.Run("GetP2_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetP2() // Should return zero value + }) + + t.Run("GetP3", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3 + obj.P3 = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetP3(), "getter should return the property value") + }) + + t.Run("GetP3_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} + obj.P3 = nil + + // Act & Assert + assert.Nil(t, obj.GetP3(), "getter should return nil when property is nil") + }) + + t.Run("GetP3_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetP3() // Should return zero value + }) + + t.Run("GetP4", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4 + obj.P4 = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetP4(), "getter should return the property value") + }) + + t.Run("GetP4_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} + obj.P4 = nil + + // Act & Assert + assert.Nil(t, obj.GetP4(), "getter should return nil when property is nil") + }) + + t.Run("GetP4_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetP4() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem(t *testing.T) { + t.Run("SetP1_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} + var fernTestValueP1 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1 + + // Act + obj.SetP1(fernTestValueP1) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetP2_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} + var fernTestValueP2 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2 + + // Act + obj.SetP2(fernTestValueP2) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetP3_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} + var fernTestValueP3 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3 + + // Act + obj.SetP3(fernTestValueP3) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetP4_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItem{} + var fernTestValueP4 *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4 + + // Act + obj.SetP4(fernTestValueP4) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1(t *testing.T) { + t.Run("GetX", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1{} + var expected float64 + obj.X = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1{} + var expected float64 + obj.Y = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + }) + + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1{} + var fernTestValueX float64 + + // Act + obj.SetX(fernTestValueX) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP1{} + var fernTestValueY float64 + + // Act + obj.SetY(fernTestValueY) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2(t *testing.T) { + t.Run("GetX", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2{} + var expected float64 + obj.X = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2{} + var expected float64 + obj.Y = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + }) + + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2{} + var fernTestValueX float64 + + // Act + obj.SetX(fernTestValueX) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP2{} + var fernTestValueY float64 + + // Act + obj.SetY(fernTestValueY) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3(t *testing.T) { + t.Run("GetX", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3{} + var expected float64 + obj.X = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3{} + var expected float64 + obj.Y = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + }) + + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3{} + var fernTestValueX float64 + + // Act + obj.SetX(fernTestValueX) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP3{} + var fernTestValueY float64 + + // Act + obj.SetY(fernTestValueY) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4(t *testing.T) { + t.Run("GetX", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4{} + var expected float64 + obj.X = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4{} + var expected float64 + obj.Y = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + }) + + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4{} + var fernTestValueX float64 + + // Act + obj.SetX(fernTestValueX) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactQuadPointsItemP4{} + var fernTestValueY float64 + + // Act + obj.SetY(fernTestValueY) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactRect(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRect{} + var fernTestValueLeft float64 + obj.SetLeft(fernTestValueLeft) + assert.Equal(t, fernTestValueLeft, obj.Left) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBottom", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRect{} + var fernTestValueBottom float64 + obj.SetBottom(fernTestValueBottom) + assert.Equal(t, fernTestValueBottom, obj.Bottom) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRight", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRect{} + var fernTestValueRight float64 + obj.SetRight(fernTestValueRight) + assert.Equal(t, fernTestValueRight, obj.Right) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetTop", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRect{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRect{} + var expected float64 + obj.Left = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") + }) + + t.Run("GetLeft_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLeft() // Should return zero value + }) + + t.Run("GetBottom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRect{} + var expected float64 + obj.Bottom = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") + }) + + t.Run("GetBottom_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBottom() // Should return zero value + }) + + t.Run("GetRight", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRect{} + var expected float64 + obj.Right = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") + }) + + t.Run("GetRight_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRight() // Should return zero value + }) + + t.Run("GetTop", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRect{} + var expected float64 + obj.Top = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + }) + + t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetTop() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRect{} + var fernTestValueLeft float64 + + // Act + obj.SetLeft(fernTestValueLeft) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRect{} + var fernTestValueBottom float64 + + // Act + obj.SetBottom(fernTestValueBottom) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRight_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRect{} + var fernTestValueRight float64 + + // Act + obj.SetRight(fernTestValueRight) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRect{} + var fernTestValueTop float64 + + // Act + obj.SetTop(fernTestValueTop) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRef{} + var expected string + obj.Kind = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + }) + + t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKind() // Should return zero value + }) + + t.Run("GetObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber + obj.ObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + }) + + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRef{} + obj.ObjectNumber = nil + + // Act & Assert + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + }) + + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemRedactRefNm + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRef{} + obj.Nm = nil + + // Act & Assert + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRef{} + obj.Index = nil + + // Act & Assert + assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactRefIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex{} + var expected int + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + + t.Run("GetRevision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex{} + var expected *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision + obj.Revision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + }) + + t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex{} + obj.Revision = nil + + // Act & Assert + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + }) + + t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRevision() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex{} + var fernTestValueIndex int + + // Act + obj.SetIndex(fernTestValueIndex) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision + + // Act + obj.SetRevision(fernTestValueRevision) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision{} + var fernTestValueDocSessionID string + obj.SetDocSessionID(fernTestValueDocSessionID) + assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetGeneration", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision{} + var expected string + obj.DocSessionID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + }) + + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDocSessionID() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetGeneration", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision{} + var expected int + obj.Generation = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + }) + + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGeneration() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision{} + var fernTestValueDocSessionID string + + // Act + obj.SetDocSessionID(fernTestValueDocSessionID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefIndexRevision{} + var fernTestValueGeneration int + + // Act + obj.SetGeneration(fernTestValueGeneration) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactRefNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefNm{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactRefNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefNm{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRefNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefNm{} + var expected string + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRefNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactRefNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefNm{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefNm{} + var fernTestValueNm string + + // Act + obj.SetNm(fernTestValueNm) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + }) + + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAnnotObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemRedactRefObjectNumber{} + var fernTestValueAnnotObjectNumber int + + // Act + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) { + t.Run("SetRef", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemSquareRef + obj.SetRef(fernTestValueRef) + assert.Equal(t, fernTestValueRef, obj.Ref) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIdentityQuality", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQuality + obj.SetIdentityQuality(fernTestValueIdentityQuality) + assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueNm *string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFlags", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemSquareFlags + obj.SetFlags(fernTestValueFlags) + assert.Equal(t, fernTestValueFlags, obj.Flags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRect", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemSquareRect + obj.SetRect(fernTestValueRect) + assert.Equal(t, fernTestValueRect, obj.Rect) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetContents", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueContents *string + obj.SetContents(fernTestValueContents) + assert.Equal(t, fernTestValueContents, obj.Contents) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubject", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueSubject *string + obj.SetSubject(fernTestValueSubject) + assert.Equal(t, fernTestValueSubject, obj.Subject) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAuthor", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueAuthor *string + obj.SetAuthor(fernTestValueAuthor) + assert.Equal(t, fernTestValueAuthor, obj.Author) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCreated", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueCreated *time.Time + obj.SetCreated(fernTestValueCreated) + assert.Equal(t, fernTestValueCreated, obj.Created) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetModified", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueModified *time.Time + obj.SetModified(fernTestValueModified) + assert.Equal(t, fernTestValueModified, obj.Modified) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBlendMode", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode + obj.SetBlendMode(fernTestValueBlendMode) + assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetInReplyTo", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo + obj.SetInReplyTo(fernTestValueInReplyTo) + assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetReplyType", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemSquareReplyType + obj.SetReplyType(fernTestValueReplyType) + assert.Equal(t, fernTestValueReplyType, obj.ReplyType) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetUserID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueUserID *string + obj.SetUserID(fernTestValueUserID) + assert.Equal(t, fernTestValueUserID, obj.UserID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetGroupID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueGroupID *string + obj.SetGroupID(fernTestValueGroupID) + assert.Equal(t, fernTestValueGroupID, obj.GroupID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCreatedBy", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueCreatedBy *string + obj.SetCreatedBy(fernTestValueCreatedBy) + assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetUpdatedBy", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueUpdatedBy *string + obj.SetUpdatedBy(fernTestValueUpdatedBy) + assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetActions", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueActions *PdfAnnotationActions + obj.SetActions(fernTestValueActions) + assert.Equal(t, fernTestValueActions, obj.Actions) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetColor", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemSquareColor + obj.SetColor(fernTestValueColor) + assert.Equal(t, fernTestValueColor, obj.Color) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetOpacity", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueOpacity float64 + obj.SetOpacity(fernTestValueOpacity) + assert.Equal(t, fernTestValueOpacity, obj.Opacity) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetStrokeWidth", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueStrokeWidth float64 + obj.SetStrokeWidth(fernTestValueStrokeWidth) + assert.Equal(t, fernTestValueStrokeWidth, obj.StrokeWidth) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBorderStyle", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueBorderStyle DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle + obj.SetBorderStyle(fernTestValueBorderStyle) + assert.Equal(t, fernTestValueBorderStyle, obj.BorderStyle) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDashArray", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueDashArray []float64 + obj.SetDashArray(fernTestValueDashArray) + assert.Equal(t, fernTestValueDashArray, obj.DashArray) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetInteriorColor", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueInteriorColor *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor + obj.SetInteriorColor(fernTestValueInteriorColor) + assert.Equal(t, fernTestValueInteriorColor, obj.InteriorColor) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCloudyIntensity", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueCloudyIntensity *float64 + obj.SetCloudyIntensity(fernTestValueCloudyIntensity) + assert.Equal(t, fernTestValueCloudyIntensity, obj.CloudyIntensity) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRectDifferences", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueRectDifferences *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences + obj.SetRectDifferences(fernTestValueRectDifferences) + assert.Equal(t, fernTestValueRectDifferences, obj.RectDifferences) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRotation", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueRotation *float64 + obj.SetRotation(fernTestValueRotation) + assert.Equal(t, fernTestValueRotation, obj.Rotation) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetUnrotatedRect", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueUnrotatedRect *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect + obj.SetUnrotatedRect(fernTestValueUnrotatedRect) + assert.Equal(t, fernTestValueUnrotatedRect, obj.UnrotatedRect) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var expected *DocAnnotationsList200ResponseAnnotationsItemSquareRef + obj.Ref = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") + }) + + t.Run("GetRef_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj.Ref = nil + + // Act & Assert + assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") + }) + + t.Run("GetRef_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRef() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var expected int + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + + t.Run("GetIdentityQuality", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var expected DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQuality + obj.IdentityQuality = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIdentityQuality(), "getter should return the property value") + }) + + t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIdentityQuality() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var expected *string + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj.Nm = nil + + // Act & Assert + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + + t.Run("GetFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var expected *DocAnnotationsList200ResponseAnnotationsItemSquareFlags + obj.Flags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") + }) + + t.Run("GetFlags_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj.Flags = nil + + // Act & Assert + assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") + }) + + t.Run("GetFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFlags() // Should return zero value + }) + + t.Run("GetRect", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var expected *DocAnnotationsList200ResponseAnnotationsItemSquareRect + obj.Rect = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRect(), "getter should return the property value") + }) + + t.Run("GetRect_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj.Rect = nil + + // Act & Assert + assert.Nil(t, obj.GetRect(), "getter should return nil when property is nil") + }) + + t.Run("GetRect_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRect() // Should return zero value + }) + + t.Run("GetContents", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var expected *string + obj.Contents = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetContents(), "getter should return the property value") + }) + + t.Run("GetContents_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj.Contents = nil + + // Act & Assert + assert.Nil(t, obj.GetContents(), "getter should return nil when property is nil") + }) + + t.Run("GetContents_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetContents() // Should return zero value + }) + + t.Run("GetSubject", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var expected *string + obj.Subject = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSubject(), "getter should return the property value") + }) + + t.Run("GetSubject_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj.Subject = nil + + // Act & Assert + assert.Nil(t, obj.GetSubject(), "getter should return nil when property is nil") + }) + + t.Run("GetSubject_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSubject() // Should return zero value + }) + + t.Run("GetAuthor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var expected *string + obj.Author = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAuthor(), "getter should return the property value") + }) + + t.Run("GetAuthor_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj.Author = nil + + // Act & Assert + assert.Nil(t, obj.GetAuthor(), "getter should return nil when property is nil") + }) + + t.Run("GetAuthor_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAuthor() // Should return zero value + }) + + t.Run("GetCreated", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var expected *time.Time + obj.Created = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCreated(), "getter should return the property value") + }) + + t.Run("GetCreated_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj.Created = nil + + // Act & Assert + assert.Nil(t, obj.GetCreated(), "getter should return nil when property is nil") + }) + + t.Run("GetCreated_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCreated() // Should return zero value + }) + + t.Run("GetModified", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var expected *time.Time + obj.Modified = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") + }) + + t.Run("GetModified_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj.Modified = nil + + // Act & Assert + assert.Nil(t, obj.GetModified(), "getter should return nil when property is nil") + }) + + t.Run("GetModified_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetModified() // Should return zero value + }) + + t.Run("GetBlendMode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var expected DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode + obj.BlendMode = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBlendMode(), "getter should return the property value") + }) + + t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBlendMode() // Should return zero value + }) + + t.Run("GetInReplyTo", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var expected *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo + obj.InReplyTo = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetInReplyTo(), "getter should return the property value") + }) + + t.Run("GetInReplyTo_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj.InReplyTo = nil + + // Act & Assert + assert.Nil(t, obj.GetInReplyTo(), "getter should return nil when property is nil") + }) + + t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetInReplyTo() // Should return zero value + }) + + t.Run("GetReplyType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var expected *DocAnnotationsList200ResponseAnnotationsItemSquareReplyType + obj.ReplyType = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetReplyType(), "getter should return the property value") + }) + + t.Run("GetReplyType_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj.ReplyType = nil + + // Act & Assert + assert.Nil(t, obj.GetReplyType(), "getter should return nil when property is nil") + }) + + t.Run("GetReplyType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetReplyType() // Should return zero value + }) + + t.Run("GetUserID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var expected *string + obj.UserID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") + }) + + t.Run("GetUserID_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj.UserID = nil + + // Act & Assert + assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") + }) + + t.Run("GetUserID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUserID() // Should return zero value + }) + + t.Run("GetGroupID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var expected *string + obj.GroupID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetGroupID(), "getter should return the property value") + }) + + t.Run("GetGroupID_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj.GroupID = nil + + // Act & Assert + assert.Nil(t, obj.GetGroupID(), "getter should return nil when property is nil") + }) + + t.Run("GetGroupID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGroupID() // Should return zero value + }) + + t.Run("GetCreatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var expected *string + obj.CreatedBy = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") + }) + + t.Run("GetCreatedBy_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj.CreatedBy = nil + + // Act & Assert + assert.Nil(t, obj.GetCreatedBy(), "getter should return nil when property is nil") + }) + + t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCreatedBy() // Should return zero value + }) + + t.Run("GetUpdatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var expected *string + obj.UpdatedBy = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUpdatedBy(), "getter should return the property value") + }) + + t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj.UpdatedBy = nil + + // Act & Assert + assert.Nil(t, obj.GetUpdatedBy(), "getter should return nil when property is nil") + }) + + t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUpdatedBy() // Should return zero value + }) + + t.Run("GetActions", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var expected *PdfAnnotationActions + obj.Actions = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") + }) + + t.Run("GetActions_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj.Actions = nil + + // Act & Assert + assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") + }) + + t.Run("GetActions_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetActions() // Should return zero value + }) + + t.Run("GetColor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var expected *DocAnnotationsList200ResponseAnnotationsItemSquareColor + obj.Color = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") + }) + + t.Run("GetColor_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj.Color = nil + + // Act & Assert + assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") + }) + + t.Run("GetColor_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetColor() // Should return zero value + }) + + t.Run("GetOpacity", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var expected float64 + obj.Opacity = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetOpacity(), "getter should return the property value") + }) + + t.Run("GetOpacity_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetOpacity() // Should return zero value + }) + + t.Run("GetStrokeWidth", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var expected float64 + obj.StrokeWidth = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetStrokeWidth(), "getter should return the property value") + }) + + t.Run("GetStrokeWidth_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetStrokeWidth() // Should return zero value + }) + + t.Run("GetBorderStyle", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var expected DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle + obj.BorderStyle = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBorderStyle(), "getter should return the property value") + }) + + t.Run("GetBorderStyle_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBorderStyle() // Should return zero value + }) + + t.Run("GetDashArray", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var expected []float64 + obj.DashArray = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDashArray(), "getter should return the property value") + }) + + t.Run("GetDashArray_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj.DashArray = nil + + // Act & Assert + assert.Nil(t, obj.GetDashArray(), "getter should return nil when property is nil") + }) + + t.Run("GetDashArray_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDashArray() // Should return zero value + }) + + t.Run("GetInteriorColor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var expected *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor + obj.InteriorColor = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetInteriorColor(), "getter should return the property value") + }) + + t.Run("GetInteriorColor_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj.InteriorColor = nil + + // Act & Assert + assert.Nil(t, obj.GetInteriorColor(), "getter should return nil when property is nil") + }) + + t.Run("GetInteriorColor_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetInteriorColor() // Should return zero value + }) + + t.Run("GetCloudyIntensity", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var expected *float64 + obj.CloudyIntensity = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCloudyIntensity(), "getter should return the property value") + }) + + t.Run("GetCloudyIntensity_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj.CloudyIntensity = nil + + // Act & Assert + assert.Nil(t, obj.GetCloudyIntensity(), "getter should return nil when property is nil") + }) + + t.Run("GetCloudyIntensity_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCloudyIntensity() // Should return zero value + }) + + t.Run("GetRectDifferences", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var expected *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences + obj.RectDifferences = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRectDifferences(), "getter should return the property value") + }) + + t.Run("GetRectDifferences_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj.RectDifferences = nil + + // Act & Assert + assert.Nil(t, obj.GetRectDifferences(), "getter should return nil when property is nil") + }) + + t.Run("GetRectDifferences_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRectDifferences() // Should return zero value + }) + + t.Run("GetRotation", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var expected *float64 + obj.Rotation = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRotation(), "getter should return the property value") + }) + + t.Run("GetRotation_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj.Rotation = nil + + // Act & Assert + assert.Nil(t, obj.GetRotation(), "getter should return nil when property is nil") + }) + + t.Run("GetRotation_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRotation() // Should return zero value + }) + + t.Run("GetUnrotatedRect", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var expected *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect + obj.UnrotatedRect = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUnrotatedRect(), "getter should return the property value") + }) + + t.Run("GetUnrotatedRect_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj.UnrotatedRect = nil + + // Act & Assert + assert.Nil(t, obj.GetUnrotatedRect(), "getter should return nil when property is nil") + }) + + t.Run("GetUnrotatedRect_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnrotatedRect() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemSquareRef + + // Act + obj.SetRef(fernTestValueRef) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueIndex int + + // Act + obj.SetIndex(fernTestValueIndex) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQuality + + // Act + obj.SetIdentityQuality(fernTestValueIdentityQuality) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueNm *string + + // Act + obj.SetNm(fernTestValueNm) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemSquareFlags + + // Act + obj.SetFlags(fernTestValueFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRect_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemSquareRect + + // Act + obj.SetRect(fernTestValueRect) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetContents_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueContents *string + + // Act + obj.SetContents(fernTestValueContents) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubject_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueSubject *string + + // Act + obj.SetSubject(fernTestValueSubject) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueAuthor *string + + // Act + obj.SetAuthor(fernTestValueAuthor) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCreated_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueCreated *time.Time + + // Act + obj.SetCreated(fernTestValueCreated) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetModified_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueModified *time.Time + + // Act + obj.SetModified(fernTestValueModified) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode + + // Act + obj.SetBlendMode(fernTestValueBlendMode) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo + + // Act + obj.SetInReplyTo(fernTestValueInReplyTo) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemSquareReplyType + + // Act + obj.SetReplyType(fernTestValueReplyType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetUserID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueUserID *string + + // Act + obj.SetUserID(fernTestValueUserID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueGroupID *string + + // Act + obj.SetGroupID(fernTestValueGroupID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueCreatedBy *string + + // Act + obj.SetCreatedBy(fernTestValueCreatedBy) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueUpdatedBy *string + + // Act + obj.SetUpdatedBy(fernTestValueUpdatedBy) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueActions *PdfAnnotationActions + + // Act + obj.SetActions(fernTestValueActions) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetColor_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemSquareColor + + // Act + obj.SetColor(fernTestValueColor) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueOpacity float64 + + // Act + obj.SetOpacity(fernTestValueOpacity) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetStrokeWidth_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueStrokeWidth float64 + + // Act + obj.SetStrokeWidth(fernTestValueStrokeWidth) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBorderStyle_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueBorderStyle DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle + + // Act + obj.SetBorderStyle(fernTestValueBorderStyle) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDashArray_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueDashArray []float64 + + // Act + obj.SetDashArray(fernTestValueDashArray) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetInteriorColor_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueInteriorColor *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor + + // Act + obj.SetInteriorColor(fernTestValueInteriorColor) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCloudyIntensity_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueCloudyIntensity *float64 + + // Act + obj.SetCloudyIntensity(fernTestValueCloudyIntensity) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRectDifferences_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueRectDifferences *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences + + // Act + obj.SetRectDifferences(fernTestValueRectDifferences) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRotation_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueRotation *float64 + + // Act + obj.SetRotation(fernTestValueRotation) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetUnrotatedRect_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + var fernTestValueUnrotatedRect *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect + + // Act + obj.SetUnrotatedRect(fernTestValueUnrotatedRect) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareColor(t *testing.T) { + t.Run("SetR", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareColor{} + var fernTestValueR int + obj.SetR(fernTestValueR) + assert.Equal(t, fernTestValueR, obj.R) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetG", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareColor{} + var fernTestValueG int + obj.SetG(fernTestValueG) + assert.Equal(t, fernTestValueG, obj.G) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetB", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareColor{} + var expected int + obj.R = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") + }) + + t.Run("GetR_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetR() // Should return zero value + }) + + t.Run("GetG", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareColor{} + var expected int + obj.G = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") + }) + + t.Run("GetG_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetG() // Should return zero value + }) + + t.Run("GetB", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareColor{} + var expected int + obj.B = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + }) + + t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetB() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareColor{} + var fernTestValueR int + + // Act + obj.SetR(fernTestValueR) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareColor{} + var fernTestValueG int + + // Act + obj.SetG(fernTestValueG) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareColor{} + var fernTestValueB int + + // Act + obj.SetB(fernTestValueB) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareFlags(t *testing.T) { + t.Run("SetInvisible", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} + var fernTestValueInvisible bool + obj.SetInvisible(fernTestValueInvisible) + assert.Equal(t, fernTestValueInvisible, obj.Invisible) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetHidden", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} + var fernTestValueHidden bool + obj.SetHidden(fernTestValueHidden) + assert.Equal(t, fernTestValueHidden, obj.Hidden) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrint", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} + var fernTestValuePrint bool + obj.SetPrint(fernTestValuePrint) + assert.Equal(t, fernTestValuePrint, obj.Print) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNoZoom", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} + var fernTestValueNoZoom bool + obj.SetNoZoom(fernTestValueNoZoom) + assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNoRotate", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} + var fernTestValueNoRotate bool + obj.SetNoRotate(fernTestValueNoRotate) + assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNoView", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} + var fernTestValueNoView bool + obj.SetNoView(fernTestValueNoView) + assert.Equal(t, fernTestValueNoView, obj.NoView) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetReadOnly", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} + var fernTestValueReadOnly bool + obj.SetReadOnly(fernTestValueReadOnly) + assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLocked", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} + var fernTestValueLocked bool + obj.SetLocked(fernTestValueLocked) + assert.Equal(t, fernTestValueLocked, obj.Locked) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetToggleNoView", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} + var fernTestValueToggleNoView bool + obj.SetToggleNoView(fernTestValueToggleNoView) + assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLockedContents", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} + var fernTestValueLockedContents bool + obj.SetLockedContents(fernTestValueLockedContents) + assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareFlags(t *testing.T) { + t.Run("GetInvisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} + var expected bool + obj.Invisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetInvisible(), "getter should return the property value") + }) + + t.Run("GetInvisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetInvisible() // Should return zero value + }) + + t.Run("GetHidden", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} + var expected bool + obj.Hidden = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") + }) + + t.Run("GetHidden_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetHidden() // Should return zero value + }) + + t.Run("GetPrint", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} + var expected bool + obj.Print = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") + }) + + t.Run("GetPrint_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrint() // Should return zero value + }) + + t.Run("GetNoZoom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} + var expected bool + obj.NoZoom = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") + }) + + t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNoZoom() // Should return zero value + }) + + t.Run("GetNoRotate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} + var expected bool + obj.NoRotate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") + }) + + t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNoRotate() // Should return zero value + }) + + t.Run("GetNoView", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} + var expected bool + obj.NoView = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") + }) + + t.Run("GetNoView_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNoView() // Should return zero value + }) + + t.Run("GetReadOnly", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} + var expected bool + obj.ReadOnly = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") + }) + + t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetReadOnly() // Should return zero value + }) + + t.Run("GetLocked", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} + var expected bool + obj.Locked = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") + }) + + t.Run("GetLocked_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLocked() // Should return zero value + }) + + t.Run("GetToggleNoView", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} + var expected bool + obj.ToggleNoView = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") + }) + + t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetToggleNoView() // Should return zero value + }) + + t.Run("GetLockedContents", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} + var expected bool + obj.LockedContents = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") + }) + + t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLockedContents() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareFlags(t *testing.T) { + t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} + var fernTestValueInvisible bool + + // Act + obj.SetInvisible(fernTestValueInvisible) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetHidden_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} + var fernTestValueHidden bool + + // Act + obj.SetHidden(fernTestValueHidden) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrint_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} + var fernTestValuePrint bool + + // Act + obj.SetPrint(fernTestValuePrint) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} + var fernTestValueNoZoom bool + + // Act + obj.SetNoZoom(fernTestValueNoZoom) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} + var fernTestValueNoRotate bool + + // Act + obj.SetNoRotate(fernTestValueNoRotate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNoView_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} + var fernTestValueNoView bool + + // Act + obj.SetNoView(fernTestValueNoView) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} + var fernTestValueReadOnly bool + + // Act + obj.SetReadOnly(fernTestValueReadOnly) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetLocked_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} + var fernTestValueLocked bool + + // Act + obj.SetLocked(fernTestValueLocked) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} + var fernTestValueToggleNoView bool + + // Act + obj.SetToggleNoView(fernTestValueToggleNoView) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} + var fernTestValueLockedContents bool + + // Act + obj.SetLockedContents(fernTestValueLockedContents) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo{} + var expected string + obj.Kind = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + }) + + t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKind() // Should return zero value + }) + + t.Run("GetObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber + obj.ObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + }) + + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo{} + obj.ObjectNumber = nil + + // Act & Assert + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + }) + + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo{} + obj.Nm = nil + + // Act & Assert + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo{} + obj.Index = nil + + // Act & Assert + assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex{} + var expected int + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + + t.Run("GetRevision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex{} + var expected *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision + obj.Revision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + }) + + t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex{} + obj.Revision = nil + + // Act & Assert + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + }) + + t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRevision() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex{} + var fernTestValueIndex int + + // Act + obj.SetIndex(fernTestValueIndex) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision + + // Act + obj.SetRevision(fernTestValueRevision) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision{} + var fernTestValueDocSessionID string + obj.SetDocSessionID(fernTestValueDocSessionID) + assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetGeneration", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision{} + var expected string + obj.DocSessionID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + }) + + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDocSessionID() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetGeneration", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision{} + var expected int + obj.Generation = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + }) + + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGeneration() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision{} + var fernTestValueDocSessionID string + + // Act + obj.SetDocSessionID(fernTestValueDocSessionID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision{} + var fernTestValueGeneration int + + // Act + obj.SetGeneration(fernTestValueGeneration) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm{} + var expected string + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm{} + var fernTestValueNm string + + // Act + obj.SetNm(fernTestValueNm) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + }) + + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAnnotObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int + + // Act + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor(t *testing.T) { + t.Run("SetR", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor{} + var fernTestValueR int + obj.SetR(fernTestValueR) + assert.Equal(t, fernTestValueR, obj.R) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetG", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor{} + var fernTestValueG int + obj.SetG(fernTestValueG) + assert.Equal(t, fernTestValueG, obj.G) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetB", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor{} + var expected int + obj.R = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") + }) + + t.Run("GetR_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetR() // Should return zero value + }) + + t.Run("GetG", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor{} + var expected int + obj.G = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") + }) + + t.Run("GetG_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetG() // Should return zero value + }) + + t.Run("GetB", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor{} + var expected int + obj.B = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + }) + + t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetB() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor{} + var fernTestValueR int + + // Act + obj.SetR(fernTestValueR) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor{} + var fernTestValueG int + + // Act + obj.SetG(fernTestValueG) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor{} + var fernTestValueB int + + // Act + obj.SetB(fernTestValueB) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareRect(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRect{} + var fernTestValueLeft float64 + obj.SetLeft(fernTestValueLeft) + assert.Equal(t, fernTestValueLeft, obj.Left) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBottom", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRect{} + var fernTestValueBottom float64 + obj.SetBottom(fernTestValueBottom) + assert.Equal(t, fernTestValueBottom, obj.Bottom) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRight", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRect{} + var fernTestValueRight float64 + obj.SetRight(fernTestValueRight) + assert.Equal(t, fernTestValueRight, obj.Right) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetTop", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRect{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRect{} + var expected float64 + obj.Left = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") + }) + + t.Run("GetLeft_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLeft() // Should return zero value + }) + + t.Run("GetBottom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRect{} + var expected float64 + obj.Bottom = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") + }) + + t.Run("GetBottom_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBottom() // Should return zero value + }) + + t.Run("GetRight", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRect{} + var expected float64 + obj.Right = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") + }) + + t.Run("GetRight_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRight() // Should return zero value + }) + + t.Run("GetTop", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRect{} + var expected float64 + obj.Top = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + }) + + t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetTop() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRect{} + var fernTestValueLeft float64 + + // Act + obj.SetLeft(fernTestValueLeft) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRect{} + var fernTestValueBottom float64 + + // Act + obj.SetBottom(fernTestValueBottom) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRight_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRect{} + var fernTestValueRight float64 + + // Act + obj.SetRight(fernTestValueRight) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRect{} + var fernTestValueTop float64 + + // Act + obj.SetTop(fernTestValueTop) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences{} + var fernTestValueLeft float64 + obj.SetLeft(fernTestValueLeft) + assert.Equal(t, fernTestValueLeft, obj.Left) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetTop", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRight", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences{} + var fernTestValueRight float64 + obj.SetRight(fernTestValueRight) + assert.Equal(t, fernTestValueRight, obj.Right) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBottom", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences{} + var fernTestValueBottom float64 + obj.SetBottom(fernTestValueBottom) + assert.Equal(t, fernTestValueBottom, obj.Bottom) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences{} + var expected float64 + obj.Left = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") + }) + + t.Run("GetLeft_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLeft() // Should return zero value + }) + + t.Run("GetTop", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences{} + var expected float64 + obj.Top = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + }) + + t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetTop() // Should return zero value + }) + + t.Run("GetRight", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences{} + var expected float64 + obj.Right = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") + }) + + t.Run("GetRight_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRight() // Should return zero value + }) + + t.Run("GetBottom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences{} + var expected float64 + obj.Bottom = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") + }) + + t.Run("GetBottom_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBottom() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences{} + var fernTestValueLeft float64 + + // Act + obj.SetLeft(fernTestValueLeft) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences{} + var fernTestValueTop float64 + + // Act + obj.SetTop(fernTestValueTop) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRight_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences{} + var fernTestValueRight float64 + + // Act + obj.SetRight(fernTestValueRight) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences{} + var fernTestValueBottom float64 + + // Act + obj.SetBottom(fernTestValueBottom) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRef{} + var expected string + obj.Kind = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + }) + + t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKind() // Should return zero value + }) + + t.Run("GetObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber + obj.ObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + }) + + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRef{} + obj.ObjectNumber = nil + + // Act & Assert + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + }) + + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemSquareRefNm + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRef{} + obj.Nm = nil + + // Act & Assert + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRef{} + obj.Index = nil + + // Act & Assert + assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareRefIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex{} + var expected int + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + + t.Run("GetRevision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex{} + var expected *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision + obj.Revision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + }) + + t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex{} + obj.Revision = nil + + // Act & Assert + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + }) + + t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRevision() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex{} + var fernTestValueIndex int + + // Act + obj.SetIndex(fernTestValueIndex) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision + + // Act + obj.SetRevision(fernTestValueRevision) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision{} + var fernTestValueDocSessionID string + obj.SetDocSessionID(fernTestValueDocSessionID) + assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetGeneration", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision{} + var expected string + obj.DocSessionID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + }) + + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDocSessionID() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetGeneration", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision{} + var expected int + obj.Generation = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + }) + + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGeneration() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision{} + var fernTestValueDocSessionID string + + // Act + obj.SetDocSessionID(fernTestValueDocSessionID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision{} + var fernTestValueGeneration int + + // Act + obj.SetGeneration(fernTestValueGeneration) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareRefNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefNm{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareRefNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefNm{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRefNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefNm{} + var expected string + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRefNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareRefNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefNm{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefNm{} + var fernTestValueNm string + + // Act + obj.SetNm(fernTestValueNm) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + }) + + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAnnotObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber{} + var fernTestValueAnnotObjectNumber int + + // Act + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect{} + var fernTestValueLeft float64 + obj.SetLeft(fernTestValueLeft) + assert.Equal(t, fernTestValueLeft, obj.Left) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBottom", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect{} + var fernTestValueBottom float64 + obj.SetBottom(fernTestValueBottom) + assert.Equal(t, fernTestValueBottom, obj.Bottom) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRight", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect{} + var fernTestValueRight float64 + obj.SetRight(fernTestValueRight) + assert.Equal(t, fernTestValueRight, obj.Right) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetTop", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect{} + var expected float64 + obj.Left = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") + }) + + t.Run("GetLeft_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLeft() // Should return zero value + }) + + t.Run("GetBottom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect{} + var expected float64 + obj.Bottom = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") + }) + + t.Run("GetBottom_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBottom() // Should return zero value + }) + + t.Run("GetRight", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect{} + var expected float64 + obj.Right = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") + }) + + t.Run("GetRight_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRight() // Should return zero value + }) + + t.Run("GetTop", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect{} + var expected float64 + obj.Top = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + }) + + t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetTop() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect{} + var fernTestValueLeft float64 + + // Act + obj.SetLeft(fernTestValueLeft) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect{} + var fernTestValueBottom float64 + + // Act + obj.SetBottom(fernTestValueBottom) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRight_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect{} + var fernTestValueRight float64 + + // Act + obj.SetRight(fernTestValueRight) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect{} + var fernTestValueTop float64 + + // Act + obj.SetTop(fernTestValueTop) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquiggly(t *testing.T) { + t.Run("SetRef", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemSquigglyRef + obj.SetRef(fernTestValueRef) + assert.Equal(t, fernTestValueRef, obj.Ref) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIdentityQuality", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQuality + obj.SetIdentityQuality(fernTestValueIdentityQuality) + assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueNm *string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFlags", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags + obj.SetFlags(fernTestValueFlags) + assert.Equal(t, fernTestValueFlags, obj.Flags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRect", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect + obj.SetRect(fernTestValueRect) + assert.Equal(t, fernTestValueRect, obj.Rect) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetContents", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueContents *string + obj.SetContents(fernTestValueContents) + assert.Equal(t, fernTestValueContents, obj.Contents) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubject", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueSubject *string + obj.SetSubject(fernTestValueSubject) + assert.Equal(t, fernTestValueSubject, obj.Subject) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAuthor", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueAuthor *string + obj.SetAuthor(fernTestValueAuthor) + assert.Equal(t, fernTestValueAuthor, obj.Author) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCreated", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueCreated *time.Time + obj.SetCreated(fernTestValueCreated) + assert.Equal(t, fernTestValueCreated, obj.Created) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetModified", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueModified *time.Time + obj.SetModified(fernTestValueModified) + assert.Equal(t, fernTestValueModified, obj.Modified) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBlendMode", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode + obj.SetBlendMode(fernTestValueBlendMode) + assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetInReplyTo", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo + obj.SetInReplyTo(fernTestValueInReplyTo) + assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetReplyType", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyType + obj.SetReplyType(fernTestValueReplyType) + assert.Equal(t, fernTestValueReplyType, obj.ReplyType) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetUserID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueUserID *string + obj.SetUserID(fernTestValueUserID) + assert.Equal(t, fernTestValueUserID, obj.UserID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetGroupID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueGroupID *string + obj.SetGroupID(fernTestValueGroupID) + assert.Equal(t, fernTestValueGroupID, obj.GroupID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCreatedBy", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueCreatedBy *string + obj.SetCreatedBy(fernTestValueCreatedBy) + assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetUpdatedBy", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueUpdatedBy *string + obj.SetUpdatedBy(fernTestValueUpdatedBy) + assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetActions", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueActions *PdfAnnotationActions + obj.SetActions(fernTestValueActions) + assert.Equal(t, fernTestValueActions, obj.Actions) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetColor", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor + obj.SetColor(fernTestValueColor) + assert.Equal(t, fernTestValueColor, obj.Color) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetOpacity", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueOpacity float64 + obj.SetOpacity(fernTestValueOpacity) + assert.Equal(t, fernTestValueOpacity, obj.Opacity) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetQuadPoints", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueQuadPoints []*DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem + obj.SetQuadPoints(fernTestValueQuadPoints) + assert.Equal(t, fernTestValueQuadPoints, obj.QuadPoints) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquiggly(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyRef + obj.Ref = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") + }) + + t.Run("GetRef_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + obj.Ref = nil + + // Act & Assert + assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") + }) + + t.Run("GetRef_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRef() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var expected int + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + + t.Run("GetIdentityQuality", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var expected DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQuality + obj.IdentityQuality = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIdentityQuality(), "getter should return the property value") + }) + + t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIdentityQuality() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var expected *string + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + obj.Nm = nil + + // Act & Assert + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + + t.Run("GetFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags + obj.Flags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") + }) + + t.Run("GetFlags_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + obj.Flags = nil + + // Act & Assert + assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") + }) + + t.Run("GetFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFlags() // Should return zero value + }) + + t.Run("GetRect", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect + obj.Rect = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRect(), "getter should return the property value") + }) + + t.Run("GetRect_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + obj.Rect = nil + + // Act & Assert + assert.Nil(t, obj.GetRect(), "getter should return nil when property is nil") + }) + + t.Run("GetRect_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRect() // Should return zero value + }) + + t.Run("GetContents", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var expected *string + obj.Contents = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetContents(), "getter should return the property value") + }) + + t.Run("GetContents_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + obj.Contents = nil + + // Act & Assert + assert.Nil(t, obj.GetContents(), "getter should return nil when property is nil") + }) + + t.Run("GetContents_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetContents() // Should return zero value + }) + + t.Run("GetSubject", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var expected *string + obj.Subject = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSubject(), "getter should return the property value") + }) + + t.Run("GetSubject_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + obj.Subject = nil + + // Act & Assert + assert.Nil(t, obj.GetSubject(), "getter should return nil when property is nil") + }) + + t.Run("GetSubject_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSubject() // Should return zero value + }) + + t.Run("GetAuthor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var expected *string + obj.Author = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAuthor(), "getter should return the property value") + }) + + t.Run("GetAuthor_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + obj.Author = nil + + // Act & Assert + assert.Nil(t, obj.GetAuthor(), "getter should return nil when property is nil") + }) + + t.Run("GetAuthor_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAuthor() // Should return zero value + }) + + t.Run("GetCreated", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var expected *time.Time + obj.Created = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCreated(), "getter should return the property value") + }) + + t.Run("GetCreated_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + obj.Created = nil + + // Act & Assert + assert.Nil(t, obj.GetCreated(), "getter should return nil when property is nil") + }) + + t.Run("GetCreated_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCreated() // Should return zero value + }) + + t.Run("GetModified", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var expected *time.Time + obj.Modified = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") + }) + + t.Run("GetModified_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + obj.Modified = nil + + // Act & Assert + assert.Nil(t, obj.GetModified(), "getter should return nil when property is nil") + }) + + t.Run("GetModified_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetModified() // Should return zero value + }) + + t.Run("GetBlendMode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var expected DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode + obj.BlendMode = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBlendMode(), "getter should return the property value") + }) + + t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBlendMode() // Should return zero value + }) + + t.Run("GetInReplyTo", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo + obj.InReplyTo = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetInReplyTo(), "getter should return the property value") + }) + + t.Run("GetInReplyTo_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + obj.InReplyTo = nil + + // Act & Assert + assert.Nil(t, obj.GetInReplyTo(), "getter should return nil when property is nil") + }) + + t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetInReplyTo() // Should return zero value + }) + + t.Run("GetReplyType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyType + obj.ReplyType = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetReplyType(), "getter should return the property value") + }) + + t.Run("GetReplyType_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + obj.ReplyType = nil + + // Act & Assert + assert.Nil(t, obj.GetReplyType(), "getter should return nil when property is nil") + }) + + t.Run("GetReplyType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetReplyType() // Should return zero value + }) + + t.Run("GetUserID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var expected *string + obj.UserID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") + }) + + t.Run("GetUserID_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + obj.UserID = nil + + // Act & Assert + assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") + }) + + t.Run("GetUserID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUserID() // Should return zero value + }) + + t.Run("GetGroupID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var expected *string + obj.GroupID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetGroupID(), "getter should return the property value") + }) + + t.Run("GetGroupID_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + obj.GroupID = nil + + // Act & Assert + assert.Nil(t, obj.GetGroupID(), "getter should return nil when property is nil") + }) + + t.Run("GetGroupID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGroupID() // Should return zero value + }) + + t.Run("GetCreatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var expected *string + obj.CreatedBy = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") + }) + + t.Run("GetCreatedBy_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + obj.CreatedBy = nil + + // Act & Assert + assert.Nil(t, obj.GetCreatedBy(), "getter should return nil when property is nil") + }) + + t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCreatedBy() // Should return zero value + }) + + t.Run("GetUpdatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var expected *string + obj.UpdatedBy = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUpdatedBy(), "getter should return the property value") + }) + + t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + obj.UpdatedBy = nil + + // Act & Assert + assert.Nil(t, obj.GetUpdatedBy(), "getter should return nil when property is nil") + }) + + t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUpdatedBy() // Should return zero value + }) + + t.Run("GetActions", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var expected *PdfAnnotationActions + obj.Actions = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") + }) + + t.Run("GetActions_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + obj.Actions = nil + + // Act & Assert + assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") + }) + + t.Run("GetActions_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetActions() // Should return zero value + }) + + t.Run("GetColor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor + obj.Color = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") + }) + + t.Run("GetColor_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + obj.Color = nil + + // Act & Assert + assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") + }) + + t.Run("GetColor_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetColor() // Should return zero value + }) + + t.Run("GetOpacity", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var expected float64 + obj.Opacity = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetOpacity(), "getter should return the property value") + }) + + t.Run("GetOpacity_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetOpacity() // Should return zero value + }) + + t.Run("GetQuadPoints", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var expected []*DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem + obj.QuadPoints = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetQuadPoints(), "getter should return the property value") + }) + + t.Run("GetQuadPoints_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + obj.QuadPoints = nil + + // Act & Assert + assert.Nil(t, obj.GetQuadPoints(), "getter should return nil when property is nil") + }) + + t.Run("GetQuadPoints_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetQuadPoints() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemSquigglyRef + + // Act + obj.SetRef(fernTestValueRef) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueIndex int + + // Act + obj.SetIndex(fernTestValueIndex) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQuality + + // Act + obj.SetIdentityQuality(fernTestValueIdentityQuality) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueNm *string + + // Act + obj.SetNm(fernTestValueNm) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags + + // Act + obj.SetFlags(fernTestValueFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRect_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect + + // Act + obj.SetRect(fernTestValueRect) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetContents_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueContents *string + + // Act + obj.SetContents(fernTestValueContents) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubject_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueSubject *string + + // Act + obj.SetSubject(fernTestValueSubject) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueAuthor *string + + // Act + obj.SetAuthor(fernTestValueAuthor) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCreated_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueCreated *time.Time + + // Act + obj.SetCreated(fernTestValueCreated) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetModified_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueModified *time.Time + + // Act + obj.SetModified(fernTestValueModified) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode + + // Act + obj.SetBlendMode(fernTestValueBlendMode) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo + + // Act + obj.SetInReplyTo(fernTestValueInReplyTo) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyType + + // Act + obj.SetReplyType(fernTestValueReplyType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetUserID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueUserID *string + + // Act + obj.SetUserID(fernTestValueUserID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueGroupID *string + + // Act + obj.SetGroupID(fernTestValueGroupID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueCreatedBy *string + + // Act + obj.SetCreatedBy(fernTestValueCreatedBy) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueUpdatedBy *string + + // Act + obj.SetUpdatedBy(fernTestValueUpdatedBy) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueActions *PdfAnnotationActions + + // Act + obj.SetActions(fernTestValueActions) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetColor_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor + + // Act + obj.SetColor(fernTestValueColor) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueOpacity float64 + + // Act + obj.SetOpacity(fernTestValueOpacity) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetQuadPoints_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} + var fernTestValueQuadPoints []*DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem + + // Act + obj.SetQuadPoints(fernTestValueQuadPoints) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyColor(t *testing.T) { + t.Run("SetR", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyColor{} + var fernTestValueR int + obj.SetR(fernTestValueR) + assert.Equal(t, fernTestValueR, obj.R) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetG", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyColor{} + var fernTestValueG int + obj.SetG(fernTestValueG) + assert.Equal(t, fernTestValueG, obj.G) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetB", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyColor{} + var expected int + obj.R = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") + }) + + t.Run("GetR_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetR() // Should return zero value + }) + + t.Run("GetG", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyColor{} + var expected int + obj.G = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") + }) + + t.Run("GetG_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetG() // Should return zero value + }) + + t.Run("GetB", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyColor{} + var expected int + obj.B = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + }) + + t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetB() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquigglyColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyColor{} + var fernTestValueR int + + // Act + obj.SetR(fernTestValueR) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyColor{} + var fernTestValueG int + + // Act + obj.SetG(fernTestValueG) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyColor{} + var fernTestValueB int + + // Act + obj.SetB(fernTestValueB) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyFlags(t *testing.T) { + t.Run("SetInvisible", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} + var fernTestValueInvisible bool + obj.SetInvisible(fernTestValueInvisible) + assert.Equal(t, fernTestValueInvisible, obj.Invisible) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetHidden", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} + var fernTestValueHidden bool + obj.SetHidden(fernTestValueHidden) + assert.Equal(t, fernTestValueHidden, obj.Hidden) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrint", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} + var fernTestValuePrint bool + obj.SetPrint(fernTestValuePrint) + assert.Equal(t, fernTestValuePrint, obj.Print) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNoZoom", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} + var fernTestValueNoZoom bool + obj.SetNoZoom(fernTestValueNoZoom) + assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNoRotate", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} + var fernTestValueNoRotate bool + obj.SetNoRotate(fernTestValueNoRotate) + assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNoView", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} + var fernTestValueNoView bool + obj.SetNoView(fernTestValueNoView) + assert.Equal(t, fernTestValueNoView, obj.NoView) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetReadOnly", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} + var fernTestValueReadOnly bool + obj.SetReadOnly(fernTestValueReadOnly) + assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLocked", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} + var fernTestValueLocked bool + obj.SetLocked(fernTestValueLocked) + assert.Equal(t, fernTestValueLocked, obj.Locked) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetToggleNoView", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} + var fernTestValueToggleNoView bool + obj.SetToggleNoView(fernTestValueToggleNoView) + assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLockedContents", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} + var fernTestValueLockedContents bool + obj.SetLockedContents(fernTestValueLockedContents) + assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyFlags(t *testing.T) { + t.Run("GetInvisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} + var expected bool + obj.Invisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetInvisible(), "getter should return the property value") + }) + + t.Run("GetInvisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetInvisible() // Should return zero value + }) + + t.Run("GetHidden", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} + var expected bool + obj.Hidden = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") + }) + + t.Run("GetHidden_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetHidden() // Should return zero value + }) + + t.Run("GetPrint", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} + var expected bool + obj.Print = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") + }) + + t.Run("GetPrint_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrint() // Should return zero value + }) + + t.Run("GetNoZoom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} + var expected bool + obj.NoZoom = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") + }) + + t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNoZoom() // Should return zero value + }) + + t.Run("GetNoRotate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} + var expected bool + obj.NoRotate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") + }) + + t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNoRotate() // Should return zero value + }) + + t.Run("GetNoView", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} + var expected bool + obj.NoView = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") + }) + + t.Run("GetNoView_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNoView() // Should return zero value + }) + + t.Run("GetReadOnly", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} + var expected bool + obj.ReadOnly = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") + }) + + t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetReadOnly() // Should return zero value + }) + + t.Run("GetLocked", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} + var expected bool + obj.Locked = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") + }) + + t.Run("GetLocked_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLocked() // Should return zero value + }) + + t.Run("GetToggleNoView", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} + var expected bool + obj.ToggleNoView = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") + }) + + t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetToggleNoView() // Should return zero value + }) + + t.Run("GetLockedContents", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} + var expected bool + obj.LockedContents = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") + }) + + t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLockedContents() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquigglyFlags(t *testing.T) { + t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} + var fernTestValueInvisible bool + + // Act + obj.SetInvisible(fernTestValueInvisible) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetHidden_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} + var fernTestValueHidden bool + + // Act + obj.SetHidden(fernTestValueHidden) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrint_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} + var fernTestValuePrint bool + + // Act + obj.SetPrint(fernTestValuePrint) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} + var fernTestValueNoZoom bool + + // Act + obj.SetNoZoom(fernTestValueNoZoom) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} + var fernTestValueNoRotate bool + + // Act + obj.SetNoRotate(fernTestValueNoRotate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNoView_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} + var fernTestValueNoView bool + + // Act + obj.SetNoView(fernTestValueNoView) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} + var fernTestValueReadOnly bool + + // Act + obj.SetReadOnly(fernTestValueReadOnly) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetLocked_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} + var fernTestValueLocked bool + + // Act + obj.SetLocked(fernTestValueLocked) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} + var fernTestValueToggleNoView bool + + // Act + obj.SetToggleNoView(fernTestValueToggleNoView) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} + var fernTestValueLockedContents bool + + // Act + obj.SetLockedContents(fernTestValueLockedContents) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo{} + var expected string + obj.Kind = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + }) + + t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKind() // Should return zero value + }) + + t.Run("GetObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber + obj.ObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + }) + + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo{} + obj.ObjectNumber = nil + + // Act & Assert + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + }) + + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo{} + obj.Nm = nil + + // Act & Assert + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo{} + obj.Index = nil + + // Act & Assert + assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex{} + var expected int + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + + t.Run("GetRevision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex{} + var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision + obj.Revision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + }) + + t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex{} + obj.Revision = nil + + // Act & Assert + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + }) + + t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRevision() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex{} + var fernTestValueIndex int + + // Act + obj.SetIndex(fernTestValueIndex) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision + + // Act + obj.SetRevision(fernTestValueRevision) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision{} + var fernTestValueDocSessionID string + obj.SetDocSessionID(fernTestValueDocSessionID) + assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetGeneration", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision{} + var expected string + obj.DocSessionID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + }) + + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDocSessionID() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetGeneration", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision{} + var expected int + obj.Generation = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + }) + + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGeneration() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision{} + var fernTestValueDocSessionID string + + // Act + obj.SetDocSessionID(fernTestValueDocSessionID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision{} + var fernTestValueGeneration int + + // Act + obj.SetGeneration(fernTestValueGeneration) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm{} + var expected string + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm{} + var fernTestValueNm string + + // Act + obj.SetNm(fernTestValueNm) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + }) + + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAnnotObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int + + // Act + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem(t *testing.T) { + t.Run("SetP1", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} + var fernTestValueP1 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1 + obj.SetP1(fernTestValueP1) + assert.Equal(t, fernTestValueP1, obj.P1) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetP2", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} + var fernTestValueP2 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2 + obj.SetP2(fernTestValueP2) + assert.Equal(t, fernTestValueP2, obj.P2) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetP3", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} + var fernTestValueP3 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3 + obj.SetP3(fernTestValueP3) + assert.Equal(t, fernTestValueP3, obj.P3) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetP4", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} + var fernTestValueP4 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4 + obj.SetP4(fernTestValueP4) + assert.Equal(t, fernTestValueP4, obj.P4) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem(t *testing.T) { + t.Run("GetP1", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1 + obj.P1 = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetP1(), "getter should return the property value") + }) + + t.Run("GetP1_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} + obj.P1 = nil + + // Act & Assert + assert.Nil(t, obj.GetP1(), "getter should return nil when property is nil") + }) + + t.Run("GetP1_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetP1() // Should return zero value + }) + + t.Run("GetP2", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2 + obj.P2 = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetP2(), "getter should return the property value") + }) + + t.Run("GetP2_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} + obj.P2 = nil + + // Act & Assert + assert.Nil(t, obj.GetP2(), "getter should return nil when property is nil") + }) + + t.Run("GetP2_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetP2() // Should return zero value + }) + + t.Run("GetP3", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3 + obj.P3 = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetP3(), "getter should return the property value") + }) + + t.Run("GetP3_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} + obj.P3 = nil + + // Act & Assert + assert.Nil(t, obj.GetP3(), "getter should return nil when property is nil") + }) + + t.Run("GetP3_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetP3() // Should return zero value + }) + + t.Run("GetP4", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4 + obj.P4 = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetP4(), "getter should return the property value") + }) + + t.Run("GetP4_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} + obj.P4 = nil + + // Act & Assert + assert.Nil(t, obj.GetP4(), "getter should return nil when property is nil") + }) + + t.Run("GetP4_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetP4() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem(t *testing.T) { + t.Run("SetP1_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} + var fernTestValueP1 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1 + + // Act + obj.SetP1(fernTestValueP1) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetP2_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} + var fernTestValueP2 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2 + + // Act + obj.SetP2(fernTestValueP2) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetP3_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} + var fernTestValueP3 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3 + + // Act + obj.SetP3(fernTestValueP3) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetP4_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} + var fernTestValueP4 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4 + + // Act + obj.SetP4(fernTestValueP4) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1(t *testing.T) { + t.Run("GetX", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1{} + var expected float64 + obj.X = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1{} + var expected float64 + obj.Y = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + }) + + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1{} + var fernTestValueX float64 + + // Act + obj.SetX(fernTestValueX) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1{} + var fernTestValueY float64 + + // Act + obj.SetY(fernTestValueY) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2(t *testing.T) { + t.Run("GetX", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2{} + var expected float64 + obj.X = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2{} + var expected float64 + obj.Y = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + }) + + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2{} + var fernTestValueX float64 + + // Act + obj.SetX(fernTestValueX) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2{} + var fernTestValueY float64 + + // Act + obj.SetY(fernTestValueY) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3(t *testing.T) { + t.Run("GetX", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3{} + var expected float64 + obj.X = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3{} + var expected float64 + obj.Y = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + }) + + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3{} + var fernTestValueX float64 + + // Act + obj.SetX(fernTestValueX) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3{} + var fernTestValueY float64 + + // Act + obj.SetY(fernTestValueY) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4(t *testing.T) { + t.Run("GetX", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4{} + var expected float64 + obj.X = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4{} + var expected float64 + obj.Y = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + }) + + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4{} + var fernTestValueX float64 + + // Act + obj.SetX(fernTestValueX) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4{} + var fernTestValueY float64 + + // Act + obj.SetY(fernTestValueY) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyRect(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRect{} + var fernTestValueLeft float64 + obj.SetLeft(fernTestValueLeft) + assert.Equal(t, fernTestValueLeft, obj.Left) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBottom", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRect{} + var fernTestValueBottom float64 + obj.SetBottom(fernTestValueBottom) + assert.Equal(t, fernTestValueBottom, obj.Bottom) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRight", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRect{} + var fernTestValueRight float64 + obj.SetRight(fernTestValueRight) + assert.Equal(t, fernTestValueRight, obj.Right) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetTop", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRect{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRect{} + var expected float64 + obj.Left = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") + }) + + t.Run("GetLeft_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLeft() // Should return zero value + }) + + t.Run("GetBottom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRect{} + var expected float64 + obj.Bottom = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") + }) + + t.Run("GetBottom_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBottom() // Should return zero value + }) + + t.Run("GetRight", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRect{} + var expected float64 + obj.Right = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") + }) + + t.Run("GetRight_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRight() // Should return zero value + }) + + t.Run("GetTop", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRect{} + var expected float64 + obj.Top = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + }) + + t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetTop() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquigglyRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRect{} + var fernTestValueLeft float64 + + // Act + obj.SetLeft(fernTestValueLeft) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRect{} + var fernTestValueBottom float64 + + // Act + obj.SetBottom(fernTestValueBottom) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRight_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRect{} + var fernTestValueRight float64 + + // Act + obj.SetRight(fernTestValueRight) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRect{} + var fernTestValueTop float64 + + // Act + obj.SetTop(fernTestValueTop) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRef{} + var expected string + obj.Kind = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + }) + + t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKind() // Should return zero value + }) + + t.Run("GetObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber + obj.ObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + }) + + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRef{} + obj.ObjectNumber = nil + + // Act & Assert + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + }) + + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRef{} + obj.Nm = nil + + // Act & Assert + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRef{} + obj.Index = nil + + // Act & Assert + assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex{} + var expected int + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + + t.Run("GetRevision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex{} + var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision + obj.Revision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + }) + + t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex{} + obj.Revision = nil + + // Act & Assert + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + }) + + t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRevision() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex{} + var fernTestValueIndex int + + // Act + obj.SetIndex(fernTestValueIndex) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision + + // Act + obj.SetRevision(fernTestValueRevision) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision{} + var fernTestValueDocSessionID string + obj.SetDocSessionID(fernTestValueDocSessionID) + assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetGeneration", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision{} + var expected string + obj.DocSessionID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + }) + + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDocSessionID() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetGeneration", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision{} + var expected int + obj.Generation = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + }) + + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGeneration() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision{} + var fernTestValueDocSessionID string + + // Act + obj.SetDocSessionID(fernTestValueDocSessionID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision{} + var fernTestValueGeneration int + + // Act + obj.SetGeneration(fernTestValueGeneration) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm{} + var expected string + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm{} + var fernTestValueNm string + + // Act + obj.SetNm(fernTestValueNm) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + }) + + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAnnotObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber{} + var fernTestValueAnnotObjectNumber int + + // Act + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemStamp(t *testing.T) { + t.Run("SetRef", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemStampRef + obj.SetRef(fernTestValueRef) + assert.Equal(t, fernTestValueRef, obj.Ref) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIdentityQuality", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemStampIdentityQuality + obj.SetIdentityQuality(fernTestValueIdentityQuality) + assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueNm *string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFlags", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemStampFlags + obj.SetFlags(fernTestValueFlags) + assert.Equal(t, fernTestValueFlags, obj.Flags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRect", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemStampRect + obj.SetRect(fernTestValueRect) + assert.Equal(t, fernTestValueRect, obj.Rect) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetContents", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueContents *string + obj.SetContents(fernTestValueContents) + assert.Equal(t, fernTestValueContents, obj.Contents) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubject", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueSubject *string + obj.SetSubject(fernTestValueSubject) + assert.Equal(t, fernTestValueSubject, obj.Subject) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAuthor", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueAuthor *string + obj.SetAuthor(fernTestValueAuthor) + assert.Equal(t, fernTestValueAuthor, obj.Author) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCreated", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueCreated *time.Time + obj.SetCreated(fernTestValueCreated) + assert.Equal(t, fernTestValueCreated, obj.Created) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetModified", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueModified *time.Time + obj.SetModified(fernTestValueModified) + assert.Equal(t, fernTestValueModified, obj.Modified) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBlendMode", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemStampBlendMode + obj.SetBlendMode(fernTestValueBlendMode) + assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetInReplyTo", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo + obj.SetInReplyTo(fernTestValueInReplyTo) + assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetReplyType", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemStampReplyType + obj.SetReplyType(fernTestValueReplyType) + assert.Equal(t, fernTestValueReplyType, obj.ReplyType) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetUserID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueUserID *string + obj.SetUserID(fernTestValueUserID) + assert.Equal(t, fernTestValueUserID, obj.UserID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetGroupID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueGroupID *string + obj.SetGroupID(fernTestValueGroupID) + assert.Equal(t, fernTestValueGroupID, obj.GroupID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCreatedBy", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueCreatedBy *string + obj.SetCreatedBy(fernTestValueCreatedBy) + assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetUpdatedBy", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueUpdatedBy *string + obj.SetUpdatedBy(fernTestValueUpdatedBy) + assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetActions", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueActions *PdfAnnotationActions + obj.SetActions(fernTestValueActions) + assert.Equal(t, fernTestValueActions, obj.Actions) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetName", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueName *string + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRotation", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueRotation *float64 + obj.SetRotation(fernTestValueRotation) + assert.Equal(t, fernTestValueRotation, obj.Rotation) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetUnrotatedRect", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueUnrotatedRect *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect + obj.SetUnrotatedRect(fernTestValueUnrotatedRect) + assert.Equal(t, fernTestValueUnrotatedRect, obj.UnrotatedRect) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemStamp(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var expected *DocAnnotationsList200ResponseAnnotationsItemStampRef + obj.Ref = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") + }) + + t.Run("GetRef_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + obj.Ref = nil + + // Act & Assert + assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") + }) + + t.Run("GetRef_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRef() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var expected int + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + + t.Run("GetIdentityQuality", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var expected DocAnnotationsList200ResponseAnnotationsItemStampIdentityQuality + obj.IdentityQuality = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIdentityQuality(), "getter should return the property value") + }) + + t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIdentityQuality() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var expected *string + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + obj.Nm = nil + + // Act & Assert + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + + t.Run("GetFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var expected *DocAnnotationsList200ResponseAnnotationsItemStampFlags + obj.Flags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") + }) + + t.Run("GetFlags_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + obj.Flags = nil + + // Act & Assert + assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") + }) + + t.Run("GetFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFlags() // Should return zero value + }) + + t.Run("GetRect", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var expected *DocAnnotationsList200ResponseAnnotationsItemStampRect + obj.Rect = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRect(), "getter should return the property value") + }) + + t.Run("GetRect_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + obj.Rect = nil + + // Act & Assert + assert.Nil(t, obj.GetRect(), "getter should return nil when property is nil") + }) + + t.Run("GetRect_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRect() // Should return zero value + }) + + t.Run("GetContents", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var expected *string + obj.Contents = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetContents(), "getter should return the property value") + }) + + t.Run("GetContents_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + obj.Contents = nil + + // Act & Assert + assert.Nil(t, obj.GetContents(), "getter should return nil when property is nil") + }) + + t.Run("GetContents_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetContents() // Should return zero value + }) + + t.Run("GetSubject", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var expected *string + obj.Subject = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSubject(), "getter should return the property value") + }) + + t.Run("GetSubject_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + obj.Subject = nil + + // Act & Assert + assert.Nil(t, obj.GetSubject(), "getter should return nil when property is nil") + }) + + t.Run("GetSubject_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSubject() // Should return zero value + }) + + t.Run("GetAuthor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var expected *string + obj.Author = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAuthor(), "getter should return the property value") + }) + + t.Run("GetAuthor_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + obj.Author = nil + + // Act & Assert + assert.Nil(t, obj.GetAuthor(), "getter should return nil when property is nil") + }) + + t.Run("GetAuthor_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAuthor() // Should return zero value + }) + + t.Run("GetCreated", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var expected *time.Time + obj.Created = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCreated(), "getter should return the property value") + }) + + t.Run("GetCreated_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + obj.Created = nil + + // Act & Assert + assert.Nil(t, obj.GetCreated(), "getter should return nil when property is nil") + }) + + t.Run("GetCreated_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCreated() // Should return zero value + }) + + t.Run("GetModified", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var expected *time.Time + obj.Modified = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") + }) + + t.Run("GetModified_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + obj.Modified = nil + + // Act & Assert + assert.Nil(t, obj.GetModified(), "getter should return nil when property is nil") + }) + + t.Run("GetModified_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetModified() // Should return zero value + }) + + t.Run("GetBlendMode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var expected DocAnnotationsList200ResponseAnnotationsItemStampBlendMode + obj.BlendMode = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBlendMode(), "getter should return the property value") + }) + + t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBlendMode() // Should return zero value + }) + + t.Run("GetInReplyTo", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var expected *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo + obj.InReplyTo = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetInReplyTo(), "getter should return the property value") + }) + + t.Run("GetInReplyTo_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + obj.InReplyTo = nil + + // Act & Assert + assert.Nil(t, obj.GetInReplyTo(), "getter should return nil when property is nil") + }) + + t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetInReplyTo() // Should return zero value + }) + + t.Run("GetReplyType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var expected *DocAnnotationsList200ResponseAnnotationsItemStampReplyType + obj.ReplyType = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetReplyType(), "getter should return the property value") + }) + + t.Run("GetReplyType_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + obj.ReplyType = nil + + // Act & Assert + assert.Nil(t, obj.GetReplyType(), "getter should return nil when property is nil") + }) + + t.Run("GetReplyType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetReplyType() // Should return zero value + }) + + t.Run("GetUserID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var expected *string + obj.UserID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") + }) + + t.Run("GetUserID_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + obj.UserID = nil + + // Act & Assert + assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") + }) + + t.Run("GetUserID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUserID() // Should return zero value + }) + + t.Run("GetGroupID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var expected *string + obj.GroupID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetGroupID(), "getter should return the property value") + }) + + t.Run("GetGroupID_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + obj.GroupID = nil + + // Act & Assert + assert.Nil(t, obj.GetGroupID(), "getter should return nil when property is nil") + }) + + t.Run("GetGroupID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGroupID() // Should return zero value + }) + + t.Run("GetCreatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var expected *string + obj.CreatedBy = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") + }) + + t.Run("GetCreatedBy_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + obj.CreatedBy = nil + + // Act & Assert + assert.Nil(t, obj.GetCreatedBy(), "getter should return nil when property is nil") + }) + + t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCreatedBy() // Should return zero value + }) + + t.Run("GetUpdatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var expected *string + obj.UpdatedBy = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUpdatedBy(), "getter should return the property value") + }) + + t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + obj.UpdatedBy = nil + + // Act & Assert + assert.Nil(t, obj.GetUpdatedBy(), "getter should return nil when property is nil") + }) + + t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUpdatedBy() // Should return zero value + }) + + t.Run("GetActions", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var expected *PdfAnnotationActions + obj.Actions = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") + }) + + t.Run("GetActions_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + obj.Actions = nil + + // Act & Assert + assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") + }) + + t.Run("GetActions_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetActions() // Should return zero value + }) + + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var expected *string + obj.Name = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + }) + + t.Run("GetName_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + obj.Name = nil + + // Act & Assert + assert.Nil(t, obj.GetName(), "getter should return nil when property is nil") + }) + + t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetName() // Should return zero value + }) + + t.Run("GetRotation", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var expected *float64 + obj.Rotation = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRotation(), "getter should return the property value") + }) + + t.Run("GetRotation_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + obj.Rotation = nil + + // Act & Assert + assert.Nil(t, obj.GetRotation(), "getter should return nil when property is nil") + }) + + t.Run("GetRotation_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRotation() // Should return zero value + }) + + t.Run("GetUnrotatedRect", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var expected *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect + obj.UnrotatedRect = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUnrotatedRect(), "getter should return the property value") + }) + + t.Run("GetUnrotatedRect_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + obj.UnrotatedRect = nil + + // Act & Assert + assert.Nil(t, obj.GetUnrotatedRect(), "getter should return nil when property is nil") + }) + + t.Run("GetUnrotatedRect_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnrotatedRect() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStamp(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemStampRef + + // Act + obj.SetRef(fernTestValueRef) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueIndex int + + // Act + obj.SetIndex(fernTestValueIndex) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemStampIdentityQuality + + // Act + obj.SetIdentityQuality(fernTestValueIdentityQuality) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueNm *string + + // Act + obj.SetNm(fernTestValueNm) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemStampFlags + + // Act + obj.SetFlags(fernTestValueFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRect_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemStampRect + + // Act + obj.SetRect(fernTestValueRect) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetContents_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueContents *string + + // Act + obj.SetContents(fernTestValueContents) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubject_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueSubject *string + + // Act + obj.SetSubject(fernTestValueSubject) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueAuthor *string + + // Act + obj.SetAuthor(fernTestValueAuthor) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCreated_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueCreated *time.Time + + // Act + obj.SetCreated(fernTestValueCreated) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetModified_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueModified *time.Time + + // Act + obj.SetModified(fernTestValueModified) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemStampBlendMode + + // Act + obj.SetBlendMode(fernTestValueBlendMode) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo + + // Act + obj.SetInReplyTo(fernTestValueInReplyTo) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemStampReplyType + + // Act + obj.SetReplyType(fernTestValueReplyType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetUserID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueUserID *string + + // Act + obj.SetUserID(fernTestValueUserID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueGroupID *string + + // Act + obj.SetGroupID(fernTestValueGroupID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueCreatedBy *string + + // Act + obj.SetCreatedBy(fernTestValueCreatedBy) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueUpdatedBy *string + + // Act + obj.SetUpdatedBy(fernTestValueUpdatedBy) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueActions *PdfAnnotationActions + + // Act + obj.SetActions(fernTestValueActions) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueName *string + + // Act + obj.SetName(fernTestValueName) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRotation_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueRotation *float64 + + // Act + obj.SetRotation(fernTestValueRotation) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetUnrotatedRect_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} + var fernTestValueUnrotatedRect *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect + + // Act + obj.SetUnrotatedRect(fernTestValueUnrotatedRect) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemStampFlags(t *testing.T) { + t.Run("SetInvisible", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} + var fernTestValueInvisible bool + obj.SetInvisible(fernTestValueInvisible) + assert.Equal(t, fernTestValueInvisible, obj.Invisible) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetHidden", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} + var fernTestValueHidden bool + obj.SetHidden(fernTestValueHidden) + assert.Equal(t, fernTestValueHidden, obj.Hidden) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrint", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} + var fernTestValuePrint bool + obj.SetPrint(fernTestValuePrint) + assert.Equal(t, fernTestValuePrint, obj.Print) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNoZoom", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} + var fernTestValueNoZoom bool + obj.SetNoZoom(fernTestValueNoZoom) + assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNoRotate", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} + var fernTestValueNoRotate bool + obj.SetNoRotate(fernTestValueNoRotate) + assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNoView", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} + var fernTestValueNoView bool + obj.SetNoView(fernTestValueNoView) + assert.Equal(t, fernTestValueNoView, obj.NoView) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetReadOnly", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} + var fernTestValueReadOnly bool + obj.SetReadOnly(fernTestValueReadOnly) + assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLocked", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} + var fernTestValueLocked bool + obj.SetLocked(fernTestValueLocked) + assert.Equal(t, fernTestValueLocked, obj.Locked) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetToggleNoView", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} + var fernTestValueToggleNoView bool + obj.SetToggleNoView(fernTestValueToggleNoView) + assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLockedContents", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} + var fernTestValueLockedContents bool + obj.SetLockedContents(fernTestValueLockedContents) + assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemStampFlags(t *testing.T) { + t.Run("GetInvisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} + var expected bool + obj.Invisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetInvisible(), "getter should return the property value") + }) + + t.Run("GetInvisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetInvisible() // Should return zero value + }) + + t.Run("GetHidden", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} + var expected bool + obj.Hidden = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") + }) + + t.Run("GetHidden_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetHidden() // Should return zero value + }) + + t.Run("GetPrint", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} + var expected bool + obj.Print = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") + }) + + t.Run("GetPrint_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrint() // Should return zero value + }) + + t.Run("GetNoZoom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} + var expected bool + obj.NoZoom = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") + }) + + t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNoZoom() // Should return zero value + }) + + t.Run("GetNoRotate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} + var expected bool + obj.NoRotate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") + }) + + t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNoRotate() // Should return zero value + }) + + t.Run("GetNoView", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} + var expected bool + obj.NoView = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") + }) + + t.Run("GetNoView_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNoView() // Should return zero value + }) + + t.Run("GetReadOnly", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} + var expected bool + obj.ReadOnly = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") + }) + + t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetReadOnly() // Should return zero value + }) + + t.Run("GetLocked", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} + var expected bool + obj.Locked = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") + }) + + t.Run("GetLocked_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLocked() // Should return zero value + }) + + t.Run("GetToggleNoView", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} + var expected bool + obj.ToggleNoView = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") + }) + + t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetToggleNoView() // Should return zero value + }) + + t.Run("GetLockedContents", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} + var expected bool + obj.LockedContents = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") + }) + + t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLockedContents() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampFlags(t *testing.T) { + t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} + var fernTestValueInvisible bool + + // Act + obj.SetInvisible(fernTestValueInvisible) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetHidden_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} + var fernTestValueHidden bool + + // Act + obj.SetHidden(fernTestValueHidden) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrint_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} + var fernTestValuePrint bool + + // Act + obj.SetPrint(fernTestValuePrint) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} + var fernTestValueNoZoom bool + + // Act + obj.SetNoZoom(fernTestValueNoZoom) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} + var fernTestValueNoRotate bool + + // Act + obj.SetNoRotate(fernTestValueNoRotate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNoView_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} + var fernTestValueNoView bool + + // Act + obj.SetNoView(fernTestValueNoView) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} + var fernTestValueReadOnly bool + + // Act + obj.SetReadOnly(fernTestValueReadOnly) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetLocked_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} + var fernTestValueLocked bool + + // Act + obj.SetLocked(fernTestValueLocked) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} + var fernTestValueToggleNoView bool + + // Act + obj.SetToggleNoView(fernTestValueToggleNoView) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} + var fernTestValueLockedContents bool + + // Act + obj.SetLockedContents(fernTestValueLockedContents) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemStampInReplyTo(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo{} + var expected string + obj.Kind = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + }) + + t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKind() // Should return zero value + }) + + t.Run("GetObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber + obj.ObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + }) + + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo{} + obj.ObjectNumber = nil + + // Act & Assert + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + }) + + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo{} + obj.Nm = nil + + // Act & Assert + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo{} + obj.Index = nil + + // Act & Assert + assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex{} + var expected int + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + + t.Run("GetRevision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex{} + var expected *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision + obj.Revision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + }) + + t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex{} + obj.Revision = nil + + // Act & Assert + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + }) + + t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRevision() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex{} + var fernTestValueIndex int + + // Act + obj.SetIndex(fernTestValueIndex) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision + + // Act + obj.SetRevision(fernTestValueRevision) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision{} + var fernTestValueDocSessionID string + obj.SetDocSessionID(fernTestValueDocSessionID) + assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetGeneration", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision{} + var expected string + obj.DocSessionID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + }) + + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDocSessionID() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetGeneration", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision{} + var expected int + obj.Generation = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + }) + + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGeneration() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision{} + var fernTestValueDocSessionID string + + // Act + obj.SetDocSessionID(fernTestValueDocSessionID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision{} + var fernTestValueGeneration int + + // Act + obj.SetGeneration(fernTestValueGeneration) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm{} + var expected string + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm{} + var fernTestValueNm string + + // Act + obj.SetNm(fernTestValueNm) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + }) + + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAnnotObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int + + // Act + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemStampRect(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRect{} + var fernTestValueLeft float64 + obj.SetLeft(fernTestValueLeft) + assert.Equal(t, fernTestValueLeft, obj.Left) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBottom", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRect{} + var fernTestValueBottom float64 + obj.SetBottom(fernTestValueBottom) + assert.Equal(t, fernTestValueBottom, obj.Bottom) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRight", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRect{} + var fernTestValueRight float64 + obj.SetRight(fernTestValueRight) + assert.Equal(t, fernTestValueRight, obj.Right) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetTop", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRect{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemStampRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRect{} + var expected float64 + obj.Left = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") + }) + + t.Run("GetLeft_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLeft() // Should return zero value + }) + + t.Run("GetBottom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRect{} + var expected float64 + obj.Bottom = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") + }) + + t.Run("GetBottom_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBottom() // Should return zero value + }) + + t.Run("GetRight", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRect{} + var expected float64 + obj.Right = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") + }) + + t.Run("GetRight_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRight() // Should return zero value + }) + + t.Run("GetTop", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRect{} + var expected float64 + obj.Top = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + }) + + t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetTop() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRect{} + var fernTestValueLeft float64 + + // Act + obj.SetLeft(fernTestValueLeft) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRect{} + var fernTestValueBottom float64 + + // Act + obj.SetBottom(fernTestValueBottom) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRight_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRect{} + var fernTestValueRight float64 + + // Act + obj.SetRight(fernTestValueRight) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRect{} + var fernTestValueTop float64 + + // Act + obj.SetTop(fernTestValueTop) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemStampRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRef{} + var expected string + obj.Kind = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + }) + + t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKind() // Should return zero value + }) + + t.Run("GetObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber + obj.ObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + }) + + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRef{} + obj.ObjectNumber = nil + + // Act & Assert + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + }) + + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemStampRefNm + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRef{} + obj.Nm = nil + + // Act & Assert + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRef{} + obj.Index = nil + + // Act & Assert + assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemStampRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndex{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndex{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemStampRefIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndex{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndex{} + var expected int + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + + t.Run("GetRevision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndex{} + var expected *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision + obj.Revision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + }) + + t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndex{} + obj.Revision = nil + + // Act & Assert + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + }) + + t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRevision() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndex{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndex{} + var fernTestValueIndex int + + // Act + obj.SetIndex(fernTestValueIndex) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision + + // Act + obj.SetRevision(fernTestValueRevision) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision{} + var fernTestValueDocSessionID string + obj.SetDocSessionID(fernTestValueDocSessionID) + assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetGeneration", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision{} + var expected string + obj.DocSessionID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + }) + + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDocSessionID() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetGeneration", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision{} + var expected int + obj.Generation = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + }) + + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGeneration() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision{} + var fernTestValueDocSessionID string + + // Act + obj.SetDocSessionID(fernTestValueDocSessionID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision{} + var fernTestValueGeneration int + + // Act + obj.SetGeneration(fernTestValueGeneration) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemStampRefNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefNm{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemStampRefNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefNm{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampRefNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefNm{} + var expected string + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampRefNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampRefNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefNm{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefNm{} + var fernTestValueNm string + + // Act + obj.SetNm(fernTestValueNm) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + }) + + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAnnotObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber{} + var fernTestValueAnnotObjectNumber int + + // Act + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect{} + var fernTestValueLeft float64 + obj.SetLeft(fernTestValueLeft) + assert.Equal(t, fernTestValueLeft, obj.Left) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBottom", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect{} + var fernTestValueBottom float64 + obj.SetBottom(fernTestValueBottom) + assert.Equal(t, fernTestValueBottom, obj.Bottom) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRight", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect{} + var fernTestValueRight float64 + obj.SetRight(fernTestValueRight) + assert.Equal(t, fernTestValueRight, obj.Right) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetTop", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect{} + var expected float64 + obj.Left = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") + }) + + t.Run("GetLeft_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLeft() // Should return zero value + }) + + t.Run("GetBottom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect{} + var expected float64 + obj.Bottom = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") + }) + + t.Run("GetBottom_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBottom() // Should return zero value + }) + + t.Run("GetRight", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect{} + var expected float64 + obj.Right = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") + }) + + t.Run("GetRight_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRight() // Should return zero value + }) + + t.Run("GetTop", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect{} + var expected float64 + obj.Top = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + }) + + t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetTop() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect{} + var fernTestValueLeft float64 + + // Act + obj.SetLeft(fernTestValueLeft) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect{} + var fernTestValueBottom float64 + + // Act + obj.SetBottom(fernTestValueBottom) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRight_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect{} + var fernTestValueRight float64 + + // Act + obj.SetRight(fernTestValueRight) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect{} + var fernTestValueTop float64 + + // Act + obj.SetTop(fernTestValueTop) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeout(t *testing.T) { + t.Run("SetRef", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef + obj.SetRef(fernTestValueRef) + assert.Equal(t, fernTestValueRef, obj.Ref) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIdentityQuality", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQuality + obj.SetIdentityQuality(fernTestValueIdentityQuality) + assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueNm *string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFlags", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags + obj.SetFlags(fernTestValueFlags) + assert.Equal(t, fernTestValueFlags, obj.Flags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRect", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect + obj.SetRect(fernTestValueRect) + assert.Equal(t, fernTestValueRect, obj.Rect) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetContents", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueContents *string + obj.SetContents(fernTestValueContents) + assert.Equal(t, fernTestValueContents, obj.Contents) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubject", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueSubject *string + obj.SetSubject(fernTestValueSubject) + assert.Equal(t, fernTestValueSubject, obj.Subject) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAuthor", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueAuthor *string + obj.SetAuthor(fernTestValueAuthor) + assert.Equal(t, fernTestValueAuthor, obj.Author) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCreated", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueCreated *time.Time + obj.SetCreated(fernTestValueCreated) + assert.Equal(t, fernTestValueCreated, obj.Created) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetModified", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueModified *time.Time + obj.SetModified(fernTestValueModified) + assert.Equal(t, fernTestValueModified, obj.Modified) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBlendMode", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode + obj.SetBlendMode(fernTestValueBlendMode) + assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetInReplyTo", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo + obj.SetInReplyTo(fernTestValueInReplyTo) + assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetReplyType", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyType + obj.SetReplyType(fernTestValueReplyType) + assert.Equal(t, fernTestValueReplyType, obj.ReplyType) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetUserID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueUserID *string + obj.SetUserID(fernTestValueUserID) + assert.Equal(t, fernTestValueUserID, obj.UserID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetGroupID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueGroupID *string + obj.SetGroupID(fernTestValueGroupID) + assert.Equal(t, fernTestValueGroupID, obj.GroupID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCreatedBy", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueCreatedBy *string + obj.SetCreatedBy(fernTestValueCreatedBy) + assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetUpdatedBy", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueUpdatedBy *string + obj.SetUpdatedBy(fernTestValueUpdatedBy) + assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetActions", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueActions *PdfAnnotationActions + obj.SetActions(fernTestValueActions) + assert.Equal(t, fernTestValueActions, obj.Actions) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetColor", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor + obj.SetColor(fernTestValueColor) + assert.Equal(t, fernTestValueColor, obj.Color) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetOpacity", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueOpacity float64 + obj.SetOpacity(fernTestValueOpacity) + assert.Equal(t, fernTestValueOpacity, obj.Opacity) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetQuadPoints", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueQuadPoints []*DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem + obj.SetQuadPoints(fernTestValueQuadPoints) + assert.Equal(t, fernTestValueQuadPoints, obj.QuadPoints) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIntent", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueIntent *DocAnnotationsList200ResponseAnnotationsItemStrikeoutIntent + obj.SetIntent(fernTestValueIntent) + assert.Equal(t, fernTestValueIntent, obj.Intent) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeout(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef + obj.Ref = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") + }) + + t.Run("GetRef_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + obj.Ref = nil + + // Act & Assert + assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") + }) + + t.Run("GetRef_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRef() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var expected int + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + + t.Run("GetIdentityQuality", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var expected DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQuality + obj.IdentityQuality = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIdentityQuality(), "getter should return the property value") + }) + + t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIdentityQuality() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var expected *string + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + obj.Nm = nil + + // Act & Assert + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + + t.Run("GetFlags", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags + obj.Flags = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") + }) + + t.Run("GetFlags_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + obj.Flags = nil + + // Act & Assert + assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") + }) + + t.Run("GetFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFlags() // Should return zero value + }) + + t.Run("GetRect", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect + obj.Rect = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRect(), "getter should return the property value") + }) + + t.Run("GetRect_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + obj.Rect = nil + + // Act & Assert + assert.Nil(t, obj.GetRect(), "getter should return nil when property is nil") + }) + + t.Run("GetRect_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRect() // Should return zero value + }) + + t.Run("GetContents", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var expected *string + obj.Contents = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetContents(), "getter should return the property value") + }) + + t.Run("GetContents_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + obj.Contents = nil + + // Act & Assert + assert.Nil(t, obj.GetContents(), "getter should return nil when property is nil") + }) + + t.Run("GetContents_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetContents() // Should return zero value + }) + + t.Run("GetSubject", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var expected *string + obj.Subject = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSubject(), "getter should return the property value") + }) + + t.Run("GetSubject_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + obj.Subject = nil + + // Act & Assert + assert.Nil(t, obj.GetSubject(), "getter should return nil when property is nil") + }) + + t.Run("GetSubject_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSubject() // Should return zero value + }) + + t.Run("GetAuthor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var expected *string + obj.Author = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAuthor(), "getter should return the property value") + }) + + t.Run("GetAuthor_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + obj.Author = nil + + // Act & Assert + assert.Nil(t, obj.GetAuthor(), "getter should return nil when property is nil") + }) + + t.Run("GetAuthor_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAuthor() // Should return zero value + }) + + t.Run("GetCreated", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var expected *time.Time + obj.Created = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCreated(), "getter should return the property value") + }) + + t.Run("GetCreated_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + obj.Created = nil + + // Act & Assert + assert.Nil(t, obj.GetCreated(), "getter should return nil when property is nil") + }) + + t.Run("GetCreated_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCreated() // Should return zero value + }) + + t.Run("GetModified", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var expected *time.Time + obj.Modified = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") + }) + + t.Run("GetModified_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + obj.Modified = nil + + // Act & Assert + assert.Nil(t, obj.GetModified(), "getter should return nil when property is nil") + }) + + t.Run("GetModified_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetModified() // Should return zero value + }) + + t.Run("GetBlendMode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var expected DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode + obj.BlendMode = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBlendMode(), "getter should return the property value") + }) + + t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBlendMode() // Should return zero value + }) + + t.Run("GetInReplyTo", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo + obj.InReplyTo = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetInReplyTo(), "getter should return the property value") + }) + + t.Run("GetInReplyTo_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + obj.InReplyTo = nil + + // Act & Assert + assert.Nil(t, obj.GetInReplyTo(), "getter should return nil when property is nil") + }) + + t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetInReplyTo() // Should return zero value + }) + + t.Run("GetReplyType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyType + obj.ReplyType = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetReplyType(), "getter should return the property value") + }) + + t.Run("GetReplyType_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + obj.ReplyType = nil + + // Act & Assert + assert.Nil(t, obj.GetReplyType(), "getter should return nil when property is nil") + }) + + t.Run("GetReplyType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetReplyType() // Should return zero value + }) + + t.Run("GetUserID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var expected *string + obj.UserID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") + }) + + t.Run("GetUserID_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + obj.UserID = nil + + // Act & Assert + assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") + }) + + t.Run("GetUserID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUserID() // Should return zero value + }) + + t.Run("GetGroupID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var expected *string + obj.GroupID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetGroupID(), "getter should return the property value") + }) + + t.Run("GetGroupID_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + obj.GroupID = nil + + // Act & Assert + assert.Nil(t, obj.GetGroupID(), "getter should return nil when property is nil") + }) + + t.Run("GetGroupID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGroupID() // Should return zero value + }) + + t.Run("GetCreatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var expected *string + obj.CreatedBy = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") + }) + + t.Run("GetCreatedBy_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + obj.CreatedBy = nil + + // Act & Assert + assert.Nil(t, obj.GetCreatedBy(), "getter should return nil when property is nil") + }) + + t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCreatedBy() // Should return zero value + }) + + t.Run("GetUpdatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var expected *string + obj.UpdatedBy = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUpdatedBy(), "getter should return the property value") + }) + + t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + obj.UpdatedBy = nil + + // Act & Assert + assert.Nil(t, obj.GetUpdatedBy(), "getter should return nil when property is nil") + }) + + t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUpdatedBy() // Should return zero value + }) + + t.Run("GetActions", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var expected *PdfAnnotationActions + obj.Actions = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") + }) + + t.Run("GetActions_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + obj.Actions = nil + + // Act & Assert + assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") + }) + + t.Run("GetActions_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetActions() // Should return zero value + }) + + t.Run("GetColor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor + obj.Color = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") + }) + + t.Run("GetColor_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + obj.Color = nil + + // Act & Assert + assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") + }) + + t.Run("GetColor_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetColor() // Should return zero value + }) + + t.Run("GetOpacity", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var expected float64 + obj.Opacity = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetOpacity(), "getter should return the property value") + }) + + t.Run("GetOpacity_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetOpacity() // Should return zero value + }) + + t.Run("GetQuadPoints", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var expected []*DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem + obj.QuadPoints = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetQuadPoints(), "getter should return the property value") + }) + + t.Run("GetQuadPoints_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + obj.QuadPoints = nil + + // Act & Assert + assert.Nil(t, obj.GetQuadPoints(), "getter should return nil when property is nil") + }) + + t.Run("GetQuadPoints_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetQuadPoints() // Should return zero value + }) + + t.Run("GetIntent", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutIntent + obj.Intent = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIntent(), "getter should return the property value") + }) + + t.Run("GetIntent_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + obj.Intent = nil + + // Act & Assert + assert.Nil(t, obj.GetIntent(), "getter should return nil when property is nil") + }) + + t.Run("GetIntent_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIntent() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeout(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef + + // Act + obj.SetRef(fernTestValueRef) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueIndex int + + // Act + obj.SetIndex(fernTestValueIndex) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQuality + + // Act + obj.SetIdentityQuality(fernTestValueIdentityQuality) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueNm *string + + // Act + obj.SetNm(fernTestValueNm) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags + + // Act + obj.SetFlags(fernTestValueFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRect_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect + + // Act + obj.SetRect(fernTestValueRect) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetContents_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueContents *string + + // Act + obj.SetContents(fernTestValueContents) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubject_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueSubject *string + + // Act + obj.SetSubject(fernTestValueSubject) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueAuthor *string + + // Act + obj.SetAuthor(fernTestValueAuthor) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCreated_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueCreated *time.Time + + // Act + obj.SetCreated(fernTestValueCreated) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetModified_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueModified *time.Time + + // Act + obj.SetModified(fernTestValueModified) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode + + // Act + obj.SetBlendMode(fernTestValueBlendMode) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo + + // Act + obj.SetInReplyTo(fernTestValueInReplyTo) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyType + + // Act + obj.SetReplyType(fernTestValueReplyType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetUserID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueUserID *string + + // Act + obj.SetUserID(fernTestValueUserID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueGroupID *string + + // Act + obj.SetGroupID(fernTestValueGroupID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueCreatedBy *string + + // Act + obj.SetCreatedBy(fernTestValueCreatedBy) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueUpdatedBy *string + + // Act + obj.SetUpdatedBy(fernTestValueUpdatedBy) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueActions *PdfAnnotationActions + + // Act + obj.SetActions(fernTestValueActions) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetColor_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor + + // Act + obj.SetColor(fernTestValueColor) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueOpacity float64 + + // Act + obj.SetOpacity(fernTestValueOpacity) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetQuadPoints_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueQuadPoints []*DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem + + // Act + obj.SetQuadPoints(fernTestValueQuadPoints) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIntent_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + var fernTestValueIntent *DocAnnotationsList200ResponseAnnotationsItemStrikeoutIntent + + // Act + obj.SetIntent(fernTestValueIntent) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutColor(t *testing.T) { + t.Run("SetR", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor{} + var fernTestValueR int + obj.SetR(fernTestValueR) + assert.Equal(t, fernTestValueR, obj.R) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetG", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor{} + var fernTestValueG int + obj.SetG(fernTestValueG) + assert.Equal(t, fernTestValueG, obj.G) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetB", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor{} + var expected int + obj.R = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") + }) + + t.Run("GetR_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetR() // Should return zero value + }) + + t.Run("GetG", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor{} + var expected int + obj.G = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") + }) + + t.Run("GetG_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetG() // Should return zero value + }) + + t.Run("GetB", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor{} + var expected int + obj.B = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + }) + + t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetB() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeoutColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor{} + var fernTestValueR int + + // Act + obj.SetR(fernTestValueR) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor{} + var fernTestValueG int + + // Act + obj.SetG(fernTestValueG) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor{} + var fernTestValueB int + + // Act + obj.SetB(fernTestValueB) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags(t *testing.T) { + t.Run("SetInvisible", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} + var fernTestValueInvisible bool + obj.SetInvisible(fernTestValueInvisible) + assert.Equal(t, fernTestValueInvisible, obj.Invisible) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetHidden", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} + var fernTestValueHidden bool + obj.SetHidden(fernTestValueHidden) + assert.Equal(t, fernTestValueHidden, obj.Hidden) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrint", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} + var fernTestValuePrint bool + obj.SetPrint(fernTestValuePrint) + assert.Equal(t, fernTestValuePrint, obj.Print) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNoZoom", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} + var fernTestValueNoZoom bool + obj.SetNoZoom(fernTestValueNoZoom) + assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNoRotate", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} + var fernTestValueNoRotate bool + obj.SetNoRotate(fernTestValueNoRotate) + assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNoView", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} + var fernTestValueNoView bool + obj.SetNoView(fernTestValueNoView) + assert.Equal(t, fernTestValueNoView, obj.NoView) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetReadOnly", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} + var fernTestValueReadOnly bool + obj.SetReadOnly(fernTestValueReadOnly) + assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLocked", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} + var fernTestValueLocked bool + obj.SetLocked(fernTestValueLocked) + assert.Equal(t, fernTestValueLocked, obj.Locked) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetToggleNoView", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} + var fernTestValueToggleNoView bool + obj.SetToggleNoView(fernTestValueToggleNoView) + assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLockedContents", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} + var fernTestValueLockedContents bool + obj.SetLockedContents(fernTestValueLockedContents) + assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags(t *testing.T) { + t.Run("GetInvisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} + var expected bool + obj.Invisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetInvisible(), "getter should return the property value") + }) + + t.Run("GetInvisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetInvisible() // Should return zero value + }) + + t.Run("GetHidden", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} + var expected bool + obj.Hidden = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") + }) + + t.Run("GetHidden_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetHidden() // Should return zero value + }) + + t.Run("GetPrint", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} + var expected bool + obj.Print = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") + }) + + t.Run("GetPrint_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrint() // Should return zero value + }) + + t.Run("GetNoZoom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} + var expected bool + obj.NoZoom = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") + }) + + t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNoZoom() // Should return zero value + }) + + t.Run("GetNoRotate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} + var expected bool + obj.NoRotate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") + }) + + t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNoRotate() // Should return zero value + }) + + t.Run("GetNoView", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} + var expected bool + obj.NoView = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") + }) + + t.Run("GetNoView_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNoView() // Should return zero value + }) + + t.Run("GetReadOnly", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} + var expected bool + obj.ReadOnly = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") + }) + + t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetReadOnly() // Should return zero value + }) + + t.Run("GetLocked", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} + var expected bool + obj.Locked = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") + }) + + t.Run("GetLocked_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLocked() // Should return zero value + }) + + t.Run("GetToggleNoView", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} + var expected bool + obj.ToggleNoView = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") + }) + + t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetToggleNoView() // Should return zero value + }) + + t.Run("GetLockedContents", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} + var expected bool + obj.LockedContents = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") + }) + + t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLockedContents() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags(t *testing.T) { + t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} + var fernTestValueInvisible bool + + // Act + obj.SetInvisible(fernTestValueInvisible) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetHidden_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} + var fernTestValueHidden bool + + // Act + obj.SetHidden(fernTestValueHidden) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrint_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} + var fernTestValuePrint bool + + // Act + obj.SetPrint(fernTestValuePrint) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} + var fernTestValueNoZoom bool + + // Act + obj.SetNoZoom(fernTestValueNoZoom) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} + var fernTestValueNoRotate bool + + // Act + obj.SetNoRotate(fernTestValueNoRotate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNoView_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} + var fernTestValueNoView bool + + // Act + obj.SetNoView(fernTestValueNoView) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} + var fernTestValueReadOnly bool + + // Act + obj.SetReadOnly(fernTestValueReadOnly) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetLocked_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} + var fernTestValueLocked bool + + // Act + obj.SetLocked(fernTestValueLocked) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} + var fernTestValueToggleNoView bool + + // Act + obj.SetToggleNoView(fernTestValueToggleNoView) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} + var fernTestValueLockedContents bool + + // Act + obj.SetLockedContents(fernTestValueLockedContents) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo{} + var expected string + obj.Kind = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + }) + + t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKind() // Should return zero value + }) + + t.Run("GetObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber + obj.ObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + }) + + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo{} + obj.ObjectNumber = nil + + // Act & Assert + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + }) + + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo{} + obj.Nm = nil + + // Act & Assert + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo{} + obj.Index = nil + + // Act & Assert + assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex{} + var expected int + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + + t.Run("GetRevision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex{} + var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision + obj.Revision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + }) + + t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex{} + obj.Revision = nil + + // Act & Assert + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + }) + + t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRevision() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex{} + var fernTestValueIndex int + + // Act + obj.SetIndex(fernTestValueIndex) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision + + // Act + obj.SetRevision(fernTestValueRevision) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision{} + var fernTestValueDocSessionID string + obj.SetDocSessionID(fernTestValueDocSessionID) + assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetGeneration", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision{} + var expected string + obj.DocSessionID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + }) + + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDocSessionID() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetGeneration", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision{} + var expected int + obj.Generation = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + }) + + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGeneration() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision{} + var fernTestValueDocSessionID string + + // Act + obj.SetDocSessionID(fernTestValueDocSessionID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision{} + var fernTestValueGeneration int + + // Act + obj.SetGeneration(fernTestValueGeneration) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm{} + var expected string + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm{} + var fernTestValueNm string + + // Act + obj.SetNm(fernTestValueNm) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + }) + + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAnnotObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int + + // Act + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem(t *testing.T) { + t.Run("SetP1", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} + var fernTestValueP1 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1 + obj.SetP1(fernTestValueP1) + assert.Equal(t, fernTestValueP1, obj.P1) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetP2", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} + var fernTestValueP2 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2 + obj.SetP2(fernTestValueP2) + assert.Equal(t, fernTestValueP2, obj.P2) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetP3", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} + var fernTestValueP3 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3 + obj.SetP3(fernTestValueP3) + assert.Equal(t, fernTestValueP3, obj.P3) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetP4", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} + var fernTestValueP4 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4 + obj.SetP4(fernTestValueP4) + assert.Equal(t, fernTestValueP4, obj.P4) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem(t *testing.T) { + t.Run("GetP1", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1 + obj.P1 = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetP1(), "getter should return the property value") + }) + + t.Run("GetP1_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} + obj.P1 = nil + + // Act & Assert + assert.Nil(t, obj.GetP1(), "getter should return nil when property is nil") + }) + + t.Run("GetP1_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetP1() // Should return zero value + }) + + t.Run("GetP2", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2 + obj.P2 = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetP2(), "getter should return the property value") + }) + + t.Run("GetP2_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} + obj.P2 = nil + + // Act & Assert + assert.Nil(t, obj.GetP2(), "getter should return nil when property is nil") + }) + + t.Run("GetP2_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetP2() // Should return zero value + }) + + t.Run("GetP3", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3 + obj.P3 = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetP3(), "getter should return the property value") + }) + + t.Run("GetP3_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} + obj.P3 = nil + + // Act & Assert + assert.Nil(t, obj.GetP3(), "getter should return nil when property is nil") + }) + + t.Run("GetP3_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetP3() // Should return zero value + }) + + t.Run("GetP4", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4 + obj.P4 = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetP4(), "getter should return the property value") + }) + + t.Run("GetP4_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} + obj.P4 = nil + + // Act & Assert + assert.Nil(t, obj.GetP4(), "getter should return nil when property is nil") + }) + + t.Run("GetP4_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetP4() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem(t *testing.T) { + t.Run("SetP1_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} + var fernTestValueP1 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1 + + // Act + obj.SetP1(fernTestValueP1) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetP2_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} + var fernTestValueP2 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2 + + // Act + obj.SetP2(fernTestValueP2) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetP3_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} + var fernTestValueP3 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3 + + // Act + obj.SetP3(fernTestValueP3) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetP4_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} + var fernTestValueP4 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4 + + // Act + obj.SetP4(fernTestValueP4) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1(t *testing.T) { + t.Run("GetX", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1{} + var expected float64 + obj.X = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1{} + var expected float64 + obj.Y = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + }) + + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1{} + var fernTestValueX float64 + + // Act + obj.SetX(fernTestValueX) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1{} + var fernTestValueY float64 + + // Act + obj.SetY(fernTestValueY) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2(t *testing.T) { + t.Run("GetX", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2{} + var expected float64 + obj.X = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2{} + var expected float64 + obj.Y = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + }) + + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2{} + var fernTestValueX float64 + + // Act + obj.SetX(fernTestValueX) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2{} + var fernTestValueY float64 + + // Act + obj.SetY(fernTestValueY) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3(t *testing.T) { + t.Run("GetX", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3{} + var expected float64 + obj.X = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3{} + var expected float64 + obj.Y = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + }) + + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3{} + var fernTestValueX float64 + + // Act + obj.SetX(fernTestValueX) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3{} + var fernTestValueY float64 + + // Act + obj.SetY(fernTestValueY) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4(t *testing.T) { + t.Run("GetX", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4{} + var expected float64 + obj.X = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4{} + var expected float64 + obj.Y = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + }) + + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4{} + var fernTestValueX float64 + + // Act + obj.SetX(fernTestValueX) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4{} + var fernTestValueY float64 + + // Act + obj.SetY(fernTestValueY) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutRect(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect{} + var fernTestValueLeft float64 + obj.SetLeft(fernTestValueLeft) + assert.Equal(t, fernTestValueLeft, obj.Left) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBottom", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect{} + var fernTestValueBottom float64 + obj.SetBottom(fernTestValueBottom) + assert.Equal(t, fernTestValueBottom, obj.Bottom) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRight", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect{} + var fernTestValueRight float64 + obj.SetRight(fernTestValueRight) + assert.Equal(t, fernTestValueRight, obj.Right) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetTop", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect{} + var expected float64 + obj.Left = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") + }) + + t.Run("GetLeft_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLeft() // Should return zero value + }) + + t.Run("GetBottom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect{} + var expected float64 + obj.Bottom = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") + }) + + t.Run("GetBottom_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBottom() // Should return zero value + }) + + t.Run("GetRight", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect{} + var expected float64 + obj.Right = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") + }) + + t.Run("GetRight_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRight() // Should return zero value + }) + + t.Run("GetTop", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect{} + var expected float64 + obj.Top = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + }) + + t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetTop() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeoutRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect{} + var fernTestValueLeft float64 + + // Act + obj.SetLeft(fernTestValueLeft) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect{} + var fernTestValueBottom float64 + + // Act + obj.SetBottom(fernTestValueBottom) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRight_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect{} + var fernTestValueRight float64 + + // Act + obj.SetRight(fernTestValueRight) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect{} + var fernTestValueTop float64 + + // Act + obj.SetTop(fernTestValueTop) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef{} + var expected string + obj.Kind = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + }) + + t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKind() // Should return zero value + }) + + t.Run("GetObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber + obj.ObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + }) + + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef{} + obj.ObjectNumber = nil + + // Act & Assert + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + }) + + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef{} + obj.Nm = nil + + // Act & Assert + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef{} + obj.Index = nil + + // Act & Assert + assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex{} + var expected int + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + + t.Run("GetRevision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex{} + var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision + obj.Revision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + }) + + t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex{} + obj.Revision = nil + + // Act & Assert + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + }) + + t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRevision() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex{} + var fernTestValueIndex int + + // Act + obj.SetIndex(fernTestValueIndex) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision + + // Act + obj.SetRevision(fernTestValueRevision) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision{} + var fernTestValueDocSessionID string + obj.SetDocSessionID(fernTestValueDocSessionID) + assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) + assert.NotNil(t, obj.explicitFields) + }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetGeneration", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision{} + var expected string + obj.DocSessionID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + }) + + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDocSessionID() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetGeneration", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision{} + var expected int + obj.Generation = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + }) + + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGeneration() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision{} + var fernTestValueDocSessionID string + + // Act + obj.SetDocSessionID(fernTestValueDocSessionID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision{} + var fernTestValueGeneration int + + // Act + obj.SetGeneration(fernTestValueGeneration) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm{} + var expected string + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm{} + var fernTestValueNm string + + // Act + obj.SetNm(fernTestValueNm) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + }) + + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAnnotObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber{} + var fernTestValueAnnotObjectNumber int + + // Act + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { + t.Run("SetRef", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemTextRef + obj.SetRef(fernTestValueRef) + assert.Equal(t, fernTestValueRef, obj.Ref) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -67846,7 +105475,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -67854,15 +105483,15 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) }) t.Run("SetIdentityQuality", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQuality + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemTextIdentityQuality obj.SetIdentityQuality(fernTestValueIdentityQuality) assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) assert.NotNil(t, obj.explicitFields) }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} var fernTestValueNm *string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -67870,23 +105499,23 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) }) t.Run("SetFlags", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemSquareFlags + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemTextFlags obj.SetFlags(fernTestValueFlags) assert.Equal(t, fernTestValueFlags, obj.Flags) assert.NotNil(t, obj.explicitFields) }) t.Run("SetRect", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemSquareRect + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemTextRect obj.SetRect(fernTestValueRect) assert.Equal(t, fernTestValueRect, obj.Rect) assert.NotNil(t, obj.explicitFields) }) t.Run("SetContents", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} var fernTestValueContents *string obj.SetContents(fernTestValueContents) assert.Equal(t, fernTestValueContents, obj.Contents) @@ -67894,7 +105523,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) }) t.Run("SetSubject", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} var fernTestValueSubject *string obj.SetSubject(fernTestValueSubject) assert.Equal(t, fernTestValueSubject, obj.Subject) @@ -67902,7 +105531,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) }) t.Run("SetAuthor", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} var fernTestValueAuthor *string obj.SetAuthor(fernTestValueAuthor) assert.Equal(t, fernTestValueAuthor, obj.Author) @@ -67910,7 +105539,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) }) t.Run("SetCreated", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} var fernTestValueCreated *time.Time obj.SetCreated(fernTestValueCreated) assert.Equal(t, fernTestValueCreated, obj.Created) @@ -67918,7 +105547,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) }) t.Run("SetModified", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} var fernTestValueModified *time.Time obj.SetModified(fernTestValueModified) assert.Equal(t, fernTestValueModified, obj.Modified) @@ -67926,31 +105555,31 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) }) t.Run("SetBlendMode", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemTextBlendMode obj.SetBlendMode(fernTestValueBlendMode) assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) assert.NotNil(t, obj.explicitFields) }) t.Run("SetInReplyTo", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo obj.SetInReplyTo(fernTestValueInReplyTo) assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) assert.NotNil(t, obj.explicitFields) }) t.Run("SetReplyType", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemSquareReplyType + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemTextReplyType obj.SetReplyType(fernTestValueReplyType) assert.Equal(t, fernTestValueReplyType, obj.ReplyType) assert.NotNil(t, obj.explicitFields) }) t.Run("SetUserID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} var fernTestValueUserID *string obj.SetUserID(fernTestValueUserID) assert.Equal(t, fernTestValueUserID, obj.UserID) @@ -67958,7 +105587,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) }) t.Run("SetGroupID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} var fernTestValueGroupID *string obj.SetGroupID(fernTestValueGroupID) assert.Equal(t, fernTestValueGroupID, obj.GroupID) @@ -67966,7 +105595,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) }) t.Run("SetCreatedBy", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} var fernTestValueCreatedBy *string obj.SetCreatedBy(fernTestValueCreatedBy) assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) @@ -67974,7 +105603,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) }) t.Run("SetUpdatedBy", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} var fernTestValueUpdatedBy *string obj.SetUpdatedBy(fernTestValueUpdatedBy) assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) @@ -67982,7 +105611,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) }) t.Run("SetActions", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} var fernTestValueActions *PdfAnnotationActions obj.SetActions(fernTestValueActions) assert.Equal(t, fernTestValueActions, obj.Actions) @@ -67990,93 +105619,53 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) }) t.Run("SetColor", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemSquareColor + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemTextColor obj.SetColor(fernTestValueColor) assert.Equal(t, fernTestValueColor, obj.Color) assert.NotNil(t, obj.explicitFields) }) t.Run("SetOpacity", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} var fernTestValueOpacity float64 obj.SetOpacity(fernTestValueOpacity) assert.Equal(t, fernTestValueOpacity, obj.Opacity) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetStrokeWidth", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueStrokeWidth float64 - obj.SetStrokeWidth(fernTestValueStrokeWidth) - assert.Equal(t, fernTestValueStrokeWidth, obj.StrokeWidth) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetBorderStyle", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueBorderStyle DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle - obj.SetBorderStyle(fernTestValueBorderStyle) - assert.Equal(t, fernTestValueBorderStyle, obj.BorderStyle) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetDashArray", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueDashArray []float64 - obj.SetDashArray(fernTestValueDashArray) - assert.Equal(t, fernTestValueDashArray, obj.DashArray) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetInteriorColor", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueInteriorColor *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor - obj.SetInteriorColor(fernTestValueInteriorColor) - assert.Equal(t, fernTestValueInteriorColor, obj.InteriorColor) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCloudyIntensity", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueCloudyIntensity *float64 - obj.SetCloudyIntensity(fernTestValueCloudyIntensity) - assert.Equal(t, fernTestValueCloudyIntensity, obj.CloudyIntensity) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRectDifferences", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueRectDifferences *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences - obj.SetRectDifferences(fernTestValueRectDifferences) - assert.Equal(t, fernTestValueRectDifferences, obj.RectDifferences) + t.Run("SetIcon", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var fernTestValueIcon DocAnnotationsList200ResponseAnnotationsItemTextIcon + obj.SetIcon(fernTestValueIcon) + assert.Equal(t, fernTestValueIcon, obj.Icon) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRotation", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueRotation *float64 - obj.SetRotation(fernTestValueRotation) - assert.Equal(t, fernTestValueRotation, obj.Rotation) + t.Run("SetState", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var fernTestValueState *string + obj.SetState(fernTestValueState) + assert.Equal(t, fernTestValueState, obj.State) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetUnrotatedRect", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueUnrotatedRect *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect - obj.SetUnrotatedRect(fernTestValueUnrotatedRect) - assert.Equal(t, fernTestValueUnrotatedRect, obj.UnrotatedRect) + t.Run("SetStateModel", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var fernTestValueStateModel *string + obj.SetStateModel(fernTestValueStateModel) + assert.Equal(t, fernTestValueStateModel, obj.StateModel) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var expected *DocAnnotationsList200ResponseAnnotationsItemSquareRef + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var expected *DocAnnotationsList200ResponseAnnotationsItemTextRef obj.Ref = expected // Act & Assert @@ -68086,7 +105675,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetRef_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} obj.Ref = nil // Act & Assert @@ -68095,7 +105684,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetRef_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + var obj *DocAnnotationsList200ResponseAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -68108,7 +105697,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} var expected int obj.PageObjectNumber = expected @@ -68118,7 +105707,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + var obj *DocAnnotationsList200ResponseAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -68131,7 +105720,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} var expected int obj.Index = expected @@ -68141,7 +105730,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + var obj *DocAnnotationsList200ResponseAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -68154,8 +105743,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetIdentityQuality", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var expected DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQuality + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var expected DocAnnotationsList200ResponseAnnotationsItemTextIdentityQuality obj.IdentityQuality = expected // Act & Assert @@ -68164,7 +105753,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + var obj *DocAnnotationsList200ResponseAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -68177,7 +105766,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} var expected *string obj.Nm = expected @@ -68188,7 +105777,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} obj.Nm = nil // Act & Assert @@ -68197,7 +105786,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + var obj *DocAnnotationsList200ResponseAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -68210,8 +105799,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var expected *DocAnnotationsList200ResponseAnnotationsItemSquareFlags + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var expected *DocAnnotationsList200ResponseAnnotationsItemTextFlags obj.Flags = expected // Act & Assert @@ -68221,7 +105810,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} obj.Flags = nil // Act & Assert @@ -68230,7 +105819,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + var obj *DocAnnotationsList200ResponseAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -68243,8 +105832,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetRect", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var expected *DocAnnotationsList200ResponseAnnotationsItemSquareRect + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var expected *DocAnnotationsList200ResponseAnnotationsItemTextRect obj.Rect = expected // Act & Assert @@ -68254,7 +105843,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetRect_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} obj.Rect = nil // Act & Assert @@ -68263,7 +105852,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetRect_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + var obj *DocAnnotationsList200ResponseAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -68276,7 +105865,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} var expected *string obj.Contents = expected @@ -68287,7 +105876,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetContents_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} obj.Contents = nil // Act & Assert @@ -68296,7 +105885,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + var obj *DocAnnotationsList200ResponseAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -68309,7 +105898,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetSubject", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} var expected *string obj.Subject = expected @@ -68320,7 +105909,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetSubject_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} obj.Subject = nil // Act & Assert @@ -68329,7 +105918,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetSubject_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + var obj *DocAnnotationsList200ResponseAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -68342,7 +105931,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetAuthor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} var expected *string obj.Author = expected @@ -68353,7 +105942,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetAuthor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} obj.Author = nil // Act & Assert @@ -68362,7 +105951,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetAuthor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + var obj *DocAnnotationsList200ResponseAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -68375,7 +105964,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetCreated", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} var expected *time.Time obj.Created = expected @@ -68386,7 +105975,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetCreated_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} obj.Created = nil // Act & Assert @@ -68395,7 +105984,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetCreated_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + var obj *DocAnnotationsList200ResponseAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -68408,7 +105997,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetModified", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} var expected *time.Time obj.Modified = expected @@ -68419,7 +106008,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetModified_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} obj.Modified = nil // Act & Assert @@ -68428,7 +106017,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetModified_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + var obj *DocAnnotationsList200ResponseAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -68441,8 +106030,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetBlendMode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var expected DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var expected DocAnnotationsList200ResponseAnnotationsItemTextBlendMode obj.BlendMode = expected // Act & Assert @@ -68451,7 +106040,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + var obj *DocAnnotationsList200ResponseAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -68464,8 +106053,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetInReplyTo", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var expected *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var expected *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo obj.InReplyTo = expected // Act & Assert @@ -68475,7 +106064,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetInReplyTo_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} obj.InReplyTo = nil // Act & Assert @@ -68484,7 +106073,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + var obj *DocAnnotationsList200ResponseAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -68497,8 +106086,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetReplyType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var expected *DocAnnotationsList200ResponseAnnotationsItemSquareReplyType + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var expected *DocAnnotationsList200ResponseAnnotationsItemTextReplyType obj.ReplyType = expected // Act & Assert @@ -68508,7 +106097,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetReplyType_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} obj.ReplyType = nil // Act & Assert @@ -68517,7 +106106,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetReplyType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + var obj *DocAnnotationsList200ResponseAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -68530,7 +106119,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetUserID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} var expected *string obj.UserID = expected @@ -68541,465 +106130,310 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) t.Run("GetUserID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - obj.UserID = nil - - // Act & Assert - assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") - }) - - t.Run("GetUserID_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquare - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetUserID() // Should return zero value - }) - - t.Run("GetGroupID", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var expected *string - obj.GroupID = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetGroupID(), "getter should return the property value") - }) - - t.Run("GetGroupID_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - obj.GroupID = nil - - // Act & Assert - assert.Nil(t, obj.GetGroupID(), "getter should return nil when property is nil") - }) - - t.Run("GetGroupID_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquare - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetGroupID() // Should return zero value - }) - - t.Run("GetCreatedBy", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var expected *string - obj.CreatedBy = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") - }) - - t.Run("GetCreatedBy_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - obj.CreatedBy = nil - - // Act & Assert - assert.Nil(t, obj.GetCreatedBy(), "getter should return nil when property is nil") - }) - - t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquare - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetCreatedBy() // Should return zero value - }) - - t.Run("GetUpdatedBy", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var expected *string - obj.UpdatedBy = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetUpdatedBy(), "getter should return the property value") - }) - - t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - obj.UpdatedBy = nil - - // Act & Assert - assert.Nil(t, obj.GetUpdatedBy(), "getter should return nil when property is nil") - }) - - t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquare - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetUpdatedBy() // Should return zero value - }) - - t.Run("GetActions", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var expected *PdfAnnotationActions - obj.Actions = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") - }) - - t.Run("GetActions_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - obj.Actions = nil - - // Act & Assert - assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") - }) - - t.Run("GetActions_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquare - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetActions() // Should return zero value - }) - - t.Run("GetColor", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var expected *DocAnnotationsList200ResponseAnnotationsItemSquareColor - obj.Color = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") - }) - - t.Run("GetColor_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - obj.Color = nil - - // Act & Assert - assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") - }) - - t.Run("GetColor_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquare - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetColor() // Should return zero value - }) - - t.Run("GetOpacity", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var expected float64 - obj.Opacity = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj.UserID = nil // Act & Assert - assert.Equal(t, expected, obj.GetOpacity(), "getter should return the property value") + assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") }) - t.Run("GetOpacity_NilReceiver", func(t *testing.T) { + t.Run("GetUserID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + var obj *DocAnnotationsList200ResponseAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOpacity() // Should return zero value + _ = obj.GetUserID() // Should return zero value }) - t.Run("GetStrokeWidth", func(t *testing.T) { + t.Run("GetGroupID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var expected float64 - obj.StrokeWidth = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var expected *string + obj.GroupID = expected // Act & Assert - assert.Equal(t, expected, obj.GetStrokeWidth(), "getter should return the property value") + assert.Equal(t, expected, obj.GetGroupID(), "getter should return the property value") }) - t.Run("GetStrokeWidth_NilReceiver", func(t *testing.T) { + t.Run("GetGroupID_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj.GroupID = nil + + // Act & Assert + assert.Nil(t, obj.GetGroupID(), "getter should return nil when property is nil") + }) + + t.Run("GetGroupID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetStrokeWidth() // Should return zero value + _ = obj.GetGroupID() // Should return zero value }) - t.Run("GetBorderStyle", func(t *testing.T) { + t.Run("GetCreatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var expected DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle - obj.BorderStyle = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var expected *string + obj.CreatedBy = expected // Act & Assert - assert.Equal(t, expected, obj.GetBorderStyle(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") }) - t.Run("GetBorderStyle_NilReceiver", func(t *testing.T) { + t.Run("GetCreatedBy_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj.CreatedBy = nil + + // Act & Assert + assert.Nil(t, obj.GetCreatedBy(), "getter should return nil when property is nil") + }) + + t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBorderStyle() // Should return zero value + _ = obj.GetCreatedBy() // Should return zero value }) - t.Run("GetDashArray", func(t *testing.T) { + t.Run("GetUpdatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var expected []float64 - obj.DashArray = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var expected *string + obj.UpdatedBy = expected // Act & Assert - assert.Equal(t, expected, obj.GetDashArray(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUpdatedBy(), "getter should return the property value") }) - t.Run("GetDashArray_NilValue", func(t *testing.T) { + t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - obj.DashArray = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj.UpdatedBy = nil // Act & Assert - assert.Nil(t, obj.GetDashArray(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetUpdatedBy(), "getter should return nil when property is nil") }) - t.Run("GetDashArray_NilReceiver", func(t *testing.T) { + t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + var obj *DocAnnotationsList200ResponseAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDashArray() // Should return zero value + _ = obj.GetUpdatedBy() // Should return zero value }) - t.Run("GetInteriorColor", func(t *testing.T) { + t.Run("GetActions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var expected *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor - obj.InteriorColor = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var expected *PdfAnnotationActions + obj.Actions = expected // Act & Assert - assert.Equal(t, expected, obj.GetInteriorColor(), "getter should return the property value") + assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") }) - t.Run("GetInteriorColor_NilValue", func(t *testing.T) { + t.Run("GetActions_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - obj.InteriorColor = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj.Actions = nil // Act & Assert - assert.Nil(t, obj.GetInteriorColor(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") }) - t.Run("GetInteriorColor_NilReceiver", func(t *testing.T) { + t.Run("GetActions_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + var obj *DocAnnotationsList200ResponseAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInteriorColor() // Should return zero value + _ = obj.GetActions() // Should return zero value }) - t.Run("GetCloudyIntensity", func(t *testing.T) { + t.Run("GetColor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var expected *float64 - obj.CloudyIntensity = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var expected *DocAnnotationsList200ResponseAnnotationsItemTextColor + obj.Color = expected // Act & Assert - assert.Equal(t, expected, obj.GetCloudyIntensity(), "getter should return the property value") + assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") }) - t.Run("GetCloudyIntensity_NilValue", func(t *testing.T) { + t.Run("GetColor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - obj.CloudyIntensity = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj.Color = nil // Act & Assert - assert.Nil(t, obj.GetCloudyIntensity(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") }) - t.Run("GetCloudyIntensity_NilReceiver", func(t *testing.T) { + t.Run("GetColor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + var obj *DocAnnotationsList200ResponseAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCloudyIntensity() // Should return zero value + _ = obj.GetColor() // Should return zero value }) - t.Run("GetRectDifferences", func(t *testing.T) { + t.Run("GetOpacity", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var expected *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences - obj.RectDifferences = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var expected float64 + obj.Opacity = expected // Act & Assert - assert.Equal(t, expected, obj.GetRectDifferences(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOpacity(), "getter should return the property value") }) - t.Run("GetRectDifferences_NilValue", func(t *testing.T) { + t.Run("GetOpacity_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemText + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetOpacity() // Should return zero value + }) + + t.Run("GetIcon", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - obj.RectDifferences = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var expected DocAnnotationsList200ResponseAnnotationsItemTextIcon + obj.Icon = expected // Act & Assert - assert.Nil(t, obj.GetRectDifferences(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetIcon(), "getter should return the property value") }) - t.Run("GetRectDifferences_NilReceiver", func(t *testing.T) { + t.Run("GetIcon_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + var obj *DocAnnotationsList200ResponseAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRectDifferences() // Should return zero value + _ = obj.GetIcon() // Should return zero value }) - t.Run("GetRotation", func(t *testing.T) { + t.Run("GetState", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var expected *float64 - obj.Rotation = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var expected *string + obj.State = expected // Act & Assert - assert.Equal(t, expected, obj.GetRotation(), "getter should return the property value") + assert.Equal(t, expected, obj.GetState(), "getter should return the property value") }) - t.Run("GetRotation_NilValue", func(t *testing.T) { + t.Run("GetState_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - obj.Rotation = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj.State = nil // Act & Assert - assert.Nil(t, obj.GetRotation(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetState(), "getter should return nil when property is nil") }) - t.Run("GetRotation_NilReceiver", func(t *testing.T) { + t.Run("GetState_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + var obj *DocAnnotationsList200ResponseAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRotation() // Should return zero value + _ = obj.GetState() // Should return zero value }) - t.Run("GetUnrotatedRect", func(t *testing.T) { + t.Run("GetStateModel", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var expected *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect - obj.UnrotatedRect = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var expected *string + obj.StateModel = expected // Act & Assert - assert.Equal(t, expected, obj.GetUnrotatedRect(), "getter should return the property value") + assert.Equal(t, expected, obj.GetStateModel(), "getter should return the property value") }) - t.Run("GetUnrotatedRect_NilValue", func(t *testing.T) { + t.Run("GetStateModel_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - obj.UnrotatedRect = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj.StateModel = nil // Act & Assert - assert.Nil(t, obj.GetUnrotatedRect(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetStateModel(), "getter should return nil when property is nil") }) - t.Run("GetUnrotatedRect_NilReceiver", func(t *testing.T) { + t.Run("GetStateModel_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquare + var obj *DocAnnotationsList200ResponseAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUnrotatedRect() // Should return zero value + _ = obj.GetStateModel() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquare(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemSquareRef + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemTextRef // Act obj.SetRef(fernTestValueRef) @@ -69029,7 +106463,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquare(t t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} var fernTestValuePageObjectNumber int // Act @@ -69060,7 +106494,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquare(t t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} var fernTestValueIndex int // Act @@ -69091,8 +106525,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquare(t t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemSquareIdentityQuality + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemTextIdentityQuality // Act obj.SetIdentityQuality(fernTestValueIdentityQuality) @@ -69122,7 +106556,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquare(t t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} var fernTestValueNm *string // Act @@ -69153,8 +106587,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquare(t t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemSquareFlags + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemTextFlags // Act obj.SetFlags(fernTestValueFlags) @@ -69184,8 +106618,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquare(t t.Run("SetRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemSquareRect + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemTextRect // Act obj.SetRect(fernTestValueRect) @@ -69215,7 +106649,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquare(t t.Run("SetContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} var fernTestValueContents *string // Act @@ -69246,7 +106680,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquare(t t.Run("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} var fernTestValueSubject *string // Act @@ -69277,7 +106711,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquare(t t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} var fernTestValueAuthor *string // Act @@ -69308,7 +106742,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquare(t t.Run("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} var fernTestValueCreated *time.Time // Act @@ -69339,7 +106773,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquare(t t.Run("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} var fernTestValueModified *time.Time // Act @@ -69370,8 +106804,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquare(t t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemSquareBlendMode + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemTextBlendMode // Act obj.SetBlendMode(fernTestValueBlendMode) @@ -69401,8 +106835,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquare(t t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo // Act obj.SetInReplyTo(fernTestValueInReplyTo) @@ -69432,8 +106866,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquare(t t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemSquareReplyType + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemTextReplyType // Act obj.SetReplyType(fernTestValueReplyType) @@ -69463,7 +106897,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquare(t t.Run("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} var fernTestValueUserID *string // Act @@ -69494,7 +106928,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquare(t t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} var fernTestValueGroupID *string // Act @@ -69522,14 +106956,776 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquare(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var fernTestValueCreatedBy *string + + // Act + obj.SetCreatedBy(fernTestValueCreatedBy) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var fernTestValueUpdatedBy *string + + // Act + obj.SetUpdatedBy(fernTestValueUpdatedBy) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var fernTestValueActions *PdfAnnotationActions + + // Act + obj.SetActions(fernTestValueActions) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetColor_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemTextColor + + // Act + obj.SetColor(fernTestValueColor) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var fernTestValueOpacity float64 + + // Act + obj.SetOpacity(fernTestValueOpacity) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIcon_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var fernTestValueIcon DocAnnotationsList200ResponseAnnotationsItemTextIcon + + // Act + obj.SetIcon(fernTestValueIcon) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetState_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var fernTestValueState *string + + // Act + obj.SetState(fernTestValueState) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetStateModel_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + var fernTestValueStateModel *string + + // Act + obj.SetStateModel(fernTestValueStateModel) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextColor(t *testing.T) { + t.Run("SetR", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemTextColor{} + var fernTestValueR int + obj.SetR(fernTestValueR) + assert.Equal(t, fernTestValueR, obj.R) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetG", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemTextColor{} + var fernTestValueG int + obj.SetG(fernTestValueG) + assert.Equal(t, fernTestValueG, obj.G) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetB", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemTextColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextColor{} + var expected int + obj.R = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") + }) + + t.Run("GetR_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemTextColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetR() // Should return zero value + }) + + t.Run("GetG", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextColor{} + var expected int + obj.G = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") + }) + + t.Run("GetG_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemTextColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetG() // Should return zero value + }) + + t.Run("GetB", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextColor{} + var expected int + obj.B = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + }) + + t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemTextColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetB() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextColor{} + var fernTestValueR int + + // Act + obj.SetR(fernTestValueR) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextColor{} + var fernTestValueG int + + // Act + obj.SetG(fernTestValueG) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextColor{} + var fernTestValueB int + + // Act + obj.SetB(fernTestValueB) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing.T) { + t.Run("SetInvisible", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + var fernTestValueInvisible bool + obj.SetInvisible(fernTestValueInvisible) + assert.Equal(t, fernTestValueInvisible, obj.Invisible) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetHidden", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + var fernTestValueHidden bool + obj.SetHidden(fernTestValueHidden) + assert.Equal(t, fernTestValueHidden, obj.Hidden) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrint", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + var fernTestValuePrint bool + obj.SetPrint(fernTestValuePrint) + assert.Equal(t, fernTestValuePrint, obj.Print) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNoZoom", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + var fernTestValueNoZoom bool + obj.SetNoZoom(fernTestValueNoZoom) + assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNoRotate", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + var fernTestValueNoRotate bool + obj.SetNoRotate(fernTestValueNoRotate) + assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNoView", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + var fernTestValueNoView bool + obj.SetNoView(fernTestValueNoView) + assert.Equal(t, fernTestValueNoView, obj.NoView) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetReadOnly", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + var fernTestValueReadOnly bool + obj.SetReadOnly(fernTestValueReadOnly) + assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLocked", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + var fernTestValueLocked bool + obj.SetLocked(fernTestValueLocked) + assert.Equal(t, fernTestValueLocked, obj.Locked) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetToggleNoView", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + var fernTestValueToggleNoView bool + obj.SetToggleNoView(fernTestValueToggleNoView) + assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLockedContents", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + var fernTestValueLockedContents bool + obj.SetLockedContents(fernTestValueLockedContents) + assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing.T) { + t.Run("GetInvisible", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + var expected bool + obj.Invisible = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetInvisible(), "getter should return the property value") + }) + + t.Run("GetInvisible_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemTextFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetInvisible() // Should return zero value + }) + + t.Run("GetHidden", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + var expected bool + obj.Hidden = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") + }) + + t.Run("GetHidden_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemTextFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetHidden() // Should return zero value + }) + + t.Run("GetPrint", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + var expected bool + obj.Print = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") + }) + + t.Run("GetPrint_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemTextFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrint() // Should return zero value + }) + + t.Run("GetNoZoom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + var expected bool + obj.NoZoom = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") + }) + + t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemTextFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNoZoom() // Should return zero value + }) + + t.Run("GetNoRotate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + var expected bool + obj.NoRotate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") + }) + + t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemTextFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNoRotate() // Should return zero value + }) + + t.Run("GetNoView", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + var expected bool + obj.NoView = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") + }) + + t.Run("GetNoView_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemTextFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNoView() // Should return zero value + }) + + t.Run("GetReadOnly", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + var expected bool + obj.ReadOnly = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") + }) + + t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemTextFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetReadOnly() // Should return zero value + }) + + t.Run("GetLocked", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + var expected bool + obj.Locked = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") + }) + + t.Run("GetLocked_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemTextFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLocked() // Should return zero value + }) + + t.Run("GetToggleNoView", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + var expected bool + obj.ToggleNoView = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") + }) + + t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemTextFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetToggleNoView() // Should return zero value + }) + + t.Run("GetLockedContents", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + var expected bool + obj.LockedContents = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") + }) + + t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemTextFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLockedContents() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing.T) { + t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueCreatedBy *string + obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + var fernTestValueInvisible bool // Act - obj.SetCreatedBy(fernTestValueCreatedBy) + obj.SetInvisible(fernTestValueInvisible) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -69553,14 +107749,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquare(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetHidden_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueUpdatedBy *string + obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + var fernTestValueHidden bool // Act - obj.SetUpdatedBy(fernTestValueUpdatedBy) + obj.SetHidden(fernTestValueHidden) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -69584,14 +107780,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquare(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Run("SetPrint_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueActions *PdfAnnotationActions + obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + var fernTestValuePrint bool // Act - obj.SetActions(fernTestValueActions) + obj.SetPrint(fernTestValuePrint) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -69615,14 +107811,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquare(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetColor_MarksExplicit", func(t *testing.T) { + t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemSquareColor + obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + var fernTestValueNoZoom bool // Act - obj.SetColor(fernTestValueColor) + obj.SetNoZoom(fernTestValueNoZoom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -69646,14 +107842,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquare(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { + t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueOpacity float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + var fernTestValueNoRotate bool // Act - obj.SetOpacity(fernTestValueOpacity) + obj.SetNoRotate(fernTestValueNoRotate) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -69677,14 +107873,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquare(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetStrokeWidth_MarksExplicit", func(t *testing.T) { + t.Run("SetNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueStrokeWidth float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + var fernTestValueNoView bool // Act - obj.SetStrokeWidth(fernTestValueStrokeWidth) + obj.SetNoView(fernTestValueNoView) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -69708,14 +107904,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquare(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBorderStyle_MarksExplicit", func(t *testing.T) { + t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueBorderStyle DocAnnotationsList200ResponseAnnotationsItemSquareBorderStyle + obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + var fernTestValueReadOnly bool // Act - obj.SetBorderStyle(fernTestValueBorderStyle) + obj.SetReadOnly(fernTestValueReadOnly) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -69739,14 +107935,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquare(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDashArray_MarksExplicit", func(t *testing.T) { + t.Run("SetLocked_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueDashArray []float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + var fernTestValueLocked bool // Act - obj.SetDashArray(fernTestValueDashArray) + obj.SetLocked(fernTestValueLocked) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -69770,14 +107966,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquare(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInteriorColor_MarksExplicit", func(t *testing.T) { + t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueInteriorColor *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor + obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + var fernTestValueToggleNoView bool // Act - obj.SetInteriorColor(fernTestValueInteriorColor) + obj.SetToggleNoView(fernTestValueToggleNoView) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -69801,14 +107997,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquare(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCloudyIntensity_MarksExplicit", func(t *testing.T) { + t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueCloudyIntensity *float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + var fernTestValueLockedContents bool // Act - obj.SetCloudyIntensity(fernTestValueCloudyIntensity) + obj.SetLockedContents(fernTestValueLockedContents) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -69832,209 +108028,251 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquare(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRectDifferences_MarksExplicit", func(t *testing.T) { +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyTo(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueRectDifferences *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo{} + var expected string + obj.Kind = expected - // Act - obj.SetRectDifferences(fernTestValueRectDifferences) + // Act & Assert + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKind() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber + obj.ObjectNumber = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") }) - t.Run("SetRotation_MarksExplicit", func(t *testing.T) { + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueRotation *float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo{} + obj.ObjectNumber = nil - // Act - obj.SetRotation(fernTestValueRotation) + // Act & Assert + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetObjectNumber() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm + obj.Nm = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("SetUnrotatedRect_MarksExplicit", func(t *testing.T) { + t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquare{} - var fernTestValueUnrotatedRect *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo{} + obj.Nm = nil - // Act - obj.SetUnrotatedRect(fernTestValueUnrotatedRect) + // Act & Assert + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex + obj.Index = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo{} + obj.Index = nil + + // Act & Assert + assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value }) } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareColor(t *testing.T) { - t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareColor{} - var fernTestValueR int - obj.SetR(fernTestValueR) - assert.Equal(t, fernTestValueR, obj.R) +func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareColor{} - var fernTestValueG int - obj.SetG(fernTestValueG) - assert.Equal(t, fernTestValueG, obj.G) + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareColor{} - var fernTestValueB int - obj.SetB(fernTestValueB) - assert.Equal(t, fernTestValueB, obj.B) + t.Run("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareColor(t *testing.T) { - t.Run("GetR", func(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareColor{} + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex{} var expected int - obj.R = expected + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetR(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetR_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareColor + var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetR() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetG", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareColor{} + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex{} var expected int - obj.G = expected + obj.Index = expected // Act & Assert - assert.Equal(t, expected, obj.GetG(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetG_NilReceiver", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareColor + var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetG() // Should return zero value + _ = obj.GetIndex() // Should return zero value }) - t.Run("GetB", func(t *testing.T) { + t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareColor{} - var expected int - obj.B = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex{} + var expected *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision + obj.Revision = expected // Act & Assert - assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") }) - t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareColor + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex{} + obj.Revision = nil + + // Act & Assert + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + }) + + t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetB() // Should return zero value + _ = obj.GetRevision() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareColor(t *testing.T) { - t.Run("SetR_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareColor{} - var fernTestValueR int + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex{} + var fernTestValuePageObjectNumber int // Act - obj.SetR(fernTestValueR) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -70058,14 +108296,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareCo // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareColor{} - var fernTestValueG int + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex{} + var fernTestValueIndex int // Act - obj.SetG(fernTestValueG) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -70089,14 +108327,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareCo // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareColor{} - var fernTestValueB int + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision // Act - obj.SetB(fernTestValueB) + obj.SetRevision(fernTestValueRevision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -70122,331 +108360,278 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareCo } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareFlags(t *testing.T) { - t.Run("SetInvisible", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} - var fernTestValueInvisible bool - obj.SetInvisible(fernTestValueInvisible) - assert.Equal(t, fernTestValueInvisible, obj.Invisible) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetHidden", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} - var fernTestValueHidden bool - obj.SetHidden(fernTestValueHidden) - assert.Equal(t, fernTestValueHidden, obj.Hidden) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetPrint", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} - var fernTestValuePrint bool - obj.SetPrint(fernTestValuePrint) - assert.Equal(t, fernTestValuePrint, obj.Print) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNoZoom", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} - var fernTestValueNoZoom bool - obj.SetNoZoom(fernTestValueNoZoom) - assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNoRotate", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} - var fernTestValueNoRotate bool - obj.SetNoRotate(fernTestValueNoRotate) - assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNoView", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} - var fernTestValueNoView bool - obj.SetNoView(fernTestValueNoView) - assert.Equal(t, fernTestValueNoView, obj.NoView) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} - var fernTestValueReadOnly bool - obj.SetReadOnly(fernTestValueReadOnly) - assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetLocked", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} - var fernTestValueLocked bool - obj.SetLocked(fernTestValueLocked) - assert.Equal(t, fernTestValueLocked, obj.Locked) +func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision{} + var fernTestValueDocSessionID string + obj.SetDocSessionID(fernTestValueDocSessionID) + assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetToggleNoView", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} - var fernTestValueToggleNoView bool - obj.SetToggleNoView(fernTestValueToggleNoView) - assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetLockedContents", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} - var fernTestValueLockedContents bool - obj.SetLockedContents(fernTestValueLockedContents) - assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) + t.Run("SetGeneration", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareFlags(t *testing.T) { - t.Run("GetInvisible", func(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} - var expected bool - obj.Invisible = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision{} + var expected string + obj.DocSessionID = expected // Act & Assert - assert.Equal(t, expected, obj.GetInvisible(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") }) - t.Run("GetInvisible_NilReceiver", func(t *testing.T) { + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInvisible() // Should return zero value + _ = obj.GetDocSessionID() // Should return zero value }) - t.Run("GetHidden", func(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} - var expected bool - obj.Hidden = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetHidden_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetHidden() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetPrint", func(t *testing.T) { + t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} - var expected bool - obj.Print = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision{} + var expected int + obj.Generation = expected // Act & Assert - assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") }) - t.Run("GetPrint_NilReceiver", func(t *testing.T) { + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPrint() // Should return zero value + _ = obj.GetGeneration() // Should return zero value }) - t.Run("GetNoZoom", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} - var expected bool - obj.NoZoom = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") - }) + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision{} + var fernTestValueDocSessionID string - t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNoZoom() // Should return zero value - }) + // Act + obj.SetDocSessionID(fernTestValueDocSessionID) - t.Run("GetNoRotate", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} - var expected bool - obj.NoRotate = expected + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNoRotate() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetNoView", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} - var expected bool - obj.NoView = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int - // Act & Assert - assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") - }) + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - t.Run("GetNoView_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNoView() // Should return zero value + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetReadOnly", func(t *testing.T) { + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} - var expected bool - obj.ReadOnly = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision{} + var fernTestValueGeneration int - // Act & Assert - assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") - }) + // Act + obj.SetGeneration(fernTestValueGeneration) - t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetReadOnly() // Should return zero value + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetLocked", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} - var expected bool - obj.Locked = expected +} - // Act & Assert - assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") +func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetLocked_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetLocked() // Should return zero value + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetToggleNoView", func(t *testing.T) { +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} - var expected bool - obj.ToggleNoView = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetToggleNoView() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetLockedContents", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} - var expected bool - obj.LockedContents = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm{} + var expected string + obj.Nm = expected // Act & Assert - assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLockedContents() // Should return zero value + _ = obj.GetNm() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareFlags(t *testing.T) { - t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} - var fernTestValueInvisible bool + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm{} + var fernTestValuePageObjectNumber int // Act - obj.SetInvisible(fernTestValueInvisible) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -70470,14 +108655,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareFl // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetHidden_MarksExplicit", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} - var fernTestValueHidden bool + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm{} + var fernTestValueNm string // Act - obj.SetHidden(fernTestValueHidden) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -70501,45 +108686,85 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareFl // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPrint_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} - var fernTestValuePrint bool + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber{} + var expected int + obj.PageObjectNumber = expected - // Act - obj.SetPrint(fernTestValuePrint) + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") }) - t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAnnotObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} - var fernTestValueNoZoom bool + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int // Act - obj.SetNoZoom(fernTestValueNoZoom) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -70563,14 +108788,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareFl // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} - var fernTestValueNoRotate bool + obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int // Act - obj.SetNoRotate(fernTestValueNoRotate) + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -70594,45 +108819,147 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareFl // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoView_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextRect(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRect{} + var fernTestValueLeft float64 + obj.SetLeft(fernTestValueLeft) + assert.Equal(t, fernTestValueLeft, obj.Left) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBottom", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRect{} + var fernTestValueBottom float64 + obj.SetBottom(fernTestValueBottom) + assert.Equal(t, fernTestValueBottom, obj.Bottom) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRight", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRect{} + var fernTestValueRight float64 + obj.SetRight(fernTestValueRight) + assert.Equal(t, fernTestValueRight, obj.Right) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetTop", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRect{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} - var fernTestValueNoView bool + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRect{} + var expected float64 + obj.Left = expected - // Act - obj.SetNoView(fernTestValueNoView) + // Act & Assert + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetLeft_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemTextRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLeft() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetBottom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRect{} + var expected float64 + obj.Bottom = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") }) - t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { + t.Run("GetBottom_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemTextRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBottom() // Should return zero value + }) + + t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} - var fernTestValueReadOnly bool + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRect{} + var expected float64 + obj.Right = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") + }) + + t.Run("GetRight_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemTextRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRight() // Should return zero value + }) + + t.Run("GetTop", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRect{} + var expected float64 + obj.Top = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + }) + + t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemTextRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetTop() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRect{} + var fernTestValueLeft float64 // Act - obj.SetReadOnly(fernTestValueReadOnly) + obj.SetLeft(fernTestValueLeft) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -70656,14 +108983,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareFl // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLocked_MarksExplicit", func(t *testing.T) { + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} - var fernTestValueLocked bool + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRect{} + var fernTestValueBottom float64 // Act - obj.SetLocked(fernTestValueLocked) + obj.SetBottom(fernTestValueBottom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -70687,14 +109014,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareFl // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { + t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} - var fernTestValueToggleNoView bool + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRect{} + var fernTestValueRight float64 // Act - obj.SetToggleNoView(fernTestValueToggleNoView) + obj.SetRight(fernTestValueRight) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -70718,14 +109045,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareFl // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { + t.Run("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareFlags{} - var fernTestValueLockedContents bool + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRect{} + var fernTestValueTop float64 // Act - obj.SetLockedContents(fernTestValueLockedContents) + obj.SetTop(fernTestValueTop) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -70751,11 +109078,11 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareFl } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRef(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo{} + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRef{} var expected string obj.Kind = expected @@ -70765,7 +109092,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo(t *t t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo + var obj *DocAnnotationsList200ResponseAnnotationsItemTextRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -70778,8 +109105,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo(t *t t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -70789,7 +109116,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo(t *t t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo{} + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRef{} obj.ObjectNumber = nil // Act & Assert @@ -70798,7 +109125,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo(t *t t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo + var obj *DocAnnotationsList200ResponseAnnotationsItemTextRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -70811,8 +109138,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo(t *t t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemTextRefNm obj.Nm = expected // Act & Assert @@ -70822,7 +109149,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo(t *t t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo{} + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRef{} obj.Nm = nil // Act & Assert @@ -70831,7 +109158,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo(t *t t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo + var obj *DocAnnotationsList200ResponseAnnotationsItemTextRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -70844,8 +109171,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo(t *t t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex obj.Index = expected // Act & Assert @@ -70855,7 +109182,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo(t *t t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo{} + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRef{} obj.Index = nil // Act & Assert @@ -70864,7 +109191,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo(t *t t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo + var obj *DocAnnotationsList200ResponseAnnotationsItemTextRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -70876,9 +109203,9 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyTo(t *t } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextRefIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -70886,7 +109213,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -70894,8 +109221,8 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -70903,11 +109230,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRefIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndex{} var expected int obj.PageObjectNumber = expected @@ -70917,7 +109244,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex + var obj *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -70930,7 +109257,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndex{} var expected int obj.Index = expected @@ -70940,7 +109267,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex + var obj *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -70953,8 +109280,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex{} - var expected *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndex{} + var expected *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision obj.Revision = expected // Act & Assert @@ -70964,7 +109291,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndex{} obj.Revision = nil // Act & Assert @@ -70973,7 +109300,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex + var obj *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -70985,11 +109312,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextRefIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndex{} var fernTestValuePageObjectNumber int // Act @@ -71020,7 +109347,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareIn t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndex{} var fernTestValueIndex int // Act @@ -71051,8 +109378,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareIn t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -71081,9 +109408,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareIn } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -71091,7 +109418,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -71099,7 +109426,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -71108,11 +109435,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision{} var expected string obj.DocSessionID = expected @@ -71122,7 +109449,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision + var obj *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -71135,7 +109462,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -71145,7 +109472,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision + var obj *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -71158,7 +109485,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision{} var expected int obj.Generation = expected @@ -71168,7 +109495,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision + var obj *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -71180,11 +109507,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndex } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision{} var fernTestValueDocSessionID string // Act @@ -71215,7 +109542,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareIn t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -71246,7 +109573,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareIn t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision{} var fernTestValueGeneration int // Act @@ -71276,9 +109603,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareIn } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextRefNm(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefNm{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -71286,7 +109613,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm(t }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefNm{} var fernTestValueNm string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -71295,11 +109622,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm(t } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRefNm(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefNm{} var expected int obj.PageObjectNumber = expected @@ -71309,7 +109636,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm(t t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm + var obj *DocAnnotationsList200ResponseAnnotationsItemTextRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -71322,7 +109649,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm(t t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefNm{} var expected string obj.Nm = expected @@ -71332,7 +109659,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm(t t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm + var obj *DocAnnotationsList200ResponseAnnotationsItemTextRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -71344,11 +109671,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm(t } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextRefNm(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefNm{} var fernTestValuePageObjectNumber int // Act @@ -71379,7 +109706,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareIn t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefNm{} var fernTestValueNm string // Act @@ -71409,9 +109736,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareIn } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -71419,7 +109746,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjec }) t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber{} var fernTestValueAnnotObjectNumber int obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) @@ -71428,11 +109755,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjec } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber{} var expected int obj.PageObjectNumber = expected @@ -71442,7 +109769,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjec t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber + var obj *DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -71455,7 +109782,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjec t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber{} var expected int obj.AnnotObjectNumber = expected @@ -71463,224 +109790,29 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjec assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") }) - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAnnotObjectNumber() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber{} - var fernTestValuePageObjectNumber int - - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int - - // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor(t *testing.T) { - t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor{} - var fernTestValueR int - obj.SetR(fernTestValueR) - assert.Equal(t, fernTestValueR, obj.R) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor{} - var fernTestValueG int - obj.SetG(fernTestValueG) - assert.Equal(t, fernTestValueG, obj.G) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor{} - var fernTestValueB int - obj.SetB(fernTestValueB) - assert.Equal(t, fernTestValueB, obj.B) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor(t *testing.T) { - t.Run("GetR", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor{} - var expected int - obj.R = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetR(), "getter should return the property value") - }) - - t.Run("GetR_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetR() // Should return zero value - }) - - t.Run("GetG", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor{} - var expected int - obj.G = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetG(), "getter should return the property value") - }) - - t.Run("GetG_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetG() // Should return zero value - }) - - t.Run("GetB", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor{} - var expected int - obj.B = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetB(), "getter should return the property value") - }) - - t.Run("GetB_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetB() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor(t *testing.T) { - t.Run("SetR_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor{} - var fernTestValueR int - - // Act - obj.SetR(fernTestValueR) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAnnotObjectNumber() // Should return zero value }) - t.Run("SetG_MarksExplicit", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor{} - var fernTestValueG int + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber{} + var fernTestValuePageObjectNumber int // Act - obj.SetG(fernTestValueG) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -71704,14 +109836,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareIn // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareInteriorColor{} - var fernTestValueB int + obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber{} + var fernTestValueAnnotObjectNumber int // Act - obj.SetB(fernTestValueB) + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -71737,759 +109869,941 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareIn } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareRect(t *testing.T) { - t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRect{} - var fernTestValueLeft float64 - obj.SetLeft(fernTestValueLeft) - assert.Equal(t, fernTestValueLeft, obj.Left) +func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing.T) { + t.Run("SetRef", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef + obj.SetRef(fernTestValueRef) + assert.Equal(t, fernTestValueRef, obj.Ref) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRect{} - var fernTestValueBottom float64 - obj.SetBottom(fernTestValueBottom) - assert.Equal(t, fernTestValueBottom, obj.Bottom) + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRect{} - var fernTestValueRight float64 - obj.SetRight(fernTestValueRight) - assert.Equal(t, fernTestValueRight, obj.Right) + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRect{} - var fernTestValueTop float64 - obj.SetTop(fernTestValueTop) - assert.Equal(t, fernTestValueTop, obj.Top) + t.Run("SetIdentityQuality", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQuality + obj.SetIdentityQuality(fernTestValueIdentityQuality) + assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueNm *string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFlags", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags + obj.SetFlags(fernTestValueFlags) + assert.Equal(t, fernTestValueFlags, obj.Flags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRect", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect + obj.SetRect(fernTestValueRect) + assert.Equal(t, fernTestValueRect, obj.Rect) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetContents", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueContents *string + obj.SetContents(fernTestValueContents) + assert.Equal(t, fernTestValueContents, obj.Contents) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubject", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueSubject *string + obj.SetSubject(fernTestValueSubject) + assert.Equal(t, fernTestValueSubject, obj.Subject) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAuthor", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueAuthor *string + obj.SetAuthor(fernTestValueAuthor) + assert.Equal(t, fernTestValueAuthor, obj.Author) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCreated", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueCreated *time.Time + obj.SetCreated(fernTestValueCreated) + assert.Equal(t, fernTestValueCreated, obj.Created) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetModified", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueModified *time.Time + obj.SetModified(fernTestValueModified) + assert.Equal(t, fernTestValueModified, obj.Modified) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBlendMode", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode + obj.SetBlendMode(fernTestValueBlendMode) + assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetInReplyTo", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo + obj.SetInReplyTo(fernTestValueInReplyTo) + assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetReplyType", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyType + obj.SetReplyType(fernTestValueReplyType) + assert.Equal(t, fernTestValueReplyType, obj.ReplyType) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetUserID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueUserID *string + obj.SetUserID(fernTestValueUserID) + assert.Equal(t, fernTestValueUserID, obj.UserID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetGroupID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueGroupID *string + obj.SetGroupID(fernTestValueGroupID) + assert.Equal(t, fernTestValueGroupID, obj.GroupID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCreatedBy", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueCreatedBy *string + obj.SetCreatedBy(fernTestValueCreatedBy) + assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetUpdatedBy", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueUpdatedBy *string + obj.SetUpdatedBy(fernTestValueUpdatedBy) + assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetActions", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueActions *PdfAnnotationActions + obj.SetActions(fernTestValueActions) + assert.Equal(t, fernTestValueActions, obj.Actions) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetColor", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor + obj.SetColor(fernTestValueColor) + assert.Equal(t, fernTestValueColor, obj.Color) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetOpacity", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueOpacity float64 + obj.SetOpacity(fernTestValueOpacity) + assert.Equal(t, fernTestValueOpacity, obj.Opacity) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetQuadPoints", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueQuadPoints []*DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem + obj.SetQuadPoints(fernTestValueQuadPoints) + assert.Equal(t, fernTestValueQuadPoints, obj.QuadPoints) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareRect(t *testing.T) { - t.Run("GetLeft", func(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRect{} - var expected float64 - obj.Left = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef + obj.Ref = expected // Act & Assert - assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") }) - t.Run("GetLeft_NilReceiver", func(t *testing.T) { + t.Run("GetRef_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRect + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj.Ref = nil + + // Act & Assert + assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") + }) + + t.Run("GetRef_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLeft() // Should return zero value + _ = obj.GetRef() // Should return zero value }) - t.Run("GetBottom", func(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRect{} - var expected float64 - obj.Bottom = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetBottom_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRect + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBottom() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetRight", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRect{} - var expected float64 - obj.Right = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var expected int + obj.Index = expected // Act & Assert - assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetRight_NilReceiver", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRect + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRight() // Should return zero value + _ = obj.GetIndex() // Should return zero value }) - t.Run("GetTop", func(t *testing.T) { + t.Run("GetIdentityQuality", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRect{} - var expected float64 - obj.Top = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var expected DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQuality + obj.IdentityQuality = expected // Act & Assert - assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIdentityQuality(), "getter should return the property value") }) - t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRect + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTop() // Should return zero value + _ = obj.GetIdentityQuality() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareRect(t *testing.T) { - t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRect{} - var fernTestValueLeft float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var expected *string + obj.Nm = expected - // Act - obj.SetLeft(fernTestValueLeft) + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetNm_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj.Nm = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value }) - t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRect{} - var fernTestValueBottom float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags + obj.Flags = expected - // Act - obj.SetBottom(fernTestValueBottom) + // Act & Assert + assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetFlags_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj.Flags = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFlags() // Should return zero value }) - t.Run("SetRight_MarksExplicit", func(t *testing.T) { + t.Run("GetRect", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRect{} - var fernTestValueRight float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect + obj.Rect = expected - // Act - obj.SetRight(fernTestValueRight) + // Act & Assert + assert.Equal(t, expected, obj.GetRect(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetRect_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj.Rect = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetRect(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetRect_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRect() // Should return zero value }) - t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Run("GetContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRect{} - var fernTestValueTop float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var expected *string + obj.Contents = expected - // Act - obj.SetTop(fernTestValueTop) + // Act & Assert + assert.Equal(t, expected, obj.GetContents(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetContents_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj.Contents = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetContents(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetContents_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetContents() // Should return zero value }) -} + t.Run("GetSubject", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var expected *string + obj.Subject = expected -func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences(t *testing.T) { - t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences{} - var fernTestValueLeft float64 - obj.SetLeft(fernTestValueLeft) - assert.Equal(t, fernTestValueLeft, obj.Left) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetSubject(), "getter should return the property value") }) - t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences{} - var fernTestValueTop float64 - obj.SetTop(fernTestValueTop) - assert.Equal(t, fernTestValueTop, obj.Top) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("GetSubject_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj.Subject = nil - t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences{} - var fernTestValueRight float64 - obj.SetRight(fernTestValueRight) - assert.Equal(t, fernTestValueRight, obj.Right) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Nil(t, obj.GetSubject(), "getter should return nil when property is nil") }) - t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences{} - var fernTestValueBottom float64 - obj.SetBottom(fernTestValueBottom) - assert.Equal(t, fernTestValueBottom, obj.Bottom) - assert.NotNil(t, obj.explicitFields) + t.Run("GetSubject_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSubject() // Should return zero value }) -} + t.Run("GetAuthor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var expected *string + obj.Author = expected -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences(t *testing.T) { - t.Run("GetLeft", func(t *testing.T) { + // Act & Assert + assert.Equal(t, expected, obj.GetAuthor(), "getter should return the property value") + }) + + t.Run("GetAuthor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences{} - var expected float64 - obj.Left = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj.Author = nil // Act & Assert - assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") + assert.Nil(t, obj.GetAuthor(), "getter should return nil when property is nil") }) - t.Run("GetLeft_NilReceiver", func(t *testing.T) { + t.Run("GetAuthor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLeft() // Should return zero value + _ = obj.GetAuthor() // Should return zero value }) - t.Run("GetTop", func(t *testing.T) { + t.Run("GetCreated", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences{} - var expected float64 - obj.Top = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var expected *time.Time + obj.Created = expected // Act & Assert - assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCreated(), "getter should return the property value") }) - t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Run("GetCreated_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj.Created = nil + + // Act & Assert + assert.Nil(t, obj.GetCreated(), "getter should return nil when property is nil") + }) + + t.Run("GetCreated_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTop() // Should return zero value + _ = obj.GetCreated() // Should return zero value }) - t.Run("GetRight", func(t *testing.T) { + t.Run("GetModified", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences{} - var expected float64 - obj.Right = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var expected *time.Time + obj.Modified = expected // Act & Assert - assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") + assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") }) - t.Run("GetRight_NilReceiver", func(t *testing.T) { + t.Run("GetModified_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj.Modified = nil + + // Act & Assert + assert.Nil(t, obj.GetModified(), "getter should return nil when property is nil") + }) + + t.Run("GetModified_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRight() // Should return zero value + _ = obj.GetModified() // Should return zero value }) - t.Run("GetBottom", func(t *testing.T) { + t.Run("GetBlendMode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences{} - var expected float64 - obj.Bottom = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var expected DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode + obj.BlendMode = expected // Act & Assert - assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBlendMode(), "getter should return the property value") }) - t.Run("GetBottom_NilReceiver", func(t *testing.T) { + t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBottom() // Should return zero value + _ = obj.GetBlendMode() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences(t *testing.T) { - t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Run("GetInReplyTo", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences{} - var fernTestValueLeft float64 - - // Act - obj.SetLeft(fernTestValueLeft) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo + obj.InReplyTo = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetInReplyTo(), "getter should return the property value") }) - t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Run("GetInReplyTo_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences{} - var fernTestValueTop float64 - - // Act - obj.SetTop(fernTestValueTop) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj.InReplyTo = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetInReplyTo(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetInReplyTo() // Should return zero value }) - t.Run("SetRight_MarksExplicit", func(t *testing.T) { + t.Run("GetReplyType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences{} - var fernTestValueRight float64 - - // Act - obj.SetRight(fernTestValueRight) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyType + obj.ReplyType = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetReplyType(), "getter should return the property value") }) - t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Run("GetReplyType_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRectDifferences{} - var fernTestValueBottom float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj.ReplyType = nil - // Act - obj.SetBottom(fernTestValueBottom) + // Act & Assert + assert.Nil(t, obj.GetReplyType(), "getter should return nil when property is nil") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetReplyType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetReplyType() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetUserID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var expected *string + obj.UserID = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") }) -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareRef(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { + t.Run("GetUserID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRef{} - var expected string - obj.Kind = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj.UserID = nil // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetUserID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRef + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKind() // Should return zero value + _ = obj.GetUserID() // Should return zero value }) - t.Run("GetObjectNumber", func(t *testing.T) { + t.Run("GetGroupID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber - obj.ObjectNumber = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var expected *string + obj.GroupID = expected // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetGroupID(), "getter should return the property value") }) - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Run("GetGroupID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRef{} - obj.ObjectNumber = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj.GroupID = nil // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetGroupID(), "getter should return nil when property is nil") }) - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetGroupID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRef + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetObjectNumber() // Should return zero value + _ = obj.GetGroupID() // Should return zero value }) - t.Run("GetNm", func(t *testing.T) { + t.Run("GetCreatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemSquareRefNm - obj.Nm = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var expected *string + obj.CreatedBy = expected // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") }) - t.Run("GetNm_NilValue", func(t *testing.T) { + t.Run("GetCreatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRef{} - obj.Nm = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj.CreatedBy = nil // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCreatedBy(), "getter should return nil when property is nil") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRef + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetCreatedBy() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetUpdatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex - obj.Index = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var expected *string + obj.UpdatedBy = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUpdatedBy(), "getter should return the property value") }) - t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRef{} - obj.Index = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj.UpdatedBy = nil // Act & Assert - assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetUpdatedBy(), "getter should return nil when property is nil") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRef + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetUpdatedBy() // Should return zero value }) -} + t.Run("GetActions", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var expected *PdfAnnotationActions + obj.Actions = expected -func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareRefIndex(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") }) - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) - assert.NotNil(t, obj.explicitFields) + t.Run("GetActions_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj.Actions = nil + + // Act & Assert + assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") }) - t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) - assert.NotNil(t, obj.explicitFields) + t.Run("GetActions_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetActions() // Should return zero value }) -} + t.Run("GetColor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor + obj.Color = expected -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareRefIndex(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + // Act & Assert + assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") + }) + + t.Run("GetColor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj.Color = nil // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetColor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetColor() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetOpacity", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex{} - var expected int - obj.Index = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var expected float64 + obj.Opacity = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOpacity(), "getter should return the property value") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetOpacity_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetOpacity() // Should return zero value }) - t.Run("GetRevision", func(t *testing.T) { + t.Run("GetQuadPoints", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex{} - var expected *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision - obj.Revision = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var expected []*DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem + obj.QuadPoints = expected // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + assert.Equal(t, expected, obj.GetQuadPoints(), "getter should return the property value") }) - t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Run("GetQuadPoints_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex{} - obj.Revision = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj.QuadPoints = nil // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetQuadPoints(), "getter should return nil when property is nil") + }) + + t.Run("GetQuadPoints_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetQuadPoints() // Should return zero value }) - t.Run("GetRevision_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRevision() // Should return zero value +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef + + // Act + obj.SetRef(fernTestValueRef) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareRefIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} var fernTestValuePageObjectNumber int // Act @@ -72520,7 +110834,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareRe t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} var fernTestValueIndex int // Act @@ -72548,14 +110862,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareRe // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQuality // Act - obj.SetRevision(fernTestValueRevision) + obj.SetIdentityQuality(fernTestValueIdentityQuality) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -72579,116 +110893,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareRe // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision{} - var fernTestValueDocSessionID string - obj.SetDocSessionID(fernTestValueDocSessionID) - assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision{} - var expected string - obj.DocSessionID = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") - }) - - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetDocSessionID() // Should return zero value - }) - - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetGeneration", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision{} - var expected int - obj.Generation = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") - }) - - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetGeneration() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision{} - var fernTestValueDocSessionID string + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueNm *string // Act - obj.SetDocSessionID(fernTestValueDocSessionID) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -72712,14 +110924,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareRe // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetFlags(fernTestValueFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -72743,14 +110955,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareRe // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("SetRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefIndexRevision{} - var fernTestValueGeneration int + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect // Act - obj.SetGeneration(fernTestValueGeneration) + obj.SetRect(fernTestValueRect) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -72774,85 +110986,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareRe // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareRefNm(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefNm{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefNm{} - var fernTestValueNm string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareRefNm(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefNm{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRefNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefNm{} - var expected string - obj.Nm = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") - }) - - t.Run("GetNm_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRefNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNm() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareRefNm(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefNm{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueContents *string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetContents(fernTestValueContents) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -72876,14 +111017,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareRe // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefNm{} - var fernTestValueNm string + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueSubject *string // Act - obj.SetNm(fernTestValueNm) + obj.SetSubject(fernTestValueSubject) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -72907,85 +111048,45 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareRe // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueAuthor *string - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) + // Act + obj.SetAuthor(fernTestValueAuthor) - t.Run("GetAnnotObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAnnotObjectNumber() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueCreated *time.Time // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetCreated(fernTestValueCreated) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -73009,14 +111110,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareRe // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareRefObjectNumber{} - var fernTestValueAnnotObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueModified *time.Time // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + obj.SetModified(fernTestValueModified) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -73040,147 +111141,76 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareRe // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect(t *testing.T) { - t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect{} - var fernTestValueLeft float64 - obj.SetLeft(fernTestValueLeft) - assert.Equal(t, fernTestValueLeft, obj.Left) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect{} - var fernTestValueBottom float64 - obj.SetBottom(fernTestValueBottom) - assert.Equal(t, fernTestValueBottom, obj.Bottom) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect{} - var fernTestValueRight float64 - obj.SetRight(fernTestValueRight) - assert.Equal(t, fernTestValueRight, obj.Right) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect{} - var fernTestValueTop float64 - obj.SetTop(fernTestValueTop) - assert.Equal(t, fernTestValueTop, obj.Top) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect(t *testing.T) { - t.Run("GetLeft", func(t *testing.T) { + t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect{} - var expected float64 - obj.Left = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") - }) + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode - t.Run("GetLeft_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetLeft() // Should return zero value - }) + // Act + obj.SetBlendMode(fernTestValueBlendMode) - t.Run("GetBottom", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect{} - var expected float64 - obj.Bottom = expected + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetBottom_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetBottom() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetRight", func(t *testing.T) { + t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect{} - var expected float64 - obj.Right = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") - }) + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo - t.Run("GetRight_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRight() // Should return zero value - }) + // Act + obj.SetInReplyTo(fernTestValueInReplyTo) - t.Run("GetTop", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect{} - var expected float64 - obj.Top = expected + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetTop_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetTop() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect(t *testing.T) { - t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect{} - var fernTestValueLeft float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyType // Act - obj.SetLeft(fernTestValueLeft) + obj.SetReplyType(fernTestValueReplyType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -73204,14 +111234,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareUn // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Run("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect{} - var fernTestValueBottom float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueUserID *string // Act - obj.SetBottom(fernTestValueBottom) + obj.SetUserID(fernTestValueUserID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -73235,14 +111265,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareUn // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRight_MarksExplicit", func(t *testing.T) { + t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect{} - var fernTestValueRight float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueGroupID *string // Act - obj.SetRight(fernTestValueRight) + obj.SetGroupID(fernTestValueGroupID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -73266,14 +111296,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareUn // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquareUnrotatedRect{} - var fernTestValueTop float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueCreatedBy *string // Act - obj.SetTop(fernTestValueTop) + obj.SetCreatedBy(fernTestValueCreatedBy) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -73297,916 +111327,683 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquareUn // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquiggly(t *testing.T) { - t.Run("SetRef", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemSquigglyRef - obj.SetRef(fernTestValueRef) - assert.Equal(t, fernTestValueRef, obj.Ref) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIdentityQuality", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQuality - obj.SetIdentityQuality(fernTestValueIdentityQuality) - assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueNm *string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetFlags", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags - obj.SetFlags(fernTestValueFlags) - assert.Equal(t, fernTestValueFlags, obj.Flags) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRect", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect - obj.SetRect(fernTestValueRect) - assert.Equal(t, fernTestValueRect, obj.Rect) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetContents", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueContents *string - obj.SetContents(fernTestValueContents) - assert.Equal(t, fernTestValueContents, obj.Contents) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetSubject", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueSubject *string - obj.SetSubject(fernTestValueSubject) - assert.Equal(t, fernTestValueSubject, obj.Subject) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAuthor", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueAuthor *string - obj.SetAuthor(fernTestValueAuthor) - assert.Equal(t, fernTestValueAuthor, obj.Author) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCreated", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueCreated *time.Time - obj.SetCreated(fernTestValueCreated) - assert.Equal(t, fernTestValueCreated, obj.Created) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetModified", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueModified *time.Time - obj.SetModified(fernTestValueModified) - assert.Equal(t, fernTestValueModified, obj.Modified) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetBlendMode", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode - obj.SetBlendMode(fernTestValueBlendMode) - assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetInReplyTo", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo - obj.SetInReplyTo(fernTestValueInReplyTo) - assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetReplyType", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyType - obj.SetReplyType(fernTestValueReplyType) - assert.Equal(t, fernTestValueReplyType, obj.ReplyType) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetUserID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueUserID *string - obj.SetUserID(fernTestValueUserID) - assert.Equal(t, fernTestValueUserID, obj.UserID) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetGroupID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueGroupID *string - obj.SetGroupID(fernTestValueGroupID) - assert.Equal(t, fernTestValueGroupID, obj.GroupID) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCreatedBy", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueCreatedBy *string - obj.SetCreatedBy(fernTestValueCreatedBy) - assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetUpdatedBy", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueUpdatedBy *string - obj.SetUpdatedBy(fernTestValueUpdatedBy) - assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetActions", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueActions *PdfAnnotationActions - obj.SetActions(fernTestValueActions) - assert.Equal(t, fernTestValueActions, obj.Actions) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetColor", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor - obj.SetColor(fernTestValueColor) - assert.Equal(t, fernTestValueColor, obj.Color) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetOpacity", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueOpacity float64 - obj.SetOpacity(fernTestValueOpacity) - assert.Equal(t, fernTestValueOpacity, obj.Opacity) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetQuadPoints", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueQuadPoints []*DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem - obj.SetQuadPoints(fernTestValueQuadPoints) - assert.Equal(t, fernTestValueQuadPoints, obj.QuadPoints) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquiggly(t *testing.T) { - t.Run("GetRef", func(t *testing.T) { + t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyRef - obj.Ref = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueUpdatedBy *string - // Act & Assert - assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") - }) + // Act + obj.SetUpdatedBy(fernTestValueUpdatedBy) - t.Run("GetRef_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - obj.Ref = nil + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetRef_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRef() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("SetActions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueActions *PdfAnnotationActions - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) + // Act + obj.SetActions(fernTestValueActions) - t.Run("GetIndex", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var expected int - obj.Index = expected + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetIndex_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetIndex() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetIdentityQuality", func(t *testing.T) { + t.Run("SetColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var expected DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQuality - obj.IdentityQuality = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor - // Act & Assert - assert.Equal(t, expected, obj.GetIdentityQuality(), "getter should return the property value") - }) + // Act + obj.SetColor(fernTestValueColor) - t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetIdentityQuality() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var expected *string - obj.Nm = expected + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetNm_NilValue", func(t *testing.T) { + t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - obj.Nm = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueOpacity float64 - // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") - }) + // Act + obj.SetOpacity(fernTestValueOpacity) - t.Run("GetNm_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNm() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("GetFlags", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags - obj.Flags = expected + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - // Act & Assert - assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetFlags_NilValue", func(t *testing.T) { + t.Run("SetQuadPoints_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - obj.Flags = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + var fernTestValueQuadPoints []*DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem - // Act & Assert - assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") - }) + // Act + obj.SetQuadPoints(fernTestValueQuadPoints) - t.Run("GetFlags_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetFlags() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("GetRect", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect - obj.Rect = expected + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - // Act & Assert - assert.Equal(t, expected, obj.GetRect(), "getter should return the property value") + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetRect_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - obj.Rect = nil +} - // Act & Assert - assert.Nil(t, obj.GetRect(), "getter should return nil when property is nil") +func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineColor(t *testing.T) { + t.Run("SetR", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineColor{} + var fernTestValueR int + obj.SetR(fernTestValueR) + assert.Equal(t, fernTestValueR, obj.R) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetRect_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRect() // Should return zero value + t.Run("SetG", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineColor{} + var fernTestValueG int + obj.SetG(fernTestValueG) + assert.Equal(t, fernTestValueG, obj.G) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetContents", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var expected *string - obj.Contents = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetContents(), "getter should return the property value") + t.Run("SetB", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetContents_NilValue", func(t *testing.T) { +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - obj.Contents = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineColor{} + var expected int + obj.R = expected // Act & Assert - assert.Nil(t, obj.GetContents(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") }) - t.Run("GetContents_NilReceiver", func(t *testing.T) { + t.Run("GetR_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetContents() // Should return zero value - }) - - t.Run("GetSubject", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var expected *string - obj.Subject = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetSubject(), "getter should return the property value") + _ = obj.GetR() // Should return zero value }) - t.Run("GetSubject_NilValue", func(t *testing.T) { + t.Run("GetG", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - obj.Subject = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineColor{} + var expected int + obj.G = expected // Act & Assert - assert.Nil(t, obj.GetSubject(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") }) - t.Run("GetSubject_NilReceiver", func(t *testing.T) { + t.Run("GetG_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetSubject() // Should return zero value - }) - - t.Run("GetAuthor", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var expected *string - obj.Author = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAuthor(), "getter should return the property value") + _ = obj.GetG() // Should return zero value }) - t.Run("GetAuthor_NilValue", func(t *testing.T) { + t.Run("GetB", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - obj.Author = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineColor{} + var expected int + obj.B = expected // Act & Assert - assert.Nil(t, obj.GetAuthor(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") }) - t.Run("GetAuthor_NilReceiver", func(t *testing.T) { + t.Run("GetB_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAuthor() // Should return zero value + _ = obj.GetB() // Should return zero value }) - t.Run("GetCreated", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlineColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var expected *time.Time - obj.Created = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineColor{} + var fernTestValueR int - // Act & Assert - assert.Equal(t, expected, obj.GetCreated(), "getter should return the property value") + // Act + obj.SetR(fernTestValueR) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetCreated_NilValue", func(t *testing.T) { + t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - obj.Created = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineColor{} + var fernTestValueG int - // Act & Assert - assert.Nil(t, obj.GetCreated(), "getter should return nil when property is nil") - }) + // Act + obj.SetG(fernTestValueG) - t.Run("GetCreated_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetCreated() // Should return zero value + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetModified", func(t *testing.T) { + t.Run("SetB_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var expected *time.Time - obj.Modified = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineColor{} + var fernTestValueB int - // Act & Assert - assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") + // Act + obj.SetB(fernTestValueB) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetModified_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - obj.Modified = nil +} - // Act & Assert - assert.Nil(t, obj.GetModified(), "getter should return nil when property is nil") +func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *testing.T) { + t.Run("SetInvisible", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + var fernTestValueInvisible bool + obj.SetInvisible(fernTestValueInvisible) + assert.Equal(t, fernTestValueInvisible, obj.Invisible) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetModified_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetModified() // Should return zero value + t.Run("SetHidden", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + var fernTestValueHidden bool + obj.SetHidden(fernTestValueHidden) + assert.Equal(t, fernTestValueHidden, obj.Hidden) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetBlendMode", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var expected DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode - obj.BlendMode = expected + t.Run("SetPrint", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + var fernTestValuePrint bool + obj.SetPrint(fernTestValuePrint) + assert.Equal(t, fernTestValuePrint, obj.Print) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Equal(t, expected, obj.GetBlendMode(), "getter should return the property value") + t.Run("SetNoZoom", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + var fernTestValueNoZoom bool + obj.SetNoZoom(fernTestValueNoZoom) + assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetBlendMode() // Should return zero value + t.Run("SetNoRotate", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + var fernTestValueNoRotate bool + obj.SetNoRotate(fernTestValueNoRotate) + assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetInReplyTo", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo - obj.InReplyTo = expected + t.Run("SetNoView", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + var fernTestValueNoView bool + obj.SetNoView(fernTestValueNoView) + assert.Equal(t, fernTestValueNoView, obj.NoView) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Equal(t, expected, obj.GetInReplyTo(), "getter should return the property value") + t.Run("SetReadOnly", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + var fernTestValueReadOnly bool + obj.SetReadOnly(fernTestValueReadOnly) + assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetInReplyTo_NilValue", func(t *testing.T) { + t.Run("SetLocked", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + var fernTestValueLocked bool + obj.SetLocked(fernTestValueLocked) + assert.Equal(t, fernTestValueLocked, obj.Locked) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetToggleNoView", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + var fernTestValueToggleNoView bool + obj.SetToggleNoView(fernTestValueToggleNoView) + assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLockedContents", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + var fernTestValueLockedContents bool + obj.SetLockedContents(fernTestValueLockedContents) + assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *testing.T) { + t.Run("GetInvisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - obj.InReplyTo = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + var expected bool + obj.Invisible = expected // Act & Assert - assert.Nil(t, obj.GetInReplyTo(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetInvisible(), "getter should return the property value") }) - t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { + t.Run("GetInvisible_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInReplyTo() // Should return zero value - }) - - t.Run("GetReplyType", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyType - obj.ReplyType = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetReplyType(), "getter should return the property value") + _ = obj.GetInvisible() // Should return zero value }) - t.Run("GetReplyType_NilValue", func(t *testing.T) { + t.Run("GetHidden", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - obj.ReplyType = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + var expected bool + obj.Hidden = expected // Act & Assert - assert.Nil(t, obj.GetReplyType(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") }) - t.Run("GetReplyType_NilReceiver", func(t *testing.T) { + t.Run("GetHidden_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReplyType() // Should return zero value - }) - - t.Run("GetUserID", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var expected *string - obj.UserID = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") + _ = obj.GetHidden() // Should return zero value }) - t.Run("GetUserID_NilValue", func(t *testing.T) { + t.Run("GetPrint", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - obj.UserID = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + var expected bool + obj.Print = expected // Act & Assert - assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") }) - t.Run("GetUserID_NilReceiver", func(t *testing.T) { + t.Run("GetPrint_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUserID() // Should return zero value - }) - - t.Run("GetGroupID", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var expected *string - obj.GroupID = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetGroupID(), "getter should return the property value") + _ = obj.GetPrint() // Should return zero value }) - t.Run("GetGroupID_NilValue", func(t *testing.T) { + t.Run("GetNoZoom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - obj.GroupID = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + var expected bool + obj.NoZoom = expected // Act & Assert - assert.Nil(t, obj.GetGroupID(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") }) - t.Run("GetGroupID_NilReceiver", func(t *testing.T) { + t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGroupID() // Should return zero value - }) - - t.Run("GetCreatedBy", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var expected *string - obj.CreatedBy = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") + _ = obj.GetNoZoom() // Should return zero value }) - t.Run("GetCreatedBy_NilValue", func(t *testing.T) { + t.Run("GetNoRotate", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - obj.CreatedBy = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + var expected bool + obj.NoRotate = expected // Act & Assert - assert.Nil(t, obj.GetCreatedBy(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") }) - t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { + t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCreatedBy() // Should return zero value - }) - - t.Run("GetUpdatedBy", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var expected *string - obj.UpdatedBy = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetUpdatedBy(), "getter should return the property value") + _ = obj.GetNoRotate() // Should return zero value }) - t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { + t.Run("GetNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - obj.UpdatedBy = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + var expected bool + obj.NoView = expected // Act & Assert - assert.Nil(t, obj.GetUpdatedBy(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") }) - t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { + t.Run("GetNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUpdatedBy() // Should return zero value - }) - - t.Run("GetActions", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var expected *PdfAnnotationActions - obj.Actions = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") + _ = obj.GetNoView() // Should return zero value }) - t.Run("GetActions_NilValue", func(t *testing.T) { + t.Run("GetReadOnly", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - obj.Actions = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + var expected bool + obj.ReadOnly = expected // Act & Assert - assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") }) - t.Run("GetActions_NilReceiver", func(t *testing.T) { + t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetActions() // Should return zero value - }) - - t.Run("GetColor", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor - obj.Color = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") + _ = obj.GetReadOnly() // Should return zero value }) - t.Run("GetColor_NilValue", func(t *testing.T) { + t.Run("GetLocked", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - obj.Color = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + var expected bool + obj.Locked = expected // Act & Assert - assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") }) - t.Run("GetColor_NilReceiver", func(t *testing.T) { + t.Run("GetLocked_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetColor() // Should return zero value + _ = obj.GetLocked() // Should return zero value }) - t.Run("GetOpacity", func(t *testing.T) { + t.Run("GetToggleNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var expected float64 - obj.Opacity = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + var expected bool + obj.ToggleNoView = expected // Act & Assert - assert.Equal(t, expected, obj.GetOpacity(), "getter should return the property value") + assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") }) - t.Run("GetOpacity_NilReceiver", func(t *testing.T) { + t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOpacity() // Should return zero value - }) - - t.Run("GetQuadPoints", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var expected []*DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem - obj.QuadPoints = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetQuadPoints(), "getter should return the property value") + _ = obj.GetToggleNoView() // Should return zero value }) - t.Run("GetQuadPoints_NilValue", func(t *testing.T) { + t.Run("GetLockedContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - obj.QuadPoints = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + var expected bool + obj.LockedContents = expected // Act & Assert - assert.Nil(t, obj.GetQuadPoints(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") }) - t.Run("GetQuadPoints_NilReceiver", func(t *testing.T) { + t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquiggly + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetQuadPoints() // Should return zero value + _ = obj.GetLockedContents() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly(t *testing.T) { - t.Run("SetRef_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *testing.T) { + t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemSquigglyRef + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + var fernTestValueInvisible bool // Act - obj.SetRef(fernTestValueRef) + obj.SetInvisible(fernTestValueInvisible) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -74230,14 +112027,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetHidden_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + var fernTestValueHidden bool // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetHidden(fernTestValueHidden) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -74261,14 +112058,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("SetPrint_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueIndex int + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + var fernTestValuePrint bool // Act - obj.SetIndex(fernTestValueIndex) + obj.SetPrint(fernTestValuePrint) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -74292,14 +112089,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { + t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemSquigglyIdentityQuality + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + var fernTestValueNoZoom bool // Act - obj.SetIdentityQuality(fernTestValueIdentityQuality) + obj.SetNoZoom(fernTestValueNoZoom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -74323,14 +112120,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueNm *string + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + var fernTestValueNoRotate bool // Act - obj.SetNm(fernTestValueNm) + obj.SetNoRotate(fernTestValueNoRotate) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -74354,14 +112151,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFlags_MarksExplicit", func(t *testing.T) { + t.Run("SetNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + var fernTestValueNoView bool // Act - obj.SetFlags(fernTestValueFlags) + obj.SetNoView(fernTestValueNoView) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -74385,14 +112182,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRect_MarksExplicit", func(t *testing.T) { + t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + var fernTestValueReadOnly bool // Act - obj.SetRect(fernTestValueRect) + obj.SetReadOnly(fernTestValueReadOnly) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -74416,14 +112213,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetContents_MarksExplicit", func(t *testing.T) { + t.Run("SetLocked_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueContents *string + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + var fernTestValueLocked bool // Act - obj.SetContents(fernTestValueContents) + obj.SetLocked(fernTestValueLocked) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -74447,14 +112244,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetSubject_MarksExplicit", func(t *testing.T) { + t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueSubject *string + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + var fernTestValueToggleNoView bool // Act - obj.SetSubject(fernTestValueSubject) + obj.SetToggleNoView(fernTestValueToggleNoView) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -74478,14 +112275,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { + t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueAuthor *string + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + var fernTestValueLockedContents bool // Act - obj.SetAuthor(fernTestValueAuthor) + obj.SetLockedContents(fernTestValueLockedContents) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -74509,76 +112306,251 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreated_MarksExplicit", func(t *testing.T) { +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueCreated *time.Time + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo{} + var expected string + obj.Kind = expected - // Act - obj.SetCreated(fernTestValueCreated) + // Act & Assert + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKind() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber + obj.ObjectNumber = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") }) - t.Run("SetModified_MarksExplicit", func(t *testing.T) { + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueModified *time.Time + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo{} + obj.ObjectNumber = nil - // Act - obj.SetModified(fernTestValueModified) + // Act & Assert + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetObjectNumber() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm + obj.Nm = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { + t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemSquigglyBlendMode + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo{} + obj.Nm = nil + + // Act & Assert + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo{} + obj.Index = nil + + // Act & Assert + assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex{} + var expected int + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + + t.Run("GetRevision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex{} + var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision + obj.Revision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + }) + + t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex{} + obj.Revision = nil + + // Act & Assert + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + }) + + t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRevision() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex{} + var fernTestValuePageObjectNumber int // Act - obj.SetBlendMode(fernTestValueBlendMode) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -74602,14 +112574,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex{} + var fernTestValueIndex int // Act - obj.SetInReplyTo(fernTestValueInReplyTo) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -74633,14 +112605,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemSquigglyReplyType + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision // Act - obj.SetReplyType(fernTestValueReplyType) + obj.SetRevision(fernTestValueRevision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -74664,14 +112636,116 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUserID_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision{} + var fernTestValueDocSessionID string + obj.SetDocSessionID(fernTestValueDocSessionID) + assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetGeneration", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision{} + var expected string + obj.DocSessionID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + }) + + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDocSessionID() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetGeneration", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision{} + var expected int + obj.Generation = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + }) + + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGeneration() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueUserID *string + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision{} + var fernTestValueDocSessionID string // Act - obj.SetUserID(fernTestValueUserID) + obj.SetDocSessionID(fernTestValueDocSessionID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -74695,14 +112769,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueGroupID *string + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int // Act - obj.SetGroupID(fernTestValueGroupID) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -74726,14 +112800,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueCreatedBy *string + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision{} + var fernTestValueGeneration int // Act - obj.SetCreatedBy(fernTestValueCreatedBy) + obj.SetGeneration(fernTestValueGeneration) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -74757,45 +112831,85 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueUpdatedBy *string + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm{} + var expected int + obj.PageObjectNumber = expected - // Act - obj.SetUpdatedBy(fernTestValueUpdatedBy) + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm{} + var expected string + obj.Nm = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueActions *PdfAnnotationActions + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm{} + var fernTestValuePageObjectNumber int // Act - obj.SetActions(fernTestValueActions) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -74819,14 +112933,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetColor_MarksExplicit", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm{} + var fernTestValueNm string // Act - obj.SetColor(fernTestValueColor) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -74850,14 +112964,85 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueOpacity float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + }) + + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAnnotObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int // Act - obj.SetOpacity(fernTestValueOpacity) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -74881,14 +113066,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetQuadPoints_MarksExplicit", func(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquiggly{} - var fernTestValueQuadPoints []*DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int // Act - obj.SetQuadPoints(fernTestValueQuadPoints) + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -74914,114 +113099,185 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyColor(t *testing.T) { - t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyColor{} - var fernTestValueR int - obj.SetR(fernTestValueR) - assert.Equal(t, fernTestValueR, obj.R) +func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem(t *testing.T) { + t.Run("SetP1", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} + var fernTestValueP1 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1 + obj.SetP1(fernTestValueP1) + assert.Equal(t, fernTestValueP1, obj.P1) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyColor{} - var fernTestValueG int - obj.SetG(fernTestValueG) - assert.Equal(t, fernTestValueG, obj.G) + t.Run("SetP2", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} + var fernTestValueP2 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2 + obj.SetP2(fernTestValueP2) + assert.Equal(t, fernTestValueP2, obj.P2) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyColor{} - var fernTestValueB int - obj.SetB(fernTestValueB) - assert.Equal(t, fernTestValueB, obj.B) + t.Run("SetP3", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} + var fernTestValueP3 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3 + obj.SetP3(fernTestValueP3) + assert.Equal(t, fernTestValueP3, obj.P3) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetP4", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} + var fernTestValueP4 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4 + obj.SetP4(fernTestValueP4) + assert.Equal(t, fernTestValueP4, obj.P4) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyColor(t *testing.T) { - t.Run("GetR", func(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem(t *testing.T) { + t.Run("GetP1", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyColor{} - var expected int - obj.R = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1 + obj.P1 = expected // Act & Assert - assert.Equal(t, expected, obj.GetR(), "getter should return the property value") + assert.Equal(t, expected, obj.GetP1(), "getter should return the property value") }) - t.Run("GetR_NilReceiver", func(t *testing.T) { + t.Run("GetP1_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} + obj.P1 = nil + + // Act & Assert + assert.Nil(t, obj.GetP1(), "getter should return nil when property is nil") + }) + + t.Run("GetP1_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetR() // Should return zero value + _ = obj.GetP1() // Should return zero value }) - t.Run("GetG", func(t *testing.T) { + t.Run("GetP2", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyColor{} - var expected int - obj.G = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2 + obj.P2 = expected // Act & Assert - assert.Equal(t, expected, obj.GetG(), "getter should return the property value") + assert.Equal(t, expected, obj.GetP2(), "getter should return the property value") }) - t.Run("GetG_NilReceiver", func(t *testing.T) { + t.Run("GetP2_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} + obj.P2 = nil + + // Act & Assert + assert.Nil(t, obj.GetP2(), "getter should return nil when property is nil") + }) + + t.Run("GetP2_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetG() // Should return zero value + _ = obj.GetP2() // Should return zero value }) - t.Run("GetB", func(t *testing.T) { + t.Run("GetP3", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyColor{} - var expected int - obj.B = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3 + obj.P3 = expected // Act & Assert - assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + assert.Equal(t, expected, obj.GetP3(), "getter should return the property value") }) - t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Run("GetP3_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyColor + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} + obj.P3 = nil + + // Act & Assert + assert.Nil(t, obj.GetP3(), "getter should return nil when property is nil") + }) + + t.Run("GetP3_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetB() // Should return zero value + _ = obj.GetP3() // Should return zero value + }) + + t.Run("GetP4", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} + var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4 + obj.P4 = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetP4(), "getter should return the property value") + }) + + t.Run("GetP4_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} + obj.P4 = nil + + // Act & Assert + assert.Nil(t, obj.GetP4(), "getter should return nil when property is nil") + }) + + t.Run("GetP4_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetP4() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquigglyColor(t *testing.T) { - t.Run("SetR_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem(t *testing.T) { + t.Run("SetP1_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyColor{} - var fernTestValueR int + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} + var fernTestValueP1 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1 // Act - obj.SetR(fernTestValueR) + obj.SetP1(fernTestValueP1) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -75045,14 +113301,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Run("SetP2_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyColor{} - var fernTestValueG int + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} + var fernTestValueP2 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2 // Act - obj.SetG(fernTestValueG) + obj.SetP2(fernTestValueP2) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -75076,14 +113332,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Run("SetP3_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyColor{} - var fernTestValueB int + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} + var fernTestValueP3 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3 // Act - obj.SetB(fernTestValueB) + obj.SetP3(fernTestValueP3) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -75107,333 +113363,382 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyFlags(t *testing.T) { - t.Run("SetInvisible", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} - var fernTestValueInvisible bool - obj.SetInvisible(fernTestValueInvisible) - assert.Equal(t, fernTestValueInvisible, obj.Invisible) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetHidden", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} - var fernTestValueHidden bool - obj.SetHidden(fernTestValueHidden) - assert.Equal(t, fernTestValueHidden, obj.Hidden) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetPrint", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} - var fernTestValuePrint bool - obj.SetPrint(fernTestValuePrint) - assert.Equal(t, fernTestValuePrint, obj.Print) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("SetP4_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} + var fernTestValueP4 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4 - t.Run("SetNoZoom", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} - var fernTestValueNoZoom bool - obj.SetNoZoom(fernTestValueNoZoom) - assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetP4(fernTestValueP4) - t.Run("SetNoRotate", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} - var fernTestValueNoRotate bool - obj.SetNoRotate(fernTestValueNoRotate) - assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) - assert.NotNil(t, obj.explicitFields) - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("SetNoView", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} - var fernTestValueNoView bool - obj.SetNoView(fernTestValueNoView) - assert.Equal(t, fernTestValueNoView, obj.NoView) - assert.NotNil(t, obj.explicitFields) - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} - var fernTestValueReadOnly bool - obj.SetReadOnly(fernTestValueReadOnly) - assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) - assert.NotNil(t, obj.explicitFields) + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLocked", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} - var fernTestValueLocked bool - obj.SetLocked(fernTestValueLocked) - assert.Equal(t, fernTestValueLocked, obj.Locked) - assert.NotNil(t, obj.explicitFields) - }) +} - t.Run("SetToggleNoView", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} - var fernTestValueToggleNoView bool - obj.SetToggleNoView(fernTestValueToggleNoView) - assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) +func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetLockedContents", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} - var fernTestValueLockedContents bool - obj.SetLockedContents(fernTestValueLockedContents) - assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyFlags(t *testing.T) { - t.Run("GetInvisible", func(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} - var expected bool - obj.Invisible = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1{} + var expected float64 + obj.X = expected // Act & Assert - assert.Equal(t, expected, obj.GetInvisible(), "getter should return the property value") + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") }) - t.Run("GetInvisible_NilReceiver", func(t *testing.T) { + t.Run("GetX_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInvisible() // Should return zero value + _ = obj.GetX() // Should return zero value }) - t.Run("GetHidden", func(t *testing.T) { + t.Run("GetY", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} - var expected bool - obj.Hidden = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1{} + var expected float64 + obj.Y = expected // Act & Assert - assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") }) - t.Run("GetHidden_NilReceiver", func(t *testing.T) { + t.Run("GetY_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetHidden() // Should return zero value + _ = obj.GetY() // Should return zero value }) - t.Run("GetPrint", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} - var expected bool - obj.Print = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1{} + var fernTestValueX float64 - // Act & Assert - assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") - }) + // Act + obj.SetX(fernTestValueX) - t.Run("GetPrint_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPrint() // Should return zero value + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetNoZoom", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} - var expected bool - obj.NoZoom = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1{} + var fernTestValueY float64 - // Act & Assert - assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") + // Act + obj.SetY(fernTestValueY) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNoZoom() // Should return zero value +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetNoRotate", func(t *testing.T) { + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} - var expected bool - obj.NoRotate = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2{} + var expected float64 + obj.X = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") }) - t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { + t.Run("GetX_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNoRotate() // Should return zero value + _ = obj.GetX() // Should return zero value }) - t.Run("GetNoView", func(t *testing.T) { + t.Run("GetY", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} - var expected bool - obj.NoView = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2{} + var expected float64 + obj.Y = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") }) - t.Run("GetNoView_NilReceiver", func(t *testing.T) { + t.Run("GetY_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNoView() // Should return zero value + _ = obj.GetY() // Should return zero value }) - t.Run("GetReadOnly", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} - var expected bool - obj.ReadOnly = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2{} + var fernTestValueX float64 - // Act & Assert - assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") - }) + // Act + obj.SetX(fernTestValueX) - t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetReadOnly() // Should return zero value + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetLocked", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} - var expected bool - obj.Locked = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2{} + var fernTestValueY float64 - // Act & Assert - assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") + // Act + obj.SetY(fernTestValueY) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetLocked_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetLocked() // Should return zero value +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetToggleNoView", func(t *testing.T) { + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} - var expected bool - obj.ToggleNoView = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3{} + var expected float64 + obj.X = expected // Act & Assert - assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") }) - t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { + t.Run("GetX_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetToggleNoView() // Should return zero value + _ = obj.GetX() // Should return zero value }) - t.Run("GetLockedContents", func(t *testing.T) { + t.Run("GetY", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} - var expected bool - obj.LockedContents = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3{} + var expected float64 + obj.Y = expected // Act & Assert - assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") }) - t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { + t.Run("GetY_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLockedContents() // Should return zero value + _ = obj.GetY() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquigglyFlags(t *testing.T) { - t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} - var fernTestValueInvisible bool + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3{} + var fernTestValueX float64 // Act - obj.SetInvisible(fernTestValueInvisible) + obj.SetX(fernTestValueX) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -75457,14 +113762,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetHidden_MarksExplicit", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} - var fernTestValueHidden bool + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3{} + var fernTestValueY float64 // Act - obj.SetHidden(fernTestValueHidden) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -75488,14 +113793,85 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPrint_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} - var fernTestValuePrint bool + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4{} + var expected float64 + obj.X = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4{} + var expected float64 + obj.Y = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + }) + + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4{} + var fernTestValueX float64 // Act - obj.SetPrint(fernTestValuePrint) + obj.SetX(fernTestValueX) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -75519,14 +113895,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} - var fernTestValueNoZoom bool + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4{} + var fernTestValueY float64 // Act - obj.SetNoZoom(fernTestValueNoZoom) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -75550,76 +113926,147 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRect(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRect{} + var fernTestValueLeft float64 + obj.SetLeft(fernTestValueLeft) + assert.Equal(t, fernTestValueLeft, obj.Left) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBottom", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRect{} + var fernTestValueBottom float64 + obj.SetBottom(fernTestValueBottom) + assert.Equal(t, fernTestValueBottom, obj.Bottom) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRight", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRect{} + var fernTestValueRight float64 + obj.SetRight(fernTestValueRight) + assert.Equal(t, fernTestValueRight, obj.Right) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetTop", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRect{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} - var fernTestValueNoRotate bool + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRect{} + var expected float64 + obj.Left = expected - // Act - obj.SetNoRotate(fernTestValueNoRotate) + // Act & Assert + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetLeft_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLeft() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetBottom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRect{} + var expected float64 + obj.Bottom = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") + }) + + t.Run("GetBottom_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBottom() // Should return zero value + }) + + t.Run("GetRight", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRect{} + var expected float64 + obj.Right = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetRight_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRight() // Should return zero value }) - t.Run("SetNoView_MarksExplicit", func(t *testing.T) { + t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} - var fernTestValueNoView bool - - // Act - obj.SetNoView(fernTestValueNoView) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRect{} + var expected float64 + obj.Top = expected - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetTop() // Should return zero value }) - t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlineRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} - var fernTestValueReadOnly bool + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRect{} + var fernTestValueLeft float64 // Act - obj.SetReadOnly(fernTestValueReadOnly) + obj.SetLeft(fernTestValueLeft) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -75643,14 +114090,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLocked_MarksExplicit", func(t *testing.T) { + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} - var fernTestValueLocked bool + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRect{} + var fernTestValueBottom float64 // Act - obj.SetLocked(fernTestValueLocked) + obj.SetBottom(fernTestValueBottom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -75674,14 +114121,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { + t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} - var fernTestValueToggleNoView bool + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRect{} + var fernTestValueRight float64 // Act - obj.SetToggleNoView(fernTestValueToggleNoView) + obj.SetRight(fernTestValueRight) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -75705,14 +114152,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { + t.Run("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyFlags{} - var fernTestValueLockedContents bool + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRect{} + var fernTestValueTop float64 // Act - obj.SetLockedContents(fernTestValueLockedContents) + obj.SetTop(fernTestValueTop) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -75738,11 +114185,11 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRef(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo{} + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRef{} var expected string obj.Kind = expected @@ -75752,7 +114199,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo(t t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -75765,8 +114212,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo(t t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -75776,7 +114223,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo(t t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo{} + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRef{} obj.ObjectNumber = nil // Act & Assert @@ -75785,7 +114232,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo(t t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -75798,8 +114245,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo(t t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm obj.Nm = expected // Act & Assert @@ -75809,7 +114256,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo(t t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo{} + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRef{} obj.Nm = nil // Act & Assert @@ -75818,7 +114265,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo(t t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -75831,8 +114278,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo(t t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex obj.Index = expected // Act & Assert @@ -75842,7 +114289,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo(t t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo{} + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRef{} obj.Index = nil // Act & Assert @@ -75851,7 +114298,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo(t t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -75863,9 +114310,9 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyTo(t } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -75873,7 +114320,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToInd }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -75881,8 +114328,8 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToInd }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -75890,11 +114337,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToInd } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex{} var expected int obj.PageObjectNumber = expected @@ -75904,7 +114351,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToInd t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -75917,7 +114364,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToInd t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex{} var expected int obj.Index = expected @@ -75927,7 +114374,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToInd t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -75940,8 +114387,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToInd t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex{} - var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex{} + var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision obj.Revision = expected // Act & Assert @@ -75951,7 +114398,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToInd t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex{} obj.Revision = nil // Act & Assert @@ -75960,7 +114407,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToInd t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -75972,11 +114419,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToInd } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex{} var fernTestValuePageObjectNumber int // Act @@ -76007,7 +114454,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex{} var fernTestValueIndex int // Act @@ -76038,8 +114485,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -76068,9 +114515,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -76078,7 +114525,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToInd }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -76086,7 +114533,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToInd }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -76095,11 +114542,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToInd } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision{} var expected string obj.DocSessionID = expected @@ -76109,7 +114556,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToInd t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -76122,7 +114569,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToInd t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -76132,7 +114579,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToInd t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -76145,7 +114592,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToInd t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision{} var expected int obj.Generation = expected @@ -76155,7 +114602,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToInd t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -76167,11 +114614,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToInd } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision{} var fernTestValueDocSessionID string // Act @@ -76202,7 +114649,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -76233,7 +114680,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision{} var fernTestValueGeneration int // Act @@ -76263,9 +114710,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -76273,7 +114720,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm( }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm{} var fernTestValueNm string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -76282,11 +114729,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm( } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm{} var expected int obj.PageObjectNumber = expected @@ -76296,7 +114743,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm( t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -76309,7 +114756,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm( t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm{} var expected string obj.Nm = expected @@ -76319,7 +114766,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm( t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -76331,11 +114778,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm( } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm{} var fernTestValuePageObjectNumber int // Act @@ -76366,7 +114813,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm{} var fernTestValueNm string // Act @@ -76396,9 +114843,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -76406,7 +114853,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObj }) t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber{} var fernTestValueAnnotObjectNumber int obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) @@ -76415,11 +114862,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObj } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber{} var expected int obj.PageObjectNumber = expected @@ -76429,7 +114876,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObj t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -76442,7 +114889,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObj t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber{} var expected int obj.AnnotObjectNumber = expected @@ -76452,7 +114899,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObj t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber + var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -76464,11 +114911,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObj } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber{} var fernTestValuePageObjectNumber int // Act @@ -76499,7 +114946,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyInReplyToObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber{} var fernTestValueAnnotObjectNumber int // Act @@ -76529,513 +114976,873 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem(t *testing.T) { - t.Run("SetP1", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} - var fernTestValueP1 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1 - obj.SetP1(fernTestValueP1) - assert.Equal(t, fernTestValueP1, obj.P1) +func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testing.T) { + t.Run("SetRef", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef + obj.SetRef(fernTestValueRef) + assert.Equal(t, fernTestValueRef, obj.Ref) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetP2", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} - var fernTestValueP2 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2 - obj.SetP2(fernTestValueP2) - assert.Equal(t, fernTestValueP2, obj.P2) + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetP3", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} - var fernTestValueP3 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3 - obj.SetP3(fernTestValueP3) - assert.Equal(t, fernTestValueP3, obj.P3) + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetP4", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} - var fernTestValueP4 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4 - obj.SetP4(fernTestValueP4) - assert.Equal(t, fernTestValueP4, obj.P4) + t.Run("SetIdentityQuality", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQuality + obj.SetIdentityQuality(fernTestValueIdentityQuality) + assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueNm *string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFlags", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags + obj.SetFlags(fernTestValueFlags) + assert.Equal(t, fernTestValueFlags, obj.Flags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRect", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect + obj.SetRect(fernTestValueRect) + assert.Equal(t, fernTestValueRect, obj.Rect) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetContents", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueContents *string + obj.SetContents(fernTestValueContents) + assert.Equal(t, fernTestValueContents, obj.Contents) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubject", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueSubject *string + obj.SetSubject(fernTestValueSubject) + assert.Equal(t, fernTestValueSubject, obj.Subject) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAuthor", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueAuthor *string + obj.SetAuthor(fernTestValueAuthor) + assert.Equal(t, fernTestValueAuthor, obj.Author) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCreated", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueCreated *time.Time + obj.SetCreated(fernTestValueCreated) + assert.Equal(t, fernTestValueCreated, obj.Created) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetModified", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueModified *time.Time + obj.SetModified(fernTestValueModified) + assert.Equal(t, fernTestValueModified, obj.Modified) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBlendMode", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode + obj.SetBlendMode(fernTestValueBlendMode) + assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetInReplyTo", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo + obj.SetInReplyTo(fernTestValueInReplyTo) + assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetReplyType", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyType + obj.SetReplyType(fernTestValueReplyType) + assert.Equal(t, fernTestValueReplyType, obj.ReplyType) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetUserID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueUserID *string + obj.SetUserID(fernTestValueUserID) + assert.Equal(t, fernTestValueUserID, obj.UserID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetGroupID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueGroupID *string + obj.SetGroupID(fernTestValueGroupID) + assert.Equal(t, fernTestValueGroupID, obj.GroupID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCreatedBy", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueCreatedBy *string + obj.SetCreatedBy(fernTestValueCreatedBy) + assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetUpdatedBy", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueUpdatedBy *string + obj.SetUpdatedBy(fernTestValueUpdatedBy) + assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetActions", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueActions *PdfAnnotationActions + obj.SetActions(fernTestValueActions) + assert.Equal(t, fernTestValueActions, obj.Actions) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRawSubtypeCode", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueRawSubtypeCode int + obj.SetRawSubtypeCode(fernTestValueRawSubtypeCode) + assert.Equal(t, fernTestValueRawSubtypeCode, obj.RawSubtypeCode) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRawSubtypeName", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueRawSubtypeName *string + obj.SetRawSubtypeName(fernTestValueRawSubtypeName) + assert.Equal(t, fernTestValueRawSubtypeName, obj.RawSubtypeName) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem(t *testing.T) { - t.Run("GetP1", func(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} - var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1 - obj.P1 = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var expected *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef + obj.Ref = expected // Act & Assert - assert.Equal(t, expected, obj.GetP1(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") }) - t.Run("GetP1_NilValue", func(t *testing.T) { + t.Run("GetRef_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} - obj.P1 = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj.Ref = nil // Act & Assert - assert.Nil(t, obj.GetP1(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") }) - t.Run("GetP1_NilReceiver", func(t *testing.T) { + t.Run("GetRef_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetP1() // Should return zero value + _ = obj.GetRef() // Should return zero value }) - t.Run("GetP2", func(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} - var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2 - obj.P2 = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetP2(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetP2_NilValue", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} - obj.P2 = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var expected int + obj.Index = expected // Act & Assert - assert.Nil(t, obj.GetP2(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetP2_NilReceiver", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetP2() // Should return zero value + _ = obj.GetIndex() // Should return zero value }) - t.Run("GetP3", func(t *testing.T) { + t.Run("GetIdentityQuality", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} - var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3 - obj.P3 = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var expected DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQuality + obj.IdentityQuality = expected // Act & Assert - assert.Equal(t, expected, obj.GetP3(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIdentityQuality(), "getter should return the property value") }) - t.Run("GetP3_NilValue", func(t *testing.T) { + t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIdentityQuality() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} - obj.P3 = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var expected *string + obj.Nm = expected // Act & Assert - assert.Nil(t, obj.GetP3(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("GetP3_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj.Nm = nil + + // Act & Assert + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetP3() // Should return zero value + _ = obj.GetNm() // Should return zero value }) - t.Run("GetP4", func(t *testing.T) { + t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} - var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4 - obj.P4 = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var expected *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags + obj.Flags = expected // Act & Assert - assert.Equal(t, expected, obj.GetP4(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") }) - t.Run("GetP4_NilValue", func(t *testing.T) { + t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} - obj.P4 = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj.Flags = nil // Act & Assert - assert.Nil(t, obj.GetP4(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") }) - t.Run("GetP4_NilReceiver", func(t *testing.T) { + t.Run("GetFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetP4() // Should return zero value + _ = obj.GetFlags() // Should return zero value }) -} + t.Run("GetRect", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var expected *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect + obj.Rect = expected -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem(t *testing.T) { - t.Run("SetP1_MarksExplicit", func(t *testing.T) { + // Act & Assert + assert.Equal(t, expected, obj.GetRect(), "getter should return the property value") + }) + + t.Run("GetRect_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} - var fernTestValueP1 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1 + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj.Rect = nil - // Act - obj.SetP1(fernTestValueP1) + // Act & Assert + assert.Nil(t, obj.GetRect(), "getter should return nil when property is nil") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetRect_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRect() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetContents", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var expected *string + obj.Contents = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetContents(), "getter should return the property value") }) - t.Run("SetP2_MarksExplicit", func(t *testing.T) { + t.Run("GetContents_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} - var fernTestValueP2 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2 + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj.Contents = nil - // Act - obj.SetP2(fernTestValueP2) + // Act & Assert + assert.Nil(t, obj.GetContents(), "getter should return nil when property is nil") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetContents_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetContents() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetSubject", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var expected *string + obj.Subject = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetSubject(), "getter should return the property value") }) - t.Run("SetP3_MarksExplicit", func(t *testing.T) { + t.Run("GetSubject_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} - var fernTestValueP3 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3 + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj.Subject = nil - // Act - obj.SetP3(fernTestValueP3) + // Act & Assert + assert.Nil(t, obj.GetSubject(), "getter should return nil when property is nil") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetSubject_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSubject() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetAuthor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var expected *string + obj.Author = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetAuthor(), "getter should return the property value") }) - t.Run("SetP4_MarksExplicit", func(t *testing.T) { + t.Run("GetAuthor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItem{} - var fernTestValueP4 *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4 + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj.Author = nil - // Act - obj.SetP4(fernTestValueP4) + // Act & Assert + assert.Nil(t, obj.GetAuthor(), "getter should return nil when property is nil") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetAuthor_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAuthor() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetCreated", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var expected *time.Time + obj.Created = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetCreated(), "getter should return the property value") }) -} + t.Run("GetCreated_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj.Created = nil -func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Nil(t, obj.GetCreated(), "getter should return nil when property is nil") }) - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) - assert.NotNil(t, obj.explicitFields) + t.Run("GetCreated_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCreated() // Should return zero value }) -} + t.Run("GetModified", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var expected *time.Time + obj.Modified = expected -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1(t *testing.T) { - t.Run("GetX", func(t *testing.T) { + // Act & Assert + assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") + }) + + t.Run("GetModified_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1{} - var expected float64 - obj.X = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj.Modified = nil // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + assert.Nil(t, obj.GetModified(), "getter should return nil when property is nil") }) - t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Run("GetModified_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1 + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetX() // Should return zero value + _ = obj.GetModified() // Should return zero value }) - t.Run("GetY", func(t *testing.T) { + t.Run("GetBlendMode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1{} - var expected float64 - obj.Y = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var expected DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode + obj.BlendMode = expected // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBlendMode(), "getter should return the property value") }) - t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1 + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetY() // Should return zero value + _ = obj.GetBlendMode() // Should return zero value }) -} + t.Run("GetInReplyTo", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var expected *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo + obj.InReplyTo = expected -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { + // Act & Assert + assert.Equal(t, expected, obj.GetInReplyTo(), "getter should return the property value") + }) + + t.Run("GetInReplyTo_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1{} - var fernTestValueX float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj.InReplyTo = nil - // Act - obj.SetX(fernTestValueX) + // Act & Assert + assert.Nil(t, obj.GetInReplyTo(), "getter should return nil when property is nil") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetInReplyTo() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetReplyType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var expected *DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyType + obj.ReplyType = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetReplyType(), "getter should return the property value") }) - t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Run("GetReplyType_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj.ReplyType = nil + + // Act & Assert + assert.Nil(t, obj.GetReplyType(), "getter should return nil when property is nil") + }) + + t.Run("GetReplyType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetReplyType() // Should return zero value + }) + + t.Run("GetUserID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var expected *string + obj.UserID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") + }) + + t.Run("GetUserID_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj.UserID = nil + + // Act & Assert + assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") + }) + + t.Run("GetUserID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUserID() // Should return zero value + }) + + t.Run("GetGroupID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var expected *string + obj.GroupID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetGroupID(), "getter should return the property value") + }) + + t.Run("GetGroupID_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj.GroupID = nil + + // Act & Assert + assert.Nil(t, obj.GetGroupID(), "getter should return nil when property is nil") + }) + + t.Run("GetGroupID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGroupID() // Should return zero value + }) + + t.Run("GetCreatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var expected *string + obj.CreatedBy = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") + }) + + t.Run("GetCreatedBy_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj.CreatedBy = nil + + // Act & Assert + assert.Nil(t, obj.GetCreatedBy(), "getter should return nil when property is nil") + }) + + t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCreatedBy() // Should return zero value + }) + + t.Run("GetUpdatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var expected *string + obj.UpdatedBy = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUpdatedBy(), "getter should return the property value") + }) + + t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP1{} - var fernTestValueY float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj.UpdatedBy = nil - // Act - obj.SetY(fernTestValueY) + // Act & Assert + assert.Nil(t, obj.GetUpdatedBy(), "getter should return nil when property is nil") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUpdatedBy() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetActions", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var expected *PdfAnnotationActions + obj.Actions = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") }) -} + t.Run("GetActions_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj.Actions = nil -func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") }) - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) - assert.NotNil(t, obj.explicitFields) + t.Run("GetActions_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetActions() // Should return zero value }) -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2(t *testing.T) { - t.Run("GetX", func(t *testing.T) { + t.Run("GetRawSubtypeCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2{} - var expected float64 - obj.X = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var expected int + obj.RawSubtypeCode = expected // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRawSubtypeCode(), "getter should return the property value") }) - t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Run("GetRawSubtypeCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2 + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetX() // Should return zero value + _ = obj.GetRawSubtypeCode() // Should return zero value }) - t.Run("GetY", func(t *testing.T) { + t.Run("GetRawSubtypeName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2{} - var expected float64 - obj.Y = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var expected *string + obj.RawSubtypeName = expected // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRawSubtypeName(), "getter should return the property value") }) - t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Run("GetRawSubtypeName_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2 + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj.RawSubtypeName = nil + + // Act & Assert + assert.Nil(t, obj.GetRawSubtypeName(), "getter should return nil when property is nil") + }) + + t.Run("GetRawSubtypeName_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetY() // Should return zero value + _ = obj.GetRawSubtypeName() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2{} - var fernTestValueX float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef // Act - obj.SetX(fernTestValueX) + obj.SetRef(fernTestValueRef) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -77059,14 +115866,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP2{} - var fernTestValueY float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValuePageObjectNumber int // Act - obj.SetY(fernTestValueY) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -77090,85 +115897,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3(t *testing.T) { - t.Run("GetX", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3{} - var expected float64 - obj.X = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") - }) - - t.Run("GetX_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3 - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetX() // Should return zero value - }) - - t.Run("GetY", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3{} - var expected float64 - obj.Y = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") - }) - - t.Run("GetY_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3 - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetY() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3{} - var fernTestValueX float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueIndex int // Act - obj.SetX(fernTestValueX) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -77192,14 +115928,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP3{} - var fernTestValueY float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQuality // Act - obj.SetY(fernTestValueY) + obj.SetIdentityQuality(fernTestValueIdentityQuality) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -77223,85 +115959,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4(t *testing.T) { - t.Run("GetX", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4{} - var expected float64 - obj.X = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") - }) - - t.Run("GetX_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4 - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetX() // Should return zero value - }) - - t.Run("GetY", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4{} - var expected float64 - obj.Y = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") - }) - - t.Run("GetY_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4 - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetY() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4{} - var fernTestValueX float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueNm *string // Act - obj.SetX(fernTestValueX) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -77325,14 +115990,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyQuadPointsItemP4{} - var fernTestValueY float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags // Act - obj.SetY(fernTestValueY) + obj.SetFlags(fernTestValueFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -77356,147 +116021,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyRect(t *testing.T) { - t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRect{} - var fernTestValueLeft float64 - obj.SetLeft(fernTestValueLeft) - assert.Equal(t, fernTestValueLeft, obj.Left) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRect{} - var fernTestValueBottom float64 - obj.SetBottom(fernTestValueBottom) - assert.Equal(t, fernTestValueBottom, obj.Bottom) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRect{} - var fernTestValueRight float64 - obj.SetRight(fernTestValueRight) - assert.Equal(t, fernTestValueRight, obj.Right) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRect{} - var fernTestValueTop float64 - obj.SetTop(fernTestValueTop) - assert.Equal(t, fernTestValueTop, obj.Top) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyRect(t *testing.T) { - t.Run("GetLeft", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRect{} - var expected float64 - obj.Left = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") - }) - - t.Run("GetLeft_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetLeft() // Should return zero value - }) - - t.Run("GetBottom", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRect{} - var expected float64 - obj.Bottom = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") - }) - - t.Run("GetBottom_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetBottom() // Should return zero value - }) - - t.Run("GetRight", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRect{} - var expected float64 - obj.Right = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") - }) - - t.Run("GetRight_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRight() // Should return zero value - }) - - t.Run("GetTop", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRect{} - var expected float64 - obj.Top = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") - }) - - t.Run("GetTop_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetTop() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquigglyRect(t *testing.T) { - t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Run("SetRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRect{} - var fernTestValueLeft float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect // Act - obj.SetLeft(fernTestValueLeft) + obj.SetRect(fernTestValueRect) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -77520,14 +116052,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Run("SetContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRect{} - var fernTestValueBottom float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueContents *string // Act - obj.SetBottom(fernTestValueBottom) + obj.SetContents(fernTestValueContents) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -77551,14 +116083,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRight_MarksExplicit", func(t *testing.T) { + t.Run("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRect{} - var fernTestValueRight float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueSubject *string // Act - obj.SetRight(fernTestValueRight) + obj.SetSubject(fernTestValueSubject) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -77582,14 +116114,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRect{} - var fernTestValueTop float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueAuthor *string // Act - obj.SetTop(fernTestValueTop) + obj.SetAuthor(fernTestValueAuthor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -77613,251 +116145,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyRef(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRef{} - var expected string - obj.Kind = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") - }) - - t.Run("GetKind_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRef - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetKind() // Should return zero value - }) - - t.Run("GetObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber - obj.ObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") - }) - - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRef{} - obj.ObjectNumber = nil - - // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") - }) - - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRef - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetObjectNumber() // Should return zero value - }) - - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm - obj.Nm = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") - }) - - t.Run("GetNm_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRef{} - obj.Nm = nil - - // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") - }) - - t.Run("GetNm_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRef - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNm() // Should return zero value - }) - - t.Run("GetIndex", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex - obj.Index = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") - }) - - t.Run("GetIndex_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRef{} - obj.Index = nil - - // Act & Assert - assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") - }) - - t.Run("GetIndex_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRef - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetIndex() // Should return zero value - }) - -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetIndex", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex{} - var expected int - obj.Index = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") - }) - - t.Run("GetIndex_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetIndex() // Should return zero value - }) - - t.Run("GetRevision", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex{} - var expected *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision - obj.Revision = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") - }) - - t.Run("GetRevision_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex{} - obj.Revision = nil - - // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") - }) - - t.Run("GetRevision_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRevision() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueCreated *time.Time // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetCreated(fernTestValueCreated) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -77881,14 +116176,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex{} - var fernTestValueIndex int + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueModified *time.Time // Act - obj.SetIndex(fernTestValueIndex) + obj.SetModified(fernTestValueModified) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -77912,14 +116207,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode // Act - obj.SetRevision(fernTestValueRevision) + obj.SetBlendMode(fernTestValueBlendMode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -77943,116 +116238,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision{} - var fernTestValueDocSessionID string - obj.SetDocSessionID(fernTestValueDocSessionID) - assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision{} - var expected string - obj.DocSessionID = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") - }) - - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetDocSessionID() // Should return zero value - }) - - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetGeneration", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision{} - var expected int - obj.Generation = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") - }) - - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetGeneration() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision{} - var fernTestValueDocSessionID string + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo // Act - obj.SetDocSessionID(fernTestValueDocSessionID) + obj.SetInReplyTo(fernTestValueInReplyTo) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -78076,14 +116269,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyType // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetReplyType(fernTestValueReplyType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -78107,14 +116300,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefIndexRevision{} - var fernTestValueGeneration int + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueUserID *string // Act - obj.SetGeneration(fernTestValueGeneration) + obj.SetUserID(fernTestValueUserID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -78138,85 +116331,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm{} - var fernTestValueNm string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm{} - var expected string - obj.Nm = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") - }) - - t.Run("GetNm_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNm() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueGroupID *string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetGroupID(fernTestValueGroupID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -78240,14 +116362,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefNm{} - var fernTestValueNm string + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueCreatedBy *string // Act - obj.SetNm(fernTestValueNm) + obj.SetCreatedBy(fernTestValueCreatedBy) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -78269,87 +116391,16 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // Note: This does not explicitly assert the presence of a specific JSON field // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetAnnotObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") - }) - - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAnnotObjectNumber() // Should return zero value - }) - -} + }) -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueUpdatedBy *string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetUpdatedBy(fernTestValueUpdatedBy) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -78373,14 +116424,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetActions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemSquigglyRefObjectNumber{} - var fernTestValueAnnotObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueActions *PdfAnnotationActions // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + obj.SetActions(fernTestValueActions) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -78404,926 +116455,942 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemSquiggly // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemStamp(t *testing.T) { - t.Run("SetRef", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemStampRef - obj.SetRef(fernTestValueRef) - assert.Equal(t, fernTestValueRef, obj.Ref) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("SetRawSubtypeCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueRawSubtypeCode int - t.Run("SetIdentityQuality", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemStampIdentityQuality - obj.SetIdentityQuality(fernTestValueIdentityQuality) - assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetRawSubtypeCode(fernTestValueRawSubtypeCode) - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueNm *string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("SetFlags", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemStampFlags - obj.SetFlags(fernTestValueFlags) - assert.Equal(t, fernTestValueFlags, obj.Flags) - assert.NotNil(t, obj.explicitFields) - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("SetRect", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemStampRect - obj.SetRect(fernTestValueRect) - assert.Equal(t, fernTestValueRect, obj.Rect) - assert.NotNil(t, obj.explicitFields) + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetContents", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueContents *string - obj.SetContents(fernTestValueContents) - assert.Equal(t, fernTestValueContents, obj.Contents) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("SetRawSubtypeName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + var fernTestValueRawSubtypeName *string - t.Run("SetSubject", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueSubject *string - obj.SetSubject(fernTestValueSubject) - assert.Equal(t, fernTestValueSubject, obj.Subject) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetRawSubtypeName(fernTestValueRawSubtypeName) - t.Run("SetAuthor", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueAuthor *string - obj.SetAuthor(fernTestValueAuthor) - assert.Equal(t, fernTestValueAuthor, obj.Author) - assert.NotNil(t, obj.explicitFields) - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("SetCreated", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueCreated *time.Time - obj.SetCreated(fernTestValueCreated) - assert.Equal(t, fernTestValueCreated, obj.Created) - assert.NotNil(t, obj.explicitFields) - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("SetModified", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueModified *time.Time - obj.SetModified(fernTestValueModified) - assert.Equal(t, fernTestValueModified, obj.Modified) - assert.NotNil(t, obj.explicitFields) + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBlendMode", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemStampBlendMode - obj.SetBlendMode(fernTestValueBlendMode) - assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) - assert.NotNil(t, obj.explicitFields) - }) +} - t.Run("SetInReplyTo", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo - obj.SetInReplyTo(fernTestValueInReplyTo) - assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) +func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t *testing.T) { + t.Run("SetInvisible", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + var fernTestValueInvisible bool + obj.SetInvisible(fernTestValueInvisible) + assert.Equal(t, fernTestValueInvisible, obj.Invisible) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetReplyType", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemStampReplyType - obj.SetReplyType(fernTestValueReplyType) - assert.Equal(t, fernTestValueReplyType, obj.ReplyType) + t.Run("SetHidden", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + var fernTestValueHidden bool + obj.SetHidden(fernTestValueHidden) + assert.Equal(t, fernTestValueHidden, obj.Hidden) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetUserID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueUserID *string - obj.SetUserID(fernTestValueUserID) - assert.Equal(t, fernTestValueUserID, obj.UserID) + t.Run("SetPrint", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + var fernTestValuePrint bool + obj.SetPrint(fernTestValuePrint) + assert.Equal(t, fernTestValuePrint, obj.Print) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetGroupID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueGroupID *string - obj.SetGroupID(fernTestValueGroupID) - assert.Equal(t, fernTestValueGroupID, obj.GroupID) + t.Run("SetNoZoom", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + var fernTestValueNoZoom bool + obj.SetNoZoom(fernTestValueNoZoom) + assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCreatedBy", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueCreatedBy *string - obj.SetCreatedBy(fernTestValueCreatedBy) - assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) + t.Run("SetNoRotate", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + var fernTestValueNoRotate bool + obj.SetNoRotate(fernTestValueNoRotate) + assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetUpdatedBy", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueUpdatedBy *string - obj.SetUpdatedBy(fernTestValueUpdatedBy) - assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) + t.Run("SetNoView", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + var fernTestValueNoView bool + obj.SetNoView(fernTestValueNoView) + assert.Equal(t, fernTestValueNoView, obj.NoView) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetActions", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueActions *PdfAnnotationActions - obj.SetActions(fernTestValueActions) - assert.Equal(t, fernTestValueActions, obj.Actions) + t.Run("SetReadOnly", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + var fernTestValueReadOnly bool + obj.SetReadOnly(fernTestValueReadOnly) + assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetName", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueName *string - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) + t.Run("SetLocked", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + var fernTestValueLocked bool + obj.SetLocked(fernTestValueLocked) + assert.Equal(t, fernTestValueLocked, obj.Locked) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRotation", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueRotation *float64 - obj.SetRotation(fernTestValueRotation) - assert.Equal(t, fernTestValueRotation, obj.Rotation) + t.Run("SetToggleNoView", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + var fernTestValueToggleNoView bool + obj.SetToggleNoView(fernTestValueToggleNoView) + assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetUnrotatedRect", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueUnrotatedRect *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect - obj.SetUnrotatedRect(fernTestValueUnrotatedRect) - assert.Equal(t, fernTestValueUnrotatedRect, obj.UnrotatedRect) + t.Run("SetLockedContents", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + var fernTestValueLockedContents bool + obj.SetLockedContents(fernTestValueLockedContents) + assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemStamp(t *testing.T) { - t.Run("GetRef", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var expected *DocAnnotationsList200ResponseAnnotationsItemStampRef - obj.Ref = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") - }) - - t.Run("GetRef_NilValue", func(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t *testing.T) { + t.Run("GetInvisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - obj.Ref = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + var expected bool + obj.Invisible = expected // Act & Assert - assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetInvisible(), "getter should return the property value") }) - t.Run("GetRef_NilReceiver", func(t *testing.T) { + t.Run("GetInvisible_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRef() // Should return zero value + _ = obj.GetInvisible() // Should return zero value }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetHidden", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + var expected bool + obj.Hidden = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetHidden_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetHidden() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetPrint", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var expected int - obj.Index = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + var expected bool + obj.Print = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetPrint_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetPrint() // Should return zero value }) - t.Run("GetIdentityQuality", func(t *testing.T) { + t.Run("GetNoZoom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var expected DocAnnotationsList200ResponseAnnotationsItemStampIdentityQuality - obj.IdentityQuality = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + var expected bool + obj.NoZoom = expected // Act & Assert - assert.Equal(t, expected, obj.GetIdentityQuality(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") }) - t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { + t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIdentityQuality() // Should return zero value - }) - - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var expected *string - obj.Nm = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + _ = obj.GetNoZoom() // Should return zero value }) - t.Run("GetNm_NilValue", func(t *testing.T) { + t.Run("GetNoRotate", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - obj.Nm = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + var expected bool + obj.NoRotate = expected // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value - }) - - t.Run("GetFlags", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var expected *DocAnnotationsList200ResponseAnnotationsItemStampFlags - obj.Flags = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") + _ = obj.GetNoRotate() // Should return zero value }) - t.Run("GetFlags_NilValue", func(t *testing.T) { + t.Run("GetNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - obj.Flags = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + var expected bool + obj.NoView = expected // Act & Assert - assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") }) - t.Run("GetFlags_NilReceiver", func(t *testing.T) { + t.Run("GetNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFlags() // Should return zero value - }) - - t.Run("GetRect", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var expected *DocAnnotationsList200ResponseAnnotationsItemStampRect - obj.Rect = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRect(), "getter should return the property value") + _ = obj.GetNoView() // Should return zero value }) - t.Run("GetRect_NilValue", func(t *testing.T) { + t.Run("GetReadOnly", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - obj.Rect = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + var expected bool + obj.ReadOnly = expected // Act & Assert - assert.Nil(t, obj.GetRect(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") }) - t.Run("GetRect_NilReceiver", func(t *testing.T) { + t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRect() // Should return zero value - }) - - t.Run("GetContents", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var expected *string - obj.Contents = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetContents(), "getter should return the property value") + _ = obj.GetReadOnly() // Should return zero value }) - t.Run("GetContents_NilValue", func(t *testing.T) { + t.Run("GetLocked", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - obj.Contents = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + var expected bool + obj.Locked = expected // Act & Assert - assert.Nil(t, obj.GetContents(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") }) - t.Run("GetContents_NilReceiver", func(t *testing.T) { + t.Run("GetLocked_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetContents() // Should return zero value - }) - - t.Run("GetSubject", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var expected *string - obj.Subject = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetSubject(), "getter should return the property value") + _ = obj.GetLocked() // Should return zero value }) - t.Run("GetSubject_NilValue", func(t *testing.T) { + t.Run("GetToggleNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - obj.Subject = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + var expected bool + obj.ToggleNoView = expected // Act & Assert - assert.Nil(t, obj.GetSubject(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") }) - t.Run("GetSubject_NilReceiver", func(t *testing.T) { + t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetSubject() // Should return zero value - }) - - t.Run("GetAuthor", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var expected *string - obj.Author = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAuthor(), "getter should return the property value") + _ = obj.GetToggleNoView() // Should return zero value }) - t.Run("GetAuthor_NilValue", func(t *testing.T) { + t.Run("GetLockedContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - obj.Author = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + var expected bool + obj.LockedContents = expected // Act & Assert - assert.Nil(t, obj.GetAuthor(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") }) - t.Run("GetAuthor_NilReceiver", func(t *testing.T) { + t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAuthor() // Should return zero value + _ = obj.GetLockedContents() // Should return zero value }) - t.Run("GetCreated", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t *testing.T) { + t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var expected *time.Time - obj.Created = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + var fernTestValueInvisible bool - // Act & Assert - assert.Equal(t, expected, obj.GetCreated(), "getter should return the property value") - }) + // Act + obj.SetInvisible(fernTestValueInvisible) - t.Run("GetCreated_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - obj.Created = nil + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Nil(t, obj.GetCreated(), "getter should return nil when property is nil") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetCreated_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStamp - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetCreated() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetModified", func(t *testing.T) { + t.Run("SetHidden_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var expected *time.Time - obj.Modified = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + var fernTestValueHidden bool - // Act & Assert - assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") - }) + // Act + obj.SetHidden(fernTestValueHidden) - t.Run("GetModified_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - obj.Modified = nil + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Nil(t, obj.GetModified(), "getter should return nil when property is nil") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetModified_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStamp - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetModified() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetBlendMode", func(t *testing.T) { + t.Run("SetPrint_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var expected DocAnnotationsList200ResponseAnnotationsItemStampBlendMode - obj.BlendMode = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + var fernTestValuePrint bool - // Act & Assert - assert.Equal(t, expected, obj.GetBlendMode(), "getter should return the property value") - }) + // Act + obj.SetPrint(fernTestValuePrint) - t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStamp - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetBlendMode() // Should return zero value + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetInReplyTo", func(t *testing.T) { + t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var expected *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo - obj.InReplyTo = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + var fernTestValueNoZoom bool - // Act & Assert - assert.Equal(t, expected, obj.GetInReplyTo(), "getter should return the property value") + // Act + obj.SetNoZoom(fernTestValueNoZoom) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetInReplyTo_NilValue", func(t *testing.T) { + t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - obj.InReplyTo = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + var fernTestValueNoRotate bool - // Act & Assert - assert.Nil(t, obj.GetInReplyTo(), "getter should return nil when property is nil") - }) + // Act + obj.SetNoRotate(fernTestValueNoRotate) - t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStamp - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetInReplyTo() // Should return zero value + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetReplyType", func(t *testing.T) { + t.Run("SetNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var expected *DocAnnotationsList200ResponseAnnotationsItemStampReplyType - obj.ReplyType = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + var fernTestValueNoView bool - // Act & Assert - assert.Equal(t, expected, obj.GetReplyType(), "getter should return the property value") + // Act + obj.SetNoView(fernTestValueNoView) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetReplyType_NilValue", func(t *testing.T) { + t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - obj.ReplyType = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + var fernTestValueReadOnly bool - // Act & Assert - assert.Nil(t, obj.GetReplyType(), "getter should return nil when property is nil") - }) + // Act + obj.SetReadOnly(fernTestValueReadOnly) - t.Run("GetReplyType_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStamp - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetReplyType() // Should return zero value + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetUserID", func(t *testing.T) { + t.Run("SetLocked_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var expected *string - obj.UserID = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + var fernTestValueLocked bool - // Act & Assert - assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") + // Act + obj.SetLocked(fernTestValueLocked) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetUserID_NilValue", func(t *testing.T) { + t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - obj.UserID = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + var fernTestValueToggleNoView bool - // Act & Assert - assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") - }) + // Act + obj.SetToggleNoView(fernTestValueToggleNoView) - t.Run("GetUserID_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStamp - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetUserID() // Should return zero value + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetGroupID", func(t *testing.T) { + t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var expected *string - obj.GroupID = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + var fernTestValueLockedContents bool - // Act & Assert - assert.Equal(t, expected, obj.GetGroupID(), "getter should return the property value") + // Act + obj.SetLockedContents(fernTestValueLockedContents) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetGroupID_NilValue", func(t *testing.T) { +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - obj.GroupID = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo{} + var expected string + obj.Kind = expected // Act & Assert - assert.Nil(t, obj.GetGroupID(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") }) - t.Run("GetGroupID_NilReceiver", func(t *testing.T) { + t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGroupID() // Should return zero value + _ = obj.GetKind() // Should return zero value }) - t.Run("GetCreatedBy", func(t *testing.T) { + t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var expected *string - obj.CreatedBy = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber + obj.ObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") }) - t.Run("GetCreatedBy_NilValue", func(t *testing.T) { + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - obj.CreatedBy = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo{} + obj.ObjectNumber = nil // Act & Assert - assert.Nil(t, obj.GetCreatedBy(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") }) - t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCreatedBy() // Should return zero value + _ = obj.GetObjectNumber() // Should return zero value }) - t.Run("GetUpdatedBy", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var expected *string - obj.UpdatedBy = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm + obj.Nm = expected // Act & Assert - assert.Equal(t, expected, obj.GetUpdatedBy(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { + t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - obj.UpdatedBy = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo{} + obj.Nm = nil // Act & Assert - assert.Nil(t, obj.GetUpdatedBy(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") }) - t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUpdatedBy() // Should return zero value + _ = obj.GetNm() // Should return zero value }) - t.Run("GetActions", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var expected *PdfAnnotationActions - obj.Actions = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex + obj.Index = expected // Act & Assert - assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetActions_NilValue", func(t *testing.T) { + t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - obj.Actions = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo{} + obj.Index = nil // Act & Assert - assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") }) - t.Run("GetActions_NilReceiver", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetActions() // Should return zero value + _ = obj.GetIndex() // Should return zero value }) - t.Run("GetName", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var expected *string - obj.Name = expected +} - // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") +func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetName_NilValue", func(t *testing.T) { + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - obj.Name = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Nil(t, obj.GetName(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetName() // Should return zero value - }) - - t.Run("GetRotation", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var expected *float64 - obj.Rotation = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRotation(), "getter should return the property value") + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetRotation_NilValue", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - obj.Rotation = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex{} + var expected int + obj.Index = expected // Act & Assert - assert.Nil(t, obj.GetRotation(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetRotation_NilReceiver", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRotation() // Should return zero value + _ = obj.GetIndex() // Should return zero value }) - t.Run("GetUnrotatedRect", func(t *testing.T) { + t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var expected *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect - obj.UnrotatedRect = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex{} + var expected *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision + obj.Revision = expected // Act & Assert - assert.Equal(t, expected, obj.GetUnrotatedRect(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") }) - t.Run("GetUnrotatedRect_NilValue", func(t *testing.T) { + t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - obj.UnrotatedRect = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex{} + obj.Revision = nil // Act & Assert - assert.Nil(t, obj.GetUnrotatedRect(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") }) - t.Run("GetUnrotatedRect_NilReceiver", func(t *testing.T) { + t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStamp + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUnrotatedRect() // Should return zero value + _ = obj.GetRevision() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStamp(t *testing.T) { - t.Run("SetRef_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemStampRef + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex{} + var fernTestValuePageObjectNumber int // Act - obj.SetRef(fernTestValueRef) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -79347,14 +117414,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStamp(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex{} + var fernTestValueIndex int // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -79378,14 +117445,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStamp(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueIndex int + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision // Act - obj.SetIndex(fernTestValueIndex) + obj.SetRevision(fernTestValueRevision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -79409,14 +117476,116 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStamp(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision{} + var fernTestValueDocSessionID string + obj.SetDocSessionID(fernTestValueDocSessionID) + assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetGeneration", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemStampIdentityQuality + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision{} + var expected string + obj.DocSessionID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + }) + + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDocSessionID() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetGeneration", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision{} + var expected int + obj.Generation = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + }) + + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGeneration() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision{} + var fernTestValueDocSessionID string // Act - obj.SetIdentityQuality(fernTestValueIdentityQuality) + obj.SetDocSessionID(fernTestValueDocSessionID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -79440,14 +117609,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStamp(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueNm *string + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int // Act - obj.SetNm(fernTestValueNm) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -79471,14 +117640,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStamp(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFlags_MarksExplicit", func(t *testing.T) { + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemStampFlags + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision{} + var fernTestValueGeneration int // Act - obj.SetFlags(fernTestValueFlags) + obj.SetGeneration(fernTestValueGeneration) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -79502,14 +117671,85 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStamp(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRect_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemStampRect + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm{} + var expected string + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm{} + var fernTestValuePageObjectNumber int // Act - obj.SetRect(fernTestValueRect) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -79533,14 +117773,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStamp(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetContents_MarksExplicit", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueContents *string + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm{} + var fernTestValueNm string // Act - obj.SetContents(fernTestValueContents) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -79564,14 +117804,85 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStamp(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetSubject_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueSubject *string + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + }) + + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAnnotObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int // Act - obj.SetSubject(fernTestValueSubject) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -79595,14 +117906,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStamp(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueAuthor *string + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int // Act - obj.SetAuthor(fernTestValueAuthor) + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -79626,14 +117937,147 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStamp(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreated_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRect(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect{} + var fernTestValueLeft float64 + obj.SetLeft(fernTestValueLeft) + assert.Equal(t, fernTestValueLeft, obj.Left) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBottom", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect{} + var fernTestValueBottom float64 + obj.SetBottom(fernTestValueBottom) + assert.Equal(t, fernTestValueBottom, obj.Bottom) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRight", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect{} + var fernTestValueRight float64 + obj.SetRight(fernTestValueRight) + assert.Equal(t, fernTestValueRight, obj.Right) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetTop", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueCreated *time.Time + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect{} + var expected float64 + obj.Left = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") + }) + + t.Run("GetLeft_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLeft() // Should return zero value + }) + + t.Run("GetBottom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect{} + var expected float64 + obj.Bottom = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") + }) + + t.Run("GetBottom_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBottom() // Should return zero value + }) + + t.Run("GetRight", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect{} + var expected float64 + obj.Right = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") + }) + + t.Run("GetRight_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRight() // Should return zero value + }) + + t.Run("GetTop", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect{} + var expected float64 + obj.Top = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + }) + + t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetTop() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsupportedRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect{} + var fernTestValueLeft float64 // Act - obj.SetCreated(fernTestValueCreated) + obj.SetLeft(fernTestValueLeft) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -79657,14 +118101,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStamp(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetModified_MarksExplicit", func(t *testing.T) { + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueModified *time.Time + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect{} + var fernTestValueBottom float64 // Act - obj.SetModified(fernTestValueModified) + obj.SetBottom(fernTestValueBottom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -79688,14 +118132,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStamp(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { + t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemStampBlendMode + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect{} + var fernTestValueRight float64 // Act - obj.SetBlendMode(fernTestValueBlendMode) + obj.SetRight(fernTestValueRight) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -79719,14 +118163,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStamp(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { + t.Run("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect{} + var fernTestValueTop float64 // Act - obj.SetInReplyTo(fernTestValueInReplyTo) + obj.SetTop(fernTestValueTop) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -79750,14 +118194,251 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStamp(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemStampReplyType + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef{} + var expected string + obj.Kind = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + }) + + t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKind() // Should return zero value + }) + + t.Run("GetObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber + obj.ObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + }) + + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef{} + obj.ObjectNumber = nil + + // Act & Assert + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + }) + + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef{} + obj.Nm = nil + + // Act & Assert + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef{} + obj.Index = nil + + // Act & Assert + assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex{} + var expected int + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + + t.Run("GetRevision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex{} + var expected *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision + obj.Revision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + }) + + t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex{} + obj.Revision = nil + + // Act & Assert + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + }) + + t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRevision() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex{} + var fernTestValuePageObjectNumber int // Act - obj.SetReplyType(fernTestValueReplyType) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -79781,14 +118462,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStamp(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUserID_MarksExplicit", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueUserID *string + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex{} + var fernTestValueIndex int // Act - obj.SetUserID(fernTestValueUserID) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -79812,14 +118493,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStamp(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueGroupID *string + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision // Act - obj.SetGroupID(fernTestValueGroupID) + obj.SetRevision(fernTestValueRevision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -79843,14 +118524,116 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStamp(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision{} + var fernTestValueDocSessionID string + obj.SetDocSessionID(fernTestValueDocSessionID) + assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetGeneration", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueCreatedBy *string + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision{} + var expected string + obj.DocSessionID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + }) + + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDocSessionID() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetGeneration", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision{} + var expected int + obj.Generation = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + }) + + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGeneration() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision{} + var fernTestValueDocSessionID string // Act - obj.SetCreatedBy(fernTestValueCreatedBy) + obj.SetDocSessionID(fernTestValueDocSessionID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -79874,14 +118657,45 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStamp(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueUpdatedBy *string + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision{} + var fernTestValuePageObjectNumber int // Act - obj.SetUpdatedBy(fernTestValueUpdatedBy) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision{} + var fernTestValueGeneration int + + // Act + obj.SetGeneration(fernTestValueGeneration) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -79905,14 +118719,85 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStamp(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetActions_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm{} + var expected string + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueActions *PdfAnnotationActions + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm{} + var fernTestValuePageObjectNumber int // Act - obj.SetActions(fernTestValueActions) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -79936,14 +118821,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStamp(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueName *string + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm{} + var fernTestValueNm string // Act - obj.SetName(fernTestValueName) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -79967,14 +118852,85 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStamp(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRotation_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueRotation *float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + }) + + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAnnotObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber{} + var fernTestValuePageObjectNumber int // Act - obj.SetRotation(fernTestValueRotation) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -79998,14 +118954,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStamp(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUnrotatedRect_MarksExplicit", func(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStamp{} - var fernTestValueUnrotatedRect *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect + obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber{} + var fernTestValueAnnotObjectNumber int // Act - obj.SetUnrotatedRect(fernTestValueUnrotatedRect) + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -80031,1237 +118987,1161 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStamp(t } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemStampFlags(t *testing.T) { - t.Run("SetInvisible", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} - var fernTestValueInvisible bool - obj.SetInvisible(fernTestValueInvisible) - assert.Equal(t, fernTestValueInvisible, obj.Invisible) +func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) { + t.Run("SetRef", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemWidgetRef + obj.SetRef(fernTestValueRef) + assert.Equal(t, fernTestValueRef, obj.Ref) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetHidden", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} - var fernTestValueHidden bool - obj.SetHidden(fernTestValueHidden) - assert.Equal(t, fernTestValueHidden, obj.Hidden) + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPrint", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} - var fernTestValuePrint bool - obj.SetPrint(fernTestValuePrint) - assert.Equal(t, fernTestValuePrint, obj.Print) + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNoZoom", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} - var fernTestValueNoZoom bool - obj.SetNoZoom(fernTestValueNoZoom) - assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) + t.Run("SetIdentityQuality", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQuality + obj.SetIdentityQuality(fernTestValueIdentityQuality) + assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNoRotate", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} - var fernTestValueNoRotate bool - obj.SetNoRotate(fernTestValueNoRotate) - assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueNm *string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNoView", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} - var fernTestValueNoView bool - obj.SetNoView(fernTestValueNoView) - assert.Equal(t, fernTestValueNoView, obj.NoView) + t.Run("SetFlags", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags + obj.SetFlags(fernTestValueFlags) + assert.Equal(t, fernTestValueFlags, obj.Flags) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} - var fernTestValueReadOnly bool - obj.SetReadOnly(fernTestValueReadOnly) - assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) + t.Run("SetRect", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemWidgetRect + obj.SetRect(fernTestValueRect) + assert.Equal(t, fernTestValueRect, obj.Rect) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetLocked", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} - var fernTestValueLocked bool - obj.SetLocked(fernTestValueLocked) - assert.Equal(t, fernTestValueLocked, obj.Locked) + t.Run("SetContents", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueContents *string + obj.SetContents(fernTestValueContents) + assert.Equal(t, fernTestValueContents, obj.Contents) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetToggleNoView", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} - var fernTestValueToggleNoView bool - obj.SetToggleNoView(fernTestValueToggleNoView) - assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) + t.Run("SetSubject", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueSubject *string + obj.SetSubject(fernTestValueSubject) + assert.Equal(t, fernTestValueSubject, obj.Subject) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetLockedContents", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} - var fernTestValueLockedContents bool - obj.SetLockedContents(fernTestValueLockedContents) - assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) + t.Run("SetAuthor", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueAuthor *string + obj.SetAuthor(fernTestValueAuthor) + assert.Equal(t, fernTestValueAuthor, obj.Author) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCreated", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueCreated *time.Time + obj.SetCreated(fernTestValueCreated) + assert.Equal(t, fernTestValueCreated, obj.Created) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetModified", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueModified *time.Time + obj.SetModified(fernTestValueModified) + assert.Equal(t, fernTestValueModified, obj.Modified) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBlendMode", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode + obj.SetBlendMode(fernTestValueBlendMode) + assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetInReplyTo", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo + obj.SetInReplyTo(fernTestValueInReplyTo) + assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetReplyType", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType + obj.SetReplyType(fernTestValueReplyType) + assert.Equal(t, fernTestValueReplyType, obj.ReplyType) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetUserID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueUserID *string + obj.SetUserID(fernTestValueUserID) + assert.Equal(t, fernTestValueUserID, obj.UserID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetGroupID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueGroupID *string + obj.SetGroupID(fernTestValueGroupID) + assert.Equal(t, fernTestValueGroupID, obj.GroupID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCreatedBy", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueCreatedBy *string + obj.SetCreatedBy(fernTestValueCreatedBy) + assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetUpdatedBy", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueUpdatedBy *string + obj.SetUpdatedBy(fernTestValueUpdatedBy) + assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetActions", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueActions *PdfAnnotationActions + obj.SetActions(fernTestValueActions) + assert.Equal(t, fernTestValueActions, obj.Actions) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetColor", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemWidgetColor + obj.SetColor(fernTestValueColor) + assert.Equal(t, fernTestValueColor, obj.Color) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetInteriorColor", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueInteriorColor *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor + obj.SetInteriorColor(fernTestValueInteriorColor) + assert.Equal(t, fernTestValueInteriorColor, obj.InteriorColor) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetStrokeWidth", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueStrokeWidth float64 + obj.SetStrokeWidth(fernTestValueStrokeWidth) + assert.Equal(t, fernTestValueStrokeWidth, obj.StrokeWidth) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBorderStyle", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueBorderStyle DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle + obj.SetBorderStyle(fernTestValueBorderStyle) + assert.Equal(t, fernTestValueBorderStyle, obj.BorderStyle) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFontFamily", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueFontFamily *DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily + obj.SetFontFamily(fernTestValueFontFamily) + assert.Equal(t, fernTestValueFontFamily, obj.FontFamily) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFontSize", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueFontSize *float64 + obj.SetFontSize(fernTestValueFontSize) + assert.Equal(t, fernTestValueFontSize, obj.FontSize) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFontColor", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueFontColor *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor + obj.SetFontColor(fernTestValueFontColor) + assert.Equal(t, fernTestValueFontColor, obj.FontColor) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetTextAlign", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueTextAlign DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign + obj.SetTextAlign(fernTestValueTextAlign) + assert.Equal(t, fernTestValueTextAlign, obj.TextAlign) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFieldObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueFieldObjectNumber int + obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) + assert.Equal(t, fernTestValueFieldObjectNumber, obj.FieldObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFieldFamily", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueFieldFamily DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily + obj.SetFieldFamily(fernTestValueFieldFamily) + assert.Equal(t, fernTestValueFieldFamily, obj.FieldFamily) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemStampFlags(t *testing.T) { - t.Run("GetInvisible", func(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} - var expected bool - obj.Invisible = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var expected *DocAnnotationsList200ResponseAnnotationsItemWidgetRef + obj.Ref = expected // Act & Assert - assert.Equal(t, expected, obj.GetInvisible(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") }) - t.Run("GetInvisible_NilReceiver", func(t *testing.T) { + t.Run("GetRef_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampFlags + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj.Ref = nil + + // Act & Assert + assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") + }) + + t.Run("GetRef_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInvisible() // Should return zero value + _ = obj.GetRef() // Should return zero value }) - t.Run("GetHidden", func(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} - var expected bool - obj.Hidden = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetHidden_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetHidden() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetPrint", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} - var expected bool - obj.Print = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var expected int + obj.Index = expected // Act & Assert - assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetPrint_NilReceiver", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPrint() // Should return zero value + _ = obj.GetIndex() // Should return zero value }) - t.Run("GetNoZoom", func(t *testing.T) { + t.Run("GetIdentityQuality", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} - var expected bool - obj.NoZoom = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var expected DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQuality + obj.IdentityQuality = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIdentityQuality(), "getter should return the property value") }) - t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { + t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNoZoom() // Should return zero value + _ = obj.GetIdentityQuality() // Should return zero value }) - t.Run("GetNoRotate", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} - var expected bool - obj.NoRotate = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var expected *string + obj.Nm = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampFlags + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj.Nm = nil + + // Act & Assert + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNoRotate() // Should return zero value + _ = obj.GetNm() // Should return zero value }) - t.Run("GetNoView", func(t *testing.T) { + t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} - var expected bool - obj.NoView = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var expected *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags + obj.Flags = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") }) - t.Run("GetNoView_NilReceiver", func(t *testing.T) { + t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampFlags + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj.Flags = nil + + // Act & Assert + assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") + }) + + t.Run("GetFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNoView() // Should return zero value + _ = obj.GetFlags() // Should return zero value }) - t.Run("GetReadOnly", func(t *testing.T) { + t.Run("GetRect", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} - var expected bool - obj.ReadOnly = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var expected *DocAnnotationsList200ResponseAnnotationsItemWidgetRect + obj.Rect = expected // Act & Assert - assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRect(), "getter should return the property value") }) - t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { + t.Run("GetRect_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampFlags + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj.Rect = nil + + // Act & Assert + assert.Nil(t, obj.GetRect(), "getter should return nil when property is nil") + }) + + t.Run("GetRect_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReadOnly() // Should return zero value + _ = obj.GetRect() // Should return zero value }) - t.Run("GetLocked", func(t *testing.T) { + t.Run("GetContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} - var expected bool - obj.Locked = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var expected *string + obj.Contents = expected // Act & Assert - assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") + assert.Equal(t, expected, obj.GetContents(), "getter should return the property value") }) - t.Run("GetLocked_NilReceiver", func(t *testing.T) { + t.Run("GetContents_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampFlags + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj.Contents = nil + + // Act & Assert + assert.Nil(t, obj.GetContents(), "getter should return nil when property is nil") + }) + + t.Run("GetContents_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLocked() // Should return zero value + _ = obj.GetContents() // Should return zero value }) - t.Run("GetToggleNoView", func(t *testing.T) { + t.Run("GetSubject", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} - var expected bool - obj.ToggleNoView = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var expected *string + obj.Subject = expected // Act & Assert - assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubject(), "getter should return the property value") }) - t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { + t.Run("GetSubject_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampFlags + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj.Subject = nil + + // Act & Assert + assert.Nil(t, obj.GetSubject(), "getter should return nil when property is nil") + }) + + t.Run("GetSubject_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetToggleNoView() // Should return zero value + _ = obj.GetSubject() // Should return zero value }) - t.Run("GetLockedContents", func(t *testing.T) { + t.Run("GetAuthor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} - var expected bool - obj.LockedContents = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var expected *string + obj.Author = expected // Act & Assert - assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAuthor(), "getter should return the property value") }) - t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { + t.Run("GetAuthor_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampFlags + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj.Author = nil + + // Act & Assert + assert.Nil(t, obj.GetAuthor(), "getter should return nil when property is nil") + }) + + t.Run("GetAuthor_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLockedContents() // Should return zero value + _ = obj.GetAuthor() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampFlags(t *testing.T) { - t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { + t.Run("GetCreated", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} - var fernTestValueInvisible bool - - // Act - obj.SetInvisible(fernTestValueInvisible) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var expected *time.Time + obj.Created = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetCreated(), "getter should return the property value") }) - t.Run("SetHidden_MarksExplicit", func(t *testing.T) { + t.Run("GetCreated_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} - var fernTestValueHidden bool - - // Act - obj.SetHidden(fernTestValueHidden) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj.Created = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetCreated(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetCreated_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCreated() // Should return zero value }) - t.Run("SetPrint_MarksExplicit", func(t *testing.T) { + t.Run("GetModified", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} - var fernTestValuePrint bool - - // Act - obj.SetPrint(fernTestValuePrint) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var expected *time.Time + obj.Modified = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") }) - t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { + t.Run("GetModified_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} - var fernTestValueNoZoom bool - - // Act - obj.SetNoZoom(fernTestValueNoZoom) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj.Modified = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetModified(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetModified_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetModified() // Should return zero value }) - t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { + t.Run("GetBlendMode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} - var fernTestValueNoRotate bool - - // Act - obj.SetNoRotate(fernTestValueNoRotate) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var expected DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode + obj.BlendMode = expected - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Equal(t, expected, obj.GetBlendMode(), "getter should return the property value") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBlendMode() // Should return zero value }) - t.Run("SetNoView_MarksExplicit", func(t *testing.T) { + t.Run("GetInReplyTo", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} - var fernTestValueNoView bool - - // Act - obj.SetNoView(fernTestValueNoView) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var expected *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo + obj.InReplyTo = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetInReplyTo(), "getter should return the property value") }) - t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { + t.Run("GetInReplyTo_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} - var fernTestValueReadOnly bool - - // Act - obj.SetReadOnly(fernTestValueReadOnly) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj.InReplyTo = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetInReplyTo(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetInReplyTo() // Should return zero value }) - t.Run("SetLocked_MarksExplicit", func(t *testing.T) { + t.Run("GetReplyType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} - var fernTestValueLocked bool + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var expected *DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType + obj.ReplyType = expected - // Act - obj.SetLocked(fernTestValueLocked) + // Act & Assert + assert.Equal(t, expected, obj.GetReplyType(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetReplyType_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj.ReplyType = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetReplyType(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetReplyType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetReplyType() // Should return zero value }) - t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { + t.Run("GetUserID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} - var fernTestValueToggleNoView bool + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var expected *string + obj.UserID = expected - // Act - obj.SetToggleNoView(fernTestValueToggleNoView) + // Act & Assert + assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetUserID_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj.UserID = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetUserID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUserID() // Should return zero value }) - t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { + t.Run("GetGroupID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampFlags{} - var fernTestValueLockedContents bool - - // Act - obj.SetLockedContents(fernTestValueLockedContents) + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var expected *string + obj.GroupID = expected - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + // Act & Assert + assert.Equal(t, expected, obj.GetGroupID(), "getter should return the property value") + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetGroupID_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj.GroupID = nil - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Nil(t, obj.GetGroupID(), "getter should return nil when property is nil") }) -} + t.Run("GetGroupID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGroupID() // Should return zero value + }) -func TestGettersDocAnnotationsList200ResponseAnnotationsItemStampInReplyTo(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { + t.Run("GetCreatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo{} - var expected string - obj.Kind = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var expected *string + obj.CreatedBy = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") + }) + + t.Run("GetCreatedBy_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj.CreatedBy = nil // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Nil(t, obj.GetCreatedBy(), "getter should return nil when property is nil") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo + var obj *DocAnnotationsList200ResponseAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKind() // Should return zero value + _ = obj.GetCreatedBy() // Should return zero value }) - t.Run("GetObjectNumber", func(t *testing.T) { + t.Run("GetUpdatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber - obj.ObjectNumber = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var expected *string + obj.UpdatedBy = expected // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUpdatedBy(), "getter should return the property value") }) - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo{} - obj.ObjectNumber = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj.UpdatedBy = nil // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetUpdatedBy(), "getter should return nil when property is nil") }) - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo + var obj *DocAnnotationsList200ResponseAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetObjectNumber() // Should return zero value + _ = obj.GetUpdatedBy() // Should return zero value }) - t.Run("GetNm", func(t *testing.T) { + t.Run("GetActions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm - obj.Nm = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var expected *PdfAnnotationActions + obj.Actions = expected // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") }) - t.Run("GetNm_NilValue", func(t *testing.T) { + t.Run("GetActions_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo{} - obj.Nm = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj.Actions = nil // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetActions_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo + var obj *DocAnnotationsList200ResponseAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetActions() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetColor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex - obj.Index = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var expected *DocAnnotationsList200ResponseAnnotationsItemWidgetColor + obj.Color = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") }) - t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Run("GetColor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo{} - obj.Index = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj.Color = nil // Act & Assert - assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetColor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyTo + var obj *DocAnnotationsList200ResponseAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value - }) - -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) + _ = obj.GetColor() // Should return zero value }) - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("GetInteriorColor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var expected *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor + obj.InteriorColor = expected - t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetInteriorColor(), "getter should return the property value") }) -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetInteriorColor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj.InteriorColor = nil // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Nil(t, obj.GetInteriorColor(), "getter should return nil when property is nil") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetInteriorColor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex + var obj *DocAnnotationsList200ResponseAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetInteriorColor() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetStrokeWidth", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex{} - var expected int - obj.Index = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var expected float64 + obj.StrokeWidth = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetStrokeWidth(), "getter should return the property value") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetStrokeWidth_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex + var obj *DocAnnotationsList200ResponseAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value - }) - - t.Run("GetRevision", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex{} - var expected *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision - obj.Revision = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + _ = obj.GetStrokeWidth() // Should return zero value }) - t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Run("GetBorderStyle", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex{} - obj.Revision = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var expected DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle + obj.BorderStyle = expected // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetBorderStyle(), "getter should return the property value") }) - t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Run("GetBorderStyle_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex + var obj *DocAnnotationsList200ResponseAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRevision() // Should return zero value + _ = obj.GetBorderStyle() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("GetFontFamily", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex{} - var fernTestValuePageObjectNumber int - - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var expected *DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily + obj.FontFamily = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetFontFamily(), "getter should return the property value") }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("GetFontFamily_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex{} - var fernTestValueIndex int - - // Act - obj.SetIndex(fernTestValueIndex) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj.FontFamily = nil - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Nil(t, obj.GetFontFamily(), "getter should return nil when property is nil") }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("GetFontFamily_NilReceiver", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision - - // Act - obj.SetRevision(fernTestValueRevision) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision{} - var fernTestValueDocSessionID string - obj.SetDocSessionID(fernTestValueDocSessionID) - assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) - assert.NotNil(t, obj.explicitFields) + var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFontFamily() // Should return zero value }) - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("GetFontSize", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var expected *float64 + obj.FontSize = expected - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetFontSize(), "getter should return the property value") }) -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { + t.Run("GetFontSize_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision{} - var expected string - obj.DocSessionID = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj.FontSize = nil // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + assert.Nil(t, obj.GetFontSize(), "getter should return nil when property is nil") }) - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Run("GetFontSize_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision + var obj *DocAnnotationsList200ResponseAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDocSessionID() // Should return zero value + _ = obj.GetFontSize() // Should return zero value }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetFontColor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var expected *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor + obj.FontColor = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFontColor(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetFontColor_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj.FontColor = nil + + // Act & Assert + assert.Nil(t, obj.GetFontColor(), "getter should return nil when property is nil") + }) + + t.Run("GetFontColor_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetFontColor() // Should return zero value }) - t.Run("GetGeneration", func(t *testing.T) { + t.Run("GetTextAlign", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision{} - var expected int - obj.Generation = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var expected DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign + obj.TextAlign = expected // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTextAlign(), "getter should return the property value") }) - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Run("GetTextAlign_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision + var obj *DocAnnotationsList200ResponseAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGeneration() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision{} - var fernTestValueDocSessionID string - - // Act - obj.SetDocSessionID(fernTestValueDocSessionID) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision{} - var fernTestValuePageObjectNumber int - - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToIndexRevision{} - var fernTestValueGeneration int - - // Act - obj.SetGeneration(fernTestValueGeneration) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm{} - var fernTestValueNm string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) + _ = obj.GetTextAlign() // Should return zero value }) -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetFieldObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} var expected int - obj.PageObjectNumber = expected + obj.FieldObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFieldObjectNumber(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetFieldObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm + var obj *DocAnnotationsList200ResponseAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetFieldObjectNumber() // Should return zero value }) - t.Run("GetNm", func(t *testing.T) { + t.Run("GetFieldFamily", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm{} - var expected string - obj.Nm = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var expected DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily + obj.FieldFamily = expected // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFieldFamily(), "getter should return the property value") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetFieldFamily_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm + var obj *DocAnnotationsList200ResponseAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetFieldFamily() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemWidgetRef // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetRef(fernTestValueRef) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -81285,14 +120165,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampInR // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToNm{} - var fernTestValueNm string + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValuePageObjectNumber int // Act - obj.SetNm(fernTestValueNm) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -81316,85 +120196,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampInR // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetAnnotObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") - }) - - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAnnotObjectNumber() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueIndex int // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -81418,14 +120227,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampInR // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQuality // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + obj.SetIdentityQuality(fernTestValueIdentityQuality) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -81449,147 +120258,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampInR // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemStampRect(t *testing.T) { - t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRect{} - var fernTestValueLeft float64 - obj.SetLeft(fernTestValueLeft) - assert.Equal(t, fernTestValueLeft, obj.Left) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRect{} - var fernTestValueBottom float64 - obj.SetBottom(fernTestValueBottom) - assert.Equal(t, fernTestValueBottom, obj.Bottom) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRect{} - var fernTestValueRight float64 - obj.SetRight(fernTestValueRight) - assert.Equal(t, fernTestValueRight, obj.Right) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRect{} - var fernTestValueTop float64 - obj.SetTop(fernTestValueTop) - assert.Equal(t, fernTestValueTop, obj.Top) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemStampRect(t *testing.T) { - t.Run("GetLeft", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRect{} - var expected float64 - obj.Left = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") - }) - - t.Run("GetLeft_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetLeft() // Should return zero value - }) - - t.Run("GetBottom", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRect{} - var expected float64 - obj.Bottom = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") - }) - - t.Run("GetBottom_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetBottom() // Should return zero value - }) - - t.Run("GetRight", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRect{} - var expected float64 - obj.Right = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") - }) - - t.Run("GetRight_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRight() // Should return zero value - }) - - t.Run("GetTop", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRect{} - var expected float64 - obj.Top = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") - }) - - t.Run("GetTop_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetTop() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampRect(t *testing.T) { - t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRect{} - var fernTestValueLeft float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueNm *string // Act - obj.SetLeft(fernTestValueLeft) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -81613,14 +120289,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampRec // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRect{} - var fernTestValueBottom float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags // Act - obj.SetBottom(fernTestValueBottom) + obj.SetFlags(fernTestValueFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -81644,14 +120320,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampRec // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRight_MarksExplicit", func(t *testing.T) { + t.Run("SetRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRect{} - var fernTestValueRight float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemWidgetRect // Act - obj.SetRight(fernTestValueRight) + obj.SetRect(fernTestValueRect) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -81675,14 +120351,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampRec // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Run("SetContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRect{} - var fernTestValueTop float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueContents *string // Act - obj.SetTop(fernTestValueTop) + obj.SetContents(fernTestValueContents) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -81703,254 +120379,17 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampRec } // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemStampRef(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRef{} - var expected string - obj.Kind = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") - }) - - t.Run("GetKind_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampRef - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetKind() // Should return zero value - }) - - t.Run("GetObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber - obj.ObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") - }) - - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRef{} - obj.ObjectNumber = nil - - // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") - }) - - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampRef - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetObjectNumber() // Should return zero value - }) - - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemStampRefNm - obj.Nm = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") - }) - - t.Run("GetNm_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRef{} - obj.Nm = nil - - // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") - }) - - t.Run("GetNm_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampRef - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNm() // Should return zero value - }) - - t.Run("GetIndex", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex - obj.Index = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") - }) - - t.Run("GetIndex_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRef{} - obj.Index = nil - - // Act & Assert - assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") - }) - - t.Run("GetIndex_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampRef - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetIndex() // Should return zero value - }) - -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemStampRefIndex(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndex{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndex{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemStampRefIndex(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndex{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetIndex", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndex{} - var expected int - obj.Index = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") - }) - - t.Run("GetIndex_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetIndex() // Should return zero value - }) - - t.Run("GetRevision", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndex{} - var expected *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision - obj.Revision = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") - }) - - t.Run("GetRevision_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndex{} - obj.Revision = nil - - // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") - }) - - t.Run("GetRevision_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampRefIndex - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRevision() // Should return zero value + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampRefIndex(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndex{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueSubject *string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetSubject(fernTestValueSubject) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -81974,14 +120413,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampRef // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndex{} - var fernTestValueIndex int + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueAuthor *string // Act - obj.SetIndex(fernTestValueIndex) + obj.SetAuthor(fernTestValueAuthor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -82005,14 +120444,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampRef // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueCreated *time.Time // Act - obj.SetRevision(fernTestValueRevision) + obj.SetCreated(fernTestValueCreated) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -82036,116 +120475,45 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampRef // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision{} - var fernTestValueDocSessionID string - obj.SetDocSessionID(fernTestValueDocSessionID) - assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision{} - var expected string - obj.DocSessionID = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") - }) - - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetDocSessionID() // Should return zero value - }) - - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueModified *time.Time - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) + // Act + obj.SetModified(fernTestValueModified) - t.Run("GetGeneration", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision{} - var expected int - obj.Generation = expected + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetGeneration() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision{} - var fernTestValueDocSessionID string + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode // Act - obj.SetDocSessionID(fernTestValueDocSessionID) + obj.SetBlendMode(fernTestValueBlendMode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -82169,14 +120537,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampRef // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetInReplyTo(fernTestValueInReplyTo) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -82200,14 +120568,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampRef // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefIndexRevision{} - var fernTestValueGeneration int + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType // Act - obj.SetGeneration(fernTestValueGeneration) + obj.SetReplyType(fernTestValueReplyType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -82231,85 +120599,45 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampRef // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemStampRefNm(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefNm{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefNm{} - var fernTestValueNm string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemStampRefNm(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefNm{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueUserID *string - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampRefNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) + // Act + obj.SetUserID(fernTestValueUserID) - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefNm{} - var expected string - obj.Nm = expected + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetNm_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampRefNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNm() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampRefNm(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefNm{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueGroupID *string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetGroupID(fernTestValueGroupID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -82333,14 +120661,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampRef // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefNm{} - var fernTestValueNm string + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueCreatedBy *string // Act - obj.SetNm(fernTestValueNm) + obj.SetCreatedBy(fernTestValueCreatedBy) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -82364,85 +120692,45 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampRef // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueUpdatedBy *string - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) + // Act + obj.SetUpdatedBy(fernTestValueUpdatedBy) - t.Run("GetAnnotObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAnnotObjectNumber() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetActions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueActions *PdfAnnotationActions // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetActions(fernTestValueActions) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -82466,14 +120754,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampRef // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampRefObjectNumber{} - var fernTestValueAnnotObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemWidgetColor // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + obj.SetColor(fernTestValueColor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -82497,147 +120785,76 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampRef // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect(t *testing.T) { - t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect{} - var fernTestValueLeft float64 - obj.SetLeft(fernTestValueLeft) - assert.Equal(t, fernTestValueLeft, obj.Left) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect{} - var fernTestValueBottom float64 - obj.SetBottom(fernTestValueBottom) - assert.Equal(t, fernTestValueBottom, obj.Bottom) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect{} - var fernTestValueRight float64 - obj.SetRight(fernTestValueRight) - assert.Equal(t, fernTestValueRight, obj.Right) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect{} - var fernTestValueTop float64 - obj.SetTop(fernTestValueTop) - assert.Equal(t, fernTestValueTop, obj.Top) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect(t *testing.T) { - t.Run("GetLeft", func(t *testing.T) { + t.Run("SetInteriorColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect{} - var expected float64 - obj.Left = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") - }) + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueInteriorColor *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor - t.Run("GetLeft_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetLeft() // Should return zero value - }) + // Act + obj.SetInteriorColor(fernTestValueInteriorColor) - t.Run("GetBottom", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect{} - var expected float64 - obj.Bottom = expected + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetBottom_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetBottom() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetRight", func(t *testing.T) { + t.Run("SetStrokeWidth_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect{} - var expected float64 - obj.Right = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") - }) + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueStrokeWidth float64 - t.Run("GetRight_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRight() // Should return zero value - }) + // Act + obj.SetStrokeWidth(fernTestValueStrokeWidth) - t.Run("GetTop", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect{} - var expected float64 - obj.Top = expected + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetTop_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetTop() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect(t *testing.T) { - t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Run("SetBorderStyle_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect{} - var fernTestValueLeft float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueBorderStyle DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle // Act - obj.SetLeft(fernTestValueLeft) + obj.SetBorderStyle(fernTestValueBorderStyle) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -82661,14 +120878,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampUnr // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Run("SetFontFamily_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect{} - var fernTestValueBottom float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueFontFamily *DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily // Act - obj.SetBottom(fernTestValueBottom) + obj.SetFontFamily(fernTestValueFontFamily) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -82692,14 +120909,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampUnr // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRight_MarksExplicit", func(t *testing.T) { + t.Run("SetFontSize_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect{} - var fernTestValueRight float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueFontSize *float64 // Act - obj.SetRight(fernTestValueRight) + obj.SetFontSize(fernTestValueFontSize) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -82723,14 +120940,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampUnr // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Run("SetFontColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStampUnrotatedRect{} - var fernTestValueTop float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueFontColor *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor // Act - obj.SetTop(fernTestValueTop) + obj.SetFontColor(fernTestValueFontColor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -82754,957 +120971,807 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStampUnr // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeout(t *testing.T) { - t.Run("SetRef", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef - obj.SetRef(fernTestValueRef) - assert.Equal(t, fernTestValueRef, obj.Ref) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIdentityQuality", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQuality - obj.SetIdentityQuality(fernTestValueIdentityQuality) - assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueNm *string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetFlags", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags - obj.SetFlags(fernTestValueFlags) - assert.Equal(t, fernTestValueFlags, obj.Flags) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("SetTextAlign_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueTextAlign DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign - t.Run("SetRect", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect - obj.SetRect(fernTestValueRect) - assert.Equal(t, fernTestValueRect, obj.Rect) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetTextAlign(fernTestValueTextAlign) - t.Run("SetContents", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueContents *string - obj.SetContents(fernTestValueContents) - assert.Equal(t, fernTestValueContents, obj.Contents) - assert.NotNil(t, obj.explicitFields) - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("SetSubject", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueSubject *string - obj.SetSubject(fernTestValueSubject) - assert.Equal(t, fernTestValueSubject, obj.Subject) - assert.NotNil(t, obj.explicitFields) - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("SetAuthor", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueAuthor *string - obj.SetAuthor(fernTestValueAuthor) - assert.Equal(t, fernTestValueAuthor, obj.Author) - assert.NotNil(t, obj.explicitFields) + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreated", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueCreated *time.Time - obj.SetCreated(fernTestValueCreated) - assert.Equal(t, fernTestValueCreated, obj.Created) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueFieldObjectNumber int - t.Run("SetModified", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueModified *time.Time - obj.SetModified(fernTestValueModified) - assert.Equal(t, fernTestValueModified, obj.Modified) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) - t.Run("SetBlendMode", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode - obj.SetBlendMode(fernTestValueBlendMode) - assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) - assert.NotNil(t, obj.explicitFields) - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("SetInReplyTo", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo - obj.SetInReplyTo(fernTestValueInReplyTo) - assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) - assert.NotNil(t, obj.explicitFields) - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("SetReplyType", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyType - obj.SetReplyType(fernTestValueReplyType) - assert.Equal(t, fernTestValueReplyType, obj.ReplyType) - assert.NotNil(t, obj.explicitFields) + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUserID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueUserID *string - obj.SetUserID(fernTestValueUserID) - assert.Equal(t, fernTestValueUserID, obj.UserID) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("SetFieldFamily_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + var fernTestValueFieldFamily DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily - t.Run("SetGroupID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueGroupID *string - obj.SetGroupID(fernTestValueGroupID) - assert.Equal(t, fernTestValueGroupID, obj.GroupID) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetFieldFamily(fernTestValueFieldFamily) - t.Run("SetCreatedBy", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueCreatedBy *string - obj.SetCreatedBy(fernTestValueCreatedBy) - assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) - assert.NotNil(t, obj.explicitFields) - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("SetUpdatedBy", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueUpdatedBy *string - obj.SetUpdatedBy(fernTestValueUpdatedBy) - assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) - assert.NotNil(t, obj.explicitFields) - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("SetActions", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueActions *PdfAnnotationActions - obj.SetActions(fernTestValueActions) - assert.Equal(t, fernTestValueActions, obj.Actions) - assert.NotNil(t, obj.explicitFields) + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetColor", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor - obj.SetColor(fernTestValueColor) - assert.Equal(t, fernTestValueColor, obj.Color) - assert.NotNil(t, obj.explicitFields) - }) +} - t.Run("SetOpacity", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueOpacity float64 - obj.SetOpacity(fernTestValueOpacity) - assert.Equal(t, fernTestValueOpacity, obj.Opacity) +func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetColor(t *testing.T) { + t.Run("SetR", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetColor{} + var fernTestValueR int + obj.SetR(fernTestValueR) + assert.Equal(t, fernTestValueR, obj.R) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetQuadPoints", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueQuadPoints []*DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem - obj.SetQuadPoints(fernTestValueQuadPoints) - assert.Equal(t, fernTestValueQuadPoints, obj.QuadPoints) + t.Run("SetG", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetColor{} + var fernTestValueG int + obj.SetG(fernTestValueG) + assert.Equal(t, fernTestValueG, obj.G) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetIntent", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueIntent *DocAnnotationsList200ResponseAnnotationsItemStrikeoutIntent - obj.SetIntent(fernTestValueIntent) - assert.Equal(t, fernTestValueIntent, obj.Intent) + t.Run("SetB", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeout(t *testing.T) { - t.Run("GetRef", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef - obj.Ref = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") - }) - - t.Run("GetRef_NilValue", func(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - obj.Ref = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetColor{} + var expected int + obj.R = expected // Act & Assert - assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") }) - t.Run("GetRef_NilReceiver", func(t *testing.T) { + t.Run("GetR_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRef() // Should return zero value + _ = obj.GetR() // Should return zero value }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetG", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetColor{} var expected int - obj.PageObjectNumber = expected + obj.G = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetG_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetG() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetB", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetColor{} var expected int - obj.Index = expected + obj.B = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetB_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetB() // Should return zero value }) - t.Run("GetIdentityQuality", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var expected DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQuality - obj.IdentityQuality = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetColor{} + var fernTestValueR int - // Act & Assert - assert.Equal(t, expected, obj.GetIdentityQuality(), "getter should return the property value") - }) + // Act + obj.SetR(fernTestValueR) - t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetIdentityQuality() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var expected *string - obj.Nm = expected + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetNm_NilValue", func(t *testing.T) { + t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - obj.Nm = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetColor{} + var fernTestValueG int - // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") - }) + // Act + obj.SetG(fernTestValueG) - t.Run("GetNm_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNm() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("GetFlags", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags - obj.Flags = expected + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - // Act & Assert - assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetFlags_NilValue", func(t *testing.T) { + t.Run("SetB_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - obj.Flags = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetColor{} + var fernTestValueB int - // Act & Assert - assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") - }) + // Act + obj.SetB(fernTestValueB) - t.Run("GetFlags_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetFlags() // Should return zero value + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetRect", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect - obj.Rect = expected +} - // Act & Assert - assert.Equal(t, expected, obj.GetRect(), "getter should return the property value") +func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testing.T) { + t.Run("SetInvisible", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + var fernTestValueInvisible bool + obj.SetInvisible(fernTestValueInvisible) + assert.Equal(t, fernTestValueInvisible, obj.Invisible) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetRect_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - obj.Rect = nil - - // Act & Assert - assert.Nil(t, obj.GetRect(), "getter should return nil when property is nil") + t.Run("SetHidden", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + var fernTestValueHidden bool + obj.SetHidden(fernTestValueHidden) + assert.Equal(t, fernTestValueHidden, obj.Hidden) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetRect_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRect() // Should return zero value + t.Run("SetPrint", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + var fernTestValuePrint bool + obj.SetPrint(fernTestValuePrint) + assert.Equal(t, fernTestValuePrint, obj.Print) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetContents", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var expected *string - obj.Contents = expected + t.Run("SetNoZoom", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + var fernTestValueNoZoom bool + obj.SetNoZoom(fernTestValueNoZoom) + assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Equal(t, expected, obj.GetContents(), "getter should return the property value") + t.Run("SetNoRotate", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + var fernTestValueNoRotate bool + obj.SetNoRotate(fernTestValueNoRotate) + assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetContents_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - obj.Contents = nil + t.Run("SetNoView", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + var fernTestValueNoView bool + obj.SetNoView(fernTestValueNoView) + assert.Equal(t, fernTestValueNoView, obj.NoView) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Nil(t, obj.GetContents(), "getter should return nil when property is nil") + t.Run("SetReadOnly", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + var fernTestValueReadOnly bool + obj.SetReadOnly(fernTestValueReadOnly) + assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetContents_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetContents() // Should return zero value + t.Run("SetLocked", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + var fernTestValueLocked bool + obj.SetLocked(fernTestValueLocked) + assert.Equal(t, fernTestValueLocked, obj.Locked) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetSubject", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var expected *string - obj.Subject = expected + t.Run("SetToggleNoView", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + var fernTestValueToggleNoView bool + obj.SetToggleNoView(fernTestValueToggleNoView) + assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Equal(t, expected, obj.GetSubject(), "getter should return the property value") + t.Run("SetLockedContents", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + var fernTestValueLockedContents bool + obj.SetLockedContents(fernTestValueLockedContents) + assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetSubject_NilValue", func(t *testing.T) { +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testing.T) { + t.Run("GetInvisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - obj.Subject = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + var expected bool + obj.Invisible = expected // Act & Assert - assert.Nil(t, obj.GetSubject(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetInvisible(), "getter should return the property value") }) - t.Run("GetSubject_NilReceiver", func(t *testing.T) { + t.Run("GetInvisible_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetSubject() // Should return zero value - }) - - t.Run("GetAuthor", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var expected *string - obj.Author = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAuthor(), "getter should return the property value") + _ = obj.GetInvisible() // Should return zero value }) - t.Run("GetAuthor_NilValue", func(t *testing.T) { + t.Run("GetHidden", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - obj.Author = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + var expected bool + obj.Hidden = expected // Act & Assert - assert.Nil(t, obj.GetAuthor(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") }) - t.Run("GetAuthor_NilReceiver", func(t *testing.T) { + t.Run("GetHidden_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAuthor() // Should return zero value - }) - - t.Run("GetCreated", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var expected *time.Time - obj.Created = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetCreated(), "getter should return the property value") + _ = obj.GetHidden() // Should return zero value }) - t.Run("GetCreated_NilValue", func(t *testing.T) { + t.Run("GetPrint", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - obj.Created = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + var expected bool + obj.Print = expected // Act & Assert - assert.Nil(t, obj.GetCreated(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") }) - t.Run("GetCreated_NilReceiver", func(t *testing.T) { + t.Run("GetPrint_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCreated() // Should return zero value - }) - - t.Run("GetModified", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var expected *time.Time - obj.Modified = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") + _ = obj.GetPrint() // Should return zero value }) - t.Run("GetModified_NilValue", func(t *testing.T) { + t.Run("GetNoZoom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - obj.Modified = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + var expected bool + obj.NoZoom = expected // Act & Assert - assert.Nil(t, obj.GetModified(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") }) - t.Run("GetModified_NilReceiver", func(t *testing.T) { + t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetModified() // Should return zero value + _ = obj.GetNoZoom() // Should return zero value }) - t.Run("GetBlendMode", func(t *testing.T) { + t.Run("GetNoRotate", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var expected DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode - obj.BlendMode = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + var expected bool + obj.NoRotate = expected // Act & Assert - assert.Equal(t, expected, obj.GetBlendMode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") }) - t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { + t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBlendMode() // Should return zero value - }) - - t.Run("GetInReplyTo", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo - obj.InReplyTo = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetInReplyTo(), "getter should return the property value") + _ = obj.GetNoRotate() // Should return zero value }) - t.Run("GetInReplyTo_NilValue", func(t *testing.T) { + t.Run("GetNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - obj.InReplyTo = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + var expected bool + obj.NoView = expected // Act & Assert - assert.Nil(t, obj.GetInReplyTo(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") }) - t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { + t.Run("GetNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInReplyTo() // Should return zero value - }) - - t.Run("GetReplyType", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyType - obj.ReplyType = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetReplyType(), "getter should return the property value") + _ = obj.GetNoView() // Should return zero value }) - t.Run("GetReplyType_NilValue", func(t *testing.T) { + t.Run("GetReadOnly", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - obj.ReplyType = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + var expected bool + obj.ReadOnly = expected // Act & Assert - assert.Nil(t, obj.GetReplyType(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") }) - t.Run("GetReplyType_NilReceiver", func(t *testing.T) { + t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReplyType() // Should return zero value - }) - - t.Run("GetUserID", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var expected *string - obj.UserID = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") + _ = obj.GetReadOnly() // Should return zero value }) - t.Run("GetUserID_NilValue", func(t *testing.T) { + t.Run("GetLocked", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - obj.UserID = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + var expected bool + obj.Locked = expected // Act & Assert - assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") }) - t.Run("GetUserID_NilReceiver", func(t *testing.T) { + t.Run("GetLocked_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUserID() // Should return zero value - }) - - t.Run("GetGroupID", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var expected *string - obj.GroupID = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetGroupID(), "getter should return the property value") + _ = obj.GetLocked() // Should return zero value }) - t.Run("GetGroupID_NilValue", func(t *testing.T) { + t.Run("GetToggleNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - obj.GroupID = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + var expected bool + obj.ToggleNoView = expected // Act & Assert - assert.Nil(t, obj.GetGroupID(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") }) - t.Run("GetGroupID_NilReceiver", func(t *testing.T) { + t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGroupID() // Should return zero value - }) - - t.Run("GetCreatedBy", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var expected *string - obj.CreatedBy = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") + _ = obj.GetToggleNoView() // Should return zero value }) - t.Run("GetCreatedBy_NilValue", func(t *testing.T) { + t.Run("GetLockedContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - obj.CreatedBy = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + var expected bool + obj.LockedContents = expected // Act & Assert - assert.Nil(t, obj.GetCreatedBy(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") }) - t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { + t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCreatedBy() // Should return zero value + _ = obj.GetLockedContents() // Should return zero value }) - t.Run("GetUpdatedBy", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testing.T) { + t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var expected *string - obj.UpdatedBy = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + var fernTestValueInvisible bool - // Act & Assert - assert.Equal(t, expected, obj.GetUpdatedBy(), "getter should return the property value") - }) + // Act + obj.SetInvisible(fernTestValueInvisible) - t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - obj.UpdatedBy = nil + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Nil(t, obj.GetUpdatedBy(), "getter should return nil when property is nil") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetUpdatedBy() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetActions", func(t *testing.T) { + t.Run("SetHidden_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var expected *PdfAnnotationActions - obj.Actions = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + var fernTestValueHidden bool - // Act & Assert - assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") - }) + // Act + obj.SetHidden(fernTestValueHidden) - t.Run("GetActions_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - obj.Actions = nil + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetActions_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetActions() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetColor", func(t *testing.T) { + t.Run("SetPrint_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor - obj.Color = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + var fernTestValuePrint bool - // Act & Assert - assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") - }) + // Act + obj.SetPrint(fernTestValuePrint) - t.Run("GetColor_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - obj.Color = nil + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetColor_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetColor() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetOpacity", func(t *testing.T) { + t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var expected float64 - obj.Opacity = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + var fernTestValueNoZoom bool - // Act & Assert - assert.Equal(t, expected, obj.GetOpacity(), "getter should return the property value") - }) + // Act + obj.SetNoZoom(fernTestValueNoZoom) - t.Run("GetOpacity_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetOpacity() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("GetQuadPoints", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var expected []*DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem - obj.QuadPoints = expected + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - // Act & Assert - assert.Equal(t, expected, obj.GetQuadPoints(), "getter should return the property value") + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetQuadPoints_NilValue", func(t *testing.T) { + t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - obj.QuadPoints = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + var fernTestValueNoRotate bool - // Act & Assert - assert.Nil(t, obj.GetQuadPoints(), "getter should return nil when property is nil") - }) + // Act + obj.SetNoRotate(fernTestValueNoRotate) - t.Run("GetQuadPoints_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetQuadPoints() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("GetIntent", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutIntent - obj.Intent = expected + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - // Act & Assert - assert.Equal(t, expected, obj.GetIntent(), "getter should return the property value") + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetIntent_NilValue", func(t *testing.T) { + t.Run("SetNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - obj.Intent = nil + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + var fernTestValueNoView bool - // Act & Assert - assert.Nil(t, obj.GetIntent(), "getter should return nil when property is nil") - }) + // Act + obj.SetNoView(fernTestValueNoView) - t.Run("GetIntent_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeout - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetIntent() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") -} + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeout(t *testing.T) { - t.Run("SetRef_MarksExplicit", func(t *testing.T) { + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + var fernTestValueReadOnly bool // Act - obj.SetRef(fernTestValueRef) + obj.SetReadOnly(fernTestValueReadOnly) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -83728,14 +121795,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetLocked_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + var fernTestValueLocked bool // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetLocked(fernTestValueLocked) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -83759,14 +121826,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueIndex int + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + var fernTestValueToggleNoView bool // Act - obj.SetIndex(fernTestValueIndex) + obj.SetToggleNoView(fernTestValueToggleNoView) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -83790,14 +121857,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { + t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemStrikeoutIdentityQuality + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + var fernTestValueLockedContents bool // Act - obj.SetIdentityQuality(fernTestValueIdentityQuality) + obj.SetLockedContents(fernTestValueLockedContents) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -83821,14 +121888,116 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetFontColor(t *testing.T) { + t.Run("SetR", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor{} + var fernTestValueR int + obj.SetR(fernTestValueR) + assert.Equal(t, fernTestValueR, obj.R) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetG", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor{} + var fernTestValueG int + obj.SetG(fernTestValueG) + assert.Equal(t, fernTestValueG, obj.G) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetB", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetFontColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueNm *string + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor{} + var expected int + obj.R = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") + }) + + t.Run("GetR_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetR() // Should return zero value + }) + + t.Run("GetG", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor{} + var expected int + obj.G = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") + }) + + t.Run("GetG_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetG() // Should return zero value + }) + + t.Run("GetB", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor{} + var expected int + obj.B = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + }) + + t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetB() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetFontColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor{} + var fernTestValueR int // Act - obj.SetNm(fernTestValueNm) + obj.SetR(fernTestValueR) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -83852,14 +122021,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFlags_MarksExplicit", func(t *testing.T) { + t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor{} + var fernTestValueG int // Act - obj.SetFlags(fernTestValueFlags) + obj.SetG(fernTestValueG) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -83883,14 +122052,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRect_MarksExplicit", func(t *testing.T) { + t.Run("SetB_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor{} + var fernTestValueB int // Act - obj.SetRect(fernTestValueRect) + obj.SetB(fernTestValueB) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -83910,49 +122079,255 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou require.NoError(t, err, "unmarshaling should succeed for test verification") } - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo{} + var expected string + obj.Kind = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + }) + + t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKind() // Should return zero value + }) + + t.Run("GetObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber + obj.ObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + }) + + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo{} + obj.ObjectNumber = nil + + // Act & Assert + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + }) + + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo{} + obj.Nm = nil + + // Act & Assert + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo{} + var expected *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo{} + obj.Index = nil + + // Act & Assert + assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex{} + var expected int + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + + t.Run("GetRevision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex{} + var expected *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision + obj.Revision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") }) - t.Run("SetContents_MarksExplicit", func(t *testing.T) { + t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueContents *string - - // Act - obj.SetContents(fernTestValueContents) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex{} + obj.Revision = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRevision() // Should return zero value }) - t.Run("SetSubject_MarksExplicit", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueSubject *string + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex{} + var fernTestValuePageObjectNumber int // Act - obj.SetSubject(fernTestValueSubject) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -83976,14 +122351,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueAuthor *string + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex{} + var fernTestValueIndex int // Act - obj.SetAuthor(fernTestValueAuthor) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -84007,14 +122382,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreated_MarksExplicit", func(t *testing.T) { + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueCreated *time.Time + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision // Act - obj.SetCreated(fernTestValueCreated) + obj.SetRevision(fernTestValueRevision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -84038,138 +122413,116 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetModified_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueModified *time.Time - - // Act - obj.SetModified(fernTestValueModified) +} - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") +func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision{} + var fernTestValueDocSessionID string + obj.SetDocSessionID(fernTestValueDocSessionID) + assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) + assert.NotNil(t, obj.explicitFields) + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("SetGeneration", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) }) - t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemStrikeoutBlendMode - - // Act - obj.SetBlendMode(fernTestValueBlendMode) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision{} + var expected string + obj.DocSessionID = expected - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDocSessionID() // Should return zero value }) - t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo - - // Act - obj.SetInReplyTo(fernTestValueInReplyTo) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision{} + var expected int + obj.PageObjectNumber = expected - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { + t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemStrikeoutReplyType - - // Act - obj.SetReplyType(fernTestValueReplyType) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision{} + var expected int + obj.Generation = expected - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGeneration() // Should return zero value }) - t.Run("SetUserID_MarksExplicit", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueUserID *string + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision{} + var fernTestValueDocSessionID string // Act - obj.SetUserID(fernTestValueUserID) + obj.SetDocSessionID(fernTestValueDocSessionID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -84193,14 +122546,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueGroupID *string + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int // Act - obj.SetGroupID(fernTestValueGroupID) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -84224,14 +122577,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueCreatedBy *string + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision{} + var fernTestValueGeneration int // Act - obj.SetCreatedBy(fernTestValueCreatedBy) + obj.SetGeneration(fernTestValueGeneration) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -84255,45 +122608,85 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueUpdatedBy *string + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm{} + var expected int + obj.PageObjectNumber = expected - // Act - obj.SetUpdatedBy(fernTestValueUpdatedBy) + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm{} + var expected string + obj.Nm = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueActions *PdfAnnotationActions + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm{} + var fernTestValuePageObjectNumber int // Act - obj.SetActions(fernTestValueActions) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -84317,14 +122710,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetColor_MarksExplicit", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm{} + var fernTestValueNm string // Act - obj.SetColor(fernTestValueColor) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -84348,45 +122741,85 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueOpacity float64 + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber{} + var expected int + obj.PageObjectNumber = expected - // Act - obj.SetOpacity(fernTestValueOpacity) + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") }) - t.Run("SetQuadPoints_MarksExplicit", func(t *testing.T) { + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAnnotObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueQuadPoints []*DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int // Act - obj.SetQuadPoints(fernTestValueQuadPoints) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -84410,14 +122843,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIntent_MarksExplicit", func(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeout{} - var fernTestValueIntent *DocAnnotationsList200ResponseAnnotationsItemStrikeoutIntent + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int // Act - obj.SetIntent(fernTestValueIntent) + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -84443,9 +122876,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutColor(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor(t *testing.T) { t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor{} var fernTestValueR int obj.SetR(fernTestValueR) assert.Equal(t, fernTestValueR, obj.R) @@ -84453,7 +122886,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutColor(t *te }) t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor{} var fernTestValueG int obj.SetG(fernTestValueG) assert.Equal(t, fernTestValueG, obj.G) @@ -84461,7 +122894,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutColor(t *te }) t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor{} var fernTestValueB int obj.SetB(fernTestValueB) assert.Equal(t, fernTestValueB, obj.B) @@ -84470,11 +122903,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutColor(t *te } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutColor(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor(t *testing.T) { t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor{} var expected int obj.R = expected @@ -84484,7 +122917,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutColor(t *te t.Run("GetR_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -84497,7 +122930,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutColor(t *te t.Run("GetG", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor{} var expected int obj.G = expected @@ -84507,7 +122940,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutColor(t *te t.Run("GetG_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -84520,7 +122953,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutColor(t *te t.Run("GetB", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor{} var expected int obj.B = expected @@ -84530,7 +122963,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutColor(t *te t.Run("GetB_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -84542,11 +122975,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutColor(t *te } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeoutColor(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor(t *testing.T) { t.Run("SetR_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor{} var fernTestValueR int // Act @@ -84577,7 +123010,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor{} var fernTestValueG int // Act @@ -84608,7 +123041,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou t.Run("SetB_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutColor{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor{} var fernTestValueB int // Act @@ -84638,517 +123071,145 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags(t *testing.T) { - t.Run("SetInvisible", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} - var fernTestValueInvisible bool - obj.SetInvisible(fernTestValueInvisible) - assert.Equal(t, fernTestValueInvisible, obj.Invisible) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetHidden", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} - var fernTestValueHidden bool - obj.SetHidden(fernTestValueHidden) - assert.Equal(t, fernTestValueHidden, obj.Hidden) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetPrint", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} - var fernTestValuePrint bool - obj.SetPrint(fernTestValuePrint) - assert.Equal(t, fernTestValuePrint, obj.Print) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNoZoom", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} - var fernTestValueNoZoom bool - obj.SetNoZoom(fernTestValueNoZoom) - assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNoRotate", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} - var fernTestValueNoRotate bool - obj.SetNoRotate(fernTestValueNoRotate) - assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNoView", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} - var fernTestValueNoView bool - obj.SetNoView(fernTestValueNoView) - assert.Equal(t, fernTestValueNoView, obj.NoView) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} - var fernTestValueReadOnly bool - obj.SetReadOnly(fernTestValueReadOnly) - assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) +func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetRect(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRect{} + var fernTestValueLeft float64 + obj.SetLeft(fernTestValueLeft) + assert.Equal(t, fernTestValueLeft, obj.Left) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetLocked", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} - var fernTestValueLocked bool - obj.SetLocked(fernTestValueLocked) - assert.Equal(t, fernTestValueLocked, obj.Locked) + t.Run("SetBottom", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRect{} + var fernTestValueBottom float64 + obj.SetBottom(fernTestValueBottom) + assert.Equal(t, fernTestValueBottom, obj.Bottom) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetToggleNoView", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} - var fernTestValueToggleNoView bool - obj.SetToggleNoView(fernTestValueToggleNoView) - assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) + t.Run("SetRight", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRect{} + var fernTestValueRight float64 + obj.SetRight(fernTestValueRight) + assert.Equal(t, fernTestValueRight, obj.Right) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetLockedContents", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} - var fernTestValueLockedContents bool - obj.SetLockedContents(fernTestValueLockedContents) - assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) + t.Run("SetTop", func(t *testing.T) { + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRect{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags(t *testing.T) { - t.Run("GetInvisible", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} - var expected bool - obj.Invisible = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetInvisible(), "getter should return the property value") - }) - - t.Run("GetInvisible_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetInvisible() // Should return zero value - }) - - t.Run("GetHidden", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} - var expected bool - obj.Hidden = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") - }) - - t.Run("GetHidden_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetHidden() // Should return zero value - }) - - t.Run("GetPrint", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} - var expected bool - obj.Print = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") - }) - - t.Run("GetPrint_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPrint() // Should return zero value - }) - - t.Run("GetNoZoom", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} - var expected bool - obj.NoZoom = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") - }) - - t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNoZoom() // Should return zero value - }) - - t.Run("GetNoRotate", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} - var expected bool - obj.NoRotate = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") - }) - - t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNoRotate() // Should return zero value - }) - - t.Run("GetNoView", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} - var expected bool - obj.NoView = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") - }) - - t.Run("GetNoView_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNoView() // Should return zero value - }) - - t.Run("GetReadOnly", func(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} - var expected bool - obj.ReadOnly = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRect{} + var expected float64 + obj.Left = expected // Act & Assert - assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") }) - t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { + t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReadOnly() // Should return zero value + _ = obj.GetLeft() // Should return zero value }) - t.Run("GetLocked", func(t *testing.T) { + t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} - var expected bool - obj.Locked = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRect{} + var expected float64 + obj.Bottom = expected // Act & Assert - assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") }) - t.Run("GetLocked_NilReceiver", func(t *testing.T) { + t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLocked() // Should return zero value + _ = obj.GetBottom() // Should return zero value }) - t.Run("GetToggleNoView", func(t *testing.T) { + t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} - var expected bool - obj.ToggleNoView = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRect{} + var expected float64 + obj.Right = expected // Act & Assert - assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") }) - t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { + t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetToggleNoView() // Should return zero value + _ = obj.GetRight() // Should return zero value }) - t.Run("GetLockedContents", func(t *testing.T) { + t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} - var expected bool - obj.LockedContents = expected + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRect{} + var expected float64 + obj.Top = expected // Act & Assert - assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") }) - t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { + t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLockedContents() // Should return zero value + _ = obj.GetTop() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags(t *testing.T) { - t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} - var fernTestValueInvisible bool - - // Act - obj.SetInvisible(fernTestValueInvisible) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetHidden_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} - var fernTestValueHidden bool - - // Act - obj.SetHidden(fernTestValueHidden) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetPrint_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} - var fernTestValuePrint bool - - // Act - obj.SetPrint(fernTestValuePrint) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} - var fernTestValueNoZoom bool - - // Act - obj.SetNoZoom(fernTestValueNoZoom) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} - var fernTestValueNoRotate bool - - // Act - obj.SetNoRotate(fernTestValueNoRotate) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetNoView_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} - var fernTestValueNoView bool - - // Act - obj.SetNoView(fernTestValueNoView) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} - var fernTestValueReadOnly bool + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRect{} + var fernTestValueLeft float64 // Act - obj.SetReadOnly(fernTestValueReadOnly) + obj.SetLeft(fernTestValueLeft) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -85172,14 +123233,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLocked_MarksExplicit", func(t *testing.T) { + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} - var fernTestValueLocked bool + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRect{} + var fernTestValueBottom float64 // Act - obj.SetLocked(fernTestValueLocked) + obj.SetBottom(fernTestValueBottom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -85203,14 +123264,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { + t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} - var fernTestValueToggleNoView bool + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRect{} + var fernTestValueRight float64 // Act - obj.SetToggleNoView(fernTestValueToggleNoView) + obj.SetRight(fernTestValueRight) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -85234,14 +123295,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { + t.Run("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutFlags{} - var fernTestValueLockedContents bool + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRect{} + var fernTestValueTop float64 // Act - obj.SetLockedContents(fernTestValueLockedContents) + obj.SetTop(fernTestValueTop) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -85267,11 +123328,11 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetRef(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRef{} var expected string obj.Kind = expected @@ -85281,7 +123342,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo(t t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -85294,8 +123355,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo(t t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -85305,7 +123366,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo(t t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRef{} obj.ObjectNumber = nil // Act & Assert @@ -85314,7 +123375,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo(t t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -85327,8 +123388,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo(t t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm obj.Nm = expected // Act & Assert @@ -85338,7 +123399,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo(t t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRef{} obj.Nm = nil // Act & Assert @@ -85347,7 +123408,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo(t t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -85360,8 +123421,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo(t t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRef{} + var expected *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex obj.Index = expected // Act & Assert @@ -85371,7 +123432,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo(t t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRef{} obj.Index = nil // Act & Assert @@ -85380,7 +123441,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo(t t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -85392,9 +123453,9 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyTo(t } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -85402,7 +123463,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIn }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -85410,8 +123471,8 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIn }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -85419,11 +123480,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIn } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex{} var expected int obj.PageObjectNumber = expected @@ -85433,7 +123494,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIn t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -85446,7 +123507,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIn t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex{} var expected int obj.Index = expected @@ -85456,7 +123517,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIn t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -85469,8 +123530,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIn t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex{} - var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex{} + var expected *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision obj.Revision = expected // Act & Assert @@ -85480,7 +123541,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIn t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex{} obj.Revision = nil // Act & Assert @@ -85489,7 +123550,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIn t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -85501,11 +123562,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIn } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex{} var fernTestValuePageObjectNumber int // Act @@ -85536,7 +123597,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex{} var fernTestValueIndex int // Act @@ -85567,8 +123628,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex{} + var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -85597,9 +123658,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -85607,7 +123668,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIn }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -85615,7 +123676,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIn }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -85624,11 +123685,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIn } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision{} var expected string obj.DocSessionID = expected @@ -85638,7 +123699,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIn t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -85651,7 +123712,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIn t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -85661,7 +123722,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIn t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -85674,7 +123735,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIn t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision{} var expected int obj.Generation = expected @@ -85684,7 +123745,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIn t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -85696,11 +123757,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIn } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision{} var fernTestValueDocSessionID string // Act @@ -85731,7 +123792,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -85762,7 +123823,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToIndexRevision{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision{} var fernTestValueGeneration int // Act @@ -85792,9 +123853,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetRefNm(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -85802,7 +123863,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm{} var fernTestValueNm string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -85811,11 +123872,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetRefNm(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm{} var expected int obj.PageObjectNumber = expected @@ -85825,7 +123886,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -85838,7 +123899,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm{} var expected string obj.Nm = expected @@ -85848,7 +123909,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -85860,11 +123921,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetRefNm(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm{} var fernTestValuePageObjectNumber int // Act @@ -85895,7 +123956,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToNm{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm{} var fernTestValueNm string // Act @@ -85925,9 +123986,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber(t *testing.T) { +func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -85935,7 +123996,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToOb }) t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber{} var fernTestValueAnnotObjectNumber int obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) @@ -85944,11 +124005,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToOb } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber(t *testing.T) { +func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber{} var expected int obj.PageObjectNumber = expected @@ -85958,7 +124019,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToOb t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -85971,7 +124032,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToOb t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber{} var expected int obj.AnnotObjectNumber = expected @@ -85981,7 +124042,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToOb t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber + var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -85993,11 +124054,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToOb } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber{} var fernTestValuePageObjectNumber int // Act @@ -86028,7 +124089,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutInReplyToObjectNumber{} + obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber{} var fernTestValueAnnotObjectNumber int // Act @@ -86058,185 +124119,134 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem(t *testing.T) { - t.Run("SetP1", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} - var fernTestValueP1 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1 - obj.SetP1(fernTestValueP1) - assert.Equal(t, fernTestValueP1, obj.P1) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetP2", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} - var fernTestValueP2 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2 - obj.SetP2(fernTestValueP2) - assert.Equal(t, fernTestValueP2, obj.P2) +func TestSettersDocAnnotationsList200ResponsePageState(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponsePageState{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetP3", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} - var fernTestValueP3 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3 - obj.SetP3(fernTestValueP3) - assert.Equal(t, fernTestValueP3, obj.P3) + t.Run("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsList200ResponsePageState{} + var fernTestValueRevision *DocAnnotationsList200ResponsePageStateRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetP4", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} - var fernTestValueP4 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4 - obj.SetP4(fernTestValueP4) - assert.Equal(t, fernTestValueP4, obj.P4) + t.Run("SetWeakAnnotationState", func(t *testing.T) { + obj := &DocAnnotationsList200ResponsePageState{} + var fernTestValueWeakAnnotationState *DocAnnotationsList200ResponsePageStateWeakAnnotationState + obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) + assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem(t *testing.T) { - t.Run("GetP1", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} - var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1 - obj.P1 = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetP1(), "getter should return the property value") - }) - - t.Run("GetP1_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} - obj.P1 = nil - - // Act & Assert - assert.Nil(t, obj.GetP1(), "getter should return nil when property is nil") - }) - - t.Run("GetP1_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetP1() // Should return zero value - }) - - t.Run("GetP2", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} - var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2 - obj.P2 = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetP2(), "getter should return the property value") - }) - - t.Run("GetP2_NilValue", func(t *testing.T) { +func TestGettersDocAnnotationsList200ResponsePageState(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} - obj.P2 = nil + obj := &DocAnnotationsList200ResponsePageState{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Nil(t, obj.GetP2(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetP2_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem + var obj *DocAnnotationsList200ResponsePageState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetP2() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetP3", func(t *testing.T) { + t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} - var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3 - obj.P3 = expected + obj := &DocAnnotationsList200ResponsePageState{} + var expected *DocAnnotationsList200ResponsePageStateRevision + obj.Revision = expected // Act & Assert - assert.Equal(t, expected, obj.GetP3(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") }) - t.Run("GetP3_NilValue", func(t *testing.T) { + t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} - obj.P3 = nil + obj := &DocAnnotationsList200ResponsePageState{} + obj.Revision = nil // Act & Assert - assert.Nil(t, obj.GetP3(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") }) - t.Run("GetP3_NilReceiver", func(t *testing.T) { + t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem + var obj *DocAnnotationsList200ResponsePageState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetP3() // Should return zero value + _ = obj.GetRevision() // Should return zero value }) - t.Run("GetP4", func(t *testing.T) { + t.Run("GetWeakAnnotationState", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} - var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4 - obj.P4 = expected + obj := &DocAnnotationsList200ResponsePageState{} + var expected *DocAnnotationsList200ResponsePageStateWeakAnnotationState + obj.WeakAnnotationState = expected // Act & Assert - assert.Equal(t, expected, obj.GetP4(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWeakAnnotationState(), "getter should return the property value") }) - t.Run("GetP4_NilValue", func(t *testing.T) { + t.Run("GetWeakAnnotationState_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} - obj.P4 = nil + obj := &DocAnnotationsList200ResponsePageState{} + obj.WeakAnnotationState = nil // Act & Assert - assert.Nil(t, obj.GetP4(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetWeakAnnotationState(), "getter should return nil when property is nil") }) - t.Run("GetP4_NilReceiver", func(t *testing.T) { + t.Run("GetWeakAnnotationState_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem + var obj *DocAnnotationsList200ResponsePageState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetP4() // Should return zero value + _ = obj.GetWeakAnnotationState() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem(t *testing.T) { - t.Run("SetP1_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponsePageState(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} - var fernTestValueP1 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1 + obj := &DocAnnotationsList200ResponsePageState{} + var fernTestValuePageObjectNumber int // Act - obj.SetP1(fernTestValueP1) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -86260,14 +124270,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetP2_MarksExplicit", func(t *testing.T) { + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} - var fernTestValueP2 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2 + obj := &DocAnnotationsList200ResponsePageState{} + var fernTestValueRevision *DocAnnotationsList200ResponsePageStateRevision // Act - obj.SetP2(fernTestValueP2) + obj.SetRevision(fernTestValueRevision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -86291,14 +124301,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetP3_MarksExplicit", func(t *testing.T) { + t.Run("SetWeakAnnotationState_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} - var fernTestValueP3 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3 + obj := &DocAnnotationsList200ResponsePageState{} + var fernTestValueWeakAnnotationState *DocAnnotationsList200ResponsePageStateWeakAnnotationState // Act - obj.SetP3(fernTestValueP3) + obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -86322,116 +124332,116 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetP4_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItem{} - var fernTestValueP4 *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4 - - // Act - obj.SetP4(fernTestValueP4) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } +} - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip +func TestSettersDocAnnotationsList200ResponsePageStateRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsList200ResponsePageStateRevision{} + var fernTestValueDocSessionID string + obj.SetDocSessionID(fernTestValueDocSessionID) + assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) + assert.NotNil(t, obj.explicitFields) }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsList200ResponsePageStateRevision{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) + t.Run("SetGeneration", func(t *testing.T) { + obj := &DocAnnotationsList200ResponsePageStateRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1(t *testing.T) { - t.Run("GetX", func(t *testing.T) { +func TestGettersDocAnnotationsList200ResponsePageStateRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1{} - var expected float64 - obj.X = expected + obj := &DocAnnotationsList200ResponsePageStateRevision{} + var expected string + obj.DocSessionID = expected // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") }) - t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1 + var obj *DocAnnotationsList200ResponsePageStateRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetX() // Should return zero value + _ = obj.GetDocSessionID() // Should return zero value }) - t.Run("GetY", func(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1{} - var expected float64 - obj.Y = expected + obj := &DocAnnotationsList200ResponsePageStateRevision{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1 + var obj *DocAnnotationsList200ResponsePageStateRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetY() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetGeneration", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponsePageStateRevision{} + var expected int + obj.Generation = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + }) + + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponsePageStateRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGeneration() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList200ResponsePageStateRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1{} - var fernTestValueX float64 + obj := &DocAnnotationsList200ResponsePageStateRevision{} + var fernTestValueDocSessionID string // Act - obj.SetX(fernTestValueX) + obj.SetDocSessionID(fernTestValueDocSessionID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -86455,14 +124465,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP1{} - var fernTestValueY float64 + obj := &DocAnnotationsList200ResponsePageStateRevision{} + var fernTestValuePageObjectNumber int // Act - obj.SetY(fernTestValueY) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -86486,116 +124496,177 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou // It verifies that setting a field via setter allows successful JSON round-trip }) -} + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponsePageStateRevision{} + var fernTestValueGeneration int -func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetGeneration(fernTestValueGeneration) - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) - assert.NotNil(t, obj.explicitFields) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2(t *testing.T) { - t.Run("GetX", func(t *testing.T) { +func TestGettersDocAnnotationsList200ResponsePageStateWeakAnnotationState(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2{} - var expected float64 - obj.X = expected + obj := &DocAnnotationsList200ResponsePageStateWeakAnnotationState{} + var expected string + obj.Kind = expected // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") }) - t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2 + var obj *DocAnnotationsList200ResponsePageStateWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetX() // Should return zero value + _ = obj.GetKind() // Should return zero value }) - t.Run("GetY", func(t *testing.T) { + t.Run("GetUnknown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2{} - var expected float64 - obj.Y = expected + obj := &DocAnnotationsList200ResponsePageStateWeakAnnotationState{} + var expected *DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown + obj.Unknown = expected // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") }) - t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Run("GetUnknown_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2 + // Arrange + obj := &DocAnnotationsList200ResponsePageStateWeakAnnotationState{} + obj.Unknown = nil + + // Act & Assert + assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") + }) + + t.Run("GetUnknown_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponsePageStateWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetY() // Should return zero value + _ = obj.GetUnknown() // Should return zero value }) -} + t.Run("GetKnown", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponsePageStateWeakAnnotationState{} + var expected *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown + obj.Known = expected -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { + // Act & Assert + assert.Equal(t, expected, obj.GetKnown(), "getter should return the property value") + }) + + t.Run("GetKnown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2{} - var fernTestValueX float64 + obj := &DocAnnotationsList200ResponsePageStateWeakAnnotationState{} + obj.Known = nil - // Act - obj.SetX(fernTestValueX) + // Act & Assert + assert.Nil(t, obj.GetKnown(), "getter should return nil when property is nil") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetKnown_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponsePageStateWeakAnnotationState + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKnown() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } +} - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip +func TestSettersDocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown(t *testing.T) { + t.Run("SetHasAnyWeakAnnotations", func(t *testing.T) { + obj := &DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown{} + var fernTestValueHasAnyWeakAnnotations bool + obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) + assert.Equal(t, fernTestValueHasAnyWeakAnnotations, obj.HasAnyWeakAnnotations) + assert.NotNil(t, obj.explicitFields) }) - t.Run("SetY_MarksExplicit", func(t *testing.T) { +} + +func TestGettersDocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown(t *testing.T) { + t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP2{} - var fernTestValueY float64 + obj := &DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown{} + var expected bool + obj.HasAnyWeakAnnotations = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetHasAnyWeakAnnotations(), "getter should return the property value") + }) + + t.Run("GetHasAnyWeakAnnotations_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetHasAnyWeakAnnotations() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown(t *testing.T) { + t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown{} + var fernTestValueHasAnyWeakAnnotations bool // Act - obj.SetY(fernTestValueY) + obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -86621,83 +124692,155 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) +func TestSettersDocAnnotationsList404Response(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + obj := &DocAnnotationsList404Response{} + var fernTestValueName DocAnnotationsList404ResponseName + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) + t.Run("SetCode", func(t *testing.T) { + obj := &DocAnnotationsList404Response{} + var fernTestValueCode DocAnnotationsList404ResponseCode + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &DocAnnotationsList404Response{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDetails", func(t *testing.T) { + obj := &DocAnnotationsList404Response{} + var fernTestValueDetails map[string]any + obj.SetDetails(fernTestValueDetails) + assert.Equal(t, fernTestValueDetails, obj.Details) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3(t *testing.T) { - t.Run("GetX", func(t *testing.T) { +func TestGettersDocAnnotationsList404Response(t *testing.T) { + t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3{} - var expected float64 - obj.X = expected + obj := &DocAnnotationsList404Response{} + var expected DocAnnotationsList404ResponseName + obj.Name = expected // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") }) - t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3 + var obj *DocAnnotationsList404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetX() // Should return zero value + _ = obj.GetName() // Should return zero value }) - t.Run("GetY", func(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3{} - var expected float64 - obj.Y = expected + obj := &DocAnnotationsList404Response{} + var expected DocAnnotationsList404ResponseCode + obj.Code = expected // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") }) - t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Run("GetCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3 + var obj *DocAnnotationsList404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetY() // Should return zero value + _ = obj.GetCode() // Should return zero value + }) + + t.Run("GetMessage", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList404Response{} + var expected string + obj.Message = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + }) + + t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList404Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMessage() // Should return zero value + }) + + t.Run("GetDetails", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList404Response{} + var expected map[string]any + obj.Details = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + }) + + t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList404Response{} + obj.Details = nil + + // Act & Assert + assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + }) + + t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList404Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDetails() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsList404Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3{} - var fernTestValueX float64 + obj := &DocAnnotationsList404Response{} + var fernTestValueName DocAnnotationsList404ResponseName // Act - obj.SetX(fernTestValueX) + obj.SetName(fernTestValueName) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -86721,14 +124864,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP3{} - var fernTestValueY float64 + obj := &DocAnnotationsList404Response{} + var fernTestValueCode DocAnnotationsList404ResponseCode // Act - obj.SetY(fernTestValueY) + obj.SetCode(fernTestValueCode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -86752,85 +124895,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4(t *testing.T) { - t.Run("GetX", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4{} - var expected float64 - obj.X = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") - }) - - t.Run("GetX_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4 - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetX() // Should return zero value - }) - - t.Run("GetY", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4{} - var expected float64 - obj.Y = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") - }) - - t.Run("GetY_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4 - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetY() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Run("SetMessage_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4{} - var fernTestValueX float64 + obj := &DocAnnotationsList404Response{} + var fernTestValueMessage string // Act - obj.SetX(fernTestValueX) + obj.SetMessage(fernTestValueMessage) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -86854,14 +124926,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Run("SetDetails_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutQuadPointsItemP4{} - var fernTestValueY float64 + obj := &DocAnnotationsList404Response{} + var fernTestValueDetails map[string]any // Act - obj.SetY(fernTestValueY) + obj.SetDetails(fernTestValueDetails) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -86887,145 +124959,103 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutRect(t *testing.T) { - t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect{} - var fernTestValueLeft float64 - obj.SetLeft(fernTestValueLeft) - assert.Equal(t, fernTestValueLeft, obj.Left) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect{} - var fernTestValueBottom float64 - obj.SetBottom(fernTestValueBottom) - assert.Equal(t, fernTestValueBottom, obj.Bottom) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect{} - var fernTestValueRight float64 - obj.SetRight(fernTestValueRight) - assert.Equal(t, fernTestValueRight, obj.Right) +func TestSettersDocAnnotationsListAll200Response(t *testing.T) { + t.Run("SetPages", func(t *testing.T) { + obj := &DocAnnotationsListAll200Response{} + var fernTestValuePages []*DocAnnotationsListAll200ResponsePagesItem + obj.SetPages(fernTestValuePages) + assert.Equal(t, fernTestValuePages, obj.Pages) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect{} - var fernTestValueTop float64 - obj.SetTop(fernTestValueTop) - assert.Equal(t, fernTestValueTop, obj.Top) + t.Run("SetAuditHead", func(t *testing.T) { + obj := &DocAnnotationsListAll200Response{} + var fernTestValueAuditHead *int + obj.SetAuditHead(fernTestValueAuditHead) + assert.Equal(t, fernTestValueAuditHead, obj.AuditHead) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutRect(t *testing.T) { - t.Run("GetLeft", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200Response(t *testing.T) { + t.Run("GetPages", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect{} - var expected float64 - obj.Left = expected + obj := &DocAnnotationsListAll200Response{} + var expected []*DocAnnotationsListAll200ResponsePagesItem + obj.Pages = expected // Act & Assert - assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") - }) - - t.Run("GetLeft_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetLeft() // Should return zero value + assert.Equal(t, expected, obj.GetPages(), "getter should return the property value") }) - t.Run("GetBottom", func(t *testing.T) { + t.Run("GetPages_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect{} - var expected float64 - obj.Bottom = expected + obj := &DocAnnotationsListAll200Response{} + obj.Pages = nil // Act & Assert - assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") + assert.Nil(t, obj.GetPages(), "getter should return nil when property is nil") }) - t.Run("GetBottom_NilReceiver", func(t *testing.T) { + t.Run("GetPages_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect + var obj *DocAnnotationsListAll200Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBottom() // Should return zero value + _ = obj.GetPages() // Should return zero value }) - t.Run("GetRight", func(t *testing.T) { + t.Run("GetAuditHead", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect{} - var expected float64 - obj.Right = expected + obj := &DocAnnotationsListAll200Response{} + var expected *int + obj.AuditHead = expected // Act & Assert - assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") - }) - - t.Run("GetRight_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRight() // Should return zero value + assert.Equal(t, expected, obj.GetAuditHead(), "getter should return the property value") }) - t.Run("GetTop", func(t *testing.T) { + t.Run("GetAuditHead_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect{} - var expected float64 - obj.Top = expected + obj := &DocAnnotationsListAll200Response{} + obj.AuditHead = nil // Act & Assert - assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + assert.Nil(t, obj.GetAuditHead(), "getter should return nil when property is nil") }) - t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Run("GetAuditHead_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect + var obj *DocAnnotationsListAll200Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTop() // Should return zero value + _ = obj.GetAuditHead() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeoutRect(t *testing.T) { - t.Run("SetLeft_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200Response(t *testing.T) { + t.Run("SetPages_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect{} - var fernTestValueLeft float64 + obj := &DocAnnotationsListAll200Response{} + var fernTestValuePages []*DocAnnotationsListAll200ResponsePagesItem // Act - obj.SetLeft(fernTestValueLeft) + obj.SetPages(fernTestValuePages) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -87049,14 +125079,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Run("SetAuditHead_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect{} - var fernTestValueBottom float64 + obj := &DocAnnotationsListAll200Response{} + var fernTestValueAuditHead *int // Act - obj.SetBottom(fernTestValueBottom) + obj.SetAuditHead(fernTestValueAuditHead) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -87080,14 +125110,105 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRight_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItem(t *testing.T) { + t.Run("SetPageState", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItem{} + var fernTestValuePageState *DocAnnotationsListAll200ResponsePagesItemPageState + obj.SetPageState(fernTestValuePageState) + assert.Equal(t, fernTestValuePageState, obj.PageState) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotations", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItem{} + var fernTestValueAnnotations []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + obj.SetAnnotations(fernTestValueAnnotations) + assert.Equal(t, fernTestValueAnnotations, obj.Annotations) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItem(t *testing.T) { + t.Run("GetPageState", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect{} - var fernTestValueRight float64 + obj := &DocAnnotationsListAll200ResponsePagesItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemPageState + obj.PageState = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageState(), "getter should return the property value") + }) + + t.Run("GetPageState_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItem{} + obj.PageState = nil + + // Act & Assert + assert.Nil(t, obj.GetPageState(), "getter should return nil when property is nil") + }) + + t.Run("GetPageState_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageState() // Should return zero value + }) + + t.Run("GetAnnotations", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItem{} + var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + obj.Annotations = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotations(), "getter should return the property value") + }) + + t.Run("GetAnnotations_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItem{} + obj.Annotations = nil + + // Act & Assert + assert.Nil(t, obj.GetAnnotations(), "getter should return nil when property is nil") + }) + + t.Run("GetAnnotations_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAnnotations() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItem(t *testing.T) { + t.Run("SetPageState_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItem{} + var fernTestValuePageState *DocAnnotationsListAll200ResponsePagesItemPageState // Act - obj.SetRight(fernTestValueRight) + obj.SetPageState(fernTestValuePageState) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -87111,14 +125232,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Run("SetAnnotations_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRect{} - var fernTestValueTop float64 + obj := &DocAnnotationsListAll200ResponsePagesItem{} + var fernTestValueAnnotations []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItem // Act - obj.SetTop(fernTestValueTop) + obj.SetAnnotations(fernTestValueAnnotations) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -87144,808 +125265,670 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeou } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutRef(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItem(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} var expected string - obj.Kind = expected + obj.Subtype = expected // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKind() // Should return zero value + _ = obj.GetSubtype() // Should return zero value }) - t.Run("GetObjectNumber", func(t *testing.T) { + t.Run("GetHighlight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber - obj.ObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight + obj.Highlight = expected // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetHighlight(), "getter should return the property value") }) - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Run("GetHighlight_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef{} - obj.ObjectNumber = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.Highlight = nil // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetHighlight(), "getter should return nil when property is nil") }) - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetHighlight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetObjectNumber() // Should return zero value + _ = obj.GetHighlight() // Should return zero value }) - t.Run("GetNm", func(t *testing.T) { + t.Run("GetUnderline", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm - obj.Nm = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline + obj.Underline = expected // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnderline(), "getter should return the property value") }) - t.Run("GetNm_NilValue", func(t *testing.T) { + t.Run("GetUnderline_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef{} - obj.Nm = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.Underline = nil // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetUnderline(), "getter should return nil when property is nil") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetUnderline_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetUnderline() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetSquiggly", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex - obj.Index = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly + obj.Squiggly = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSquiggly(), "getter should return the property value") }) - t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Run("GetSquiggly_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef{} - obj.Index = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.Squiggly = nil // Act & Assert - assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetSquiggly(), "getter should return nil when property is nil") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetSquiggly_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetSquiggly() // Should return zero value }) -} + t.Run("GetStrikeout", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout + obj.Strikeout = expected -func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetStrikeout(), "getter should return the property value") }) - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) - assert.NotNil(t, obj.explicitFields) + t.Run("GetStrikeout_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.Strikeout = nil + + // Act & Assert + assert.Nil(t, obj.GetStrikeout(), "getter should return nil when property is nil") }) - t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) - assert.NotNil(t, obj.explicitFields) + t.Run("GetStrikeout_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetStrikeout() // Should return zero value }) -} + t.Run("GetCircle", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + obj.Circle = expected -func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + // Act & Assert + assert.Equal(t, expected, obj.GetCircle(), "getter should return the property value") + }) + + t.Run("GetCircle_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.Circle = nil // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Nil(t, obj.GetCircle(), "getter should return nil when property is nil") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetCircle_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetCircle() // Should return zero value + }) + + t.Run("GetSquare", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare + obj.Square = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSquare(), "getter should return the property value") + }) + + t.Run("GetSquare_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.Square = nil + + // Act & Assert + assert.Nil(t, obj.GetSquare(), "getter should return nil when property is nil") + }) + + t.Run("GetSquare_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSquare() // Should return zero value + }) + + t.Run("GetPolygon", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + obj.Polygon = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPolygon(), "getter should return the property value") }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetPolygon_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex{} - var expected int - obj.Index = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.Polygon = nil // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Nil(t, obj.GetPolygon(), "getter should return nil when property is nil") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetPolygon_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetPolygon() // Should return zero value }) - t.Run("GetRevision", func(t *testing.T) { + t.Run("GetPolyline", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex{} - var expected *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision - obj.Revision = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + obj.Polyline = expected // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPolyline(), "getter should return the property value") }) - t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Run("GetPolyline_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex{} - obj.Revision = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.Polyline = nil // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPolyline(), "getter should return nil when property is nil") }) - t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Run("GetPolyline_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRevision() // Should return zero value + _ = obj.GetPolyline() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("GetLine", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex{} - var fernTestValuePageObjectNumber int - - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + obj.Line = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetLine(), "getter should return the property value") }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("GetLine_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex{} - var fernTestValueIndex int - - // Act - obj.SetIndex(fernTestValueIndex) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.Line = nil - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Nil(t, obj.GetLine(), "getter should return nil when property is nil") }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("GetLine_NilReceiver", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision - - // Act - obj.SetRevision(fernTestValueRevision) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision{} - var fernTestValueDocSessionID string - obj.SetDocSessionID(fernTestValueDocSessionID) - assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) - assert.NotNil(t, obj.explicitFields) + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLine() // Should return zero value }) - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("GetLink", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink + obj.Link = expected - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetLink(), "getter should return the property value") }) -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { + t.Run("GetLink_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision{} - var expected string - obj.DocSessionID = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.Link = nil // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + assert.Nil(t, obj.GetLink(), "getter should return nil when property is nil") }) - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Run("GetLink_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDocSessionID() // Should return zero value + _ = obj.GetLink() // Should return zero value }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetInk", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + obj.Ink = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetInk(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetInk_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.Ink = nil + + // Act & Assert + assert.Nil(t, obj.GetInk(), "getter should return nil when property is nil") + }) + + t.Run("GetInk_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetInk() // Should return zero value }) - t.Run("GetGeneration", func(t *testing.T) { + t.Run("GetFreeText", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision{} - var expected int - obj.Generation = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText + obj.FreeText = expected // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFreeText(), "getter should return the property value") }) - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Run("GetFreeText_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.FreeText = nil + + // Act & Assert + assert.Nil(t, obj.GetFreeText(), "getter should return nil when property is nil") + }) + + t.Run("GetFreeText_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGeneration() // Should return zero value + _ = obj.GetFreeText() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Run("GetCaret", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision{} - var fernTestValueDocSessionID string - - // Act - obj.SetDocSessionID(fernTestValueDocSessionID) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret + obj.Caret = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetCaret(), "getter should return the property value") }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("GetCaret_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision{} - var fernTestValuePageObjectNumber int - - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.Caret = nil - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Nil(t, obj.GetCaret(), "getter should return nil when property is nil") }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("GetCaret_NilReceiver", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefIndexRevision{} - var fernTestValueGeneration int - - // Act - obj.SetGeneration(fernTestValueGeneration) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCaret() // Should return zero value }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("GetText", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText + obj.Text = expected - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm{} - var fernTestValueNm string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetText(), "getter should return the property value") }) -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetText_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.Text = nil // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Nil(t, obj.GetText(), "getter should return nil when property is nil") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetText() // Should return zero value }) - t.Run("GetNm", func(t *testing.T) { + t.Run("GetStamp", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm{} - var expected string - obj.Nm = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp + obj.Stamp = expected // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + assert.Equal(t, expected, obj.GetStamp(), "getter should return the property value") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetStamp_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.Stamp = nil + + // Act & Assert + assert.Nil(t, obj.GetStamp(), "getter should return nil when property is nil") + }) + + t.Run("GetStamp_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetStamp() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("GetFileAttachment", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm{} - var fernTestValuePageObjectNumber int - - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment + obj.FileAttachment = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetFileAttachment(), "getter should return the property value") }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("GetFileAttachment_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefNm{} - var fernTestValueNm string - - // Act - obj.SetNm(fernTestValueNm) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.FileAttachment = nil - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Nil(t, obj.GetFileAttachment(), "getter should return nil when property is nil") }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) + t.Run("GetFileAttachment_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFileAttachment() // Should return zero value }) - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("GetWidget", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + obj.Widget = expected -} + // Act & Assert + assert.Equal(t, expected, obj.GetWidget(), "getter should return the property value") + }) -func TestGettersDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetWidget_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.Widget = nil // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Nil(t, obj.GetWidget(), "getter should return nil when property is nil") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetWidget_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetWidget() // Should return zero value }) - t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Run("GetRedact", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + obj.Redact = expected // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRedact(), "getter should return the property value") }) - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetRedact_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.Redact = nil + + // Act & Assert + assert.Nil(t, obj.GetRedact(), "getter should return nil when property is nil") + }) + + t.Run("GetRedact_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAnnotObjectNumber() // Should return zero value + _ = obj.GetRedact() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("GetUnsupported", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber{} - var fernTestValuePageObjectNumber int - - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported + obj.Unsupported = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetUnsupported(), "getter should return the property value") }) - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("GetUnsupported_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemStrikeoutRefObjectNumber{} - var fernTestValueAnnotObjectNumber int - - // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} + obj.Unsupported = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnsupported() // Should return zero value }) } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret(t *testing.T) { t.Run("SetRef", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemTextRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef obj.SetRef(fernTestValueRef) assert.Equal(t, fernTestValueRef, obj.Ref) assert.NotNil(t, obj.explicitFields) }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -87953,7 +125936,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -87961,15 +125944,15 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { }) t.Run("SetIdentityQuality", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemTextIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality obj.SetIdentityQuality(fernTestValueIdentityQuality) assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) assert.NotNil(t, obj.explicitFields) }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var fernTestValueNm *string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -87977,23 +125960,23 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { }) t.Run("SetFlags", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemTextFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags obj.SetFlags(fernTestValueFlags) assert.Equal(t, fernTestValueFlags, obj.Flags) assert.NotNil(t, obj.explicitFields) }) t.Run("SetRect", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemTextRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect obj.SetRect(fernTestValueRect) assert.Equal(t, fernTestValueRect, obj.Rect) assert.NotNil(t, obj.explicitFields) }) t.Run("SetContents", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var fernTestValueContents *string obj.SetContents(fernTestValueContents) assert.Equal(t, fernTestValueContents, obj.Contents) @@ -88001,7 +125984,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { }) t.Run("SetSubject", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var fernTestValueSubject *string obj.SetSubject(fernTestValueSubject) assert.Equal(t, fernTestValueSubject, obj.Subject) @@ -88009,7 +125992,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { }) t.Run("SetAuthor", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var fernTestValueAuthor *string obj.SetAuthor(fernTestValueAuthor) assert.Equal(t, fernTestValueAuthor, obj.Author) @@ -88017,7 +126000,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { }) t.Run("SetCreated", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var fernTestValueCreated *time.Time obj.SetCreated(fernTestValueCreated) assert.Equal(t, fernTestValueCreated, obj.Created) @@ -88025,7 +126008,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { }) t.Run("SetModified", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var fernTestValueModified *time.Time obj.SetModified(fernTestValueModified) assert.Equal(t, fernTestValueModified, obj.Modified) @@ -88033,31 +126016,31 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { }) t.Run("SetBlendMode", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemTextBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode obj.SetBlendMode(fernTestValueBlendMode) assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) assert.NotNil(t, obj.explicitFields) }) t.Run("SetInReplyTo", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo obj.SetInReplyTo(fernTestValueInReplyTo) assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) assert.NotNil(t, obj.explicitFields) }) t.Run("SetReplyType", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemTextReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType obj.SetReplyType(fernTestValueReplyType) assert.Equal(t, fernTestValueReplyType, obj.ReplyType) assert.NotNil(t, obj.explicitFields) }) t.Run("SetUserID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var fernTestValueUserID *string obj.SetUserID(fernTestValueUserID) assert.Equal(t, fernTestValueUserID, obj.UserID) @@ -88065,7 +126048,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { }) t.Run("SetGroupID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var fernTestValueGroupID *string obj.SetGroupID(fernTestValueGroupID) assert.Equal(t, fernTestValueGroupID, obj.GroupID) @@ -88073,7 +126056,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { }) t.Run("SetCreatedBy", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var fernTestValueCreatedBy *string obj.SetCreatedBy(fernTestValueCreatedBy) assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) @@ -88081,7 +126064,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { }) t.Run("SetUpdatedBy", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var fernTestValueUpdatedBy *string obj.SetUpdatedBy(fernTestValueUpdatedBy) assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) @@ -88089,7 +126072,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { }) t.Run("SetActions", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var fernTestValueActions *PdfAnnotationActions obj.SetActions(fernTestValueActions) assert.Equal(t, fernTestValueActions, obj.Actions) @@ -88097,53 +126080,61 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { }) t.Run("SetColor", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemTextColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor obj.SetColor(fernTestValueColor) assert.Equal(t, fernTestValueColor, obj.Color) assert.NotNil(t, obj.explicitFields) }) t.Run("SetOpacity", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var fernTestValueOpacity float64 obj.SetOpacity(fernTestValueOpacity) assert.Equal(t, fernTestValueOpacity, obj.Opacity) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetIcon", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var fernTestValueIcon DocAnnotationsList200ResponseAnnotationsItemTextIcon - obj.SetIcon(fernTestValueIcon) - assert.Equal(t, fernTestValueIcon, obj.Icon) + t.Run("SetIntent", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueIntent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent + obj.SetIntent(fernTestValueIntent) + assert.Equal(t, fernTestValueIntent, obj.Intent) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetState", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var fernTestValueState *string - obj.SetState(fernTestValueState) - assert.Equal(t, fernTestValueState, obj.State) + t.Run("SetRectDifferences", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueRectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences + obj.SetRectDifferences(fernTestValueRectDifferences) + assert.Equal(t, fernTestValueRectDifferences, obj.RectDifferences) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetStateModel", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var fernTestValueStateModel *string - obj.SetStateModel(fernTestValueStateModel) - assert.Equal(t, fernTestValueStateModel, obj.StateModel) + t.Run("SetRotation", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueRotation *float64 + obj.SetRotation(fernTestValueRotation) + assert.Equal(t, fernTestValueRotation, obj.Rotation) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetUnrotatedRect", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueUnrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect + obj.SetUnrotatedRect(fernTestValueUnrotatedRect) + assert.Equal(t, fernTestValueUnrotatedRect, obj.UnrotatedRect) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret(t *testing.T) { t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var expected *DocAnnotationsList200ResponseAnnotationsItemTextRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef obj.Ref = expected // Act & Assert @@ -88153,7 +126144,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetRef_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} obj.Ref = nil // Act & Assert @@ -88162,7 +126153,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetRef_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -88175,7 +126166,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var expected int obj.PageObjectNumber = expected @@ -88185,7 +126176,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -88198,7 +126189,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var expected int obj.Index = expected @@ -88208,7 +126199,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -88221,8 +126212,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetIdentityQuality", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var expected DocAnnotationsList200ResponseAnnotationsItemTextIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality obj.IdentityQuality = expected // Act & Assert @@ -88231,7 +126222,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -88244,7 +126235,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var expected *string obj.Nm = expected @@ -88255,7 +126246,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} obj.Nm = nil // Act & Assert @@ -88264,7 +126255,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -88277,8 +126268,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var expected *DocAnnotationsList200ResponseAnnotationsItemTextFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags obj.Flags = expected // Act & Assert @@ -88288,7 +126279,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} obj.Flags = nil // Act & Assert @@ -88297,7 +126288,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -88310,8 +126301,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetRect", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var expected *DocAnnotationsList200ResponseAnnotationsItemTextRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect obj.Rect = expected // Act & Assert @@ -88321,7 +126312,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetRect_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} obj.Rect = nil // Act & Assert @@ -88330,7 +126321,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetRect_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -88343,7 +126334,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var expected *string obj.Contents = expected @@ -88354,7 +126345,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetContents_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} obj.Contents = nil // Act & Assert @@ -88363,7 +126354,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -88376,7 +126367,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetSubject", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var expected *string obj.Subject = expected @@ -88387,7 +126378,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetSubject_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} obj.Subject = nil // Act & Assert @@ -88396,7 +126387,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetSubject_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -88409,7 +126400,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetAuthor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var expected *string obj.Author = expected @@ -88420,7 +126411,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetAuthor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} obj.Author = nil // Act & Assert @@ -88429,7 +126420,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetAuthor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -88442,7 +126433,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetCreated", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var expected *time.Time obj.Created = expected @@ -88453,7 +126444,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetCreated_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} obj.Created = nil // Act & Assert @@ -88462,7 +126453,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetCreated_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -88475,7 +126466,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetModified", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var expected *time.Time obj.Modified = expected @@ -88486,7 +126477,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetModified_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} obj.Modified = nil // Act & Assert @@ -88495,7 +126486,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetModified_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -88508,8 +126499,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetBlendMode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var expected DocAnnotationsList200ResponseAnnotationsItemTextBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode obj.BlendMode = expected // Act & Assert @@ -88518,7 +126509,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -88531,8 +126522,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetInReplyTo", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var expected *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo obj.InReplyTo = expected // Act & Assert @@ -88542,7 +126533,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetInReplyTo_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} obj.InReplyTo = nil // Act & Assert @@ -88551,7 +126542,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -88564,8 +126555,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetReplyType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var expected *DocAnnotationsList200ResponseAnnotationsItemTextReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType obj.ReplyType = expected // Act & Assert @@ -88575,7 +126566,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetReplyType_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} obj.ReplyType = nil // Act & Assert @@ -88584,7 +126575,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetReplyType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -88597,7 +126588,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetUserID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var expected *string obj.UserID = expected @@ -88608,7 +126599,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetUserID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} obj.UserID = nil // Act & Assert @@ -88617,7 +126608,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetUserID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -88630,7 +126621,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetGroupID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var expected *string obj.GroupID = expected @@ -88641,7 +126632,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetGroupID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} obj.GroupID = nil // Act & Assert @@ -88650,7 +126641,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetGroupID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -88663,7 +126654,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetCreatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var expected *string obj.CreatedBy = expected @@ -88674,7 +126665,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetCreatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} obj.CreatedBy = nil // Act & Assert @@ -88683,7 +126674,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -88696,7 +126687,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetUpdatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var expected *string obj.UpdatedBy = expected @@ -88707,7 +126698,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} obj.UpdatedBy = nil // Act & Assert @@ -88716,7 +126707,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -88729,7 +126720,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetActions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var expected *PdfAnnotationActions obj.Actions = expected @@ -88740,7 +126731,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetActions_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} obj.Actions = nil // Act & Assert @@ -88749,7 +126740,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetActions_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -88762,8 +126753,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetColor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var expected *DocAnnotationsList200ResponseAnnotationsItemTextColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor obj.Color = expected // Act & Assert @@ -88773,7 +126764,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetColor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} obj.Color = nil // Act & Assert @@ -88782,7 +126773,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetColor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -88795,7 +126786,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetOpacity", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var expected float64 obj.Opacity = expected @@ -88805,7 +126796,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { t.Run("GetOpacity_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -88815,103 +126806,146 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { _ = obj.GetOpacity() // Should return zero value }) - t.Run("GetIcon", func(t *testing.T) { + t.Run("GetIntent", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var expected DocAnnotationsList200ResponseAnnotationsItemTextIcon - obj.Icon = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent + obj.Intent = expected // Act & Assert - assert.Equal(t, expected, obj.GetIcon(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIntent(), "getter should return the property value") }) - t.Run("GetIcon_NilReceiver", func(t *testing.T) { + t.Run("GetIntent_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemText + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + obj.Intent = nil + + // Act & Assert + assert.Nil(t, obj.GetIntent(), "getter should return nil when property is nil") + }) + + t.Run("GetIntent_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIcon() // Should return zero value + _ = obj.GetIntent() // Should return zero value }) - t.Run("GetState", func(t *testing.T) { + t.Run("GetRectDifferences", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var expected *string - obj.State = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences + obj.RectDifferences = expected // Act & Assert - assert.Equal(t, expected, obj.GetState(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRectDifferences(), "getter should return the property value") }) - t.Run("GetState_NilValue", func(t *testing.T) { + t.Run("GetRectDifferences_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - obj.State = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + obj.RectDifferences = nil // Act & Assert - assert.Nil(t, obj.GetState(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRectDifferences(), "getter should return nil when property is nil") }) - t.Run("GetState_NilReceiver", func(t *testing.T) { + t.Run("GetRectDifferences_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetState() // Should return zero value + _ = obj.GetRectDifferences() // Should return zero value }) - t.Run("GetStateModel", func(t *testing.T) { + t.Run("GetRotation", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var expected *string - obj.StateModel = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var expected *float64 + obj.Rotation = expected // Act & Assert - assert.Equal(t, expected, obj.GetStateModel(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRotation(), "getter should return the property value") }) - t.Run("GetStateModel_NilValue", func(t *testing.T) { + t.Run("GetRotation_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - obj.StateModel = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + obj.Rotation = nil // Act & Assert - assert.Nil(t, obj.GetStateModel(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRotation(), "getter should return nil when property is nil") }) - t.Run("GetStateModel_NilReceiver", func(t *testing.T) { + t.Run("GetRotation_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetStateModel() // Should return zero value + _ = obj.GetRotation() // Should return zero value + }) + + t.Run("GetUnrotatedRect", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect + obj.UnrotatedRect = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUnrotatedRect(), "getter should return the property value") + }) + + t.Run("GetUnrotatedRect_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + obj.UnrotatedRect = nil + + // Act & Assert + assert.Nil(t, obj.GetUnrotatedRect(), "getter should return nil when property is nil") + }) + + t.Run("GetUnrotatedRect_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnrotatedRect() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret(t *testing.T) { t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemTextRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef // Act obj.SetRef(fernTestValueRef) @@ -88941,7 +126975,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t * t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var fernTestValuePageObjectNumber int // Act @@ -88972,7 +127006,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t * t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var fernTestValueIndex int // Act @@ -89003,8 +127037,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t * t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemTextIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality // Act obj.SetIdentityQuality(fernTestValueIdentityQuality) @@ -89034,7 +127068,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t * t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var fernTestValueNm *string // Act @@ -89065,8 +127099,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t * t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemTextFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags // Act obj.SetFlags(fernTestValueFlags) @@ -89096,8 +127130,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t * t.Run("SetRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemTextRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect // Act obj.SetRect(fernTestValueRect) @@ -89127,7 +127161,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t * t.Run("SetContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var fernTestValueContents *string // Act @@ -89158,7 +127192,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t * t.Run("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var fernTestValueSubject *string // Act @@ -89189,7 +127223,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t * t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var fernTestValueAuthor *string // Act @@ -89220,7 +127254,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t * t.Run("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var fernTestValueCreated *time.Time // Act @@ -89251,7 +127285,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t * t.Run("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var fernTestValueModified *time.Time // Act @@ -89282,8 +127316,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t * t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemTextBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode // Act obj.SetBlendMode(fernTestValueBlendMode) @@ -89313,8 +127347,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t * t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo // Act obj.SetInReplyTo(fernTestValueInReplyTo) @@ -89344,8 +127378,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t * t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemTextReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType // Act obj.SetReplyType(fernTestValueReplyType) @@ -89375,7 +127409,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t * t.Run("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var fernTestValueUserID *string // Act @@ -89406,7 +127440,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t * t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var fernTestValueGroupID *string // Act @@ -89437,7 +127471,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t * t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var fernTestValueCreatedBy *string // Act @@ -89468,7 +127502,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t * t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var fernTestValueUpdatedBy *string // Act @@ -89499,7 +127533,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t * t.Run("SetActions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var fernTestValueActions *PdfAnnotationActions // Act @@ -89530,8 +127564,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t * t.Run("SetColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemTextColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor // Act obj.SetColor(fernTestValueColor) @@ -89561,7 +127595,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t * t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} var fernTestValueOpacity float64 // Act @@ -89589,14 +127623,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIcon_MarksExplicit", func(t *testing.T) { + t.Run("SetIntent_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var fernTestValueIcon DocAnnotationsList200ResponseAnnotationsItemTextIcon + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueIntent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent // Act - obj.SetIcon(fernTestValueIcon) + obj.SetIntent(fernTestValueIntent) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -89620,14 +127654,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetState_MarksExplicit", func(t *testing.T) { + t.Run("SetRectDifferences_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var fernTestValueState *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueRectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences // Act - obj.SetState(fernTestValueState) + obj.SetRectDifferences(fernTestValueRectDifferences) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -89651,14 +127685,45 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetStateModel_MarksExplicit", func(t *testing.T) { + t.Run("SetRotation_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemText{} - var fernTestValueStateModel *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueRotation *float64 // Act - obj.SetStateModel(fernTestValueStateModel) + obj.SetRotation(fernTestValueRotation) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetUnrotatedRect_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} + var fernTestValueUnrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect + + // Act + obj.SetUnrotatedRect(fernTestValueUnrotatedRect) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -89684,9 +127749,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemText(t * } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextColor(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor(t *testing.T) { t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor{} var fernTestValueR int obj.SetR(fernTestValueR) assert.Equal(t, fernTestValueR, obj.R) @@ -89694,7 +127759,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextColor(t *testing }) t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor{} var fernTestValueG int obj.SetG(fernTestValueG) assert.Equal(t, fernTestValueG, obj.G) @@ -89702,7 +127767,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextColor(t *testing }) t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor{} var fernTestValueB int obj.SetB(fernTestValueB) assert.Equal(t, fernTestValueB, obj.B) @@ -89711,11 +127776,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextColor(t *testing } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextColor(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor(t *testing.T) { t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor{} var expected int obj.R = expected @@ -89725,7 +127790,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextColor(t *testing t.Run("GetR_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -89738,7 +127803,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextColor(t *testing t.Run("GetG", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor{} var expected int obj.G = expected @@ -89748,7 +127813,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextColor(t *testing t.Run("GetG_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -89761,7 +127826,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextColor(t *testing t.Run("GetB", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor{} var expected int obj.B = expected @@ -89771,7 +127836,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextColor(t *testing t.Run("GetB_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -89783,11 +127848,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextColor(t *testing } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextColor(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor(t *testing.T) { t.Run("SetR_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor{} var fernTestValueR int // Act @@ -89818,7 +127883,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextColo t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor{} var fernTestValueG int // Act @@ -89849,7 +127914,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextColo t.Run("SetB_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor{} var fernTestValueB int // Act @@ -89879,9 +127944,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextColo } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags(t *testing.T) { t.Run("SetInvisible", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} var fernTestValueInvisible bool obj.SetInvisible(fernTestValueInvisible) assert.Equal(t, fernTestValueInvisible, obj.Invisible) @@ -89889,7 +127954,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing }) t.Run("SetHidden", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} var fernTestValueHidden bool obj.SetHidden(fernTestValueHidden) assert.Equal(t, fernTestValueHidden, obj.Hidden) @@ -89897,7 +127962,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing }) t.Run("SetPrint", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} var fernTestValuePrint bool obj.SetPrint(fernTestValuePrint) assert.Equal(t, fernTestValuePrint, obj.Print) @@ -89905,7 +127970,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing }) t.Run("SetNoZoom", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} var fernTestValueNoZoom bool obj.SetNoZoom(fernTestValueNoZoom) assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) @@ -89913,7 +127978,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing }) t.Run("SetNoRotate", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} var fernTestValueNoRotate bool obj.SetNoRotate(fernTestValueNoRotate) assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) @@ -89921,7 +127986,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing }) t.Run("SetNoView", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} var fernTestValueNoView bool obj.SetNoView(fernTestValueNoView) assert.Equal(t, fernTestValueNoView, obj.NoView) @@ -89929,7 +127994,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing }) t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} var fernTestValueReadOnly bool obj.SetReadOnly(fernTestValueReadOnly) assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) @@ -89937,7 +128002,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing }) t.Run("SetLocked", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} var fernTestValueLocked bool obj.SetLocked(fernTestValueLocked) assert.Equal(t, fernTestValueLocked, obj.Locked) @@ -89945,7 +128010,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing }) t.Run("SetToggleNoView", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} var fernTestValueToggleNoView bool obj.SetToggleNoView(fernTestValueToggleNoView) assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) @@ -89953,7 +128018,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing }) t.Run("SetLockedContents", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} var fernTestValueLockedContents bool obj.SetLockedContents(fernTestValueLockedContents) assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) @@ -89962,11 +128027,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags(t *testing.T) { t.Run("GetInvisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} var expected bool obj.Invisible = expected @@ -89976,7 +128041,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing t.Run("GetInvisible_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -89989,7 +128054,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing t.Run("GetHidden", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} var expected bool obj.Hidden = expected @@ -89999,7 +128064,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing t.Run("GetHidden_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -90012,7 +128077,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing t.Run("GetPrint", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} var expected bool obj.Print = expected @@ -90022,7 +128087,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing t.Run("GetPrint_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -90035,7 +128100,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing t.Run("GetNoZoom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} var expected bool obj.NoZoom = expected @@ -90045,7 +128110,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -90058,7 +128123,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing t.Run("GetNoRotate", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} var expected bool obj.NoRotate = expected @@ -90068,7 +128133,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -90081,7 +128146,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing t.Run("GetNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} var expected bool obj.NoView = expected @@ -90091,7 +128156,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing t.Run("GetNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -90104,7 +128169,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing t.Run("GetReadOnly", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} var expected bool obj.ReadOnly = expected @@ -90114,7 +128179,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -90127,7 +128192,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing t.Run("GetLocked", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} var expected bool obj.Locked = expected @@ -90137,7 +128202,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing t.Run("GetLocked_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -90150,7 +128215,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing t.Run("GetToggleNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} var expected bool obj.ToggleNoView = expected @@ -90160,7 +128225,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -90173,7 +128238,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing t.Run("GetLockedContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} var expected bool obj.LockedContents = expected @@ -90183,7 +128248,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -90195,11 +128260,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextFlags(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags(t *testing.T) { t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} var fernTestValueInvisible bool // Act @@ -90230,7 +128295,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextFlag t.Run("SetHidden_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} var fernTestValueHidden bool // Act @@ -90261,7 +128326,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextFlag t.Run("SetPrint_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} var fernTestValuePrint bool // Act @@ -90292,7 +128357,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextFlag t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} var fernTestValueNoZoom bool // Act @@ -90323,7 +128388,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextFlag t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} var fernTestValueNoRotate bool // Act @@ -90354,7 +128419,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextFlag t.Run("SetNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} var fernTestValueNoView bool // Act @@ -90385,7 +128450,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextFlag t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} var fernTestValueReadOnly bool // Act @@ -90416,7 +128481,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextFlag t.Run("SetLocked_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} var fernTestValueLocked bool // Act @@ -90447,7 +128512,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextFlag t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} var fernTestValueToggleNoView bool // Act @@ -90478,7 +128543,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextFlag t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} var fernTestValueLockedContents bool // Act @@ -90508,11 +128573,11 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextFlag } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyTo(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo{} var expected string obj.Kind = expected @@ -90522,7 +128587,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyTo(t *tes t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -90535,8 +128600,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyTo(t *tes t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -90546,7 +128611,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyTo(t *tes t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo{} obj.ObjectNumber = nil // Act & Assert @@ -90555,7 +128620,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyTo(t *tes t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -90568,8 +128633,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyTo(t *tes t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm obj.Nm = expected // Act & Assert @@ -90579,7 +128644,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyTo(t *tes t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo{} obj.Nm = nil // Act & Assert @@ -90588,7 +128653,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyTo(t *tes t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -90601,8 +128666,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyTo(t *tes t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex obj.Index = expected // Act & Assert @@ -90612,7 +128677,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyTo(t *tes t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo{} obj.Index = nil // Act & Assert @@ -90621,7 +128686,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyTo(t *tes t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -90633,9 +128698,9 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyTo(t *tes } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -90643,7 +128708,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex(t }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -90651,8 +128716,8 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex(t }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -90660,11 +128725,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex(t } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex{} var expected int obj.PageObjectNumber = expected @@ -90674,7 +128739,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex(t t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -90687,7 +128752,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex(t t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex{} var expected int obj.Index = expected @@ -90697,7 +128762,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex(t t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -90710,8 +128775,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex(t t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex{} - var expected *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision obj.Revision = expected // Act & Assert @@ -90721,7 +128786,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex(t t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex{} obj.Revision = nil // Act & Assert @@ -90730,7 +128795,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex(t t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -90742,11 +128807,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex(t } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex{} var fernTestValuePageObjectNumber int // Act @@ -90777,7 +128842,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextInRe t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex{} var fernTestValueIndex int // Act @@ -90808,8 +128873,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextInRe t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -90838,9 +128903,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextInRe } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -90848,7 +128913,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRe }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -90856,7 +128921,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRe }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -90865,11 +128930,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRe } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision{} var expected string obj.DocSessionID = expected @@ -90879,7 +128944,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRe t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -90892,7 +128957,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRe t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -90902,7 +128967,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRe t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -90915,7 +128980,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRe t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision{} var expected int obj.Generation = expected @@ -90925,7 +128990,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRe t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -90937,11 +129002,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRe } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision{} var fernTestValueDocSessionID string // Act @@ -90972,7 +129037,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextInRe t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -91003,7 +129068,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextInRe t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision{} var fernTestValueGeneration int // Act @@ -91033,9 +129098,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextInRe } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -91043,7 +129108,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm(t *t }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm{} var fernTestValueNm string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -91052,11 +129117,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm(t *t } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm{} var expected int obj.PageObjectNumber = expected @@ -91066,7 +129131,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm(t *t t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -91079,7 +129144,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm(t *t t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm{} var expected string obj.Nm = expected @@ -91089,7 +129154,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm(t *t t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -91101,11 +129166,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm(t *t } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm{} var fernTestValuePageObjectNumber int // Act @@ -91136,7 +129201,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextInRe t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm{} var fernTestValueNm string // Act @@ -91166,9 +129231,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextInRe } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -91176,7 +129241,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectN }) t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber{} var fernTestValueAnnotObjectNumber int obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) @@ -91185,11 +129250,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectN } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber{} var expected int obj.PageObjectNumber = expected @@ -91199,7 +129264,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectN t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -91212,7 +129277,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectN t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber{} var expected int obj.AnnotObjectNumber = expected @@ -91222,7 +129287,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectN t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -91234,11 +129299,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectN } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber{} var fernTestValuePageObjectNumber int // Act @@ -91269,7 +129334,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextInRe t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber{} var fernTestValueAnnotObjectNumber int // Act @@ -91299,9 +129364,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextInRe } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextRect(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect(t *testing.T) { t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect{} var fernTestValueLeft float64 obj.SetLeft(fernTestValueLeft) assert.Equal(t, fernTestValueLeft, obj.Left) @@ -91309,7 +129374,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextRect(t *testing. }) t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect{} var fernTestValueBottom float64 obj.SetBottom(fernTestValueBottom) assert.Equal(t, fernTestValueBottom, obj.Bottom) @@ -91317,7 +129382,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextRect(t *testing. }) t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect{} var fernTestValueRight float64 obj.SetRight(fernTestValueRight) assert.Equal(t, fernTestValueRight, obj.Right) @@ -91325,7 +129390,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextRect(t *testing. }) t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect{} var fernTestValueTop float64 obj.SetTop(fernTestValueTop) assert.Equal(t, fernTestValueTop, obj.Top) @@ -91334,11 +129399,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextRect(t *testing. } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRect(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect(t *testing.T) { t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect{} var expected float64 obj.Left = expected @@ -91348,7 +129413,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRect(t *testing. t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -91361,7 +129426,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRect(t *testing. t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect{} var expected float64 obj.Bottom = expected @@ -91371,7 +129436,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRect(t *testing. t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -91384,7 +129449,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRect(t *testing. t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect{} var expected float64 obj.Right = expected @@ -91394,7 +129459,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRect(t *testing. t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -91407,7 +129472,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRect(t *testing. t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect{} var expected float64 obj.Top = expected @@ -91417,7 +129482,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRect(t *testing. t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -91429,11 +129494,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRect(t *testing. } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextRect(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect(t *testing.T) { t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect{} var fernTestValueLeft float64 // Act @@ -91464,7 +129529,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextRect t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect{} var fernTestValueBottom float64 // Act @@ -91495,7 +129560,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextRect t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect{} var fernTestValueRight float64 // Act @@ -91526,7 +129591,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextRect t.Run("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect{} var fernTestValueTop float64 // Act @@ -91556,11 +129621,268 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextRect } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRef(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences{} + var fernTestValueLeft float64 + obj.SetLeft(fernTestValueLeft) + assert.Equal(t, fernTestValueLeft, obj.Left) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetTop", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRight", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences{} + var fernTestValueRight float64 + obj.SetRight(fernTestValueRight) + assert.Equal(t, fernTestValueRight, obj.Right) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBottom", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences{} + var fernTestValueBottom float64 + obj.SetBottom(fernTestValueBottom) + assert.Equal(t, fernTestValueBottom, obj.Bottom) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences{} + var expected float64 + obj.Left = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") + }) + + t.Run("GetLeft_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLeft() // Should return zero value + }) + + t.Run("GetTop", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences{} + var expected float64 + obj.Top = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + }) + + t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetTop() // Should return zero value + }) + + t.Run("GetRight", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences{} + var expected float64 + obj.Right = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") + }) + + t.Run("GetRight_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRight() // Should return zero value + }) + + t.Run("GetBottom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences{} + var expected float64 + obj.Bottom = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") + }) + + t.Run("GetBottom_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBottom() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences{} + var fernTestValueLeft float64 + + // Act + obj.SetLeft(fernTestValueLeft) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences{} + var fernTestValueTop float64 + + // Act + obj.SetTop(fernTestValueTop) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRight_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences{} + var fernTestValueRight float64 + + // Act + obj.SetRight(fernTestValueRight) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences{} + var fernTestValueBottom float64 + + // Act + obj.SetBottom(fernTestValueBottom) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef{} var expected string obj.Kind = expected @@ -91570,7 +129892,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRef(t *testing.T t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -91583,8 +129905,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRef(t *testing.T t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -91594,7 +129916,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRef(t *testing.T t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef{} obj.ObjectNumber = nil // Act & Assert @@ -91603,7 +129925,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRef(t *testing.T t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -91616,8 +129938,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRef(t *testing.T t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemTextRefNm + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm obj.Nm = expected // Act & Assert @@ -91627,7 +129949,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRef(t *testing.T t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef{} obj.Nm = nil // Act & Assert @@ -91636,7 +129958,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRef(t *testing.T t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -91649,8 +129971,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRef(t *testing.T t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex obj.Index = expected // Act & Assert @@ -91660,7 +129982,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRef(t *testing.T t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef{} obj.Index = nil // Act & Assert @@ -91669,7 +129991,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRef(t *testing.T t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -91681,9 +130003,9 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRef(t *testing.T } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextRefIndex(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -91691,7 +130013,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextRefIndex(t *test }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -91699,8 +130021,8 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextRefIndex(t *test }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -91708,11 +130030,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextRefIndex(t *test } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRefIndex(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex{} var expected int obj.PageObjectNumber = expected @@ -91722,7 +130044,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRefIndex(t *test t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -91735,7 +130057,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRefIndex(t *test t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex{} var expected int obj.Index = expected @@ -91745,7 +130067,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRefIndex(t *test t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -91758,8 +130080,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRefIndex(t *test t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndex{} - var expected *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision obj.Revision = expected // Act & Assert @@ -91769,7 +130091,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRefIndex(t *test t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex{} obj.Revision = nil // Act & Assert @@ -91778,7 +130100,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRefIndex(t *test t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -91790,11 +130112,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRefIndex(t *test } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextRefIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex{} var fernTestValuePageObjectNumber int // Act @@ -91825,7 +130147,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextRefI t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex{} var fernTestValueIndex int // Act @@ -91856,8 +130178,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextRefI t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -91886,9 +130208,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextRefI } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -91896,7 +130218,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -91904,7 +130226,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -91913,11 +130235,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision{} var expected string obj.DocSessionID = expected @@ -91927,7 +130249,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -91940,7 +130262,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -91950,7 +130272,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -91963,7 +130285,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision{} var expected int obj.Generation = expected @@ -91973,7 +130295,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -91985,11 +130307,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision{} var fernTestValueDocSessionID string // Act @@ -92020,7 +130342,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextRefI t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -92051,7 +130373,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextRefI t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision{} var fernTestValueGeneration int // Act @@ -92081,9 +130403,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextRefI } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextRefNm(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -92091,7 +130413,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextRefNm(t *testing }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm{} var fernTestValueNm string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -92100,11 +130422,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextRefNm(t *testing } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRefNm(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm{} var expected int obj.PageObjectNumber = expected @@ -92114,7 +130436,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRefNm(t *testing t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -92127,7 +130449,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRefNm(t *testing t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm{} var expected string obj.Nm = expected @@ -92137,7 +130459,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRefNm(t *testing t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -92149,11 +130471,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRefNm(t *testing } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextRefNm(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm{} var fernTestValuePageObjectNumber int // Act @@ -92184,7 +130506,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextRefN t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm{} var fernTestValueNm string // Act @@ -92214,9 +130536,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextRefN } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -92224,7 +130546,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber( }) t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber{} var fernTestValueAnnotObjectNumber int obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) @@ -92233,11 +130555,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber( } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber{} var expected int obj.PageObjectNumber = expected @@ -92247,7 +130569,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber( t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -92260,7 +130582,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber( t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber{} var expected int obj.AnnotObjectNumber = expected @@ -92270,7 +130592,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber( t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -92282,11 +130604,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber( } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber{} var fernTestValuePageObjectNumber int // Act @@ -92317,7 +130639,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextRefO t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemTextRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber{} var fernTestValueAnnotObjectNumber int // Act @@ -92347,17 +130669,274 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemTextRefO } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} + var fernTestValueLeft float64 + obj.SetLeft(fernTestValueLeft) + assert.Equal(t, fernTestValueLeft, obj.Left) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBottom", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} + var fernTestValueBottom float64 + obj.SetBottom(fernTestValueBottom) + assert.Equal(t, fernTestValueBottom, obj.Bottom) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRight", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} + var fernTestValueRight float64 + obj.SetRight(fernTestValueRight) + assert.Equal(t, fernTestValueRight, obj.Right) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetTop", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} + var expected float64 + obj.Left = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") + }) + + t.Run("GetLeft_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLeft() // Should return zero value + }) + + t.Run("GetBottom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} + var expected float64 + obj.Bottom = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") + }) + + t.Run("GetBottom_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBottom() // Should return zero value + }) + + t.Run("GetRight", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} + var expected float64 + obj.Right = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") + }) + + t.Run("GetRight_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRight() // Should return zero value + }) + + t.Run("GetTop", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} + var expected float64 + obj.Top = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + }) + + t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetTop() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} + var fernTestValueLeft float64 + + // Act + obj.SetLeft(fernTestValueLeft) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} + var fernTestValueBottom float64 + + // Act + obj.SetBottom(fernTestValueBottom) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRight_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} + var fernTestValueRight float64 + + // Act + obj.SetRight(fernTestValueRight) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} + var fernTestValueTop float64 + + // Act + obj.SetTop(fernTestValueTop) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle(t *testing.T) { t.Run("SetRef", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef obj.SetRef(fernTestValueRef) assert.Equal(t, fernTestValueRef, obj.Ref) assert.NotNil(t, obj.explicitFields) }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -92365,7 +130944,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -92373,15 +130952,15 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing }) t.Run("SetIdentityQuality", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQuality obj.SetIdentityQuality(fernTestValueIdentityQuality) assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) assert.NotNil(t, obj.explicitFields) }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} var fernTestValueNm *string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -92389,23 +130968,23 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing }) t.Run("SetFlags", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags obj.SetFlags(fernTestValueFlags) assert.Equal(t, fernTestValueFlags, obj.Flags) assert.NotNil(t, obj.explicitFields) }) t.Run("SetRect", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect obj.SetRect(fernTestValueRect) assert.Equal(t, fernTestValueRect, obj.Rect) assert.NotNil(t, obj.explicitFields) }) t.Run("SetContents", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} var fernTestValueContents *string obj.SetContents(fernTestValueContents) assert.Equal(t, fernTestValueContents, obj.Contents) @@ -92413,7 +130992,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing }) t.Run("SetSubject", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} var fernTestValueSubject *string obj.SetSubject(fernTestValueSubject) assert.Equal(t, fernTestValueSubject, obj.Subject) @@ -92421,7 +131000,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing }) t.Run("SetAuthor", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} var fernTestValueAuthor *string obj.SetAuthor(fernTestValueAuthor) assert.Equal(t, fernTestValueAuthor, obj.Author) @@ -92429,7 +131008,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing }) t.Run("SetCreated", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} var fernTestValueCreated *time.Time obj.SetCreated(fernTestValueCreated) assert.Equal(t, fernTestValueCreated, obj.Created) @@ -92437,7 +131016,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing }) t.Run("SetModified", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} var fernTestValueModified *time.Time obj.SetModified(fernTestValueModified) assert.Equal(t, fernTestValueModified, obj.Modified) @@ -92445,31 +131024,31 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing }) t.Run("SetBlendMode", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode obj.SetBlendMode(fernTestValueBlendMode) assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) assert.NotNil(t, obj.explicitFields) }) t.Run("SetInReplyTo", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo obj.SetInReplyTo(fernTestValueInReplyTo) assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) assert.NotNil(t, obj.explicitFields) }) t.Run("SetReplyType", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyType obj.SetReplyType(fernTestValueReplyType) assert.Equal(t, fernTestValueReplyType, obj.ReplyType) assert.NotNil(t, obj.explicitFields) }) t.Run("SetUserID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} var fernTestValueUserID *string obj.SetUserID(fernTestValueUserID) assert.Equal(t, fernTestValueUserID, obj.UserID) @@ -92477,7 +131056,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing }) t.Run("SetGroupID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} var fernTestValueGroupID *string obj.SetGroupID(fernTestValueGroupID) assert.Equal(t, fernTestValueGroupID, obj.GroupID) @@ -92485,7 +131064,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing }) t.Run("SetCreatedBy", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} var fernTestValueCreatedBy *string obj.SetCreatedBy(fernTestValueCreatedBy) assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) @@ -92493,7 +131072,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing }) t.Run("SetUpdatedBy", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} var fernTestValueUpdatedBy *string obj.SetUpdatedBy(fernTestValueUpdatedBy) assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) @@ -92501,7 +131080,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing }) t.Run("SetActions", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} var fernTestValueActions *PdfAnnotationActions obj.SetActions(fernTestValueActions) assert.Equal(t, fernTestValueActions, obj.Actions) @@ -92509,37 +131088,93 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing }) t.Run("SetColor", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor obj.SetColor(fernTestValueColor) assert.Equal(t, fernTestValueColor, obj.Color) assert.NotNil(t, obj.explicitFields) }) t.Run("SetOpacity", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} var fernTestValueOpacity float64 obj.SetOpacity(fernTestValueOpacity) assert.Equal(t, fernTestValueOpacity, obj.Opacity) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetQuadPoints", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var fernTestValueQuadPoints []*DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem - obj.SetQuadPoints(fernTestValueQuadPoints) - assert.Equal(t, fernTestValueQuadPoints, obj.QuadPoints) + t.Run("SetStrokeWidth", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueStrokeWidth float64 + obj.SetStrokeWidth(fernTestValueStrokeWidth) + assert.Equal(t, fernTestValueStrokeWidth, obj.StrokeWidth) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBorderStyle", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle + obj.SetBorderStyle(fernTestValueBorderStyle) + assert.Equal(t, fernTestValueBorderStyle, obj.BorderStyle) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDashArray", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueDashArray []float64 + obj.SetDashArray(fernTestValueDashArray) + assert.Equal(t, fernTestValueDashArray, obj.DashArray) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetInteriorColor", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor + obj.SetInteriorColor(fernTestValueInteriorColor) + assert.Equal(t, fernTestValueInteriorColor, obj.InteriorColor) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCloudyIntensity", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueCloudyIntensity *float64 + obj.SetCloudyIntensity(fernTestValueCloudyIntensity) + assert.Equal(t, fernTestValueCloudyIntensity, obj.CloudyIntensity) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRectDifferences", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueRectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences + obj.SetRectDifferences(fernTestValueRectDifferences) + assert.Equal(t, fernTestValueRectDifferences, obj.RectDifferences) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRotation", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueRotation *float64 + obj.SetRotation(fernTestValueRotation) + assert.Equal(t, fernTestValueRotation, obj.Rotation) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetUnrotatedRect", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueUnrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect + obj.SetUnrotatedRect(fernTestValueUnrotatedRect) + assert.Equal(t, fernTestValueUnrotatedRect, obj.UnrotatedRect) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle(t *testing.T) { t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef obj.Ref = expected // Act & Assert @@ -92549,7 +131184,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetRef_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} obj.Ref = nil // Act & Assert @@ -92558,7 +131193,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetRef_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -92571,7 +131206,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} var expected int obj.PageObjectNumber = expected @@ -92581,7 +131216,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -92594,7 +131229,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} var expected int obj.Index = expected @@ -92604,7 +131239,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -92617,8 +131252,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetIdentityQuality", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var expected DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQuality obj.IdentityQuality = expected // Act & Assert @@ -92627,7 +131262,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -92640,7 +131275,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} var expected *string obj.Nm = expected @@ -92651,7 +131286,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} obj.Nm = nil // Act & Assert @@ -92660,7 +131295,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -92673,8 +131308,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags obj.Flags = expected // Act & Assert @@ -92684,7 +131319,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} obj.Flags = nil // Act & Assert @@ -92693,7 +131328,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -92706,8 +131341,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetRect", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect obj.Rect = expected // Act & Assert @@ -92717,7 +131352,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetRect_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} obj.Rect = nil // Act & Assert @@ -92726,7 +131361,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetRect_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -92739,7 +131374,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} var expected *string obj.Contents = expected @@ -92750,7 +131385,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetContents_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} obj.Contents = nil // Act & Assert @@ -92759,7 +131394,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -92772,7 +131407,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetSubject", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} var expected *string obj.Subject = expected @@ -92783,7 +131418,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetSubject_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} obj.Subject = nil // Act & Assert @@ -92792,7 +131427,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetSubject_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -92805,7 +131440,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetAuthor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} var expected *string obj.Author = expected @@ -92816,7 +131451,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetAuthor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} obj.Author = nil // Act & Assert @@ -92825,7 +131460,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetAuthor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -92838,7 +131473,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetCreated", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} var expected *time.Time obj.Created = expected @@ -92849,7 +131484,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetCreated_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} obj.Created = nil // Act & Assert @@ -92858,7 +131493,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetCreated_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -92871,7 +131506,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetModified", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} var expected *time.Time obj.Modified = expected @@ -92882,7 +131517,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetModified_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} obj.Modified = nil // Act & Assert @@ -92891,7 +131526,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetModified_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -92904,8 +131539,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetBlendMode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var expected DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode obj.BlendMode = expected // Act & Assert @@ -92914,7 +131549,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -92927,8 +131562,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetInReplyTo", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo obj.InReplyTo = expected // Act & Assert @@ -92938,7 +131573,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetInReplyTo_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} obj.InReplyTo = nil // Act & Assert @@ -92947,7 +131582,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -92960,8 +131595,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetReplyType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyType obj.ReplyType = expected // Act & Assert @@ -92971,7 +131606,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetReplyType_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} obj.ReplyType = nil // Act & Assert @@ -92980,7 +131615,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetReplyType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -92993,7 +131628,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetUserID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} var expected *string obj.UserID = expected @@ -93004,7 +131639,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetUserID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} obj.UserID = nil // Act & Assert @@ -93013,7 +131648,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetUserID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -93026,7 +131661,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetGroupID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} var expected *string obj.GroupID = expected @@ -93037,7 +131672,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetGroupID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} obj.GroupID = nil // Act & Assert @@ -93046,7 +131681,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetGroupID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -93059,7 +131694,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetCreatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} var expected *string obj.CreatedBy = expected @@ -93070,7 +131705,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetCreatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} obj.CreatedBy = nil // Act & Assert @@ -93079,7 +131714,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -93092,7 +131727,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetUpdatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} var expected *string obj.UpdatedBy = expected @@ -93103,7 +131738,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} obj.UpdatedBy = nil // Act & Assert @@ -93112,7 +131747,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -93125,7 +131760,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetActions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} var expected *PdfAnnotationActions obj.Actions = expected @@ -93136,7 +131771,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetActions_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} obj.Actions = nil // Act & Assert @@ -93145,7 +131780,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetActions_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -93158,8 +131793,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetColor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor obj.Color = expected // Act & Assert @@ -93169,7 +131804,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetColor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} obj.Color = nil // Act & Assert @@ -93178,7 +131813,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetColor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -93191,7 +131826,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetOpacity", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} var expected float64 obj.Opacity = expected @@ -93201,7 +131836,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing t.Run("GetOpacity_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -93211,47 +131846,258 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing _ = obj.GetOpacity() // Should return zero value }) - t.Run("GetQuadPoints", func(t *testing.T) { + t.Run("GetStrokeWidth", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var expected []*DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem - obj.QuadPoints = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected float64 + obj.StrokeWidth = expected // Act & Assert - assert.Equal(t, expected, obj.GetQuadPoints(), "getter should return the property value") + assert.Equal(t, expected, obj.GetStrokeWidth(), "getter should return the property value") }) - t.Run("GetQuadPoints_NilValue", func(t *testing.T) { + t.Run("GetStrokeWidth_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetStrokeWidth() // Should return zero value + }) + + t.Run("GetBorderStyle", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - obj.QuadPoints = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle + obj.BorderStyle = expected // Act & Assert - assert.Nil(t, obj.GetQuadPoints(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetBorderStyle(), "getter should return the property value") }) - t.Run("GetQuadPoints_NilReceiver", func(t *testing.T) { + t.Run("GetBorderStyle_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetQuadPoints() // Should return zero value + _ = obj.GetBorderStyle() // Should return zero value + }) + + t.Run("GetDashArray", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected []float64 + obj.DashArray = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDashArray(), "getter should return the property value") + }) + + t.Run("GetDashArray_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + obj.DashArray = nil + + // Act & Assert + assert.Nil(t, obj.GetDashArray(), "getter should return nil when property is nil") + }) + + t.Run("GetDashArray_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDashArray() // Should return zero value + }) + + t.Run("GetInteriorColor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor + obj.InteriorColor = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetInteriorColor(), "getter should return the property value") + }) + + t.Run("GetInteriorColor_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + obj.InteriorColor = nil + + // Act & Assert + assert.Nil(t, obj.GetInteriorColor(), "getter should return nil when property is nil") + }) + + t.Run("GetInteriorColor_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetInteriorColor() // Should return zero value + }) + + t.Run("GetCloudyIntensity", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected *float64 + obj.CloudyIntensity = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCloudyIntensity(), "getter should return the property value") + }) + + t.Run("GetCloudyIntensity_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + obj.CloudyIntensity = nil + + // Act & Assert + assert.Nil(t, obj.GetCloudyIntensity(), "getter should return nil when property is nil") + }) + + t.Run("GetCloudyIntensity_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCloudyIntensity() // Should return zero value + }) + + t.Run("GetRectDifferences", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences + obj.RectDifferences = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRectDifferences(), "getter should return the property value") + }) + + t.Run("GetRectDifferences_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + obj.RectDifferences = nil + + // Act & Assert + assert.Nil(t, obj.GetRectDifferences(), "getter should return nil when property is nil") + }) + + t.Run("GetRectDifferences_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRectDifferences() // Should return zero value + }) + + t.Run("GetRotation", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected *float64 + obj.Rotation = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRotation(), "getter should return the property value") + }) + + t.Run("GetRotation_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + obj.Rotation = nil + + // Act & Assert + assert.Nil(t, obj.GetRotation(), "getter should return nil when property is nil") + }) + + t.Run("GetRotation_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRotation() // Should return zero value + }) + + t.Run("GetUnrotatedRect", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect + obj.UnrotatedRect = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUnrotatedRect(), "getter should return the property value") + }) + + t.Run("GetUnrotatedRect_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + obj.UnrotatedRect = nil + + // Act & Assert + assert.Nil(t, obj.GetUnrotatedRect(), "getter should return nil when property is nil") + }) + + t.Run("GetUnrotatedRect_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnrotatedRect() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderline(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle(t *testing.T) { t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef // Act obj.SetRef(fernTestValueRef) @@ -93281,7 +132127,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} var fernTestValuePageObjectNumber int // Act @@ -93312,7 +132158,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} var fernTestValueIndex int // Act @@ -93343,8 +132189,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemUnderlineIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQuality // Act obj.SetIdentityQuality(fernTestValueIdentityQuality) @@ -93374,7 +132220,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} var fernTestValueNm *string // Act @@ -93402,14 +132248,138 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFlags_MarksExplicit", func(t *testing.T) { + t.Run("SetFlags_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags + + // Act + obj.SetFlags(fernTestValueFlags) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRect_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect + + // Act + obj.SetRect(fernTestValueRect) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetContents_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueContents *string + + // Act + obj.SetContents(fernTestValueContents) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSubject_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueSubject *string + + // Act + obj.SetSubject(fernTestValueSubject) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueAuthor *string // Act - obj.SetFlags(fernTestValueFlags) + obj.SetAuthor(fernTestValueAuthor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -93433,14 +132403,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRect_MarksExplicit", func(t *testing.T) { + t.Run("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueCreated *time.Time // Act - obj.SetRect(fernTestValueRect) + obj.SetCreated(fernTestValueCreated) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -93464,14 +132434,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetContents_MarksExplicit", func(t *testing.T) { + t.Run("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var fernTestValueContents *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueModified *time.Time // Act - obj.SetContents(fernTestValueContents) + obj.SetModified(fernTestValueModified) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -93495,14 +132465,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetSubject_MarksExplicit", func(t *testing.T) { + t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var fernTestValueSubject *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode // Act - obj.SetSubject(fernTestValueSubject) + obj.SetBlendMode(fernTestValueBlendMode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -93526,14 +132496,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { + t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var fernTestValueAuthor *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo // Act - obj.SetAuthor(fernTestValueAuthor) + obj.SetInReplyTo(fernTestValueInReplyTo) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -93557,14 +132527,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreated_MarksExplicit", func(t *testing.T) { + t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var fernTestValueCreated *time.Time + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyType // Act - obj.SetCreated(fernTestValueCreated) + obj.SetReplyType(fernTestValueReplyType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -93588,14 +132558,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetModified_MarksExplicit", func(t *testing.T) { + t.Run("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var fernTestValueModified *time.Time + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueUserID *string // Act - obj.SetModified(fernTestValueModified) + obj.SetUserID(fernTestValueUserID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -93619,14 +132589,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { + t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemUnderlineBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueGroupID *string // Act - obj.SetBlendMode(fernTestValueBlendMode) + obj.SetGroupID(fernTestValueGroupID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -93650,14 +132620,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { + t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueCreatedBy *string // Act - obj.SetInReplyTo(fernTestValueInReplyTo) + obj.SetCreatedBy(fernTestValueCreatedBy) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -93681,14 +132651,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { + t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemUnderlineReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueUpdatedBy *string // Act - obj.SetReplyType(fernTestValueReplyType) + obj.SetUpdatedBy(fernTestValueUpdatedBy) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -93712,14 +132682,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUserID_MarksExplicit", func(t *testing.T) { + t.Run("SetActions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var fernTestValueUserID *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueActions *PdfAnnotationActions // Act - obj.SetUserID(fernTestValueUserID) + obj.SetActions(fernTestValueActions) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -93743,14 +132713,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { + t.Run("SetColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var fernTestValueGroupID *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor // Act - obj.SetGroupID(fernTestValueGroupID) + obj.SetColor(fernTestValueColor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -93774,14 +132744,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var fernTestValueCreatedBy *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueOpacity float64 // Act - obj.SetCreatedBy(fernTestValueCreatedBy) + obj.SetOpacity(fernTestValueOpacity) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -93805,14 +132775,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetStrokeWidth_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var fernTestValueUpdatedBy *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueStrokeWidth float64 // Act - obj.SetUpdatedBy(fernTestValueUpdatedBy) + obj.SetStrokeWidth(fernTestValueStrokeWidth) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -93836,14 +132806,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Run("SetBorderStyle_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var fernTestValueActions *PdfAnnotationActions + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle // Act - obj.SetActions(fernTestValueActions) + obj.SetBorderStyle(fernTestValueBorderStyle) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -93867,14 +132837,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetColor_MarksExplicit", func(t *testing.T) { + t.Run("SetDashArray_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueDashArray []float64 // Act - obj.SetColor(fernTestValueColor) + obj.SetDashArray(fernTestValueDashArray) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -93898,14 +132868,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { + t.Run("SetInteriorColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var fernTestValueOpacity float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor // Act - obj.SetOpacity(fernTestValueOpacity) + obj.SetInteriorColor(fernTestValueInteriorColor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -93929,14 +132899,107 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetQuadPoints_MarksExplicit", func(t *testing.T) { + t.Run("SetCloudyIntensity_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderline{} - var fernTestValueQuadPoints []*DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueCloudyIntensity *float64 // Act - obj.SetQuadPoints(fernTestValueQuadPoints) + obj.SetCloudyIntensity(fernTestValueCloudyIntensity) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRectDifferences_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueRectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences + + // Act + obj.SetRectDifferences(fernTestValueRectDifferences) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRotation_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueRotation *float64 + + // Act + obj.SetRotation(fernTestValueRotation) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetUnrotatedRect_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + var fernTestValueUnrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect + + // Act + obj.SetUnrotatedRect(fernTestValueUnrotatedRect) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -93962,9 +133025,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineColor(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor(t *testing.T) { t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor{} var fernTestValueR int obj.SetR(fernTestValueR) assert.Equal(t, fernTestValueR, obj.R) @@ -93972,7 +133035,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineColor(t *te }) t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor{} var fernTestValueG int obj.SetG(fernTestValueG) assert.Equal(t, fernTestValueG, obj.G) @@ -93980,7 +133043,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineColor(t *te }) t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor{} var fernTestValueB int obj.SetB(fernTestValueB) assert.Equal(t, fernTestValueB, obj.B) @@ -93989,11 +133052,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineColor(t *te } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineColor(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor(t *testing.T) { t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor{} var expected int obj.R = expected @@ -94003,7 +133066,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineColor(t *te t.Run("GetR_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -94016,7 +133079,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineColor(t *te t.Run("GetG", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor{} var expected int obj.G = expected @@ -94026,7 +133089,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineColor(t *te t.Run("GetG_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -94039,7 +133102,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineColor(t *te t.Run("GetB", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor{} var expected int obj.B = expected @@ -94049,7 +133112,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineColor(t *te t.Run("GetB_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -94061,11 +133124,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineColor(t *te } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlineColor(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor(t *testing.T) { t.Run("SetR_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor{} var fernTestValueR int // Act @@ -94096,7 +133159,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor{} var fernTestValueG int // Act @@ -94127,7 +133190,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin t.Run("SetB_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor{} var fernTestValueB int // Act @@ -94157,9 +133220,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags(t *testing.T) { t.Run("SetInvisible", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} var fernTestValueInvisible bool obj.SetInvisible(fernTestValueInvisible) assert.Equal(t, fernTestValueInvisible, obj.Invisible) @@ -94167,7 +133230,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *te }) t.Run("SetHidden", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} var fernTestValueHidden bool obj.SetHidden(fernTestValueHidden) assert.Equal(t, fernTestValueHidden, obj.Hidden) @@ -94175,7 +133238,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *te }) t.Run("SetPrint", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} var fernTestValuePrint bool obj.SetPrint(fernTestValuePrint) assert.Equal(t, fernTestValuePrint, obj.Print) @@ -94183,7 +133246,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *te }) t.Run("SetNoZoom", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} var fernTestValueNoZoom bool obj.SetNoZoom(fernTestValueNoZoom) assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) @@ -94191,7 +133254,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *te }) t.Run("SetNoRotate", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} var fernTestValueNoRotate bool obj.SetNoRotate(fernTestValueNoRotate) assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) @@ -94199,7 +133262,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *te }) t.Run("SetNoView", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} var fernTestValueNoView bool obj.SetNoView(fernTestValueNoView) assert.Equal(t, fernTestValueNoView, obj.NoView) @@ -94207,7 +133270,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *te }) t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} var fernTestValueReadOnly bool obj.SetReadOnly(fernTestValueReadOnly) assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) @@ -94215,7 +133278,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *te }) t.Run("SetLocked", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} var fernTestValueLocked bool obj.SetLocked(fernTestValueLocked) assert.Equal(t, fernTestValueLocked, obj.Locked) @@ -94223,7 +133286,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *te }) t.Run("SetToggleNoView", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} var fernTestValueToggleNoView bool obj.SetToggleNoView(fernTestValueToggleNoView) assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) @@ -94231,7 +133294,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *te }) t.Run("SetLockedContents", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} var fernTestValueLockedContents bool obj.SetLockedContents(fernTestValueLockedContents) assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) @@ -94240,11 +133303,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *te } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags(t *testing.T) { t.Run("GetInvisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} var expected bool obj.Invisible = expected @@ -94254,7 +133317,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *te t.Run("GetInvisible_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -94267,7 +133330,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *te t.Run("GetHidden", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} var expected bool obj.Hidden = expected @@ -94277,7 +133340,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *te t.Run("GetHidden_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -94290,7 +133353,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *te t.Run("GetPrint", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} var expected bool obj.Print = expected @@ -94300,7 +133363,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *te t.Run("GetPrint_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -94313,7 +133376,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *te t.Run("GetNoZoom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} var expected bool obj.NoZoom = expected @@ -94323,7 +133386,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *te t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -94336,7 +133399,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *te t.Run("GetNoRotate", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} var expected bool obj.NoRotate = expected @@ -94346,7 +133409,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *te t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -94359,7 +133422,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *te t.Run("GetNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} var expected bool obj.NoView = expected @@ -94369,7 +133432,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *te t.Run("GetNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -94382,7 +133445,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *te t.Run("GetReadOnly", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} var expected bool obj.ReadOnly = expected @@ -94392,7 +133455,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *te t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -94405,7 +133468,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *te t.Run("GetLocked", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} var expected bool obj.Locked = expected @@ -94415,7 +133478,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *te t.Run("GetLocked_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -94428,7 +133491,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *te t.Run("GetToggleNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} var expected bool obj.ToggleNoView = expected @@ -94438,7 +133501,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *te t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -94451,7 +133514,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *te t.Run("GetLockedContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} var expected bool obj.LockedContents = expected @@ -94461,7 +133524,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *te t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -94473,11 +133536,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *te } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlineFlags(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags(t *testing.T) { t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} var fernTestValueInvisible bool // Act @@ -94508,7 +133571,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin t.Run("SetHidden_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} var fernTestValueHidden bool // Act @@ -94539,7 +133602,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin t.Run("SetPrint_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} var fernTestValuePrint bool // Act @@ -94570,7 +133633,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} var fernTestValueNoZoom bool // Act @@ -94601,7 +133664,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} var fernTestValueNoRotate bool // Act @@ -94632,7 +133695,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin t.Run("SetNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} var fernTestValueNoView bool // Act @@ -94663,7 +133726,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} var fernTestValueReadOnly bool // Act @@ -94694,7 +133757,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin t.Run("SetLocked_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} var fernTestValueLocked bool // Act @@ -94725,7 +133788,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} var fernTestValueToggleNoView bool // Act @@ -94756,7 +133819,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} var fernTestValueLockedContents bool // Act @@ -94786,11 +133849,11 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo{} var expected string obj.Kind = expected @@ -94800,7 +133863,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo(t t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -94813,8 +133876,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo(t t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -94824,7 +133887,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo(t t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo{} obj.ObjectNumber = nil // Act & Assert @@ -94833,7 +133896,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo(t t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -94846,8 +133909,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo(t t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm obj.Nm = expected // Act & Assert @@ -94857,7 +133920,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo(t t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo{} obj.Nm = nil // Act & Assert @@ -94866,7 +133929,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo(t t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -94879,8 +133942,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo(t t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex obj.Index = expected // Act & Assert @@ -94890,7 +133953,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo(t t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo{} obj.Index = nil // Act & Assert @@ -94899,7 +133962,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo(t t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -94911,9 +133974,9 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyTo(t } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -94921,7 +133984,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIn }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -94929,8 +133992,8 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIn }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -94938,11 +134001,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIn } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex{} var expected int obj.PageObjectNumber = expected @@ -94952,7 +134015,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIn t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -94965,7 +134028,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIn t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex{} var expected int obj.Index = expected @@ -94975,7 +134038,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIn t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -94988,8 +134051,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIn t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex{} - var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision obj.Revision = expected // Act & Assert @@ -94999,7 +134062,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIn t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex{} obj.Revision = nil // Act & Assert @@ -95008,7 +134071,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIn t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -95020,11 +134083,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIn } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex{} var fernTestValuePageObjectNumber int // Act @@ -95055,7 +134118,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex{} var fernTestValueIndex int // Act @@ -95086,8 +134149,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -95116,9 +134179,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -95126,7 +134189,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIn }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -95134,7 +134197,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIn }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -95143,11 +134206,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIn } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision{} var expected string obj.DocSessionID = expected @@ -95157,7 +134220,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIn t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -95170,7 +134233,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIn t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -95180,7 +134243,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIn t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -95193,7 +134256,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIn t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision{} var expected int obj.Generation = expected @@ -95203,7 +134266,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIn t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -95215,11 +134278,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIn } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision{} var fernTestValueDocSessionID string // Act @@ -95250,7 +134313,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -95281,7 +134344,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision{} var fernTestValueGeneration int // Act @@ -95311,9 +134374,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -95321,7 +134384,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm{} var fernTestValueNm string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -95330,11 +134393,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm{} var expected int obj.PageObjectNumber = expected @@ -95344,7 +134407,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -95357,7 +134420,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm{} var expected string obj.Nm = expected @@ -95367,7 +134430,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -95379,11 +134442,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm{} var fernTestValuePageObjectNumber int // Act @@ -95414,7 +134477,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm{} var fernTestValueNm string // Act @@ -95444,9 +134507,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -95454,7 +134517,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToOb }) t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber{} var fernTestValueAnnotObjectNumber int obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) @@ -95463,11 +134526,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToOb } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber{} var expected int obj.PageObjectNumber = expected @@ -95477,7 +134540,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToOb t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -95490,7 +134553,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToOb t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber{} var expected int obj.AnnotObjectNumber = expected @@ -95500,7 +134563,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToOb t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -95512,11 +134575,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToOb } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber{} var fernTestValuePageObjectNumber int // Act @@ -95547,7 +134610,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber{} var fernTestValueAnnotObjectNumber int // Act @@ -95577,216 +134640,114 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem(t *testing.T) { - t.Run("SetP1", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} - var fernTestValueP1 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1 - obj.SetP1(fernTestValueP1) - assert.Equal(t, fernTestValueP1, obj.P1) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetP2", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} - var fernTestValueP2 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2 - obj.SetP2(fernTestValueP2) - assert.Equal(t, fernTestValueP2, obj.P2) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor(t *testing.T) { + t.Run("SetR", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor{} + var fernTestValueR int + obj.SetR(fernTestValueR) + assert.Equal(t, fernTestValueR, obj.R) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetP3", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} - var fernTestValueP3 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3 - obj.SetP3(fernTestValueP3) - assert.Equal(t, fernTestValueP3, obj.P3) + t.Run("SetG", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor{} + var fernTestValueG int + obj.SetG(fernTestValueG) + assert.Equal(t, fernTestValueG, obj.G) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetP4", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} - var fernTestValueP4 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4 - obj.SetP4(fernTestValueP4) - assert.Equal(t, fernTestValueP4, obj.P4) + t.Run("SetB", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem(t *testing.T) { - t.Run("GetP1", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} - var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1 - obj.P1 = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetP1(), "getter should return the property value") - }) - - t.Run("GetP1_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} - obj.P1 = nil - - // Act & Assert - assert.Nil(t, obj.GetP1(), "getter should return nil when property is nil") - }) - - t.Run("GetP1_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetP1() // Should return zero value - }) - - t.Run("GetP2", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} - var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2 - obj.P2 = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetP2(), "getter should return the property value") - }) - - t.Run("GetP2_NilValue", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} - obj.P2 = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor{} + var expected int + obj.R = expected // Act & Assert - assert.Nil(t, obj.GetP2(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") }) - t.Run("GetP2_NilReceiver", func(t *testing.T) { + t.Run("GetR_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetP2() // Should return zero value - }) - - t.Run("GetP3", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} - var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3 - obj.P3 = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetP3(), "getter should return the property value") + _ = obj.GetR() // Should return zero value }) - t.Run("GetP3_NilValue", func(t *testing.T) { + t.Run("GetG", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} - obj.P3 = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor{} + var expected int + obj.G = expected // Act & Assert - assert.Nil(t, obj.GetP3(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") }) - t.Run("GetP3_NilReceiver", func(t *testing.T) { + t.Run("GetG_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetP3() // Should return zero value - }) - - t.Run("GetP4", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} - var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4 - obj.P4 = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetP4(), "getter should return the property value") + _ = obj.GetG() // Should return zero value }) - t.Run("GetP4_NilValue", func(t *testing.T) { + t.Run("GetB", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} - obj.P4 = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor{} + var expected int + obj.B = expected // Act & Assert - assert.Nil(t, obj.GetP4(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") }) - t.Run("GetP4_NilReceiver", func(t *testing.T) { + t.Run("GetB_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetP4() // Should return zero value + _ = obj.GetB() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem(t *testing.T) { - t.Run("SetP1_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} - var fernTestValueP1 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1 - - // Act - obj.SetP1(fernTestValueP1) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetP2_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} - var fernTestValueP2 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor{} + var fernTestValueR int // Act - obj.SetP2(fernTestValueP2) + obj.SetR(fernTestValueR) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -95810,14 +134771,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetP3_MarksExplicit", func(t *testing.T) { + t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} - var fernTestValueP3 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor{} + var fernTestValueG int // Act - obj.SetP3(fernTestValueP3) + obj.SetG(fernTestValueG) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -95841,14 +134802,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetP4_MarksExplicit", func(t *testing.T) { + t.Run("SetB_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItem{} - var fernTestValueP4 *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor{} + var fernTestValueB int // Act - obj.SetP4(fernTestValueP4) + obj.SetB(fernTestValueB) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -95874,349 +134835,145 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect{} + var fernTestValueLeft float64 + obj.SetLeft(fernTestValueLeft) + assert.Equal(t, fernTestValueLeft, obj.Left) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) + t.Run("SetBottom", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect{} + var fernTestValueBottom float64 + obj.SetBottom(fernTestValueBottom) + assert.Equal(t, fernTestValueBottom, obj.Bottom) assert.NotNil(t, obj.explicitFields) }) -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1(t *testing.T) { - t.Run("GetX", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1{} - var expected float64 - obj.X = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") - }) - - t.Run("GetX_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1 - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetX() // Should return zero value - }) - - t.Run("GetY", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1{} - var expected float64 - obj.Y = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") - }) - - t.Run("GetY_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1 - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetY() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1{} - var fernTestValueX float64 - - // Act - obj.SetX(fernTestValueX) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetY_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP1{} - var fernTestValueY float64 - - // Act - obj.SetY(fernTestValueY) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) + t.Run("SetRight", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect{} + var fernTestValueRight float64 + obj.SetRight(fernTestValueRight) + assert.Equal(t, fernTestValueRight, obj.Right) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) + t.Run("SetTop", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2(t *testing.T) { - t.Run("GetX", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect{} var expected float64 - obj.X = expected + obj.Left = expected // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") }) - t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetX() // Should return zero value + _ = obj.GetLeft() // Should return zero value }) - t.Run("GetY", func(t *testing.T) { + t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect{} var expected float64 - obj.Y = expected + obj.Bottom = expected // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") }) - t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetY() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2{} - var fernTestValueX float64 - - // Act - obj.SetX(fernTestValueX) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetY_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP2{} - var fernTestValueY float64 - - // Act - obj.SetY(fernTestValueY) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) - assert.NotNil(t, obj.explicitFields) + _ = obj.GetBottom() // Should return zero value }) -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3(t *testing.T) { - t.Run("GetX", func(t *testing.T) { + t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect{} var expected float64 - obj.X = expected + obj.Right = expected // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") }) - t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetX() // Should return zero value + _ = obj.GetRight() // Should return zero value }) - t.Run("GetY", func(t *testing.T) { + t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect{} var expected float64 - obj.Y = expected + obj.Top = expected // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") }) - t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetY() // Should return zero value + _ = obj.GetTop() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3{} - var fernTestValueX float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect{} + var fernTestValueLeft float64 // Act - obj.SetX(fernTestValueX) + obj.SetLeft(fernTestValueLeft) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -96240,14 +134997,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP3{} - var fernTestValueY float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect{} + var fernTestValueBottom float64 // Act - obj.SetY(fernTestValueY) + obj.SetBottom(fernTestValueBottom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -96271,85 +135028,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4(t *testing.T) { - t.Run("GetX", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4{} - var expected float64 - obj.X = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") - }) - - t.Run("GetX_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4 - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetX() // Should return zero value - }) - - t.Run("GetY", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4{} - var expected float64 - obj.Y = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") - }) - - t.Run("GetY_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4 - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetY() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4{} - var fernTestValueX float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect{} + var fernTestValueRight float64 // Act - obj.SetX(fernTestValueX) + obj.SetRight(fernTestValueRight) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -96373,14 +135059,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Run("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineQuadPointsItemP4{} - var fernTestValueY float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect{} + var fernTestValueTop float64 // Act - obj.SetY(fernTestValueY) + obj.SetTop(fernTestValueTop) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -96406,46 +135092,46 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRect(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences(t *testing.T) { t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences{} var fernTestValueLeft float64 obj.SetLeft(fernTestValueLeft) assert.Equal(t, fernTestValueLeft, obj.Left) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRect{} - var fernTestValueBottom float64 - obj.SetBottom(fernTestValueBottom) - assert.Equal(t, fernTestValueBottom, obj.Bottom) + t.Run("SetTop", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) assert.NotNil(t, obj.explicitFields) }) t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences{} var fernTestValueRight float64 obj.SetRight(fernTestValueRight) assert.Equal(t, fernTestValueRight, obj.Right) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRect{} - var fernTestValueTop float64 - obj.SetTop(fernTestValueTop) - assert.Equal(t, fernTestValueTop, obj.Top) + t.Run("SetBottom", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences{} + var fernTestValueBottom float64 + obj.SetBottom(fernTestValueBottom) + assert.Equal(t, fernTestValueBottom, obj.Bottom) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRect(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences(t *testing.T) { t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences{} var expected float64 obj.Left = expected @@ -96455,7 +135141,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRect(t *tes t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -96465,33 +135151,33 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRect(t *tes _ = obj.GetLeft() // Should return zero value }) - t.Run("GetBottom", func(t *testing.T) { + t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences{} var expected float64 - obj.Bottom = expected + obj.Top = expected // Act & Assert - assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") }) - t.Run("GetBottom_NilReceiver", func(t *testing.T) { + t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBottom() // Should return zero value + _ = obj.GetTop() // Should return zero value }) t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences{} var expected float64 obj.Right = expected @@ -96501,7 +135187,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRect(t *tes t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -96511,36 +135197,36 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRect(t *tes _ = obj.GetRight() // Should return zero value }) - t.Run("GetTop", func(t *testing.T) { + t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences{} var expected float64 - obj.Top = expected + obj.Bottom = expected // Act & Assert - assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") }) - t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTop() // Should return zero value + _ = obj.GetBottom() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlineRect(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences(t *testing.T) { t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences{} var fernTestValueLeft float64 // Act @@ -96568,14 +135254,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Run("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRect{} - var fernTestValueBottom float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences{} + var fernTestValueTop float64 // Act - obj.SetBottom(fernTestValueBottom) + obj.SetTop(fernTestValueTop) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -96602,7 +135288,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences{} var fernTestValueRight float64 // Act @@ -96630,14 +135316,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRect{} - var fernTestValueTop float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences{} + var fernTestValueBottom float64 // Act - obj.SetTop(fernTestValueTop) + obj.SetBottom(fernTestValueBottom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -96663,11 +135349,11 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRef(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef{} var expected string obj.Kind = expected @@ -96677,7 +135363,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRef(t *test t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -96690,8 +135376,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRef(t *test t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -96701,7 +135387,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRef(t *test t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef{} obj.ObjectNumber = nil // Act & Assert @@ -96710,7 +135396,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRef(t *test t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -96723,8 +135409,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRef(t *test t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm obj.Nm = expected // Act & Assert @@ -96734,7 +135420,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRef(t *test t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef{} obj.Nm = nil // Act & Assert @@ -96743,7 +135429,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRef(t *test t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -96756,8 +135442,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRef(t *test t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex obj.Index = expected // Act & Assert @@ -96767,7 +135453,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRef(t *test t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef{} obj.Index = nil // Act & Assert @@ -96776,7 +135462,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRef(t *test t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -96788,9 +135474,9 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRef(t *test } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -96798,7 +135484,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex(t }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -96806,8 +135492,8 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex(t }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -96815,11 +135501,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex(t } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex{} var expected int obj.PageObjectNumber = expected @@ -96829,7 +135515,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex(t t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -96842,7 +135528,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex(t t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex{} var expected int obj.Index = expected @@ -96852,7 +135538,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex(t t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -96865,8 +135551,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex(t t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex{} - var expected *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision obj.Revision = expected // Act & Assert @@ -96876,7 +135562,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex(t t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex{} obj.Revision = nil // Act & Assert @@ -96885,7 +135571,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex(t t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -96897,11 +135583,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex(t } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex{} var fernTestValuePageObjectNumber int // Act @@ -96932,7 +135618,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex{} var fernTestValueIndex int // Act @@ -96963,8 +135649,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -96993,9 +135679,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -97003,7 +135689,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRev }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -97011,7 +135697,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRev }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -97020,11 +135706,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRev } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision{} var expected string obj.DocSessionID = expected @@ -97034,7 +135720,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRev t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -97047,7 +135733,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRev t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -97057,7 +135743,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRev t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -97070,7 +135756,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRev t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision{} var expected int obj.Generation = expected @@ -97080,7 +135766,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRev t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -97092,11 +135778,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRev } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision{} var fernTestValueDocSessionID string // Act @@ -97127,7 +135813,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -97158,7 +135844,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision{} var fernTestValueGeneration int // Act @@ -97188,9 +135874,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -97198,7 +135884,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm(t *te }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm{} var fernTestValueNm string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -97207,11 +135893,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm(t *te } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm{} var expected int obj.PageObjectNumber = expected @@ -97221,7 +135907,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm(t *te t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -97234,7 +135920,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm(t *te t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm{} var expected string obj.Nm = expected @@ -97242,25 +135928,158 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm(t *te assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm{} + var fernTestValueNm string + + // Act + obj.SetNm(fernTestValueNm) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + }) + + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetAnnotObjectNumber() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber{} var fernTestValuePageObjectNumber int // Act @@ -97288,14 +136107,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefNm{} - var fernTestValueNm string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber{} + var fernTestValueAnnotObjectNumber int // Act - obj.SetNm(fernTestValueNm) + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -97321,83 +136140,145 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect{} + var fernTestValueLeft float64 + obj.SetLeft(fernTestValueLeft) + assert.Equal(t, fernTestValueLeft, obj.Left) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + t.Run("SetBottom", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect{} + var fernTestValueBottom float64 + obj.SetBottom(fernTestValueBottom) + assert.Equal(t, fernTestValueBottom, obj.Bottom) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRight", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect{} + var fernTestValueRight float64 + obj.SetRight(fernTestValueRight) + assert.Equal(t, fernTestValueRight, obj.Right) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetTop", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect{} + var expected float64 + obj.Left = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetLeft() // Should return zero value }) - t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect{} + var expected float64 + obj.Bottom = expected // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") }) - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAnnotObjectNumber() // Should return zero value + _ = obj.GetBottom() // Should return zero value + }) + + t.Run("GetRight", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect{} + var expected float64 + obj.Right = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") + }) + + t.Run("GetRight_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRight() // Should return zero value + }) + + t.Run("GetTop", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect{} + var expected float64 + obj.Top = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + }) + + t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetTop() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect{} + var fernTestValueLeft float64 // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetLeft(fernTestValueLeft) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -97421,14 +136302,76 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnderlineRefObjectNumber{} - var fernTestValueAnnotObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect{} + var fernTestValueBottom float64 // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + obj.SetBottom(fernTestValueBottom) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRight_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect{} + var fernTestValueRight float64 + + // Act + obj.SetRight(fernTestValueRight) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect{} + var fernTestValueTop float64 + + // Act + obj.SetTop(fernTestValueTop) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -97454,17 +136397,17 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnderlin } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment(t *testing.T) { t.Run("SetRef", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef obj.SetRef(fernTestValueRef) assert.Equal(t, fernTestValueRef, obj.Ref) assert.NotNil(t, obj.explicitFields) }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -97472,7 +136415,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -97480,15 +136423,15 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi }) t.Run("SetIdentityQuality", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQuality obj.SetIdentityQuality(fernTestValueIdentityQuality) assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) assert.NotNil(t, obj.explicitFields) }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var fernTestValueNm *string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -97496,23 +136439,23 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi }) t.Run("SetFlags", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags obj.SetFlags(fernTestValueFlags) assert.Equal(t, fernTestValueFlags, obj.Flags) assert.NotNil(t, obj.explicitFields) }) t.Run("SetRect", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect obj.SetRect(fernTestValueRect) assert.Equal(t, fernTestValueRect, obj.Rect) assert.NotNil(t, obj.explicitFields) }) t.Run("SetContents", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var fernTestValueContents *string obj.SetContents(fernTestValueContents) assert.Equal(t, fernTestValueContents, obj.Contents) @@ -97520,7 +136463,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi }) t.Run("SetSubject", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var fernTestValueSubject *string obj.SetSubject(fernTestValueSubject) assert.Equal(t, fernTestValueSubject, obj.Subject) @@ -97528,7 +136471,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi }) t.Run("SetAuthor", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var fernTestValueAuthor *string obj.SetAuthor(fernTestValueAuthor) assert.Equal(t, fernTestValueAuthor, obj.Author) @@ -97536,7 +136479,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi }) t.Run("SetCreated", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var fernTestValueCreated *time.Time obj.SetCreated(fernTestValueCreated) assert.Equal(t, fernTestValueCreated, obj.Created) @@ -97544,7 +136487,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi }) t.Run("SetModified", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var fernTestValueModified *time.Time obj.SetModified(fernTestValueModified) assert.Equal(t, fernTestValueModified, obj.Modified) @@ -97552,31 +136495,31 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi }) t.Run("SetBlendMode", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode obj.SetBlendMode(fernTestValueBlendMode) assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) assert.NotNil(t, obj.explicitFields) }) t.Run("SetInReplyTo", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo obj.SetInReplyTo(fernTestValueInReplyTo) assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) assert.NotNil(t, obj.explicitFields) }) t.Run("SetReplyType", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyType obj.SetReplyType(fernTestValueReplyType) assert.Equal(t, fernTestValueReplyType, obj.ReplyType) assert.NotNil(t, obj.explicitFields) }) t.Run("SetUserID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var fernTestValueUserID *string obj.SetUserID(fernTestValueUserID) assert.Equal(t, fernTestValueUserID, obj.UserID) @@ -97584,7 +136527,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi }) t.Run("SetGroupID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var fernTestValueGroupID *string obj.SetGroupID(fernTestValueGroupID) assert.Equal(t, fernTestValueGroupID, obj.GroupID) @@ -97592,7 +136535,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi }) t.Run("SetCreatedBy", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var fernTestValueCreatedBy *string obj.SetCreatedBy(fernTestValueCreatedBy) assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) @@ -97600,7 +136543,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi }) t.Run("SetUpdatedBy", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var fernTestValueUpdatedBy *string obj.SetUpdatedBy(fernTestValueUpdatedBy) assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) @@ -97608,37 +136551,53 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi }) t.Run("SetActions", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var fernTestValueActions *PdfAnnotationActions obj.SetActions(fernTestValueActions) assert.Equal(t, fernTestValueActions, obj.Actions) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRawSubtypeCode", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var fernTestValueRawSubtypeCode int - obj.SetRawSubtypeCode(fernTestValueRawSubtypeCode) - assert.Equal(t, fernTestValueRawSubtypeCode, obj.RawSubtypeCode) + t.Run("SetColor", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor + obj.SetColor(fernTestValueColor) + assert.Equal(t, fernTestValueColor, obj.Color) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRawSubtypeName", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var fernTestValueRawSubtypeName *string - obj.SetRawSubtypeName(fernTestValueRawSubtypeName) - assert.Equal(t, fernTestValueRawSubtypeName, obj.RawSubtypeName) + t.Run("SetOpacity", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueOpacity float64 + obj.SetOpacity(fernTestValueOpacity) + assert.Equal(t, fernTestValueOpacity, obj.Opacity) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIcon", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueIcon DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon + obj.SetIcon(fernTestValueIcon) + assert.Equal(t, fernTestValueIcon, obj.Icon) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFile", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueFile *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile + obj.SetFile(fernTestValueFile) + assert.Equal(t, fernTestValueFile, obj.File) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment(t *testing.T) { t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var expected *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef obj.Ref = expected // Act & Assert @@ -97648,7 +136607,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetRef_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} obj.Ref = nil // Act & Assert @@ -97657,7 +136616,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetRef_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -97670,7 +136629,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var expected int obj.PageObjectNumber = expected @@ -97680,7 +136639,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -97693,7 +136652,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var expected int obj.Index = expected @@ -97703,7 +136662,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -97716,8 +136675,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetIdentityQuality", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var expected DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQuality obj.IdentityQuality = expected // Act & Assert @@ -97726,7 +136685,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -97739,7 +136698,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var expected *string obj.Nm = expected @@ -97750,7 +136709,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} obj.Nm = nil // Act & Assert @@ -97759,7 +136718,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -97772,8 +136731,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var expected *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags obj.Flags = expected // Act & Assert @@ -97783,7 +136742,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} obj.Flags = nil // Act & Assert @@ -97792,7 +136751,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -97805,8 +136764,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetRect", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var expected *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect obj.Rect = expected // Act & Assert @@ -97816,7 +136775,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetRect_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} obj.Rect = nil // Act & Assert @@ -97825,7 +136784,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetRect_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -97838,7 +136797,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var expected *string obj.Contents = expected @@ -97849,7 +136808,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetContents_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} obj.Contents = nil // Act & Assert @@ -97858,7 +136817,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -97871,7 +136830,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetSubject", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var expected *string obj.Subject = expected @@ -97882,7 +136841,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetSubject_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} obj.Subject = nil // Act & Assert @@ -97891,7 +136850,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetSubject_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -97904,7 +136863,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetAuthor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var expected *string obj.Author = expected @@ -97915,7 +136874,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetAuthor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} obj.Author = nil // Act & Assert @@ -97924,7 +136883,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetAuthor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -97937,7 +136896,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetCreated", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var expected *time.Time obj.Created = expected @@ -97948,7 +136907,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetCreated_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} obj.Created = nil // Act & Assert @@ -97957,7 +136916,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetCreated_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -97970,7 +136929,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetModified", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var expected *time.Time obj.Modified = expected @@ -97981,7 +136940,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetModified_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} obj.Modified = nil // Act & Assert @@ -97990,7 +136949,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetModified_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -98003,8 +136962,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetBlendMode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var expected DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode obj.BlendMode = expected // Act & Assert @@ -98013,7 +136972,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -98026,8 +136985,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetInReplyTo", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var expected *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo obj.InReplyTo = expected // Act & Assert @@ -98037,7 +136996,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetInReplyTo_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} obj.InReplyTo = nil // Act & Assert @@ -98046,7 +137005,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -98059,8 +137018,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetReplyType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var expected *DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyType obj.ReplyType = expected // Act & Assert @@ -98070,7 +137029,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetReplyType_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} obj.ReplyType = nil // Act & Assert @@ -98079,7 +137038,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetReplyType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -98092,7 +137051,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetUserID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var expected *string obj.UserID = expected @@ -98103,7 +137062,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetUserID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} obj.UserID = nil // Act & Assert @@ -98112,7 +137071,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetUserID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -98125,7 +137084,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetGroupID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var expected *string obj.GroupID = expected @@ -98136,7 +137095,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetGroupID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} obj.GroupID = nil // Act & Assert @@ -98145,7 +137104,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetGroupID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -98158,7 +137117,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetCreatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var expected *string obj.CreatedBy = expected @@ -98169,7 +137128,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetCreatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} obj.CreatedBy = nil // Act & Assert @@ -98178,7 +137137,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -98191,7 +137150,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetUpdatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var expected *string obj.UpdatedBy = expected @@ -98202,7 +137161,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} obj.UpdatedBy = nil // Act & Assert @@ -98211,7 +137170,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -98224,7 +137183,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetActions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var expected *PdfAnnotationActions obj.Actions = expected @@ -98235,7 +137194,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetActions_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} obj.Actions = nil // Act & Assert @@ -98244,7 +137203,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi t.Run("GetActions_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -98254,70 +137213,126 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testi _ = obj.GetActions() // Should return zero value }) - t.Run("GetRawSubtypeCode", func(t *testing.T) { + t.Run("GetColor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var expected int - obj.RawSubtypeCode = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor + obj.Color = expected // Act & Assert - assert.Equal(t, expected, obj.GetRawSubtypeCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") }) - t.Run("GetRawSubtypeCode_NilReceiver", func(t *testing.T) { + t.Run("GetColor_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + obj.Color = nil + + // Act & Assert + assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") + }) + + t.Run("GetColor_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRawSubtypeCode() // Should return zero value + _ = obj.GetColor() // Should return zero value }) - t.Run("GetRawSubtypeName", func(t *testing.T) { + t.Run("GetOpacity", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var expected *string - obj.RawSubtypeName = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var expected float64 + obj.Opacity = expected // Act & Assert - assert.Equal(t, expected, obj.GetRawSubtypeName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOpacity(), "getter should return the property value") }) - t.Run("GetRawSubtypeName_NilValue", func(t *testing.T) { + t.Run("GetOpacity_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetOpacity() // Should return zero value + }) + + t.Run("GetIcon", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - obj.RawSubtypeName = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon + obj.Icon = expected // Act & Assert - assert.Nil(t, obj.GetRawSubtypeName(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetIcon(), "getter should return the property value") }) - t.Run("GetRawSubtypeName_NilReceiver", func(t *testing.T) { + t.Run("GetIcon_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRawSubtypeName() // Should return zero value + _ = obj.GetIcon() // Should return zero value + }) + + t.Run("GetFile", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile + obj.File = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFile(), "getter should return the property value") + }) + + t.Run("GetFile_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + obj.File = nil + + // Act & Assert + assert.Nil(t, obj.GetFile(), "getter should return nil when property is nil") + }) + + t.Run("GetFile_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFile() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsupported(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment(t *testing.T) { t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef // Act obj.SetRef(fernTestValueRef) @@ -98347,7 +137362,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var fernTestValuePageObjectNumber int // Act @@ -98378,7 +137393,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var fernTestValueIndex int // Act @@ -98409,8 +137424,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemUnsupportedIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQuality // Act obj.SetIdentityQuality(fernTestValueIdentityQuality) @@ -98440,7 +137455,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var fernTestValueNm *string // Act @@ -98471,8 +137486,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags // Act obj.SetFlags(fernTestValueFlags) @@ -98502,8 +137517,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect // Act obj.SetRect(fernTestValueRect) @@ -98533,7 +137548,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var fernTestValueContents *string // Act @@ -98564,7 +137579,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var fernTestValueSubject *string // Act @@ -98595,7 +137610,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var fernTestValueAuthor *string // Act @@ -98626,7 +137641,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var fernTestValueCreated *time.Time // Act @@ -98657,7 +137672,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var fernTestValueModified *time.Time // Act @@ -98688,8 +137703,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemUnsupportedBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode // Act obj.SetBlendMode(fernTestValueBlendMode) @@ -98719,8 +137734,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo // Act obj.SetInReplyTo(fernTestValueInReplyTo) @@ -98750,8 +137765,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemUnsupportedReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyType // Act obj.SetReplyType(fernTestValueReplyType) @@ -98781,7 +137796,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} var fernTestValueUserID *string // Act @@ -98809,14 +137824,702 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { + t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueGroupID *string + + // Act + obj.SetGroupID(fernTestValueGroupID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueCreatedBy *string + + // Act + obj.SetCreatedBy(fernTestValueCreatedBy) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueUpdatedBy *string + + // Act + obj.SetUpdatedBy(fernTestValueUpdatedBy) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueActions *PdfAnnotationActions + + // Act + obj.SetActions(fernTestValueActions) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetColor_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor + + // Act + obj.SetColor(fernTestValueColor) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueOpacity float64 + + // Act + obj.SetOpacity(fernTestValueOpacity) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIcon_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueIcon DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon + + // Act + obj.SetIcon(fernTestValueIcon) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFile_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + var fernTestValueFile *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile + + // Act + obj.SetFile(fernTestValueFile) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor(t *testing.T) { + t.Run("SetR", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor{} + var fernTestValueR int + obj.SetR(fernTestValueR) + assert.Equal(t, fernTestValueR, obj.R) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetG", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor{} + var fernTestValueG int + obj.SetG(fernTestValueG) + assert.Equal(t, fernTestValueG, obj.G) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetB", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor{} + var expected int + obj.R = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") + }) + + t.Run("GetR_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetR() // Should return zero value + }) + + t.Run("GetG", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor{} + var expected int + obj.G = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") + }) + + t.Run("GetG_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetG() // Should return zero value + }) + + t.Run("GetB", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor{} + var expected int + obj.B = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + }) + + t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetB() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor{} + var fernTestValueR int + + // Act + obj.SetR(fernTestValueR) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor{} + var fernTestValueG int + + // Act + obj.SetG(fernTestValueG) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor{} + var fernTestValueB int + + // Act + obj.SetB(fernTestValueB) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + var fernTestValueName string + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMimeType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + var fernTestValueMimeType *string + obj.SetMimeType(fernTestValueMimeType) + assert.Equal(t, fernTestValueMimeType, obj.MimeType) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDescription", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + var fernTestValueDescription *string + obj.SetDescription(fernTestValueDescription) + assert.Equal(t, fernTestValueDescription, obj.Description) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSize", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + var fernTestValueSize *int + obj.SetSize(fernTestValueSize) + assert.Equal(t, fernTestValueSize, obj.Size) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetChecksum", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + var fernTestValueChecksum *string + obj.SetChecksum(fernTestValueChecksum) + assert.Equal(t, fernTestValueChecksum, obj.Checksum) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCreationDate", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + var fernTestValueCreationDate *string + obj.SetCreationDate(fernTestValueCreationDate) + assert.Equal(t, fernTestValueCreationDate, obj.CreationDate) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile(t *testing.T) { + t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var fernTestValueGroupID *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + var expected string + obj.Name = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + }) + + t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetName() // Should return zero value + }) + + t.Run("GetMimeType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + var expected *string + obj.MimeType = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMimeType(), "getter should return the property value") + }) + + t.Run("GetMimeType_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + obj.MimeType = nil + + // Act & Assert + assert.Nil(t, obj.GetMimeType(), "getter should return nil when property is nil") + }) + + t.Run("GetMimeType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMimeType() // Should return zero value + }) + + t.Run("GetDescription", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + var expected *string + obj.Description = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDescription(), "getter should return the property value") + }) + + t.Run("GetDescription_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + obj.Description = nil + + // Act & Assert + assert.Nil(t, obj.GetDescription(), "getter should return nil when property is nil") + }) + + t.Run("GetDescription_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDescription() // Should return zero value + }) + + t.Run("GetSize", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + var expected *int + obj.Size = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSize(), "getter should return the property value") + }) + + t.Run("GetSize_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + obj.Size = nil + + // Act & Assert + assert.Nil(t, obj.GetSize(), "getter should return nil when property is nil") + }) + + t.Run("GetSize_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSize() // Should return zero value + }) + + t.Run("GetChecksum", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + var expected *string + obj.Checksum = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetChecksum(), "getter should return the property value") + }) + + t.Run("GetChecksum_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + obj.Checksum = nil + + // Act & Assert + assert.Nil(t, obj.GetChecksum(), "getter should return nil when property is nil") + }) + + t.Run("GetChecksum_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetChecksum() // Should return zero value + }) + + t.Run("GetCreationDate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + var expected *string + obj.CreationDate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCreationDate(), "getter should return the property value") + }) + + t.Run("GetCreationDate_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + obj.CreationDate = nil + + // Act & Assert + assert.Nil(t, obj.GetCreationDate(), "getter should return nil when property is nil") + }) + + t.Run("GetCreationDate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCreationDate() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + var fernTestValueName string // Act - obj.SetGroupID(fernTestValueGroupID) + obj.SetName(fernTestValueName) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -98840,14 +138543,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetMimeType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var fernTestValueCreatedBy *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + var fernTestValueMimeType *string // Act - obj.SetCreatedBy(fernTestValueCreatedBy) + obj.SetMimeType(fernTestValueMimeType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -98871,14 +138574,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetDescription_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var fernTestValueUpdatedBy *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + var fernTestValueDescription *string // Act - obj.SetUpdatedBy(fernTestValueUpdatedBy) + obj.SetDescription(fernTestValueDescription) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -98902,14 +138605,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Run("SetSize_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var fernTestValueActions *PdfAnnotationActions + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + var fernTestValueSize *int // Act - obj.SetActions(fernTestValueActions) + obj.SetSize(fernTestValueSize) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -98933,14 +138636,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRawSubtypeCode_MarksExplicit", func(t *testing.T) { + t.Run("SetChecksum_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var fernTestValueRawSubtypeCode int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + var fernTestValueChecksum *string // Act - obj.SetRawSubtypeCode(fernTestValueRawSubtypeCode) + obj.SetChecksum(fernTestValueChecksum) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -98964,14 +138667,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRawSubtypeName_MarksExplicit", func(t *testing.T) { + t.Run("SetCreationDate_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupported{} - var fernTestValueRawSubtypeName *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} + var fernTestValueCreationDate *string // Act - obj.SetRawSubtypeName(fernTestValueRawSubtypeName) + obj.SetCreationDate(fernTestValueCreationDate) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -98997,9 +138700,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags(t *testing.T) { t.Run("SetInvisible", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} var fernTestValueInvisible bool obj.SetInvisible(fernTestValueInvisible) assert.Equal(t, fernTestValueInvisible, obj.Invisible) @@ -99007,7 +138710,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t * }) t.Run("SetHidden", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} var fernTestValueHidden bool obj.SetHidden(fernTestValueHidden) assert.Equal(t, fernTestValueHidden, obj.Hidden) @@ -99015,7 +138718,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t * }) t.Run("SetPrint", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} var fernTestValuePrint bool obj.SetPrint(fernTestValuePrint) assert.Equal(t, fernTestValuePrint, obj.Print) @@ -99023,7 +138726,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t * }) t.Run("SetNoZoom", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} var fernTestValueNoZoom bool obj.SetNoZoom(fernTestValueNoZoom) assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) @@ -99031,7 +138734,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t * }) t.Run("SetNoRotate", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} var fernTestValueNoRotate bool obj.SetNoRotate(fernTestValueNoRotate) assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) @@ -99039,7 +138742,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t * }) t.Run("SetNoView", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} var fernTestValueNoView bool obj.SetNoView(fernTestValueNoView) assert.Equal(t, fernTestValueNoView, obj.NoView) @@ -99047,7 +138750,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t * }) t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} var fernTestValueReadOnly bool obj.SetReadOnly(fernTestValueReadOnly) assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) @@ -99055,7 +138758,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t * }) t.Run("SetLocked", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} var fernTestValueLocked bool obj.SetLocked(fernTestValueLocked) assert.Equal(t, fernTestValueLocked, obj.Locked) @@ -99063,7 +138766,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t * }) t.Run("SetToggleNoView", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} var fernTestValueToggleNoView bool obj.SetToggleNoView(fernTestValueToggleNoView) assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) @@ -99071,7 +138774,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t * }) t.Run("SetLockedContents", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} var fernTestValueLockedContents bool obj.SetLockedContents(fernTestValueLockedContents) assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) @@ -99080,11 +138783,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t * } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags(t *testing.T) { t.Run("GetInvisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} var expected bool obj.Invisible = expected @@ -99094,7 +138797,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t * t.Run("GetInvisible_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -99107,7 +138810,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t * t.Run("GetHidden", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} var expected bool obj.Hidden = expected @@ -99117,7 +138820,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t * t.Run("GetHidden_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -99130,7 +138833,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t * t.Run("GetPrint", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} var expected bool obj.Print = expected @@ -99140,7 +138843,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t * t.Run("GetPrint_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -99153,7 +138856,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t * t.Run("GetNoZoom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} var expected bool obj.NoZoom = expected @@ -99163,7 +138866,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t * t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -99176,7 +138879,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t * t.Run("GetNoRotate", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} var expected bool obj.NoRotate = expected @@ -99186,7 +138889,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t * t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -99199,7 +138902,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t * t.Run("GetNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} var expected bool obj.NoView = expected @@ -99209,7 +138912,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t * t.Run("GetNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -99222,7 +138925,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t * t.Run("GetReadOnly", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} var expected bool obj.ReadOnly = expected @@ -99232,7 +138935,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t * t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -99245,7 +138948,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t * t.Run("GetLocked", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} var expected bool obj.Locked = expected @@ -99255,7 +138958,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t * t.Run("GetLocked_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -99268,7 +138971,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t * t.Run("GetToggleNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} var expected bool obj.ToggleNoView = expected @@ -99278,7 +138981,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t * t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -99291,7 +138994,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t * t.Run("GetLockedContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} var expected bool obj.LockedContents = expected @@ -99301,7 +139004,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t * t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -99313,11 +139016,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t * } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags(t *testing.T) { t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} var fernTestValueInvisible bool // Act @@ -99348,7 +139051,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetHidden_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} var fernTestValueHidden bool // Act @@ -99379,7 +139082,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetPrint_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} var fernTestValuePrint bool // Act @@ -99410,7 +139113,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} var fernTestValueNoZoom bool // Act @@ -99441,7 +139144,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} var fernTestValueNoRotate bool // Act @@ -99472,7 +139175,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} var fernTestValueNoView bool // Act @@ -99503,7 +139206,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} var fernTestValueReadOnly bool // Act @@ -99534,7 +139237,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetLocked_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} var fernTestValueLocked bool // Act @@ -99565,7 +139268,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} var fernTestValueToggleNoView bool // Act @@ -99596,7 +139299,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} var fernTestValueLockedContents bool // Act @@ -99626,11 +139329,11 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo{} var expected string obj.Kind = expected @@ -99640,7 +139343,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -99653,8 +139356,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -99664,7 +139367,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo{} obj.ObjectNumber = nil // Act & Assert @@ -99673,7 +139376,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -99686,8 +139389,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm obj.Nm = expected // Act & Assert @@ -99697,7 +139400,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo{} obj.Nm = nil // Act & Assert @@ -99706,7 +139409,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -99719,8 +139422,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex obj.Index = expected // Act & Assert @@ -99730,7 +139433,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo{} obj.Index = nil // Act & Assert @@ -99739,7 +139442,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -99751,9 +139454,9 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -99761,7 +139464,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -99769,8 +139472,8 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -99778,11 +139481,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex{} var expected int obj.PageObjectNumber = expected @@ -99792,7 +139495,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -99805,7 +139508,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex{} var expected int obj.Index = expected @@ -99815,7 +139518,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -99828,8 +139531,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex{} - var expected *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision obj.Revision = expected // Act & Assert @@ -99839,7 +139542,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex{} obj.Revision = nil // Act & Assert @@ -99848,7 +139551,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -99860,11 +139563,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex{} var fernTestValuePageObjectNumber int // Act @@ -99895,7 +139598,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex{} var fernTestValueIndex int // Act @@ -99926,8 +139629,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -99956,9 +139659,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -99966,7 +139669,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -99974,7 +139677,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -99983,11 +139686,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision{} var expected string obj.DocSessionID = expected @@ -99997,7 +139700,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -100010,7 +139713,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -100020,7 +139723,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -100033,7 +139736,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision{} var expected int obj.Generation = expected @@ -100043,7 +139746,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -100055,11 +139758,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision{} var fernTestValueDocSessionID string // Act @@ -100090,7 +139793,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -100121,7 +139824,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision{} var fernTestValueGeneration int // Act @@ -100151,9 +139854,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -100161,7 +139864,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm{} var fernTestValueNm string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -100170,11 +139873,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm{} var expected int obj.PageObjectNumber = expected @@ -100184,7 +139887,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -100197,7 +139900,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm{} var expected string obj.Nm = expected @@ -100207,7 +139910,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -100219,11 +139922,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm{} var fernTestValuePageObjectNumber int // Act @@ -100254,7 +139957,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm{} var fernTestValueNm string // Act @@ -100284,9 +139987,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -100294,7 +139997,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo }) t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber{} var fernTestValueAnnotObjectNumber int obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) @@ -100303,11 +140006,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber{} var expected int obj.PageObjectNumber = expected @@ -100317,7 +140020,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -100330,7 +140033,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber{} var expected int obj.AnnotObjectNumber = expected @@ -100340,7 +140043,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -100352,11 +140055,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyTo } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber{} var fernTestValuePageObjectNumber int // Act @@ -100387,7 +140090,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber{} var fernTestValueAnnotObjectNumber int // Act @@ -100417,9 +140120,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRect(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect(t *testing.T) { t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect{} var fernTestValueLeft float64 obj.SetLeft(fernTestValueLeft) assert.Equal(t, fernTestValueLeft, obj.Left) @@ -100427,7 +140130,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRect(t *t }) t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect{} var fernTestValueBottom float64 obj.SetBottom(fernTestValueBottom) assert.Equal(t, fernTestValueBottom, obj.Bottom) @@ -100435,7 +140138,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRect(t *t }) t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect{} var fernTestValueRight float64 obj.SetRight(fernTestValueRight) assert.Equal(t, fernTestValueRight, obj.Right) @@ -100443,7 +140146,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRect(t *t }) t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect{} var fernTestValueTop float64 obj.SetTop(fernTestValueTop) assert.Equal(t, fernTestValueTop, obj.Top) @@ -100452,11 +140155,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRect(t *t } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRect(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect(t *testing.T) { t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect{} var expected float64 obj.Left = expected @@ -100466,7 +140169,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRect(t *t t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -100479,7 +140182,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRect(t *t t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect{} var expected float64 obj.Bottom = expected @@ -100489,7 +140192,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRect(t *t t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -100502,7 +140205,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRect(t *t t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect{} var expected float64 obj.Right = expected @@ -100512,7 +140215,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRect(t *t t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -100525,7 +140228,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRect(t *t t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect{} var expected float64 obj.Top = expected @@ -100535,7 +140238,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRect(t *t t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -100547,11 +140250,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRect(t *t } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsupportedRect(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect(t *testing.T) { t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect{} var fernTestValueLeft float64 // Act @@ -100582,7 +140285,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect{} var fernTestValueBottom float64 // Act @@ -100613,7 +140316,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect{} var fernTestValueRight float64 // Act @@ -100644,7 +140347,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect{} var fernTestValueTop float64 // Act @@ -100674,11 +140377,11 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRef(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef{} var expected string obj.Kind = expected @@ -100688,7 +140391,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRef(t *te t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -100701,8 +140404,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRef(t *te t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -100712,7 +140415,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRef(t *te t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef{} obj.ObjectNumber = nil // Act & Assert @@ -100721,7 +140424,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRef(t *te t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -100734,8 +140437,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRef(t *te t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm obj.Nm = expected // Act & Assert @@ -100745,7 +140448,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRef(t *te t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef{} obj.Nm = nil // Act & Assert @@ -100754,7 +140457,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRef(t *te t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -100767,8 +140470,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRef(t *te t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex obj.Index = expected // Act & Assert @@ -100778,7 +140481,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRef(t *te t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef{} obj.Index = nil // Act & Assert @@ -100787,7 +140490,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRef(t *te t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -100799,9 +140502,9 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRef(t *te } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -100809,7 +140512,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex( }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -100817,8 +140520,8 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex( }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -100826,11 +140529,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex( } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex{} var expected int obj.PageObjectNumber = expected @@ -100840,7 +140543,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex( t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -100853,7 +140556,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex( t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex{} var expected int obj.Index = expected @@ -100863,7 +140566,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex( t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -100876,8 +140579,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex( t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex{} - var expected *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision obj.Revision = expected // Act & Assert @@ -100887,7 +140590,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex( t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex{} obj.Revision = nil // Act & Assert @@ -100896,7 +140599,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex( t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -100908,11 +140611,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex( } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex{} var fernTestValuePageObjectNumber int // Act @@ -100943,7 +140646,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex{} var fernTestValueIndex int // Act @@ -100974,8 +140677,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -101004,9 +140707,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -101014,7 +140717,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexR }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -101022,7 +140725,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexR }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -101031,11 +140734,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexR } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision{} var expected string obj.DocSessionID = expected @@ -101045,7 +140748,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexR t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -101058,7 +140761,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexR t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -101068,7 +140771,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexR t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -101081,7 +140784,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexR t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision{} var expected int obj.Generation = expected @@ -101091,7 +140794,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexR t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -101103,11 +140806,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexR } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision{} var fernTestValueDocSessionID string // Act @@ -101138,7 +140841,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -101169,7 +140872,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision{} var fernTestValueGeneration int // Act @@ -101199,9 +140902,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -101209,7 +140912,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm(t * }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm{} var fernTestValueNm string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -101218,11 +140921,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm(t * } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm{} var expected int obj.PageObjectNumber = expected @@ -101232,7 +140935,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm(t * t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -101245,7 +140948,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm(t * t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm{} var expected string obj.Nm = expected @@ -101255,7 +140958,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm(t * t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -101267,11 +140970,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm(t * } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm{} var fernTestValuePageObjectNumber int // Act @@ -101302,7 +141005,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm{} var fernTestValueNm string // Act @@ -101332,9 +141035,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -101342,7 +141045,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObject }) t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber{} var fernTestValueAnnotObjectNumber int obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) @@ -101351,11 +141054,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObject } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber{} var expected int obj.PageObjectNumber = expected @@ -101365,7 +141068,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObject t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -101378,7 +141081,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObject t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber{} var expected int obj.AnnotObjectNumber = expected @@ -101388,7 +141091,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObject t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -101400,11 +141103,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObject } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber{} var fernTestValuePageObjectNumber int // Act @@ -101435,7 +141138,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemUnsupportedRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber{} var fernTestValueAnnotObjectNumber int // Act @@ -101465,17 +141168,17 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemUnsuppor } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText(t *testing.T) { t.Run("SetRef", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemWidgetRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef obj.SetRef(fernTestValueRef) assert.Equal(t, fernTestValueRef, obj.Ref) assert.NotNil(t, obj.explicitFields) }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -101483,7 +141186,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -101491,15 +141194,15 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) }) t.Run("SetIdentityQuality", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQuality obj.SetIdentityQuality(fernTestValueIdentityQuality) assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) assert.NotNil(t, obj.explicitFields) }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var fernTestValueNm *string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -101507,23 +141210,23 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) }) t.Run("SetFlags", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags obj.SetFlags(fernTestValueFlags) assert.Equal(t, fernTestValueFlags, obj.Flags) assert.NotNil(t, obj.explicitFields) }) t.Run("SetRect", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemWidgetRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect obj.SetRect(fernTestValueRect) assert.Equal(t, fernTestValueRect, obj.Rect) assert.NotNil(t, obj.explicitFields) }) t.Run("SetContents", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var fernTestValueContents *string obj.SetContents(fernTestValueContents) assert.Equal(t, fernTestValueContents, obj.Contents) @@ -101531,7 +141234,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) }) t.Run("SetSubject", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var fernTestValueSubject *string obj.SetSubject(fernTestValueSubject) assert.Equal(t, fernTestValueSubject, obj.Subject) @@ -101539,7 +141242,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) }) t.Run("SetAuthor", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var fernTestValueAuthor *string obj.SetAuthor(fernTestValueAuthor) assert.Equal(t, fernTestValueAuthor, obj.Author) @@ -101547,7 +141250,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) }) t.Run("SetCreated", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var fernTestValueCreated *time.Time obj.SetCreated(fernTestValueCreated) assert.Equal(t, fernTestValueCreated, obj.Created) @@ -101555,7 +141258,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) }) t.Run("SetModified", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var fernTestValueModified *time.Time obj.SetModified(fernTestValueModified) assert.Equal(t, fernTestValueModified, obj.Modified) @@ -101563,31 +141266,31 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) }) t.Run("SetBlendMode", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode obj.SetBlendMode(fernTestValueBlendMode) assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) assert.NotNil(t, obj.explicitFields) }) t.Run("SetInReplyTo", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo obj.SetInReplyTo(fernTestValueInReplyTo) assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) assert.NotNil(t, obj.explicitFields) }) t.Run("SetReplyType", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyType obj.SetReplyType(fernTestValueReplyType) assert.Equal(t, fernTestValueReplyType, obj.ReplyType) assert.NotNil(t, obj.explicitFields) }) t.Run("SetUserID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var fernTestValueUserID *string obj.SetUserID(fernTestValueUserID) assert.Equal(t, fernTestValueUserID, obj.UserID) @@ -101595,7 +141298,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) }) t.Run("SetGroupID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var fernTestValueGroupID *string obj.SetGroupID(fernTestValueGroupID) assert.Equal(t, fernTestValueGroupID, obj.GroupID) @@ -101603,7 +141306,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) }) t.Run("SetCreatedBy", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var fernTestValueCreatedBy *string obj.SetCreatedBy(fernTestValueCreatedBy) assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) @@ -101611,7 +141314,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) }) t.Run("SetUpdatedBy", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var fernTestValueUpdatedBy *string obj.SetUpdatedBy(fernTestValueUpdatedBy) assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) @@ -101619,31 +141322,87 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) }) t.Run("SetActions", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var fernTestValueActions *PdfAnnotationActions obj.SetActions(fernTestValueActions) assert.Equal(t, fernTestValueActions, obj.Actions) assert.NotNil(t, obj.explicitFields) }) + t.Run("SetIntent", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueIntent DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent + obj.SetIntent(fernTestValueIntent) + assert.Equal(t, fernTestValueIntent, obj.Intent) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFontFamily", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueFontFamily string + obj.SetFontFamily(fernTestValueFontFamily) + assert.Equal(t, fernTestValueFontFamily, obj.FontFamily) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFontSize", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueFontSize float64 + obj.SetFontSize(fernTestValueFontSize) + assert.Equal(t, fernTestValueFontSize, obj.FontSize) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetTextAlign", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueTextAlign DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign + obj.SetTextAlign(fernTestValueTextAlign) + assert.Equal(t, fernTestValueTextAlign, obj.TextAlign) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRichText", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueRichText *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText + obj.SetRichText(fernTestValueRichText) + assert.Equal(t, fernTestValueRichText, obj.RichText) + assert.NotNil(t, obj.explicitFields) + }) + t.Run("SetColor", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemWidgetColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor obj.SetColor(fernTestValueColor) assert.Equal(t, fernTestValueColor, obj.Color) assert.NotNil(t, obj.explicitFields) }) + t.Run("SetFontColor", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueFontColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor + obj.SetFontColor(fernTestValueFontColor) + assert.Equal(t, fernTestValueFontColor, obj.FontColor) + assert.NotNil(t, obj.explicitFields) + }) + t.Run("SetInteriorColor", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var fernTestValueInteriorColor *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor obj.SetInteriorColor(fernTestValueInteriorColor) assert.Equal(t, fernTestValueInteriorColor, obj.InteriorColor) assert.NotNil(t, obj.explicitFields) }) + t.Run("SetOpacity", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueOpacity float64 + obj.SetOpacity(fernTestValueOpacity) + assert.Equal(t, fernTestValueOpacity, obj.Opacity) + assert.NotNil(t, obj.explicitFields) + }) + t.Run("SetStrokeWidth", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var fernTestValueStrokeWidth float64 obj.SetStrokeWidth(fernTestValueStrokeWidth) assert.Equal(t, fernTestValueStrokeWidth, obj.StrokeWidth) @@ -101651,69 +141410,69 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) }) t.Run("SetBorderStyle", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var fernTestValueBorderStyle DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle obj.SetBorderStyle(fernTestValueBorderStyle) assert.Equal(t, fernTestValueBorderStyle, obj.BorderStyle) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetFontFamily", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var fernTestValueFontFamily *DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily - obj.SetFontFamily(fernTestValueFontFamily) - assert.Equal(t, fernTestValueFontFamily, obj.FontFamily) + t.Run("SetDashArray", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueDashArray []float64 + obj.SetDashArray(fernTestValueDashArray) + assert.Equal(t, fernTestValueDashArray, obj.DashArray) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetFontSize", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var fernTestValueFontSize *float64 - obj.SetFontSize(fernTestValueFontSize) - assert.Equal(t, fernTestValueFontSize, obj.FontSize) + t.Run("SetRectDifferences", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueRectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences + obj.SetRectDifferences(fernTestValueRectDifferences) + assert.Equal(t, fernTestValueRectDifferences, obj.RectDifferences) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetFontColor", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var fernTestValueFontColor *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor - obj.SetFontColor(fernTestValueFontColor) - assert.Equal(t, fernTestValueFontColor, obj.FontColor) + t.Run("SetCalloutLine", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueCalloutLine []any + obj.SetCalloutLine(fernTestValueCalloutLine) + assert.Equal(t, fernTestValueCalloutLine, obj.CalloutLine) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTextAlign", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var fernTestValueTextAlign DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign - obj.SetTextAlign(fernTestValueTextAlign) - assert.Equal(t, fernTestValueTextAlign, obj.TextAlign) + t.Run("SetLineEnding", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueLineEnding *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding + obj.SetLineEnding(fernTestValueLineEnding) + assert.Equal(t, fernTestValueLineEnding, obj.LineEnding) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetFieldObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var fernTestValueFieldObjectNumber int - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) - assert.Equal(t, fernTestValueFieldObjectNumber, obj.FieldObjectNumber) + t.Run("SetRotation", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueRotation *float64 + obj.SetRotation(fernTestValueRotation) + assert.Equal(t, fernTestValueRotation, obj.Rotation) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetFieldFamily", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var fernTestValueFieldFamily DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily - obj.SetFieldFamily(fernTestValueFieldFamily) - assert.Equal(t, fernTestValueFieldFamily, obj.FieldFamily) + t.Run("SetUnrotatedRect", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueUnrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect + obj.SetUnrotatedRect(fernTestValueUnrotatedRect) + assert.Equal(t, fernTestValueUnrotatedRect, obj.UnrotatedRect) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText(t *testing.T) { t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var expected *DocAnnotationsList200ResponseAnnotationsItemWidgetRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef obj.Ref = expected // Act & Assert @@ -101723,7 +141482,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetRef_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} obj.Ref = nil // Act & Assert @@ -101732,7 +141491,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetRef_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -101745,7 +141504,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var expected int obj.PageObjectNumber = expected @@ -101755,7 +141514,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -101768,7 +141527,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var expected int obj.Index = expected @@ -101778,7 +141537,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -101791,8 +141550,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetIdentityQuality", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var expected DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQuality obj.IdentityQuality = expected // Act & Assert @@ -101801,7 +141560,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -101814,7 +141573,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var expected *string obj.Nm = expected @@ -101825,7 +141584,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} obj.Nm = nil // Act & Assert @@ -101834,7 +141593,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -101847,8 +141606,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var expected *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags obj.Flags = expected // Act & Assert @@ -101858,7 +141617,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} obj.Flags = nil // Act & Assert @@ -101867,7 +141626,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -101880,8 +141639,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetRect", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var expected *DocAnnotationsList200ResponseAnnotationsItemWidgetRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect obj.Rect = expected // Act & Assert @@ -101891,7 +141650,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetRect_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} obj.Rect = nil // Act & Assert @@ -101900,7 +141659,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetRect_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -101913,7 +141672,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var expected *string obj.Contents = expected @@ -101924,7 +141683,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetContents_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} obj.Contents = nil // Act & Assert @@ -101933,7 +141692,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -101946,7 +141705,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetSubject", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var expected *string obj.Subject = expected @@ -101957,7 +141716,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetSubject_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} obj.Subject = nil // Act & Assert @@ -101966,7 +141725,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetSubject_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -101979,7 +141738,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetAuthor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var expected *string obj.Author = expected @@ -101990,7 +141749,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetAuthor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} obj.Author = nil // Act & Assert @@ -101999,7 +141758,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetAuthor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -102012,7 +141771,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetCreated", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var expected *time.Time obj.Created = expected @@ -102023,7 +141782,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetCreated_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} obj.Created = nil // Act & Assert @@ -102032,7 +141791,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetCreated_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -102045,7 +141804,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetModified", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var expected *time.Time obj.Modified = expected @@ -102056,7 +141815,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetModified_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} obj.Modified = nil // Act & Assert @@ -102065,7 +141824,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetModified_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -102078,8 +141837,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetBlendMode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var expected DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode obj.BlendMode = expected // Act & Assert @@ -102088,7 +141847,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -102101,8 +141860,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetInReplyTo", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var expected *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo obj.InReplyTo = expected // Act & Assert @@ -102112,7 +141871,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetInReplyTo_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} obj.InReplyTo = nil // Act & Assert @@ -102121,7 +141880,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -102134,8 +141893,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetReplyType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var expected *DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyType obj.ReplyType = expected // Act & Assert @@ -102145,7 +141904,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetReplyType_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} obj.ReplyType = nil // Act & Assert @@ -102154,7 +141913,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetReplyType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -102167,7 +141926,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetUserID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var expected *string obj.UserID = expected @@ -102178,7 +141937,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetUserID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} obj.UserID = nil // Act & Assert @@ -102187,7 +141946,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetUserID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -102200,7 +141959,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetGroupID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var expected *string obj.GroupID = expected @@ -102211,7 +141970,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetGroupID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} obj.GroupID = nil // Act & Assert @@ -102220,7 +141979,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetGroupID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -102233,7 +141992,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetCreatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var expected *string obj.CreatedBy = expected @@ -102244,7 +142003,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetCreatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} obj.CreatedBy = nil // Act & Assert @@ -102253,7 +142012,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -102266,7 +142025,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetUpdatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var expected *string obj.UpdatedBy = expected @@ -102277,7 +142036,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} obj.UpdatedBy = nil // Act & Assert @@ -102286,7 +142045,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -102299,7 +142058,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetActions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var expected *PdfAnnotationActions obj.Actions = expected @@ -102310,7 +142069,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetActions_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} obj.Actions = nil // Act & Assert @@ -102319,7 +142078,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetActions_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -102329,11 +142088,136 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) _ = obj.GetActions() // Should return zero value }) + t.Run("GetIntent", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent + obj.Intent = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIntent(), "getter should return the property value") + }) + + t.Run("GetIntent_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIntent() // Should return zero value + }) + + t.Run("GetFontFamily", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected string + obj.FontFamily = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFontFamily(), "getter should return the property value") + }) + + t.Run("GetFontFamily_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFontFamily() // Should return zero value + }) + + t.Run("GetFontSize", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected float64 + obj.FontSize = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFontSize(), "getter should return the property value") + }) + + t.Run("GetFontSize_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFontSize() // Should return zero value + }) + + t.Run("GetTextAlign", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign + obj.TextAlign = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetTextAlign(), "getter should return the property value") + }) + + t.Run("GetTextAlign_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetTextAlign() // Should return zero value + }) + + t.Run("GetRichText", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText + obj.RichText = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRichText(), "getter should return the property value") + }) + + t.Run("GetRichText_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + obj.RichText = nil + + // Act & Assert + assert.Nil(t, obj.GetRichText(), "getter should return nil when property is nil") + }) + + t.Run("GetRichText_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRichText() // Should return zero value + }) + t.Run("GetColor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var expected *DocAnnotationsList200ResponseAnnotationsItemWidgetColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor obj.Color = expected // Act & Assert @@ -102343,7 +142227,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetColor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} obj.Color = nil // Act & Assert @@ -102352,7 +142236,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetColor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -102362,11 +142246,44 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) _ = obj.GetColor() // Should return zero value }) + t.Run("GetFontColor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor + obj.FontColor = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFontColor(), "getter should return the property value") + }) + + t.Run("GetFontColor_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + obj.FontColor = nil + + // Act & Assert + assert.Nil(t, obj.GetFontColor(), "getter should return nil when property is nil") + }) + + t.Run("GetFontColor_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFontColor() // Should return zero value + }) + t.Run("GetInteriorColor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var expected *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor obj.InteriorColor = expected // Act & Assert @@ -102376,7 +142293,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetInteriorColor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} obj.InteriorColor = nil // Act & Assert @@ -102385,7 +142302,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetInteriorColor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -102395,10 +142312,33 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) _ = obj.GetInteriorColor() // Should return zero value }) + t.Run("GetOpacity", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected float64 + obj.Opacity = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetOpacity(), "getter should return the property value") + }) + + t.Run("GetOpacity_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetOpacity() // Should return zero value + }) + t.Run("GetStrokeWidth", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var expected float64 obj.StrokeWidth = expected @@ -102408,7 +142348,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetStrokeWidth_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -102421,8 +142361,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetBorderStyle", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var expected DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle obj.BorderStyle = expected // Act & Assert @@ -102431,7 +142371,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) t.Run("GetBorderStyle_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -102441,182 +142381,212 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) _ = obj.GetBorderStyle() // Should return zero value }) - t.Run("GetFontFamily", func(t *testing.T) { + t.Run("GetDashArray", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var expected *DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily - obj.FontFamily = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected []float64 + obj.DashArray = expected // Act & Assert - assert.Equal(t, expected, obj.GetFontFamily(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDashArray(), "getter should return the property value") }) - t.Run("GetFontFamily_NilValue", func(t *testing.T) { + t.Run("GetDashArray_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - obj.FontFamily = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + obj.DashArray = nil // Act & Assert - assert.Nil(t, obj.GetFontFamily(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetDashArray(), "getter should return nil when property is nil") }) - t.Run("GetFontFamily_NilReceiver", func(t *testing.T) { + t.Run("GetDashArray_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFontFamily() // Should return zero value + _ = obj.GetDashArray() // Should return zero value }) - t.Run("GetFontSize", func(t *testing.T) { + t.Run("GetRectDifferences", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var expected *float64 - obj.FontSize = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences + obj.RectDifferences = expected // Act & Assert - assert.Equal(t, expected, obj.GetFontSize(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRectDifferences(), "getter should return the property value") }) - t.Run("GetFontSize_NilValue", func(t *testing.T) { + t.Run("GetRectDifferences_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - obj.FontSize = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + obj.RectDifferences = nil // Act & Assert - assert.Nil(t, obj.GetFontSize(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRectDifferences(), "getter should return nil when property is nil") }) - t.Run("GetFontSize_NilReceiver", func(t *testing.T) { + t.Run("GetRectDifferences_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFontSize() // Should return zero value + _ = obj.GetRectDifferences() // Should return zero value }) - t.Run("GetFontColor", func(t *testing.T) { + t.Run("GetCalloutLine", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var expected *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor - obj.FontColor = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected []any + obj.CalloutLine = expected // Act & Assert - assert.Equal(t, expected, obj.GetFontColor(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCalloutLine(), "getter should return the property value") }) - t.Run("GetFontColor_NilValue", func(t *testing.T) { + t.Run("GetCalloutLine_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - obj.FontColor = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + obj.CalloutLine = nil // Act & Assert - assert.Nil(t, obj.GetFontColor(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCalloutLine(), "getter should return nil when property is nil") }) - t.Run("GetFontColor_NilReceiver", func(t *testing.T) { + t.Run("GetCalloutLine_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFontColor() // Should return zero value + _ = obj.GetCalloutLine() // Should return zero value }) - t.Run("GetTextAlign", func(t *testing.T) { + t.Run("GetLineEnding", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var expected DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign - obj.TextAlign = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding + obj.LineEnding = expected // Act & Assert - assert.Equal(t, expected, obj.GetTextAlign(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLineEnding(), "getter should return the property value") }) - t.Run("GetTextAlign_NilReceiver", func(t *testing.T) { + t.Run("GetLineEnding_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + obj.LineEnding = nil + + // Act & Assert + assert.Nil(t, obj.GetLineEnding(), "getter should return nil when property is nil") + }) + + t.Run("GetLineEnding_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTextAlign() // Should return zero value + _ = obj.GetLineEnding() // Should return zero value }) - t.Run("GetFieldObjectNumber", func(t *testing.T) { + t.Run("GetRotation", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var expected int - obj.FieldObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected *float64 + obj.Rotation = expected // Act & Assert - assert.Equal(t, expected, obj.GetFieldObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRotation(), "getter should return the property value") }) - t.Run("GetFieldObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetRotation_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + obj.Rotation = nil + + // Act & Assert + assert.Nil(t, obj.GetRotation(), "getter should return nil when property is nil") + }) + + t.Run("GetRotation_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFieldObjectNumber() // Should return zero value + _ = obj.GetRotation() // Should return zero value }) - t.Run("GetFieldFamily", func(t *testing.T) { + t.Run("GetUnrotatedRect", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var expected DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily - obj.FieldFamily = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect + obj.UnrotatedRect = expected // Act & Assert - assert.Equal(t, expected, obj.GetFieldFamily(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnrotatedRect(), "getter should return the property value") }) - t.Run("GetFieldFamily_NilReceiver", func(t *testing.T) { + t.Run("GetUnrotatedRect_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidget + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + obj.UnrotatedRect = nil + + // Act & Assert + assert.Nil(t, obj.GetUnrotatedRect(), "getter should return nil when property is nil") + }) + + t.Run("GetUnrotatedRect_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFieldFamily() // Should return zero value + _ = obj.GetUnrotatedRect() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidget(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText(t *testing.T) { t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var fernTestValueRef *DocAnnotationsList200ResponseAnnotationsItemWidgetRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef // Act obj.SetRef(fernTestValueRef) @@ -102646,7 +142616,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidget(t t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var fernTestValuePageObjectNumber int // Act @@ -102677,7 +142647,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidget(t t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var fernTestValueIndex int // Act @@ -102708,8 +142678,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidget(t t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var fernTestValueIdentityQuality DocAnnotationsList200ResponseAnnotationsItemWidgetIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQuality // Act obj.SetIdentityQuality(fernTestValueIdentityQuality) @@ -102739,7 +142709,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidget(t t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var fernTestValueNm *string // Act @@ -102770,8 +142740,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidget(t t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var fernTestValueFlags *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags // Act obj.SetFlags(fernTestValueFlags) @@ -102801,8 +142771,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidget(t t.Run("SetRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var fernTestValueRect *DocAnnotationsList200ResponseAnnotationsItemWidgetRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect // Act obj.SetRect(fernTestValueRect) @@ -102832,7 +142802,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidget(t t.Run("SetContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var fernTestValueContents *string // Act @@ -102863,7 +142833,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidget(t t.Run("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var fernTestValueSubject *string // Act @@ -102894,7 +142864,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidget(t t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var fernTestValueAuthor *string // Act @@ -102925,7 +142895,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidget(t t.Run("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var fernTestValueCreated *time.Time // Act @@ -102956,7 +142926,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidget(t t.Run("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var fernTestValueModified *time.Time // Act @@ -102987,8 +142957,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidget(t t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var fernTestValueBlendMode DocAnnotationsList200ResponseAnnotationsItemWidgetBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode // Act obj.SetBlendMode(fernTestValueBlendMode) @@ -103018,8 +142988,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidget(t t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var fernTestValueInReplyTo *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo // Act obj.SetInReplyTo(fernTestValueInReplyTo) @@ -103049,8 +143019,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidget(t t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var fernTestValueReplyType *DocAnnotationsList200ResponseAnnotationsItemWidgetReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyType // Act obj.SetReplyType(fernTestValueReplyType) @@ -103080,7 +143050,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidget(t t.Run("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var fernTestValueUserID *string // Act @@ -103111,7 +143081,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidget(t t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var fernTestValueGroupID *string // Act @@ -103142,7 +143112,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidget(t t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var fernTestValueCreatedBy *string // Act @@ -103170,14 +143140,200 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidget(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueUpdatedBy *string + + // Act + obj.SetUpdatedBy(fernTestValueUpdatedBy) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueActions *PdfAnnotationActions + + // Act + obj.SetActions(fernTestValueActions) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIntent_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueIntent DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent + + // Act + obj.SetIntent(fernTestValueIntent) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFontFamily_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueFontFamily string + + // Act + obj.SetFontFamily(fernTestValueFontFamily) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFontSize_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueFontSize float64 + + // Act + obj.SetFontSize(fernTestValueFontSize) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetTextAlign_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueTextAlign DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign + + // Act + obj.SetTextAlign(fernTestValueTextAlign) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRichText_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var fernTestValueUpdatedBy *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueRichText *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText // Act - obj.SetUpdatedBy(fernTestValueUpdatedBy) + obj.SetRichText(fernTestValueRichText) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -103201,14 +143357,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidget(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Run("SetColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var fernTestValueActions *PdfAnnotationActions + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor // Act - obj.SetActions(fernTestValueActions) + obj.SetColor(fernTestValueColor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -103232,14 +143388,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidget(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetColor_MarksExplicit", func(t *testing.T) { + t.Run("SetFontColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var fernTestValueColor *DocAnnotationsList200ResponseAnnotationsItemWidgetColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueFontColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor // Act - obj.SetColor(fernTestValueColor) + obj.SetFontColor(fernTestValueFontColor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -103266,8 +143422,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidget(t t.Run("SetInteriorColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var fernTestValueInteriorColor *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor // Act obj.SetInteriorColor(fernTestValueInteriorColor) @@ -103294,10 +143450,41 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidget(t // It verifies that setting a field via setter allows successful JSON round-trip }) + t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueOpacity float64 + + // Act + obj.SetOpacity(fernTestValueOpacity) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + t.Run("SetStrokeWidth_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} var fernTestValueStrokeWidth float64 // Act @@ -103328,8 +143515,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidget(t t.Run("SetBorderStyle_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var fernTestValueBorderStyle DocAnnotationsList200ResponseAnnotationsItemWidgetBorderStyle + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle // Act obj.SetBorderStyle(fernTestValueBorderStyle) @@ -103356,14 +143543,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidget(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFontFamily_MarksExplicit", func(t *testing.T) { + t.Run("SetDashArray_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var fernTestValueFontFamily *DocAnnotationsList200ResponseAnnotationsItemWidgetFontFamily + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueDashArray []float64 // Act - obj.SetFontFamily(fernTestValueFontFamily) + obj.SetDashArray(fernTestValueDashArray) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -103387,14 +143574,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidget(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFontSize_MarksExplicit", func(t *testing.T) { + t.Run("SetRectDifferences_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var fernTestValueFontSize *float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueRectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences // Act - obj.SetFontSize(fernTestValueFontSize) + obj.SetRectDifferences(fernTestValueRectDifferences) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -103418,14 +143605,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidget(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFontColor_MarksExplicit", func(t *testing.T) { + t.Run("SetCalloutLine_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var fernTestValueFontColor *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueCalloutLine []any // Act - obj.SetFontColor(fernTestValueFontColor) + obj.SetCalloutLine(fernTestValueCalloutLine) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -103449,14 +143636,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidget(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTextAlign_MarksExplicit", func(t *testing.T) { + t.Run("SetLineEnding_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var fernTestValueTextAlign DocAnnotationsList200ResponseAnnotationsItemWidgetTextAlign + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueLineEnding *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding // Act - obj.SetTextAlign(fernTestValueTextAlign) + obj.SetLineEnding(fernTestValueLineEnding) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -103480,14 +143667,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidget(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetRotation_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var fernTestValueFieldObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueRotation *float64 // Act - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) + obj.SetRotation(fernTestValueRotation) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -103511,14 +143698,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidget(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFieldFamily_MarksExplicit", func(t *testing.T) { + t.Run("SetUnrotatedRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidget{} - var fernTestValueFieldFamily DocAnnotationsList200ResponseAnnotationsItemWidgetFieldFamily + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + var fernTestValueUnrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect // Act - obj.SetFieldFamily(fernTestValueFieldFamily) + obj.SetUnrotatedRect(fernTestValueUnrotatedRect) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -103544,9 +143731,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidget(t } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetColor(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor(t *testing.T) { t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor{} var fernTestValueR int obj.SetR(fernTestValueR) assert.Equal(t, fernTestValueR, obj.R) @@ -103554,7 +143741,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetColor(t *testi }) t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor{} var fernTestValueG int obj.SetG(fernTestValueG) assert.Equal(t, fernTestValueG, obj.G) @@ -103562,7 +143749,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetColor(t *testi }) t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor{} var fernTestValueB int obj.SetB(fernTestValueB) assert.Equal(t, fernTestValueB, obj.B) @@ -103571,11 +143758,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetColor(t *testi } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetColor(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor(t *testing.T) { t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor{} var expected int obj.R = expected @@ -103585,7 +143772,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetColor(t *testi t.Run("GetR_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -103598,7 +143785,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetColor(t *testi t.Run("GetG", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor{} var expected int obj.G = expected @@ -103608,7 +143795,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetColor(t *testi t.Run("GetG_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -103621,7 +143808,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetColor(t *testi t.Run("GetB", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor{} var expected int obj.B = expected @@ -103631,7 +143818,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetColor(t *testi t.Run("GetB_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -103643,11 +143830,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetColor(t *testi } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetColor(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor(t *testing.T) { t.Run("SetR_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor{} var fernTestValueR int // Act @@ -103678,7 +143865,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetCo t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor{} var fernTestValueG int // Act @@ -103709,7 +143896,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetCo t.Run("SetB_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor{} var fernTestValueB int // Act @@ -103739,9 +143926,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetCo } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags(t *testing.T) { t.Run("SetInvisible", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} var fernTestValueInvisible bool obj.SetInvisible(fernTestValueInvisible) assert.Equal(t, fernTestValueInvisible, obj.Invisible) @@ -103749,7 +143936,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testi }) t.Run("SetHidden", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} var fernTestValueHidden bool obj.SetHidden(fernTestValueHidden) assert.Equal(t, fernTestValueHidden, obj.Hidden) @@ -103757,7 +143944,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testi }) t.Run("SetPrint", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} var fernTestValuePrint bool obj.SetPrint(fernTestValuePrint) assert.Equal(t, fernTestValuePrint, obj.Print) @@ -103765,7 +143952,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testi }) t.Run("SetNoZoom", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} var fernTestValueNoZoom bool obj.SetNoZoom(fernTestValueNoZoom) assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) @@ -103773,7 +143960,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testi }) t.Run("SetNoRotate", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} var fernTestValueNoRotate bool obj.SetNoRotate(fernTestValueNoRotate) assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) @@ -103781,7 +143968,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testi }) t.Run("SetNoView", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} var fernTestValueNoView bool obj.SetNoView(fernTestValueNoView) assert.Equal(t, fernTestValueNoView, obj.NoView) @@ -103789,7 +143976,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testi }) t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} var fernTestValueReadOnly bool obj.SetReadOnly(fernTestValueReadOnly) assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) @@ -103797,7 +143984,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testi }) t.Run("SetLocked", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} var fernTestValueLocked bool obj.SetLocked(fernTestValueLocked) assert.Equal(t, fernTestValueLocked, obj.Locked) @@ -103805,7 +143992,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testi }) t.Run("SetToggleNoView", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} var fernTestValueToggleNoView bool obj.SetToggleNoView(fernTestValueToggleNoView) assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) @@ -103813,7 +144000,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testi }) t.Run("SetLockedContents", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} var fernTestValueLockedContents bool obj.SetLockedContents(fernTestValueLockedContents) assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) @@ -103822,11 +144009,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testi } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags(t *testing.T) { t.Run("GetInvisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} var expected bool obj.Invisible = expected @@ -103836,7 +144023,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testi t.Run("GetInvisible_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -103849,7 +144036,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testi t.Run("GetHidden", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} var expected bool obj.Hidden = expected @@ -103859,7 +144046,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testi t.Run("GetHidden_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -103872,7 +144059,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testi t.Run("GetPrint", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} var expected bool obj.Print = expected @@ -103882,7 +144069,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testi t.Run("GetPrint_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -103895,7 +144082,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testi t.Run("GetNoZoom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} var expected bool obj.NoZoom = expected @@ -103905,7 +144092,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testi t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -103918,7 +144105,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testi t.Run("GetNoRotate", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} var expected bool obj.NoRotate = expected @@ -103928,7 +144115,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testi t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -103941,7 +144128,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testi t.Run("GetNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} var expected bool obj.NoView = expected @@ -103951,7 +144138,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testi t.Run("GetNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -103964,7 +144151,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testi t.Run("GetReadOnly", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} var expected bool obj.ReadOnly = expected @@ -103974,7 +144161,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testi t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -103987,7 +144174,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testi t.Run("GetLocked", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} var expected bool obj.Locked = expected @@ -103997,7 +144184,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testi t.Run("GetLocked_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -104010,7 +144197,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testi t.Run("GetToggleNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} var expected bool obj.ToggleNoView = expected @@ -104020,7 +144207,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testi t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -104033,7 +144220,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testi t.Run("GetLockedContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} var expected bool obj.LockedContents = expected @@ -104043,7 +144230,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testi t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -104055,11 +144242,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testi } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetFlags(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags(t *testing.T) { t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} var fernTestValueInvisible bool // Act @@ -104090,7 +144277,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetFl t.Run("SetHidden_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} var fernTestValueHidden bool // Act @@ -104121,7 +144308,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetFl t.Run("SetPrint_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} var fernTestValuePrint bool // Act @@ -104152,7 +144339,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetFl t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} var fernTestValueNoZoom bool // Act @@ -104183,7 +144370,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetFl t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} var fernTestValueNoRotate bool // Act @@ -104214,7 +144401,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetFl t.Run("SetNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} var fernTestValueNoView bool // Act @@ -104245,7 +144432,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetFl t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} var fernTestValueReadOnly bool // Act @@ -104276,7 +144463,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetFl t.Run("SetLocked_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} var fernTestValueLocked bool // Act @@ -104307,7 +144494,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetFl t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} var fernTestValueToggleNoView bool // Act @@ -104338,7 +144525,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetFl t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} var fernTestValueLockedContents bool // Act @@ -104368,9 +144555,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetFl } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetFontColor(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor(t *testing.T) { t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor{} var fernTestValueR int obj.SetR(fernTestValueR) assert.Equal(t, fernTestValueR, obj.R) @@ -104378,7 +144565,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetFontColor(t *t }) t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor{} var fernTestValueG int obj.SetG(fernTestValueG) assert.Equal(t, fernTestValueG, obj.G) @@ -104386,7 +144573,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetFontColor(t *t }) t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor{} var fernTestValueB int obj.SetB(fernTestValueB) assert.Equal(t, fernTestValueB, obj.B) @@ -104395,11 +144582,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetFontColor(t *t } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetFontColor(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor(t *testing.T) { t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor{} var expected int obj.R = expected @@ -104409,7 +144596,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetFontColor(t *t t.Run("GetR_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -104422,7 +144609,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetFontColor(t *t t.Run("GetG", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor{} var expected int obj.G = expected @@ -104432,7 +144619,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetFontColor(t *t t.Run("GetG_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -104445,7 +144632,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetFontColor(t *t t.Run("GetB", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor{} var expected int obj.B = expected @@ -104455,7 +144642,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetFontColor(t *t t.Run("GetB_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -104467,11 +144654,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetFontColor(t *t } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetFontColor(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor(t *testing.T) { t.Run("SetR_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor{} var fernTestValueR int // Act @@ -104502,7 +144689,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetFo t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor{} var fernTestValueG int // Act @@ -104533,7 +144720,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetFo t.Run("SetB_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetFontColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor{} var fernTestValueB int // Act @@ -104563,11 +144750,11 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetFo } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo{} var expected string obj.Kind = expected @@ -104577,7 +144764,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo(t *t t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -104590,8 +144777,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo(t *t t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -104601,7 +144788,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo(t *t t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo{} obj.ObjectNumber = nil // Act & Assert @@ -104610,7 +144797,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo(t *t t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -104623,8 +144810,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo(t *t t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm obj.Nm = expected // Act & Assert @@ -104634,7 +144821,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo(t *t t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo{} obj.Nm = nil // Act & Assert @@ -104643,7 +144830,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo(t *t t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -104656,8 +144843,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo(t *t t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo{} - var expected *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex obj.Index = expected // Act & Assert @@ -104667,7 +144854,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo(t *t t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo{} obj.Index = nil // Act & Assert @@ -104676,7 +144863,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo(t *t t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -104688,9 +144875,9 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyTo(t *t } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -104698,7 +144885,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -104706,8 +144893,8 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -104715,11 +144902,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex{} var expected int obj.PageObjectNumber = expected @@ -104729,7 +144916,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -104742,7 +144929,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex{} var expected int obj.Index = expected @@ -104752,7 +144939,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -104765,8 +144952,8 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex{} - var expected *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision obj.Revision = expected // Act & Assert @@ -104776,7 +144963,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex{} obj.Revision = nil // Act & Assert @@ -104785,7 +144972,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -104797,11 +144984,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex{} var fernTestValuePageObjectNumber int // Act @@ -104832,7 +145019,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetIn t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex{} var fernTestValueIndex int // Act @@ -104863,8 +145050,8 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetIn t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -104893,9 +145080,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetIn } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -104903,7 +145090,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -104911,7 +145098,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -104920,11 +145107,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision{} var expected string obj.DocSessionID = expected @@ -104934,7 +145121,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -104947,7 +145134,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -104957,7 +145144,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -104970,7 +145157,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision{} var expected int obj.Generation = expected @@ -104980,7 +145167,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -104992,11 +145179,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndex } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision{} var fernTestValueDocSessionID string // Act @@ -105027,7 +145214,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetIn t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -105058,7 +145245,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetIn t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision{} var fernTestValueGeneration int // Act @@ -105088,9 +145275,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetIn } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -105098,7 +145285,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm(t }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm{} var fernTestValueNm string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -105107,11 +145294,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm(t } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm{} var expected int obj.PageObjectNumber = expected @@ -105121,7 +145308,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm(t t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -105134,7 +145321,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm(t t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm{} var expected string obj.Nm = expected @@ -105144,7 +145331,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm(t t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -105156,11 +145343,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm(t } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm{} var fernTestValuePageObjectNumber int // Act @@ -105191,7 +145378,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetIn t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm{} var fernTestValueNm string // Act @@ -105221,9 +145408,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetIn } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -105231,7 +145418,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjec }) t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber{} var fernTestValueAnnotObjectNumber int obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) @@ -105240,11 +145427,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjec } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber{} var expected int obj.PageObjectNumber = expected @@ -105254,7 +145441,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjec t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -105267,7 +145454,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjec t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber{} var expected int obj.AnnotObjectNumber = expected @@ -105277,7 +145464,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjec t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -105289,11 +145476,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjec } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber{} var fernTestValuePageObjectNumber int // Act @@ -105324,7 +145511,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetIn t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber{} var fernTestValueAnnotObjectNumber int // Act @@ -105354,9 +145541,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetIn } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor(t *testing.T) { t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor{} var fernTestValueR int obj.SetR(fernTestValueR) assert.Equal(t, fernTestValueR, obj.R) @@ -105364,7 +145551,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor( }) t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor{} var fernTestValueG int obj.SetG(fernTestValueG) assert.Equal(t, fernTestValueG, obj.G) @@ -105372,7 +145559,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor( }) t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor{} var fernTestValueB int obj.SetB(fernTestValueB) assert.Equal(t, fernTestValueB, obj.B) @@ -105381,11 +145568,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor( } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor(t *testing.T) { t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor{} var expected int obj.R = expected @@ -105395,7 +145582,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor( t.Run("GetR_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -105408,7 +145595,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor( t.Run("GetG", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor{} var expected int obj.G = expected @@ -105418,7 +145605,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor( t.Run("GetG_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -105431,7 +145618,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor( t.Run("GetB", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor{} var expected int obj.B = expected @@ -105441,7 +145628,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor( t.Run("GetB_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -105453,11 +145640,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor( } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor(t *testing.T) { t.Run("SetR_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor{} var fernTestValueR int // Act @@ -105488,7 +145675,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetIn t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor{} var fernTestValueG int // Act @@ -105519,7 +145706,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetIn t.Run("SetB_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetInteriorColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor{} var fernTestValueB int // Act @@ -105549,9 +145736,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetIn } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetRect(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect(t *testing.T) { t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect{} var fernTestValueLeft float64 obj.SetLeft(fernTestValueLeft) assert.Equal(t, fernTestValueLeft, obj.Left) @@ -105559,7 +145746,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetRect(t *testin }) t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect{} var fernTestValueBottom float64 obj.SetBottom(fernTestValueBottom) assert.Equal(t, fernTestValueBottom, obj.Bottom) @@ -105567,7 +145754,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetRect(t *testin }) t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect{} var fernTestValueRight float64 obj.SetRight(fernTestValueRight) assert.Equal(t, fernTestValueRight, obj.Right) @@ -105575,7 +145762,7 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetRect(t *testin }) t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect{} var fernTestValueTop float64 obj.SetTop(fernTestValueTop) assert.Equal(t, fernTestValueTop, obj.Top) @@ -105584,11 +145771,11 @@ func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetRect(t *testin } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetRect(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect(t *testing.T) { t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect{} var expected float64 obj.Left = expected @@ -105598,7 +145785,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetRect(t *testin t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -105611,7 +145798,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetRect(t *testin t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect{} var expected float64 obj.Bottom = expected @@ -105621,7 +145808,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetRect(t *testin t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -105634,7 +145821,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetRect(t *testin t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect{} var expected float64 obj.Right = expected @@ -105644,7 +145831,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetRect(t *testin t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -105657,7 +145844,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetRect(t *testin t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect{} var expected float64 obj.Top = expected @@ -105667,7 +145854,7 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetRect(t *testin t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -105679,11 +145866,11 @@ func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetRect(t *testin } -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetRect(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect(t *testing.T) { t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect{} var fernTestValueLeft float64 // Act @@ -105693,362 +145880,32 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetRe bytes, err := json.Marshal(obj) require.NoError(t, err, "marshaling should succeed for test setup") - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetBottom_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRect{} - var fernTestValueBottom float64 - - // Act - obj.SetBottom(fernTestValueBottom) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetRight_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRect{} - var fernTestValueRight float64 - - // Act - obj.SetRight(fernTestValueRight) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetTop_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRect{} - var fernTestValueTop float64 - - // Act - obj.SetTop(fernTestValueTop) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetRef(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRef{} - var expected string - obj.Kind = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") - }) - - t.Run("GetKind_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRef - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetKind() // Should return zero value - }) - - t.Run("GetObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber - obj.ObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") - }) - - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRef{} - obj.ObjectNumber = nil - - // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") - }) - - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRef - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetObjectNumber() // Should return zero value - }) - - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm - obj.Nm = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") - }) - - t.Run("GetNm_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRef{} - obj.Nm = nil - - // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") - }) - - t.Run("GetNm_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRef - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNm() // Should return zero value - }) - - t.Run("GetIndex", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRef{} - var expected *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex - obj.Index = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") - }) - - t.Run("GetIndex_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRef{} - obj.Index = nil - - // Act & Assert - assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") - }) - - t.Run("GetIndex_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRef - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetIndex() // Should return zero value - }) - -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetIndex", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex{} - var expected int - obj.Index = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") - }) - - t.Run("GetIndex_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetIndex() // Should return zero value - }) - - t.Run("GetRevision", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex{} - var expected *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision - obj.Revision = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") - }) - - t.Run("GetRevision_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex{} - obj.Revision = nil - - // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetRevision_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRevision() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect{} + var fernTestValueBottom float64 // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetBottom(fernTestValueBottom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -106072,14 +145929,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetRe // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex{} - var fernTestValueIndex int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect{} + var fernTestValueRight float64 // Act - obj.SetIndex(fernTestValueIndex) + obj.SetRight(fernTestValueRight) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -106103,14 +145960,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetRe // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndex{} - var fernTestValueRevision *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect{} + var fernTestValueTop float64 // Act - obj.SetRevision(fernTestValueRevision) + obj.SetTop(fernTestValueTop) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -106136,145 +145993,145 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetRe } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision{} - var fernTestValueDocSessionID string - obj.SetDocSessionID(fernTestValueDocSessionID) - assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences{} + var fernTestValueLeft float64 + obj.SetLeft(fernTestValueLeft) + assert.Equal(t, fernTestValueLeft, obj.Left) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + t.Run("SetTop", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) + t.Run("SetRight", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences{} + var fernTestValueRight float64 + obj.SetRight(fernTestValueRight) + assert.Equal(t, fernTestValueRight, obj.Right) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBottom", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences{} + var fernTestValueBottom float64 + obj.SetBottom(fernTestValueBottom) + assert.Equal(t, fernTestValueBottom, obj.Bottom) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision{} - var expected string - obj.DocSessionID = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences{} + var expected float64 + obj.Left = expected // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") }) - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDocSessionID() // Should return zero value + _ = obj.GetLeft() // Should return zero value }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences{} + var expected float64 + obj.Top = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetTop() // Should return zero value }) - t.Run("GetGeneration", func(t *testing.T) { + t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision{} - var expected int - obj.Generation = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences{} + var expected float64 + obj.Right = expected // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") }) - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGeneration() // Should return zero value + _ = obj.GetRight() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision{} - var fernTestValueDocSessionID string - - // Act - obj.SetDocSessionID(fernTestValueDocSessionID) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences{} + var expected float64 + obj.Bottom = expected - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetBottom_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBottom() // Should return zero value }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences{} + var fernTestValueLeft float64 // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetLeft(fernTestValueLeft) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -106298,14 +146155,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetRe // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefIndexRevision{} - var fernTestValueGeneration int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences{} + var fernTestValueTop float64 // Act - obj.SetGeneration(fernTestValueGeneration) + obj.SetTop(fernTestValueTop) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -106329,85 +146186,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetRe // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetRefNm(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm{} - var fernTestValueNm string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetRefNm(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm{} - var expected string - obj.Nm = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") - }) - - t.Run("GetNm_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNm() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetRefNm(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences{} + var fernTestValueRight float64 // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetRight(fernTestValueRight) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -106431,14 +146217,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetRe // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefNm{} - var fernTestValueNm string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences{} + var fernTestValueBottom float64 // Act - obj.SetNm(fernTestValueNm) + obj.SetBottom(fernTestValueBottom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -106464,171 +146250,163 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetRe } -func TestSettersDocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef{} + var expected string + obj.Kind = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetKind() // Should return zero value }) - t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber + obj.ObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") }) - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef{} + obj.ObjectNumber = nil + + // Act & Assert + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + }) + + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAnnotObjectNumber() // Should return zero value + _ = obj.GetObjectNumber() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm + obj.Nm = expected - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetNm_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef{} + obj.Nm = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value }) - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponseAnnotationsItemWidgetRefObjectNumber{} - var fernTestValueAnnotObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex + obj.Index = expected - // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef{} + obj.Index = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value }) } -func TestSettersDocAnnotationsList200ResponsePageState(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponsePageState{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsList200ResponsePageState{} - var fernTestValueRevision *DocAnnotationsList200ResponsePageStateRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetWeakAnnotationState", func(t *testing.T) { - obj := &DocAnnotationsList200ResponsePageState{} - var fernTestValueWeakAnnotationState *DocAnnotationsList200ResponsePageStateWeakAnnotationState - obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) - assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) + t.Run("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList200ResponsePageState(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponsePageState{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex{} var expected int obj.PageObjectNumber = expected @@ -106638,7 +146416,7 @@ func TestGettersDocAnnotationsList200ResponsePageState(t *testing.T) { t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponsePageState + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -106648,79 +146426,69 @@ func TestGettersDocAnnotationsList200ResponsePageState(t *testing.T) { _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetRevision", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponsePageState{} - var expected *DocAnnotationsList200ResponsePageStateRevision - obj.Revision = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") - }) - - t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponsePageState{} - obj.Revision = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex{} + var expected int + obj.Index = expected // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponsePageState + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRevision() // Should return zero value + _ = obj.GetIndex() // Should return zero value }) - t.Run("GetWeakAnnotationState", func(t *testing.T) { + t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponsePageState{} - var expected *DocAnnotationsList200ResponsePageStateWeakAnnotationState - obj.WeakAnnotationState = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision + obj.Revision = expected // Act & Assert - assert.Equal(t, expected, obj.GetWeakAnnotationState(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") }) - t.Run("GetWeakAnnotationState_NilValue", func(t *testing.T) { + t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponsePageState{} - obj.WeakAnnotationState = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex{} + obj.Revision = nil // Act & Assert - assert.Nil(t, obj.GetWeakAnnotationState(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") }) - t.Run("GetWeakAnnotationState_NilReceiver", func(t *testing.T) { + t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponsePageState + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetWeakAnnotationState() // Should return zero value + _ = obj.GetRevision() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList200ResponsePageState(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponsePageState{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex{} var fernTestValuePageObjectNumber int // Act @@ -106748,14 +146516,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponsePageState(t *testing.T) // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponsePageState{} - var fernTestValueRevision *DocAnnotationsList200ResponsePageStateRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex{} + var fernTestValueIndex int // Act - obj.SetRevision(fernTestValueRevision) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -106779,14 +146547,14 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponsePageState(t *testing.T) // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWeakAnnotationState_MarksExplicit", func(t *testing.T) { + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponsePageState{} - var fernTestValueWeakAnnotationState *DocAnnotationsList200ResponsePageStateWeakAnnotationState + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision // Act - obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) + obj.SetRevision(fernTestValueRevision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -106812,9 +146580,9 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponsePageState(t *testing.T) } -func TestSettersDocAnnotationsList200ResponsePageStateRevision(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsList200ResponsePageStateRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -106822,7 +146590,7 @@ func TestSettersDocAnnotationsList200ResponsePageStateRevision(t *testing.T) { }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsList200ResponsePageStateRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -106830,7 +146598,7 @@ func TestSettersDocAnnotationsList200ResponsePageStateRevision(t *testing.T) { }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsList200ResponsePageStateRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -106839,11 +146607,11 @@ func TestSettersDocAnnotationsList200ResponsePageStateRevision(t *testing.T) { } -func TestGettersDocAnnotationsList200ResponsePageStateRevision(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponsePageStateRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision{} var expected string obj.DocSessionID = expected @@ -106853,7 +146621,7 @@ func TestGettersDocAnnotationsList200ResponsePageStateRevision(t *testing.T) { t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponsePageStateRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -106866,7 +146634,7 @@ func TestGettersDocAnnotationsList200ResponsePageStateRevision(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponsePageStateRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -106876,7 +146644,7 @@ func TestGettersDocAnnotationsList200ResponsePageStateRevision(t *testing.T) { t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponsePageStateRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -106889,7 +146657,7 @@ func TestGettersDocAnnotationsList200ResponsePageStateRevision(t *testing.T) { t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponsePageStateRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision{} var expected int obj.Generation = expected @@ -106899,7 +146667,7 @@ func TestGettersDocAnnotationsList200ResponsePageStateRevision(t *testing.T) { t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList200ResponsePageStateRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -106911,11 +146679,11 @@ func TestGettersDocAnnotationsList200ResponsePageStateRevision(t *testing.T) { } -func TestSettersMarkExplicitDocAnnotationsList200ResponsePageStateRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponsePageStateRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision{} var fernTestValueDocSessionID string // Act @@ -106946,7 +146714,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponsePageStateRevision(t *te t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponsePageStateRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -106977,7 +146745,7 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponsePageStateRevision(t *te t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList200ResponsePageStateRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision{} var fernTestValueGeneration int // Act @@ -107007,380 +146775,83 @@ func TestSettersMarkExplicitDocAnnotationsList200ResponsePageStateRevision(t *te } -func TestGettersDocAnnotationsList200ResponsePageStateWeakAnnotationState(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponsePageStateWeakAnnotationState{} - var expected string - obj.Kind = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") - }) - - t.Run("GetKind_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponsePageStateWeakAnnotationState - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetKind() // Should return zero value - }) - - t.Run("GetUnknown", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponsePageStateWeakAnnotationState{} - var expected *DocAnnotationsList200ResponsePageStateWeakAnnotationStateUnknown - obj.Unknown = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") - }) - - t.Run("GetUnknown_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponsePageStateWeakAnnotationState{} - obj.Unknown = nil - - // Act & Assert - assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") - }) - - t.Run("GetUnknown_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponsePageStateWeakAnnotationState - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetUnknown() // Should return zero value - }) - - t.Run("GetKnown", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponsePageStateWeakAnnotationState{} - var expected *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown - obj.Known = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetKnown(), "getter should return the property value") - }) - - t.Run("GetKnown_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponsePageStateWeakAnnotationState{} - obj.Known = nil - - // Act & Assert - assert.Nil(t, obj.GetKnown(), "getter should return nil when property is nil") - }) - - t.Run("GetKnown_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponsePageStateWeakAnnotationState - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetKnown() // Should return zero value - }) - -} - -func TestSettersDocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown(t *testing.T) { - t.Run("SetHasAnyWeakAnnotations", func(t *testing.T) { - obj := &DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown{} - var fernTestValueHasAnyWeakAnnotations bool - obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) - assert.Equal(t, fernTestValueHasAnyWeakAnnotations, obj.HasAnyWeakAnnotations) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown(t *testing.T) { - t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown{} - var expected bool - obj.HasAnyWeakAnnotations = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetHasAnyWeakAnnotations(), "getter should return the property value") - }) - - t.Run("GetHasAnyWeakAnnotations_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetHasAnyWeakAnnotations() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown(t *testing.T) { - t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList200ResponsePageStateWeakAnnotationStateKnown{} - var fernTestValueHasAnyWeakAnnotations bool - - // Act - obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsList404Response(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocAnnotationsList404Response{} - var fernTestValueName DocAnnotationsList404ResponseName - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCode", func(t *testing.T) { - obj := &DocAnnotationsList404Response{} - var fernTestValueCode DocAnnotationsList404ResponseCode - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetMessage", func(t *testing.T) { - obj := &DocAnnotationsList404Response{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetDetails", func(t *testing.T) { - obj := &DocAnnotationsList404Response{} - var fernTestValueDetails map[string]any - obj.SetDetails(fernTestValueDetails) - assert.Equal(t, fernTestValueDetails, obj.Details) + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsList404Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList404Response{} - var expected DocAnnotationsList404ResponseName - obj.Name = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") - }) - - t.Run("GetName_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList404Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetName() // Should return zero value - }) - - t.Run("GetCode", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList404Response{} - var expected DocAnnotationsList404ResponseCode - obj.Code = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList404Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCode() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList404Response{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm{} var expected string - obj.Message = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") - }) - - t.Run("GetMessage_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsList404Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetMessage() // Should return zero value - }) - - t.Run("GetDetails", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList404Response{} - var expected map[string]any - obj.Details = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") - }) - - t.Run("GetDetails_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList404Response{} - obj.Details = nil + obj.Nm = expected // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsList404Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDetails() // Should return zero value + _ = obj.GetNm() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsList404Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList404Response{} - var fernTestValueName DocAnnotationsList404ResponseName - - // Act - obj.SetName(fernTestValueName) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetCode_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsList404Response{} - var fernTestValueCode DocAnnotationsList404ResponseCode - - // Act - obj.SetCode(fernTestValueCode) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetMessage_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList404Response{} - var fernTestValueMessage string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm{} + var fernTestValuePageObjectNumber int // Act - obj.SetMessage(fernTestValueMessage) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -107404,14 +146875,14 @@ func TestSettersMarkExplicitDocAnnotationsList404Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDetails_MarksExplicit", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsList404Response{} - var fernTestValueDetails map[string]any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm{} + var fernTestValueNm string // Act - obj.SetDetails(fernTestValueDetails) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -107437,103 +146908,83 @@ func TestSettersMarkExplicitDocAnnotationsList404Response(t *testing.T) { } -func TestSettersDocAnnotationsListAll200Response(t *testing.T) { - t.Run("SetPages", func(t *testing.T) { - obj := &DocAnnotationsListAll200Response{} - var fernTestValuePages []*DocAnnotationsListAll200ResponsePagesItem - obj.SetPages(fernTestValuePages) - assert.Equal(t, fernTestValuePages, obj.Pages) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetAuditHead", func(t *testing.T) { - obj := &DocAnnotationsListAll200Response{} - var fernTestValueAuditHead *int - obj.SetAuditHead(fernTestValueAuditHead) - assert.Equal(t, fernTestValueAuditHead, obj.AuditHead) + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200Response(t *testing.T) { - t.Run("GetPages", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200Response{} - var expected []*DocAnnotationsListAll200ResponsePagesItem - obj.Pages = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPages(), "getter should return the property value") - }) - - t.Run("GetPages_NilValue", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200Response{} - obj.Pages = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Nil(t, obj.GetPages(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetPages_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPages() // Should return zero value - }) - - t.Run("GetAuditHead", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200Response{} - var expected *int - obj.AuditHead = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAuditHead(), "getter should return the property value") + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetAuditHead_NilValue", func(t *testing.T) { + t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200Response{} - obj.AuditHead = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected // Act & Assert - assert.Nil(t, obj.GetAuditHead(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") }) - t.Run("GetAuditHead_NilReceiver", func(t *testing.T) { + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200Response + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAuditHead() // Should return zero value + _ = obj.GetAnnotObjectNumber() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200Response(t *testing.T) { - t.Run("SetPages_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200Response{} - var fernTestValuePages []*DocAnnotationsListAll200ResponsePagesItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber{} + var fernTestValuePageObjectNumber int // Act - obj.SetPages(fernTestValuePages) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -107557,14 +147008,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAuditHead_MarksExplicit", func(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200Response{} - var fernTestValueAuditHead *int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber{} + var fernTestValueAnnotObjectNumber int // Act - obj.SetAuditHead(fernTestValueAuditHead) + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -107590,103 +147041,103 @@ func TestSettersMarkExplicitDocAnnotationsListAll200Response(t *testing.T) { } -func TestSettersDocAnnotationsListAll200ResponsePagesItem(t *testing.T) { - t.Run("SetPageState", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItem{} - var fernTestValuePageState *DocAnnotationsListAll200ResponsePagesItemPageState - obj.SetPageState(fernTestValuePageState) - assert.Equal(t, fernTestValuePageState, obj.PageState) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText(t *testing.T) { + t.Run("SetBody", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText{} + var fernTestValueBody *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody + obj.SetBody(fernTestValueBody) + assert.Equal(t, fernTestValueBody, obj.Body) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetAnnotations", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItem{} - var fernTestValueAnnotations []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItem - obj.SetAnnotations(fernTestValueAnnotations) - assert.Equal(t, fernTestValueAnnotations, obj.Annotations) + t.Run("SetParagraphs", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText{} + var fernTestValueParagraphs []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem + obj.SetParagraphs(fernTestValueParagraphs) + assert.Equal(t, fernTestValueParagraphs, obj.Paragraphs) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItem(t *testing.T) { - t.Run("GetPageState", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText(t *testing.T) { + t.Run("GetBody", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemPageState - obj.PageState = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody + obj.Body = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageState(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBody(), "getter should return the property value") }) - t.Run("GetPageState_NilValue", func(t *testing.T) { + t.Run("GetBody_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItem{} - obj.PageState = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText{} + obj.Body = nil // Act & Assert - assert.Nil(t, obj.GetPageState(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetBody(), "getter should return nil when property is nil") }) - t.Run("GetPageState_NilReceiver", func(t *testing.T) { + t.Run("GetBody_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageState() // Should return zero value + _ = obj.GetBody() // Should return zero value }) - t.Run("GetAnnotations", func(t *testing.T) { + t.Run("GetParagraphs", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItem{} - var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItem - obj.Annotations = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText{} + var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem + obj.Paragraphs = expected // Act & Assert - assert.Equal(t, expected, obj.GetAnnotations(), "getter should return the property value") + assert.Equal(t, expected, obj.GetParagraphs(), "getter should return the property value") }) - t.Run("GetAnnotations_NilValue", func(t *testing.T) { + t.Run("GetParagraphs_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItem{} - obj.Annotations = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText{} + obj.Paragraphs = nil // Act & Assert - assert.Nil(t, obj.GetAnnotations(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetParagraphs(), "getter should return nil when property is nil") }) - t.Run("GetAnnotations_NilReceiver", func(t *testing.T) { + t.Run("GetParagraphs_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAnnotations() // Should return zero value + _ = obj.GetParagraphs() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItem(t *testing.T) { - t.Run("SetPageState_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText(t *testing.T) { + t.Run("SetBody_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItem{} - var fernTestValuePageState *DocAnnotationsListAll200ResponsePagesItemPageState + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText{} + var fernTestValueBody *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody // Act - obj.SetPageState(fernTestValuePageState) + obj.SetBody(fernTestValueBody) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -107710,14 +147161,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItem(t *testing // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotations_MarksExplicit", func(t *testing.T) { + t.Run("SetParagraphs_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItem{} - var fernTestValueAnnotations []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText{} + var fernTestValueParagraphs []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem // Act - obj.SetAnnotations(fernTestValueAnnotations) + obj.SetParagraphs(fernTestValueParagraphs) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -107743,1690 +147194,1554 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItem(t *testing } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItem(t *testing.T) { - t.Run("GetSubtype", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - var expected string - obj.Subtype = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") - }) - - t.Run("GetSubtype_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetSubtype() // Should return zero value - }) - - t.Run("GetHighlight", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight - obj.Highlight = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetHighlight(), "getter should return the property value") - }) - - t.Run("GetHighlight_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - obj.Highlight = nil - - // Act & Assert - assert.Nil(t, obj.GetHighlight(), "getter should return nil when property is nil") - }) - - t.Run("GetHighlight_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetHighlight() // Should return zero value - }) - - t.Run("GetUnderline", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline - obj.Underline = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetUnderline(), "getter should return the property value") - }) - - t.Run("GetUnderline_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - obj.Underline = nil - - // Act & Assert - assert.Nil(t, obj.GetUnderline(), "getter should return nil when property is nil") - }) - - t.Run("GetUnderline_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetUnderline() // Should return zero value - }) - - t.Run("GetSquiggly", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly - obj.Squiggly = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetSquiggly(), "getter should return the property value") - }) - - t.Run("GetSquiggly_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - obj.Squiggly = nil - - // Act & Assert - assert.Nil(t, obj.GetSquiggly(), "getter should return nil when property is nil") - }) - - t.Run("GetSquiggly_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetSquiggly() // Should return zero value - }) - - t.Run("GetStrikeout", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout - obj.Strikeout = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetStrikeout(), "getter should return the property value") - }) - - t.Run("GetStrikeout_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - obj.Strikeout = nil - - // Act & Assert - assert.Nil(t, obj.GetStrikeout(), "getter should return nil when property is nil") - }) - - t.Run("GetStrikeout_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetStrikeout() // Should return zero value - }) - - t.Run("GetCircle", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle - obj.Circle = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetCircle(), "getter should return the property value") - }) - - t.Run("GetCircle_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - obj.Circle = nil - - // Act & Assert - assert.Nil(t, obj.GetCircle(), "getter should return nil when property is nil") - }) - - t.Run("GetCircle_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetCircle() // Should return zero value - }) - - t.Run("GetSquare", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare - obj.Square = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetSquare(), "getter should return the property value") +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody(t *testing.T) { + t.Run("SetFamily", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var fernTestValueFamily string + obj.SetFamily(fernTestValueFamily) + assert.Equal(t, fernTestValueFamily, obj.Family) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetSquare_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - obj.Square = nil - - // Act & Assert - assert.Nil(t, obj.GetSquare(), "getter should return nil when property is nil") + t.Run("SetWeight", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var fernTestValueWeight int + obj.SetWeight(fernTestValueWeight) + assert.Equal(t, fernTestValueWeight, obj.Weight) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetSquare_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetSquare() // Should return zero value + t.Run("SetItalic", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var fernTestValueItalic bool + obj.SetItalic(fernTestValueItalic) + assert.Equal(t, fernTestValueItalic, obj.Italic) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetPolygon", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon - obj.Polygon = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPolygon(), "getter should return the property value") + t.Run("SetSize", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var fernTestValueSize float64 + obj.SetSize(fernTestValueSize) + assert.Equal(t, fernTestValueSize, obj.Size) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetPolygon_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - obj.Polygon = nil - - // Act & Assert - assert.Nil(t, obj.GetPolygon(), "getter should return nil when property is nil") + t.Run("SetColor", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var fernTestValueColor string + obj.SetColor(fernTestValueColor) + assert.Equal(t, fernTestValueColor, obj.Color) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetPolygon_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPolygon() // Should return zero value + t.Run("SetDecoration", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var fernTestValueDecoration []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItem + obj.SetDecoration(fernTestValueDecoration) + assert.Equal(t, fernTestValueDecoration, obj.Decoration) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetPolyline", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline - obj.Polyline = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPolyline(), "getter should return the property value") + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var fernTestValueScript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScript + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetPolyline_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - obj.Polyline = nil - - // Act & Assert - assert.Nil(t, obj.GetPolyline(), "getter should return nil when property is nil") + t.Run("SetLetterSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var fernTestValueLetterSpacing float64 + obj.SetLetterSpacing(fernTestValueLetterSpacing) + assert.Equal(t, fernTestValueLetterSpacing, obj.LetterSpacing) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetPolyline_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPolyline() // Should return zero value + t.Run("SetHorizontalScale", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var fernTestValueHorizontalScale float64 + obj.SetHorizontalScale(fernTestValueHorizontalScale) + assert.Equal(t, fernTestValueHorizontalScale, obj.HorizontalScale) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetLine", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine - obj.Line = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetLine(), "getter should return the property value") + t.Run("SetUnknown", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var fernTestValueUnknown *string + obj.SetUnknown(fernTestValueUnknown) + assert.Equal(t, fernTestValueUnknown, obj.Unknown) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetLine_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - obj.Line = nil - - // Act & Assert - assert.Nil(t, obj.GetLine(), "getter should return nil when property is nil") + t.Run("SetAlign", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var fernTestValueAlign DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlign + obj.SetAlign(fernTestValueAlign) + assert.Equal(t, fernTestValueAlign, obj.Align) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetLine_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetLine() // Should return zero value + t.Run("SetDir", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var fernTestValueDir DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDir + obj.SetDir(fernTestValueDir) + assert.Equal(t, fernTestValueDir, obj.Dir) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetLink", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink - obj.Link = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetLink(), "getter should return the property value") + t.Run("SetLineHeight", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var fernTestValueLineHeight *float64 + obj.SetLineHeight(fernTestValueLineHeight) + assert.Equal(t, fernTestValueLineHeight, obj.LineHeight) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetLink_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - obj.Link = nil - - // Act & Assert - assert.Nil(t, obj.GetLink(), "getter should return nil when property is nil") + t.Run("SetMargins", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var fernTestValueMargins *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins + obj.SetMargins(fernTestValueMargins) + assert.Equal(t, fernTestValueMargins, obj.Margins) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetLink_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetLink() // Should return zero value + t.Run("SetTextIndent", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var fernTestValueTextIndent *float64 + obj.SetTextIndent(fernTestValueTextIndent) + assert.Equal(t, fernTestValueTextIndent, obj.TextIndent) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetInk", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk - obj.Ink = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetInk(), "getter should return the property value") - }) +} - t.Run("GetInk_NilValue", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody(t *testing.T) { + t.Run("GetFamily", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - obj.Ink = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var expected string + obj.Family = expected // Act & Assert - assert.Nil(t, obj.GetInk(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetFamily(), "getter should return the property value") }) - t.Run("GetInk_NilReceiver", func(t *testing.T) { + t.Run("GetFamily_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInk() // Should return zero value - }) - - t.Run("GetFreeText", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText - obj.FreeText = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetFreeText(), "getter should return the property value") + _ = obj.GetFamily() // Should return zero value }) - t.Run("GetFreeText_NilValue", func(t *testing.T) { + t.Run("GetWeight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - obj.FreeText = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var expected int + obj.Weight = expected // Act & Assert - assert.Nil(t, obj.GetFreeText(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetWeight(), "getter should return the property value") }) - t.Run("GetFreeText_NilReceiver", func(t *testing.T) { + t.Run("GetWeight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFreeText() // Should return zero value - }) - - t.Run("GetCaret", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret - obj.Caret = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetCaret(), "getter should return the property value") + _ = obj.GetWeight() // Should return zero value }) - t.Run("GetCaret_NilValue", func(t *testing.T) { + t.Run("GetItalic", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - obj.Caret = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var expected bool + obj.Italic = expected // Act & Assert - assert.Nil(t, obj.GetCaret(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetItalic(), "getter should return the property value") }) - t.Run("GetCaret_NilReceiver", func(t *testing.T) { + t.Run("GetItalic_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCaret() // Should return zero value - }) - - t.Run("GetText", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText - obj.Text = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetText(), "getter should return the property value") + _ = obj.GetItalic() // Should return zero value }) - t.Run("GetText_NilValue", func(t *testing.T) { + t.Run("GetSize", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - obj.Text = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var expected float64 + obj.Size = expected // Act & Assert - assert.Nil(t, obj.GetText(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetSize(), "getter should return the property value") }) - t.Run("GetText_NilReceiver", func(t *testing.T) { + t.Run("GetSize_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetText() // Should return zero value - }) - - t.Run("GetStamp", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp - obj.Stamp = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetStamp(), "getter should return the property value") + _ = obj.GetSize() // Should return zero value }) - t.Run("GetStamp_NilValue", func(t *testing.T) { + t.Run("GetColor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - obj.Stamp = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var expected string + obj.Color = expected // Act & Assert - assert.Nil(t, obj.GetStamp(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") }) - t.Run("GetStamp_NilReceiver", func(t *testing.T) { + t.Run("GetColor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetStamp() // Should return zero value + _ = obj.GetColor() // Should return zero value }) - t.Run("GetFileAttachment", func(t *testing.T) { + t.Run("GetDecoration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment - obj.FileAttachment = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItem + obj.Decoration = expected // Act & Assert - assert.Equal(t, expected, obj.GetFileAttachment(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDecoration(), "getter should return the property value") }) - t.Run("GetFileAttachment_NilValue", func(t *testing.T) { + t.Run("GetDecoration_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - obj.FileAttachment = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + obj.Decoration = nil // Act & Assert - assert.Nil(t, obj.GetFileAttachment(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetDecoration(), "getter should return nil when property is nil") }) - t.Run("GetFileAttachment_NilReceiver", func(t *testing.T) { + t.Run("GetDecoration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFileAttachment() // Should return zero value - }) - - t.Run("GetWidget", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget - obj.Widget = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetWidget(), "getter should return the property value") + _ = obj.GetDecoration() // Should return zero value }) - t.Run("GetWidget_NilValue", func(t *testing.T) { + t.Run("GetScript", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - obj.Widget = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScript + obj.Script = expected // Act & Assert - assert.Nil(t, obj.GetWidget(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") }) - t.Run("GetWidget_NilReceiver", func(t *testing.T) { + t.Run("GetScript_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetWidget() // Should return zero value - }) - - t.Run("GetRedact", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact - obj.Redact = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRedact(), "getter should return the property value") + _ = obj.GetScript() // Should return zero value }) - t.Run("GetRedact_NilValue", func(t *testing.T) { + t.Run("GetLetterSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - obj.Redact = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var expected float64 + obj.LetterSpacing = expected // Act & Assert - assert.Nil(t, obj.GetRedact(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetLetterSpacing(), "getter should return the property value") }) - t.Run("GetRedact_NilReceiver", func(t *testing.T) { + t.Run("GetLetterSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRedact() // Should return zero value - }) - - t.Run("GetUnsupported", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported - obj.Unsupported = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetUnsupported(), "getter should return the property value") + _ = obj.GetLetterSpacing() // Should return zero value }) - t.Run("GetUnsupported_NilValue", func(t *testing.T) { + t.Run("GetHorizontalScale", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItem{} - obj.Unsupported = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var expected float64 + obj.HorizontalScale = expected // Act & Assert - assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetHorizontalScale(), "getter should return the property value") }) - t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { + t.Run("GetHorizontalScale_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUnsupported() // Should return zero value - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret(t *testing.T) { - t.Run("SetRef", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef - obj.SetRef(fernTestValueRef) - assert.Equal(t, fernTestValueRef, obj.Ref) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIdentityQuality", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality - obj.SetIdentityQuality(fernTestValueIdentityQuality) - assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueNm *string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetFlags", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags - obj.SetFlags(fernTestValueFlags) - assert.Equal(t, fernTestValueFlags, obj.Flags) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRect", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect - obj.SetRect(fernTestValueRect) - assert.Equal(t, fernTestValueRect, obj.Rect) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueContents *string - obj.SetContents(fernTestValueContents) - assert.Equal(t, fernTestValueContents, obj.Contents) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetSubject", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueSubject *string - obj.SetSubject(fernTestValueSubject) - assert.Equal(t, fernTestValueSubject, obj.Subject) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAuthor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueAuthor *string - obj.SetAuthor(fernTestValueAuthor) - assert.Equal(t, fernTestValueAuthor, obj.Author) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCreated", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueCreated *time.Time - obj.SetCreated(fernTestValueCreated) - assert.Equal(t, fernTestValueCreated, obj.Created) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetModified", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueModified *time.Time - obj.SetModified(fernTestValueModified) - assert.Equal(t, fernTestValueModified, obj.Modified) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetBlendMode", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode - obj.SetBlendMode(fernTestValueBlendMode) - assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetInReplyTo", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo - obj.SetInReplyTo(fernTestValueInReplyTo) - assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetReplyType", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType - obj.SetReplyType(fernTestValueReplyType) - assert.Equal(t, fernTestValueReplyType, obj.ReplyType) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetUserID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueUserID *string - obj.SetUserID(fernTestValueUserID) - assert.Equal(t, fernTestValueUserID, obj.UserID) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetGroupID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueGroupID *string - obj.SetGroupID(fernTestValueGroupID) - assert.Equal(t, fernTestValueGroupID, obj.GroupID) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCreatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueCreatedBy *string - obj.SetCreatedBy(fernTestValueCreatedBy) - assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetUpdatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueUpdatedBy *string - obj.SetUpdatedBy(fernTestValueUpdatedBy) - assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetActions", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueActions *PdfAnnotationActions - obj.SetActions(fernTestValueActions) - assert.Equal(t, fernTestValueActions, obj.Actions) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetColor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor - obj.SetColor(fernTestValueColor) - assert.Equal(t, fernTestValueColor, obj.Color) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetOpacity", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueOpacity float64 - obj.SetOpacity(fernTestValueOpacity) - assert.Equal(t, fernTestValueOpacity, obj.Opacity) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIntent", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueIntent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent - obj.SetIntent(fernTestValueIntent) - assert.Equal(t, fernTestValueIntent, obj.Intent) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRectDifferences", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueRectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences - obj.SetRectDifferences(fernTestValueRectDifferences) - assert.Equal(t, fernTestValueRectDifferences, obj.RectDifferences) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRotation", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueRotation *float64 - obj.SetRotation(fernTestValueRotation) - assert.Equal(t, fernTestValueRotation, obj.Rotation) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetUnrotatedRect", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueUnrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect - obj.SetUnrotatedRect(fernTestValueUnrotatedRect) - assert.Equal(t, fernTestValueUnrotatedRect, obj.UnrotatedRect) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret(t *testing.T) { - t.Run("GetRef", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef - obj.Ref = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") + _ = obj.GetHorizontalScale() // Should return zero value }) - t.Run("GetRef_NilValue", func(t *testing.T) { + t.Run("GetUnknown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - obj.Ref = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var expected *string + obj.Unknown = expected // Act & Assert - assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") - }) - - t.Run("GetRef_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRef() // Should return zero value + assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetUnknown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + obj.Unknown = nil // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetUnknown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetUnknown() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetAlign", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var expected int - obj.Index = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlign + obj.Align = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAlign(), "getter should return the property value") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetAlign_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetAlign() // Should return zero value }) - t.Run("GetIdentityQuality", func(t *testing.T) { + t.Run("GetDir", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality - obj.IdentityQuality = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDir + obj.Dir = expected // Act & Assert - assert.Equal(t, expected, obj.GetIdentityQuality(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDir(), "getter should return the property value") }) - t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { + t.Run("GetDir_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIdentityQuality() // Should return zero value + _ = obj.GetDir() // Should return zero value }) - t.Run("GetNm", func(t *testing.T) { + t.Run("GetLineHeight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var expected *string - obj.Nm = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var expected *float64 + obj.LineHeight = expected // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLineHeight(), "getter should return the property value") }) - t.Run("GetNm_NilValue", func(t *testing.T) { + t.Run("GetLineHeight_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - obj.Nm = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + obj.LineHeight = nil // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetLineHeight(), "getter should return nil when property is nil") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetLineHeight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetLineHeight() // Should return zero value }) - t.Run("GetFlags", func(t *testing.T) { + t.Run("GetMargins", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags - obj.Flags = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins + obj.Margins = expected // Act & Assert - assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") + assert.Equal(t, expected, obj.GetMargins(), "getter should return the property value") }) - t.Run("GetFlags_NilValue", func(t *testing.T) { + t.Run("GetMargins_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - obj.Flags = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + obj.Margins = nil // Act & Assert - assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetMargins(), "getter should return nil when property is nil") }) - t.Run("GetFlags_NilReceiver", func(t *testing.T) { + t.Run("GetMargins_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFlags() // Should return zero value + _ = obj.GetMargins() // Should return zero value }) - t.Run("GetRect", func(t *testing.T) { + t.Run("GetTextIndent", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect - obj.Rect = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var expected *float64 + obj.TextIndent = expected // Act & Assert - assert.Equal(t, expected, obj.GetRect(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTextIndent(), "getter should return the property value") }) - t.Run("GetRect_NilValue", func(t *testing.T) { + t.Run("GetTextIndent_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - obj.Rect = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + obj.TextIndent = nil // Act & Assert - assert.Nil(t, obj.GetRect(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetTextIndent(), "getter should return nil when property is nil") }) - t.Run("GetRect_NilReceiver", func(t *testing.T) { + t.Run("GetTextIndent_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRect() // Should return zero value + _ = obj.GetTextIndent() // Should return zero value }) - t.Run("GetContents", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody(t *testing.T) { + t.Run("SetFamily_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var expected *string - obj.Contents = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var fernTestValueFamily string - // Act & Assert - assert.Equal(t, expected, obj.GetContents(), "getter should return the property value") + // Act + obj.SetFamily(fernTestValueFamily) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetContents_NilValue", func(t *testing.T) { + t.Run("SetWeight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - obj.Contents = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var fernTestValueWeight int - // Act & Assert - assert.Nil(t, obj.GetContents(), "getter should return nil when property is nil") - }) + // Act + obj.SetWeight(fernTestValueWeight) - t.Run("GetContents_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetContents() // Should return zero value + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetSubject", func(t *testing.T) { + t.Run("SetItalic_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var expected *string - obj.Subject = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var fernTestValueItalic bool - // Act & Assert - assert.Equal(t, expected, obj.GetSubject(), "getter should return the property value") + // Act + obj.SetItalic(fernTestValueItalic) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetSubject_NilValue", func(t *testing.T) { + t.Run("SetSize_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - obj.Subject = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var fernTestValueSize float64 - // Act & Assert - assert.Nil(t, obj.GetSubject(), "getter should return nil when property is nil") + // Act + obj.SetSize(fernTestValueSize) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetSubject_NilReceiver", func(t *testing.T) { + t.Run("SetColor_MarksExplicit", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetSubject() // Should return zero value + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var fernTestValueColor string + + // Act + obj.SetColor(fernTestValueColor) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetAuthor", func(t *testing.T) { + t.Run("SetDecoration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var expected *string - obj.Author = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var fernTestValueDecoration []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItem - // Act & Assert - assert.Equal(t, expected, obj.GetAuthor(), "getter should return the property value") + // Act + obj.SetDecoration(fernTestValueDecoration) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetAuthor_NilValue", func(t *testing.T) { + t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - obj.Author = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var fernTestValueScript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScript - // Act & Assert - assert.Nil(t, obj.GetAuthor(), "getter should return nil when property is nil") + // Act + obj.SetScript(fernTestValueScript) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetAuthor_NilReceiver", func(t *testing.T) { + t.Run("SetLetterSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAuthor() // Should return zero value + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var fernTestValueLetterSpacing float64 + + // Act + obj.SetLetterSpacing(fernTestValueLetterSpacing) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetCreated", func(t *testing.T) { + t.Run("SetHorizontalScale_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var expected *time.Time - obj.Created = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var fernTestValueHorizontalScale float64 - // Act & Assert - assert.Equal(t, expected, obj.GetCreated(), "getter should return the property value") + // Act + obj.SetHorizontalScale(fernTestValueHorizontalScale) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetCreated_NilValue", func(t *testing.T) { + t.Run("SetUnknown_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - obj.Created = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var fernTestValueUnknown *string - // Act & Assert - assert.Nil(t, obj.GetCreated(), "getter should return nil when property is nil") + // Act + obj.SetUnknown(fernTestValueUnknown) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetCreated_NilReceiver", func(t *testing.T) { + t.Run("SetAlign_MarksExplicit", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetCreated() // Should return zero value + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var fernTestValueAlign DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlign + + // Act + obj.SetAlign(fernTestValueAlign) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetModified", func(t *testing.T) { + t.Run("SetDir_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var expected *time.Time - obj.Modified = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var fernTestValueDir DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDir - // Act & Assert - assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") + // Act + obj.SetDir(fernTestValueDir) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetModified_NilValue", func(t *testing.T) { + t.Run("SetLineHeight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - obj.Modified = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var fernTestValueLineHeight *float64 - // Act & Assert - assert.Nil(t, obj.GetModified(), "getter should return nil when property is nil") + // Act + obj.SetLineHeight(fernTestValueLineHeight) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetModified_NilReceiver", func(t *testing.T) { + t.Run("SetMargins_MarksExplicit", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetModified() // Should return zero value + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var fernTestValueMargins *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins + + // Act + obj.SetMargins(fernTestValueMargins) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetBlendMode", func(t *testing.T) { + t.Run("SetTextIndent_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode - obj.BlendMode = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + var fernTestValueTextIndent *float64 - // Act & Assert - assert.Equal(t, expected, obj.GetBlendMode(), "getter should return the property value") + // Act + obj.SetTextIndent(fernTestValueTextIndent) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetBlendMode() // Should return zero value +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins(t *testing.T) { + t.Run("SetTop", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetInReplyTo", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo - obj.InReplyTo = expected + t.Run("SetBottom", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins{} + var fernTestValueBottom float64 + obj.SetBottom(fernTestValueBottom) + assert.Equal(t, fernTestValueBottom, obj.Bottom) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Equal(t, expected, obj.GetInReplyTo(), "getter should return the property value") + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins{} + var fernTestValueLeft float64 + obj.SetLeft(fernTestValueLeft) + assert.Equal(t, fernTestValueLeft, obj.Left) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetInReplyTo_NilValue", func(t *testing.T) { + t.Run("SetRight", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins{} + var fernTestValueRight float64 + obj.SetRight(fernTestValueRight) + assert.Equal(t, fernTestValueRight, obj.Right) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins(t *testing.T) { + t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - obj.InReplyTo = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins{} + var expected float64 + obj.Top = expected // Act & Assert - assert.Nil(t, obj.GetInReplyTo(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") }) - t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { + t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInReplyTo() // Should return zero value - }) - - t.Run("GetReplyType", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType - obj.ReplyType = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetReplyType(), "getter should return the property value") + _ = obj.GetTop() // Should return zero value }) - t.Run("GetReplyType_NilValue", func(t *testing.T) { + t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - obj.ReplyType = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins{} + var expected float64 + obj.Bottom = expected // Act & Assert - assert.Nil(t, obj.GetReplyType(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") }) - t.Run("GetReplyType_NilReceiver", func(t *testing.T) { + t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReplyType() // Should return zero value - }) - - t.Run("GetUserID", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var expected *string - obj.UserID = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") + _ = obj.GetBottom() // Should return zero value }) - t.Run("GetUserID_NilValue", func(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - obj.UserID = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins{} + var expected float64 + obj.Left = expected // Act & Assert - assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") }) - t.Run("GetUserID_NilReceiver", func(t *testing.T) { + t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUserID() // Should return zero value - }) - - t.Run("GetGroupID", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var expected *string - obj.GroupID = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetGroupID(), "getter should return the property value") + _ = obj.GetLeft() // Should return zero value }) - t.Run("GetGroupID_NilValue", func(t *testing.T) { + t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - obj.GroupID = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins{} + var expected float64 + obj.Right = expected // Act & Assert - assert.Nil(t, obj.GetGroupID(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") }) - t.Run("GetGroupID_NilReceiver", func(t *testing.T) { + t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGroupID() // Should return zero value + _ = obj.GetRight() // Should return zero value }) - t.Run("GetCreatedBy", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins(t *testing.T) { + t.Run("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var expected *string - obj.CreatedBy = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins{} + var fernTestValueTop float64 - // Act & Assert - assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") + // Act + obj.SetTop(fernTestValueTop) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetCreatedBy_NilValue", func(t *testing.T) { + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - obj.CreatedBy = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins{} + var fernTestValueBottom float64 - // Act & Assert - assert.Nil(t, obj.GetCreatedBy(), "getter should return nil when property is nil") - }) + // Act + obj.SetBottom(fernTestValueBottom) - t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetCreatedBy() // Should return zero value + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetUpdatedBy", func(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var expected *string - obj.UpdatedBy = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins{} + var fernTestValueLeft float64 - // Act & Assert - assert.Equal(t, expected, obj.GetUpdatedBy(), "getter should return the property value") + // Act + obj.SetLeft(fernTestValueLeft) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { + t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - obj.UpdatedBy = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins{} + var fernTestValueRight float64 - // Act & Assert - assert.Nil(t, obj.GetUpdatedBy(), "getter should return nil when property is nil") + // Act + obj.SetRight(fernTestValueRight) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetUpdatedBy() // Should return zero value +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem(t *testing.T) { + t.Run("SetAlign", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} + var fernTestValueAlign *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlign + obj.SetAlign(fernTestValueAlign) + assert.Equal(t, fernTestValueAlign, obj.Align) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetActions", func(t *testing.T) { + t.Run("SetDir", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} + var fernTestValueDir *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDir + obj.SetDir(fernTestValueDir) + assert.Equal(t, fernTestValueDir, obj.Dir) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLineHeight", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} + var fernTestValueLineHeight *float64 + obj.SetLineHeight(fernTestValueLineHeight) + assert.Equal(t, fernTestValueLineHeight, obj.LineHeight) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMargins", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} + var fernTestValueMargins *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins + obj.SetMargins(fernTestValueMargins) + assert.Equal(t, fernTestValueMargins, obj.Margins) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetTextIndent", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} + var fernTestValueTextIndent *float64 + obj.SetTextIndent(fernTestValueTextIndent) + assert.Equal(t, fernTestValueTextIndent, obj.TextIndent) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetUnknown", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} + var fernTestValueUnknown *string + obj.SetUnknown(fernTestValueUnknown) + assert.Equal(t, fernTestValueUnknown, obj.Unknown) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRuns", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} + var fernTestValueRuns []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem + obj.SetRuns(fernTestValueRuns) + assert.Equal(t, fernTestValueRuns, obj.Runs) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem(t *testing.T) { + t.Run("GetAlign", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var expected *PdfAnnotationActions - obj.Actions = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlign + obj.Align = expected // Act & Assert - assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAlign(), "getter should return the property value") }) - t.Run("GetActions_NilValue", func(t *testing.T) { + t.Run("GetAlign_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - obj.Actions = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} + obj.Align = nil // Act & Assert - assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetAlign(), "getter should return nil when property is nil") }) - t.Run("GetActions_NilReceiver", func(t *testing.T) { + t.Run("GetAlign_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetActions() // Should return zero value + _ = obj.GetAlign() // Should return zero value }) - t.Run("GetColor", func(t *testing.T) { + t.Run("GetDir", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor - obj.Color = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDir + obj.Dir = expected // Act & Assert - assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDir(), "getter should return the property value") }) - t.Run("GetColor_NilValue", func(t *testing.T) { + t.Run("GetDir_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - obj.Color = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} + obj.Dir = nil // Act & Assert - assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetDir(), "getter should return nil when property is nil") }) - t.Run("GetColor_NilReceiver", func(t *testing.T) { + t.Run("GetDir_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetColor() // Should return zero value + _ = obj.GetDir() // Should return zero value + }) + + t.Run("GetLineHeight", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} + var expected *float64 + obj.LineHeight = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLineHeight(), "getter should return the property value") }) - t.Run("GetOpacity", func(t *testing.T) { + t.Run("GetLineHeight_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var expected float64 - obj.Opacity = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} + obj.LineHeight = nil // Act & Assert - assert.Equal(t, expected, obj.GetOpacity(), "getter should return the property value") + assert.Nil(t, obj.GetLineHeight(), "getter should return nil when property is nil") }) - t.Run("GetOpacity_NilReceiver", func(t *testing.T) { + t.Run("GetLineHeight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOpacity() // Should return zero value + _ = obj.GetLineHeight() // Should return zero value }) - t.Run("GetIntent", func(t *testing.T) { + t.Run("GetMargins", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent - obj.Intent = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins + obj.Margins = expected // Act & Assert - assert.Equal(t, expected, obj.GetIntent(), "getter should return the property value") + assert.Equal(t, expected, obj.GetMargins(), "getter should return the property value") }) - t.Run("GetIntent_NilValue", func(t *testing.T) { + t.Run("GetMargins_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - obj.Intent = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} + obj.Margins = nil // Act & Assert - assert.Nil(t, obj.GetIntent(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetMargins(), "getter should return nil when property is nil") }) - t.Run("GetIntent_NilReceiver", func(t *testing.T) { + t.Run("GetMargins_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIntent() // Should return zero value + _ = obj.GetMargins() // Should return zero value }) - t.Run("GetRectDifferences", func(t *testing.T) { + t.Run("GetTextIndent", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences - obj.RectDifferences = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} + var expected *float64 + obj.TextIndent = expected // Act & Assert - assert.Equal(t, expected, obj.GetRectDifferences(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTextIndent(), "getter should return the property value") }) - t.Run("GetRectDifferences_NilValue", func(t *testing.T) { + t.Run("GetTextIndent_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - obj.RectDifferences = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} + obj.TextIndent = nil // Act & Assert - assert.Nil(t, obj.GetRectDifferences(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetTextIndent(), "getter should return nil when property is nil") }) - t.Run("GetRectDifferences_NilReceiver", func(t *testing.T) { + t.Run("GetTextIndent_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRectDifferences() // Should return zero value + _ = obj.GetTextIndent() // Should return zero value }) - t.Run("GetRotation", func(t *testing.T) { + t.Run("GetUnknown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var expected *float64 - obj.Rotation = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} + var expected *string + obj.Unknown = expected // Act & Assert - assert.Equal(t, expected, obj.GetRotation(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") }) - t.Run("GetRotation_NilValue", func(t *testing.T) { + t.Run("GetUnknown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - obj.Rotation = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} + obj.Unknown = nil // Act & Assert - assert.Nil(t, obj.GetRotation(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") }) - t.Run("GetRotation_NilReceiver", func(t *testing.T) { + t.Run("GetUnknown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRotation() // Should return zero value + _ = obj.GetUnknown() // Should return zero value }) - t.Run("GetUnrotatedRect", func(t *testing.T) { + t.Run("GetRuns", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect - obj.UnrotatedRect = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} + var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem + obj.Runs = expected // Act & Assert - assert.Equal(t, expected, obj.GetUnrotatedRect(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRuns(), "getter should return the property value") }) - t.Run("GetUnrotatedRect_NilValue", func(t *testing.T) { + t.Run("GetRuns_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - obj.UnrotatedRect = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} + obj.Runs = nil // Act & Assert - assert.Nil(t, obj.GetUnrotatedRect(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRuns(), "getter should return nil when property is nil") }) - t.Run("GetUnrotatedRect_NilReceiver", func(t *testing.T) { + t.Run("GetRuns_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUnrotatedRect() // Should return zero value + _ = obj.GetRuns() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret(t *testing.T) { - t.Run("SetRef_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem(t *testing.T) { + t.Run("SetAlign_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} + var fernTestValueAlign *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlign // Act - obj.SetRef(fernTestValueRef) + obj.SetAlign(fernTestValueAlign) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -109450,14 +148765,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetDir_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} + var fernTestValueDir *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDir // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetDir(fernTestValueDir) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -109481,14 +148796,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("SetLineHeight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueIndex int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} + var fernTestValueLineHeight *float64 // Act - obj.SetIndex(fernTestValueIndex) + obj.SetLineHeight(fernTestValueLineHeight) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -109512,14 +148827,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { + t.Run("SetMargins_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} + var fernTestValueMargins *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins // Act - obj.SetIdentityQuality(fernTestValueIdentityQuality) + obj.SetMargins(fernTestValueMargins) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -109543,14 +148858,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetTextIndent_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueNm *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} + var fernTestValueTextIndent *float64 // Act - obj.SetNm(fernTestValueNm) + obj.SetTextIndent(fernTestValueTextIndent) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -109574,14 +148889,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFlags_MarksExplicit", func(t *testing.T) { + t.Run("SetUnknown_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} + var fernTestValueUnknown *string // Act - obj.SetFlags(fernTestValueFlags) + obj.SetUnknown(fernTestValueUnknown) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -109605,14 +148920,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRect_MarksExplicit", func(t *testing.T) { + t.Run("SetRuns_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} + var fernTestValueRuns []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem // Act - obj.SetRect(fernTestValueRect) + obj.SetRuns(fernTestValueRuns) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -109636,76 +148951,147 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetContents_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins(t *testing.T) { + t.Run("SetTop", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBottom", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins{} + var fernTestValueBottom float64 + obj.SetBottom(fernTestValueBottom) + assert.Equal(t, fernTestValueBottom, obj.Bottom) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins{} + var fernTestValueLeft float64 + obj.SetLeft(fernTestValueLeft) + assert.Equal(t, fernTestValueLeft, obj.Left) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRight", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins{} + var fernTestValueRight float64 + obj.SetRight(fernTestValueRight) + assert.Equal(t, fernTestValueRight, obj.Right) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins(t *testing.T) { + t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueContents *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins{} + var expected float64 + obj.Top = expected - // Act - obj.SetContents(fernTestValueContents) + // Act & Assert + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetTop() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetBottom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins{} + var expected float64 + obj.Bottom = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") }) - t.Run("SetSubject_MarksExplicit", func(t *testing.T) { + t.Run("GetBottom_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBottom() // Should return zero value + }) + + t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueSubject *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins{} + var expected float64 + obj.Left = expected - // Act - obj.SetSubject(fernTestValueSubject) + // Act & Assert + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetLeft_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLeft() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetRight", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins{} + var expected float64 + obj.Right = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") }) - t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { + t.Run("GetRight_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRight() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins(t *testing.T) { + t.Run("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueAuthor *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins{} + var fernTestValueTop float64 // Act - obj.SetAuthor(fernTestValueAuthor) + obj.SetTop(fernTestValueTop) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -109729,14 +149115,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreated_MarksExplicit", func(t *testing.T) { + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueCreated *time.Time + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins{} + var fernTestValueBottom float64 // Act - obj.SetCreated(fernTestValueCreated) + obj.SetBottom(fernTestValueBottom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -109760,14 +149146,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetModified_MarksExplicit", func(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueModified *time.Time + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins{} + var fernTestValueLeft float64 // Act - obj.SetModified(fernTestValueModified) + obj.SetLeft(fernTestValueLeft) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -109791,14 +149177,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { + t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins{} + var fernTestValueRight float64 // Act - obj.SetBlendMode(fernTestValueBlendMode) + obj.SetRight(fernTestValueRight) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -109822,45 +149208,95 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem(t *testing.T) { + t.Run("SetText", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem{} + var fernTestValueText string + obj.SetText(fernTestValueText) + assert.Equal(t, fernTestValueText, obj.Text) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetStyle", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem{} + var fernTestValueStyle *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle + obj.SetStyle(fernTestValueStyle) + assert.Equal(t, fernTestValueStyle, obj.Style) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem(t *testing.T) { + t.Run("GetText", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem{} + var expected string + obj.Text = expected - // Act - obj.SetInReplyTo(fernTestValueInReplyTo) + // Act & Assert + assert.Equal(t, expected, obj.GetText(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetText_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetText() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetStyle", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle + obj.Style = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetStyle(), "getter should return the property value") }) - t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { + t.Run("GetStyle_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem{} + obj.Style = nil + + // Act & Assert + assert.Nil(t, obj.GetStyle(), "getter should return nil when property is nil") + }) + + t.Run("GetStyle_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetStyle() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem(t *testing.T) { + t.Run("SetText_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem{} + var fernTestValueText string // Act - obj.SetReplyType(fernTestValueReplyType) + obj.SetText(fernTestValueText) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -109884,14 +149320,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUserID_MarksExplicit", func(t *testing.T) { + t.Run("SetStyle_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueUserID *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem{} + var fernTestValueStyle *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle // Act - obj.SetUserID(fernTestValueUserID) + obj.SetStyle(fernTestValueStyle) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -109915,14 +149351,433 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle(t *testing.T) { + t.Run("SetFamily", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + var fernTestValueFamily *string + obj.SetFamily(fernTestValueFamily) + assert.Equal(t, fernTestValueFamily, obj.Family) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWeight", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + var fernTestValueWeight *int + obj.SetWeight(fernTestValueWeight) + assert.Equal(t, fernTestValueWeight, obj.Weight) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetItalic", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + var fernTestValueItalic *bool + obj.SetItalic(fernTestValueItalic) + assert.Equal(t, fernTestValueItalic, obj.Italic) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSize", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + var fernTestValueSize *float64 + obj.SetSize(fernTestValueSize) + assert.Equal(t, fernTestValueSize, obj.Size) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetColor", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + var fernTestValueColor *string + obj.SetColor(fernTestValueColor) + assert.Equal(t, fernTestValueColor, obj.Color) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecoration", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + var fernTestValueDecoration []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem + obj.SetDecoration(fernTestValueDecoration) + assert.Equal(t, fernTestValueDecoration, obj.Decoration) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetScript", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + var fernTestValueScript *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScript + obj.SetScript(fernTestValueScript) + assert.Equal(t, fernTestValueScript, obj.Script) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLetterSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + var fernTestValueLetterSpacing *float64 + obj.SetLetterSpacing(fernTestValueLetterSpacing) + assert.Equal(t, fernTestValueLetterSpacing, obj.LetterSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetHorizontalScale", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + var fernTestValueHorizontalScale *float64 + obj.SetHorizontalScale(fernTestValueHorizontalScale) + assert.Equal(t, fernTestValueHorizontalScale, obj.HorizontalScale) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetUnknown", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + var fernTestValueUnknown *string + obj.SetUnknown(fernTestValueUnknown) + assert.Equal(t, fernTestValueUnknown, obj.Unknown) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle(t *testing.T) { + t.Run("GetFamily", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueGroupID *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + var expected *string + obj.Family = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFamily(), "getter should return the property value") + }) + + t.Run("GetFamily_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + obj.Family = nil + + // Act & Assert + assert.Nil(t, obj.GetFamily(), "getter should return nil when property is nil") + }) + + t.Run("GetFamily_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFamily() // Should return zero value + }) + + t.Run("GetWeight", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + var expected *int + obj.Weight = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWeight(), "getter should return the property value") + }) + + t.Run("GetWeight_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + obj.Weight = nil + + // Act & Assert + assert.Nil(t, obj.GetWeight(), "getter should return nil when property is nil") + }) + + t.Run("GetWeight_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWeight() // Should return zero value + }) + + t.Run("GetItalic", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + var expected *bool + obj.Italic = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetItalic(), "getter should return the property value") + }) + + t.Run("GetItalic_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + obj.Italic = nil + + // Act & Assert + assert.Nil(t, obj.GetItalic(), "getter should return nil when property is nil") + }) + + t.Run("GetItalic_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetItalic() // Should return zero value + }) + + t.Run("GetSize", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + var expected *float64 + obj.Size = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSize(), "getter should return the property value") + }) + + t.Run("GetSize_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + obj.Size = nil + + // Act & Assert + assert.Nil(t, obj.GetSize(), "getter should return nil when property is nil") + }) + + t.Run("GetSize_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSize() // Should return zero value + }) + + t.Run("GetColor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + var expected *string + obj.Color = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") + }) + + t.Run("GetColor_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + obj.Color = nil + + // Act & Assert + assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") + }) + + t.Run("GetColor_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetColor() // Should return zero value + }) + + t.Run("GetDecoration", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem + obj.Decoration = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDecoration(), "getter should return the property value") + }) + + t.Run("GetDecoration_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + obj.Decoration = nil + + // Act & Assert + assert.Nil(t, obj.GetDecoration(), "getter should return nil when property is nil") + }) + + t.Run("GetDecoration_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDecoration() // Should return zero value + }) + + t.Run("GetScript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScript + obj.Script = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") + }) + + t.Run("GetScript_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + obj.Script = nil + + // Act & Assert + assert.Nil(t, obj.GetScript(), "getter should return nil when property is nil") + }) + + t.Run("GetScript_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetScript() // Should return zero value + }) + + t.Run("GetLetterSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + var expected *float64 + obj.LetterSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLetterSpacing(), "getter should return the property value") + }) + + t.Run("GetLetterSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + obj.LetterSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetLetterSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetLetterSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLetterSpacing() // Should return zero value + }) + + t.Run("GetHorizontalScale", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + var expected *float64 + obj.HorizontalScale = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetHorizontalScale(), "getter should return the property value") + }) + + t.Run("GetHorizontalScale_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + obj.HorizontalScale = nil + + // Act & Assert + assert.Nil(t, obj.GetHorizontalScale(), "getter should return nil when property is nil") + }) + + t.Run("GetHorizontalScale_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetHorizontalScale() // Should return zero value + }) + + t.Run("GetUnknown", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + var expected *string + obj.Unknown = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") + }) + + t.Run("GetUnknown_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + obj.Unknown = nil + + // Act & Assert + assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") + }) + + t.Run("GetUnknown_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnknown() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle(t *testing.T) { + t.Run("SetFamily_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + var fernTestValueFamily *string // Act - obj.SetGroupID(fernTestValueGroupID) + obj.SetFamily(fernTestValueFamily) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -109946,14 +149801,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetWeight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueCreatedBy *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + var fernTestValueWeight *int // Act - obj.SetCreatedBy(fernTestValueCreatedBy) + obj.SetWeight(fernTestValueWeight) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -109977,14 +149832,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetItalic_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueUpdatedBy *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + var fernTestValueItalic *bool // Act - obj.SetUpdatedBy(fernTestValueUpdatedBy) + obj.SetItalic(fernTestValueItalic) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -110008,14 +149863,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Run("SetSize_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueActions *PdfAnnotationActions + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + var fernTestValueSize *float64 // Act - obj.SetActions(fernTestValueActions) + obj.SetSize(fernTestValueSize) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -110042,8 +149897,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + var fernTestValueColor *string // Act obj.SetColor(fernTestValueColor) @@ -110070,14 +149925,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { + t.Run("SetDecoration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueOpacity float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + var fernTestValueDecoration []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem // Act - obj.SetOpacity(fernTestValueOpacity) + obj.SetDecoration(fernTestValueDecoration) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -110101,14 +149956,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIntent_MarksExplicit", func(t *testing.T) { + t.Run("SetScript_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueIntent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretIntent + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + var fernTestValueScript *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScript // Act - obj.SetIntent(fernTestValueIntent) + obj.SetScript(fernTestValueScript) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -110132,14 +149987,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRectDifferences_MarksExplicit", func(t *testing.T) { + t.Run("SetLetterSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueRectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + var fernTestValueLetterSpacing *float64 // Act - obj.SetRectDifferences(fernTestValueRectDifferences) + obj.SetLetterSpacing(fernTestValueLetterSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -110163,14 +150018,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRotation_MarksExplicit", func(t *testing.T) { + t.Run("SetHorizontalScale_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueRotation *float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + var fernTestValueHorizontalScale *float64 // Act - obj.SetRotation(fernTestValueRotation) + obj.SetHorizontalScale(fernTestValueHorizontalScale) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -110194,14 +150049,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUnrotatedRect_MarksExplicit", func(t *testing.T) { + t.Run("SetUnknown_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaret{} - var fernTestValueUnrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} + var fernTestValueUnknown *string // Act - obj.SetUnrotatedRect(fernTestValueUnrotatedRect) + obj.SetUnknown(fernTestValueUnknown) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -110227,114 +150082,145 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor(t *testing.T) { - t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor{} - var fernTestValueR int - obj.SetR(fernTestValueR) - assert.Equal(t, fernTestValueR, obj.R) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect{} + var fernTestValueLeft float64 + obj.SetLeft(fernTestValueLeft) + assert.Equal(t, fernTestValueLeft, obj.Left) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor{} - var fernTestValueG int - obj.SetG(fernTestValueG) - assert.Equal(t, fernTestValueG, obj.G) + t.Run("SetBottom", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect{} + var fernTestValueBottom float64 + obj.SetBottom(fernTestValueBottom) + assert.Equal(t, fernTestValueBottom, obj.Bottom) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor{} - var fernTestValueB int - obj.SetB(fernTestValueB) - assert.Equal(t, fernTestValueB, obj.B) + t.Run("SetRight", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect{} + var fernTestValueRight float64 + obj.SetRight(fernTestValueRight) + assert.Equal(t, fernTestValueRight, obj.Right) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetTop", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) assert.NotNil(t, obj.explicitFields) }) -} +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect{} + var expected float64 + obj.Left = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") + }) + + t.Run("GetLeft_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLeft() // Should return zero value + }) -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor(t *testing.T) { - t.Run("GetR", func(t *testing.T) { + t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor{} - var expected int - obj.R = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect{} + var expected float64 + obj.Bottom = expected // Act & Assert - assert.Equal(t, expected, obj.GetR(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") }) - t.Run("GetR_NilReceiver", func(t *testing.T) { + t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetR() // Should return zero value + _ = obj.GetBottom() // Should return zero value }) - t.Run("GetG", func(t *testing.T) { + t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor{} - var expected int - obj.G = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect{} + var expected float64 + obj.Right = expected // Act & Assert - assert.Equal(t, expected, obj.GetG(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") }) - t.Run("GetG_NilReceiver", func(t *testing.T) { + t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetG() // Should return zero value + _ = obj.GetRight() // Should return zero value }) - t.Run("GetB", func(t *testing.T) { + t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor{} - var expected int - obj.B = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect{} + var expected float64 + obj.Top = expected // Act & Assert - assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") }) - t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetB() // Should return zero value + _ = obj.GetTop() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor(t *testing.T) { - t.Run("SetR_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor{} - var fernTestValueR int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect{} + var fernTestValueLeft float64 // Act - obj.SetR(fernTestValueR) + obj.SetLeft(fernTestValueLeft) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -110358,14 +150244,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor{} - var fernTestValueG int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect{} + var fernTestValueBottom float64 // Act - obj.SetG(fernTestValueG) + obj.SetBottom(fernTestValueBottom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -110389,14 +150275,45 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretColor{} - var fernTestValueB int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect{} + var fernTestValueRight float64 // Act - obj.SetB(fernTestValueB) + obj.SetRight(fernTestValueRight) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect{} + var fernTestValueTop float64 + + // Act + obj.SetTop(fernTestValueTop) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -110422,1073 +150339,914 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags(t *testing.T) { - t.Run("SetInvisible", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} - var fernTestValueInvisible bool - obj.SetInvisible(fernTestValueInvisible) - assert.Equal(t, fernTestValueInvisible, obj.Invisible) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight(t *testing.T) { + t.Run("SetRef", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef + obj.SetRef(fernTestValueRef) + assert.Equal(t, fernTestValueRef, obj.Ref) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetHidden", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} - var fernTestValueHidden bool - obj.SetHidden(fernTestValueHidden) - assert.Equal(t, fernTestValueHidden, obj.Hidden) + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPrint", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} - var fernTestValuePrint bool - obj.SetPrint(fernTestValuePrint) - assert.Equal(t, fernTestValuePrint, obj.Print) + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNoZoom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} - var fernTestValueNoZoom bool - obj.SetNoZoom(fernTestValueNoZoom) - assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) + t.Run("SetIdentityQuality", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQuality + obj.SetIdentityQuality(fernTestValueIdentityQuality) + assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNoRotate", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} - var fernTestValueNoRotate bool - obj.SetNoRotate(fernTestValueNoRotate) - assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueNm *string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} - var fernTestValueNoView bool - obj.SetNoView(fernTestValueNoView) - assert.Equal(t, fernTestValueNoView, obj.NoView) + t.Run("SetFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags + obj.SetFlags(fernTestValueFlags) + assert.Equal(t, fernTestValueFlags, obj.Flags) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} - var fernTestValueReadOnly bool - obj.SetReadOnly(fernTestValueReadOnly) - assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) + t.Run("SetRect", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect + obj.SetRect(fernTestValueRect) + assert.Equal(t, fernTestValueRect, obj.Rect) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetLocked", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} - var fernTestValueLocked bool - obj.SetLocked(fernTestValueLocked) - assert.Equal(t, fernTestValueLocked, obj.Locked) + t.Run("SetContents", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueContents *string + obj.SetContents(fernTestValueContents) + assert.Equal(t, fernTestValueContents, obj.Contents) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetToggleNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} - var fernTestValueToggleNoView bool - obj.SetToggleNoView(fernTestValueToggleNoView) - assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) + t.Run("SetSubject", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueSubject *string + obj.SetSubject(fernTestValueSubject) + assert.Equal(t, fernTestValueSubject, obj.Subject) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetLockedContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} - var fernTestValueLockedContents bool - obj.SetLockedContents(fernTestValueLockedContents) - assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) + t.Run("SetAuthor", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueAuthor *string + obj.SetAuthor(fernTestValueAuthor) + assert.Equal(t, fernTestValueAuthor, obj.Author) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCreated", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueCreated *time.Time + obj.SetCreated(fernTestValueCreated) + assert.Equal(t, fernTestValueCreated, obj.Created) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetModified", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueModified *time.Time + obj.SetModified(fernTestValueModified) + assert.Equal(t, fernTestValueModified, obj.Modified) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBlendMode", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode + obj.SetBlendMode(fernTestValueBlendMode) + assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetInReplyTo", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo + obj.SetInReplyTo(fernTestValueInReplyTo) + assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetReplyType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType + obj.SetReplyType(fernTestValueReplyType) + assert.Equal(t, fernTestValueReplyType, obj.ReplyType) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetUserID", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueUserID *string + obj.SetUserID(fernTestValueUserID) + assert.Equal(t, fernTestValueUserID, obj.UserID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetGroupID", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueGroupID *string + obj.SetGroupID(fernTestValueGroupID) + assert.Equal(t, fernTestValueGroupID, obj.GroupID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCreatedBy", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueCreatedBy *string + obj.SetCreatedBy(fernTestValueCreatedBy) + assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetUpdatedBy", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueUpdatedBy *string + obj.SetUpdatedBy(fernTestValueUpdatedBy) + assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetActions", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueActions *PdfAnnotationActions + obj.SetActions(fernTestValueActions) + assert.Equal(t, fernTestValueActions, obj.Actions) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetColor", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor + obj.SetColor(fernTestValueColor) + assert.Equal(t, fernTestValueColor, obj.Color) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetOpacity", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueOpacity float64 + obj.SetOpacity(fernTestValueOpacity) + assert.Equal(t, fernTestValueOpacity, obj.Opacity) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetQuadPoints", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueQuadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem + obj.SetQuadPoints(fernTestValueQuadPoints) + assert.Equal(t, fernTestValueQuadPoints, obj.QuadPoints) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags(t *testing.T) { - t.Run("GetInvisible", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} - var expected bool - obj.Invisible = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef + obj.Ref = expected // Act & Assert - assert.Equal(t, expected, obj.GetInvisible(), "getter should return the property value") - }) - - t.Run("GetInvisible_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetInvisible() // Should return zero value + assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") }) - t.Run("GetHidden", func(t *testing.T) { + t.Run("GetRef_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} - var expected bool - obj.Hidden = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj.Ref = nil // Act & Assert - assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") + assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") }) - t.Run("GetHidden_NilReceiver", func(t *testing.T) { + t.Run("GetRef_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetHidden() // Should return zero value + _ = obj.GetRef() // Should return zero value }) - t.Run("GetPrint", func(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} - var expected bool - obj.Print = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetPrint_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPrint() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetNoZoom", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} - var expected bool - obj.NoZoom = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected int + obj.Index = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNoZoom() // Should return zero value + _ = obj.GetIndex() // Should return zero value }) - t.Run("GetNoRotate", func(t *testing.T) { + t.Run("GetIdentityQuality", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} - var expected bool - obj.NoRotate = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQuality + obj.IdentityQuality = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIdentityQuality(), "getter should return the property value") }) - t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { + t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNoRotate() // Should return zero value + _ = obj.GetIdentityQuality() // Should return zero value }) - t.Run("GetNoView", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} - var expected bool - obj.NoView = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected *string + obj.Nm = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") - }) - - t.Run("GetNoView_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNoView() // Should return zero value + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("GetReadOnly", func(t *testing.T) { + t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} - var expected bool - obj.ReadOnly = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj.Nm = nil // Act & Assert - assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") }) - t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReadOnly() // Should return zero value + _ = obj.GetNm() // Should return zero value }) - t.Run("GetLocked", func(t *testing.T) { + t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} - var expected bool - obj.Locked = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags + obj.Flags = expected // Act & Assert - assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") }) - t.Run("GetLocked_NilReceiver", func(t *testing.T) { + t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj.Flags = nil + + // Act & Assert + assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") + }) + + t.Run("GetFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLocked() // Should return zero value + _ = obj.GetFlags() // Should return zero value }) - t.Run("GetToggleNoView", func(t *testing.T) { + t.Run("GetRect", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} - var expected bool - obj.ToggleNoView = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect + obj.Rect = expected // Act & Assert - assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRect(), "getter should return the property value") }) - t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { + t.Run("GetRect_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj.Rect = nil + + // Act & Assert + assert.Nil(t, obj.GetRect(), "getter should return nil when property is nil") + }) + + t.Run("GetRect_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetToggleNoView() // Should return zero value + _ = obj.GetRect() // Should return zero value }) - t.Run("GetLockedContents", func(t *testing.T) { + t.Run("GetContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} - var expected bool - obj.LockedContents = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected *string + obj.Contents = expected // Act & Assert - assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") + assert.Equal(t, expected, obj.GetContents(), "getter should return the property value") }) - t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { + t.Run("GetContents_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj.Contents = nil + + // Act & Assert + assert.Nil(t, obj.GetContents(), "getter should return nil when property is nil") + }) + + t.Run("GetContents_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLockedContents() // Should return zero value + _ = obj.GetContents() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags(t *testing.T) { - t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { + t.Run("GetSubject", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} - var fernTestValueInvisible bool - - // Act - obj.SetInvisible(fernTestValueInvisible) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected *string + obj.Subject = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetSubject(), "getter should return the property value") }) - t.Run("SetHidden_MarksExplicit", func(t *testing.T) { + t.Run("GetSubject_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} - var fernTestValueHidden bool - - // Act - obj.SetHidden(fernTestValueHidden) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj.Subject = nil - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Nil(t, obj.GetSubject(), "getter should return nil when property is nil") }) - t.Run("SetPrint_MarksExplicit", func(t *testing.T) { + t.Run("GetSubject_NilReceiver", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} - var fernTestValuePrint bool - - // Act - obj.SetPrint(fernTestValuePrint) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSubject() // Should return zero value }) - t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { + t.Run("GetAuthor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} - var fernTestValueNoZoom bool - - // Act - obj.SetNoZoom(fernTestValueNoZoom) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected *string + obj.Author = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetAuthor(), "getter should return the property value") }) - t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { + t.Run("GetAuthor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} - var fernTestValueNoRotate bool - - // Act - obj.SetNoRotate(fernTestValueNoRotate) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj.Author = nil - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Nil(t, obj.GetAuthor(), "getter should return nil when property is nil") }) - t.Run("SetNoView_MarksExplicit", func(t *testing.T) { + t.Run("GetAuthor_NilReceiver", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} - var fernTestValueNoView bool - - // Act - obj.SetNoView(fernTestValueNoView) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAuthor() // Should return zero value }) - t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { + t.Run("GetCreated", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} - var fernTestValueReadOnly bool - - // Act - obj.SetReadOnly(fernTestValueReadOnly) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected *time.Time + obj.Created = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetCreated(), "getter should return the property value") }) - t.Run("SetLocked_MarksExplicit", func(t *testing.T) { + t.Run("GetCreated_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} - var fernTestValueLocked bool - - // Act - obj.SetLocked(fernTestValueLocked) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj.Created = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetCreated(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetCreated_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCreated() // Should return zero value }) - t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { + t.Run("GetModified", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} - var fernTestValueToggleNoView bool - - // Act - obj.SetToggleNoView(fernTestValueToggleNoView) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected *time.Time + obj.Modified = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") }) - t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { + t.Run("GetModified_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretFlags{} - var fernTestValueLockedContents bool - - // Act - obj.SetLockedContents(fernTestValueLockedContents) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj.Modified = nil - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Nil(t, obj.GetModified(), "getter should return nil when property is nil") }) -} + t.Run("GetModified_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetModified() // Should return zero value + }) -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { + t.Run("GetBlendMode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo{} - var expected string - obj.Kind = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode + obj.BlendMode = expected // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBlendMode(), "getter should return the property value") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKind() // Should return zero value + _ = obj.GetBlendMode() // Should return zero value }) - t.Run("GetObjectNumber", func(t *testing.T) { + t.Run("GetInReplyTo", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber - obj.ObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo + obj.InReplyTo = expected // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetInReplyTo(), "getter should return the property value") }) - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Run("GetInReplyTo_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo{} - obj.ObjectNumber = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj.InReplyTo = nil // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetInReplyTo(), "getter should return nil when property is nil") }) - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetObjectNumber() // Should return zero value + _ = obj.GetInReplyTo() // Should return zero value }) - t.Run("GetNm", func(t *testing.T) { + t.Run("GetReplyType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm - obj.Nm = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType + obj.ReplyType = expected // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + assert.Equal(t, expected, obj.GetReplyType(), "getter should return the property value") }) - t.Run("GetNm_NilValue", func(t *testing.T) { + t.Run("GetReplyType_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo{} - obj.Nm = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj.ReplyType = nil // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetReplyType(), "getter should return nil when property is nil") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetReplyType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetReplyType() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetUserID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex - obj.Index = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected *string + obj.UserID = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") }) - t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Run("GetUserID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo{} - obj.Index = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj.UserID = nil // Act & Assert - assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetUserID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) + _ = obj.GetUserID() // Should return zero value }) - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("GetGroupID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected *string + obj.GroupID = expected - t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetGroupID(), "getter should return the property value") }) -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetGroupID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj.GroupID = nil // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Nil(t, obj.GetGroupID(), "getter should return nil when property is nil") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetGroupID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetGroupID() // Should return zero value + }) + + t.Run("GetCreatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected *string + obj.CreatedBy = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetCreatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex{} - var expected int - obj.Index = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj.CreatedBy = nil // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Nil(t, obj.GetCreatedBy(), "getter should return nil when property is nil") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetCreatedBy() // Should return zero value }) - t.Run("GetRevision", func(t *testing.T) { + t.Run("GetUpdatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision - obj.Revision = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected *string + obj.UpdatedBy = expected // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUpdatedBy(), "getter should return the property value") }) - t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex{} - obj.Revision = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj.UpdatedBy = nil // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetUpdatedBy(), "getter should return nil when property is nil") }) - t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRevision() // Should return zero value + _ = obj.GetUpdatedBy() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("GetActions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex{} - var fernTestValuePageObjectNumber int - - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected *PdfAnnotationActions + obj.Actions = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("GetActions_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex{} - var fernTestValueIndex int - - // Act - obj.SetIndex(fernTestValueIndex) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj.Actions = nil - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("GetActions_NilReceiver", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision - - // Act - obj.SetRevision(fernTestValueRevision) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision{} - var fernTestValueDocSessionID string - obj.SetDocSessionID(fernTestValueDocSessionID) - assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) - assert.NotNil(t, obj.explicitFields) + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetActions() // Should return zero value }) - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("GetColor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor + obj.Color = expected - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") }) -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { + t.Run("GetColor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision{} - var expected string - obj.DocSessionID = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj.Color = nil // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") }) - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Run("GetColor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDocSessionID() // Should return zero value + _ = obj.GetColor() // Should return zero value }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetOpacity", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected float64 + obj.Opacity = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOpacity(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetOpacity_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetOpacity() // Should return zero value }) - t.Run("GetGeneration", func(t *testing.T) { + t.Run("GetQuadPoints", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision{} - var expected int - obj.Generation = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem + obj.QuadPoints = expected // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + assert.Equal(t, expected, obj.GetQuadPoints(), "getter should return the property value") }) - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Run("GetQuadPoints_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj.QuadPoints = nil + + // Act & Assert + assert.Nil(t, obj.GetQuadPoints(), "getter should return nil when property is nil") + }) + + t.Run("GetQuadPoints_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGeneration() // Should return zero value + _ = obj.GetQuadPoints() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision{} - var fernTestValueDocSessionID string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef // Act - obj.SetDocSessionID(fernTestValueDocSessionID) + obj.SetRef(fernTestValueRef) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -111515,7 +151273,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} var fernTestValuePageObjectNumber int // Act @@ -111543,14 +151301,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToIndexRevision{} - var fernTestValueGeneration int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueIndex int // Act - obj.SetGeneration(fernTestValueGeneration) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -111574,85 +151332,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm{} - var fernTestValueNm string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm{} - var expected string - obj.Nm = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") - }) - - t.Run("GetNm_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNm() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQuality // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetIdentityQuality(fernTestValueIdentityQuality) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -111679,8 +151366,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToNm{} - var fernTestValueNm string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueNm *string // Act obj.SetNm(fernTestValueNm) @@ -111707,116 +151394,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetAnnotObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") - }) - - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAnnotObjectNumber() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber{} - var fernTestValuePageObjectNumber int - - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + obj.SetFlags(fernTestValueFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -111840,147 +151425,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect(t *testing.T) { - t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect{} - var fernTestValueLeft float64 - obj.SetLeft(fernTestValueLeft) - assert.Equal(t, fernTestValueLeft, obj.Left) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect{} - var fernTestValueBottom float64 - obj.SetBottom(fernTestValueBottom) - assert.Equal(t, fernTestValueBottom, obj.Bottom) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect{} - var fernTestValueRight float64 - obj.SetRight(fernTestValueRight) - assert.Equal(t, fernTestValueRight, obj.Right) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect{} - var fernTestValueTop float64 - obj.SetTop(fernTestValueTop) - assert.Equal(t, fernTestValueTop, obj.Top) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect(t *testing.T) { - t.Run("GetLeft", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect{} - var expected float64 - obj.Left = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") - }) - - t.Run("GetLeft_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetLeft() // Should return zero value - }) - - t.Run("GetBottom", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect{} - var expected float64 - obj.Bottom = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") - }) - - t.Run("GetBottom_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetBottom() // Should return zero value - }) - - t.Run("GetRight", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect{} - var expected float64 - obj.Right = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") - }) - - t.Run("GetRight_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRight() // Should return zero value - }) - - t.Run("GetTop", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect{} - var expected float64 - obj.Top = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") - }) - - t.Run("GetTop_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetTop() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect(t *testing.T) { - t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Run("SetRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect{} - var fernTestValueLeft float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect // Act - obj.SetLeft(fernTestValueLeft) + obj.SetRect(fernTestValueRect) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -112004,14 +151456,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Run("SetContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect{} - var fernTestValueBottom float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueContents *string // Act - obj.SetBottom(fernTestValueBottom) + obj.SetContents(fernTestValueContents) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -112035,14 +151487,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRight_MarksExplicit", func(t *testing.T) { + t.Run("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect{} - var fernTestValueRight float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueSubject *string // Act - obj.SetRight(fernTestValueRight) + obj.SetSubject(fernTestValueSubject) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -112066,14 +151518,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRect{} - var fernTestValueTop float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueAuthor *string // Act - obj.SetTop(fernTestValueTop) + obj.SetAuthor(fernTestValueAuthor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -112097,147 +151549,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences(t *testing.T) { - t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences{} - var fernTestValueLeft float64 - obj.SetLeft(fernTestValueLeft) - assert.Equal(t, fernTestValueLeft, obj.Left) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences{} - var fernTestValueTop float64 - obj.SetTop(fernTestValueTop) - assert.Equal(t, fernTestValueTop, obj.Top) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences{} - var fernTestValueRight float64 - obj.SetRight(fernTestValueRight) - assert.Equal(t, fernTestValueRight, obj.Right) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences{} - var fernTestValueBottom float64 - obj.SetBottom(fernTestValueBottom) - assert.Equal(t, fernTestValueBottom, obj.Bottom) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences(t *testing.T) { - t.Run("GetLeft", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences{} - var expected float64 - obj.Left = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") - }) - - t.Run("GetLeft_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetLeft() // Should return zero value - }) - - t.Run("GetTop", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences{} - var expected float64 - obj.Top = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") - }) - - t.Run("GetTop_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetTop() // Should return zero value - }) - - t.Run("GetRight", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences{} - var expected float64 - obj.Right = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") - }) - - t.Run("GetRight_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRight() // Should return zero value - }) - - t.Run("GetBottom", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences{} - var expected float64 - obj.Bottom = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") - }) - - t.Run("GetBottom_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetBottom() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences(t *testing.T) { - t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Run("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences{} - var fernTestValueLeft float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueCreated *time.Time // Act - obj.SetLeft(fernTestValueLeft) + obj.SetCreated(fernTestValueCreated) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -112261,14 +151580,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Run("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences{} - var fernTestValueTop float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueModified *time.Time // Act - obj.SetTop(fernTestValueTop) + obj.SetModified(fernTestValueModified) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -112292,14 +151611,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRight_MarksExplicit", func(t *testing.T) { + t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences{} - var fernTestValueRight float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode // Act - obj.SetRight(fernTestValueRight) + obj.SetBlendMode(fernTestValueBlendMode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -112323,14 +151642,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRectDifferences{} - var fernTestValueBottom float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo // Act - obj.SetBottom(fernTestValueBottom) + obj.SetInReplyTo(fernTestValueInReplyTo) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -112346,259 +151665,22 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } else { // JSON primitive (string, number, boolean, null) - unmarshal into interface{} var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef{} - var expected string - obj.Kind = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") - }) - - t.Run("GetKind_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetKind() // Should return zero value - }) - - t.Run("GetObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber - obj.ObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") - }) - - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef{} - obj.ObjectNumber = nil - - // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") - }) - - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetObjectNumber() // Should return zero value - }) - - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm - obj.Nm = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") - }) - - t.Run("GetNm_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef{} - obj.Nm = nil - - // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") - }) - - t.Run("GetNm_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNm() // Should return zero value - }) - - t.Run("GetIndex", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex - obj.Index = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") - }) - - t.Run("GetIndex_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef{} - obj.Index = nil - - // Act & Assert - assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") - }) - - t.Run("GetIndex_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRef - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetIndex() // Should return zero value - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetIndex", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex{} - var expected int - obj.Index = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") - }) - - t.Run("GetIndex_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetIndex() // Should return zero value - }) - - t.Run("GetRevision", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision - obj.Revision = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") - }) - - t.Run("GetRevision_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex{} - obj.Revision = nil - - // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") - }) - - t.Run("GetRevision_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRevision() // Should return zero value - }) + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } -} + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetReplyType(fernTestValueReplyType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -112622,14 +151704,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex{} - var fernTestValueIndex int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueUserID *string // Act - obj.SetIndex(fernTestValueIndex) + obj.SetUserID(fernTestValueUserID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -112653,14 +151735,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueGroupID *string // Act - obj.SetRevision(fernTestValueRevision) + obj.SetGroupID(fernTestValueGroupID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -112684,116 +151766,107 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} + t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueCreatedBy *string -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision{} - var fernTestValueDocSessionID string - obj.SetDocSessionID(fernTestValueDocSessionID) - assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetCreatedBy(fernTestValueCreatedBy) - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) - assert.NotNil(t, obj.explicitFields) - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } -} + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { + t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision{} - var expected string - obj.DocSessionID = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") - }) + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueUpdatedBy *string - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetDocSessionID() // Should return zero value - }) + // Act + obj.SetUpdatedBy(fernTestValueUpdatedBy) - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision{} - var expected int - obj.PageObjectNumber = expected + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetGeneration", func(t *testing.T) { + t.Run("SetActions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision{} - var expected int - obj.Generation = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueActions *PdfAnnotationActions - // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") - }) + // Act + obj.SetActions(fernTestValueActions) - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetGeneration() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") -} + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision{} - var fernTestValueDocSessionID string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor // Act - obj.SetDocSessionID(fernTestValueDocSessionID) + obj.SetColor(fernTestValueColor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -112817,14 +151890,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueOpacity float64 // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetOpacity(fernTestValueOpacity) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -112848,14 +151921,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("SetQuadPoints_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefIndexRevision{} - var fernTestValueGeneration int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + var fernTestValueQuadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem // Act - obj.SetGeneration(fernTestValueGeneration) + obj.SetQuadPoints(fernTestValueQuadPoints) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -112881,83 +151954,114 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor(t *testing.T) { + t.Run("SetR", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor{} + var fernTestValueR int + obj.SetR(fernTestValueR) + assert.Equal(t, fernTestValueR, obj.R) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm{} - var fernTestValueNm string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) + t.Run("SetG", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor{} + var fernTestValueG int + obj.SetG(fernTestValueG) + assert.Equal(t, fernTestValueG, obj.G) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetB", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor{} var expected int - obj.PageObjectNumber = expected + obj.R = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetR_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetR() // Should return zero value }) - t.Run("GetNm", func(t *testing.T) { + t.Run("GetG", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm{} - var expected string - obj.Nm = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor{} + var expected int + obj.G = expected // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetG_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetG() // Should return zero value + }) + + t.Run("GetB", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor{} + var expected int + obj.B = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + }) + + t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetB() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor{} + var fernTestValueR int // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetR(fernTestValueR) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -112981,14 +152085,45 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefNm{} - var fernTestValueNm string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor{} + var fernTestValueG int // Act - obj.SetNm(fernTestValueNm) + obj.SetG(fernTestValueG) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor{} + var fernTestValueB int + + // Act + obj.SetB(fernTestValueB) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -113014,278 +152149,331 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags(t *testing.T) { + t.Run("SetInvisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var fernTestValueInvisible bool + obj.SetInvisible(fernTestValueInvisible) + assert.Equal(t, fernTestValueInvisible, obj.Invisible) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + t.Run("SetHidden", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var fernTestValueHidden bool + obj.SetHidden(fernTestValueHidden) + assert.Equal(t, fernTestValueHidden, obj.Hidden) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrint", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var fernTestValuePrint bool + obj.SetPrint(fernTestValuePrint) + assert.Equal(t, fernTestValuePrint, obj.Print) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNoZoom", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var fernTestValueNoZoom bool + obj.SetNoZoom(fernTestValueNoZoom) + assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNoRotate", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var fernTestValueNoRotate bool + obj.SetNoRotate(fernTestValueNoRotate) + assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNoView", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var fernTestValueNoView bool + obj.SetNoView(fernTestValueNoView) + assert.Equal(t, fernTestValueNoView, obj.NoView) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetReadOnly", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var fernTestValueReadOnly bool + obj.SetReadOnly(fernTestValueReadOnly) + assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLocked", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var fernTestValueLocked bool + obj.SetLocked(fernTestValueLocked) + assert.Equal(t, fernTestValueLocked, obj.Locked) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetToggleNoView", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var fernTestValueToggleNoView bool + obj.SetToggleNoView(fernTestValueToggleNoView) + assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLockedContents", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var fernTestValueLockedContents bool + obj.SetLockedContents(fernTestValueLockedContents) + assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags(t *testing.T) { + t.Run("GetInvisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var expected bool + obj.Invisible = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetInvisible(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetInvisible_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetInvisible() // Should return zero value }) - t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Run("GetHidden", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var expected bool + obj.Hidden = expected // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") }) - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetHidden_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAnnotObjectNumber() // Should return zero value + _ = obj.GetHidden() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("GetPrint", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber{} - var fernTestValuePageObjectNumber int - - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var expected bool + obj.Print = expected - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetPrint_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrint() // Should return zero value }) - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("GetNoZoom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretRefObjectNumber{} - var fernTestValueAnnotObjectNumber int - - // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var expected bool + obj.NoZoom = expected - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNoZoom() // Should return zero value }) -} + t.Run("GetNoRotate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var expected bool + obj.NoRotate = expected -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect(t *testing.T) { - t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} - var fernTestValueLeft float64 - obj.SetLeft(fernTestValueLeft) - assert.Equal(t, fernTestValueLeft, obj.Left) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") }) - t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} - var fernTestValueBottom float64 - obj.SetBottom(fernTestValueBottom) - assert.Equal(t, fernTestValueBottom, obj.Bottom) - assert.NotNil(t, obj.explicitFields) + t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNoRotate() // Should return zero value }) - t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} - var fernTestValueRight float64 - obj.SetRight(fernTestValueRight) - assert.Equal(t, fernTestValueRight, obj.Right) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("GetNoView", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var expected bool + obj.NoView = expected - t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} - var fernTestValueTop float64 - obj.SetTop(fernTestValueTop) - assert.Equal(t, fernTestValueTop, obj.Top) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") }) -} + t.Run("GetNoView_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNoView() // Should return zero value + }) -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect(t *testing.T) { - t.Run("GetLeft", func(t *testing.T) { + t.Run("GetReadOnly", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} - var expected float64 - obj.Left = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var expected bool + obj.ReadOnly = expected // Act & Assert - assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") + assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") }) - t.Run("GetLeft_NilReceiver", func(t *testing.T) { + t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLeft() // Should return zero value + _ = obj.GetReadOnly() // Should return zero value }) - t.Run("GetBottom", func(t *testing.T) { + t.Run("GetLocked", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} - var expected float64 - obj.Bottom = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var expected bool + obj.Locked = expected // Act & Assert - assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") }) - t.Run("GetBottom_NilReceiver", func(t *testing.T) { + t.Run("GetLocked_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBottom() // Should return zero value + _ = obj.GetLocked() // Should return zero value }) - t.Run("GetRight", func(t *testing.T) { + t.Run("GetToggleNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} - var expected float64 - obj.Right = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var expected bool + obj.ToggleNoView = expected // Act & Assert - assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") + assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") }) - t.Run("GetRight_NilReceiver", func(t *testing.T) { + t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRight() // Should return zero value + _ = obj.GetToggleNoView() // Should return zero value }) - t.Run("GetTop", func(t *testing.T) { + t.Run("GetLockedContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} - var expected float64 - obj.Top = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var expected bool + obj.LockedContents = expected // Act & Assert - assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") }) - t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTop() // Should return zero value + _ = obj.GetLockedContents() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect(t *testing.T) { - t.Run("SetLeft_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags(t *testing.T) { + t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} - var fernTestValueLeft float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var fernTestValueInvisible bool // Act - obj.SetLeft(fernTestValueLeft) + obj.SetInvisible(fernTestValueInvisible) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -113309,14 +152497,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Run("SetHidden_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} - var fernTestValueBottom float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var fernTestValueHidden bool // Act - obj.SetBottom(fernTestValueBottom) + obj.SetHidden(fernTestValueHidden) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -113340,14 +152528,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRight_MarksExplicit", func(t *testing.T) { + t.Run("SetPrint_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} - var fernTestValueRight float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var fernTestValuePrint bool // Act - obj.SetRight(fernTestValueRight) + obj.SetPrint(fernTestValuePrint) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -113371,14 +152559,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCaretUnrotatedRect{} - var fernTestValueTop float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var fernTestValueNoZoom bool // Act - obj.SetTop(fernTestValueTop) + obj.SetNoZoom(fernTestValueNoZoom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -113402,359 +152590,256 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle(t *testing.T) { - t.Run("SetRef", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef - obj.SetRef(fernTestValueRef) - assert.Equal(t, fernTestValueRef, obj.Ref) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIdentityQuality", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQuality - obj.SetIdentityQuality(fernTestValueIdentityQuality) - assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueNm *string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetFlags", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags - obj.SetFlags(fernTestValueFlags) - assert.Equal(t, fernTestValueFlags, obj.Flags) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRect", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect - obj.SetRect(fernTestValueRect) - assert.Equal(t, fernTestValueRect, obj.Rect) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueContents *string - obj.SetContents(fernTestValueContents) - assert.Equal(t, fernTestValueContents, obj.Contents) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetSubject", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueSubject *string - obj.SetSubject(fernTestValueSubject) - assert.Equal(t, fernTestValueSubject, obj.Subject) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAuthor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueAuthor *string - obj.SetAuthor(fernTestValueAuthor) - assert.Equal(t, fernTestValueAuthor, obj.Author) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCreated", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueCreated *time.Time - obj.SetCreated(fernTestValueCreated) - assert.Equal(t, fernTestValueCreated, obj.Created) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var fernTestValueNoRotate bool - t.Run("SetModified", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueModified *time.Time - obj.SetModified(fernTestValueModified) - assert.Equal(t, fernTestValueModified, obj.Modified) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetNoRotate(fernTestValueNoRotate) - t.Run("SetBlendMode", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode - obj.SetBlendMode(fernTestValueBlendMode) - assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) - assert.NotNil(t, obj.explicitFields) - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("SetInReplyTo", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo - obj.SetInReplyTo(fernTestValueInReplyTo) - assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) - assert.NotNil(t, obj.explicitFields) - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("SetReplyType", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyType - obj.SetReplyType(fernTestValueReplyType) - assert.Equal(t, fernTestValueReplyType, obj.ReplyType) - assert.NotNil(t, obj.explicitFields) + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUserID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueUserID *string - obj.SetUserID(fernTestValueUserID) - assert.Equal(t, fernTestValueUserID, obj.UserID) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("SetNoView_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var fernTestValueNoView bool - t.Run("SetGroupID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueGroupID *string - obj.SetGroupID(fernTestValueGroupID) - assert.Equal(t, fernTestValueGroupID, obj.GroupID) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetNoView(fernTestValueNoView) - t.Run("SetCreatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueCreatedBy *string - obj.SetCreatedBy(fernTestValueCreatedBy) - assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) - assert.NotNil(t, obj.explicitFields) - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("SetUpdatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueUpdatedBy *string - obj.SetUpdatedBy(fernTestValueUpdatedBy) - assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) - assert.NotNil(t, obj.explicitFields) - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("SetActions", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueActions *PdfAnnotationActions - obj.SetActions(fernTestValueActions) - assert.Equal(t, fernTestValueActions, obj.Actions) - assert.NotNil(t, obj.explicitFields) + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetColor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor - obj.SetColor(fernTestValueColor) - assert.Equal(t, fernTestValueColor, obj.Color) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var fernTestValueReadOnly bool - t.Run("SetOpacity", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueOpacity float64 - obj.SetOpacity(fernTestValueOpacity) - assert.Equal(t, fernTestValueOpacity, obj.Opacity) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetReadOnly(fernTestValueReadOnly) - t.Run("SetStrokeWidth", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueStrokeWidth float64 - obj.SetStrokeWidth(fernTestValueStrokeWidth) - assert.Equal(t, fernTestValueStrokeWidth, obj.StrokeWidth) - assert.NotNil(t, obj.explicitFields) - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("SetBorderStyle", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle - obj.SetBorderStyle(fernTestValueBorderStyle) - assert.Equal(t, fernTestValueBorderStyle, obj.BorderStyle) - assert.NotNil(t, obj.explicitFields) - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("SetDashArray", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueDashArray []float64 - obj.SetDashArray(fernTestValueDashArray) - assert.Equal(t, fernTestValueDashArray, obj.DashArray) - assert.NotNil(t, obj.explicitFields) + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInteriorColor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor - obj.SetInteriorColor(fernTestValueInteriorColor) - assert.Equal(t, fernTestValueInteriorColor, obj.InteriorColor) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("SetLocked_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var fernTestValueLocked bool - t.Run("SetCloudyIntensity", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueCloudyIntensity *float64 - obj.SetCloudyIntensity(fernTestValueCloudyIntensity) - assert.Equal(t, fernTestValueCloudyIntensity, obj.CloudyIntensity) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetLocked(fernTestValueLocked) - t.Run("SetRectDifferences", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueRectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences - obj.SetRectDifferences(fernTestValueRectDifferences) - assert.Equal(t, fernTestValueRectDifferences, obj.RectDifferences) - assert.NotNil(t, obj.explicitFields) - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("SetRotation", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueRotation *float64 - obj.SetRotation(fernTestValueRotation) - assert.Equal(t, fernTestValueRotation, obj.Rotation) - assert.NotNil(t, obj.explicitFields) - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("SetUnrotatedRect", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueUnrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect - obj.SetUnrotatedRect(fernTestValueUnrotatedRect) - assert.Equal(t, fernTestValueUnrotatedRect, obj.UnrotatedRect) - assert.NotNil(t, obj.explicitFields) + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle(t *testing.T) { - t.Run("GetRef", func(t *testing.T) { + t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef - obj.Ref = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var fernTestValueToggleNoView bool - // Act & Assert - assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") + // Act + obj.SetToggleNoView(fernTestValueToggleNoView) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetRef_NilValue", func(t *testing.T) { + t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - obj.Ref = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + var fernTestValueLockedContents bool - // Act & Assert - assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") - }) + // Act + obj.SetLockedContents(fernTestValueLockedContents) - t.Run("GetRef_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRef() // Should return zero value + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetPageObjectNumber", func(t *testing.T) { +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo{} + var expected string + obj.Kind = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetKind() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var expected int - obj.Index = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber + obj.ObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") - }) - - t.Run("GetIndex_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetIndex() // Should return zero value + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") }) - t.Run("GetIdentityQuality", func(t *testing.T) { + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQuality - obj.IdentityQuality = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo{} + obj.ObjectNumber = nil // Act & Assert - assert.Equal(t, expected, obj.GetIdentityQuality(), "getter should return the property value") + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") }) - t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIdentityQuality() // Should return zero value + _ = obj.GetObjectNumber() // Should return zero value }) t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var expected *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm obj.Nm = expected // Act & Assert @@ -113764,7 +152849,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle(t t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo{} obj.Nm = nil // Act & Assert @@ -113773,7 +152858,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle(t t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -113783,802 +152868,886 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle(t _ = obj.GetNm() // Should return zero value }) - t.Run("GetFlags", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags - obj.Flags = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex + obj.Index = expected // Act & Assert - assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetFlags_NilValue", func(t *testing.T) { + t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - obj.Flags = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo{} + obj.Index = nil // Act & Assert - assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") }) - t.Run("GetFlags_NilReceiver", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFlags() // Should return zero value + _ = obj.GetIndex() // Should return zero value }) - t.Run("GetRect", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect - obj.Rect = expected +} - // Act & Assert - assert.Equal(t, expected, obj.GetRect(), "getter should return the property value") +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetRect_NilValue", func(t *testing.T) { + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - obj.Rect = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Nil(t, obj.GetRect(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetRect_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRect() // Should return zero value - }) - - t.Run("GetContents", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var expected *string - obj.Contents = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetContents(), "getter should return the property value") + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetContents_NilValue", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - obj.Contents = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex{} + var expected int + obj.Index = expected // Act & Assert - assert.Nil(t, obj.GetContents(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetContents_NilReceiver", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetContents() // Should return zero value + _ = obj.GetIndex() // Should return zero value }) - t.Run("GetSubject", func(t *testing.T) { + t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var expected *string - obj.Subject = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision + obj.Revision = expected // Act & Assert - assert.Equal(t, expected, obj.GetSubject(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") }) - t.Run("GetSubject_NilValue", func(t *testing.T) { + t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - obj.Subject = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex{} + obj.Revision = nil // Act & Assert - assert.Nil(t, obj.GetSubject(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") }) - t.Run("GetSubject_NilReceiver", func(t *testing.T) { + t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetSubject() // Should return zero value + _ = obj.GetRevision() // Should return zero value }) - t.Run("GetAuthor", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var expected *string - obj.Author = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex{} + var fernTestValuePageObjectNumber int - // Act & Assert - assert.Equal(t, expected, obj.GetAuthor(), "getter should return the property value") - }) + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - t.Run("GetAuthor_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - obj.Author = nil + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Nil(t, obj.GetAuthor(), "getter should return nil when property is nil") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetAuthor_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAuthor() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetCreated", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var expected *time.Time - obj.Created = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex{} + var fernTestValueIndex int - // Act & Assert - assert.Equal(t, expected, obj.GetCreated(), "getter should return the property value") + // Act + obj.SetIndex(fernTestValueIndex) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetCreated_NilValue", func(t *testing.T) { + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - obj.Created = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision - // Act & Assert - assert.Nil(t, obj.GetCreated(), "getter should return nil when property is nil") + // Act + obj.SetRevision(fernTestValueRevision) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetCreated_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetCreated() // Should return zero value +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision{} + var fernTestValueDocSessionID string + obj.SetDocSessionID(fernTestValueDocSessionID) + assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetModified", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var expected *time.Time - obj.Modified = expected + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") + t.Run("SetGeneration", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetModified_NilValue", func(t *testing.T) { +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - obj.Modified = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision{} + var expected string + obj.DocSessionID = expected // Act & Assert - assert.Nil(t, obj.GetModified(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") }) - t.Run("GetModified_NilReceiver", func(t *testing.T) { + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetModified() // Should return zero value + _ = obj.GetDocSessionID() // Should return zero value }) - t.Run("GetBlendMode", func(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode - obj.BlendMode = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetBlendMode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBlendMode() // Should return zero value - }) - - t.Run("GetInReplyTo", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo - obj.InReplyTo = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetInReplyTo(), "getter should return the property value") + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetInReplyTo_NilValue", func(t *testing.T) { + t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - obj.InReplyTo = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision{} + var expected int + obj.Generation = expected // Act & Assert - assert.Nil(t, obj.GetInReplyTo(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") }) - t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInReplyTo() // Should return zero value + _ = obj.GetGeneration() // Should return zero value }) - t.Run("GetReplyType", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyType - obj.ReplyType = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision{} + var fernTestValueDocSessionID string - // Act & Assert - assert.Equal(t, expected, obj.GetReplyType(), "getter should return the property value") - }) + // Act + obj.SetDocSessionID(fernTestValueDocSessionID) - t.Run("GetReplyType_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - obj.ReplyType = nil + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Nil(t, obj.GetReplyType(), "getter should return nil when property is nil") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetReplyType_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetReplyType() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetUserID", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var expected *string - obj.UserID = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int - // Act & Assert - assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") - }) + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - t.Run("GetUserID_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - obj.UserID = nil + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetUserID_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetUserID() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetGroupID", func(t *testing.T) { + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var expected *string - obj.GroupID = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision{} + var fernTestValueGeneration int - // Act & Assert - assert.Equal(t, expected, obj.GetGroupID(), "getter should return the property value") - }) + // Act + obj.SetGeneration(fernTestValueGeneration) - t.Run("GetGroupID_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - obj.GroupID = nil + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Nil(t, obj.GetGroupID(), "getter should return nil when property is nil") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetGroupID_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetGroupID() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetCreatedBy", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var expected *string - obj.CreatedBy = expected +} - // Act & Assert - assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetCreatedBy_NilValue", func(t *testing.T) { + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - obj.CreatedBy = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Nil(t, obj.GetCreatedBy(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCreatedBy() // Should return zero value - }) - - t.Run("GetUpdatedBy", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var expected *string - obj.UpdatedBy = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetUpdatedBy(), "getter should return the property value") + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - obj.UpdatedBy = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm{} + var expected string + obj.Nm = expected // Act & Assert - assert.Nil(t, obj.GetUpdatedBy(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUpdatedBy() // Should return zero value + _ = obj.GetNm() // Should return zero value }) - t.Run("GetActions", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var expected *PdfAnnotationActions - obj.Actions = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm{} + var fernTestValuePageObjectNumber int - // Act & Assert - assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") - }) + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - t.Run("GetActions_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - obj.Actions = nil + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetActions_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetActions() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetColor", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor - obj.Color = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm{} + var fernTestValueNm string - // Act & Assert - assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") - }) + // Act + obj.SetNm(fernTestValueNm) - t.Run("GetColor_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - obj.Color = nil + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetColor_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetColor() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetOpacity", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var expected float64 - obj.Opacity = expected +} - // Act & Assert - assert.Equal(t, expected, obj.GetOpacity(), "getter should return the property value") +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetOpacity_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetOpacity() // Should return zero value + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetStrokeWidth", func(t *testing.T) { +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var expected float64 - obj.StrokeWidth = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetStrokeWidth(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetStrokeWidth_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetStrokeWidth() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetBorderStyle", func(t *testing.T) { + t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle - obj.BorderStyle = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetBorderStyle(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") }) - t.Run("GetBorderStyle_NilReceiver", func(t *testing.T) { + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBorderStyle() // Should return zero value + _ = obj.GetAnnotObjectNumber() // Should return zero value }) - t.Run("GetDashArray", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var expected []float64 - obj.DashArray = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int - // Act & Assert - assert.Equal(t, expected, obj.GetDashArray(), "getter should return the property value") + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetDashArray_NilValue", func(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - obj.DashArray = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int - // Act & Assert - assert.Nil(t, obj.GetDashArray(), "getter should return nil when property is nil") - }) + // Act + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - t.Run("GetDashArray_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetDashArray() // Should return zero value + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetInteriorColor", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor - obj.InteriorColor = expected +} - // Act & Assert - assert.Equal(t, expected, obj.GetInteriorColor(), "getter should return the property value") +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem(t *testing.T) { + t.Run("SetP1", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} + var fernTestValueP1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1 + obj.SetP1(fernTestValueP1) + assert.Equal(t, fernTestValueP1, obj.P1) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetInteriorColor_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - obj.InteriorColor = nil + t.Run("SetP2", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} + var fernTestValueP2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2 + obj.SetP2(fernTestValueP2) + assert.Equal(t, fernTestValueP2, obj.P2) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Nil(t, obj.GetInteriorColor(), "getter should return nil when property is nil") + t.Run("SetP3", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} + var fernTestValueP3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3 + obj.SetP3(fernTestValueP3) + assert.Equal(t, fernTestValueP3, obj.P3) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetInteriorColor_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetInteriorColor() // Should return zero value + t.Run("SetP4", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} + var fernTestValueP4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4 + obj.SetP4(fernTestValueP4) + assert.Equal(t, fernTestValueP4, obj.P4) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetCloudyIntensity", func(t *testing.T) { +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem(t *testing.T) { + t.Run("GetP1", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var expected *float64 - obj.CloudyIntensity = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1 + obj.P1 = expected // Act & Assert - assert.Equal(t, expected, obj.GetCloudyIntensity(), "getter should return the property value") + assert.Equal(t, expected, obj.GetP1(), "getter should return the property value") }) - t.Run("GetCloudyIntensity_NilValue", func(t *testing.T) { + t.Run("GetP1_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - obj.CloudyIntensity = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} + obj.P1 = nil // Act & Assert - assert.Nil(t, obj.GetCloudyIntensity(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetP1(), "getter should return nil when property is nil") }) - t.Run("GetCloudyIntensity_NilReceiver", func(t *testing.T) { + t.Run("GetP1_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCloudyIntensity() // Should return zero value + _ = obj.GetP1() // Should return zero value }) - t.Run("GetRectDifferences", func(t *testing.T) { + t.Run("GetP2", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences - obj.RectDifferences = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2 + obj.P2 = expected // Act & Assert - assert.Equal(t, expected, obj.GetRectDifferences(), "getter should return the property value") + assert.Equal(t, expected, obj.GetP2(), "getter should return the property value") }) - t.Run("GetRectDifferences_NilValue", func(t *testing.T) { + t.Run("GetP2_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - obj.RectDifferences = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} + obj.P2 = nil // Act & Assert - assert.Nil(t, obj.GetRectDifferences(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetP2(), "getter should return nil when property is nil") }) - t.Run("GetRectDifferences_NilReceiver", func(t *testing.T) { + t.Run("GetP2_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRectDifferences() // Should return zero value + _ = obj.GetP2() // Should return zero value }) - t.Run("GetRotation", func(t *testing.T) { + t.Run("GetP3", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var expected *float64 - obj.Rotation = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3 + obj.P3 = expected // Act & Assert - assert.Equal(t, expected, obj.GetRotation(), "getter should return the property value") + assert.Equal(t, expected, obj.GetP3(), "getter should return the property value") }) - t.Run("GetRotation_NilValue", func(t *testing.T) { + t.Run("GetP3_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - obj.Rotation = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} + obj.P3 = nil // Act & Assert - assert.Nil(t, obj.GetRotation(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetP3(), "getter should return nil when property is nil") }) - t.Run("GetRotation_NilReceiver", func(t *testing.T) { + t.Run("GetP3_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRotation() // Should return zero value + _ = obj.GetP3() // Should return zero value }) - t.Run("GetUnrotatedRect", func(t *testing.T) { + t.Run("GetP4", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect - obj.UnrotatedRect = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4 + obj.P4 = expected // Act & Assert - assert.Equal(t, expected, obj.GetUnrotatedRect(), "getter should return the property value") + assert.Equal(t, expected, obj.GetP4(), "getter should return the property value") }) - t.Run("GetUnrotatedRect_NilValue", func(t *testing.T) { + t.Run("GetP4_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - obj.UnrotatedRect = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} + obj.P4 = nil // Act & Assert - assert.Nil(t, obj.GetUnrotatedRect(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetP4(), "getter should return nil when property is nil") }) - t.Run("GetUnrotatedRect_NilReceiver", func(t *testing.T) { + t.Run("GetP4_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUnrotatedRect() // Should return zero value + _ = obj.GetP4() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle(t *testing.T) { - t.Run("SetRef_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem(t *testing.T) { + t.Run("SetP1_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} + var fernTestValueP1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1 // Act - obj.SetRef(fernTestValueRef) + obj.SetP1(fernTestValueP1) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -114602,14 +153771,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetP2_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} + var fernTestValueP2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2 // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetP2(fernTestValueP2) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -114633,14 +153802,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("SetP3_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueIndex int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} + var fernTestValueP3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3 // Act - obj.SetIndex(fernTestValueIndex) + obj.SetP3(fernTestValueP3) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -114664,14 +153833,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { + t.Run("SetP4_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} + var fernTestValueP4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4 // Act - obj.SetIdentityQuality(fernTestValueIdentityQuality) + obj.SetP4(fernTestValueP4) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -114695,45 +153864,85 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueNm *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1{} + var expected float64 + obj.X = expected - // Act - obj.SetNm(fernTestValueNm) + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1{} + var expected float64 + obj.Y = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") }) - t.Run("SetFlags_MarksExplicit", func(t *testing.T) { + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1{} + var fernTestValueX float64 // Act - obj.SetFlags(fernTestValueFlags) + obj.SetX(fernTestValueX) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -114757,14 +153966,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRect_MarksExplicit", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1{} + var fernTestValueY float64 // Act - obj.SetRect(fernTestValueRect) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -114788,45 +153997,85 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetContents_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueContents *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2{} + var expected float64 + obj.X = expected - // Act - obj.SetContents(fernTestValueContents) + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2{} + var expected float64 + obj.Y = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") }) - t.Run("SetSubject_MarksExplicit", func(t *testing.T) { + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueSubject *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2{} + var fernTestValueX float64 // Act - obj.SetSubject(fernTestValueSubject) + obj.SetX(fernTestValueX) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -114850,14 +154099,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueAuthor *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2{} + var fernTestValueY float64 // Act - obj.SetAuthor(fernTestValueAuthor) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -114881,45 +154130,85 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreated_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueCreated *time.Time + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3{} + var expected float64 + obj.X = expected - // Act - obj.SetCreated(fernTestValueCreated) + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3{} + var expected float64 + obj.Y = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") }) - t.Run("SetModified_MarksExplicit", func(t *testing.T) { + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueModified *time.Time + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3{} + var fernTestValueX float64 // Act - obj.SetModified(fernTestValueModified) + obj.SetX(fernTestValueX) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -114943,14 +154232,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3{} + var fernTestValueY float64 // Act - obj.SetBlendMode(fernTestValueBlendMode) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -114974,14 +154263,85 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4{} + var expected float64 + obj.X = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4{} + var expected float64 + obj.Y = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + }) + + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4{} + var fernTestValueX float64 // Act - obj.SetInReplyTo(fernTestValueInReplyTo) + obj.SetX(fernTestValueX) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -115005,14 +154365,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4{} + var fernTestValueY float64 // Act - obj.SetReplyType(fernTestValueReplyType) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -115036,14 +154396,147 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUserID_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect{} + var fernTestValueLeft float64 + obj.SetLeft(fernTestValueLeft) + assert.Equal(t, fernTestValueLeft, obj.Left) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBottom", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect{} + var fernTestValueBottom float64 + obj.SetBottom(fernTestValueBottom) + assert.Equal(t, fernTestValueBottom, obj.Bottom) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRight", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect{} + var fernTestValueRight float64 + obj.SetRight(fernTestValueRight) + assert.Equal(t, fernTestValueRight, obj.Right) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetTop", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueUserID *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect{} + var expected float64 + obj.Left = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") + }) + + t.Run("GetLeft_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLeft() // Should return zero value + }) + + t.Run("GetBottom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect{} + var expected float64 + obj.Bottom = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") + }) + + t.Run("GetBottom_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBottom() // Should return zero value + }) + + t.Run("GetRight", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect{} + var expected float64 + obj.Right = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") + }) + + t.Run("GetRight_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRight() // Should return zero value + }) + + t.Run("GetTop", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect{} + var expected float64 + obj.Top = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + }) + + t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetTop() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect{} + var fernTestValueLeft float64 // Act - obj.SetUserID(fernTestValueUserID) + obj.SetLeft(fernTestValueLeft) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -115067,14 +154560,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueGroupID *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect{} + var fernTestValueBottom float64 // Act - obj.SetGroupID(fernTestValueGroupID) + obj.SetBottom(fernTestValueBottom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -115098,14 +154591,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueCreatedBy *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect{} + var fernTestValueRight float64 // Act - obj.SetCreatedBy(fernTestValueCreatedBy) + obj.SetRight(fernTestValueRight) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -115129,14 +154622,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueUpdatedBy *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect{} + var fernTestValueTop float64 // Act - obj.SetUpdatedBy(fernTestValueUpdatedBy) + obj.SetTop(fernTestValueTop) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -115160,14 +154653,251 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetActions_MarksExplicit", func(t *testing.T) { +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueActions *PdfAnnotationActions + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef{} + var expected string + obj.Kind = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + }) + + t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKind() // Should return zero value + }) + + t.Run("GetObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber + obj.ObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + }) + + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef{} + obj.ObjectNumber = nil + + // Act & Assert + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + }) + + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef{} + obj.Nm = nil + + // Act & Assert + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef{} + obj.Index = nil + + // Act & Assert + assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex{} + var expected int + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + + t.Run("GetRevision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision + obj.Revision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + }) + + t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex{} + obj.Revision = nil + + // Act & Assert + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + }) + + t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRevision() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex{} + var fernTestValuePageObjectNumber int // Act - obj.SetActions(fernTestValueActions) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -115191,14 +154921,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetColor_MarksExplicit", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex{} + var fernTestValueIndex int // Act - obj.SetColor(fernTestValueColor) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -115222,14 +154952,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueOpacity float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision // Act - obj.SetOpacity(fernTestValueOpacity) + obj.SetRevision(fernTestValueRevision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -115253,14 +154983,116 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetStrokeWidth_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision{} + var fernTestValueDocSessionID string + obj.SetDocSessionID(fernTestValueDocSessionID) + assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetGeneration", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision{} + var expected string + obj.DocSessionID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + }) + + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDocSessionID() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetGeneration", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision{} + var expected int + obj.Generation = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + }) + + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGeneration() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueStrokeWidth float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision{} + var fernTestValueDocSessionID string // Act - obj.SetStrokeWidth(fernTestValueStrokeWidth) + obj.SetDocSessionID(fernTestValueDocSessionID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -115284,14 +155116,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBorderStyle_MarksExplicit", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleBorderStyle + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision{} + var fernTestValuePageObjectNumber int // Act - obj.SetBorderStyle(fernTestValueBorderStyle) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -115315,14 +155147,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDashArray_MarksExplicit", func(t *testing.T) { + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueDashArray []float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision{} + var fernTestValueGeneration int // Act - obj.SetDashArray(fernTestValueDashArray) + obj.SetGeneration(fernTestValueGeneration) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -115346,107 +155178,85 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInteriorColor_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor - - // Act - obj.SetInteriorColor(fernTestValueInteriorColor) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") +} - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCloudyIntensity_MarksExplicit", func(t *testing.T) { +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueCloudyIntensity *float64 - - // Act - obj.SetCloudyIntensity(fernTestValueCloudyIntensity) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm{} + var expected int + obj.PageObjectNumber = expected - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("SetRectDifferences_MarksExplicit", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueRectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences - - // Act - obj.SetRectDifferences(fernTestValueRectDifferences) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm{} + var expected string + obj.Nm = expected - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value }) - t.Run("SetRotation_MarksExplicit", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueRotation *float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm{} + var fernTestValuePageObjectNumber int // Act - obj.SetRotation(fernTestValueRotation) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -115470,14 +155280,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUnrotatedRect_MarksExplicit", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircle{} - var fernTestValueUnrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm{} + var fernTestValueNm string // Act - obj.SetUnrotatedRect(fernTestValueUnrotatedRect) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -115503,114 +155313,83 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor(t *testing.T) { - t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor{} - var fernTestValueR int - obj.SetR(fernTestValueR) - assert.Equal(t, fernTestValueR, obj.R) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor{} - var fernTestValueG int - obj.SetG(fernTestValueG) - assert.Equal(t, fernTestValueG, obj.G) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor{} - var fernTestValueB int - obj.SetB(fernTestValueB) - assert.Equal(t, fernTestValueB, obj.B) + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor(t *testing.T) { - t.Run("GetR", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor{} - var expected int - obj.R = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetR(), "getter should return the property value") - }) - - t.Run("GetR_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetR() // Should return zero value - }) - - t.Run("GetG", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber{} var expected int - obj.G = expected + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetG(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetG_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetG() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetB", func(t *testing.T) { + t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber{} var expected int - obj.B = expected + obj.AnnotObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") }) - t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetB() // Should return zero value + _ = obj.GetAnnotObjectNumber() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor(t *testing.T) { - t.Run("SetR_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor{} - var fernTestValueR int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber{} + var fernTestValuePageObjectNumber int // Act - obj.SetR(fernTestValueR) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -115634,14 +155413,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor{} - var fernTestValueG int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber{} + var fernTestValueAnnotObjectNumber int // Act - obj.SetG(fernTestValueG) + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -115665,1106 +155444,1101 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetB_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleColor{} - var fernTestValueB int +} - // Act - obj.SetB(fernTestValueB) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *testing.T) { + t.Run("SetRef", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef + obj.SetRef(fernTestValueRef) + assert.Equal(t, fernTestValueRef, obj.Ref) + assert.NotNil(t, obj.explicitFields) + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) + assert.NotNil(t, obj.explicitFields) + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("SetIdentityQuality", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality + obj.SetIdentityQuality(fernTestValueIdentityQuality) + assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) + assert.NotNil(t, obj.explicitFields) }) -} + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueNm *string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags(t *testing.T) { - t.Run("SetInvisible", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} - var fernTestValueInvisible bool - obj.SetInvisible(fernTestValueInvisible) - assert.Equal(t, fernTestValueInvisible, obj.Invisible) + t.Run("SetFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags + obj.SetFlags(fernTestValueFlags) + assert.Equal(t, fernTestValueFlags, obj.Flags) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetHidden", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} - var fernTestValueHidden bool - obj.SetHidden(fernTestValueHidden) - assert.Equal(t, fernTestValueHidden, obj.Hidden) + t.Run("SetRect", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect + obj.SetRect(fernTestValueRect) + assert.Equal(t, fernTestValueRect, obj.Rect) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPrint", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} - var fernTestValuePrint bool - obj.SetPrint(fernTestValuePrint) - assert.Equal(t, fernTestValuePrint, obj.Print) + t.Run("SetContents", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueContents *string + obj.SetContents(fernTestValueContents) + assert.Equal(t, fernTestValueContents, obj.Contents) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNoZoom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} - var fernTestValueNoZoom bool - obj.SetNoZoom(fernTestValueNoZoom) - assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) + t.Run("SetSubject", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueSubject *string + obj.SetSubject(fernTestValueSubject) + assert.Equal(t, fernTestValueSubject, obj.Subject) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNoRotate", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} - var fernTestValueNoRotate bool - obj.SetNoRotate(fernTestValueNoRotate) - assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) + t.Run("SetAuthor", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueAuthor *string + obj.SetAuthor(fernTestValueAuthor) + assert.Equal(t, fernTestValueAuthor, obj.Author) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} - var fernTestValueNoView bool - obj.SetNoView(fernTestValueNoView) - assert.Equal(t, fernTestValueNoView, obj.NoView) + t.Run("SetCreated", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueCreated *time.Time + obj.SetCreated(fernTestValueCreated) + assert.Equal(t, fernTestValueCreated, obj.Created) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} - var fernTestValueReadOnly bool - obj.SetReadOnly(fernTestValueReadOnly) - assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) + t.Run("SetModified", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueModified *time.Time + obj.SetModified(fernTestValueModified) + assert.Equal(t, fernTestValueModified, obj.Modified) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetLocked", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} - var fernTestValueLocked bool - obj.SetLocked(fernTestValueLocked) - assert.Equal(t, fernTestValueLocked, obj.Locked) + t.Run("SetBlendMode", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode + obj.SetBlendMode(fernTestValueBlendMode) + assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetToggleNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} - var fernTestValueToggleNoView bool - obj.SetToggleNoView(fernTestValueToggleNoView) - assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) + t.Run("SetInReplyTo", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo + obj.SetInReplyTo(fernTestValueInReplyTo) + assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetLockedContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} - var fernTestValueLockedContents bool - obj.SetLockedContents(fernTestValueLockedContents) - assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) + t.Run("SetReplyType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyType + obj.SetReplyType(fernTestValueReplyType) + assert.Equal(t, fernTestValueReplyType, obj.ReplyType) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetUserID", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueUserID *string + obj.SetUserID(fernTestValueUserID) + assert.Equal(t, fernTestValueUserID, obj.UserID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetGroupID", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueGroupID *string + obj.SetGroupID(fernTestValueGroupID) + assert.Equal(t, fernTestValueGroupID, obj.GroupID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCreatedBy", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueCreatedBy *string + obj.SetCreatedBy(fernTestValueCreatedBy) + assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetUpdatedBy", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueUpdatedBy *string + obj.SetUpdatedBy(fernTestValueUpdatedBy) + assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetActions", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueActions *PdfAnnotationActions + obj.SetActions(fernTestValueActions) + assert.Equal(t, fernTestValueActions, obj.Actions) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetColor", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor + obj.SetColor(fernTestValueColor) + assert.Equal(t, fernTestValueColor, obj.Color) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetOpacity", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueOpacity float64 + obj.SetOpacity(fernTestValueOpacity) + assert.Equal(t, fernTestValueOpacity, obj.Opacity) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetStrokeWidth", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueStrokeWidth float64 + obj.SetStrokeWidth(fernTestValueStrokeWidth) + assert.Equal(t, fernTestValueStrokeWidth, obj.StrokeWidth) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBorderStyle", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle + obj.SetBorderStyle(fernTestValueBorderStyle) + assert.Equal(t, fernTestValueBorderStyle, obj.BorderStyle) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDashArray", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueDashArray []float64 + obj.SetDashArray(fernTestValueDashArray) + assert.Equal(t, fernTestValueDashArray, obj.DashArray) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIntent", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueIntent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntent + obj.SetIntent(fernTestValueIntent) + assert.Equal(t, fernTestValueIntent, obj.Intent) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetInkList", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueInkList [][]*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem + obj.SetInkList(fernTestValueInkList) + assert.Equal(t, fernTestValueInkList, obj.InkList) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRotation", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueRotation *float64 + obj.SetRotation(fernTestValueRotation) + assert.Equal(t, fernTestValueRotation, obj.Rotation) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags(t *testing.T) { - t.Run("GetInvisible", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} - var expected bool - obj.Invisible = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef + obj.Ref = expected // Act & Assert - assert.Equal(t, expected, obj.GetInvisible(), "getter should return the property value") - }) - - t.Run("GetInvisible_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetInvisible() // Should return zero value + assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") }) - t.Run("GetHidden", func(t *testing.T) { + t.Run("GetRef_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} - var expected bool - obj.Hidden = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj.Ref = nil // Act & Assert - assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") + assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") }) - t.Run("GetHidden_NilReceiver", func(t *testing.T) { + t.Run("GetRef_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetHidden() // Should return zero value + _ = obj.GetRef() // Should return zero value }) - t.Run("GetPrint", func(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} - var expected bool - obj.Print = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetPrint_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPrint() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetNoZoom", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} - var expected bool - obj.NoZoom = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected int + obj.Index = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNoZoom() // Should return zero value + _ = obj.GetIndex() // Should return zero value }) - t.Run("GetNoRotate", func(t *testing.T) { + t.Run("GetIdentityQuality", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} - var expected bool - obj.NoRotate = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality + obj.IdentityQuality = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIdentityQuality(), "getter should return the property value") }) - t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { + t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNoRotate() // Should return zero value + _ = obj.GetIdentityQuality() // Should return zero value }) - t.Run("GetNoView", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} - var expected bool - obj.NoView = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected *string + obj.Nm = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") - }) - - t.Run("GetNoView_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNoView() // Should return zero value + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("GetReadOnly", func(t *testing.T) { + t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} - var expected bool - obj.ReadOnly = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj.Nm = nil // Act & Assert - assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") }) - t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReadOnly() // Should return zero value + _ = obj.GetNm() // Should return zero value }) - t.Run("GetLocked", func(t *testing.T) { + t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} - var expected bool - obj.Locked = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags + obj.Flags = expected // Act & Assert - assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") }) - t.Run("GetLocked_NilReceiver", func(t *testing.T) { + t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj.Flags = nil + + // Act & Assert + assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") + }) + + t.Run("GetFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLocked() // Should return zero value + _ = obj.GetFlags() // Should return zero value }) - t.Run("GetToggleNoView", func(t *testing.T) { + t.Run("GetRect", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} - var expected bool - obj.ToggleNoView = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect + obj.Rect = expected // Act & Assert - assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRect(), "getter should return the property value") }) - t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { + t.Run("GetRect_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj.Rect = nil + + // Act & Assert + assert.Nil(t, obj.GetRect(), "getter should return nil when property is nil") + }) + + t.Run("GetRect_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetToggleNoView() // Should return zero value + _ = obj.GetRect() // Should return zero value }) - t.Run("GetLockedContents", func(t *testing.T) { + t.Run("GetContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} - var expected bool - obj.LockedContents = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected *string + obj.Contents = expected // Act & Assert - assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") + assert.Equal(t, expected, obj.GetContents(), "getter should return the property value") }) - t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { + t.Run("GetContents_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj.Contents = nil + + // Act & Assert + assert.Nil(t, obj.GetContents(), "getter should return nil when property is nil") + }) + + t.Run("GetContents_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLockedContents() // Should return zero value + _ = obj.GetContents() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags(t *testing.T) { - t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { + t.Run("GetSubject", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} - var fernTestValueInvisible bool - - // Act - obj.SetInvisible(fernTestValueInvisible) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected *string + obj.Subject = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetSubject(), "getter should return the property value") }) - t.Run("SetHidden_MarksExplicit", func(t *testing.T) { + t.Run("GetSubject_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} - var fernTestValueHidden bool - - // Act - obj.SetHidden(fernTestValueHidden) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj.Subject = nil - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Nil(t, obj.GetSubject(), "getter should return nil when property is nil") }) - t.Run("SetPrint_MarksExplicit", func(t *testing.T) { + t.Run("GetSubject_NilReceiver", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} - var fernTestValuePrint bool - - // Act - obj.SetPrint(fernTestValuePrint) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSubject() // Should return zero value }) - t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { + t.Run("GetAuthor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} - var fernTestValueNoZoom bool - - // Act - obj.SetNoZoom(fernTestValueNoZoom) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected *string + obj.Author = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetAuthor(), "getter should return the property value") }) - t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { + t.Run("GetAuthor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} - var fernTestValueNoRotate bool - - // Act - obj.SetNoRotate(fernTestValueNoRotate) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj.Author = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetAuthor(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetAuthor_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAuthor() // Should return zero value }) - t.Run("SetNoView_MarksExplicit", func(t *testing.T) { + t.Run("GetCreated", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} - var fernTestValueNoView bool - - // Act - obj.SetNoView(fernTestValueNoView) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected *time.Time + obj.Created = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetCreated(), "getter should return the property value") }) - t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { + t.Run("GetCreated_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} - var fernTestValueReadOnly bool - - // Act - obj.SetReadOnly(fernTestValueReadOnly) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj.Created = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetCreated(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetCreated_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCreated() // Should return zero value }) - t.Run("SetLocked_MarksExplicit", func(t *testing.T) { + t.Run("GetModified", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} - var fernTestValueLocked bool - - // Act - obj.SetLocked(fernTestValueLocked) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected *time.Time + obj.Modified = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") }) - t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { + t.Run("GetModified_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} - var fernTestValueToggleNoView bool - - // Act - obj.SetToggleNoView(fernTestValueToggleNoView) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj.Modified = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetModified(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetModified_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetModified() // Should return zero value }) - t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { + t.Run("GetBlendMode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleFlags{} - var fernTestValueLockedContents bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode + obj.BlendMode = expected - // Act - obj.SetLockedContents(fernTestValueLockedContents) + // Act & Assert + assert.Equal(t, expected, obj.GetBlendMode(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBlendMode() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetInReplyTo", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo + obj.InReplyTo = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetInReplyTo(), "getter should return the property value") }) -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { + t.Run("GetInReplyTo_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo{} - var expected string - obj.Kind = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj.InReplyTo = nil // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Nil(t, obj.GetInReplyTo(), "getter should return nil when property is nil") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKind() // Should return zero value + _ = obj.GetInReplyTo() // Should return zero value }) - t.Run("GetObjectNumber", func(t *testing.T) { + t.Run("GetReplyType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber - obj.ObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyType + obj.ReplyType = expected // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetReplyType(), "getter should return the property value") }) - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Run("GetReplyType_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo{} - obj.ObjectNumber = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj.ReplyType = nil // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetReplyType(), "getter should return nil when property is nil") }) - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetReplyType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetObjectNumber() // Should return zero value + _ = obj.GetReplyType() // Should return zero value }) - t.Run("GetNm", func(t *testing.T) { + t.Run("GetUserID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm - obj.Nm = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected *string + obj.UserID = expected // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") }) - t.Run("GetNm_NilValue", func(t *testing.T) { + t.Run("GetUserID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo{} - obj.Nm = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj.UserID = nil // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetUserID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetUserID() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetGroupID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex - obj.Index = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected *string + obj.GroupID = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetGroupID(), "getter should return the property value") }) - t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Run("GetGroupID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo{} - obj.Index = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj.GroupID = nil // Act & Assert - assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetGroupID(), "getter should return nil when property is nil") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetGroupID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetGroupID() // Should return zero value }) -} + t.Run("GetCreatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected *string + obj.CreatedBy = expected -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") }) - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) - assert.NotNil(t, obj.explicitFields) + t.Run("GetCreatedBy_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj.CreatedBy = nil + + // Act & Assert + assert.Nil(t, obj.GetCreatedBy(), "getter should return nil when property is nil") }) - t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) - assert.NotNil(t, obj.explicitFields) + t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCreatedBy() // Should return zero value }) -} + t.Run("GetUpdatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected *string + obj.UpdatedBy = expected -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + // Act & Assert + assert.Equal(t, expected, obj.GetUpdatedBy(), "getter should return the property value") + }) + + t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj.UpdatedBy = nil // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Nil(t, obj.GetUpdatedBy(), "getter should return nil when property is nil") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetUpdatedBy() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetActions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex{} - var expected int - obj.Index = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected *PdfAnnotationActions + obj.Actions = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetActions_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj.Actions = nil + + // Act & Assert + assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") + }) + + t.Run("GetActions_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetActions() // Should return zero value }) - t.Run("GetRevision", func(t *testing.T) { + t.Run("GetColor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision - obj.Revision = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor + obj.Color = expected // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") }) - t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Run("GetColor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex{} - obj.Revision = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj.Color = nil // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") }) - t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Run("GetColor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRevision() // Should return zero value + _ = obj.GetColor() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("GetOpacity", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex{} - var fernTestValuePageObjectNumber int - - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected float64 + obj.Opacity = expected - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Equal(t, expected, obj.GetOpacity(), "getter should return the property value") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetOpacity_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetOpacity() // Should return zero value }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("GetStrokeWidth", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex{} - var fernTestValueIndex int - - // Act - obj.SetIndex(fernTestValueIndex) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected float64 + obj.StrokeWidth = expected - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Equal(t, expected, obj.GetStrokeWidth(), "getter should return the property value") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetStrokeWidth_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetStrokeWidth() // Should return zero value }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("GetBorderStyle", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle + obj.BorderStyle = expected - // Act - obj.SetRevision(fernTestValueRevision) + // Act & Assert + assert.Equal(t, expected, obj.GetBorderStyle(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetBorderStyle_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBorderStyle() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetDashArray", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected []float64 + obj.DashArray = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetDashArray(), "getter should return the property value") }) -} + t.Run("GetDashArray_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj.DashArray = nil -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision{} - var fernTestValueDocSessionID string - obj.SetDocSessionID(fernTestValueDocSessionID) - assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Nil(t, obj.GetDashArray(), "getter should return nil when property is nil") }) - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) + t.Run("GetDashArray_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDashArray() // Should return zero value }) - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("GetIntent", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntent + obj.Intent = expected -} + // Act & Assert + assert.Equal(t, expected, obj.GetIntent(), "getter should return the property value") + }) -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { + t.Run("GetIntent_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision{} - var expected string - obj.DocSessionID = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj.Intent = nil // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + assert.Nil(t, obj.GetIntent(), "getter should return nil when property is nil") }) - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Run("GetIntent_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDocSessionID() // Should return zero value + _ = obj.GetIntent() // Should return zero value }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetInkList", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected [][]*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem + obj.InkList = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetInkList(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetInkList_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj.InkList = nil + + // Act & Assert + assert.Nil(t, obj.GetInkList(), "getter should return nil when property is nil") + }) + + t.Run("GetInkList_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetInkList() // Should return zero value }) - t.Run("GetGeneration", func(t *testing.T) { + t.Run("GetRotation", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision{} - var expected int - obj.Generation = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var expected *float64 + obj.Rotation = expected // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRotation(), "getter should return the property value") }) - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Run("GetRotation_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj.Rotation = nil + + // Act & Assert + assert.Nil(t, obj.GetRotation(), "getter should return nil when property is nil") + }) + + t.Run("GetRotation_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGeneration() // Should return zero value + _ = obj.GetRotation() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision{} - var fernTestValueDocSessionID string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef // Act - obj.SetDocSessionID(fernTestValueDocSessionID) + obj.SetRef(fernTestValueRef) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -116791,7 +156565,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} var fernTestValuePageObjectNumber int // Act @@ -116819,14 +156593,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToIndexRevision{} - var fernTestValueGeneration int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueIndex int // Act - obj.SetGeneration(fernTestValueGeneration) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -116850,85 +156624,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm{} - var fernTestValueNm string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm{} - var expected string - obj.Nm = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") - }) - - t.Run("GetNm_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNm() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetIdentityQuality(fernTestValueIdentityQuality) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -116955,8 +156658,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToNm{} - var fernTestValueNm string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueNm *string // Act obj.SetNm(fernTestValueNm) @@ -116983,85 +156686,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetAnnotObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") - }) - - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAnnotObjectNumber() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetFlags(fernTestValueFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -117085,14 +156717,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + obj.SetRect(fernTestValueRect) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -117116,116 +156748,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor(t *testing.T) { - t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor{} - var fernTestValueR int - obj.SetR(fernTestValueR) - assert.Equal(t, fernTestValueR, obj.R) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor{} - var fernTestValueG int - obj.SetG(fernTestValueG) - assert.Equal(t, fernTestValueG, obj.G) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor{} - var fernTestValueB int - obj.SetB(fernTestValueB) - assert.Equal(t, fernTestValueB, obj.B) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor(t *testing.T) { - t.Run("GetR", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor{} - var expected int - obj.R = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetR(), "getter should return the property value") - }) - - t.Run("GetR_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetR() // Should return zero value - }) - - t.Run("GetG", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor{} - var expected int - obj.G = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetG(), "getter should return the property value") - }) - - t.Run("GetG_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetG() // Should return zero value - }) - - t.Run("GetB", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor{} - var expected int - obj.B = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetB(), "getter should return the property value") - }) - - t.Run("GetB_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetB() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor(t *testing.T) { - t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Run("SetContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor{} - var fernTestValueR int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueContents *string // Act - obj.SetR(fernTestValueR) + obj.SetContents(fernTestValueContents) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -117249,14 +156779,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Run("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor{} - var fernTestValueG int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueSubject *string // Act - obj.SetG(fernTestValueG) + obj.SetSubject(fernTestValueSubject) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -117280,14 +156810,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleInteriorColor{} - var fernTestValueB int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueAuthor *string // Act - obj.SetB(fernTestValueB) + obj.SetAuthor(fernTestValueAuthor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -117311,147 +156841,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect(t *testing.T) { - t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect{} - var fernTestValueLeft float64 - obj.SetLeft(fernTestValueLeft) - assert.Equal(t, fernTestValueLeft, obj.Left) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect{} - var fernTestValueBottom float64 - obj.SetBottom(fernTestValueBottom) - assert.Equal(t, fernTestValueBottom, obj.Bottom) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect{} - var fernTestValueRight float64 - obj.SetRight(fernTestValueRight) - assert.Equal(t, fernTestValueRight, obj.Right) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect{} - var fernTestValueTop float64 - obj.SetTop(fernTestValueTop) - assert.Equal(t, fernTestValueTop, obj.Top) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect(t *testing.T) { - t.Run("GetLeft", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect{} - var expected float64 - obj.Left = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") - }) - - t.Run("GetLeft_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetLeft() // Should return zero value - }) - - t.Run("GetBottom", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect{} - var expected float64 - obj.Bottom = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") - }) - - t.Run("GetBottom_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetBottom() // Should return zero value - }) - - t.Run("GetRight", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect{} - var expected float64 - obj.Right = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") - }) - - t.Run("GetRight_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRight() // Should return zero value - }) - - t.Run("GetTop", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect{} - var expected float64 - obj.Top = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") - }) - - t.Run("GetTop_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetTop() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect(t *testing.T) { - t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Run("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect{} - var fernTestValueLeft float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueCreated *time.Time // Act - obj.SetLeft(fernTestValueLeft) + obj.SetCreated(fernTestValueCreated) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -117475,14 +156872,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Run("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect{} - var fernTestValueBottom float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueModified *time.Time // Act - obj.SetBottom(fernTestValueBottom) + obj.SetModified(fernTestValueModified) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -117506,14 +156903,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRight_MarksExplicit", func(t *testing.T) { + t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect{} - var fernTestValueRight float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode // Act - obj.SetRight(fernTestValueRight) + obj.SetBlendMode(fernTestValueBlendMode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -117537,14 +156934,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRect{} - var fernTestValueTop float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo // Act - obj.SetTop(fernTestValueTop) + obj.SetInReplyTo(fernTestValueInReplyTo) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -117568,147 +156965,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences(t *testing.T) { - t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences{} - var fernTestValueLeft float64 - obj.SetLeft(fernTestValueLeft) - assert.Equal(t, fernTestValueLeft, obj.Left) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences{} - var fernTestValueTop float64 - obj.SetTop(fernTestValueTop) - assert.Equal(t, fernTestValueTop, obj.Top) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences{} - var fernTestValueRight float64 - obj.SetRight(fernTestValueRight) - assert.Equal(t, fernTestValueRight, obj.Right) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences{} - var fernTestValueBottom float64 - obj.SetBottom(fernTestValueBottom) - assert.Equal(t, fernTestValueBottom, obj.Bottom) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences(t *testing.T) { - t.Run("GetLeft", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences{} - var expected float64 - obj.Left = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") - }) - - t.Run("GetLeft_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetLeft() // Should return zero value - }) - - t.Run("GetTop", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences{} - var expected float64 - obj.Top = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") - }) - - t.Run("GetTop_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetTop() // Should return zero value - }) - - t.Run("GetRight", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences{} - var expected float64 - obj.Right = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") - }) - - t.Run("GetRight_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRight() // Should return zero value - }) - - t.Run("GetBottom", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences{} - var expected float64 - obj.Bottom = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") - }) - - t.Run("GetBottom_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetBottom() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences(t *testing.T) { - t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences{} - var fernTestValueLeft float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyType // Act - obj.SetLeft(fernTestValueLeft) + obj.SetReplyType(fernTestValueReplyType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -117732,14 +156996,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Run("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences{} - var fernTestValueTop float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueUserID *string // Act - obj.SetTop(fernTestValueTop) + obj.SetUserID(fernTestValueUserID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -117763,14 +157027,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRight_MarksExplicit", func(t *testing.T) { + t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences{} - var fernTestValueRight float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueGroupID *string // Act - obj.SetRight(fernTestValueRight) + obj.SetGroupID(fernTestValueGroupID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -117794,14 +157058,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRectDifferences{} - var fernTestValueBottom float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueCreatedBy *string // Act - obj.SetBottom(fernTestValueBottom) + obj.SetCreatedBy(fernTestValueCreatedBy) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -117825,251 +157089,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef{} - var expected string - obj.Kind = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") - }) - - t.Run("GetKind_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetKind() // Should return zero value - }) - - t.Run("GetObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber - obj.ObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") - }) - - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef{} - obj.ObjectNumber = nil - - // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") - }) - - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetObjectNumber() // Should return zero value - }) - - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm - obj.Nm = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") - }) - - t.Run("GetNm_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef{} - obj.Nm = nil - - // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") - }) - - t.Run("GetNm_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNm() // Should return zero value - }) - - t.Run("GetIndex", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex - obj.Index = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") - }) - - t.Run("GetIndex_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef{} - obj.Index = nil - - // Act & Assert - assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") - }) - - t.Run("GetIndex_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRef - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetIndex() // Should return zero value - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetIndex", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex{} - var expected int - obj.Index = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") - }) - - t.Run("GetIndex_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetIndex() // Should return zero value - }) - - t.Run("GetRevision", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision - obj.Revision = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") - }) - - t.Run("GetRevision_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex{} - obj.Revision = nil - - // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") - }) - - t.Run("GetRevision_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRevision() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueUpdatedBy *string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetUpdatedBy(fernTestValueUpdatedBy) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -118093,14 +157120,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("SetActions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex{} - var fernTestValueIndex int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueActions *PdfAnnotationActions // Act - obj.SetIndex(fernTestValueIndex) + obj.SetActions(fernTestValueActions) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -118124,14 +157151,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("SetColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor // Act - obj.SetRevision(fernTestValueRevision) + obj.SetColor(fernTestValueColor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -118155,116 +157182,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision{} - var fernTestValueDocSessionID string - obj.SetDocSessionID(fernTestValueDocSessionID) - assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision{} - var expected string - obj.DocSessionID = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") - }) - - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetDocSessionID() // Should return zero value - }) - - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetGeneration", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision{} - var expected int - obj.Generation = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") - }) - - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetGeneration() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision{} - var fernTestValueDocSessionID string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueOpacity float64 // Act - obj.SetDocSessionID(fernTestValueDocSessionID) + obj.SetOpacity(fernTestValueOpacity) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -118288,14 +157213,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetStrokeWidth_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueStrokeWidth float64 // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetStrokeWidth(fernTestValueStrokeWidth) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -118319,14 +157244,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("SetBorderStyle_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefIndexRevision{} - var fernTestValueGeneration int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle // Act - obj.SetGeneration(fernTestValueGeneration) + obj.SetBorderStyle(fernTestValueBorderStyle) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -118350,85 +157275,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm{} - var fernTestValueNm string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm{} - var expected string - obj.Nm = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") - }) - - t.Run("GetNm_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNm() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetDashArray_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueDashArray []float64 // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetDashArray(fernTestValueDashArray) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -118452,14 +157306,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetIntent_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefNm{} - var fernTestValueNm string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueIntent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntent // Act - obj.SetNm(fernTestValueNm) + obj.SetIntent(fernTestValueIntent) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -118483,85 +157337,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetAnnotObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") - }) - - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAnnotObjectNumber() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetInkList_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueInkList [][]*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetInkList(fernTestValueInkList) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -118585,14 +157368,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetRotation_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleRefObjectNumber{} - var fernTestValueAnnotObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + var fernTestValueRotation *float64 // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + obj.SetRotation(fernTestValueRotation) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -118618,176 +157401,114 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect(t *testing.T) { - t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect{} - var fernTestValueLeft float64 - obj.SetLeft(fernTestValueLeft) - assert.Equal(t, fernTestValueLeft, obj.Left) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect{} - var fernTestValueBottom float64 - obj.SetBottom(fernTestValueBottom) - assert.Equal(t, fernTestValueBottom, obj.Bottom) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor(t *testing.T) { + t.Run("SetR", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor{} + var fernTestValueR int + obj.SetR(fernTestValueR) + assert.Equal(t, fernTestValueR, obj.R) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect{} - var fernTestValueRight float64 - obj.SetRight(fernTestValueRight) - assert.Equal(t, fernTestValueRight, obj.Right) + t.Run("SetG", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor{} + var fernTestValueG int + obj.SetG(fernTestValueG) + assert.Equal(t, fernTestValueG, obj.G) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect{} - var fernTestValueTop float64 - obj.SetTop(fernTestValueTop) - assert.Equal(t, fernTestValueTop, obj.Top) + t.Run("SetB", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect(t *testing.T) { - t.Run("GetLeft", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect{} - var expected float64 - obj.Left = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") - }) - - t.Run("GetLeft_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetLeft() // Should return zero value - }) - - t.Run("GetBottom", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect{} - var expected float64 - obj.Bottom = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor{} + var expected int + obj.R = expected // Act & Assert - assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") }) - t.Run("GetBottom_NilReceiver", func(t *testing.T) { + t.Run("GetR_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBottom() // Should return zero value + _ = obj.GetR() // Should return zero value }) - t.Run("GetRight", func(t *testing.T) { + t.Run("GetG", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect{} - var expected float64 - obj.Right = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor{} + var expected int + obj.G = expected // Act & Assert - assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") }) - t.Run("GetRight_NilReceiver", func(t *testing.T) { + t.Run("GetG_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRight() // Should return zero value + _ = obj.GetG() // Should return zero value }) - t.Run("GetTop", func(t *testing.T) { + t.Run("GetB", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect{} - var expected float64 - obj.Top = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor{} + var expected int + obj.B = expected // Act & Assert - assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") }) - t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Run("GetB_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTop() // Should return zero value + _ = obj.GetB() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect(t *testing.T) { - t.Run("SetLeft_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect{} - var fernTestValueLeft float64 - - // Act - obj.SetLeft(fernTestValueLeft) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetBottom_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect{} - var fernTestValueBottom float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor{} + var fernTestValueR int // Act - obj.SetBottom(fernTestValueBottom) + obj.SetR(fernTestValueR) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -118811,14 +157532,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRight_MarksExplicit", func(t *testing.T) { + t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect{} - var fernTestValueRight float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor{} + var fernTestValueG int // Act - obj.SetRight(fernTestValueRight) + obj.SetG(fernTestValueG) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -118842,1040 +157563,911 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Run("SetB_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemCircleUnrotatedRect{} - var fernTestValueTop float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor{} + var fernTestValueB int // Act - obj.SetTop(fernTestValueTop) + obj.SetB(fernTestValueB) // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment(t *testing.T) { - t.Run("SetRef", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef - obj.SetRef(fernTestValueRef) - assert.Equal(t, fernTestValueRef, obj.Ref) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIdentityQuality", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQuality - obj.SetIdentityQuality(fernTestValueIdentityQuality) - assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueNm *string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetFlags", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags - obj.SetFlags(fernTestValueFlags) - assert.Equal(t, fernTestValueFlags, obj.Flags) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRect", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect - obj.SetRect(fernTestValueRect) - assert.Equal(t, fernTestValueRect, obj.Rect) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueContents *string - obj.SetContents(fernTestValueContents) - assert.Equal(t, fernTestValueContents, obj.Contents) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetSubject", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueSubject *string - obj.SetSubject(fernTestValueSubject) - assert.Equal(t, fernTestValueSubject, obj.Subject) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAuthor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueAuthor *string - obj.SetAuthor(fernTestValueAuthor) - assert.Equal(t, fernTestValueAuthor, obj.Author) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCreated", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueCreated *time.Time - obj.SetCreated(fernTestValueCreated) - assert.Equal(t, fernTestValueCreated, obj.Created) - assert.NotNil(t, obj.explicitFields) - }) + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("SetModified", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueModified *time.Time - obj.SetModified(fernTestValueModified) - assert.Equal(t, fernTestValueModified, obj.Modified) - assert.NotNil(t, obj.explicitFields) - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("SetBlendMode", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode - obj.SetBlendMode(fernTestValueBlendMode) - assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) - assert.NotNil(t, obj.explicitFields) + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInReplyTo", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo - obj.SetInReplyTo(fernTestValueInReplyTo) - assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) - assert.NotNil(t, obj.explicitFields) - }) +} - t.Run("SetReplyType", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyType - obj.SetReplyType(fernTestValueReplyType) - assert.Equal(t, fernTestValueReplyType, obj.ReplyType) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags(t *testing.T) { + t.Run("SetInvisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var fernTestValueInvisible bool + obj.SetInvisible(fernTestValueInvisible) + assert.Equal(t, fernTestValueInvisible, obj.Invisible) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetUserID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueUserID *string - obj.SetUserID(fernTestValueUserID) - assert.Equal(t, fernTestValueUserID, obj.UserID) + t.Run("SetHidden", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var fernTestValueHidden bool + obj.SetHidden(fernTestValueHidden) + assert.Equal(t, fernTestValueHidden, obj.Hidden) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetGroupID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueGroupID *string - obj.SetGroupID(fernTestValueGroupID) - assert.Equal(t, fernTestValueGroupID, obj.GroupID) + t.Run("SetPrint", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var fernTestValuePrint bool + obj.SetPrint(fernTestValuePrint) + assert.Equal(t, fernTestValuePrint, obj.Print) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCreatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueCreatedBy *string - obj.SetCreatedBy(fernTestValueCreatedBy) - assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) + t.Run("SetNoZoom", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var fernTestValueNoZoom bool + obj.SetNoZoom(fernTestValueNoZoom) + assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetUpdatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueUpdatedBy *string - obj.SetUpdatedBy(fernTestValueUpdatedBy) - assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) + t.Run("SetNoRotate", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var fernTestValueNoRotate bool + obj.SetNoRotate(fernTestValueNoRotate) + assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetActions", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueActions *PdfAnnotationActions - obj.SetActions(fernTestValueActions) - assert.Equal(t, fernTestValueActions, obj.Actions) + t.Run("SetNoView", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var fernTestValueNoView bool + obj.SetNoView(fernTestValueNoView) + assert.Equal(t, fernTestValueNoView, obj.NoView) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetColor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor - obj.SetColor(fernTestValueColor) - assert.Equal(t, fernTestValueColor, obj.Color) + t.Run("SetReadOnly", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var fernTestValueReadOnly bool + obj.SetReadOnly(fernTestValueReadOnly) + assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOpacity", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueOpacity float64 - obj.SetOpacity(fernTestValueOpacity) - assert.Equal(t, fernTestValueOpacity, obj.Opacity) + t.Run("SetLocked", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var fernTestValueLocked bool + obj.SetLocked(fernTestValueLocked) + assert.Equal(t, fernTestValueLocked, obj.Locked) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetIcon", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueIcon DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon - obj.SetIcon(fernTestValueIcon) - assert.Equal(t, fernTestValueIcon, obj.Icon) + t.Run("SetToggleNoView", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var fernTestValueToggleNoView bool + obj.SetToggleNoView(fernTestValueToggleNoView) + assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetFile", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueFile *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile - obj.SetFile(fernTestValueFile) - assert.Equal(t, fernTestValueFile, obj.File) + t.Run("SetLockedContents", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var fernTestValueLockedContents bool + obj.SetLockedContents(fernTestValueLockedContents) + assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment(t *testing.T) { - t.Run("GetRef", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef - obj.Ref = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") - }) - - t.Run("GetRef_NilValue", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags(t *testing.T) { + t.Run("GetInvisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - obj.Ref = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var expected bool + obj.Invisible = expected // Act & Assert - assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetInvisible(), "getter should return the property value") }) - t.Run("GetRef_NilReceiver", func(t *testing.T) { + t.Run("GetInvisible_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRef() // Should return zero value + _ = obj.GetInvisible() // Should return zero value }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetHidden", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var expected bool + obj.Hidden = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetHidden_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetHidden() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetPrint", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var expected int - obj.Index = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var expected bool + obj.Print = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetPrint_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetPrint() // Should return zero value }) - t.Run("GetIdentityQuality", func(t *testing.T) { + t.Run("GetNoZoom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQuality - obj.IdentityQuality = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var expected bool + obj.NoZoom = expected // Act & Assert - assert.Equal(t, expected, obj.GetIdentityQuality(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") }) - t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { + t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIdentityQuality() // Should return zero value - }) - - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var expected *string - obj.Nm = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + _ = obj.GetNoZoom() // Should return zero value }) - t.Run("GetNm_NilValue", func(t *testing.T) { + t.Run("GetNoRotate", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - obj.Nm = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var expected bool + obj.NoRotate = expected // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value - }) - - t.Run("GetFlags", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags - obj.Flags = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") + _ = obj.GetNoRotate() // Should return zero value }) - t.Run("GetFlags_NilValue", func(t *testing.T) { + t.Run("GetNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - obj.Flags = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var expected bool + obj.NoView = expected // Act & Assert - assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") }) - t.Run("GetFlags_NilReceiver", func(t *testing.T) { + t.Run("GetNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFlags() // Should return zero value - }) - - t.Run("GetRect", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect - obj.Rect = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRect(), "getter should return the property value") + _ = obj.GetNoView() // Should return zero value }) - t.Run("GetRect_NilValue", func(t *testing.T) { + t.Run("GetReadOnly", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - obj.Rect = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var expected bool + obj.ReadOnly = expected // Act & Assert - assert.Nil(t, obj.GetRect(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") }) - t.Run("GetRect_NilReceiver", func(t *testing.T) { + t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRect() // Should return zero value - }) - - t.Run("GetContents", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var expected *string - obj.Contents = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetContents(), "getter should return the property value") + _ = obj.GetReadOnly() // Should return zero value }) - t.Run("GetContents_NilValue", func(t *testing.T) { + t.Run("GetLocked", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - obj.Contents = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var expected bool + obj.Locked = expected // Act & Assert - assert.Nil(t, obj.GetContents(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") }) - t.Run("GetContents_NilReceiver", func(t *testing.T) { + t.Run("GetLocked_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetContents() // Should return zero value - }) - - t.Run("GetSubject", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var expected *string - obj.Subject = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetSubject(), "getter should return the property value") + _ = obj.GetLocked() // Should return zero value }) - t.Run("GetSubject_NilValue", func(t *testing.T) { + t.Run("GetToggleNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - obj.Subject = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var expected bool + obj.ToggleNoView = expected // Act & Assert - assert.Nil(t, obj.GetSubject(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") }) - t.Run("GetSubject_NilReceiver", func(t *testing.T) { + t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetSubject() // Should return zero value - }) - - t.Run("GetAuthor", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var expected *string - obj.Author = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAuthor(), "getter should return the property value") + _ = obj.GetToggleNoView() // Should return zero value }) - t.Run("GetAuthor_NilValue", func(t *testing.T) { + t.Run("GetLockedContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - obj.Author = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var expected bool + obj.LockedContents = expected // Act & Assert - assert.Nil(t, obj.GetAuthor(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") }) - t.Run("GetAuthor_NilReceiver", func(t *testing.T) { + t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAuthor() // Should return zero value + _ = obj.GetLockedContents() // Should return zero value }) - t.Run("GetCreated", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags(t *testing.T) { + t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var expected *time.Time - obj.Created = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var fernTestValueInvisible bool - // Act & Assert - assert.Equal(t, expected, obj.GetCreated(), "getter should return the property value") - }) + // Act + obj.SetInvisible(fernTestValueInvisible) - t.Run("GetCreated_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - obj.Created = nil + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Nil(t, obj.GetCreated(), "getter should return nil when property is nil") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetCreated_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetCreated() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetModified", func(t *testing.T) { + t.Run("SetHidden_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var expected *time.Time - obj.Modified = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var fernTestValueHidden bool - // Act & Assert - assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") - }) + // Act + obj.SetHidden(fernTestValueHidden) - t.Run("GetModified_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - obj.Modified = nil + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Nil(t, obj.GetModified(), "getter should return nil when property is nil") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetModified_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetModified() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetBlendMode", func(t *testing.T) { + t.Run("SetPrint_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode - obj.BlendMode = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var fernTestValuePrint bool - // Act & Assert - assert.Equal(t, expected, obj.GetBlendMode(), "getter should return the property value") - }) + // Act + obj.SetPrint(fernTestValuePrint) - t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetBlendMode() // Should return zero value + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetInReplyTo", func(t *testing.T) { + t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo - obj.InReplyTo = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var fernTestValueNoZoom bool - // Act & Assert - assert.Equal(t, expected, obj.GetInReplyTo(), "getter should return the property value") + // Act + obj.SetNoZoom(fernTestValueNoZoom) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetInReplyTo_NilValue", func(t *testing.T) { + t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - obj.InReplyTo = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var fernTestValueNoRotate bool - // Act & Assert - assert.Nil(t, obj.GetInReplyTo(), "getter should return nil when property is nil") - }) + // Act + obj.SetNoRotate(fernTestValueNoRotate) - t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetInReplyTo() // Should return zero value + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetReplyType", func(t *testing.T) { + t.Run("SetNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyType - obj.ReplyType = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var fernTestValueNoView bool - // Act & Assert - assert.Equal(t, expected, obj.GetReplyType(), "getter should return the property value") + // Act + obj.SetNoView(fernTestValueNoView) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetReplyType_NilValue", func(t *testing.T) { + t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - obj.ReplyType = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var fernTestValueReadOnly bool - // Act & Assert - assert.Nil(t, obj.GetReplyType(), "getter should return nil when property is nil") - }) + // Act + obj.SetReadOnly(fernTestValueReadOnly) - t.Run("GetReplyType_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetReplyType() // Should return zero value + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetUserID", func(t *testing.T) { + t.Run("SetLocked_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var expected *string - obj.UserID = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var fernTestValueLocked bool - // Act & Assert - assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") + // Act + obj.SetLocked(fernTestValueLocked) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetUserID_NilValue", func(t *testing.T) { + t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - obj.UserID = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var fernTestValueToggleNoView bool - // Act & Assert - assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") - }) + // Act + obj.SetToggleNoView(fernTestValueToggleNoView) - t.Run("GetUserID_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetUserID() // Should return zero value + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetGroupID", func(t *testing.T) { + t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var expected *string - obj.GroupID = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} + var fernTestValueLockedContents bool - // Act & Assert - assert.Equal(t, expected, obj.GetGroupID(), "getter should return the property value") + // Act + obj.SetLockedContents(fernTestValueLockedContents) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetGroupID_NilValue", func(t *testing.T) { +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - obj.GroupID = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo{} + var expected string + obj.Kind = expected // Act & Assert - assert.Nil(t, obj.GetGroupID(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") }) - t.Run("GetGroupID_NilReceiver", func(t *testing.T) { + t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGroupID() // Should return zero value + _ = obj.GetKind() // Should return zero value }) - t.Run("GetCreatedBy", func(t *testing.T) { + t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var expected *string - obj.CreatedBy = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber + obj.ObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") }) - t.Run("GetCreatedBy_NilValue", func(t *testing.T) { + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - obj.CreatedBy = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo{} + obj.ObjectNumber = nil // Act & Assert - assert.Nil(t, obj.GetCreatedBy(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") }) - t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCreatedBy() // Should return zero value + _ = obj.GetObjectNumber() // Should return zero value }) - t.Run("GetUpdatedBy", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var expected *string - obj.UpdatedBy = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm + obj.Nm = expected // Act & Assert - assert.Equal(t, expected, obj.GetUpdatedBy(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { + t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - obj.UpdatedBy = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo{} + obj.Nm = nil // Act & Assert - assert.Nil(t, obj.GetUpdatedBy(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") }) - t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUpdatedBy() // Should return zero value + _ = obj.GetNm() // Should return zero value }) - t.Run("GetActions", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var expected *PdfAnnotationActions - obj.Actions = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex + obj.Index = expected // Act & Assert - assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetActions_NilValue", func(t *testing.T) { + t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - obj.Actions = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo{} + obj.Index = nil // Act & Assert - assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") }) - t.Run("GetActions_NilReceiver", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetActions() // Should return zero value + _ = obj.GetIndex() // Should return zero value }) - t.Run("GetColor", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor - obj.Color = expected +} - // Act & Assert - assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetColor_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - obj.Color = nil - - // Act & Assert - assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetColor_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetColor() // Should return zero value + t.Run("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetOpacity", func(t *testing.T) { +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var expected float64 - obj.Opacity = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetOpacity(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetOpacity_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOpacity() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetIcon", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon - obj.Icon = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex{} + var expected int + obj.Index = expected // Act & Assert - assert.Equal(t, expected, obj.GetIcon(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetIcon_NilReceiver", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIcon() // Should return zero value + _ = obj.GetIndex() // Should return zero value }) - t.Run("GetFile", func(t *testing.T) { + t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile - obj.File = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision + obj.Revision = expected // Act & Assert - assert.Equal(t, expected, obj.GetFile(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") }) - t.Run("GetFile_NilValue", func(t *testing.T) { + t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - obj.File = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex{} + obj.Revision = nil // Act & Assert - assert.Nil(t, obj.GetFile(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") }) - t.Run("GetFile_NilReceiver", func(t *testing.T) { + t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFile() // Should return zero value + _ = obj.GetRevision() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment(t *testing.T) { - t.Run("SetRef_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef - - // Act - obj.SetRef(fernTestValueRef) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex{} var fernTestValuePageObjectNumber int // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueIndex int - - // Act - obj.SetIndex(fernTestValueIndex) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -119899,14 +158491,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex{} + var fernTestValueIndex int // Act - obj.SetIdentityQuality(fernTestValueIdentityQuality) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -119930,14 +158522,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueNm *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision // Act - obj.SetNm(fernTestValueNm) + obj.SetRevision(fernTestValueRevision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -119961,45 +158553,116 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFlags_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision{} + var fernTestValueDocSessionID string + obj.SetDocSessionID(fernTestValueDocSessionID) + assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetGeneration", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision{} + var expected string + obj.DocSessionID = expected - // Act - obj.SetFlags(fernTestValueFlags) + // Act & Assert + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDocSessionID() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision{} + var expected int + obj.PageObjectNumber = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("SetRect_MarksExplicit", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision{} + var expected int + obj.Generation = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + }) + + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGeneration() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision{} + var fernTestValueDocSessionID string // Act - obj.SetRect(fernTestValueRect) + obj.SetDocSessionID(fernTestValueDocSessionID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -120023,14 +158686,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetContents_MarksExplicit", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueContents *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int // Act - obj.SetContents(fernTestValueContents) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -120054,14 +158717,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetSubject_MarksExplicit", func(t *testing.T) { + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueSubject *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision{} + var fernTestValueGeneration int // Act - obj.SetSubject(fernTestValueSubject) + obj.SetGeneration(fernTestValueGeneration) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -120085,45 +158748,85 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueAuthor *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm{} + var expected int + obj.PageObjectNumber = expected - // Act - obj.SetAuthor(fernTestValueAuthor) + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm{} + var expected string + obj.Nm = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("SetCreated_MarksExplicit", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueCreated *time.Time + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm{} + var fernTestValuePageObjectNumber int // Act - obj.SetCreated(fernTestValueCreated) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -120147,14 +158850,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetModified_MarksExplicit", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueModified *time.Time + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm{} + var fernTestValueNm string // Act - obj.SetModified(fernTestValueModified) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -120178,45 +158881,85 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber{} + var expected int + obj.PageObjectNumber = expected - // Act - obj.SetBlendMode(fernTestValueBlendMode) + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") }) - t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAnnotObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int // Act - obj.SetInReplyTo(fernTestValueInReplyTo) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -120240,14 +158983,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int // Act - obj.SetReplyType(fernTestValueReplyType) + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -120271,45 +159014,85 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUserID_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueUserID *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem{} + var expected float64 + obj.X = expected - // Act - obj.SetUserID(fernTestValueUserID) + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem{} + var expected float64 + obj.Y = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") }) - t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueGroupID *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem{} + var fernTestValueX float64 // Act - obj.SetGroupID(fernTestValueGroupID) + obj.SetX(fernTestValueX) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -120333,14 +159116,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueCreatedBy *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem{} + var fernTestValueY float64 // Act - obj.SetCreatedBy(fernTestValueCreatedBy) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -120364,76 +159147,147 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect{} + var fernTestValueLeft float64 + obj.SetLeft(fernTestValueLeft) + assert.Equal(t, fernTestValueLeft, obj.Left) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBottom", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect{} + var fernTestValueBottom float64 + obj.SetBottom(fernTestValueBottom) + assert.Equal(t, fernTestValueBottom, obj.Bottom) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRight", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect{} + var fernTestValueRight float64 + obj.SetRight(fernTestValueRight) + assert.Equal(t, fernTestValueRight, obj.Right) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetTop", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueUpdatedBy *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect{} + var expected float64 + obj.Left = expected - // Act - obj.SetUpdatedBy(fernTestValueUpdatedBy) + // Act & Assert + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetLeft_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLeft() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetBottom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect{} + var expected float64 + obj.Bottom = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") }) - t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Run("GetBottom_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBottom() // Should return zero value + }) + + t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueActions *PdfAnnotationActions + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect{} + var expected float64 + obj.Right = expected - // Act - obj.SetActions(fernTestValueActions) + // Act & Assert + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetRight_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRight() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetTop", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect{} + var expected float64 + obj.Top = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") }) - t.Run("SetColor_MarksExplicit", func(t *testing.T) { + t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetTop() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect{} + var fernTestValueLeft float64 // Act - obj.SetColor(fernTestValueColor) + obj.SetLeft(fernTestValueLeft) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -120457,14 +159311,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueOpacity float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect{} + var fernTestValueBottom float64 // Act - obj.SetOpacity(fernTestValueOpacity) + obj.SetBottom(fernTestValueBottom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -120488,14 +159342,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIcon_MarksExplicit", func(t *testing.T) { + t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueIcon DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentIcon + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect{} + var fernTestValueRight float64 // Act - obj.SetIcon(fernTestValueIcon) + obj.SetRight(fernTestValueRight) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -120519,14 +159373,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFile_MarksExplicit", func(t *testing.T) { + t.Run("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachment{} - var fernTestValueFile *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect{} + var fernTestValueTop float64 // Act - obj.SetFile(fernTestValueFile) + obj.SetTop(fernTestValueTop) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -120552,114 +159406,249 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor(t *testing.T) { - t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor{} - var fernTestValueR int - obj.SetR(fernTestValueR) - assert.Equal(t, fernTestValueR, obj.R) +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef{} + var expected string + obj.Kind = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + }) + + t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKind() // Should return zero value + }) + + t.Run("GetObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber + obj.ObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + }) + + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef{} + obj.ObjectNumber = nil + + // Act & Assert + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + }) + + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef{} + obj.Nm = nil + + // Act & Assert + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef{} + obj.Index = nil + + // Act & Assert + assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor{} - var fernTestValueG int - obj.SetG(fernTestValueG) - assert.Equal(t, fernTestValueG, obj.G) + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor{} - var fernTestValueB int - obj.SetB(fernTestValueB) - assert.Equal(t, fernTestValueB, obj.B) + t.Run("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor(t *testing.T) { - t.Run("GetR", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex{} var expected int - obj.R = expected + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetR(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetR_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetR() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetG", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex{} var expected int - obj.G = expected + obj.Index = expected // Act & Assert - assert.Equal(t, expected, obj.GetG(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetG_NilReceiver", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetG() // Should return zero value + _ = obj.GetIndex() // Should return zero value }) - t.Run("GetB", func(t *testing.T) { + t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor{} - var expected int - obj.B = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision + obj.Revision = expected // Act & Assert - assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") }) - t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex{} + obj.Revision = nil + + // Act & Assert + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + }) + + t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetB() // Should return zero value + _ = obj.GetRevision() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor(t *testing.T) { - t.Run("SetR_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor{} - var fernTestValueR int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex{} + var fernTestValuePageObjectNumber int // Act - obj.SetR(fernTestValueR) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -120683,14 +159672,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor{} - var fernTestValueG int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex{} + var fernTestValueIndex int // Act - obj.SetG(fernTestValueG) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -120714,14 +159703,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentColor{} - var fernTestValueB int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision // Act - obj.SetB(fernTestValueB) + obj.SetRevision(fernTestValueRevision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -120747,257 +159736,145 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} - var fernTestValueName string - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetMimeType", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} - var fernTestValueMimeType *string - obj.SetMimeType(fernTestValueMimeType) - assert.Equal(t, fernTestValueMimeType, obj.MimeType) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetDescription", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} - var fernTestValueDescription *string - obj.SetDescription(fernTestValueDescription) - assert.Equal(t, fernTestValueDescription, obj.Description) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetSize", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} - var fernTestValueSize *int - obj.SetSize(fernTestValueSize) - assert.Equal(t, fernTestValueSize, obj.Size) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision{} + var fernTestValueDocSessionID string + obj.SetDocSessionID(fernTestValueDocSessionID) + assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetChecksum", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} - var fernTestValueChecksum *string - obj.SetChecksum(fernTestValueChecksum) - assert.Equal(t, fernTestValueChecksum, obj.Checksum) + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCreationDate", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} - var fernTestValueCreationDate *string - obj.SetCreationDate(fernTestValueCreationDate) - assert.Equal(t, fernTestValueCreationDate, obj.CreationDate) + t.Run("SetGeneration", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile(t *testing.T) { - t.Run("GetName", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} - var expected string - obj.Name = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") - }) - - t.Run("GetName_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetName() // Should return zero value - }) - - t.Run("GetMimeType", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} - var expected *string - obj.MimeType = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetMimeType(), "getter should return the property value") - }) - - t.Run("GetMimeType_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} - obj.MimeType = nil - - // Act & Assert - assert.Nil(t, obj.GetMimeType(), "getter should return nil when property is nil") - }) - - t.Run("GetMimeType_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetMimeType() // Should return zero value - }) - - t.Run("GetDescription", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} - var expected *string - obj.Description = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDescription(), "getter should return the property value") - }) - - t.Run("GetDescription_NilValue", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} - obj.Description = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision{} + var expected string + obj.DocSessionID = expected // Act & Assert - assert.Nil(t, obj.GetDescription(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") }) - t.Run("GetDescription_NilReceiver", func(t *testing.T) { + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDescription() // Should return zero value - }) - - t.Run("GetSize", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} - var expected *int - obj.Size = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetSize(), "getter should return the property value") + _ = obj.GetDocSessionID() // Should return zero value }) - t.Run("GetSize_NilValue", func(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} - obj.Size = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Nil(t, obj.GetSize(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetSize_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetSize() // Should return zero value - }) - - t.Run("GetChecksum", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} - var expected *string - obj.Checksum = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetChecksum(), "getter should return the property value") + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetChecksum_NilValue", func(t *testing.T) { + t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} - obj.Checksum = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision{} + var expected int + obj.Generation = expected // Act & Assert - assert.Nil(t, obj.GetChecksum(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") }) - t.Run("GetChecksum_NilReceiver", func(t *testing.T) { + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetChecksum() // Should return zero value + _ = obj.GetGeneration() // Should return zero value }) - t.Run("GetCreationDate", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} - var expected *string - obj.CreationDate = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision{} + var fernTestValueDocSessionID string - // Act & Assert - assert.Equal(t, expected, obj.GetCreationDate(), "getter should return the property value") - }) + // Act + obj.SetDocSessionID(fernTestValueDocSessionID) - t.Run("GetCreationDate_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} - obj.CreationDate = nil + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Nil(t, obj.GetCreationDate(), "getter should return nil when property is nil") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetCreationDate_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetCreationDate() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} - var fernTestValueName string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision{} + var fernTestValuePageObjectNumber int // Act - obj.SetName(fernTestValueName) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -121021,14 +159898,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetMimeType_MarksExplicit", func(t *testing.T) { + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} - var fernTestValueMimeType *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision{} + var fernTestValueGeneration int // Act - obj.SetMimeType(fernTestValueMimeType) + obj.SetGeneration(fernTestValueGeneration) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -121052,14 +159929,85 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDescription_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} - var fernTestValueDescription *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm{} + var expected string + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm{} + var fernTestValuePageObjectNumber int // Act - obj.SetDescription(fernTestValueDescription) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -121083,14 +160031,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetSize_MarksExplicit", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} - var fernTestValueSize *int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm{} + var fernTestValueNm string // Act - obj.SetSize(fernTestValueSize) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -121114,14 +160062,85 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetChecksum_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} - var fernTestValueChecksum *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + }) + + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAnnotObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber{} + var fernTestValuePageObjectNumber int // Act - obj.SetChecksum(fernTestValueChecksum) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -121145,14 +160164,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreationDate_MarksExplicit", func(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFile{} - var fernTestValueCreationDate *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber{} + var fernTestValueAnnotObjectNumber int // Act - obj.SetCreationDate(fernTestValueCreationDate) + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -121178,1237 +160197,1304 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags(t *testing.T) { - t.Run("SetInvisible", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} - var fernTestValueInvisible bool - obj.SetInvisible(fernTestValueInvisible) - assert.Equal(t, fernTestValueInvisible, obj.Invisible) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine(t *testing.T) { + t.Run("SetIntent", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueIntent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIntent + obj.SetIntent(fernTestValueIntent) + assert.Equal(t, fernTestValueIntent, obj.Intent) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetHidden", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} - var fernTestValueHidden bool - obj.SetHidden(fernTestValueHidden) - assert.Equal(t, fernTestValueHidden, obj.Hidden) + t.Run("SetMeasure", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueMeasure *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasure + obj.SetMeasure(fernTestValueMeasure) + assert.Equal(t, fernTestValueMeasure, obj.Measure) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPrint", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} - var fernTestValuePrint bool - obj.SetPrint(fernTestValuePrint) - assert.Equal(t, fernTestValuePrint, obj.Print) + t.Run("SetCaption", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueCaption *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption + obj.SetCaption(fernTestValueCaption) + assert.Equal(t, fernTestValueCaption, obj.Caption) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNoZoom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} - var fernTestValueNoZoom bool - obj.SetNoZoom(fernTestValueNoZoom) - assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) + t.Run("SetLeader", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueLeader *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader + obj.SetLeader(fernTestValueLeader) + assert.Equal(t, fernTestValueLeader, obj.Leader) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNoRotate", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} - var fernTestValueNoRotate bool - obj.SetNoRotate(fernTestValueNoRotate) - assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) + t.Run("SetRef", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef + obj.SetRef(fernTestValueRef) + assert.Equal(t, fernTestValueRef, obj.Ref) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} - var fernTestValueNoView bool - obj.SetNoView(fernTestValueNoView) - assert.Equal(t, fernTestValueNoView, obj.NoView) + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} - var fernTestValueReadOnly bool - obj.SetReadOnly(fernTestValueReadOnly) - assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetLocked", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} - var fernTestValueLocked bool - obj.SetLocked(fernTestValueLocked) - assert.Equal(t, fernTestValueLocked, obj.Locked) + t.Run("SetIdentityQuality", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality + obj.SetIdentityQuality(fernTestValueIdentityQuality) + assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetToggleNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} - var fernTestValueToggleNoView bool - obj.SetToggleNoView(fernTestValueToggleNoView) - assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueNm *string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetLockedContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} - var fernTestValueLockedContents bool - obj.SetLockedContents(fernTestValueLockedContents) - assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) + t.Run("SetFlags", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags + obj.SetFlags(fernTestValueFlags) + assert.Equal(t, fernTestValueFlags, obj.Flags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRect", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect + obj.SetRect(fernTestValueRect) + assert.Equal(t, fernTestValueRect, obj.Rect) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetContents", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueContents *string + obj.SetContents(fernTestValueContents) + assert.Equal(t, fernTestValueContents, obj.Contents) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSubject", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueSubject *string + obj.SetSubject(fernTestValueSubject) + assert.Equal(t, fernTestValueSubject, obj.Subject) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAuthor", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueAuthor *string + obj.SetAuthor(fernTestValueAuthor) + assert.Equal(t, fernTestValueAuthor, obj.Author) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCreated", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueCreated *time.Time + obj.SetCreated(fernTestValueCreated) + assert.Equal(t, fernTestValueCreated, obj.Created) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetModified", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueModified *time.Time + obj.SetModified(fernTestValueModified) + assert.Equal(t, fernTestValueModified, obj.Modified) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBlendMode", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode + obj.SetBlendMode(fernTestValueBlendMode) + assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetInReplyTo", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo + obj.SetInReplyTo(fernTestValueInReplyTo) + assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetReplyType", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType + obj.SetReplyType(fernTestValueReplyType) + assert.Equal(t, fernTestValueReplyType, obj.ReplyType) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetUserID", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueUserID *string + obj.SetUserID(fernTestValueUserID) + assert.Equal(t, fernTestValueUserID, obj.UserID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetGroupID", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueGroupID *string + obj.SetGroupID(fernTestValueGroupID) + assert.Equal(t, fernTestValueGroupID, obj.GroupID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCreatedBy", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueCreatedBy *string + obj.SetCreatedBy(fernTestValueCreatedBy) + assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetUpdatedBy", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueUpdatedBy *string + obj.SetUpdatedBy(fernTestValueUpdatedBy) + assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetActions", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueActions *PdfAnnotationActions + obj.SetActions(fernTestValueActions) + assert.Equal(t, fernTestValueActions, obj.Actions) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetColor", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor + obj.SetColor(fernTestValueColor) + assert.Equal(t, fernTestValueColor, obj.Color) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetOpacity", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueOpacity float64 + obj.SetOpacity(fernTestValueOpacity) + assert.Equal(t, fernTestValueOpacity, obj.Opacity) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetStrokeWidth", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueStrokeWidth float64 + obj.SetStrokeWidth(fernTestValueStrokeWidth) + assert.Equal(t, fernTestValueStrokeWidth, obj.StrokeWidth) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBorderStyle", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle + obj.SetBorderStyle(fernTestValueBorderStyle) + assert.Equal(t, fernTestValueBorderStyle, obj.BorderStyle) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDashArray", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueDashArray []float64 + obj.SetDashArray(fernTestValueDashArray) + assert.Equal(t, fernTestValueDashArray, obj.DashArray) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetInteriorColor", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor + obj.SetInteriorColor(fernTestValueInteriorColor) + assert.Equal(t, fernTestValueInteriorColor, obj.InteriorColor) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLinePoints", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueLinePoints *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints + obj.SetLinePoints(fernTestValueLinePoints) + assert.Equal(t, fernTestValueLinePoints, obj.LinePoints) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLineEndings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueLineEndings *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings + obj.SetLineEndings(fernTestValueLineEndings) + assert.Equal(t, fernTestValueLineEndings, obj.LineEndings) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRotation", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueRotation *float64 + obj.SetRotation(fernTestValueRotation) + assert.Equal(t, fernTestValueRotation, obj.Rotation) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags(t *testing.T) { - t.Run("GetInvisible", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine(t *testing.T) { + t.Run("GetIntent", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} - var expected bool - obj.Invisible = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIntent + obj.Intent = expected // Act & Assert - assert.Equal(t, expected, obj.GetInvisible(), "getter should return the property value") - }) - - t.Run("GetInvisible_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetInvisible() // Should return zero value + assert.Equal(t, expected, obj.GetIntent(), "getter should return the property value") }) - t.Run("GetHidden", func(t *testing.T) { + t.Run("GetIntent_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} - var expected bool - obj.Hidden = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.Intent = nil // Act & Assert - assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") + assert.Nil(t, obj.GetIntent(), "getter should return nil when property is nil") }) - t.Run("GetHidden_NilReceiver", func(t *testing.T) { + t.Run("GetIntent_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetHidden() // Should return zero value + _ = obj.GetIntent() // Should return zero value }) - t.Run("GetPrint", func(t *testing.T) { + t.Run("GetMeasure", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} - var expected bool - obj.Print = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasure + obj.Measure = expected // Act & Assert - assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") - }) - - t.Run("GetPrint_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPrint() // Should return zero value + assert.Equal(t, expected, obj.GetMeasure(), "getter should return the property value") }) - t.Run("GetNoZoom", func(t *testing.T) { + t.Run("GetMeasure_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} - var expected bool - obj.NoZoom = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.Measure = nil // Act & Assert - assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") + assert.Nil(t, obj.GetMeasure(), "getter should return nil when property is nil") }) - t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { + t.Run("GetMeasure_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNoZoom() // Should return zero value + _ = obj.GetMeasure() // Should return zero value }) - t.Run("GetNoRotate", func(t *testing.T) { + t.Run("GetCaption", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} - var expected bool - obj.NoRotate = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption + obj.Caption = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCaption(), "getter should return the property value") }) - t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { + t.Run("GetCaption_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.Caption = nil + + // Act & Assert + assert.Nil(t, obj.GetCaption(), "getter should return nil when property is nil") + }) + + t.Run("GetCaption_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNoRotate() // Should return zero value + _ = obj.GetCaption() // Should return zero value }) - t.Run("GetNoView", func(t *testing.T) { + t.Run("GetLeader", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} - var expected bool - obj.NoView = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader + obj.Leader = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLeader(), "getter should return the property value") }) - t.Run("GetNoView_NilReceiver", func(t *testing.T) { + t.Run("GetLeader_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.Leader = nil + + // Act & Assert + assert.Nil(t, obj.GetLeader(), "getter should return nil when property is nil") + }) + + t.Run("GetLeader_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNoView() // Should return zero value + _ = obj.GetLeader() // Should return zero value }) - t.Run("GetReadOnly", func(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} - var expected bool - obj.ReadOnly = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef + obj.Ref = expected // Act & Assert - assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") }) - t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { + t.Run("GetRef_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.Ref = nil + + // Act & Assert + assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") + }) + + t.Run("GetRef_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReadOnly() // Should return zero value + _ = obj.GetRef() // Should return zero value }) - t.Run("GetLocked", func(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} - var expected bool - obj.Locked = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetLocked_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLocked() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetToggleNoView", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} - var expected bool - obj.ToggleNoView = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected int + obj.Index = expected // Act & Assert - assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetToggleNoView() // Should return zero value + _ = obj.GetIndex() // Should return zero value }) - t.Run("GetLockedContents", func(t *testing.T) { + t.Run("GetIdentityQuality", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} - var expected bool - obj.LockedContents = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality + obj.IdentityQuality = expected // Act & Assert - assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIdentityQuality(), "getter should return the property value") }) - t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { + t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLockedContents() // Should return zero value + _ = obj.GetIdentityQuality() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags(t *testing.T) { - t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} - var fernTestValueInvisible bool - - // Act - obj.SetInvisible(fernTestValueInvisible) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *string + obj.Nm = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("SetHidden_MarksExplicit", func(t *testing.T) { + t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} - var fernTestValueHidden bool - - // Act - obj.SetHidden(fernTestValueHidden) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.Nm = nil - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") }) - t.Run("SetPrint_MarksExplicit", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} - var fernTestValuePrint bool - - // Act - obj.SetPrint(fernTestValuePrint) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value }) - t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { + t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} - var fernTestValueNoZoom bool - - // Act - obj.SetNoZoom(fernTestValueNoZoom) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags + obj.Flags = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") }) - t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { + t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} - var fernTestValueNoRotate bool - - // Act - obj.SetNoRotate(fernTestValueNoRotate) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.Flags = nil - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") }) - t.Run("SetNoView_MarksExplicit", func(t *testing.T) { + t.Run("GetFlags_NilReceiver", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} - var fernTestValueNoView bool - - // Act - obj.SetNoView(fernTestValueNoView) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFlags() // Should return zero value }) - t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { + t.Run("GetRect", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} - var fernTestValueReadOnly bool - - // Act - obj.SetReadOnly(fernTestValueReadOnly) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect + obj.Rect = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetRect(), "getter should return the property value") }) - t.Run("SetLocked_MarksExplicit", func(t *testing.T) { + t.Run("GetRect_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} - var fernTestValueLocked bool - - // Act - obj.SetLocked(fernTestValueLocked) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.Rect = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetRect(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetRect_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRect() // Should return zero value }) - t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { + t.Run("GetContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} - var fernTestValueToggleNoView bool - - // Act - obj.SetToggleNoView(fernTestValueToggleNoView) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *string + obj.Contents = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetContents(), "getter should return the property value") }) - t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { + t.Run("GetContents_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentFlags{} - var fernTestValueLockedContents bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.Contents = nil - // Act - obj.SetLockedContents(fernTestValueLockedContents) + // Act & Assert + assert.Nil(t, obj.GetContents(), "getter should return nil when property is nil") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetContents_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetContents() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetSubject", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *string + obj.Subject = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetSubject(), "getter should return the property value") }) -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { + t.Run("GetSubject_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo{} - var expected string - obj.Kind = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.Subject = nil // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Nil(t, obj.GetSubject(), "getter should return nil when property is nil") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetSubject_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKind() // Should return zero value + _ = obj.GetSubject() // Should return zero value }) - t.Run("GetObjectNumber", func(t *testing.T) { + t.Run("GetAuthor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber - obj.ObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *string + obj.Author = expected // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAuthor(), "getter should return the property value") }) - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Run("GetAuthor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo{} - obj.ObjectNumber = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.Author = nil // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetAuthor(), "getter should return nil when property is nil") }) - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetAuthor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetObjectNumber() // Should return zero value + _ = obj.GetAuthor() // Should return zero value }) - t.Run("GetNm", func(t *testing.T) { + t.Run("GetCreated", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm - obj.Nm = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *time.Time + obj.Created = expected // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCreated(), "getter should return the property value") }) - t.Run("GetNm_NilValue", func(t *testing.T) { + t.Run("GetCreated_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo{} - obj.Nm = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.Created = nil // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCreated(), "getter should return nil when property is nil") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetCreated_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetCreated() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetModified", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex - obj.Index = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *time.Time + obj.Modified = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") }) - t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Run("GetModified_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo{} - obj.Index = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.Modified = nil // Act & Assert - assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetModified(), "getter should return nil when property is nil") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetModified_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetModified() // Should return zero value }) -} + t.Run("GetBlendMode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode + obj.BlendMode = expected -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetBlendMode(), "getter should return the property value") }) - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) - assert.NotNil(t, obj.explicitFields) + t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBlendMode() // Should return zero value }) - t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("GetInReplyTo", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo + obj.InReplyTo = expected -} + // Act & Assert + assert.Equal(t, expected, obj.GetInReplyTo(), "getter should return the property value") + }) -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetInReplyTo_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.InReplyTo = nil // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Nil(t, obj.GetInReplyTo(), "getter should return nil when property is nil") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetInReplyTo() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetReplyType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex{} - var expected int - obj.Index = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType + obj.ReplyType = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetReplyType(), "getter should return the property value") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetReplyType_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.ReplyType = nil + + // Act & Assert + assert.Nil(t, obj.GetReplyType(), "getter should return nil when property is nil") + }) + + t.Run("GetReplyType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetReplyType() // Should return zero value }) - t.Run("GetRevision", func(t *testing.T) { + t.Run("GetUserID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision - obj.Revision = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *string + obj.UserID = expected // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") }) - t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Run("GetUserID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex{} - obj.Revision = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.UserID = nil // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") }) - t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Run("GetUserID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRevision() // Should return zero value + _ = obj.GetUserID() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("GetGroupID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *string + obj.GroupID = expected - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + // Act & Assert + assert.Equal(t, expected, obj.GetGroupID(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetGroupID_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.GroupID = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetGroupID(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetGroupID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGroupID() // Should return zero value }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("GetCreatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex{} - var fernTestValueIndex int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *string + obj.CreatedBy = expected - // Act - obj.SetIndex(fernTestValueIndex) + // Act & Assert + assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetCreatedBy_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.CreatedBy = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetCreatedBy(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCreatedBy() // Should return zero value }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("GetUpdatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *string + obj.UpdatedBy = expected - // Act - obj.SetRevision(fernTestValueRevision) + // Act & Assert + assert.Equal(t, expected, obj.GetUpdatedBy(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.UpdatedBy = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetUpdatedBy(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUpdatedBy() // Should return zero value }) -} + t.Run("GetActions", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *PdfAnnotationActions + obj.Actions = expected -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision{} - var fernTestValueDocSessionID string - obj.SetDocSessionID(fernTestValueDocSessionID) - assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") }) - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) + t.Run("GetActions_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.Actions = nil + + // Act & Assert + assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") }) - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) - assert.NotNil(t, obj.explicitFields) + t.Run("GetActions_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetActions() // Should return zero value }) -} + t.Run("GetColor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor + obj.Color = expected -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { + // Act & Assert + assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") + }) + + t.Run("GetColor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision{} - var expected string - obj.DocSessionID = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.Color = nil // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") }) - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Run("GetColor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDocSessionID() // Should return zero value + _ = obj.GetColor() // Should return zero value }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetOpacity", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected float64 + obj.Opacity = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOpacity(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetOpacity_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetOpacity() // Should return zero value }) - t.Run("GetGeneration", func(t *testing.T) { + t.Run("GetStrokeWidth", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision{} - var expected int - obj.Generation = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected float64 + obj.StrokeWidth = expected // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + assert.Equal(t, expected, obj.GetStrokeWidth(), "getter should return the property value") }) - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Run("GetStrokeWidth_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGeneration() // Should return zero value + _ = obj.GetStrokeWidth() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Run("GetBorderStyle", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision{} - var fernTestValueDocSessionID string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle + obj.BorderStyle = expected - // Act - obj.SetDocSessionID(fernTestValueDocSessionID) + // Act & Assert + assert.Equal(t, expected, obj.GetBorderStyle(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetBorderStyle_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBorderStyle() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetDashArray", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected []float64 + obj.DashArray = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetDashArray(), "getter should return the property value") }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("GetDashArray_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.DashArray = nil - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + // Act & Assert + assert.Nil(t, obj.GetDashArray(), "getter should return nil when property is nil") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetDashArray_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDashArray() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetInteriorColor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor + obj.InteriorColor = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetInteriorColor(), "getter should return the property value") }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("GetInteriorColor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToIndexRevision{} - var fernTestValueGeneration int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.InteriorColor = nil - // Act - obj.SetGeneration(fernTestValueGeneration) + // Act & Assert + assert.Nil(t, obj.GetInteriorColor(), "getter should return nil when property is nil") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetInteriorColor_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetInteriorColor() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetLinePoints", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints + obj.LinePoints = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetLinePoints(), "getter should return the property value") }) -} + t.Run("GetLinePoints_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.LinePoints = nil -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Nil(t, obj.GetLinePoints(), "getter should return nil when property is nil") }) - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm{} - var fernTestValueNm string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) + t.Run("GetLinePoints_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLinePoints() // Should return zero value }) -} + t.Run("GetLineEndings", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings + obj.LineEndings = expected -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + // Act & Assert + assert.Equal(t, expected, obj.GetLineEndings(), "getter should return the property value") + }) + + t.Run("GetLineEndings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.LineEndings = nil // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Nil(t, obj.GetLineEndings(), "getter should return nil when property is nil") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetLineEndings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetLineEndings() // Should return zero value }) - t.Run("GetNm", func(t *testing.T) { + t.Run("GetRotation", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm{} - var expected string - obj.Nm = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var expected *float64 + obj.Rotation = expected // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRotation(), "getter should return the property value") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetRotation_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj.Rotation = nil + + // Act & Assert + assert.Nil(t, obj.GetRotation(), "getter should return nil when property is nil") + }) + + t.Run("GetRotation_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetRotation() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine(t *testing.T) { + t.Run("SetIntent_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueIntent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIntent // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetIntent(fernTestValueIntent) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -122432,14 +161518,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetMeasure_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToNm{} - var fernTestValueNm string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueMeasure *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasure // Act - obj.SetNm(fernTestValueNm) + obj.SetMeasure(fernTestValueMeasure) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -122463,85 +161549,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetAnnotObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") - }) - - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAnnotObjectNumber() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetCaption_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueCaption *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetCaption(fernTestValueCaption) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -122565,14 +161580,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetLeader_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueLeader *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + obj.SetLeader(fernTestValueLeader) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -122596,147 +161611,45 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect(t *testing.T) { - t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect{} - var fernTestValueLeft float64 - obj.SetLeft(fernTestValueLeft) - assert.Equal(t, fernTestValueLeft, obj.Left) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect{} - var fernTestValueBottom float64 - obj.SetBottom(fernTestValueBottom) - assert.Equal(t, fernTestValueBottom, obj.Bottom) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect{} - var fernTestValueRight float64 - obj.SetRight(fernTestValueRight) - assert.Equal(t, fernTestValueRight, obj.Right) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect{} - var fernTestValueTop float64 - obj.SetTop(fernTestValueTop) - assert.Equal(t, fernTestValueTop, obj.Top) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect(t *testing.T) { - t.Run("GetLeft", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect{} - var expected float64 - obj.Left = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") - }) - - t.Run("GetLeft_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetLeft() // Should return zero value - }) - - t.Run("GetBottom", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect{} - var expected float64 - obj.Bottom = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") - }) - - t.Run("GetBottom_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetBottom() // Should return zero value - }) - - t.Run("GetRight", func(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect{} - var expected float64 - obj.Right = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") - }) + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef - t.Run("GetRight_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRight() // Should return zero value - }) + // Act + obj.SetRef(fernTestValueRef) - t.Run("GetTop", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect{} - var expected float64 - obj.Top = expected + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetTop_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetTop() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect(t *testing.T) { - t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect{} - var fernTestValueLeft float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValuePageObjectNumber int // Act - obj.SetLeft(fernTestValueLeft) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -122760,14 +161673,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect{} - var fernTestValueBottom float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueIndex int // Act - obj.SetBottom(fernTestValueBottom) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -122791,14 +161704,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRight_MarksExplicit", func(t *testing.T) { + t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect{} - var fernTestValueRight float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality // Act - obj.SetRight(fernTestValueRight) + obj.SetIdentityQuality(fernTestValueIdentityQuality) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -122822,14 +161735,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRect{} - var fernTestValueTop float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueNm *string // Act - obj.SetTop(fernTestValueTop) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -122853,251 +161766,138 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef{} - var expected string - obj.Kind = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") - }) - - t.Run("GetKind_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetKind() // Should return zero value - }) - - t.Run("GetObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber - obj.ObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") - }) - - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef{} - obj.ObjectNumber = nil - - // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") - }) - - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetObjectNumber() // Should return zero value - }) - - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm - obj.Nm = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") - }) - - t.Run("GetNm_NilValue", func(t *testing.T) { + t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef{} - obj.Nm = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags - // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") - }) + // Act + obj.SetFlags(fernTestValueFlags) - t.Run("GetNm_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNm() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("GetIndex", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex - obj.Index = expected + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Run("SetRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef{} - obj.Index = nil - - // Act & Assert - assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") - }) - - t.Run("GetIndex_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRef - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetIndex() // Should return zero value - }) + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect -} + // Act + obj.SetRect(fernTestValueRect) -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) - assert.NotNil(t, obj.explicitFields) - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) - assert.NotNil(t, obj.explicitFields) + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("SetContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueContents *string - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) + // Act + obj.SetContents(fernTestValueContents) - t.Run("GetIndex", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex{} - var expected int - obj.Index = expected + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetIndex_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetIndex() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetRevision", func(t *testing.T) { + t.Run("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision - obj.Revision = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueSubject *string - // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") - }) + // Act + obj.SetSubject(fernTestValueSubject) - t.Run("GetRevision_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex{} - obj.Revision = nil + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetRevision_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRevision() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueAuthor *string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetAuthor(fernTestValueAuthor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -123121,14 +161921,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex{} - var fernTestValueIndex int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueCreated *time.Time // Act - obj.SetIndex(fernTestValueIndex) + obj.SetCreated(fernTestValueCreated) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -123152,14 +161952,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueModified *time.Time // Act - obj.SetRevision(fernTestValueRevision) + obj.SetModified(fernTestValueModified) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -123183,116 +161983,45 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision{} - var fernTestValueDocSessionID string - obj.SetDocSessionID(fernTestValueDocSessionID) - assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision{} - var expected string - obj.DocSessionID = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") - }) - - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetDocSessionID() // Should return zero value - }) - - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) + // Act + obj.SetBlendMode(fernTestValueBlendMode) - t.Run("GetGeneration", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision{} - var expected int - obj.Generation = expected + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetGeneration() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision{} - var fernTestValueDocSessionID string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo // Act - obj.SetDocSessionID(fernTestValueDocSessionID) + obj.SetInReplyTo(fernTestValueInReplyTo) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -123316,14 +162045,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetReplyType(fernTestValueReplyType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -123347,14 +162076,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefIndexRevision{} - var fernTestValueGeneration int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueUserID *string // Act - obj.SetGeneration(fernTestValueGeneration) + obj.SetUserID(fernTestValueUserID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -123378,85 +162107,45 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm{} - var fernTestValueNm string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueGroupID *string - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) + // Act + obj.SetGroupID(fernTestValueGroupID) - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm{} - var expected string - obj.Nm = expected + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetNm_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNm() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueCreatedBy *string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetCreatedBy(fernTestValueCreatedBy) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -123480,14 +162169,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefNm{} - var fernTestValueNm string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueUpdatedBy *string // Act - obj.SetNm(fernTestValueNm) + obj.SetUpdatedBy(fernTestValueUpdatedBy) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -123511,85 +162200,45 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("SetActions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueActions *PdfAnnotationActions - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) + // Act + obj.SetActions(fernTestValueActions) - t.Run("GetAnnotObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAnnotObjectNumber() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetColor(fernTestValueColor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -123613,14 +162262,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFileAttachmentRefObjectNumber{} - var fernTestValueAnnotObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueOpacity float64 // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + obj.SetOpacity(fernTestValueOpacity) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -123644,1430 +162293,1093 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText(t *testing.T) { - t.Run("SetRef", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef - obj.SetRef(fernTestValueRef) - assert.Equal(t, fernTestValueRef, obj.Ref) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIdentityQuality", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQuality - obj.SetIdentityQuality(fernTestValueIdentityQuality) - assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueNm *string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetFlags", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags - obj.SetFlags(fernTestValueFlags) - assert.Equal(t, fernTestValueFlags, obj.Flags) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRect", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect - obj.SetRect(fernTestValueRect) - assert.Equal(t, fernTestValueRect, obj.Rect) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueContents *string - obj.SetContents(fernTestValueContents) - assert.Equal(t, fernTestValueContents, obj.Contents) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetSubject", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueSubject *string - obj.SetSubject(fernTestValueSubject) - assert.Equal(t, fernTestValueSubject, obj.Subject) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAuthor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueAuthor *string - obj.SetAuthor(fernTestValueAuthor) - assert.Equal(t, fernTestValueAuthor, obj.Author) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCreated", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueCreated *time.Time - obj.SetCreated(fernTestValueCreated) - assert.Equal(t, fernTestValueCreated, obj.Created) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetModified", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueModified *time.Time - obj.SetModified(fernTestValueModified) - assert.Equal(t, fernTestValueModified, obj.Modified) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetBlendMode", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode - obj.SetBlendMode(fernTestValueBlendMode) - assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetInReplyTo", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo - obj.SetInReplyTo(fernTestValueInReplyTo) - assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetReplyType", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyType - obj.SetReplyType(fernTestValueReplyType) - assert.Equal(t, fernTestValueReplyType, obj.ReplyType) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetUserID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueUserID *string - obj.SetUserID(fernTestValueUserID) - assert.Equal(t, fernTestValueUserID, obj.UserID) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetGroupID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueGroupID *string - obj.SetGroupID(fernTestValueGroupID) - assert.Equal(t, fernTestValueGroupID, obj.GroupID) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCreatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueCreatedBy *string - obj.SetCreatedBy(fernTestValueCreatedBy) - assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetUpdatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueUpdatedBy *string - obj.SetUpdatedBy(fernTestValueUpdatedBy) - assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetActions", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueActions *PdfAnnotationActions - obj.SetActions(fernTestValueActions) - assert.Equal(t, fernTestValueActions, obj.Actions) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIntent", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueIntent DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent - obj.SetIntent(fernTestValueIntent) - assert.Equal(t, fernTestValueIntent, obj.Intent) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetFontFamily", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueFontFamily string - obj.SetFontFamily(fernTestValueFontFamily) - assert.Equal(t, fernTestValueFontFamily, obj.FontFamily) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetFontSize", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueFontSize float64 - obj.SetFontSize(fernTestValueFontSize) - assert.Equal(t, fernTestValueFontSize, obj.FontSize) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetTextAlign", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueTextAlign DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign - obj.SetTextAlign(fernTestValueTextAlign) - assert.Equal(t, fernTestValueTextAlign, obj.TextAlign) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRichText", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueRichText *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText - obj.SetRichText(fernTestValueRichText) - assert.Equal(t, fernTestValueRichText, obj.RichText) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetColor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor - obj.SetColor(fernTestValueColor) - assert.Equal(t, fernTestValueColor, obj.Color) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetFontColor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueFontColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor - obj.SetFontColor(fernTestValueFontColor) - assert.Equal(t, fernTestValueFontColor, obj.FontColor) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetInteriorColor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor - obj.SetInteriorColor(fernTestValueInteriorColor) - assert.Equal(t, fernTestValueInteriorColor, obj.InteriorColor) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetOpacity", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueOpacity float64 - obj.SetOpacity(fernTestValueOpacity) - assert.Equal(t, fernTestValueOpacity, obj.Opacity) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetStrokeWidth", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} + t.Run("SetStrokeWidth_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} var fernTestValueStrokeWidth float64 - obj.SetStrokeWidth(fernTestValueStrokeWidth) - assert.Equal(t, fernTestValueStrokeWidth, obj.StrokeWidth) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetBorderStyle", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle - obj.SetBorderStyle(fernTestValueBorderStyle) - assert.Equal(t, fernTestValueBorderStyle, obj.BorderStyle) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetDashArray", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueDashArray []float64 - obj.SetDashArray(fernTestValueDashArray) - assert.Equal(t, fernTestValueDashArray, obj.DashArray) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRectDifferences", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueRectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences - obj.SetRectDifferences(fernTestValueRectDifferences) - assert.Equal(t, fernTestValueRectDifferences, obj.RectDifferences) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCalloutLine", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueCalloutLine []any - obj.SetCalloutLine(fernTestValueCalloutLine) - assert.Equal(t, fernTestValueCalloutLine, obj.CalloutLine) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetLineEnding", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueLineEnding *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding - obj.SetLineEnding(fernTestValueLineEnding) - assert.Equal(t, fernTestValueLineEnding, obj.LineEnding) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRotation", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueRotation *float64 - obj.SetRotation(fernTestValueRotation) - assert.Equal(t, fernTestValueRotation, obj.Rotation) - assert.NotNil(t, obj.explicitFields) - }) - t.Run("SetUnrotatedRect", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueUnrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect - obj.SetUnrotatedRect(fernTestValueUnrotatedRect) - assert.Equal(t, fernTestValueUnrotatedRect, obj.UnrotatedRect) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetStrokeWidth(fernTestValueStrokeWidth) -} + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText(t *testing.T) { - t.Run("GetRef", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef - obj.Ref = expected + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - // Act & Assert - assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetRef_NilValue", func(t *testing.T) { + t.Run("SetBorderStyle_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - obj.Ref = nil - - // Act & Assert - assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") - }) + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle - t.Run("GetRef_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRef() // Should return zero value - }) + // Act + obj.SetBorderStyle(fernTestValueBorderStyle) - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected int - obj.PageObjectNumber = expected + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("SetDashArray_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected int - obj.Index = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueDashArray []float64 - // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") - }) + // Act + obj.SetDashArray(fernTestValueDashArray) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetIndex() // Should return zero value + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetIdentityQuality", func(t *testing.T) { + t.Run("SetInteriorColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQuality - obj.IdentityQuality = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor - // Act & Assert - assert.Equal(t, expected, obj.GetIdentityQuality(), "getter should return the property value") - }) + // Act + obj.SetInteriorColor(fernTestValueInteriorColor) - t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetIdentityQuality() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected *string - obj.Nm = expected + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetNm_NilValue", func(t *testing.T) { + t.Run("SetLinePoints_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - obj.Nm = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueLinePoints *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints - // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") - }) + // Act + obj.SetLinePoints(fernTestValueLinePoints) - t.Run("GetNm_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNm() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("GetFlags", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags - obj.Flags = expected + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - // Act & Assert - assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetFlags_NilValue", func(t *testing.T) { + t.Run("SetLineEndings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - obj.Flags = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueLineEndings *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings - // Act & Assert - assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") - }) + // Act + obj.SetLineEndings(fernTestValueLineEndings) - t.Run("GetFlags_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetFlags() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("GetRect", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect - obj.Rect = expected + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - // Act & Assert - assert.Equal(t, expected, obj.GetRect(), "getter should return the property value") + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetRect_NilValue", func(t *testing.T) { + t.Run("SetRotation_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - obj.Rect = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + var fernTestValueRotation *float64 - // Act & Assert - assert.Nil(t, obj.GetRect(), "getter should return nil when property is nil") - }) + // Act + obj.SetRotation(fernTestValueRotation) - t.Run("GetRect_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRect() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("GetContents", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected *string - obj.Contents = expected + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - // Act & Assert - assert.Equal(t, expected, obj.GetContents(), "getter should return the property value") + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetContents_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - obj.Contents = nil +} - // Act & Assert - assert.Nil(t, obj.GetContents(), "getter should return nil when property is nil") +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption(t *testing.T) { + t.Run("SetEnabled", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption{} + var fernTestValueEnabled bool + obj.SetEnabled(fernTestValueEnabled) + assert.Equal(t, fernTestValueEnabled, obj.Enabled) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetContents_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetContents() // Should return zero value + t.Run("SetPosition", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption{} + var fernTestValuePosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionPosition + obj.SetPosition(fernTestValuePosition) + assert.Equal(t, fernTestValuePosition, obj.Position) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetSubject", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected *string - obj.Subject = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetSubject(), "getter should return the property value") + t.Run("SetOffset", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption{} + var fernTestValueOffset *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset + obj.SetOffset(fernTestValueOffset) + assert.Equal(t, fernTestValueOffset, obj.Offset) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetSubject_NilValue", func(t *testing.T) { +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption(t *testing.T) { + t.Run("GetEnabled", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - obj.Subject = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption{} + var expected bool + obj.Enabled = expected // Act & Assert - assert.Nil(t, obj.GetSubject(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetEnabled(), "getter should return the property value") }) - t.Run("GetSubject_NilReceiver", func(t *testing.T) { + t.Run("GetEnabled_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetSubject() // Should return zero value + _ = obj.GetEnabled() // Should return zero value }) - t.Run("GetAuthor", func(t *testing.T) { + t.Run("GetPosition", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected *string - obj.Author = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionPosition + obj.Position = expected // Act & Assert - assert.Equal(t, expected, obj.GetAuthor(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPosition(), "getter should return the property value") }) - t.Run("GetAuthor_NilValue", func(t *testing.T) { + t.Run("GetPosition_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - obj.Author = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption{} + obj.Position = nil // Act & Assert - assert.Nil(t, obj.GetAuthor(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPosition(), "getter should return nil when property is nil") }) - t.Run("GetAuthor_NilReceiver", func(t *testing.T) { + t.Run("GetPosition_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAuthor() // Should return zero value + _ = obj.GetPosition() // Should return zero value }) - t.Run("GetCreated", func(t *testing.T) { + t.Run("GetOffset", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected *time.Time - obj.Created = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset + obj.Offset = expected // Act & Assert - assert.Equal(t, expected, obj.GetCreated(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOffset(), "getter should return the property value") }) - t.Run("GetCreated_NilValue", func(t *testing.T) { + t.Run("GetOffset_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - obj.Created = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption{} + obj.Offset = nil // Act & Assert - assert.Nil(t, obj.GetCreated(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOffset(), "getter should return nil when property is nil") }) - t.Run("GetCreated_NilReceiver", func(t *testing.T) { + t.Run("GetOffset_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCreated() // Should return zero value + _ = obj.GetOffset() // Should return zero value }) - t.Run("GetModified", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption(t *testing.T) { + t.Run("SetEnabled_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected *time.Time - obj.Modified = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption{} + var fernTestValueEnabled bool - // Act & Assert - assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") - }) + // Act + obj.SetEnabled(fernTestValueEnabled) - t.Run("GetModified_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - obj.Modified = nil + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Nil(t, obj.GetModified(), "getter should return nil when property is nil") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetModified_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetModified() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetBlendMode", func(t *testing.T) { + t.Run("SetPosition_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode - obj.BlendMode = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption{} + var fernTestValuePosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionPosition - // Act & Assert - assert.Equal(t, expected, obj.GetBlendMode(), "getter should return the property value") - }) + // Act + obj.SetPosition(fernTestValuePosition) - t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetBlendMode() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("GetInReplyTo", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo - obj.InReplyTo = expected + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - // Act & Assert - assert.Equal(t, expected, obj.GetInReplyTo(), "getter should return the property value") + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetInReplyTo_NilValue", func(t *testing.T) { + t.Run("SetOffset_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - obj.InReplyTo = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption{} + var fernTestValueOffset *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset - // Act & Assert - assert.Nil(t, obj.GetInReplyTo(), "getter should return nil when property is nil") - }) + // Act + obj.SetOffset(fernTestValueOffset) - t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetInReplyTo() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("GetReplyType", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyType - obj.ReplyType = expected + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - // Act & Assert - assert.Equal(t, expected, obj.GetReplyType(), "getter should return the property value") + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetReplyType_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - obj.ReplyType = nil +} - // Act & Assert - assert.Nil(t, obj.GetReplyType(), "getter should return nil when property is nil") +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset(t *testing.T) { + t.Run("SetAlong", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset{} + var fernTestValueAlong float64 + obj.SetAlong(fernTestValueAlong) + assert.Equal(t, fernTestValueAlong, obj.Along) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetReplyType_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetReplyType() // Should return zero value + t.Run("SetPerpendicular", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset{} + var fernTestValuePerpendicular float64 + obj.SetPerpendicular(fernTestValuePerpendicular) + assert.Equal(t, fernTestValuePerpendicular, obj.Perpendicular) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetUserID", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected *string - obj.UserID = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") - }) +} - t.Run("GetUserID_NilValue", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset(t *testing.T) { + t.Run("GetAlong", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - obj.UserID = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset{} + var expected float64 + obj.Along = expected // Act & Assert - assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetAlong(), "getter should return the property value") }) - t.Run("GetUserID_NilReceiver", func(t *testing.T) { + t.Run("GetAlong_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUserID() // Should return zero value - }) - - t.Run("GetGroupID", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected *string - obj.GroupID = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetGroupID(), "getter should return the property value") + _ = obj.GetAlong() // Should return zero value }) - t.Run("GetGroupID_NilValue", func(t *testing.T) { + t.Run("GetPerpendicular", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - obj.GroupID = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset{} + var expected float64 + obj.Perpendicular = expected // Act & Assert - assert.Nil(t, obj.GetGroupID(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetPerpendicular(), "getter should return the property value") }) - t.Run("GetGroupID_NilReceiver", func(t *testing.T) { + t.Run("GetPerpendicular_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGroupID() // Should return zero value + _ = obj.GetPerpendicular() // Should return zero value }) - t.Run("GetCreatedBy", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset(t *testing.T) { + t.Run("SetAlong_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected *string - obj.CreatedBy = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset{} + var fernTestValueAlong float64 - // Act & Assert - assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") - }) + // Act + obj.SetAlong(fernTestValueAlong) - t.Run("GetCreatedBy_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - obj.CreatedBy = nil + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Nil(t, obj.GetCreatedBy(), "getter should return nil when property is nil") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetCreatedBy() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetUpdatedBy", func(t *testing.T) { + t.Run("SetPerpendicular_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected *string - obj.UpdatedBy = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset{} + var fernTestValuePerpendicular float64 - // Act & Assert - assert.Equal(t, expected, obj.GetUpdatedBy(), "getter should return the property value") - }) + // Act + obj.SetPerpendicular(fernTestValuePerpendicular) - t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - obj.UpdatedBy = nil + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Nil(t, obj.GetUpdatedBy(), "getter should return nil when property is nil") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetUpdatedBy() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetActions", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected *PdfAnnotationActions - obj.Actions = expected +} - // Act & Assert - assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor(t *testing.T) { + t.Run("SetR", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor{} + var fernTestValueR int + obj.SetR(fernTestValueR) + assert.Equal(t, fernTestValueR, obj.R) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetActions_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - obj.Actions = nil - - // Act & Assert - assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") + t.Run("SetG", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor{} + var fernTestValueG int + obj.SetG(fernTestValueG) + assert.Equal(t, fernTestValueG, obj.G) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetActions_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetActions() // Should return zero value + t.Run("SetB", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetIntent", func(t *testing.T) { +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent - obj.Intent = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor{} + var expected int + obj.R = expected // Act & Assert - assert.Equal(t, expected, obj.GetIntent(), "getter should return the property value") + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") }) - t.Run("GetIntent_NilReceiver", func(t *testing.T) { + t.Run("GetR_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIntent() // Should return zero value + _ = obj.GetR() // Should return zero value }) - t.Run("GetFontFamily", func(t *testing.T) { + t.Run("GetG", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected string - obj.FontFamily = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor{} + var expected int + obj.G = expected // Act & Assert - assert.Equal(t, expected, obj.GetFontFamily(), "getter should return the property value") + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") }) - t.Run("GetFontFamily_NilReceiver", func(t *testing.T) { + t.Run("GetG_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFontFamily() // Should return zero value + _ = obj.GetG() // Should return zero value }) - t.Run("GetFontSize", func(t *testing.T) { + t.Run("GetB", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected float64 - obj.FontSize = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor{} + var expected int + obj.B = expected // Act & Assert - assert.Equal(t, expected, obj.GetFontSize(), "getter should return the property value") + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") }) - t.Run("GetFontSize_NilReceiver", func(t *testing.T) { + t.Run("GetB_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFontSize() // Should return zero value + _ = obj.GetB() // Should return zero value }) - t.Run("GetTextAlign", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign - obj.TextAlign = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor{} + var fernTestValueR int - // Act & Assert - assert.Equal(t, expected, obj.GetTextAlign(), "getter should return the property value") - }) + // Act + obj.SetR(fernTestValueR) - t.Run("GetTextAlign_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetTextAlign() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("GetRichText", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText - obj.RichText = expected + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - // Act & Assert - assert.Equal(t, expected, obj.GetRichText(), "getter should return the property value") + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetRichText_NilValue", func(t *testing.T) { + t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - obj.RichText = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor{} + var fernTestValueG int - // Act & Assert - assert.Nil(t, obj.GetRichText(), "getter should return nil when property is nil") - }) + // Act + obj.SetG(fernTestValueG) - t.Run("GetRichText_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRichText() // Should return zero value + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetColor", func(t *testing.T) { + t.Run("SetB_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor - obj.Color = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor{} + var fernTestValueB int - // Act & Assert - assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") + // Act + obj.SetB(fernTestValueB) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetColor_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - obj.Color = nil +} - // Act & Assert - assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags(t *testing.T) { + t.Run("SetInvisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + var fernTestValueInvisible bool + obj.SetInvisible(fernTestValueInvisible) + assert.Equal(t, fernTestValueInvisible, obj.Invisible) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetColor_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetColor() // Should return zero value + t.Run("SetHidden", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + var fernTestValueHidden bool + obj.SetHidden(fernTestValueHidden) + assert.Equal(t, fernTestValueHidden, obj.Hidden) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetFontColor", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor - obj.FontColor = expected + t.Run("SetPrint", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + var fernTestValuePrint bool + obj.SetPrint(fernTestValuePrint) + assert.Equal(t, fernTestValuePrint, obj.Print) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Equal(t, expected, obj.GetFontColor(), "getter should return the property value") + t.Run("SetNoZoom", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + var fernTestValueNoZoom bool + obj.SetNoZoom(fernTestValueNoZoom) + assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetFontColor_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - obj.FontColor = nil + t.Run("SetNoRotate", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + var fernTestValueNoRotate bool + obj.SetNoRotate(fernTestValueNoRotate) + assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Nil(t, obj.GetFontColor(), "getter should return nil when property is nil") + t.Run("SetNoView", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + var fernTestValueNoView bool + obj.SetNoView(fernTestValueNoView) + assert.Equal(t, fernTestValueNoView, obj.NoView) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetFontColor_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetFontColor() // Should return zero value + t.Run("SetReadOnly", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + var fernTestValueReadOnly bool + obj.SetReadOnly(fernTestValueReadOnly) + assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetInteriorColor", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor - obj.InteriorColor = expected + t.Run("SetLocked", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + var fernTestValueLocked bool + obj.SetLocked(fernTestValueLocked) + assert.Equal(t, fernTestValueLocked, obj.Locked) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Equal(t, expected, obj.GetInteriorColor(), "getter should return the property value") + t.Run("SetToggleNoView", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + var fernTestValueToggleNoView bool + obj.SetToggleNoView(fernTestValueToggleNoView) + assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetInteriorColor_NilValue", func(t *testing.T) { + t.Run("SetLockedContents", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + var fernTestValueLockedContents bool + obj.SetLockedContents(fernTestValueLockedContents) + assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags(t *testing.T) { + t.Run("GetInvisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - obj.InteriorColor = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + var expected bool + obj.Invisible = expected // Act & Assert - assert.Nil(t, obj.GetInteriorColor(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetInvisible(), "getter should return the property value") }) - t.Run("GetInteriorColor_NilReceiver", func(t *testing.T) { + t.Run("GetInvisible_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInteriorColor() // Should return zero value + _ = obj.GetInvisible() // Should return zero value }) - t.Run("GetOpacity", func(t *testing.T) { + t.Run("GetHidden", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected float64 - obj.Opacity = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + var expected bool + obj.Hidden = expected // Act & Assert - assert.Equal(t, expected, obj.GetOpacity(), "getter should return the property value") + assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") }) - t.Run("GetOpacity_NilReceiver", func(t *testing.T) { + t.Run("GetHidden_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOpacity() // Should return zero value + _ = obj.GetHidden() // Should return zero value }) - t.Run("GetStrokeWidth", func(t *testing.T) { + t.Run("GetPrint", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected float64 - obj.StrokeWidth = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + var expected bool + obj.Print = expected // Act & Assert - assert.Equal(t, expected, obj.GetStrokeWidth(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") }) - t.Run("GetStrokeWidth_NilReceiver", func(t *testing.T) { + t.Run("GetPrint_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetStrokeWidth() // Should return zero value + _ = obj.GetPrint() // Should return zero value }) - t.Run("GetBorderStyle", func(t *testing.T) { + t.Run("GetNoZoom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle - obj.BorderStyle = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + var expected bool + obj.NoZoom = expected // Act & Assert - assert.Equal(t, expected, obj.GetBorderStyle(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") }) - t.Run("GetBorderStyle_NilReceiver", func(t *testing.T) { + t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBorderStyle() // Should return zero value - }) - - t.Run("GetDashArray", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected []float64 - obj.DashArray = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDashArray(), "getter should return the property value") + _ = obj.GetNoZoom() // Should return zero value }) - t.Run("GetDashArray_NilValue", func(t *testing.T) { + t.Run("GetNoRotate", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - obj.DashArray = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + var expected bool + obj.NoRotate = expected // Act & Assert - assert.Nil(t, obj.GetDashArray(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") }) - t.Run("GetDashArray_NilReceiver", func(t *testing.T) { + t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDashArray() // Should return zero value - }) - - t.Run("GetRectDifferences", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences - obj.RectDifferences = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRectDifferences(), "getter should return the property value") + _ = obj.GetNoRotate() // Should return zero value }) - t.Run("GetRectDifferences_NilValue", func(t *testing.T) { + t.Run("GetNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - obj.RectDifferences = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + var expected bool + obj.NoView = expected // Act & Assert - assert.Nil(t, obj.GetRectDifferences(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") }) - t.Run("GetRectDifferences_NilReceiver", func(t *testing.T) { + t.Run("GetNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRectDifferences() // Should return zero value - }) - - t.Run("GetCalloutLine", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected []any - obj.CalloutLine = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetCalloutLine(), "getter should return the property value") + _ = obj.GetNoView() // Should return zero value }) - t.Run("GetCalloutLine_NilValue", func(t *testing.T) { + t.Run("GetReadOnly", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - obj.CalloutLine = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + var expected bool + obj.ReadOnly = expected // Act & Assert - assert.Nil(t, obj.GetCalloutLine(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") }) - t.Run("GetCalloutLine_NilReceiver", func(t *testing.T) { + t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCalloutLine() // Should return zero value - }) - - t.Run("GetLineEnding", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding - obj.LineEnding = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetLineEnding(), "getter should return the property value") + _ = obj.GetReadOnly() // Should return zero value }) - t.Run("GetLineEnding_NilValue", func(t *testing.T) { + t.Run("GetLocked", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - obj.LineEnding = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + var expected bool + obj.Locked = expected // Act & Assert - assert.Nil(t, obj.GetLineEnding(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") }) - t.Run("GetLineEnding_NilReceiver", func(t *testing.T) { + t.Run("GetLocked_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLineEnding() // Should return zero value - }) - - t.Run("GetRotation", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected *float64 - obj.Rotation = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRotation(), "getter should return the property value") + _ = obj.GetLocked() // Should return zero value }) - t.Run("GetRotation_NilValue", func(t *testing.T) { + t.Run("GetToggleNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - obj.Rotation = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + var expected bool + obj.ToggleNoView = expected // Act & Assert - assert.Nil(t, obj.GetRotation(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") }) - t.Run("GetRotation_NilReceiver", func(t *testing.T) { + t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRotation() // Should return zero value - }) - - t.Run("GetUnrotatedRect", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect - obj.UnrotatedRect = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetUnrotatedRect(), "getter should return the property value") + _ = obj.GetToggleNoView() // Should return zero value }) - t.Run("GetUnrotatedRect_NilValue", func(t *testing.T) { + t.Run("GetLockedContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - obj.UnrotatedRect = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + var expected bool + obj.LockedContents = expected // Act & Assert - assert.Nil(t, obj.GetUnrotatedRect(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") }) - t.Run("GetUnrotatedRect_NilReceiver", func(t *testing.T) { + t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUnrotatedRect() // Should return zero value + _ = obj.GetLockedContents() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText(t *testing.T) { - t.Run("SetRef_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags(t *testing.T) { + t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + var fernTestValueInvisible bool // Act - obj.SetRef(fernTestValueRef) + obj.SetInvisible(fernTestValueInvisible) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -125091,14 +163403,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetHidden_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + var fernTestValueHidden bool // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetHidden(fernTestValueHidden) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -125122,14 +163434,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("SetPrint_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueIndex int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + var fernTestValuePrint bool // Act - obj.SetIndex(fernTestValueIndex) + obj.SetPrint(fernTestValuePrint) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -125153,14 +163465,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { + t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + var fernTestValueNoZoom bool // Act - obj.SetIdentityQuality(fernTestValueIdentityQuality) + obj.SetNoZoom(fernTestValueNoZoom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -125184,14 +163496,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueNm *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + var fernTestValueNoRotate bool // Act - obj.SetNm(fernTestValueNm) + obj.SetNoRotate(fernTestValueNoRotate) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -125215,14 +163527,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFlags_MarksExplicit", func(t *testing.T) { + t.Run("SetNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + var fernTestValueNoView bool // Act - obj.SetFlags(fernTestValueFlags) + obj.SetNoView(fernTestValueNoView) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -125246,14 +163558,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRect_MarksExplicit", func(t *testing.T) { + t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + var fernTestValueReadOnly bool // Act - obj.SetRect(fernTestValueRect) + obj.SetReadOnly(fernTestValueReadOnly) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -125277,14 +163589,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetContents_MarksExplicit", func(t *testing.T) { + t.Run("SetLocked_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueContents *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + var fernTestValueLocked bool // Act - obj.SetContents(fernTestValueContents) + obj.SetLocked(fernTestValueLocked) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -125308,14 +163620,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetSubject_MarksExplicit", func(t *testing.T) { + t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueSubject *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + var fernTestValueToggleNoView bool // Act - obj.SetSubject(fernTestValueSubject) + obj.SetToggleNoView(fernTestValueToggleNoView) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -125339,14 +163651,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { + t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueAuthor *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} + var fernTestValueLockedContents bool // Act - obj.SetAuthor(fernTestValueAuthor) + obj.SetLockedContents(fernTestValueLockedContents) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -125370,14 +163682,251 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreated_MarksExplicit", func(t *testing.T) { +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueCreated *time.Time + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo{} + var expected string + obj.Kind = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + }) + + t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKind() // Should return zero value + }) + + t.Run("GetObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber + obj.ObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + }) + + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo{} + obj.ObjectNumber = nil + + // Act & Assert + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + }) + + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo{} + obj.Nm = nil + + // Act & Assert + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo{} + obj.Index = nil + + // Act & Assert + assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetIndex", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex{} + var expected int + obj.Index = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value + }) + + t.Run("GetRevision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision + obj.Revision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + }) + + t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex{} + obj.Revision = nil + + // Act & Assert + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + }) + + t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRevision() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex{} + var fernTestValuePageObjectNumber int // Act - obj.SetCreated(fernTestValueCreated) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -125401,14 +163950,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetModified_MarksExplicit", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueModified *time.Time + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex{} + var fernTestValueIndex int // Act - obj.SetModified(fernTestValueModified) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -125432,14 +163981,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision // Act - obj.SetBlendMode(fernTestValueBlendMode) + obj.SetRevision(fernTestValueRevision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -125463,14 +164012,116 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision{} + var fernTestValueDocSessionID string + obj.SetDocSessionID(fernTestValueDocSessionID) + assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetGeneration", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision{} + var expected string + obj.DocSessionID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + }) + + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDocSessionID() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetGeneration", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision{} + var expected int + obj.Generation = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + }) + + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGeneration() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision{} + var fernTestValueDocSessionID string // Act - obj.SetInReplyTo(fernTestValueInReplyTo) + obj.SetDocSessionID(fernTestValueDocSessionID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -125494,14 +164145,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int // Act - obj.SetReplyType(fernTestValueReplyType) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -125525,14 +164176,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUserID_MarksExplicit", func(t *testing.T) { + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueUserID *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision{} + var fernTestValueGeneration int // Act - obj.SetUserID(fernTestValueUserID) + obj.SetGeneration(fernTestValueGeneration) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -125556,14 +164207,85 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueGroupID *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm{} + var expected string + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm{} + var fernTestValuePageObjectNumber int // Act - obj.SetGroupID(fernTestValueGroupID) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -125587,14 +164309,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueCreatedBy *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm{} + var fernTestValueNm string // Act - obj.SetCreatedBy(fernTestValueCreatedBy) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -125618,14 +164340,85 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueUpdatedBy *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + }) + + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAnnotObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int // Act - obj.SetUpdatedBy(fernTestValueUpdatedBy) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -125649,14 +164442,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueActions *PdfAnnotationActions + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int // Act - obj.SetActions(fernTestValueActions) + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -125680,14 +164473,116 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIntent_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor(t *testing.T) { + t.Run("SetR", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor{} + var fernTestValueR int + obj.SetR(fernTestValueR) + assert.Equal(t, fernTestValueR, obj.R) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetG", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor{} + var fernTestValueG int + obj.SetG(fernTestValueG) + assert.Equal(t, fernTestValueG, obj.G) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetB", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueIntent DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextIntent + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor{} + var expected int + obj.R = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") + }) + + t.Run("GetR_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetR() // Should return zero value + }) + + t.Run("GetG", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor{} + var expected int + obj.G = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") + }) + + t.Run("GetG_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetG() // Should return zero value + }) + + t.Run("GetB", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor{} + var expected int + obj.B = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + }) + + t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetB() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor{} + var fernTestValueR int // Act - obj.SetIntent(fernTestValueIntent) + obj.SetR(fernTestValueR) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -125711,14 +164606,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFontFamily_MarksExplicit", func(t *testing.T) { + t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueFontFamily string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor{} + var fernTestValueG int // Act - obj.SetFontFamily(fernTestValueFontFamily) + obj.SetG(fernTestValueG) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -125742,14 +164637,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFontSize_MarksExplicit", func(t *testing.T) { + t.Run("SetB_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueFontSize float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor{} + var fernTestValueB int // Act - obj.SetFontSize(fernTestValueFontSize) + obj.SetB(fernTestValueB) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -125773,45 +164668,136 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTextAlign_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader(t *testing.T) { + t.Run("SetLength", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader{} + var fernTestValueLength float64 + obj.SetLength(fernTestValueLength) + assert.Equal(t, fernTestValueLength, obj.Length) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetExtension", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader{} + var fernTestValueExtension *float64 + obj.SetExtension(fernTestValueExtension) + assert.Equal(t, fernTestValueExtension, obj.Extension) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetOffset", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader{} + var fernTestValueOffset *float64 + obj.SetOffset(fernTestValueOffset) + assert.Equal(t, fernTestValueOffset, obj.Offset) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader(t *testing.T) { + t.Run("GetLength", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueTextAlign DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextTextAlign + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader{} + var expected float64 + obj.Length = expected - // Act - obj.SetTextAlign(fernTestValueTextAlign) + // Act & Assert + assert.Equal(t, expected, obj.GetLength(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetLength_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLength() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetExtension", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader{} + var expected *float64 + obj.Extension = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetExtension(), "getter should return the property value") + }) + + t.Run("GetExtension_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader{} + obj.Extension = nil + + // Act & Assert + assert.Nil(t, obj.GetExtension(), "getter should return nil when property is nil") + }) + + t.Run("GetExtension_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetExtension() // Should return zero value + }) + + t.Run("GetOffset", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader{} + var expected *float64 + obj.Offset = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetOffset(), "getter should return the property value") + }) + + t.Run("GetOffset_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader{} + obj.Offset = nil - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Nil(t, obj.GetOffset(), "getter should return nil when property is nil") }) - t.Run("SetRichText_MarksExplicit", func(t *testing.T) { + t.Run("GetOffset_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetOffset() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader(t *testing.T) { + t.Run("SetLength_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueRichText *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader{} + var fernTestValueLength float64 // Act - obj.SetRichText(fernTestValueRichText) + obj.SetLength(fernTestValueLength) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -125835,14 +164821,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetColor_MarksExplicit", func(t *testing.T) { + t.Run("SetExtension_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader{} + var fernTestValueExtension *float64 // Act - obj.SetColor(fernTestValueColor) + obj.SetExtension(fernTestValueExtension) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -125866,14 +164852,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFontColor_MarksExplicit", func(t *testing.T) { + t.Run("SetOffset_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueFontColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader{} + var fernTestValueOffset *float64 // Act - obj.SetFontColor(fernTestValueFontColor) + obj.SetOffset(fernTestValueOffset) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -125897,45 +164883,85 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInteriorColor_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings(t *testing.T) { + t.Run("SetStart", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings{} + var fernTestValueStart DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart + obj.SetStart(fernTestValueStart) + assert.Equal(t, fernTestValueStart, obj.Start) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetEnd", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings{} + var fernTestValueEnd DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd + obj.SetEnd(fernTestValueEnd) + assert.Equal(t, fernTestValueEnd, obj.End) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings(t *testing.T) { + t.Run("GetStart", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart + obj.Start = expected - // Act - obj.SetInteriorColor(fernTestValueInteriorColor) + // Act & Assert + assert.Equal(t, expected, obj.GetStart(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetStart_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetStart() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetEnd", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd + obj.End = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetEnd(), "getter should return the property value") }) - t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { + t.Run("GetEnd_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetEnd() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings(t *testing.T) { + t.Run("SetStart_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueOpacity float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings{} + var fernTestValueStart DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart // Act - obj.SetOpacity(fernTestValueOpacity) + obj.SetStart(fernTestValueStart) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -125959,14 +164985,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetStrokeWidth_MarksExplicit", func(t *testing.T) { + t.Run("SetEnd_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueStrokeWidth float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings{} + var fernTestValueEnd DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd // Act - obj.SetStrokeWidth(fernTestValueStrokeWidth) + obj.SetEnd(fernTestValueEnd) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -125990,76 +165016,105 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBorderStyle_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints(t *testing.T) { + t.Run("SetStart", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints{} + var fernTestValueStart *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart + obj.SetStart(fernTestValueStart) + assert.Equal(t, fernTestValueStart, obj.Start) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetEnd", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints{} + var fernTestValueEnd *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd + obj.SetEnd(fernTestValueEnd) + assert.Equal(t, fernTestValueEnd, obj.End) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints(t *testing.T) { + t.Run("GetStart", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextBorderStyle + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart + obj.Start = expected - // Act - obj.SetBorderStyle(fernTestValueBorderStyle) + // Act & Assert + assert.Equal(t, expected, obj.GetStart(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetStart_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints{} + obj.Start = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetStart(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetStart_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetStart() // Should return zero value }) - t.Run("SetDashArray_MarksExplicit", func(t *testing.T) { + t.Run("GetEnd", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueDashArray []float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd + obj.End = expected - // Act - obj.SetDashArray(fernTestValueDashArray) + // Act & Assert + assert.Equal(t, expected, obj.GetEnd(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetEnd_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints{} + obj.End = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetEnd(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetEnd_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetEnd() // Should return zero value }) - t.Run("SetRectDifferences_MarksExplicit", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints(t *testing.T) { + t.Run("SetStart_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueRectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints{} + var fernTestValueStart *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart // Act - obj.SetRectDifferences(fernTestValueRectDifferences) + obj.SetStart(fernTestValueStart) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -126083,14 +165138,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCalloutLine_MarksExplicit", func(t *testing.T) { + t.Run("SetEnd_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueCalloutLine []any + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints{} + var fernTestValueEnd *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd // Act - obj.SetCalloutLine(fernTestValueCalloutLine) + obj.SetEnd(fernTestValueEnd) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -126114,45 +165169,85 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLineEnding_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueLineEnding *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextLineEnding + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd{} + var expected float64 + obj.X = expected - // Act - obj.SetLineEnding(fernTestValueLineEnding) + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd{} + var expected float64 + obj.Y = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") }) - t.Run("SetRotation_MarksExplicit", func(t *testing.T) { + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueRotation *float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd{} + var fernTestValueX float64 // Act - obj.SetRotation(fernTestValueRotation) + obj.SetX(fernTestValueX) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -126176,14 +165271,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUnrotatedRect_MarksExplicit", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText{} - var fernTestValueUnrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd{} + var fernTestValueY float64 // Act - obj.SetUnrotatedRect(fernTestValueUnrotatedRect) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -126209,114 +165304,83 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor(t *testing.T) { - t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor{} - var fernTestValueR int - obj.SetR(fernTestValueR) - assert.Equal(t, fernTestValueR, obj.R) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor{} - var fernTestValueG int - obj.SetG(fernTestValueG) - assert.Equal(t, fernTestValueG, obj.G) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor{} - var fernTestValueB int - obj.SetB(fernTestValueB) - assert.Equal(t, fernTestValueB, obj.B) + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor(t *testing.T) { - t.Run("GetR", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor{} - var expected int - obj.R = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetR(), "getter should return the property value") - }) - - t.Run("GetR_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetR() // Should return zero value - }) - - t.Run("GetG", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor{} - var expected int - obj.G = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart{} + var expected float64 + obj.X = expected // Act & Assert - assert.Equal(t, expected, obj.GetG(), "getter should return the property value") + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") }) - t.Run("GetG_NilReceiver", func(t *testing.T) { + t.Run("GetX_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetG() // Should return zero value + _ = obj.GetX() // Should return zero value }) - t.Run("GetB", func(t *testing.T) { + t.Run("GetY", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor{} - var expected int - obj.B = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart{} + var expected float64 + obj.Y = expected // Act & Assert - assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") }) - t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Run("GetY_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetB() // Should return zero value + _ = obj.GetY() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor(t *testing.T) { - t.Run("SetR_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor{} - var fernTestValueR int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart{} + var fernTestValueX float64 // Act - obj.SetR(fernTestValueR) + obj.SetX(fernTestValueX) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -126340,14 +165404,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor{} - var fernTestValueG int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart{} + var fernTestValueY float64 // Act - obj.SetG(fernTestValueG) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -126371,364 +165435,517 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetB_MarksExplicit", func(t *testing.T) { +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasure(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextColor{} - var fernTestValueB int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasure{} + var expected string + obj.Subtype = expected - // Act - obj.SetB(fernTestValueB) + // Act & Assert + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasure + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSubtype() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetRl", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasure{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl + obj.Rl = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetRl(), "getter should return the property value") }) -} + t.Run("GetRl_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasure{} + obj.Rl = nil -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags(t *testing.T) { - t.Run("SetInvisible", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} - var fernTestValueInvisible bool - obj.SetInvisible(fernTestValueInvisible) - assert.Equal(t, fernTestValueInvisible, obj.Invisible) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Nil(t, obj.GetRl(), "getter should return nil when property is nil") }) - t.Run("SetHidden", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} - var fernTestValueHidden bool - obj.SetHidden(fernTestValueHidden) - assert.Equal(t, fernTestValueHidden, obj.Hidden) + t.Run("GetRl_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasure + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRl() // Should return zero value + }) + + t.Run("GetGeo", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasure{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureGeo + obj.Geo = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetGeo(), "getter should return the property value") + }) + + t.Run("GetGeo_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasure{} + obj.Geo = nil + + // Act & Assert + assert.Nil(t, obj.GetGeo(), "getter should return nil when property is nil") + }) + + t.Run("GetGeo_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasure + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGeo() // Should return zero value + }) + + t.Run("GetUnknown", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasure{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureUnknown + obj.Unknown = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") + }) + + t.Run("GetUnknown_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasure{} + obj.Unknown = nil + + // Act & Assert + assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") + }) + + t.Run("GetUnknown_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasure + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnknown() // Should return zero value + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl(t *testing.T) { + t.Run("SetRatio", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + var fernTestValueRatio *string + obj.SetRatio(fernTestValueRatio) + assert.Equal(t, fernTestValueRatio, obj.Ratio) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPrint", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} - var fernTestValuePrint bool - obj.SetPrint(fernTestValuePrint) - assert.Equal(t, fernTestValuePrint, obj.Print) + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + var fernTestValueX []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNoZoom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} - var fernTestValueNoZoom bool - obj.SetNoZoom(fernTestValueNoZoom) - assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + var fernTestValueY []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNoRotate", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} - var fernTestValueNoRotate bool - obj.SetNoRotate(fernTestValueNoRotate) - assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) + t.Run("SetDistance", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + var fernTestValueDistance []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem + obj.SetDistance(fernTestValueDistance) + assert.Equal(t, fernTestValueDistance, obj.Distance) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} - var fernTestValueNoView bool - obj.SetNoView(fernTestValueNoView) - assert.Equal(t, fernTestValueNoView, obj.NoView) + t.Run("SetArea", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + var fernTestValueArea []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem + obj.SetArea(fernTestValueArea) + assert.Equal(t, fernTestValueArea, obj.Area) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} - var fernTestValueReadOnly bool - obj.SetReadOnly(fernTestValueReadOnly) - assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) + t.Run("SetAngle", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + var fernTestValueAngle []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem + obj.SetAngle(fernTestValueAngle) + assert.Equal(t, fernTestValueAngle, obj.Angle) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetLocked", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} - var fernTestValueLocked bool - obj.SetLocked(fernTestValueLocked) - assert.Equal(t, fernTestValueLocked, obj.Locked) + t.Run("SetSlope", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + var fernTestValueSlope []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem + obj.SetSlope(fernTestValueSlope) + assert.Equal(t, fernTestValueSlope, obj.Slope) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetToggleNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} - var fernTestValueToggleNoView bool - obj.SetToggleNoView(fernTestValueToggleNoView) - assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) + t.Run("SetOrigin", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + var fernTestValueOrigin *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin + obj.SetOrigin(fernTestValueOrigin) + assert.Equal(t, fernTestValueOrigin, obj.Origin) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetLockedContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} - var fernTestValueLockedContents bool - obj.SetLockedContents(fernTestValueLockedContents) - assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) + t.Run("SetCyx", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + var fernTestValueCyx *float64 + obj.SetCyx(fernTestValueCyx) + assert.Equal(t, fernTestValueCyx, obj.Cyx) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags(t *testing.T) { - t.Run("GetInvisible", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl(t *testing.T) { + t.Run("GetRatio", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} - var expected bool - obj.Invisible = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + var expected *string + obj.Ratio = expected // Act & Assert - assert.Equal(t, expected, obj.GetInvisible(), "getter should return the property value") - }) - - t.Run("GetInvisible_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetInvisible() // Should return zero value + assert.Equal(t, expected, obj.GetRatio(), "getter should return the property value") }) - t.Run("GetHidden", func(t *testing.T) { + t.Run("GetRatio_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} - var expected bool - obj.Hidden = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + obj.Ratio = nil // Act & Assert - assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") + assert.Nil(t, obj.GetRatio(), "getter should return nil when property is nil") }) - t.Run("GetHidden_NilReceiver", func(t *testing.T) { + t.Run("GetRatio_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetHidden() // Should return zero value + _ = obj.GetRatio() // Should return zero value }) - t.Run("GetPrint", func(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} - var expected bool - obj.Print = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem + obj.X = expected // Act & Assert - assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") }) - t.Run("GetPrint_NilReceiver", func(t *testing.T) { + t.Run("GetX_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + obj.X = nil + + // Act & Assert + assert.Nil(t, obj.GetX(), "getter should return nil when property is nil") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPrint() // Should return zero value + _ = obj.GetX() // Should return zero value }) - t.Run("GetNoZoom", func(t *testing.T) { + t.Run("GetY", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} - var expected bool - obj.NoZoom = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem + obj.Y = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") }) - t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { + t.Run("GetY_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + obj.Y = nil + + // Act & Assert + assert.Nil(t, obj.GetY(), "getter should return nil when property is nil") + }) + + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNoZoom() // Should return zero value + _ = obj.GetY() // Should return zero value }) - t.Run("GetNoRotate", func(t *testing.T) { + t.Run("GetDistance", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} - var expected bool - obj.NoRotate = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem + obj.Distance = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDistance(), "getter should return the property value") }) - t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { + t.Run("GetDistance_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + obj.Distance = nil + + // Act & Assert + assert.Nil(t, obj.GetDistance(), "getter should return nil when property is nil") + }) + + t.Run("GetDistance_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNoRotate() // Should return zero value + _ = obj.GetDistance() // Should return zero value }) - t.Run("GetNoView", func(t *testing.T) { + t.Run("GetArea", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} - var expected bool - obj.NoView = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem + obj.Area = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") + assert.Equal(t, expected, obj.GetArea(), "getter should return the property value") }) - t.Run("GetNoView_NilReceiver", func(t *testing.T) { + t.Run("GetArea_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + obj.Area = nil + + // Act & Assert + assert.Nil(t, obj.GetArea(), "getter should return nil when property is nil") + }) + + t.Run("GetArea_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNoView() // Should return zero value + _ = obj.GetArea() // Should return zero value }) - t.Run("GetReadOnly", func(t *testing.T) { + t.Run("GetAngle", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} - var expected bool - obj.ReadOnly = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem + obj.Angle = expected // Act & Assert - assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAngle(), "getter should return the property value") }) - t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { + t.Run("GetAngle_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + obj.Angle = nil + + // Act & Assert + assert.Nil(t, obj.GetAngle(), "getter should return nil when property is nil") + }) + + t.Run("GetAngle_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReadOnly() // Should return zero value + _ = obj.GetAngle() // Should return zero value }) - t.Run("GetLocked", func(t *testing.T) { + t.Run("GetSlope", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} - var expected bool - obj.Locked = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem + obj.Slope = expected // Act & Assert - assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSlope(), "getter should return the property value") }) - t.Run("GetLocked_NilReceiver", func(t *testing.T) { + t.Run("GetSlope_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + obj.Slope = nil + + // Act & Assert + assert.Nil(t, obj.GetSlope(), "getter should return nil when property is nil") + }) + + t.Run("GetSlope_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLocked() // Should return zero value + _ = obj.GetSlope() // Should return zero value }) - t.Run("GetToggleNoView", func(t *testing.T) { + t.Run("GetOrigin", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} - var expected bool - obj.ToggleNoView = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin + obj.Origin = expected // Act & Assert - assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrigin(), "getter should return the property value") }) - t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { + t.Run("GetOrigin_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + obj.Origin = nil + + // Act & Assert + assert.Nil(t, obj.GetOrigin(), "getter should return nil when property is nil") + }) + + t.Run("GetOrigin_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetToggleNoView() // Should return zero value + _ = obj.GetOrigin() // Should return zero value }) - t.Run("GetLockedContents", func(t *testing.T) { + t.Run("GetCyx", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} - var expected bool - obj.LockedContents = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + var expected *float64 + obj.Cyx = expected // Act & Assert - assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCyx(), "getter should return the property value") }) - t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { + t.Run("GetCyx_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + obj.Cyx = nil + + // Act & Assert + assert.Nil(t, obj.GetCyx(), "getter should return nil when property is nil") + }) + + t.Run("GetCyx_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLockedContents() // Should return zero value + _ = obj.GetCyx() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags(t *testing.T) { - t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl(t *testing.T) { + t.Run("SetRatio_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} - var fernTestValueInvisible bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + var fernTestValueRatio *string // Act - obj.SetInvisible(fernTestValueInvisible) + obj.SetRatio(fernTestValueRatio) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -126752,14 +165969,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetHidden_MarksExplicit", func(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} - var fernTestValueHidden bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + var fernTestValueX []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem // Act - obj.SetHidden(fernTestValueHidden) + obj.SetX(fernTestValueX) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -126783,14 +166000,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPrint_MarksExplicit", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} - var fernTestValuePrint bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + var fernTestValueY []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem // Act - obj.SetPrint(fernTestValuePrint) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -126814,14 +166031,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { + t.Run("SetDistance_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} - var fernTestValueNoZoom bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + var fernTestValueDistance []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem // Act - obj.SetNoZoom(fernTestValueNoZoom) + obj.SetDistance(fernTestValueDistance) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -126845,14 +166062,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { + t.Run("SetArea_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} - var fernTestValueNoRotate bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + var fernTestValueArea []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem // Act - obj.SetNoRotate(fernTestValueNoRotate) + obj.SetArea(fernTestValueArea) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -126876,14 +166093,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoView_MarksExplicit", func(t *testing.T) { + t.Run("SetAngle_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} - var fernTestValueNoView bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + var fernTestValueAngle []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem // Act - obj.SetNoView(fernTestValueNoView) + obj.SetAngle(fernTestValueAngle) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -126907,14 +166124,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { + t.Run("SetSlope_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} - var fernTestValueReadOnly bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + var fernTestValueSlope []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem // Act - obj.SetReadOnly(fernTestValueReadOnly) + obj.SetSlope(fernTestValueSlope) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -126938,14 +166155,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLocked_MarksExplicit", func(t *testing.T) { + t.Run("SetOrigin_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} - var fernTestValueLocked bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + var fernTestValueOrigin *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin // Act - obj.SetLocked(fernTestValueLocked) + obj.SetOrigin(fernTestValueOrigin) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -126969,14 +166186,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { + t.Run("SetCyx_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} - var fernTestValueToggleNoView bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + var fernTestValueCyx *float64 // Act - obj.SetToggleNoView(fernTestValueToggleNoView) + obj.SetCyx(fernTestValueCyx) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -127000,477 +166217,423 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFlags{} - var fernTestValueLockedContents bool +} - // Act - obj.SetLockedContents(fernTestValueLockedContents) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) + assert.NotNil(t, obj.explicitFields) + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) + assert.NotNil(t, obj.explicitFields) + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) }) -} + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor(t *testing.T) { - t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor{} - var fernTestValueR int - obj.SetR(fernTestValueR) - assert.Equal(t, fernTestValueR, obj.R) + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor{} - var fernTestValueG int - obj.SetG(fernTestValueG) - assert.Equal(t, fernTestValueG, obj.G) + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor{} - var fernTestValueB int - obj.SetB(fernTestValueB) - assert.Equal(t, fernTestValueB, obj.B) + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor(t *testing.T) { - t.Run("GetR", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor{} - var expected int - obj.R = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + var expected string + obj.Unit = expected // Act & Assert - assert.Equal(t, expected, obj.GetR(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") }) - t.Run("GetR_NilReceiver", func(t *testing.T) { + t.Run("GetUnit_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetR() // Should return zero value + _ = obj.GetUnit() // Should return zero value }) - t.Run("GetG", func(t *testing.T) { + t.Run("GetConversion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor{} - var expected int - obj.G = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + var expected *float64 + obj.Conversion = expected // Act & Assert - assert.Equal(t, expected, obj.GetG(), "getter should return the property value") - }) - - t.Run("GetG_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetG() // Should return zero value + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") }) - t.Run("GetB", func(t *testing.T) { + t.Run("GetConversion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor{} - var expected int - obj.B = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + obj.Conversion = nil // Act & Assert - assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") }) - t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Run("GetConversion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetB() // Should return zero value + _ = obj.GetConversion() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor(t *testing.T) { - t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Run("GetFraction", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor{} - var fernTestValueR int - - // Act - obj.SetR(fernTestValueR) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFraction + obj.Fraction = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") }) - t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Run("GetFraction_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor{} - var fernTestValueG int - - // Act - obj.SetG(fernTestValueG) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + obj.Fraction = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetFraction_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFraction() // Should return zero value }) - t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Run("GetPrecision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextFontColor{} - var fernTestValueB int - - // Act - obj.SetB(fernTestValueB) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + var expected *int + obj.Precision = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") }) -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { + t.Run("GetPrecision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo{} - var expected string - obj.Kind = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + obj.Precision = nil // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKind() // Should return zero value + _ = obj.GetPrecision() // Should return zero value }) - t.Run("GetObjectNumber", func(t *testing.T) { + t.Run("GetFixed", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber - obj.ObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + var expected *bool + obj.Fixed = expected // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") }) - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Run("GetFixed_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo{} - obj.ObjectNumber = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + obj.Fixed = nil // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") }) - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetFixed_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetObjectNumber() // Should return zero value + _ = obj.GetFixed() // Should return zero value }) - t.Run("GetNm", func(t *testing.T) { + t.Run("GetThousands", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm - obj.Nm = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + var expected *string + obj.Thousands = expected // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") }) - t.Run("GetNm_NilValue", func(t *testing.T) { + t.Run("GetThousands_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo{} - obj.Nm = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + obj.Thousands = nil // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetThousands_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetThousands() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetDecimal", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex - obj.Index = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + var expected *string + obj.Decimal = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") }) - t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Run("GetDecimal_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo{} - obj.Index = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + obj.Decimal = nil // Act & Assert - assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) + _ = obj.GetDecimal() // Should return zero value }) - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("GetPrefixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + var expected *string + obj.PrefixSpacing = expected - t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") }) -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + obj.PrefixSpacing = nil // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetPrefixSpacing() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetSuffixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex{} - var expected int - obj.Index = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + var expected *string + obj.SuffixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + obj.SuffixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetSuffixSpacing() // Should return zero value }) - t.Run("GetRevision", func(t *testing.T) { + t.Run("GetLabelPosition", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision - obj.Revision = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemLabelPosition + obj.LabelPosition = expected // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") }) - t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex{} - obj.Revision = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + obj.LabelPosition = nil // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") }) - t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRevision() // Should return zero value + _ = obj.GetLabelPosition() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValueUnit string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetUnit(fernTestValueUnit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -127494,14 +166657,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex{} - var fernTestValueIndex int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValueConversion *float64 // Act - obj.SetIndex(fernTestValueIndex) + obj.SetConversion(fernTestValueConversion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -127525,14 +166688,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFraction // Act - obj.SetRevision(fernTestValueRevision) + obj.SetFraction(fernTestValueFraction) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -127556,116 +166719,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision{} - var fernTestValueDocSessionID string - obj.SetDocSessionID(fernTestValueDocSessionID) - assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision{} - var expected string - obj.DocSessionID = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") - }) - - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetDocSessionID() // Should return zero value - }) - - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetGeneration", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision{} - var expected int - obj.Generation = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") - }) - - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetGeneration() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision{} - var fernTestValueDocSessionID string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValuePrecision *int // Act - obj.SetDocSessionID(fernTestValueDocSessionID) + obj.SetPrecision(fernTestValuePrecision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -127689,14 +166750,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValueFixed *bool // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetFixed(fernTestValueFixed) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -127720,14 +166781,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToIndexRevision{} - var fernTestValueGeneration int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValueThousands *string // Act - obj.SetGeneration(fernTestValueGeneration) + obj.SetThousands(fernTestValueThousands) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -127751,85 +166812,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm{} - var fernTestValueNm string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm{} - var expected string - obj.Nm = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") - }) - - t.Run("GetNm_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNm() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValueDecimal *string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetDecimal(fernTestValueDecimal) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -127853,14 +166843,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToNm{} - var fernTestValueNm string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValuePrefixSpacing *string // Act - obj.SetNm(fernTestValueNm) + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -127884,85 +166874,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetAnnotObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") - }) - - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAnnotObjectNumber() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValueSuffixSpacing *string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -127986,14 +166905,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemLabelPosition // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + obj.SetLabelPosition(fernTestValueLabelPosition) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -128019,340 +166938,421 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor(t *testing.T) { - t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor{} - var fernTestValueR int - obj.SetR(fernTestValueR) - assert.Equal(t, fernTestValueR, obj.R) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor{} - var fernTestValueG int - obj.SetG(fernTestValueG) - assert.Equal(t, fernTestValueG, obj.G) + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor{} - var fernTestValueB int - obj.SetB(fernTestValueB) - assert.Equal(t, fernTestValueB, obj.B) + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor(t *testing.T) { - t.Run("GetR", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor{} - var expected int - obj.R = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + var expected string + obj.Unit = expected // Act & Assert - assert.Equal(t, expected, obj.GetR(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") }) - t.Run("GetR_NilReceiver", func(t *testing.T) { + t.Run("GetUnit_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetR() // Should return zero value + _ = obj.GetUnit() // Should return zero value }) - t.Run("GetG", func(t *testing.T) { + t.Run("GetConversion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor{} - var expected int - obj.G = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + var expected *float64 + obj.Conversion = expected // Act & Assert - assert.Equal(t, expected, obj.GetG(), "getter should return the property value") + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") }) - t.Run("GetG_NilReceiver", func(t *testing.T) { + t.Run("GetConversion_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + obj.Conversion = nil + + // Act & Assert + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") + }) + + t.Run("GetConversion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetG() // Should return zero value + _ = obj.GetConversion() // Should return zero value }) - t.Run("GetB", func(t *testing.T) { + t.Run("GetFraction", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor{} - var expected int - obj.B = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFraction + obj.Fraction = expected // Act & Assert - assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") }) - t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Run("GetFraction_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + obj.Fraction = nil + + // Act & Assert + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") + }) + + t.Run("GetFraction_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetB() // Should return zero value + _ = obj.GetFraction() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor(t *testing.T) { - t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Run("GetPrecision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor{} - var fernTestValueR int - - // Act - obj.SetR(fernTestValueR) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + var expected *int + obj.Precision = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") }) - t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Run("GetPrecision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor{} - var fernTestValueG int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + obj.Precision = nil - // Act - obj.SetG(fernTestValueG) + // Act & Assert + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrecision() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetFixed", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + var expected *bool + obj.Fixed = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") }) - t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Run("GetFixed_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextInteriorColor{} - var fernTestValueB int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + obj.Fixed = nil - // Act - obj.SetB(fernTestValueB) + // Act & Assert + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetFixed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFixed() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetThousands", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + var expected *string + obj.Thousands = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") }) -} + t.Run("GetThousands_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + obj.Thousands = nil -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect(t *testing.T) { - t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect{} - var fernTestValueLeft float64 - obj.SetLeft(fernTestValueLeft) - assert.Equal(t, fernTestValueLeft, obj.Left) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") }) - t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect{} - var fernTestValueBottom float64 - obj.SetBottom(fernTestValueBottom) - assert.Equal(t, fernTestValueBottom, obj.Bottom) - assert.NotNil(t, obj.explicitFields) + t.Run("GetThousands_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetThousands() // Should return zero value }) - t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect{} - var fernTestValueRight float64 - obj.SetRight(fernTestValueRight) - assert.Equal(t, fernTestValueRight, obj.Right) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("GetDecimal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + var expected *string + obj.Decimal = expected - t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect{} - var fernTestValueTop float64 - obj.SetTop(fernTestValueTop) - assert.Equal(t, fernTestValueTop, obj.Top) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") }) -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect(t *testing.T) { - t.Run("GetLeft", func(t *testing.T) { + t.Run("GetDecimal_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect{} - var expected float64 - obj.Left = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + obj.Decimal = nil // Act & Assert - assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") }) - t.Run("GetLeft_NilReceiver", func(t *testing.T) { + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLeft() // Should return zero value + _ = obj.GetDecimal() // Should return zero value }) - t.Run("GetBottom", func(t *testing.T) { + t.Run("GetPrefixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect{} - var expected float64 - obj.Bottom = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + var expected *string + obj.PrefixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") }) - t.Run("GetBottom_NilReceiver", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + obj.PrefixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBottom() // Should return zero value + _ = obj.GetPrefixSpacing() // Should return zero value }) - t.Run("GetRight", func(t *testing.T) { + t.Run("GetSuffixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect{} - var expected float64 - obj.Right = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + var expected *string + obj.SuffixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") }) - t.Run("GetRight_NilReceiver", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + obj.SuffixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRight() // Should return zero value + _ = obj.GetSuffixSpacing() // Should return zero value }) - t.Run("GetTop", func(t *testing.T) { + t.Run("GetLabelPosition", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect{} - var expected float64 - obj.Top = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemLabelPosition + obj.LabelPosition = expected // Act & Assert - assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") }) - t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + obj.LabelPosition = nil + + // Act & Assert + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") + }) + + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTop() // Should return zero value + _ = obj.GetLabelPosition() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect(t *testing.T) { - t.Run("SetLeft_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect{} - var fernTestValueLeft float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValueUnit string // Act - obj.SetLeft(fernTestValueLeft) + obj.SetUnit(fernTestValueUnit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -128376,14 +167376,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect{} - var fernTestValueBottom float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValueConversion *float64 // Act - obj.SetBottom(fernTestValueBottom) + obj.SetConversion(fernTestValueConversion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -128407,14 +167407,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRight_MarksExplicit", func(t *testing.T) { + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect{} - var fernTestValueRight float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFraction // Act - obj.SetRight(fernTestValueRight) + obj.SetFraction(fernTestValueFraction) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -128438,14 +167438,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRect{} - var fernTestValueTop float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValuePrecision *int // Act - obj.SetTop(fernTestValueTop) + obj.SetPrecision(fernTestValuePrecision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -128469,147 +167469,76 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences(t *testing.T) { - t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences{} - var fernTestValueLeft float64 - obj.SetLeft(fernTestValueLeft) - assert.Equal(t, fernTestValueLeft, obj.Left) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences{} - var fernTestValueTop float64 - obj.SetTop(fernTestValueTop) - assert.Equal(t, fernTestValueTop, obj.Top) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences{} - var fernTestValueRight float64 - obj.SetRight(fernTestValueRight) - assert.Equal(t, fernTestValueRight, obj.Right) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences{} - var fernTestValueBottom float64 - obj.SetBottom(fernTestValueBottom) - assert.Equal(t, fernTestValueBottom, obj.Bottom) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences(t *testing.T) { - t.Run("GetLeft", func(t *testing.T) { + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences{} - var expected float64 - obj.Left = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") - }) + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValueFixed *bool - t.Run("GetLeft_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetLeft() // Should return zero value - }) + // Act + obj.SetFixed(fernTestValueFixed) - t.Run("GetTop", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences{} - var expected float64 - obj.Top = expected + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetTop_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetTop() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetRight", func(t *testing.T) { + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences{} - var expected float64 - obj.Right = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") - }) + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValueThousands *string - t.Run("GetRight_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRight() // Should return zero value - }) + // Act + obj.SetThousands(fernTestValueThousands) - t.Run("GetBottom", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences{} - var expected float64 - obj.Bottom = expected + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetBottom_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetBottom() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences(t *testing.T) { - t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences{} - var fernTestValueLeft float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValueDecimal *string // Act - obj.SetLeft(fernTestValueLeft) + obj.SetDecimal(fernTestValueDecimal) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -128633,14 +167562,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences{} - var fernTestValueTop float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValuePrefixSpacing *string // Act - obj.SetTop(fernTestValueTop) + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -128664,14 +167593,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRight_MarksExplicit", func(t *testing.T) { + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences{} - var fernTestValueRight float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValueSuffixSpacing *string // Act - obj.SetRight(fernTestValueRight) + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -128695,14 +167624,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRectDifferences{} - var fernTestValueBottom float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemLabelPosition // Act - obj.SetBottom(fernTestValueBottom) + obj.SetLabelPosition(fernTestValueLabelPosition) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -128728,249 +167657,421 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} var expected string - obj.Kind = expected + obj.Unit = expected // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetUnit_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKind() // Should return zero value + _ = obj.GetUnit() // Should return zero value }) - t.Run("GetObjectNumber", func(t *testing.T) { + t.Run("GetConversion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber - obj.ObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + var expected *float64 + obj.Conversion = expected // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") }) - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Run("GetConversion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef{} - obj.ObjectNumber = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + obj.Conversion = nil // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") }) - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetConversion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetObjectNumber() // Should return zero value + _ = obj.GetConversion() // Should return zero value }) - t.Run("GetNm", func(t *testing.T) { + t.Run("GetFraction", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm - obj.Nm = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFraction + obj.Fraction = expected // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") }) - t.Run("GetNm_NilValue", func(t *testing.T) { + t.Run("GetFraction_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef{} - obj.Nm = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + obj.Fraction = nil // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetFraction_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetFraction() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetPrecision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex - obj.Index = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + var expected *int + obj.Precision = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") }) - t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Run("GetPrecision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef{} - obj.Index = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + obj.Precision = nil // Act & Assert - assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetPrecision() // Should return zero value }) -} + t.Run("GetFixed", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + var expected *bool + obj.Fixed = expected -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") }) - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) - assert.NotNil(t, obj.explicitFields) + t.Run("GetFixed_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + obj.Fixed = nil + + // Act & Assert + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") }) - t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) - assert.NotNil(t, obj.explicitFields) + t.Run("GetFixed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFixed() // Should return zero value + }) + + t.Run("GetThousands", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + var expected *string + obj.Thousands = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") + }) + + t.Run("GetThousands_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + obj.Thousands = nil + + // Act & Assert + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") + }) + + t.Run("GetThousands_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetThousands() // Should return zero value + }) + + t.Run("GetDecimal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + var expected *string + obj.Decimal = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") + }) + + t.Run("GetDecimal_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + obj.Decimal = nil + + // Act & Assert + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") + }) + + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDecimal() // Should return zero value }) -} + t.Run("GetPrefixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + var expected *string + obj.PrefixSpacing = expected -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + // Act & Assert + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") + }) + + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + obj.PrefixSpacing = nil // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetPrefixSpacing() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetSuffixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex{} - var expected int - obj.Index = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + var expected *string + obj.SuffixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + obj.SuffixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetSuffixSpacing() // Should return zero value }) - t.Run("GetRevision", func(t *testing.T) { + t.Run("GetLabelPosition", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision - obj.Revision = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemLabelPosition + obj.LabelPosition = expected // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") }) - t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex{} - obj.Revision = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + obj.LabelPosition = nil // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") }) - t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRevision() // Should return zero value + _ = obj.GetLabelPosition() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValueUnit string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetUnit(fernTestValueUnit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -128994,14 +168095,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex{} - var fernTestValueIndex int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValueConversion *float64 // Act - obj.SetIndex(fernTestValueIndex) + obj.SetConversion(fernTestValueConversion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -129025,14 +168126,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFraction // Act - obj.SetRevision(fernTestValueRevision) + obj.SetFraction(fernTestValueFraction) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -129056,116 +168157,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision{} - var fernTestValueDocSessionID string - obj.SetDocSessionID(fernTestValueDocSessionID) - assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision{} - var expected string - obj.DocSessionID = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") - }) - - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetDocSessionID() // Should return zero value - }) - - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetGeneration", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision{} - var expected int - obj.Generation = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") - }) - - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetGeneration() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision{} - var fernTestValueDocSessionID string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValuePrecision *int // Act - obj.SetDocSessionID(fernTestValueDocSessionID) + obj.SetPrecision(fernTestValuePrecision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -129189,14 +168188,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValueFixed *bool // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetFixed(fernTestValueFixed) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -129220,14 +168219,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefIndexRevision{} - var fernTestValueGeneration int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValueThousands *string // Act - obj.SetGeneration(fernTestValueGeneration) + obj.SetThousands(fernTestValueThousands) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -129251,85 +168250,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm{} - var fernTestValueNm string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm{} - var expected string - obj.Nm = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") - }) - - t.Run("GetNm_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNm() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValueDecimal *string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetDecimal(fernTestValueDecimal) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -129353,14 +168281,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefNm{} - var fernTestValueNm string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValuePrefixSpacing *string // Act - obj.SetNm(fernTestValueNm) + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -129384,85 +168312,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetAnnotObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") - }) - - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAnnotObjectNumber() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValueSuffixSpacing *string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -129486,14 +168343,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRefObjectNumber{} - var fernTestValueAnnotObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemLabelPosition // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + obj.SetLabelPosition(fernTestValueLabelPosition) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -129519,103 +168376,83 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText(t *testing.T) { - t.Run("SetBody", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText{} - var fernTestValueBody *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody - obj.SetBody(fernTestValueBody) - assert.Equal(t, fernTestValueBody, obj.Body) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetParagraphs", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText{} - var fernTestValueParagraphs []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem - obj.SetParagraphs(fernTestValueParagraphs) - assert.Equal(t, fernTestValueParagraphs, obj.Paragraphs) + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText(t *testing.T) { - t.Run("GetBody", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody - obj.Body = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetBody(), "getter should return the property value") - }) - - t.Run("GetBody_NilValue", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText{} - obj.Body = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin{} + var expected float64 + obj.X = expected // Act & Assert - assert.Nil(t, obj.GetBody(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") }) - t.Run("GetBody_NilReceiver", func(t *testing.T) { + t.Run("GetX_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBody() // Should return zero value - }) - - t.Run("GetParagraphs", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText{} - var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem - obj.Paragraphs = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetParagraphs(), "getter should return the property value") + _ = obj.GetX() // Should return zero value }) - t.Run("GetParagraphs_NilValue", func(t *testing.T) { + t.Run("GetY", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText{} - obj.Paragraphs = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin{} + var expected float64 + obj.Y = expected // Act & Assert - assert.Nil(t, obj.GetParagraphs(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") }) - t.Run("GetParagraphs_NilReceiver", func(t *testing.T) { + t.Run("GetY_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetParagraphs() // Should return zero value + _ = obj.GetY() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText(t *testing.T) { - t.Run("SetBody_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText{} - var fernTestValueBody *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin{} + var fernTestValueX float64 // Act - obj.SetBody(fernTestValueBody) + obj.SetX(fernTestValueX) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -129639,14 +168476,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetParagraphs_MarksExplicit", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichText{} - var fernTestValueParagraphs []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin{} + var fernTestValueY float64 // Act - obj.SetParagraphs(fernTestValueParagraphs) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -129672,536 +168509,421 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody(t *testing.T) { - t.Run("SetFamily", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var fernTestValueFamily string - obj.SetFamily(fernTestValueFamily) - assert.Equal(t, fernTestValueFamily, obj.Family) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetWeight", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var fernTestValueWeight int - obj.SetWeight(fernTestValueWeight) - assert.Equal(t, fernTestValueWeight, obj.Weight) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetItalic", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var fernTestValueItalic bool - obj.SetItalic(fernTestValueItalic) - assert.Equal(t, fernTestValueItalic, obj.Italic) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetSize", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var fernTestValueSize float64 - obj.SetSize(fernTestValueSize) - assert.Equal(t, fernTestValueSize, obj.Size) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetColor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var fernTestValueColor string - obj.SetColor(fernTestValueColor) - assert.Equal(t, fernTestValueColor, obj.Color) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetDecoration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var fernTestValueDecoration []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItem - obj.SetDecoration(fernTestValueDecoration) - assert.Equal(t, fernTestValueDecoration, obj.Decoration) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetScript", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var fernTestValueScript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScript - obj.SetScript(fernTestValueScript) - assert.Equal(t, fernTestValueScript, obj.Script) + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetLetterSpacing", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var fernTestValueLetterSpacing float64 - obj.SetLetterSpacing(fernTestValueLetterSpacing) - assert.Equal(t, fernTestValueLetterSpacing, obj.LetterSpacing) + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetHorizontalScale", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var fernTestValueHorizontalScale float64 - obj.SetHorizontalScale(fernTestValueHorizontalScale) - assert.Equal(t, fernTestValueHorizontalScale, obj.HorizontalScale) + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetUnknown", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var fernTestValueUnknown *string - obj.SetUnknown(fernTestValueUnknown) - assert.Equal(t, fernTestValueUnknown, obj.Unknown) + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetAlign", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var fernTestValueAlign DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlign - obj.SetAlign(fernTestValueAlign) - assert.Equal(t, fernTestValueAlign, obj.Align) + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetDir", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var fernTestValueDir DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDir - obj.SetDir(fernTestValueDir) - assert.Equal(t, fernTestValueDir, obj.Dir) + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetLineHeight", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var fernTestValueLineHeight *float64 - obj.SetLineHeight(fernTestValueLineHeight) - assert.Equal(t, fernTestValueLineHeight, obj.LineHeight) + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMargins", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var fernTestValueMargins *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins - obj.SetMargins(fernTestValueMargins) - assert.Equal(t, fernTestValueMargins, obj.Margins) + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTextIndent", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var fernTestValueTextIndent *float64 - obj.SetTextIndent(fernTestValueTextIndent) - assert.Equal(t, fernTestValueTextIndent, obj.TextIndent) + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody(t *testing.T) { - t.Run("GetFamily", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} var expected string - obj.Family = expected + obj.Unit = expected // Act & Assert - assert.Equal(t, expected, obj.GetFamily(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") }) - t.Run("GetFamily_NilReceiver", func(t *testing.T) { + t.Run("GetUnit_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFamily() // Should return zero value + _ = obj.GetUnit() // Should return zero value }) - t.Run("GetWeight", func(t *testing.T) { + t.Run("GetConversion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var expected int - obj.Weight = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + var expected *float64 + obj.Conversion = expected // Act & Assert - assert.Equal(t, expected, obj.GetWeight(), "getter should return the property value") - }) - - t.Run("GetWeight_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetWeight() // Should return zero value + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") }) - t.Run("GetItalic", func(t *testing.T) { + t.Run("GetConversion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var expected bool - obj.Italic = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + obj.Conversion = nil // Act & Assert - assert.Equal(t, expected, obj.GetItalic(), "getter should return the property value") + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") }) - t.Run("GetItalic_NilReceiver", func(t *testing.T) { + t.Run("GetConversion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetItalic() // Should return zero value + _ = obj.GetConversion() // Should return zero value }) - t.Run("GetSize", func(t *testing.T) { + t.Run("GetFraction", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var expected float64 - obj.Size = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFraction + obj.Fraction = expected // Act & Assert - assert.Equal(t, expected, obj.GetSize(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") }) - t.Run("GetSize_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetSize() // Should return zero value - }) - - t.Run("GetColor", func(t *testing.T) { + t.Run("GetFraction_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var expected string - obj.Color = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + obj.Fraction = nil // Act & Assert - assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") }) - t.Run("GetColor_NilReceiver", func(t *testing.T) { + t.Run("GetFraction_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetColor() // Should return zero value - }) - - t.Run("GetDecoration", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItem - obj.Decoration = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDecoration(), "getter should return the property value") + _ = obj.GetFraction() // Should return zero value }) - t.Run("GetDecoration_NilValue", func(t *testing.T) { + t.Run("GetPrecision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - obj.Decoration = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + var expected *int + obj.Precision = expected // Act & Assert - assert.Nil(t, obj.GetDecoration(), "getter should return nil when property is nil") - }) - - t.Run("GetDecoration_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetDecoration() // Should return zero value + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") }) - t.Run("GetScript", func(t *testing.T) { + t.Run("GetPrecision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScript - obj.Script = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + obj.Precision = nil // Act & Assert - assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") }) - t.Run("GetScript_NilReceiver", func(t *testing.T) { + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetScript() // Should return zero value + _ = obj.GetPrecision() // Should return zero value }) - t.Run("GetLetterSpacing", func(t *testing.T) { + t.Run("GetFixed", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var expected float64 - obj.LetterSpacing = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + var expected *bool + obj.Fixed = expected // Act & Assert - assert.Equal(t, expected, obj.GetLetterSpacing(), "getter should return the property value") - }) - - t.Run("GetLetterSpacing_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetLetterSpacing() // Should return zero value + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") }) - t.Run("GetHorizontalScale", func(t *testing.T) { + t.Run("GetFixed_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var expected float64 - obj.HorizontalScale = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + obj.Fixed = nil // Act & Assert - assert.Equal(t, expected, obj.GetHorizontalScale(), "getter should return the property value") + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") }) - t.Run("GetHorizontalScale_NilReceiver", func(t *testing.T) { + t.Run("GetFixed_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetHorizontalScale() // Should return zero value + _ = obj.GetFixed() // Should return zero value }) - t.Run("GetUnknown", func(t *testing.T) { + t.Run("GetThousands", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} var expected *string - obj.Unknown = expected + obj.Thousands = expected // Act & Assert - assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") }) - t.Run("GetUnknown_NilValue", func(t *testing.T) { + t.Run("GetThousands_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - obj.Unknown = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + obj.Thousands = nil // Act & Assert - assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") }) - t.Run("GetUnknown_NilReceiver", func(t *testing.T) { + t.Run("GetThousands_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUnknown() // Should return zero value + _ = obj.GetThousands() // Should return zero value }) - t.Run("GetAlign", func(t *testing.T) { + t.Run("GetDecimal", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlign - obj.Align = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + var expected *string + obj.Decimal = expected // Act & Assert - assert.Equal(t, expected, obj.GetAlign(), "getter should return the property value") - }) - - t.Run("GetAlign_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAlign() // Should return zero value + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") }) - t.Run("GetDir", func(t *testing.T) { + t.Run("GetDecimal_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDir - obj.Dir = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + obj.Decimal = nil // Act & Assert - assert.Equal(t, expected, obj.GetDir(), "getter should return the property value") + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") }) - t.Run("GetDir_NilReceiver", func(t *testing.T) { + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDir() // Should return zero value + _ = obj.GetDecimal() // Should return zero value }) - t.Run("GetLineHeight", func(t *testing.T) { + t.Run("GetPrefixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var expected *float64 - obj.LineHeight = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + var expected *string + obj.PrefixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetLineHeight(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") }) - t.Run("GetLineHeight_NilValue", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - obj.LineHeight = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + obj.PrefixSpacing = nil // Act & Assert - assert.Nil(t, obj.GetLineHeight(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetLineHeight_NilReceiver", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLineHeight() // Should return zero value + _ = obj.GetPrefixSpacing() // Should return zero value }) - t.Run("GetMargins", func(t *testing.T) { + t.Run("GetSuffixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins - obj.Margins = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + var expected *string + obj.SuffixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetMargins(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") }) - t.Run("GetMargins_NilValue", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - obj.Margins = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + obj.SuffixSpacing = nil // Act & Assert - assert.Nil(t, obj.GetMargins(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetMargins_NilReceiver", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetMargins() // Should return zero value + _ = obj.GetSuffixSpacing() // Should return zero value }) - t.Run("GetTextIndent", func(t *testing.T) { + t.Run("GetLabelPosition", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var expected *float64 - obj.TextIndent = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemLabelPosition + obj.LabelPosition = expected // Act & Assert - assert.Equal(t, expected, obj.GetTextIndent(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") }) - t.Run("GetTextIndent_NilValue", func(t *testing.T) { + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - obj.TextIndent = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + obj.LabelPosition = nil // Act & Assert - assert.Nil(t, obj.GetTextIndent(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") }) - t.Run("GetTextIndent_NilReceiver", func(t *testing.T) { + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTextIndent() // Should return zero value + _ = obj.GetLabelPosition() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody(t *testing.T) { - t.Run("SetFamily_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var fernTestValueFamily string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValueUnit string // Act - obj.SetFamily(fernTestValueFamily) + obj.SetUnit(fernTestValueUnit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -130225,14 +168947,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWeight_MarksExplicit", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var fernTestValueWeight int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValueConversion *float64 // Act - obj.SetWeight(fernTestValueWeight) + obj.SetConversion(fernTestValueConversion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -130256,14 +168978,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetItalic_MarksExplicit", func(t *testing.T) { + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var fernTestValueItalic bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFraction // Act - obj.SetItalic(fernTestValueItalic) + obj.SetFraction(fernTestValueFraction) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -130287,14 +169009,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetSize_MarksExplicit", func(t *testing.T) { + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var fernTestValueSize float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValuePrecision *int // Act - obj.SetSize(fernTestValueSize) + obj.SetPrecision(fernTestValuePrecision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -130318,14 +169040,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetColor_MarksExplicit", func(t *testing.T) { + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var fernTestValueColor string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValueFixed *bool // Act - obj.SetColor(fernTestValueColor) + obj.SetFixed(fernTestValueFixed) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -130349,14 +169071,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDecoration_MarksExplicit", func(t *testing.T) { + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var fernTestValueDecoration []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDecorationItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValueThousands *string // Act - obj.SetDecoration(fernTestValueDecoration) + obj.SetThousands(fernTestValueThousands) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -130380,14 +169102,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetScript_MarksExplicit", func(t *testing.T) { + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var fernTestValueScript DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyScript + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValueDecimal *string // Act - obj.SetScript(fernTestValueScript) + obj.SetDecimal(fernTestValueDecimal) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -130411,14 +169133,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLetterSpacing_MarksExplicit", func(t *testing.T) { + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var fernTestValueLetterSpacing float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValuePrefixSpacing *string // Act - obj.SetLetterSpacing(fernTestValueLetterSpacing) + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -130442,14 +169164,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetHorizontalScale_MarksExplicit", func(t *testing.T) { + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var fernTestValueHorizontalScale float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValueSuffixSpacing *string // Act - obj.SetHorizontalScale(fernTestValueHorizontalScale) + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -130473,14 +169195,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUnknown_MarksExplicit", func(t *testing.T) { + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var fernTestValueUnknown *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemLabelPosition // Act - obj.SetUnknown(fernTestValueUnknown) + obj.SetLabelPosition(fernTestValueLabelPosition) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -130504,14 +169226,423 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAlign_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var fernTestValueAlign DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyAlign + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + var expected string + obj.Unit = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") + }) + + t.Run("GetUnit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnit() // Should return zero value + }) + + t.Run("GetConversion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + var expected *float64 + obj.Conversion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") + }) + + t.Run("GetConversion_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + obj.Conversion = nil + + // Act & Assert + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") + }) + + t.Run("GetConversion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetConversion() // Should return zero value + }) + + t.Run("GetFraction", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFraction + obj.Fraction = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") + }) + + t.Run("GetFraction_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + obj.Fraction = nil + + // Act & Assert + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") + }) + + t.Run("GetFraction_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFraction() // Should return zero value + }) + + t.Run("GetPrecision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + var expected *int + obj.Precision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") + }) + + t.Run("GetPrecision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + obj.Precision = nil + + // Act & Assert + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") + }) + + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrecision() // Should return zero value + }) + + t.Run("GetFixed", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + var expected *bool + obj.Fixed = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") + }) + + t.Run("GetFixed_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + obj.Fixed = nil + + // Act & Assert + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") + }) + + t.Run("GetFixed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFixed() // Should return zero value + }) + + t.Run("GetThousands", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + var expected *string + obj.Thousands = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") + }) + + t.Run("GetThousands_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + obj.Thousands = nil + + // Act & Assert + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") + }) + + t.Run("GetThousands_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetThousands() // Should return zero value + }) + + t.Run("GetDecimal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + var expected *string + obj.Decimal = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") + }) + + t.Run("GetDecimal_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + obj.Decimal = nil + + // Act & Assert + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") + }) + + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDecimal() // Should return zero value + }) + + t.Run("GetPrefixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + var expected *string + obj.PrefixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") + }) + + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + obj.PrefixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrefixSpacing() // Should return zero value + }) + + t.Run("GetSuffixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + var expected *string + obj.SuffixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") + }) + + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + obj.SuffixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSuffixSpacing() // Should return zero value + }) + + t.Run("GetLabelPosition", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemLabelPosition + obj.LabelPosition = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") + }) + + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + obj.LabelPosition = nil + + // Act & Assert + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") + }) + + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLabelPosition() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + var fernTestValueUnit string // Act - obj.SetAlign(fernTestValueAlign) + obj.SetUnit(fernTestValueUnit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -130535,14 +169666,45 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDir_MarksExplicit", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var fernTestValueDir DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyDir + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + var fernTestValueConversion *float64 + + // Act + obj.SetConversion(fernTestValueConversion) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFraction // Act - obj.SetDir(fernTestValueDir) + obj.SetFraction(fernTestValueFraction) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -130566,14 +169728,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLineHeight_MarksExplicit", func(t *testing.T) { + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var fernTestValueLineHeight *float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + var fernTestValuePrecision *int // Act - obj.SetLineHeight(fernTestValueLineHeight) + obj.SetPrecision(fernTestValuePrecision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -130597,14 +169759,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetMargins_MarksExplicit", func(t *testing.T) { + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var fernTestValueMargins *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + var fernTestValueFixed *bool // Act - obj.SetMargins(fernTestValueMargins) + obj.SetFixed(fernTestValueFixed) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -130628,14 +169790,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTextIndent_MarksExplicit", func(t *testing.T) { + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBody{} - var fernTestValueTextIndent *float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + var fernTestValueThousands *string // Act - obj.SetTextIndent(fernTestValueTextIndent) + obj.SetThousands(fernTestValueThousands) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -130659,147 +169821,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins(t *testing.T) { - t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins{} - var fernTestValueTop float64 - obj.SetTop(fernTestValueTop) - assert.Equal(t, fernTestValueTop, obj.Top) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins{} - var fernTestValueBottom float64 - obj.SetBottom(fernTestValueBottom) - assert.Equal(t, fernTestValueBottom, obj.Bottom) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins{} - var fernTestValueLeft float64 - obj.SetLeft(fernTestValueLeft) - assert.Equal(t, fernTestValueLeft, obj.Left) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins{} - var fernTestValueRight float64 - obj.SetRight(fernTestValueRight) - assert.Equal(t, fernTestValueRight, obj.Right) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins(t *testing.T) { - t.Run("GetTop", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins{} - var expected float64 - obj.Top = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") - }) - - t.Run("GetTop_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetTop() // Should return zero value - }) - - t.Run("GetBottom", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins{} - var expected float64 - obj.Bottom = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") - }) - - t.Run("GetBottom_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetBottom() // Should return zero value - }) - - t.Run("GetLeft", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins{} - var expected float64 - obj.Left = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") - }) - - t.Run("GetLeft_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetLeft() // Should return zero value - }) - - t.Run("GetRight", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins{} - var expected float64 - obj.Right = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") - }) - - t.Run("GetRight_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRight() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins(t *testing.T) { - t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins{} - var fernTestValueTop float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + var fernTestValueDecimal *string // Act - obj.SetTop(fernTestValueTop) + obj.SetDecimal(fernTestValueDecimal) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -130823,14 +169852,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins{} - var fernTestValueBottom float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + var fernTestValuePrefixSpacing *string // Act - obj.SetBottom(fernTestValueBottom) + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -130854,14 +169883,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins{} - var fernTestValueLeft float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + var fernTestValueSuffixSpacing *string // Act - obj.SetLeft(fernTestValueLeft) + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -130885,14 +169914,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRight_MarksExplicit", func(t *testing.T) { + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextBodyMargins{} - var fernTestValueRight float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemLabelPosition // Act - obj.SetRight(fernTestValueRight) + obj.SetLabelPosition(fernTestValueLabelPosition) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -130918,308 +169947,421 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem(t *testing.T) { - t.Run("SetAlign", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} - var fernTestValueAlign *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlign - obj.SetAlign(fernTestValueAlign) - assert.Equal(t, fernTestValueAlign, obj.Align) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetDir", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} - var fernTestValueDir *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDir - obj.SetDir(fernTestValueDir) - assert.Equal(t, fernTestValueDir, obj.Dir) + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetLineHeight", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} - var fernTestValueLineHeight *float64 - obj.SetLineHeight(fernTestValueLineHeight) - assert.Equal(t, fernTestValueLineHeight, obj.LineHeight) + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMargins", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} - var fernTestValueMargins *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins - obj.SetMargins(fernTestValueMargins) - assert.Equal(t, fernTestValueMargins, obj.Margins) + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTextIndent", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} - var fernTestValueTextIndent *float64 - obj.SetTextIndent(fernTestValueTextIndent) - assert.Equal(t, fernTestValueTextIndent, obj.TextIndent) + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetUnknown", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} - var fernTestValueUnknown *string - obj.SetUnknown(fernTestValueUnknown) - assert.Equal(t, fernTestValueUnknown, obj.Unknown) + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRuns", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} - var fernTestValueRuns []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem - obj.SetRuns(fernTestValueRuns) - assert.Equal(t, fernTestValueRuns, obj.Runs) + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem(t *testing.T) { - t.Run("GetAlign", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlign - obj.Align = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + var expected string + obj.Unit = expected // Act & Assert - assert.Equal(t, expected, obj.GetAlign(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") }) - t.Run("GetAlign_NilValue", func(t *testing.T) { + t.Run("GetUnit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnit() // Should return zero value + }) + + t.Run("GetConversion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} - obj.Align = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + var expected *float64 + obj.Conversion = expected // Act & Assert - assert.Nil(t, obj.GetAlign(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") }) - t.Run("GetAlign_NilReceiver", func(t *testing.T) { + t.Run("GetConversion_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + obj.Conversion = nil + + // Act & Assert + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") + }) + + t.Run("GetConversion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAlign() // Should return zero value + _ = obj.GetConversion() // Should return zero value }) - t.Run("GetDir", func(t *testing.T) { + t.Run("GetFraction", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDir - obj.Dir = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFraction + obj.Fraction = expected // Act & Assert - assert.Equal(t, expected, obj.GetDir(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") }) - t.Run("GetDir_NilValue", func(t *testing.T) { + t.Run("GetFraction_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} - obj.Dir = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + obj.Fraction = nil // Act & Assert - assert.Nil(t, obj.GetDir(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") }) - t.Run("GetDir_NilReceiver", func(t *testing.T) { + t.Run("GetFraction_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDir() // Should return zero value + _ = obj.GetFraction() // Should return zero value }) - t.Run("GetLineHeight", func(t *testing.T) { + t.Run("GetPrecision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} - var expected *float64 - obj.LineHeight = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + var expected *int + obj.Precision = expected // Act & Assert - assert.Equal(t, expected, obj.GetLineHeight(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") }) - t.Run("GetLineHeight_NilValue", func(t *testing.T) { + t.Run("GetPrecision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} - obj.LineHeight = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + obj.Precision = nil // Act & Assert - assert.Nil(t, obj.GetLineHeight(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") }) - t.Run("GetLineHeight_NilReceiver", func(t *testing.T) { + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLineHeight() // Should return zero value + _ = obj.GetPrecision() // Should return zero value }) - t.Run("GetMargins", func(t *testing.T) { + t.Run("GetFixed", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins - obj.Margins = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + var expected *bool + obj.Fixed = expected // Act & Assert - assert.Equal(t, expected, obj.GetMargins(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") }) - t.Run("GetMargins_NilValue", func(t *testing.T) { + t.Run("GetFixed_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} - obj.Margins = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + obj.Fixed = nil // Act & Assert - assert.Nil(t, obj.GetMargins(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") }) - t.Run("GetMargins_NilReceiver", func(t *testing.T) { + t.Run("GetFixed_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetMargins() // Should return zero value + _ = obj.GetFixed() // Should return zero value }) - t.Run("GetTextIndent", func(t *testing.T) { + t.Run("GetThousands", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} - var expected *float64 - obj.TextIndent = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + var expected *string + obj.Thousands = expected // Act & Assert - assert.Equal(t, expected, obj.GetTextIndent(), "getter should return the property value") + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") }) - t.Run("GetTextIndent_NilValue", func(t *testing.T) { + t.Run("GetThousands_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} - obj.TextIndent = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + obj.Thousands = nil // Act & Assert - assert.Nil(t, obj.GetTextIndent(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") }) - t.Run("GetTextIndent_NilReceiver", func(t *testing.T) { + t.Run("GetThousands_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTextIndent() // Should return zero value + _ = obj.GetThousands() // Should return zero value }) - t.Run("GetUnknown", func(t *testing.T) { + t.Run("GetDecimal", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} var expected *string - obj.Unknown = expected + obj.Decimal = expected // Act & Assert - assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") }) - t.Run("GetUnknown_NilValue", func(t *testing.T) { + t.Run("GetDecimal_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} - obj.Unknown = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + obj.Decimal = nil // Act & Assert - assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") }) - t.Run("GetUnknown_NilReceiver", func(t *testing.T) { + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUnknown() // Should return zero value + _ = obj.GetDecimal() // Should return zero value }) - t.Run("GetRuns", func(t *testing.T) { + t.Run("GetPrefixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} - var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem - obj.Runs = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + var expected *string + obj.PrefixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetRuns(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") }) - t.Run("GetRuns_NilValue", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} - obj.Runs = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + obj.PrefixSpacing = nil // Act & Assert - assert.Nil(t, obj.GetRuns(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetRuns_NilReceiver", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRuns() // Should return zero value + _ = obj.GetPrefixSpacing() // Should return zero value + }) + + t.Run("GetSuffixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + var expected *string + obj.SuffixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") + }) + + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + obj.SuffixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSuffixSpacing() // Should return zero value + }) + + t.Run("GetLabelPosition", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemLabelPosition + obj.LabelPosition = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") + }) + + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + obj.LabelPosition = nil + + // Act & Assert + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") + }) + + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLabelPosition() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem(t *testing.T) { - t.Run("SetAlign_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} - var fernTestValueAlign *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemAlign + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + var fernTestValueUnit string // Act - obj.SetAlign(fernTestValueAlign) + obj.SetUnit(fernTestValueUnit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -131243,14 +170385,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDir_MarksExplicit", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} - var fernTestValueDir *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemDir + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + var fernTestValueConversion *float64 // Act - obj.SetDir(fernTestValueDir) + obj.SetConversion(fernTestValueConversion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -131274,14 +170416,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLineHeight_MarksExplicit", func(t *testing.T) { + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} - var fernTestValueLineHeight *float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFraction // Act - obj.SetLineHeight(fernTestValueLineHeight) + obj.SetFraction(fernTestValueFraction) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -131305,14 +170447,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetMargins_MarksExplicit", func(t *testing.T) { + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} - var fernTestValueMargins *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + var fernTestValuePrecision *int // Act - obj.SetMargins(fernTestValueMargins) + obj.SetPrecision(fernTestValuePrecision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -131336,14 +170478,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTextIndent_MarksExplicit", func(t *testing.T) { + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} - var fernTestValueTextIndent *float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + var fernTestValueFixed *bool // Act - obj.SetTextIndent(fernTestValueTextIndent) + obj.SetFixed(fernTestValueFixed) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -131367,14 +170509,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUnknown_MarksExplicit", func(t *testing.T) { + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} - var fernTestValueUnknown *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + var fernTestValueThousands *string // Act - obj.SetUnknown(fernTestValueUnknown) + obj.SetThousands(fernTestValueThousands) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -131398,14 +170540,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRuns_MarksExplicit", func(t *testing.T) { + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItem{} - var fernTestValueRuns []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + var fernTestValueDecimal *string // Act - obj.SetRuns(fernTestValueRuns) + obj.SetDecimal(fernTestValueDecimal) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -131429,71 +170571,164 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + var fernTestValuePrefixSpacing *string -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins(t *testing.T) { - t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins{} - var fernTestValueTop float64 - obj.SetTop(fernTestValueTop) - assert.Equal(t, fernTestValueTop, obj.Top) - assert.NotNil(t, obj.explicitFields) + // Act + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins{} - var fernTestValueBottom float64 - obj.SetBottom(fernTestValueBottom) - assert.Equal(t, fernTestValueBottom, obj.Bottom) - assert.NotNil(t, obj.explicitFields) + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + var fernTestValueSuffixSpacing *string + + // Act + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemLabelPosition + + // Act + obj.SetLabelPosition(fernTestValueLabelPosition) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect(t *testing.T) { t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect{} var fernTestValueLeft float64 obj.SetLeft(fernTestValueLeft) assert.Equal(t, fernTestValueLeft, obj.Left) assert.NotNil(t, obj.explicitFields) }) + t.Run("SetBottom", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect{} + var fernTestValueBottom float64 + obj.SetBottom(fernTestValueBottom) + assert.Equal(t, fernTestValueBottom, obj.Bottom) + assert.NotNil(t, obj.explicitFields) + }) + t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect{} var fernTestValueRight float64 obj.SetRight(fernTestValueRight) assert.Equal(t, fernTestValueRight, obj.Right) assert.NotNil(t, obj.explicitFields) }) + t.Run("SetTop", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) + assert.NotNil(t, obj.explicitFields) + }) + } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins(t *testing.T) { - t.Run("GetTop", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect{} var expected float64 - obj.Top = expected + obj.Left = expected // Act & Assert - assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") }) - t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTop() // Should return zero value + _ = obj.GetLeft() // Should return zero value }) t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect{} var expected float64 obj.Bottom = expected @@ -131503,7 +170738,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -131513,63 +170748,63 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeText _ = obj.GetBottom() // Should return zero value }) - t.Run("GetLeft", func(t *testing.T) { + t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect{} var expected float64 - obj.Left = expected + obj.Right = expected // Act & Assert - assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") }) - t.Run("GetLeft_NilReceiver", func(t *testing.T) { + t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLeft() // Should return zero value + _ = obj.GetRight() // Should return zero value }) - t.Run("GetRight", func(t *testing.T) { + t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect{} var expected float64 - obj.Right = expected + obj.Top = expected // Act & Assert - assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") }) - t.Run("GetRight_NilReceiver", func(t *testing.T) { + t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRight() // Should return zero value + _ = obj.GetTop() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins(t *testing.T) { - t.Run("SetTop_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins{} - var fernTestValueTop float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect{} + var fernTestValueLeft float64 // Act - obj.SetTop(fernTestValueTop) + obj.SetLeft(fernTestValueLeft) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -131596,7 +170831,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect{} var fernTestValueBottom float64 // Act @@ -131624,41 +170859,10 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLeft_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins{} - var fernTestValueLeft float64 - - // Act - obj.SetLeft(fernTestValueLeft) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemMargins{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect{} var fernTestValueRight float64 // Act @@ -131686,126 +170890,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem(t *testing.T) { - t.Run("SetText", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem{} - var fernTestValueText string - obj.SetText(fernTestValueText) - assert.Equal(t, fernTestValueText, obj.Text) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetStyle", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem{} - var fernTestValueStyle *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle - obj.SetStyle(fernTestValueStyle) - assert.Equal(t, fernTestValueStyle, obj.Style) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem(t *testing.T) { - t.Run("GetText", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem{} - var expected string - obj.Text = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetText(), "getter should return the property value") - }) - - t.Run("GetText_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetText() // Should return zero value - }) - - t.Run("GetStyle", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle - obj.Style = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetStyle(), "getter should return the property value") - }) - - t.Run("GetStyle_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem{} - obj.Style = nil - - // Act & Assert - assert.Nil(t, obj.GetStyle(), "getter should return nil when property is nil") - }) - - t.Run("GetStyle_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetStyle() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem(t *testing.T) { - t.Run("SetText_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem{} - var fernTestValueText string - - // Act - obj.SetText(fernTestValueText) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetStyle_MarksExplicit", func(t *testing.T) { + t.Run("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItem{} - var fernTestValueStyle *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect{} + var fernTestValueTop float64 // Act - obj.SetStyle(fernTestValueStyle) + obj.SetTop(fernTestValueTop) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -131831,431 +170923,249 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle(t *testing.T) { - t.Run("SetFamily", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - var fernTestValueFamily *string - obj.SetFamily(fernTestValueFamily) - assert.Equal(t, fernTestValueFamily, obj.Family) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetWeight", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - var fernTestValueWeight *int - obj.SetWeight(fernTestValueWeight) - assert.Equal(t, fernTestValueWeight, obj.Weight) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetItalic", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - var fernTestValueItalic *bool - obj.SetItalic(fernTestValueItalic) - assert.Equal(t, fernTestValueItalic, obj.Italic) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetSize", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - var fernTestValueSize *float64 - obj.SetSize(fernTestValueSize) - assert.Equal(t, fernTestValueSize, obj.Size) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetColor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - var fernTestValueColor *string - obj.SetColor(fernTestValueColor) - assert.Equal(t, fernTestValueColor, obj.Color) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetDecoration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - var fernTestValueDecoration []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem - obj.SetDecoration(fernTestValueDecoration) - assert.Equal(t, fernTestValueDecoration, obj.Decoration) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetScript", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - var fernTestValueScript *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScript - obj.SetScript(fernTestValueScript) - assert.Equal(t, fernTestValueScript, obj.Script) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetLetterSpacing", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - var fernTestValueLetterSpacing *float64 - obj.SetLetterSpacing(fernTestValueLetterSpacing) - assert.Equal(t, fernTestValueLetterSpacing, obj.LetterSpacing) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetHorizontalScale", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - var fernTestValueHorizontalScale *float64 - obj.SetHorizontalScale(fernTestValueHorizontalScale) - assert.Equal(t, fernTestValueHorizontalScale, obj.HorizontalScale) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetUnknown", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - var fernTestValueUnknown *string - obj.SetUnknown(fernTestValueUnknown) - assert.Equal(t, fernTestValueUnknown, obj.Unknown) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle(t *testing.T) { - t.Run("GetFamily", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - var expected *string - obj.Family = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetFamily(), "getter should return the property value") - }) - - t.Run("GetFamily_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - obj.Family = nil - - // Act & Assert - assert.Nil(t, obj.GetFamily(), "getter should return nil when property is nil") - }) - - t.Run("GetFamily_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetFamily() // Should return zero value - }) - - t.Run("GetWeight", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - var expected *int - obj.Weight = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetWeight(), "getter should return the property value") - }) - - t.Run("GetWeight_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - obj.Weight = nil - - // Act & Assert - assert.Nil(t, obj.GetWeight(), "getter should return nil when property is nil") - }) - - t.Run("GetWeight_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetWeight() // Should return zero value - }) - - t.Run("GetItalic", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - var expected *bool - obj.Italic = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetItalic(), "getter should return the property value") - }) - - t.Run("GetItalic_NilValue", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - obj.Italic = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef{} + var expected string + obj.Kind = expected // Act & Assert - assert.Nil(t, obj.GetItalic(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") }) - t.Run("GetItalic_NilReceiver", func(t *testing.T) { + t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetItalic() // Should return zero value + _ = obj.GetKind() // Should return zero value }) - t.Run("GetSize", func(t *testing.T) { + t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - var expected *float64 - obj.Size = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber + obj.ObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetSize(), "getter should return the property value") + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") }) - t.Run("GetSize_NilValue", func(t *testing.T) { + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - obj.Size = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef{} + obj.ObjectNumber = nil // Act & Assert - assert.Nil(t, obj.GetSize(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") }) - t.Run("GetSize_NilReceiver", func(t *testing.T) { + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetSize() // Should return zero value + _ = obj.GetObjectNumber() // Should return zero value }) - t.Run("GetColor", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - var expected *string - obj.Color = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm + obj.Nm = expected // Act & Assert - assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("GetColor_NilValue", func(t *testing.T) { + t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - obj.Color = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef{} + obj.Nm = nil // Act & Assert - assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") }) - t.Run("GetColor_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetColor() // Should return zero value + _ = obj.GetNm() // Should return zero value }) - t.Run("GetDecoration", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - var expected []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem - obj.Decoration = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex + obj.Index = expected // Act & Assert - assert.Equal(t, expected, obj.GetDecoration(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetDecoration_NilValue", func(t *testing.T) { + t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - obj.Decoration = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef{} + obj.Index = nil // Act & Assert - assert.Nil(t, obj.GetDecoration(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") }) - t.Run("GetDecoration_NilReceiver", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDecoration() // Should return zero value + _ = obj.GetIndex() // Should return zero value }) - t.Run("GetScript", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScript - obj.Script = expected +} - // Act & Assert - assert.Equal(t, expected, obj.GetScript(), "getter should return the property value") +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetScript_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - obj.Script = nil - - // Act & Assert - assert.Nil(t, obj.GetScript(), "getter should return nil when property is nil") + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetScript_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetScript() // Should return zero value + t.Run("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetLetterSpacing", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - var expected *float64 - obj.LetterSpacing = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetLetterSpacing(), "getter should return the property value") - }) +} - t.Run("GetLetterSpacing_NilValue", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - obj.LetterSpacing = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Nil(t, obj.GetLetterSpacing(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetLetterSpacing_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLetterSpacing() // Should return zero value - }) - - t.Run("GetHorizontalScale", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - var expected *float64 - obj.HorizontalScale = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetHorizontalScale(), "getter should return the property value") + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetHorizontalScale_NilValue", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - obj.HorizontalScale = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex{} + var expected int + obj.Index = expected // Act & Assert - assert.Nil(t, obj.GetHorizontalScale(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetHorizontalScale_NilReceiver", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetHorizontalScale() // Should return zero value + _ = obj.GetIndex() // Should return zero value }) - t.Run("GetUnknown", func(t *testing.T) { + t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - var expected *string - obj.Unknown = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision + obj.Revision = expected // Act & Assert - assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") }) - t.Run("GetUnknown_NilValue", func(t *testing.T) { + t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - obj.Unknown = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex{} + obj.Revision = nil // Act & Assert - assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") }) - t.Run("GetUnknown_NilReceiver", func(t *testing.T) { + t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUnknown() // Should return zero value + _ = obj.GetRevision() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle(t *testing.T) { - t.Run("SetFamily_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - var fernTestValueFamily *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex{} + var fernTestValuePageObjectNumber int // Act - obj.SetFamily(fernTestValueFamily) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -132279,14 +171189,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWeight_MarksExplicit", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - var fernTestValueWeight *int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex{} + var fernTestValueIndex int // Act - obj.SetWeight(fernTestValueWeight) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -132310,14 +171220,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetItalic_MarksExplicit", func(t *testing.T) { + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - var fernTestValueItalic *bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision // Act - obj.SetItalic(fernTestValueItalic) + obj.SetRevision(fernTestValueRevision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -132341,138 +171251,116 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetSize_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - var fernTestValueSize *float64 - - // Act - obj.SetSize(fernTestValueSize) +} - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision{} + var fernTestValueDocSessionID string + obj.SetDocSessionID(fernTestValueDocSessionID) + assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) + assert.NotNil(t, obj.explicitFields) + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("SetGeneration", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) }) - t.Run("SetColor_MarksExplicit", func(t *testing.T) { +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - var fernTestValueColor *string - - // Act - obj.SetColor(fernTestValueColor) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision{} + var expected string + obj.DocSessionID = expected - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDocSessionID() // Should return zero value }) - t.Run("SetDecoration_MarksExplicit", func(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - var fernTestValueDecoration []DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleDecorationItem - - // Act - obj.SetDecoration(fernTestValueDecoration) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision{} + var expected int + obj.PageObjectNumber = expected - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("SetScript_MarksExplicit", func(t *testing.T) { + t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - var fernTestValueScript *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyleScript - - // Act - obj.SetScript(fernTestValueScript) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision{} + var expected int + obj.Generation = expected - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGeneration() // Should return zero value }) - t.Run("SetLetterSpacing_MarksExplicit", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - var fernTestValueLetterSpacing *float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision{} + var fernTestValueDocSessionID string // Act - obj.SetLetterSpacing(fernTestValueLetterSpacing) + obj.SetDocSessionID(fernTestValueDocSessionID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -132496,14 +171384,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetHorizontalScale_MarksExplicit", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - var fernTestValueHorizontalScale *float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision{} + var fernTestValuePageObjectNumber int // Act - obj.SetHorizontalScale(fernTestValueHorizontalScale) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -132527,14 +171415,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUnknown_MarksExplicit", func(t *testing.T) { + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextRichTextParagraphsItemRunsItemStyle{} - var fernTestValueUnknown *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision{} + var fernTestValueGeneration int // Act - obj.SetUnknown(fernTestValueUnknown) + obj.SetGeneration(fernTestValueGeneration) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -132560,145 +171448,83 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect(t *testing.T) { - t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect{} - var fernTestValueLeft float64 - obj.SetLeft(fernTestValueLeft) - assert.Equal(t, fernTestValueLeft, obj.Left) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect{} - var fernTestValueBottom float64 - obj.SetBottom(fernTestValueBottom) - assert.Equal(t, fernTestValueBottom, obj.Bottom) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect{} - var fernTestValueRight float64 - obj.SetRight(fernTestValueRight) - assert.Equal(t, fernTestValueRight, obj.Right) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect{} - var fernTestValueTop float64 - obj.SetTop(fernTestValueTop) - assert.Equal(t, fernTestValueTop, obj.Top) + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect(t *testing.T) { - t.Run("GetLeft", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect{} - var expected float64 - obj.Left = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") - }) - - t.Run("GetLeft_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetLeft() // Should return zero value - }) - - t.Run("GetBottom", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect{} - var expected float64 - obj.Bottom = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") - }) - - t.Run("GetBottom_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetBottom() // Should return zero value - }) - - t.Run("GetRight", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect{} - var expected float64 - obj.Right = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetRight_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRight() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetTop", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect{} - var expected float64 - obj.Top = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm{} + var expected string + obj.Nm = expected // Act & Assert - assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTop() // Should return zero value + _ = obj.GetNm() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect(t *testing.T) { - t.Run("SetLeft_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect{} - var fernTestValueLeft float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm{} + var fernTestValuePageObjectNumber int // Act - obj.SetLeft(fernTestValueLeft) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -132722,14 +171548,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect{} - var fernTestValueBottom float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm{} + var fernTestValueNm string // Act - obj.SetBottom(fernTestValueBottom) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -132753,14 +171579,85 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRight_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect{} - var fernTestValueRight float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + }) + + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAnnotObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber{} + var fernTestValuePageObjectNumber int // Act - obj.SetRight(fernTestValueRight) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -132784,14 +171681,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemFreeTextUnrotatedRect{} - var fernTestValueTop float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber{} + var fernTestValueAnnotObjectNumber int // Act - obj.SetTop(fernTestValueTop) + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -132817,17 +171714,17 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t *testing.T) { t.Run("SetRef", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef obj.SetRef(fernTestValueRef) assert.Equal(t, fernTestValueRef, obj.Ref) assert.NotNil(t, obj.explicitFields) }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -132835,7 +171732,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -132843,15 +171740,15 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh }) t.Run("SetIdentityQuality", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQuality obj.SetIdentityQuality(fernTestValueIdentityQuality) assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) assert.NotNil(t, obj.explicitFields) }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} var fernTestValueNm *string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -132859,23 +171756,23 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh }) t.Run("SetFlags", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags obj.SetFlags(fernTestValueFlags) assert.Equal(t, fernTestValueFlags, obj.Flags) assert.NotNil(t, obj.explicitFields) }) t.Run("SetRect", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect obj.SetRect(fernTestValueRect) assert.Equal(t, fernTestValueRect, obj.Rect) assert.NotNil(t, obj.explicitFields) }) t.Run("SetContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} var fernTestValueContents *string obj.SetContents(fernTestValueContents) assert.Equal(t, fernTestValueContents, obj.Contents) @@ -132883,7 +171780,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh }) t.Run("SetSubject", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} var fernTestValueSubject *string obj.SetSubject(fernTestValueSubject) assert.Equal(t, fernTestValueSubject, obj.Subject) @@ -132891,7 +171788,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh }) t.Run("SetAuthor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} var fernTestValueAuthor *string obj.SetAuthor(fernTestValueAuthor) assert.Equal(t, fernTestValueAuthor, obj.Author) @@ -132899,7 +171796,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh }) t.Run("SetCreated", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} var fernTestValueCreated *time.Time obj.SetCreated(fernTestValueCreated) assert.Equal(t, fernTestValueCreated, obj.Created) @@ -132907,7 +171804,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh }) t.Run("SetModified", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} var fernTestValueModified *time.Time obj.SetModified(fernTestValueModified) assert.Equal(t, fernTestValueModified, obj.Modified) @@ -132915,31 +171812,31 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh }) t.Run("SetBlendMode", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode obj.SetBlendMode(fernTestValueBlendMode) assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) assert.NotNil(t, obj.explicitFields) }) t.Run("SetInReplyTo", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo obj.SetInReplyTo(fernTestValueInReplyTo) assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) assert.NotNil(t, obj.explicitFields) }) t.Run("SetReplyType", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyType obj.SetReplyType(fernTestValueReplyType) assert.Equal(t, fernTestValueReplyType, obj.ReplyType) assert.NotNil(t, obj.explicitFields) }) t.Run("SetUserID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} var fernTestValueUserID *string obj.SetUserID(fernTestValueUserID) assert.Equal(t, fernTestValueUserID, obj.UserID) @@ -132947,7 +171844,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh }) t.Run("SetGroupID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} var fernTestValueGroupID *string obj.SetGroupID(fernTestValueGroupID) assert.Equal(t, fernTestValueGroupID, obj.GroupID) @@ -132955,7 +171852,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh }) t.Run("SetCreatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} var fernTestValueCreatedBy *string obj.SetCreatedBy(fernTestValueCreatedBy) assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) @@ -132963,7 +171860,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh }) t.Run("SetUpdatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} var fernTestValueUpdatedBy *string obj.SetUpdatedBy(fernTestValueUpdatedBy) assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) @@ -132971,45 +171868,29 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh }) t.Run("SetActions", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} var fernTestValueActions *PdfAnnotationActions obj.SetActions(fernTestValueActions) assert.Equal(t, fernTestValueActions, obj.Actions) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetColor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor - obj.SetColor(fernTestValueColor) - assert.Equal(t, fernTestValueColor, obj.Color) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetOpacity", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var fernTestValueOpacity float64 - obj.SetOpacity(fernTestValueOpacity) - assert.Equal(t, fernTestValueOpacity, obj.Opacity) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetQuadPoints", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var fernTestValueQuadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem - obj.SetQuadPoints(fernTestValueQuadPoints) - assert.Equal(t, fernTestValueQuadPoints, obj.QuadPoints) + t.Run("SetTarget", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueTarget *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget + obj.SetTarget(fernTestValueTarget) + assert.Equal(t, fernTestValueTarget, obj.Target) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t *testing.T) { t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef obj.Ref = expected // Act & Assert @@ -133019,7 +171900,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetRef_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} obj.Ref = nil // Act & Assert @@ -133028,7 +171909,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetRef_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -133041,7 +171922,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} var expected int obj.PageObjectNumber = expected @@ -133051,7 +171932,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -133064,7 +171945,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} var expected int obj.Index = expected @@ -133074,7 +171955,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -133087,8 +171968,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetIdentityQuality", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQuality obj.IdentityQuality = expected // Act & Assert @@ -133097,7 +171978,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -133110,7 +171991,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} var expected *string obj.Nm = expected @@ -133121,7 +172002,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} obj.Nm = nil // Act & Assert @@ -133130,7 +172011,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -133143,8 +172024,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags obj.Flags = expected // Act & Assert @@ -133154,7 +172035,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} obj.Flags = nil // Act & Assert @@ -133163,7 +172044,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -133176,8 +172057,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetRect", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect obj.Rect = expected // Act & Assert @@ -133187,7 +172068,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetRect_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} obj.Rect = nil // Act & Assert @@ -133196,7 +172077,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetRect_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -133209,7 +172090,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} var expected *string obj.Contents = expected @@ -133220,7 +172101,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetContents_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} obj.Contents = nil // Act & Assert @@ -133229,7 +172110,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -133242,7 +172123,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetSubject", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} var expected *string obj.Subject = expected @@ -133253,7 +172134,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetSubject_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} obj.Subject = nil // Act & Assert @@ -133262,7 +172143,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetSubject_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -133275,7 +172156,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetAuthor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} var expected *string obj.Author = expected @@ -133286,7 +172167,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetAuthor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} obj.Author = nil // Act & Assert @@ -133295,7 +172176,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetAuthor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -133308,7 +172189,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetCreated", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} var expected *time.Time obj.Created = expected @@ -133319,7 +172200,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetCreated_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} obj.Created = nil // Act & Assert @@ -133328,7 +172209,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetCreated_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -133341,7 +172222,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetModified", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} var expected *time.Time obj.Modified = expected @@ -133352,7 +172233,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetModified_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} obj.Modified = nil // Act & Assert @@ -133361,7 +172242,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetModified_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -133374,8 +172255,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetBlendMode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode obj.BlendMode = expected // Act & Assert @@ -133384,7 +172265,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -133397,8 +172278,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetInReplyTo", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo obj.InReplyTo = expected // Act & Assert @@ -133408,7 +172289,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetInReplyTo_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} obj.InReplyTo = nil // Act & Assert @@ -133417,7 +172298,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -133430,8 +172311,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetReplyType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyType obj.ReplyType = expected // Act & Assert @@ -133441,7 +172322,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetReplyType_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} obj.ReplyType = nil // Act & Assert @@ -133450,7 +172331,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetReplyType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -133463,7 +172344,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetUserID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} var expected *string obj.UserID = expected @@ -133474,7 +172355,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetUserID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} obj.UserID = nil // Act & Assert @@ -133483,7 +172364,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetUserID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -133496,7 +172377,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetGroupID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} var expected *string obj.GroupID = expected @@ -133507,7 +172388,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetGroupID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} obj.GroupID = nil // Act & Assert @@ -133516,7 +172397,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetGroupID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -133529,7 +172410,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetCreatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} var expected *string obj.CreatedBy = expected @@ -133540,7 +172421,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetCreatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} obj.CreatedBy = nil // Act & Assert @@ -133549,7 +172430,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -133562,7 +172443,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetUpdatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} var expected *string obj.UpdatedBy = expected @@ -133573,7 +172454,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} obj.UpdatedBy = nil // Act & Assert @@ -133582,7 +172463,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -133595,7 +172476,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetActions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} var expected *PdfAnnotationActions obj.Actions = expected @@ -133606,7 +172487,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetActions_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} obj.Actions = nil // Act & Assert @@ -133615,7 +172496,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetActions_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -133625,103 +172506,47 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh _ = obj.GetActions() // Should return zero value }) - t.Run("GetColor", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor - obj.Color = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") - }) - - t.Run("GetColor_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - obj.Color = nil - - // Act & Assert - assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") - }) - - t.Run("GetColor_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetColor() // Should return zero value - }) - - t.Run("GetOpacity", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var expected float64 - obj.Opacity = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetOpacity(), "getter should return the property value") - }) - - t.Run("GetOpacity_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetOpacity() // Should return zero value - }) - - t.Run("GetQuadPoints", func(t *testing.T) { + t.Run("GetTarget", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem - obj.QuadPoints = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget + obj.Target = expected // Act & Assert - assert.Equal(t, expected, obj.GetQuadPoints(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTarget(), "getter should return the property value") }) - t.Run("GetQuadPoints_NilValue", func(t *testing.T) { + t.Run("GetTarget_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - obj.QuadPoints = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj.Target = nil // Act & Assert - assert.Nil(t, obj.GetQuadPoints(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetTarget(), "getter should return nil when property is nil") }) - t.Run("GetQuadPoints_NilReceiver", func(t *testing.T) { + t.Run("GetTarget_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetQuadPoints() // Should return zero value + _ = obj.GetTarget() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t *testing.T) { t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef // Act obj.SetRef(fernTestValueRef) @@ -133748,231 +172573,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var fernTestValuePageObjectNumber int - - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var fernTestValueIndex int - - // Act - obj.SetIndex(fernTestValueIndex) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightIdentityQuality - - // Act - obj.SetIdentityQuality(fernTestValueIdentityQuality) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetNm_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var fernTestValueNm *string - - // Act - obj.SetNm(fernTestValueNm) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetFlags_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags - - // Act - obj.SetFlags(fernTestValueFlags) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetRect_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect - - // Act - obj.SetRect(fernTestValueRect) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetContents_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var fernTestValueContents *string - - // Act - obj.SetContents(fernTestValueContents) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetSubject_MarksExplicit", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var fernTestValueSubject *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValuePageObjectNumber int // Act - obj.SetSubject(fernTestValueSubject) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -133996,14 +172604,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var fernTestValueAuthor *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueIndex int // Act - obj.SetAuthor(fernTestValueAuthor) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -134027,14 +172635,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreated_MarksExplicit", func(t *testing.T) { + t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var fernTestValueCreated *time.Time + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQuality // Act - obj.SetCreated(fernTestValueCreated) + obj.SetIdentityQuality(fernTestValueIdentityQuality) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -134058,14 +172666,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetModified_MarksExplicit", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var fernTestValueModified *time.Time + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueNm *string // Act - obj.SetModified(fernTestValueModified) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -134089,14 +172697,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { + t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags // Act - obj.SetBlendMode(fernTestValueBlendMode) + obj.SetFlags(fernTestValueFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -134120,14 +172728,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { + t.Run("SetRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect // Act - obj.SetInReplyTo(fernTestValueInReplyTo) + obj.SetRect(fernTestValueRect) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -134151,14 +172759,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { + t.Run("SetContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueContents *string // Act - obj.SetReplyType(fernTestValueReplyType) + obj.SetContents(fernTestValueContents) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -134182,14 +172790,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUserID_MarksExplicit", func(t *testing.T) { + t.Run("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var fernTestValueUserID *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueSubject *string // Act - obj.SetUserID(fernTestValueUserID) + obj.SetSubject(fernTestValueSubject) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -134213,14 +172821,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { + t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var fernTestValueGroupID *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueAuthor *string // Act - obj.SetGroupID(fernTestValueGroupID) + obj.SetAuthor(fernTestValueAuthor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -134244,14 +172852,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var fernTestValueCreatedBy *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueCreated *time.Time // Act - obj.SetCreatedBy(fernTestValueCreatedBy) + obj.SetCreated(fernTestValueCreated) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -134275,14 +172883,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var fernTestValueUpdatedBy *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueModified *time.Time // Act - obj.SetUpdatedBy(fernTestValueUpdatedBy) + obj.SetModified(fernTestValueModified) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -134306,14 +172914,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var fernTestValueActions *PdfAnnotationActions + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode // Act - obj.SetActions(fernTestValueActions) + obj.SetBlendMode(fernTestValueBlendMode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -134337,14 +172945,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetColor_MarksExplicit", func(t *testing.T) { + t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo // Act - obj.SetColor(fernTestValueColor) + obj.SetInReplyTo(fernTestValueInReplyTo) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -134368,14 +172976,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { + t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var fernTestValueOpacity float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyType // Act - obj.SetOpacity(fernTestValueOpacity) + obj.SetReplyType(fernTestValueReplyType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -134399,14 +173007,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetQuadPoints_MarksExplicit", func(t *testing.T) { + t.Run("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlight{} - var fernTestValueQuadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueUserID *string // Act - obj.SetQuadPoints(fernTestValueQuadPoints) + obj.SetUserID(fernTestValueUserID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -134430,116 +173038,76 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor(t *testing.T) { - t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor{} - var fernTestValueR int - obj.SetR(fernTestValueR) - assert.Equal(t, fernTestValueR, obj.R) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor{} - var fernTestValueG int - obj.SetG(fernTestValueG) - assert.Equal(t, fernTestValueG, obj.G) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor{} - var fernTestValueB int - obj.SetB(fernTestValueB) - assert.Equal(t, fernTestValueB, obj.B) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor(t *testing.T) { - t.Run("GetR", func(t *testing.T) { + t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor{} - var expected int - obj.R = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetR(), "getter should return the property value") - }) + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueGroupID *string - t.Run("GetR_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetR() // Should return zero value - }) + // Act + obj.SetGroupID(fernTestValueGroupID) - t.Run("GetG", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor{} - var expected int - obj.G = expected + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Equal(t, expected, obj.GetG(), "getter should return the property value") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetG_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetG() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetB", func(t *testing.T) { + t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor{} - var expected int - obj.B = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueCreatedBy *string - // Act & Assert - assert.Equal(t, expected, obj.GetB(), "getter should return the property value") - }) + // Act + obj.SetCreatedBy(fernTestValueCreatedBy) - t.Run("GetB_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetB() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") -} + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor(t *testing.T) { - t.Run("SetR_MarksExplicit", func(t *testing.T) { + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor{} - var fernTestValueR int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueUpdatedBy *string // Act - obj.SetR(fernTestValueR) + obj.SetUpdatedBy(fernTestValueUpdatedBy) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -134563,14 +173131,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Run("SetActions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor{} - var fernTestValueG int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueActions *PdfAnnotationActions // Act - obj.SetG(fernTestValueG) + obj.SetActions(fernTestValueActions) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -134594,14 +173162,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Run("SetTarget_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightColor{} - var fernTestValueB int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + var fernTestValueTarget *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget // Act - obj.SetB(fernTestValueB) + obj.SetTarget(fernTestValueTarget) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -134627,9 +173195,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags(t *testing.T) { t.Run("SetInvisible", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} var fernTestValueInvisible bool obj.SetInvisible(fernTestValueInvisible) assert.Equal(t, fernTestValueInvisible, obj.Invisible) @@ -134637,7 +173205,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh }) t.Run("SetHidden", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} var fernTestValueHidden bool obj.SetHidden(fernTestValueHidden) assert.Equal(t, fernTestValueHidden, obj.Hidden) @@ -134645,7 +173213,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh }) t.Run("SetPrint", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} var fernTestValuePrint bool obj.SetPrint(fernTestValuePrint) assert.Equal(t, fernTestValuePrint, obj.Print) @@ -134653,7 +173221,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh }) t.Run("SetNoZoom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} var fernTestValueNoZoom bool obj.SetNoZoom(fernTestValueNoZoom) assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) @@ -134661,7 +173229,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh }) t.Run("SetNoRotate", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} var fernTestValueNoRotate bool obj.SetNoRotate(fernTestValueNoRotate) assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) @@ -134669,7 +173237,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh }) t.Run("SetNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} var fernTestValueNoView bool obj.SetNoView(fernTestValueNoView) assert.Equal(t, fernTestValueNoView, obj.NoView) @@ -134677,7 +173245,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh }) t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} var fernTestValueReadOnly bool obj.SetReadOnly(fernTestValueReadOnly) assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) @@ -134685,7 +173253,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh }) t.Run("SetLocked", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} var fernTestValueLocked bool obj.SetLocked(fernTestValueLocked) assert.Equal(t, fernTestValueLocked, obj.Locked) @@ -134693,7 +173261,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh }) t.Run("SetToggleNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} var fernTestValueToggleNoView bool obj.SetToggleNoView(fernTestValueToggleNoView) assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) @@ -134701,7 +173269,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh }) t.Run("SetLockedContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} var fernTestValueLockedContents bool obj.SetLockedContents(fernTestValueLockedContents) assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) @@ -134710,11 +173278,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags(t *testing.T) { t.Run("GetInvisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} var expected bool obj.Invisible = expected @@ -134724,7 +173292,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetInvisible_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -134737,7 +173305,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetHidden", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} var expected bool obj.Hidden = expected @@ -134747,7 +173315,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetHidden_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -134760,7 +173328,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetPrint", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} var expected bool obj.Print = expected @@ -134770,7 +173338,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetPrint_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -134783,7 +173351,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetNoZoom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} var expected bool obj.NoZoom = expected @@ -134793,7 +173361,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -134806,7 +173374,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetNoRotate", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} var expected bool obj.NoRotate = expected @@ -134816,7 +173384,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -134829,7 +173397,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} var expected bool obj.NoView = expected @@ -134839,7 +173407,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -134852,7 +173420,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetReadOnly", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} var expected bool obj.ReadOnly = expected @@ -134862,7 +173430,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -134875,7 +173443,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetLocked", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} var expected bool obj.Locked = expected @@ -134885,7 +173453,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetLocked_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -134898,7 +173466,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetToggleNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} var expected bool obj.ToggleNoView = expected @@ -134908,7 +173476,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -134921,7 +173489,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetLockedContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} var expected bool obj.LockedContents = expected @@ -134931,7 +173499,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -134943,11 +173511,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags(t *testing.T) { t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} var fernTestValueInvisible bool // Act @@ -134978,7 +173546,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetHidden_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} var fernTestValueHidden bool // Act @@ -135009,7 +173577,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPrint_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} var fernTestValuePrint bool // Act @@ -135040,7 +173608,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} var fernTestValueNoZoom bool // Act @@ -135071,7 +173639,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} var fernTestValueNoRotate bool // Act @@ -135102,7 +173670,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} var fernTestValueNoView bool // Act @@ -135133,7 +173701,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} var fernTestValueReadOnly bool // Act @@ -135164,7 +173732,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetLocked_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} var fernTestValueLocked bool // Act @@ -135195,7 +173763,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} var fernTestValueToggleNoView bool // Act @@ -135226,7 +173794,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} var fernTestValueLockedContents bool // Act @@ -135256,11 +173824,11 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo{} var expected string obj.Kind = expected @@ -135270,7 +173838,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -135283,8 +173851,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -135294,7 +173862,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo{} obj.ObjectNumber = nil // Act & Assert @@ -135303,7 +173871,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -135316,8 +173884,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm obj.Nm = expected // Act & Assert @@ -135327,7 +173895,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo{} obj.Nm = nil // Act & Assert @@ -135336,7 +173904,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -135349,8 +173917,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex obj.Index = expected // Act & Assert @@ -135360,7 +173928,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo{} obj.Index = nil // Act & Assert @@ -135369,7 +173937,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -135381,9 +173949,9 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -135391,7 +173959,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -135399,8 +173967,8 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -135408,11 +173976,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex{} var expected int obj.PageObjectNumber = expected @@ -135422,7 +173990,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -135435,7 +174003,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex{} var expected int obj.Index = expected @@ -135445,7 +174013,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -135458,8 +174026,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision obj.Revision = expected // Act & Assert @@ -135469,7 +174037,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex{} obj.Revision = nil // Act & Assert @@ -135478,7 +174046,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -135490,11 +174058,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex{} var fernTestValuePageObjectNumber int // Act @@ -135525,7 +174093,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex{} var fernTestValueIndex int // Act @@ -135556,8 +174124,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -135586,9 +174154,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -135596,7 +174164,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -135604,7 +174172,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -135613,11 +174181,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision{} var expected string obj.DocSessionID = expected @@ -135627,7 +174195,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -135640,7 +174208,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -135650,7 +174218,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -135663,7 +174231,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision{} var expected int obj.Generation = expected @@ -135673,7 +174241,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -135685,11 +174253,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision{} var fernTestValueDocSessionID string // Act @@ -135706,854 +174274,25 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations var unmarshaled map[string]interface{} err = json.Unmarshal(bytes, &unmarshaled) require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision{} - var fernTestValuePageObjectNumber int - - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToIndexRevision{} - var fernTestValueGeneration int - - // Act - obj.SetGeneration(fernTestValueGeneration) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm{} - var fernTestValueNm string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm{} - var expected string - obj.Nm = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") - }) - - t.Run("GetNm_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNm() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm{} - var fernTestValuePageObjectNumber int - - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetNm_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToNm{} - var fernTestValueNm string - - // Act - obj.SetNm(fernTestValueNm) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetAnnotObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") - }) - - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAnnotObjectNumber() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber{} - var fernTestValuePageObjectNumber int - - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int - - // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem(t *testing.T) { - t.Run("SetP1", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} - var fernTestValueP1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1 - obj.SetP1(fernTestValueP1) - assert.Equal(t, fernTestValueP1, obj.P1) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetP2", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} - var fernTestValueP2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2 - obj.SetP2(fernTestValueP2) - assert.Equal(t, fernTestValueP2, obj.P2) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetP3", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} - var fernTestValueP3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3 - obj.SetP3(fernTestValueP3) - assert.Equal(t, fernTestValueP3, obj.P3) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetP4", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} - var fernTestValueP4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4 - obj.SetP4(fernTestValueP4) - assert.Equal(t, fernTestValueP4, obj.P4) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem(t *testing.T) { - t.Run("GetP1", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1 - obj.P1 = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetP1(), "getter should return the property value") - }) - - t.Run("GetP1_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} - obj.P1 = nil - - // Act & Assert - assert.Nil(t, obj.GetP1(), "getter should return nil when property is nil") - }) - - t.Run("GetP1_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetP1() // Should return zero value - }) - - t.Run("GetP2", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2 - obj.P2 = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetP2(), "getter should return the property value") - }) - - t.Run("GetP2_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} - obj.P2 = nil - - // Act & Assert - assert.Nil(t, obj.GetP2(), "getter should return nil when property is nil") - }) - - t.Run("GetP2_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetP2() // Should return zero value - }) - - t.Run("GetP3", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3 - obj.P3 = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetP3(), "getter should return the property value") - }) - - t.Run("GetP3_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} - obj.P3 = nil - - // Act & Assert - assert.Nil(t, obj.GetP3(), "getter should return nil when property is nil") - }) - - t.Run("GetP3_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetP3() // Should return zero value - }) - - t.Run("GetP4", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4 - obj.P4 = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetP4(), "getter should return the property value") - }) - - t.Run("GetP4_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} - obj.P4 = nil - - // Act & Assert - assert.Nil(t, obj.GetP4(), "getter should return nil when property is nil") - }) - - t.Run("GetP4_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetP4() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem(t *testing.T) { - t.Run("SetP1_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} - var fernTestValueP1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1 - - // Act - obj.SetP1(fernTestValueP1) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetP2_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} - var fernTestValueP2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2 - - // Act - obj.SetP2(fernTestValueP2) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetP3_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} - var fernTestValueP3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3 - - // Act - obj.SetP3(fernTestValueP3) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetP4_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItem{} - var fernTestValueP4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4 - - // Act - obj.SetP4(fernTestValueP4) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1(t *testing.T) { - t.Run("GetX", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1{} - var expected float64 - obj.X = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") - }) - - t.Run("GetX_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1 - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetX() // Should return zero value - }) - - t.Run("GetY", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1{} - var expected float64 - obj.Y = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") - }) - - t.Run("GetY_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1 - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetY() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1{} - var fernTestValueX float64 - - // Act - obj.SetX(fernTestValueX) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetY_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP1{} - var fernTestValueY float64 - - // Act - obj.SetY(fernTestValueY) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2(t *testing.T) { - t.Run("GetX", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2{} - var expected float64 - obj.X = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") - }) - - t.Run("GetX_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2 - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetX() // Should return zero value - }) - - t.Run("GetY", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2{} - var expected float64 - obj.Y = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") - }) + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetY_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2 - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetY() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2{} - var fernTestValueX float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int // Act - obj.SetX(fernTestValueX) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -136577,14 +174316,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP2{} - var fernTestValueY float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision{} + var fernTestValueGeneration int // Act - obj.SetY(fernTestValueY) + obj.SetGeneration(fernTestValueGeneration) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -136610,83 +174349,83 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3(t *testing.T) { - t.Run("GetX", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3{} - var expected float64 - obj.X = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetX() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetY", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3{} - var expected float64 - obj.Y = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm{} + var expected string + obj.Nm = expected // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetY() // Should return zero value + _ = obj.GetNm() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3{} - var fernTestValueX float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm{} + var fernTestValuePageObjectNumber int // Act - obj.SetX(fernTestValueX) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -136710,14 +174449,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP3{} - var fernTestValueY float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm{} + var fernTestValueNm string // Act - obj.SetY(fernTestValueY) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -136743,83 +174482,83 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4(t *testing.T) { - t.Run("GetX", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4{} - var expected float64 - obj.X = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetX() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetY", func(t *testing.T) { + t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4{} - var expected float64 - obj.Y = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") }) - t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetY() // Should return zero value + _ = obj.GetAnnotObjectNumber() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4{} - var fernTestValueX float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int // Act - obj.SetX(fernTestValueX) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -136843,14 +174582,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightQuadPointsItemP4{} - var fernTestValueY float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int // Act - obj.SetY(fernTestValueY) + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -136876,9 +174615,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect(t *testing.T) { t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect{} var fernTestValueLeft float64 obj.SetLeft(fernTestValueLeft) assert.Equal(t, fernTestValueLeft, obj.Left) @@ -136886,7 +174625,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh }) t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect{} var fernTestValueBottom float64 obj.SetBottom(fernTestValueBottom) assert.Equal(t, fernTestValueBottom, obj.Bottom) @@ -136894,7 +174633,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh }) t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect{} var fernTestValueRight float64 obj.SetRight(fernTestValueRight) assert.Equal(t, fernTestValueRight, obj.Right) @@ -136902,7 +174641,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh }) t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect{} var fernTestValueTop float64 obj.SetTop(fernTestValueTop) assert.Equal(t, fernTestValueTop, obj.Top) @@ -136911,11 +174650,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect(t *testing.T) { t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect{} var expected float64 obj.Left = expected @@ -136925,7 +174664,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -136938,7 +174677,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect{} var expected float64 obj.Bottom = expected @@ -136948,7 +174687,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -136961,7 +174700,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect{} var expected float64 obj.Right = expected @@ -136971,7 +174710,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -136984,7 +174723,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect{} var expected float64 obj.Top = expected @@ -136994,7 +174733,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -137006,11 +174745,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect(t *testing.T) { t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect{} var fernTestValueLeft float64 // Act @@ -137041,7 +174780,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect{} var fernTestValueBottom float64 // Act @@ -137072,7 +174811,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect{} var fernTestValueRight float64 // Act @@ -137103,7 +174842,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect{} var fernTestValueTop float64 // Act @@ -137133,11 +174872,11 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef{} var expected string obj.Kind = expected @@ -137147,7 +174886,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -137160,8 +174899,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -137171,7 +174910,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef{} obj.ObjectNumber = nil // Act & Assert @@ -137180,7 +174919,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -137193,8 +174932,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm obj.Nm = expected // Act & Assert @@ -137204,7 +174943,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef{} obj.Nm = nil // Act & Assert @@ -137213,7 +174952,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -137226,8 +174965,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex obj.Index = expected // Act & Assert @@ -137237,7 +174976,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef{} obj.Index = nil // Act & Assert @@ -137246,7 +174985,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -137258,9 +174997,9 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -137268,7 +175007,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -137276,8 +175015,8 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -137285,11 +175024,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex{} var expected int obj.PageObjectNumber = expected @@ -137299,7 +175038,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -137312,7 +175051,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex{} var expected int obj.Index = expected @@ -137322,7 +175061,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -137335,8 +175074,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision obj.Revision = expected // Act & Assert @@ -137346,7 +175085,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex{} obj.Revision = nil // Act & Assert @@ -137355,7 +175094,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -137367,11 +175106,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex{} var fernTestValuePageObjectNumber int // Act @@ -137402,7 +175141,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex{} var fernTestValueIndex int // Act @@ -137433,8 +175172,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -137463,9 +175202,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -137473,7 +175212,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -137481,7 +175220,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -137490,11 +175229,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision{} var expected string obj.DocSessionID = expected @@ -137504,7 +175243,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -137517,7 +175256,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -137527,7 +175266,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -137540,7 +175279,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision{} var expected int obj.Generation = expected @@ -137550,7 +175289,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -137562,11 +175301,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision{} var fernTestValueDocSessionID string // Act @@ -137597,7 +175336,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -137628,7 +175367,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision{} var fernTestValueGeneration int // Act @@ -137658,9 +175397,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -137668,7 +175407,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm{} var fernTestValueNm string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -137677,11 +175416,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm{} var expected int obj.PageObjectNumber = expected @@ -137691,7 +175430,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -137704,7 +175443,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm{} var expected string obj.Nm = expected @@ -137714,7 +175453,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -137726,11 +175465,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighligh } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm{} var fernTestValuePageObjectNumber int // Act @@ -137761,11 +175500,695 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm{} var fernTestValueNm string // Act - obj.SetNm(fernTestValueNm) + obj.SetNm(fernTestValueNm) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + }) + + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAnnotObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber{} + var fernTestValueAnnotObjectNumber int + + // Act + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget{} + var expected string + obj.Kind = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + }) + + t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKind() // Should return zero value + }) + + t.Run("GetGoto", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto + obj.Goto = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetGoto(), "getter should return the property value") + }) + + t.Run("GetGoto_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget{} + obj.Goto = nil + + // Act & Assert + assert.Nil(t, obj.GetGoto(), "getter should return nil when property is nil") + }) + + t.Run("GetGoto_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGoto() // Should return zero value + }) + + t.Run("GetURI", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI + obj.URI = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetURI(), "getter should return the property value") + }) + + t.Run("GetURI_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget{} + obj.URI = nil + + // Act & Assert + assert.Nil(t, obj.GetURI(), "getter should return nil when property is nil") + }) + + t.Run("GetURI_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetURI() // Should return zero value + }) + + t.Run("GetGotoRemote", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote + obj.GotoRemote = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetGotoRemote(), "getter should return the property value") + }) + + t.Run("GetGotoRemote_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget{} + obj.GotoRemote = nil + + // Act & Assert + assert.Nil(t, obj.GetGotoRemote(), "getter should return nil when property is nil") + }) + + t.Run("GetGotoRemote_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGotoRemote() // Should return zero value + }) + + t.Run("GetLaunch", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch + obj.Launch = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLaunch(), "getter should return the property value") + }) + + t.Run("GetLaunch_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget{} + obj.Launch = nil + + // Act & Assert + assert.Nil(t, obj.GetLaunch(), "getter should return nil when property is nil") + }) + + t.Run("GetLaunch_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLaunch() // Should return zero value + }) + + t.Run("GetJavascript", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript + obj.Javascript = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetJavascript(), "getter should return the property value") + }) + + t.Run("GetJavascript_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget{} + obj.Javascript = nil + + // Act & Assert + assert.Nil(t, obj.GetJavascript(), "getter should return nil when property is nil") + }) + + t.Run("GetJavascript_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetJavascript() // Should return zero value + }) + + t.Run("GetNamed", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed + obj.Named = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNamed(), "getter should return the property value") + }) + + t.Run("GetNamed_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget{} + obj.Named = nil + + // Act & Assert + assert.Nil(t, obj.GetNamed(), "getter should return nil when property is nil") + }) + + t.Run("GetNamed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNamed() // Should return zero value + }) + + t.Run("GetUnsupported", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported + obj.Unsupported = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUnsupported(), "getter should return the property value") + }) + + t.Run("GetUnsupported_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget{} + obj.Unsupported = nil + + // Act & Assert + assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") + }) + + t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnsupported() // Should return zero value + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto(t *testing.T) { + t.Run("SetDestination", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto{} + var fernTestValueDestination *PdfDestination + obj.SetDestination(fernTestValueDestination) + assert.Equal(t, fernTestValueDestination, obj.Destination) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto(t *testing.T) { + t.Run("GetDestination", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto{} + var expected *PdfDestination + obj.Destination = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDestination(), "getter should return the property value") + }) + + t.Run("GetDestination_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto{} + obj.Destination = nil + + // Act & Assert + assert.Nil(t, obj.GetDestination(), "getter should return nil when property is nil") + }) + + t.Run("GetDestination_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDestination() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto(t *testing.T) { + t.Run("SetDestination_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto{} + var fernTestValueDestination *PdfDestination + + // Act + obj.SetDestination(fernTestValueDestination) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote(t *testing.T) { + t.Run("SetFile", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote{} + var fernTestValueFile string + obj.SetFile(fernTestValueFile) + assert.Equal(t, fernTestValueFile, obj.File) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote(t *testing.T) { + t.Run("GetFile", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote{} + var expected string + obj.File = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFile(), "getter should return the property value") + }) + + t.Run("GetFile_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFile() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote(t *testing.T) { + t.Run("SetFile_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote{} + var fernTestValueFile string + + // Act + obj.SetFile(fernTestValueFile) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch(t *testing.T) { + t.Run("SetPath", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch{} + var fernTestValuePath string + obj.SetPath(fernTestValuePath) + assert.Equal(t, fernTestValuePath, obj.Path) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch(t *testing.T) { + t.Run("GetPath", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch{} + var expected string + obj.Path = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPath(), "getter should return the property value") + }) + + t.Run("GetPath_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPath() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch(t *testing.T) { + t.Run("SetPath_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch{} + var fernTestValuePath string + + // Act + obj.SetPath(fernTestValuePath) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed{} + var fernTestValueName string + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed(t *testing.T) { + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed{} + var expected string + obj.Name = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + }) + + t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetName() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed{} + var fernTestValueName string + + // Act + obj.SetName(fernTestValueName) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -137791,83 +176214,52 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI(t *testing.T) { + t.Run("SetURI", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI{} + var fernTestValueURI string + obj.SetURI(fernTestValueURI) + assert.Equal(t, fernTestValueURI, obj.URI) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetAnnotObjectNumber", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI(t *testing.T) { + t.Run("GetURI", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI{} + var expected string + obj.URI = expected // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetURI(), "getter should return the property value") }) - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetURI_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAnnotObjectNumber() // Should return zero value + _ = obj.GetURI() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI(t *testing.T) { + t.Run("SetURI_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI{} + var fernTestValueURI string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetURI(fernTestValueURI) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -137891,50 +176283,43 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemHighlightRefObjectNumber{} - var fernTestValueAnnotObjectNumber int - - // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") +} - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon(t *testing.T) { + t.Run("SetIntent", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueIntent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIntent + obj.SetIntent(fernTestValueIntent) + assert.Equal(t, fernTestValueIntent, obj.Intent) + assert.NotNil(t, obj.explicitFields) + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("SetMeasure", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueMeasure *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasure + obj.SetMeasure(fernTestValueMeasure) + assert.Equal(t, fernTestValueMeasure, obj.Measure) + assert.NotNil(t, obj.explicitFields) }) -} + t.Run("SetCaption", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueCaption *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption + obj.SetCaption(fernTestValueCaption) + assert.Equal(t, fernTestValueCaption, obj.Caption) + assert.NotNil(t, obj.explicitFields) + }) -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *testing.T) { t.Run("SetRef", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef obj.SetRef(fernTestValueRef) assert.Equal(t, fernTestValueRef, obj.Ref) assert.NotNil(t, obj.explicitFields) }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -137942,7 +176327,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -137950,15 +176335,15 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t }) t.Run("SetIdentityQuality", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality obj.SetIdentityQuality(fernTestValueIdentityQuality) assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) assert.NotNil(t, obj.explicitFields) }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} var fernTestValueNm *string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -137966,23 +176351,23 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t }) t.Run("SetFlags", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags obj.SetFlags(fernTestValueFlags) assert.Equal(t, fernTestValueFlags, obj.Flags) assert.NotNil(t, obj.explicitFields) }) t.Run("SetRect", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect obj.SetRect(fernTestValueRect) assert.Equal(t, fernTestValueRect, obj.Rect) assert.NotNil(t, obj.explicitFields) }) t.Run("SetContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} var fernTestValueContents *string obj.SetContents(fernTestValueContents) assert.Equal(t, fernTestValueContents, obj.Contents) @@ -137990,7 +176375,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t }) t.Run("SetSubject", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} var fernTestValueSubject *string obj.SetSubject(fernTestValueSubject) assert.Equal(t, fernTestValueSubject, obj.Subject) @@ -137998,7 +176383,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t }) t.Run("SetAuthor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} var fernTestValueAuthor *string obj.SetAuthor(fernTestValueAuthor) assert.Equal(t, fernTestValueAuthor, obj.Author) @@ -138006,7 +176391,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t }) t.Run("SetCreated", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} var fernTestValueCreated *time.Time obj.SetCreated(fernTestValueCreated) assert.Equal(t, fernTestValueCreated, obj.Created) @@ -138014,7 +176399,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t }) t.Run("SetModified", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} var fernTestValueModified *time.Time obj.SetModified(fernTestValueModified) assert.Equal(t, fernTestValueModified, obj.Modified) @@ -138022,31 +176407,31 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t }) t.Run("SetBlendMode", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode obj.SetBlendMode(fernTestValueBlendMode) assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) assert.NotNil(t, obj.explicitFields) }) t.Run("SetInReplyTo", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo obj.SetInReplyTo(fernTestValueInReplyTo) assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) assert.NotNil(t, obj.explicitFields) }) t.Run("SetReplyType", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType obj.SetReplyType(fernTestValueReplyType) assert.Equal(t, fernTestValueReplyType, obj.ReplyType) assert.NotNil(t, obj.explicitFields) }) t.Run("SetUserID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} var fernTestValueUserID *string obj.SetUserID(fernTestValueUserID) assert.Equal(t, fernTestValueUserID, obj.UserID) @@ -138054,7 +176439,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t }) t.Run("SetGroupID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} var fernTestValueGroupID *string obj.SetGroupID(fernTestValueGroupID) assert.Equal(t, fernTestValueGroupID, obj.GroupID) @@ -138062,7 +176447,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t }) t.Run("SetCreatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} var fernTestValueCreatedBy *string obj.SetCreatedBy(fernTestValueCreatedBy) assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) @@ -138070,7 +176455,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t }) t.Run("SetUpdatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} var fernTestValueUpdatedBy *string obj.SetUpdatedBy(fernTestValueUpdatedBy) assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) @@ -138078,7 +176463,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t }) t.Run("SetActions", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} var fernTestValueActions *PdfAnnotationActions obj.SetActions(fernTestValueActions) assert.Equal(t, fernTestValueActions, obj.Actions) @@ -138086,15 +176471,15 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t }) t.Run("SetColor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor obj.SetColor(fernTestValueColor) assert.Equal(t, fernTestValueColor, obj.Color) assert.NotNil(t, obj.explicitFields) }) t.Run("SetOpacity", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} var fernTestValueOpacity float64 obj.SetOpacity(fernTestValueOpacity) assert.Equal(t, fernTestValueOpacity, obj.Opacity) @@ -138102,7 +176487,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t }) t.Run("SetStrokeWidth", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} var fernTestValueStrokeWidth float64 obj.SetStrokeWidth(fernTestValueStrokeWidth) assert.Equal(t, fernTestValueStrokeWidth, obj.StrokeWidth) @@ -138110,53 +176495,160 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t }) t.Run("SetBorderStyle", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle obj.SetBorderStyle(fernTestValueBorderStyle) assert.Equal(t, fernTestValueBorderStyle, obj.BorderStyle) assert.NotNil(t, obj.explicitFields) }) t.Run("SetDashArray", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} var fernTestValueDashArray []float64 obj.SetDashArray(fernTestValueDashArray) assert.Equal(t, fernTestValueDashArray, obj.DashArray) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetIntent", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueIntent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntent - obj.SetIntent(fernTestValueIntent) - assert.Equal(t, fernTestValueIntent, obj.Intent) + t.Run("SetInteriorColor", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor + obj.SetInteriorColor(fernTestValueInteriorColor) + assert.Equal(t, fernTestValueInteriorColor, obj.InteriorColor) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetInkList", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueInkList [][]*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem - obj.SetInkList(fernTestValueInkList) - assert.Equal(t, fernTestValueInkList, obj.InkList) + t.Run("SetVertices", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueVertices []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem + obj.SetVertices(fernTestValueVertices) + assert.Equal(t, fernTestValueVertices, obj.Vertices) assert.NotNil(t, obj.explicitFields) }) t.Run("SetRotation", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} var fernTestValueRotation *float64 obj.SetRotation(fernTestValueRotation) assert.Equal(t, fernTestValueRotation, obj.Rotation) assert.NotNil(t, obj.explicitFields) }) + t.Run("SetCloudyIntensity", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueCloudyIntensity *float64 + obj.SetCloudyIntensity(fernTestValueCloudyIntensity) + assert.Equal(t, fernTestValueCloudyIntensity, obj.CloudyIntensity) + assert.NotNil(t, obj.explicitFields) + }) + } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon(t *testing.T) { + t.Run("GetIntent", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIntent + obj.Intent = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIntent(), "getter should return the property value") + }) + + t.Run("GetIntent_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + obj.Intent = nil + + // Act & Assert + assert.Nil(t, obj.GetIntent(), "getter should return nil when property is nil") + }) + + t.Run("GetIntent_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIntent() // Should return zero value + }) + + t.Run("GetMeasure", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasure + obj.Measure = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMeasure(), "getter should return the property value") + }) + + t.Run("GetMeasure_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + obj.Measure = nil + + // Act & Assert + assert.Nil(t, obj.GetMeasure(), "getter should return nil when property is nil") + }) + + t.Run("GetMeasure_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMeasure() // Should return zero value + }) + + t.Run("GetCaption", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption + obj.Caption = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCaption(), "getter should return the property value") + }) + + t.Run("GetCaption_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + obj.Caption = nil + + // Act & Assert + assert.Nil(t, obj.GetCaption(), "getter should return nil when property is nil") + }) + + t.Run("GetCaption_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCaption() // Should return zero value + }) + t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef obj.Ref = expected // Act & Assert @@ -138166,7 +176658,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetRef_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} obj.Ref = nil // Act & Assert @@ -138175,7 +176667,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetRef_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -138188,7 +176680,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} var expected int obj.PageObjectNumber = expected @@ -138198,7 +176690,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -138211,7 +176703,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} var expected int obj.Index = expected @@ -138221,7 +176713,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -138234,8 +176726,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetIdentityQuality", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality obj.IdentityQuality = expected // Act & Assert @@ -138244,7 +176736,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -138257,7 +176749,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} var expected *string obj.Nm = expected @@ -138268,7 +176760,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} obj.Nm = nil // Act & Assert @@ -138277,7 +176769,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -138290,8 +176782,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags obj.Flags = expected // Act & Assert @@ -138301,7 +176793,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} obj.Flags = nil // Act & Assert @@ -138310,7 +176802,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -138323,8 +176815,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetRect", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect obj.Rect = expected // Act & Assert @@ -138334,7 +176826,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetRect_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} obj.Rect = nil // Act & Assert @@ -138343,7 +176835,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetRect_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -138356,7 +176848,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} var expected *string obj.Contents = expected @@ -138367,7 +176859,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetContents_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} obj.Contents = nil // Act & Assert @@ -138376,7 +176868,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -138389,7 +176881,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetSubject", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} var expected *string obj.Subject = expected @@ -138400,7 +176892,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetSubject_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} obj.Subject = nil // Act & Assert @@ -138409,7 +176901,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetSubject_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -138422,7 +176914,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetAuthor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} var expected *string obj.Author = expected @@ -138433,7 +176925,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetAuthor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} obj.Author = nil // Act & Assert @@ -138442,7 +176934,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetAuthor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -138455,7 +176947,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetCreated", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} var expected *time.Time obj.Created = expected @@ -138466,7 +176958,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetCreated_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} obj.Created = nil // Act & Assert @@ -138475,7 +176967,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetCreated_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -138488,7 +176980,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetModified", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} var expected *time.Time obj.Modified = expected @@ -138499,7 +176991,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetModified_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} obj.Modified = nil // Act & Assert @@ -138508,7 +177000,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetModified_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -138521,8 +177013,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetBlendMode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode obj.BlendMode = expected // Act & Assert @@ -138531,7 +177023,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -138544,8 +177036,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetInReplyTo", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo obj.InReplyTo = expected // Act & Assert @@ -138555,7 +177047,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetInReplyTo_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} obj.InReplyTo = nil // Act & Assert @@ -138564,7 +177056,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -138577,8 +177069,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetReplyType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType obj.ReplyType = expected // Act & Assert @@ -138588,7 +177080,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetReplyType_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} obj.ReplyType = nil // Act & Assert @@ -138597,7 +177089,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetReplyType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -138610,7 +177102,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetUserID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} var expected *string obj.UserID = expected @@ -138621,7 +177113,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetUserID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} obj.UserID = nil // Act & Assert @@ -138630,7 +177122,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetUserID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -138643,7 +177135,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetGroupID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} var expected *string obj.GroupID = expected @@ -138654,7 +177146,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetGroupID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} obj.GroupID = nil // Act & Assert @@ -138663,7 +177155,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetGroupID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -138676,7 +177168,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetCreatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} var expected *string obj.CreatedBy = expected @@ -138687,7 +177179,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetCreatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} obj.CreatedBy = nil // Act & Assert @@ -138696,7 +177188,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -138709,7 +177201,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetUpdatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} var expected *string obj.UpdatedBy = expected @@ -138720,7 +177212,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} obj.UpdatedBy = nil // Act & Assert @@ -138729,7 +177221,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -138742,7 +177234,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetActions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} var expected *PdfAnnotationActions obj.Actions = expected @@ -138753,7 +177245,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetActions_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} obj.Actions = nil // Act & Assert @@ -138762,7 +177254,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetActions_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -138775,8 +177267,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetColor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor obj.Color = expected // Act & Assert @@ -138786,7 +177278,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetColor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} obj.Color = nil // Act & Assert @@ -138795,7 +177287,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetColor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -138808,7 +177300,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetOpacity", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} var expected float64 obj.Opacity = expected @@ -138818,7 +177310,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetOpacity_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -138831,7 +177323,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetStrokeWidth", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} var expected float64 obj.StrokeWidth = expected @@ -138841,7 +177333,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetStrokeWidth_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -138854,8 +177346,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetBorderStyle", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle obj.BorderStyle = expected // Act & Assert @@ -138864,7 +177356,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetBorderStyle_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -138877,7 +177369,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetDashArray", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} var expected []float64 obj.DashArray = expected @@ -138888,7 +177380,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetDashArray_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} obj.DashArray = nil // Act & Assert @@ -138897,715 +177389,159 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *t t.Run("GetDashArray_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetDashArray() // Should return zero value - }) - - t.Run("GetIntent", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntent - obj.Intent = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetIntent(), "getter should return the property value") - }) - - t.Run("GetIntent_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - obj.Intent = nil - - // Act & Assert - assert.Nil(t, obj.GetIntent(), "getter should return nil when property is nil") - }) - - t.Run("GetIntent_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetIntent() // Should return zero value - }) - - t.Run("GetInkList", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var expected [][]*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem - obj.InkList = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetInkList(), "getter should return the property value") - }) - - t.Run("GetInkList_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - obj.InkList = nil - - // Act & Assert - assert.Nil(t, obj.GetInkList(), "getter should return nil when property is nil") - }) - - t.Run("GetInkList_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetInkList() // Should return zero value - }) - - t.Run("GetRotation", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var expected *float64 - obj.Rotation = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRotation(), "getter should return the property value") - }) - - t.Run("GetRotation_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - obj.Rotation = nil - - // Act & Assert - assert.Nil(t, obj.GetRotation(), "getter should return nil when property is nil") - }) - - t.Run("GetRotation_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon // Should not panic - getters should handle nil receiver gracefully defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRotation() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk(t *testing.T) { - t.Run("SetRef_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef - - // Act - obj.SetRef(fernTestValueRef) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValuePageObjectNumber int - - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueIndex int - - // Act - obj.SetIndex(fernTestValueIndex) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIdentityQuality - - // Act - obj.SetIdentityQuality(fernTestValueIdentityQuality) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetNm_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueNm *string - - // Act - obj.SetNm(fernTestValueNm) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetFlags_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags - - // Act - obj.SetFlags(fernTestValueFlags) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetRect_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect - - // Act - obj.SetRect(fernTestValueRect) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetContents_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueContents *string - - // Act - obj.SetContents(fernTestValueContents) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetSubject_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueSubject *string - - // Act - obj.SetSubject(fernTestValueSubject) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueAuthor *string - - // Act - obj.SetAuthor(fernTestValueAuthor) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetCreated_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueCreated *time.Time - - // Act - obj.SetCreated(fernTestValueCreated) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetModified_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueModified *time.Time - - // Act - obj.SetModified(fernTestValueModified) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBlendMode - - // Act - obj.SetBlendMode(fernTestValueBlendMode) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo - - // Act - obj.SetInReplyTo(fernTestValueInReplyTo) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkReplyType - - // Act - obj.SetReplyType(fernTestValueReplyType) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDashArray() // Should return zero value }) - t.Run("SetUserID_MarksExplicit", func(t *testing.T) { + t.Run("GetInteriorColor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueUserID *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor + obj.InteriorColor = expected - // Act - obj.SetUserID(fernTestValueUserID) + // Act & Assert + assert.Equal(t, expected, obj.GetInteriorColor(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetInteriorColor_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + obj.InteriorColor = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetInteriorColor(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetInteriorColor_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetInteriorColor() // Should return zero value }) - t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { + t.Run("GetVertices", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueGroupID *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem + obj.Vertices = expected - // Act - obj.SetGroupID(fernTestValueGroupID) + // Act & Assert + assert.Equal(t, expected, obj.GetVertices(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetVertices_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + obj.Vertices = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetVertices(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetVertices_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetVertices() // Should return zero value }) - t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { + t.Run("GetRotation", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueCreatedBy *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var expected *float64 + obj.Rotation = expected - // Act - obj.SetCreatedBy(fernTestValueCreatedBy) + // Act & Assert + assert.Equal(t, expected, obj.GetRotation(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetRotation_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + obj.Rotation = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetRotation(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetRotation_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRotation() // Should return zero value }) - t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { + t.Run("GetCloudyIntensity", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueUpdatedBy *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var expected *float64 + obj.CloudyIntensity = expected - // Act - obj.SetUpdatedBy(fernTestValueUpdatedBy) + // Act & Assert + assert.Equal(t, expected, obj.GetCloudyIntensity(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetCloudyIntensity_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + obj.CloudyIntensity = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetCloudyIntensity(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetCloudyIntensity_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCloudyIntensity() // Should return zero value }) - t.Run("SetActions_MarksExplicit", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon(t *testing.T) { + t.Run("SetIntent_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueActions *PdfAnnotationActions + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueIntent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIntent // Act - obj.SetActions(fernTestValueActions) + obj.SetIntent(fernTestValueIntent) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -139629,14 +177565,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetColor_MarksExplicit", func(t *testing.T) { + t.Run("SetMeasure_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueMeasure *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasure // Act - obj.SetColor(fernTestValueColor) + obj.SetMeasure(fernTestValueMeasure) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -139660,14 +177596,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { + t.Run("SetCaption_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueOpacity float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueCaption *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption // Act - obj.SetOpacity(fernTestValueOpacity) + obj.SetCaption(fernTestValueCaption) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -139691,14 +177627,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetStrokeWidth_MarksExplicit", func(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueStrokeWidth float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef // Act - obj.SetStrokeWidth(fernTestValueStrokeWidth) + obj.SetRef(fernTestValueRef) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -139722,14 +177658,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBorderStyle_MarksExplicit", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkBorderStyle + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValuePageObjectNumber int // Act - obj.SetBorderStyle(fernTestValueBorderStyle) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -139753,14 +177689,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDashArray_MarksExplicit", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueDashArray []float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueIndex int // Act - obj.SetDashArray(fernTestValueDashArray) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -139784,14 +177720,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIntent_MarksExplicit", func(t *testing.T) { + t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueIntent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkIntent + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality // Act - obj.SetIntent(fernTestValueIntent) + obj.SetIdentityQuality(fernTestValueIdentityQuality) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -139815,14 +177751,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInkList_MarksExplicit", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueInkList [][]*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueNm *string // Act - obj.SetInkList(fernTestValueInkList) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -139846,14 +177782,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRotation_MarksExplicit", func(t *testing.T) { + t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInk{} - var fernTestValueRotation *float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags // Act - obj.SetRotation(fernTestValueRotation) + obj.SetFlags(fernTestValueFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -139877,116 +177813,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor(t *testing.T) { - t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor{} - var fernTestValueR int - obj.SetR(fernTestValueR) - assert.Equal(t, fernTestValueR, obj.R) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor{} - var fernTestValueG int - obj.SetG(fernTestValueG) - assert.Equal(t, fernTestValueG, obj.G) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor{} - var fernTestValueB int - obj.SetB(fernTestValueB) - assert.Equal(t, fernTestValueB, obj.B) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor(t *testing.T) { - t.Run("GetR", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor{} - var expected int - obj.R = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetR(), "getter should return the property value") - }) - - t.Run("GetR_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetR() // Should return zero value - }) - - t.Run("GetG", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor{} - var expected int - obj.G = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetG(), "getter should return the property value") - }) - - t.Run("GetG_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetG() // Should return zero value - }) - - t.Run("GetB", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor{} - var expected int - obj.B = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetB(), "getter should return the property value") - }) - - t.Run("GetB_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetB() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor(t *testing.T) { - t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Run("SetRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor{} - var fernTestValueR int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect // Act - obj.SetR(fernTestValueR) + obj.SetRect(fernTestValueRect) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -140010,14 +177844,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Run("SetContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor{} - var fernTestValueG int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueContents *string // Act - obj.SetG(fernTestValueG) + obj.SetContents(fernTestValueContents) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -140041,14 +177875,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Run("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkColor{} - var fernTestValueB int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueSubject *string // Act - obj.SetB(fernTestValueB) + obj.SetSubject(fernTestValueSubject) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -140072,333 +177906,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags(t *testing.T) { - t.Run("SetInvisible", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} - var fernTestValueInvisible bool - obj.SetInvisible(fernTestValueInvisible) - assert.Equal(t, fernTestValueInvisible, obj.Invisible) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetHidden", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} - var fernTestValueHidden bool - obj.SetHidden(fernTestValueHidden) - assert.Equal(t, fernTestValueHidden, obj.Hidden) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetPrint", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} - var fernTestValuePrint bool - obj.SetPrint(fernTestValuePrint) - assert.Equal(t, fernTestValuePrint, obj.Print) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNoZoom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} - var fernTestValueNoZoom bool - obj.SetNoZoom(fernTestValueNoZoom) - assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNoRotate", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} - var fernTestValueNoRotate bool - obj.SetNoRotate(fernTestValueNoRotate) - assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} - var fernTestValueNoView bool - obj.SetNoView(fernTestValueNoView) - assert.Equal(t, fernTestValueNoView, obj.NoView) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} - var fernTestValueReadOnly bool - obj.SetReadOnly(fernTestValueReadOnly) - assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetLocked", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} - var fernTestValueLocked bool - obj.SetLocked(fernTestValueLocked) - assert.Equal(t, fernTestValueLocked, obj.Locked) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetToggleNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} - var fernTestValueToggleNoView bool - obj.SetToggleNoView(fernTestValueToggleNoView) - assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetLockedContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} - var fernTestValueLockedContents bool - obj.SetLockedContents(fernTestValueLockedContents) - assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags(t *testing.T) { - t.Run("GetInvisible", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} - var expected bool - obj.Invisible = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetInvisible(), "getter should return the property value") - }) - - t.Run("GetInvisible_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetInvisible() // Should return zero value - }) - - t.Run("GetHidden", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} - var expected bool - obj.Hidden = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") - }) - - t.Run("GetHidden_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetHidden() // Should return zero value - }) - - t.Run("GetPrint", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} - var expected bool - obj.Print = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") - }) - - t.Run("GetPrint_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPrint() // Should return zero value - }) - - t.Run("GetNoZoom", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} - var expected bool - obj.NoZoom = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") - }) - - t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNoZoom() // Should return zero value - }) - - t.Run("GetNoRotate", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} - var expected bool - obj.NoRotate = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") - }) - - t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNoRotate() // Should return zero value - }) - - t.Run("GetNoView", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} - var expected bool - obj.NoView = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") - }) - - t.Run("GetNoView_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNoView() // Should return zero value - }) - - t.Run("GetReadOnly", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} - var expected bool - obj.ReadOnly = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") - }) - - t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetReadOnly() // Should return zero value - }) - - t.Run("GetLocked", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} - var expected bool - obj.Locked = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") - }) - - t.Run("GetLocked_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetLocked() // Should return zero value - }) - - t.Run("GetToggleNoView", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} - var expected bool - obj.ToggleNoView = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") - }) - - t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetToggleNoView() // Should return zero value - }) - - t.Run("GetLockedContents", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} - var expected bool - obj.LockedContents = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") - }) - - t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetLockedContents() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags(t *testing.T) { - t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { + t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} - var fernTestValueInvisible bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueAuthor *string // Act - obj.SetInvisible(fernTestValueInvisible) + obj.SetAuthor(fernTestValueAuthor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -140422,14 +177937,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetHidden_MarksExplicit", func(t *testing.T) { + t.Run("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} - var fernTestValueHidden bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueCreated *time.Time // Act - obj.SetHidden(fernTestValueHidden) + obj.SetCreated(fernTestValueCreated) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -140453,14 +177968,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPrint_MarksExplicit", func(t *testing.T) { + t.Run("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} - var fernTestValuePrint bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueModified *time.Time // Act - obj.SetPrint(fernTestValuePrint) + obj.SetModified(fernTestValueModified) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -140484,14 +177999,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { + t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} - var fernTestValueNoZoom bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode // Act - obj.SetNoZoom(fernTestValueNoZoom) + obj.SetBlendMode(fernTestValueBlendMode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -140515,14 +178030,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { + t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} - var fernTestValueNoRotate bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo // Act - obj.SetNoRotate(fernTestValueNoRotate) + obj.SetInReplyTo(fernTestValueInReplyTo) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -140546,14 +178061,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoView_MarksExplicit", func(t *testing.T) { + t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} - var fernTestValueNoView bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType // Act - obj.SetNoView(fernTestValueNoView) + obj.SetReplyType(fernTestValueReplyType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -140577,14 +178092,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { + t.Run("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} - var fernTestValueReadOnly bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueUserID *string // Act - obj.SetReadOnly(fernTestValueReadOnly) + obj.SetUserID(fernTestValueUserID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -140608,14 +178123,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLocked_MarksExplicit", func(t *testing.T) { + t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} - var fernTestValueLocked bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueGroupID *string // Act - obj.SetLocked(fernTestValueLocked) + obj.SetGroupID(fernTestValueGroupID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -140639,14 +178154,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { + t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} - var fernTestValueToggleNoView bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueCreatedBy *string // Act - obj.SetToggleNoView(fernTestValueToggleNoView) + obj.SetCreatedBy(fernTestValueCreatedBy) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -140670,14 +178185,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { + t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkFlags{} - var fernTestValueLockedContents bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueUpdatedBy *string // Act - obj.SetLockedContents(fernTestValueLockedContents) + obj.SetUpdatedBy(fernTestValueUpdatedBy) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -140701,251 +178216,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo{} - var expected string - obj.Kind = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") - }) - - t.Run("GetKind_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetKind() // Should return zero value - }) - - t.Run("GetObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber - obj.ObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") - }) - - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo{} - obj.ObjectNumber = nil - - // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") - }) - - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetObjectNumber() // Should return zero value - }) - - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm - obj.Nm = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") - }) - - t.Run("GetNm_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo{} - obj.Nm = nil - - // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") - }) - - t.Run("GetNm_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNm() // Should return zero value - }) - - t.Run("GetIndex", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex - obj.Index = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") - }) - - t.Run("GetIndex_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo{} - obj.Index = nil - - // Act & Assert - assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") - }) - - t.Run("GetIndex_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyTo - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetIndex() // Should return zero value - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetIndex", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex{} - var expected int - obj.Index = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") - }) - - t.Run("GetIndex_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetIndex() // Should return zero value - }) - - t.Run("GetRevision", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision - obj.Revision = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") - }) - - t.Run("GetRevision_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex{} - obj.Revision = nil - - // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") - }) - - t.Run("GetRevision_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRevision() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetActions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueActions *PdfAnnotationActions // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetActions(fernTestValueActions) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -140969,14 +178247,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("SetColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex{} - var fernTestValueIndex int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor // Act - obj.SetIndex(fernTestValueIndex) + obj.SetColor(fernTestValueColor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -141000,14 +178278,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueOpacity float64 // Act - obj.SetRevision(fernTestValueRevision) + obj.SetOpacity(fernTestValueOpacity) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -141031,116 +178309,138 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} + t.Run("SetStrokeWidth_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueStrokeWidth float64 -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision{} - var fernTestValueDocSessionID string - obj.SetDocSessionID(fernTestValueDocSessionID) - assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetStrokeWidth(fernTestValueStrokeWidth) - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) - assert.NotNil(t, obj.explicitFields) - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } -} + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { + t.Run("SetBorderStyle_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision{} - var expected string - obj.DocSessionID = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle - // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") - }) + // Act + obj.SetBorderStyle(fernTestValueBorderStyle) - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetDocSessionID() // Should return zero value + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("SetDashArray_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueDashArray []float64 - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) + // Act + obj.SetDashArray(fernTestValueDashArray) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetGeneration", func(t *testing.T) { + t.Run("SetInteriorColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision{} - var expected int - obj.Generation = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor - // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") - }) + // Act + obj.SetInteriorColor(fernTestValueInteriorColor) - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetGeneration() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") -} + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetVertices_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision{} - var fernTestValueDocSessionID string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueVertices []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem // Act - obj.SetDocSessionID(fernTestValueDocSessionID) + obj.SetVertices(fernTestValueVertices) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -141164,14 +178464,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetRotation_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueRotation *float64 // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetRotation(fernTestValueRotation) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -141195,14 +178495,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("SetCloudyIntensity_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToIndexRevision{} - var fernTestValueGeneration int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + var fernTestValueCloudyIntensity *float64 // Act - obj.SetGeneration(fernTestValueGeneration) + obj.SetCloudyIntensity(fernTestValueCloudyIntensity) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -141228,83 +178528,93 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption(t *testing.T) { + t.Run("SetEnabled", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption{} + var fernTestValueEnabled bool + obj.SetEnabled(fernTestValueEnabled) + assert.Equal(t, fernTestValueEnabled, obj.Enabled) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm{} - var fernTestValueNm string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) + t.Run("SetCenter", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption{} + var fernTestValueCenter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter + obj.SetCenter(fernTestValueCenter) + assert.Equal(t, fernTestValueCenter, obj.Center) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption(t *testing.T) { + t.Run("GetEnabled", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption{} + var expected bool + obj.Enabled = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetEnabled(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetEnabled_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetEnabled() // Should return zero value }) - t.Run("GetNm", func(t *testing.T) { + t.Run("GetCenter", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm{} - var expected string - obj.Nm = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter + obj.Center = expected // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCenter(), "getter should return the property value") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetCenter_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption{} + obj.Center = nil + + // Act & Assert + assert.Nil(t, obj.GetCenter(), "getter should return nil when property is nil") + }) + + t.Run("GetCenter_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetCenter() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption(t *testing.T) { + t.Run("SetEnabled_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption{} + var fernTestValueEnabled bool // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetEnabled(fernTestValueEnabled) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -141328,14 +178638,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetCenter_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToNm{} - var fernTestValueNm string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption{} + var fernTestValueCenter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter // Act - obj.SetNm(fernTestValueNm) + obj.SetCenter(fernTestValueCenter) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -141361,83 +178671,83 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter{} + var expected float64 + obj.X = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetX_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetX() // Should return zero value }) - t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Run("GetY", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter{} + var expected float64 + obj.Y = expected // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") }) - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetY_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAnnotObjectNumber() // Should return zero value + _ = obj.GetY() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter{} + var fernTestValueX float64 // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetX(fernTestValueX) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -141461,14 +178771,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter{} + var fernTestValueY float64 // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -141494,83 +178804,114 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor(t *testing.T) { + t.Run("SetR", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor{} + var fernTestValueR int + obj.SetR(fernTestValueR) + assert.Equal(t, fernTestValueR, obj.R) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) + t.Run("SetG", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor{} + var fernTestValueG int + obj.SetG(fernTestValueG) + assert.Equal(t, fernTestValueG, obj.G) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetB", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem(t *testing.T) { - t.Run("GetX", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem{} - var expected float64 - obj.X = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor{} + var expected int + obj.R = expected // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") }) - t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Run("GetR_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetX() // Should return zero value + _ = obj.GetR() // Should return zero value }) - t.Run("GetY", func(t *testing.T) { + t.Run("GetG", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem{} - var expected float64 - obj.Y = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor{} + var expected int + obj.G = expected // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") }) - t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Run("GetG_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetY() // Should return zero value + _ = obj.GetG() // Should return zero value + }) + + t.Run("GetB", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor{} + var expected int + obj.B = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + }) + + t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetB() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem{} - var fernTestValueX float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor{} + var fernTestValueR int // Act - obj.SetX(fernTestValueX) + obj.SetR(fernTestValueR) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -141594,14 +178935,45 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkInkListItemItem{} - var fernTestValueY float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor{} + var fernTestValueG int // Act - obj.SetY(fernTestValueY) + obj.SetG(fernTestValueG) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor{} + var fernTestValueB int + + // Act + obj.SetB(fernTestValueB) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -141627,145 +178999,331 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect(t *testing.T) { - t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect{} - var fernTestValueLeft float64 - obj.SetLeft(fernTestValueLeft) - assert.Equal(t, fernTestValueLeft, obj.Left) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags(t *testing.T) { + t.Run("SetInvisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + var fernTestValueInvisible bool + obj.SetInvisible(fernTestValueInvisible) + assert.Equal(t, fernTestValueInvisible, obj.Invisible) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect{} - var fernTestValueBottom float64 - obj.SetBottom(fernTestValueBottom) - assert.Equal(t, fernTestValueBottom, obj.Bottom) + t.Run("SetHidden", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + var fernTestValueHidden bool + obj.SetHidden(fernTestValueHidden) + assert.Equal(t, fernTestValueHidden, obj.Hidden) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect{} - var fernTestValueRight float64 - obj.SetRight(fernTestValueRight) - assert.Equal(t, fernTestValueRight, obj.Right) + t.Run("SetPrint", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + var fernTestValuePrint bool + obj.SetPrint(fernTestValuePrint) + assert.Equal(t, fernTestValuePrint, obj.Print) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect{} - var fernTestValueTop float64 - obj.SetTop(fernTestValueTop) - assert.Equal(t, fernTestValueTop, obj.Top) + t.Run("SetNoZoom", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + var fernTestValueNoZoom bool + obj.SetNoZoom(fernTestValueNoZoom) + assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNoRotate", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + var fernTestValueNoRotate bool + obj.SetNoRotate(fernTestValueNoRotate) + assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNoView", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + var fernTestValueNoView bool + obj.SetNoView(fernTestValueNoView) + assert.Equal(t, fernTestValueNoView, obj.NoView) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetReadOnly", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + var fernTestValueReadOnly bool + obj.SetReadOnly(fernTestValueReadOnly) + assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLocked", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + var fernTestValueLocked bool + obj.SetLocked(fernTestValueLocked) + assert.Equal(t, fernTestValueLocked, obj.Locked) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetToggleNoView", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + var fernTestValueToggleNoView bool + obj.SetToggleNoView(fernTestValueToggleNoView) + assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLockedContents", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + var fernTestValueLockedContents bool + obj.SetLockedContents(fernTestValueLockedContents) + assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect(t *testing.T) { - t.Run("GetLeft", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags(t *testing.T) { + t.Run("GetInvisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect{} - var expected float64 - obj.Left = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + var expected bool + obj.Invisible = expected // Act & Assert - assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") + assert.Equal(t, expected, obj.GetInvisible(), "getter should return the property value") }) - t.Run("GetLeft_NilReceiver", func(t *testing.T) { + t.Run("GetInvisible_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLeft() // Should return zero value + _ = obj.GetInvisible() // Should return zero value }) - t.Run("GetBottom", func(t *testing.T) { + t.Run("GetHidden", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect{} - var expected float64 - obj.Bottom = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + var expected bool + obj.Hidden = expected // Act & Assert - assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") + assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") }) - t.Run("GetBottom_NilReceiver", func(t *testing.T) { + t.Run("GetHidden_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBottom() // Should return zero value + _ = obj.GetHidden() // Should return zero value }) - t.Run("GetRight", func(t *testing.T) { + t.Run("GetPrint", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect{} - var expected float64 - obj.Right = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + var expected bool + obj.Print = expected // Act & Assert - assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") }) - t.Run("GetRight_NilReceiver", func(t *testing.T) { + t.Run("GetPrint_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRight() // Should return zero value + _ = obj.GetPrint() // Should return zero value }) - t.Run("GetTop", func(t *testing.T) { + t.Run("GetNoZoom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect{} - var expected float64 - obj.Top = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + var expected bool + obj.NoZoom = expected // Act & Assert - assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") }) - t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTop() // Should return zero value + _ = obj.GetNoZoom() // Should return zero value + }) + + t.Run("GetNoRotate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + var expected bool + obj.NoRotate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") + }) + + t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNoRotate() // Should return zero value + }) + + t.Run("GetNoView", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + var expected bool + obj.NoView = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") + }) + + t.Run("GetNoView_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNoView() // Should return zero value + }) + + t.Run("GetReadOnly", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + var expected bool + obj.ReadOnly = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") + }) + + t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetReadOnly() // Should return zero value + }) + + t.Run("GetLocked", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + var expected bool + obj.Locked = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") + }) + + t.Run("GetLocked_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLocked() // Should return zero value + }) + + t.Run("GetToggleNoView", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + var expected bool + obj.ToggleNoView = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") + }) + + t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetToggleNoView() // Should return zero value + }) + + t.Run("GetLockedContents", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + var expected bool + obj.LockedContents = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") + }) + + t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLockedContents() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect(t *testing.T) { - t.Run("SetLeft_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags(t *testing.T) { + t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect{} - var fernTestValueLeft float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + var fernTestValueInvisible bool // Act - obj.SetLeft(fernTestValueLeft) + obj.SetInvisible(fernTestValueInvisible) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -141789,14 +179347,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Run("SetHidden_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect{} - var fernTestValueBottom float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + var fernTestValueHidden bool // Act - obj.SetBottom(fernTestValueBottom) + obj.SetHidden(fernTestValueHidden) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -141820,14 +179378,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRight_MarksExplicit", func(t *testing.T) { + t.Run("SetPrint_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect{} - var fernTestValueRight float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + var fernTestValuePrint bool // Act - obj.SetRight(fernTestValueRight) + obj.SetPrint(fernTestValuePrint) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -141851,14 +179409,200 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRect{} - var fernTestValueTop float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + var fernTestValueNoZoom bool // Act - obj.SetTop(fernTestValueTop) + obj.SetNoZoom(fernTestValueNoZoom) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + var fernTestValueNoRotate bool + + // Act + obj.SetNoRotate(fernTestValueNoRotate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNoView_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + var fernTestValueNoView bool + + // Act + obj.SetNoView(fernTestValueNoView) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + var fernTestValueReadOnly bool + + // Act + obj.SetReadOnly(fernTestValueReadOnly) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetLocked_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + var fernTestValueLocked bool + + // Act + obj.SetLocked(fernTestValueLocked) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + var fernTestValueToggleNoView bool + + // Act + obj.SetToggleNoView(fernTestValueToggleNoView) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} + var fernTestValueLockedContents bool + + // Act + obj.SetLockedContents(fernTestValueLockedContents) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -141884,11 +179628,11 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo{} var expected string obj.Kind = expected @@ -141898,7 +179642,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef(t t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -141911,8 +179655,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef(t t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -141922,7 +179666,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef(t t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo{} obj.ObjectNumber = nil // Act & Assert @@ -141931,7 +179675,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef(t t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -141944,8 +179688,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef(t t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm obj.Nm = expected // Act & Assert @@ -141955,7 +179699,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef(t t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo{} obj.Nm = nil // Act & Assert @@ -141964,7 +179708,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef(t t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -141977,8 +179721,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef(t t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex obj.Index = expected // Act & Assert @@ -141988,7 +179732,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef(t t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo{} obj.Index = nil // Act & Assert @@ -141997,7 +179741,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef(t t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -142009,9 +179753,9 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRef(t } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -142019,7 +179763,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIn }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -142027,8 +179771,8 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIn }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -142036,11 +179780,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIn } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex{} var expected int obj.PageObjectNumber = expected @@ -142050,7 +179794,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIn t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -142063,7 +179807,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIn t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex{} var expected int obj.Index = expected @@ -142073,7 +179817,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIn t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -142086,8 +179830,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIn t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision obj.Revision = expected // Act & Assert @@ -142097,7 +179841,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIn t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex{} obj.Revision = nil // Act & Assert @@ -142106,7 +179850,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIn t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -142118,11 +179862,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIn } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex{} var fernTestValuePageObjectNumber int // Act @@ -142153,7 +179897,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex{} var fernTestValueIndex int // Act @@ -142184,8 +179928,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -142214,9 +179958,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -142224,7 +179968,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIn }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -142232,7 +179976,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIn }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -142241,11 +179985,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIn } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision{} var expected string obj.DocSessionID = expected @@ -142255,7 +179999,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIn t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -142268,7 +180012,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIn t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -142278,7 +180022,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIn t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -142291,7 +180035,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIn t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision{} var expected int obj.Generation = expected @@ -142301,7 +180045,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIn t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -142313,11 +180057,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIn } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision{} var fernTestValueDocSessionID string // Act @@ -142348,7 +180092,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -142379,7 +180123,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision{} var fernTestValueGeneration int // Act @@ -142409,9 +180153,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -142419,7 +180163,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm{} var fernTestValueNm string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -142428,11 +180172,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm{} var expected int obj.PageObjectNumber = expected @@ -142442,7 +180186,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -142455,7 +180199,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm{} var expected string obj.Nm = expected @@ -142465,7 +180209,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -142477,11 +180221,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm{} var fernTestValuePageObjectNumber int // Act @@ -142512,7 +180256,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm{} var fernTestValueNm string // Act @@ -142542,9 +180286,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -142552,7 +180296,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefOb }) t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber{} var fernTestValueAnnotObjectNumber int obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) @@ -142561,11 +180305,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefOb } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber{} var expected int obj.PageObjectNumber = expected @@ -142575,7 +180319,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefOb t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -142588,7 +180332,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefOb t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber{} var expected int obj.AnnotObjectNumber = expected @@ -142598,7 +180342,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefOb t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -142610,11 +180354,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefOb } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber{} var fernTestValuePageObjectNumber int // Act @@ -142645,7 +180389,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemInkRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber{} var fernTestValueAnnotObjectNumber int // Act @@ -142675,1140 +180419,1398 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine(t *testing.T) { - t.Run("SetRef", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef - obj.SetRef(fernTestValueRef) - assert.Equal(t, fernTestValueRef, obj.Ref) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIdentityQuality", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality - obj.SetIdentityQuality(fernTestValueIdentityQuality) - assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueNm *string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetFlags", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags - obj.SetFlags(fernTestValueFlags) - assert.Equal(t, fernTestValueFlags, obj.Flags) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRect", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect - obj.SetRect(fernTestValueRect) - assert.Equal(t, fernTestValueRect, obj.Rect) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueContents *string - obj.SetContents(fernTestValueContents) - assert.Equal(t, fernTestValueContents, obj.Contents) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetSubject", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueSubject *string - obj.SetSubject(fernTestValueSubject) - assert.Equal(t, fernTestValueSubject, obj.Subject) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAuthor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueAuthor *string - obj.SetAuthor(fernTestValueAuthor) - assert.Equal(t, fernTestValueAuthor, obj.Author) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCreated", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueCreated *time.Time - obj.SetCreated(fernTestValueCreated) - assert.Equal(t, fernTestValueCreated, obj.Created) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetModified", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueModified *time.Time - obj.SetModified(fernTestValueModified) - assert.Equal(t, fernTestValueModified, obj.Modified) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetBlendMode", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode - obj.SetBlendMode(fernTestValueBlendMode) - assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetInReplyTo", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo - obj.SetInReplyTo(fernTestValueInReplyTo) - assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetReplyType", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType - obj.SetReplyType(fernTestValueReplyType) - assert.Equal(t, fernTestValueReplyType, obj.ReplyType) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetUserID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueUserID *string - obj.SetUserID(fernTestValueUserID) - assert.Equal(t, fernTestValueUserID, obj.UserID) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetGroupID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueGroupID *string - obj.SetGroupID(fernTestValueGroupID) - assert.Equal(t, fernTestValueGroupID, obj.GroupID) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCreatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueCreatedBy *string - obj.SetCreatedBy(fernTestValueCreatedBy) - assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetUpdatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueUpdatedBy *string - obj.SetUpdatedBy(fernTestValueUpdatedBy) - assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetActions", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueActions *PdfAnnotationActions - obj.SetActions(fernTestValueActions) - assert.Equal(t, fernTestValueActions, obj.Actions) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetColor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor - obj.SetColor(fernTestValueColor) - assert.Equal(t, fernTestValueColor, obj.Color) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetOpacity", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueOpacity float64 - obj.SetOpacity(fernTestValueOpacity) - assert.Equal(t, fernTestValueOpacity, obj.Opacity) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetStrokeWidth", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueStrokeWidth float64 - obj.SetStrokeWidth(fernTestValueStrokeWidth) - assert.Equal(t, fernTestValueStrokeWidth, obj.StrokeWidth) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetBorderStyle", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle - obj.SetBorderStyle(fernTestValueBorderStyle) - assert.Equal(t, fernTestValueBorderStyle, obj.BorderStyle) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetDashArray", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueDashArray []float64 - obj.SetDashArray(fernTestValueDashArray) - assert.Equal(t, fernTestValueDashArray, obj.DashArray) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetInteriorColor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor - obj.SetInteriorColor(fernTestValueInteriorColor) - assert.Equal(t, fernTestValueInteriorColor, obj.InteriorColor) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetLinePoints", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueLinePoints *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints - obj.SetLinePoints(fernTestValueLinePoints) - assert.Equal(t, fernTestValueLinePoints, obj.LinePoints) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor(t *testing.T) { + t.Run("SetR", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor{} + var fernTestValueR int + obj.SetR(fernTestValueR) + assert.Equal(t, fernTestValueR, obj.R) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetLineEndings", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueLineEndings *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings - obj.SetLineEndings(fernTestValueLineEndings) - assert.Equal(t, fernTestValueLineEndings, obj.LineEndings) + t.Run("SetG", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor{} + var fernTestValueG int + obj.SetG(fernTestValueG) + assert.Equal(t, fernTestValueG, obj.G) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRotation", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueRotation *float64 - obj.SetRotation(fernTestValueRotation) - assert.Equal(t, fernTestValueRotation, obj.Rotation) + t.Run("SetB", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine(t *testing.T) { - t.Run("GetRef", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef - obj.Ref = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") - }) - - t.Run("GetRef_NilValue", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - obj.Ref = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor{} + var expected int + obj.R = expected // Act & Assert - assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") }) - t.Run("GetRef_NilReceiver", func(t *testing.T) { + t.Run("GetR_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRef() // Should return zero value + _ = obj.GetR() // Should return zero value }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetG", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor{} var expected int - obj.PageObjectNumber = expected + obj.G = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetG_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetG() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetB", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor{} var expected int - obj.Index = expected + obj.B = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetB_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetB() // Should return zero value }) - t.Run("GetIdentityQuality", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality - obj.IdentityQuality = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor{} + var fernTestValueR int - // Act & Assert - assert.Equal(t, expected, obj.GetIdentityQuality(), "getter should return the property value") + // Act + obj.SetR(fernTestValueR) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { + t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetIdentityQuality() // Should return zero value + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor{} + var fernTestValueG int + + // Act + obj.SetG(fernTestValueG) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetNm", func(t *testing.T) { + t.Run("SetB_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var expected *string - obj.Nm = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor{} + var fernTestValueB int - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + // Act + obj.SetB(fernTestValueB) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetNm_NilValue", func(t *testing.T) { +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasure(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - obj.Nm = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasure{} + var expected string + obj.Subtype = expected // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasure // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetSubtype() // Should return zero value }) - t.Run("GetFlags", func(t *testing.T) { + t.Run("GetRl", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags - obj.Flags = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasure{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl + obj.Rl = expected // Act & Assert - assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRl(), "getter should return the property value") }) - t.Run("GetFlags_NilValue", func(t *testing.T) { + t.Run("GetRl_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - obj.Flags = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasure{} + obj.Rl = nil // Act & Assert - assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRl(), "getter should return nil when property is nil") }) - t.Run("GetFlags_NilReceiver", func(t *testing.T) { + t.Run("GetRl_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasure // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFlags() // Should return zero value + _ = obj.GetRl() // Should return zero value }) - t.Run("GetRect", func(t *testing.T) { + t.Run("GetGeo", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect - obj.Rect = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasure{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureGeo + obj.Geo = expected // Act & Assert - assert.Equal(t, expected, obj.GetRect(), "getter should return the property value") + assert.Equal(t, expected, obj.GetGeo(), "getter should return the property value") }) - t.Run("GetRect_NilValue", func(t *testing.T) { + t.Run("GetGeo_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - obj.Rect = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasure{} + obj.Geo = nil // Act & Assert - assert.Nil(t, obj.GetRect(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetGeo(), "getter should return nil when property is nil") }) - t.Run("GetRect_NilReceiver", func(t *testing.T) { + t.Run("GetGeo_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasure // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRect() // Should return zero value + _ = obj.GetGeo() // Should return zero value }) - t.Run("GetContents", func(t *testing.T) { + t.Run("GetUnknown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var expected *string - obj.Contents = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasure{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureUnknown + obj.Unknown = expected // Act & Assert - assert.Equal(t, expected, obj.GetContents(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") }) - t.Run("GetContents_NilValue", func(t *testing.T) { + t.Run("GetUnknown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - obj.Contents = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasure{} + obj.Unknown = nil // Act & Assert - assert.Nil(t, obj.GetContents(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") }) - t.Run("GetContents_NilReceiver", func(t *testing.T) { + t.Run("GetUnknown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasure // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetContents() // Should return zero value + _ = obj.GetUnknown() // Should return zero value }) - t.Run("GetSubject", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl(t *testing.T) { + t.Run("SetRatio", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + var fernTestValueRatio *string + obj.SetRatio(fernTestValueRatio) + assert.Equal(t, fernTestValueRatio, obj.Ratio) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + var fernTestValueX []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + var fernTestValueY []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDistance", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + var fernTestValueDistance []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem + obj.SetDistance(fernTestValueDistance) + assert.Equal(t, fernTestValueDistance, obj.Distance) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetArea", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + var fernTestValueArea []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem + obj.SetArea(fernTestValueArea) + assert.Equal(t, fernTestValueArea, obj.Area) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAngle", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + var fernTestValueAngle []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem + obj.SetAngle(fernTestValueAngle) + assert.Equal(t, fernTestValueAngle, obj.Angle) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSlope", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + var fernTestValueSlope []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem + obj.SetSlope(fernTestValueSlope) + assert.Equal(t, fernTestValueSlope, obj.Slope) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetOrigin", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + var fernTestValueOrigin *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin + obj.SetOrigin(fernTestValueOrigin) + assert.Equal(t, fernTestValueOrigin, obj.Origin) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCyx", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + var fernTestValueCyx *float64 + obj.SetCyx(fernTestValueCyx) + assert.Equal(t, fernTestValueCyx, obj.Cyx) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl(t *testing.T) { + t.Run("GetRatio", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} var expected *string - obj.Subject = expected + obj.Ratio = expected // Act & Assert - assert.Equal(t, expected, obj.GetSubject(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRatio(), "getter should return the property value") }) - t.Run("GetSubject_NilValue", func(t *testing.T) { + t.Run("GetRatio_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - obj.Subject = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + obj.Ratio = nil // Act & Assert - assert.Nil(t, obj.GetSubject(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRatio(), "getter should return nil when property is nil") }) - t.Run("GetSubject_NilReceiver", func(t *testing.T) { + t.Run("GetRatio_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetSubject() // Should return zero value + _ = obj.GetRatio() // Should return zero value }) - t.Run("GetAuthor", func(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var expected *string - obj.Author = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem + obj.X = expected // Act & Assert - assert.Equal(t, expected, obj.GetAuthor(), "getter should return the property value") + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") }) - t.Run("GetAuthor_NilValue", func(t *testing.T) { + t.Run("GetX_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - obj.Author = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + obj.X = nil // Act & Assert - assert.Nil(t, obj.GetAuthor(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetX(), "getter should return nil when property is nil") }) - t.Run("GetAuthor_NilReceiver", func(t *testing.T) { + t.Run("GetX_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAuthor() // Should return zero value + _ = obj.GetX() // Should return zero value }) - t.Run("GetCreated", func(t *testing.T) { + t.Run("GetY", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var expected *time.Time - obj.Created = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem + obj.Y = expected // Act & Assert - assert.Equal(t, expected, obj.GetCreated(), "getter should return the property value") + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") }) - t.Run("GetCreated_NilValue", func(t *testing.T) { + t.Run("GetY_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - obj.Created = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + obj.Y = nil // Act & Assert - assert.Nil(t, obj.GetCreated(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetY(), "getter should return nil when property is nil") }) - t.Run("GetCreated_NilReceiver", func(t *testing.T) { + t.Run("GetY_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCreated() // Should return zero value + _ = obj.GetY() // Should return zero value }) - t.Run("GetModified", func(t *testing.T) { + t.Run("GetDistance", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var expected *time.Time - obj.Modified = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem + obj.Distance = expected // Act & Assert - assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDistance(), "getter should return the property value") }) - t.Run("GetModified_NilValue", func(t *testing.T) { + t.Run("GetDistance_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - obj.Modified = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + obj.Distance = nil // Act & Assert - assert.Nil(t, obj.GetModified(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetDistance(), "getter should return nil when property is nil") }) - t.Run("GetModified_NilReceiver", func(t *testing.T) { + t.Run("GetDistance_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetModified() // Should return zero value + _ = obj.GetDistance() // Should return zero value }) - t.Run("GetBlendMode", func(t *testing.T) { + t.Run("GetArea", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode - obj.BlendMode = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem + obj.Area = expected // Act & Assert - assert.Equal(t, expected, obj.GetBlendMode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetArea(), "getter should return the property value") }) - t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { + t.Run("GetArea_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + obj.Area = nil + + // Act & Assert + assert.Nil(t, obj.GetArea(), "getter should return nil when property is nil") + }) + + t.Run("GetArea_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBlendMode() // Should return zero value + _ = obj.GetArea() // Should return zero value }) - t.Run("GetInReplyTo", func(t *testing.T) { + t.Run("GetAngle", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo - obj.InReplyTo = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem + obj.Angle = expected // Act & Assert - assert.Equal(t, expected, obj.GetInReplyTo(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAngle(), "getter should return the property value") }) - t.Run("GetInReplyTo_NilValue", func(t *testing.T) { + t.Run("GetAngle_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - obj.InReplyTo = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + obj.Angle = nil // Act & Assert - assert.Nil(t, obj.GetInReplyTo(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetAngle(), "getter should return nil when property is nil") }) - t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { + t.Run("GetAngle_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInReplyTo() // Should return zero value + _ = obj.GetAngle() // Should return zero value }) - t.Run("GetReplyType", func(t *testing.T) { + t.Run("GetSlope", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType - obj.ReplyType = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem + obj.Slope = expected // Act & Assert - assert.Equal(t, expected, obj.GetReplyType(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSlope(), "getter should return the property value") }) - t.Run("GetReplyType_NilValue", func(t *testing.T) { + t.Run("GetSlope_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - obj.ReplyType = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + obj.Slope = nil // Act & Assert - assert.Nil(t, obj.GetReplyType(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetSlope(), "getter should return nil when property is nil") }) - t.Run("GetReplyType_NilReceiver", func(t *testing.T) { + t.Run("GetSlope_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReplyType() // Should return zero value + _ = obj.GetSlope() // Should return zero value }) - t.Run("GetUserID", func(t *testing.T) { + t.Run("GetOrigin", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var expected *string - obj.UserID = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin + obj.Origin = expected // Act & Assert - assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrigin(), "getter should return the property value") }) - t.Run("GetUserID_NilValue", func(t *testing.T) { + t.Run("GetOrigin_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - obj.UserID = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + obj.Origin = nil // Act & Assert - assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOrigin(), "getter should return nil when property is nil") }) - t.Run("GetUserID_NilReceiver", func(t *testing.T) { + t.Run("GetOrigin_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUserID() // Should return zero value + _ = obj.GetOrigin() // Should return zero value }) - t.Run("GetGroupID", func(t *testing.T) { + t.Run("GetCyx", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var expected *string - obj.GroupID = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + var expected *float64 + obj.Cyx = expected // Act & Assert - assert.Equal(t, expected, obj.GetGroupID(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCyx(), "getter should return the property value") }) - t.Run("GetGroupID_NilValue", func(t *testing.T) { + t.Run("GetCyx_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - obj.GroupID = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + obj.Cyx = nil // Act & Assert - assert.Nil(t, obj.GetGroupID(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCyx(), "getter should return nil when property is nil") }) - t.Run("GetGroupID_NilReceiver", func(t *testing.T) { + t.Run("GetCyx_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGroupID() // Should return zero value + _ = obj.GetCyx() // Should return zero value }) - t.Run("GetCreatedBy", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl(t *testing.T) { + t.Run("SetRatio_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var expected *string - obj.CreatedBy = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + var fernTestValueRatio *string - // Act & Assert - assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") + // Act + obj.SetRatio(fernTestValueRatio) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetCreatedBy_NilValue", func(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - obj.CreatedBy = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + var fernTestValueX []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem - // Act & Assert - assert.Nil(t, obj.GetCreatedBy(), "getter should return nil when property is nil") + // Act + obj.SetX(fernTestValueX) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetCreatedBy() // Should return zero value + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + var fernTestValueY []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem + + // Act + obj.SetY(fernTestValueY) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetUpdatedBy", func(t *testing.T) { + t.Run("SetDistance_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var expected *string - obj.UpdatedBy = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + var fernTestValueDistance []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem - // Act & Assert - assert.Equal(t, expected, obj.GetUpdatedBy(), "getter should return the property value") + // Act + obj.SetDistance(fernTestValueDistance) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { + t.Run("SetArea_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + var fernTestValueArea []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem + + // Act + obj.SetArea(fernTestValueArea) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetAngle_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + var fernTestValueAngle []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem + + // Act + obj.SetAngle(fernTestValueAngle) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSlope_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + var fernTestValueSlope []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem + + // Act + obj.SetSlope(fernTestValueSlope) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetOrigin_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + var fernTestValueOrigin *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin + + // Act + obj.SetOrigin(fernTestValueOrigin) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCyx_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + var fernTestValueCyx *float64 + + // Act + obj.SetCyx(fernTestValueCyx) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - obj.UpdatedBy = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + var expected string + obj.Unit = expected // Act & Assert - assert.Nil(t, obj.GetUpdatedBy(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") }) - t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { + t.Run("GetUnit_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUpdatedBy() // Should return zero value + _ = obj.GetUnit() // Should return zero value }) - t.Run("GetActions", func(t *testing.T) { + t.Run("GetConversion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var expected *PdfAnnotationActions - obj.Actions = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + var expected *float64 + obj.Conversion = expected // Act & Assert - assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") }) - t.Run("GetActions_NilValue", func(t *testing.T) { + t.Run("GetConversion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - obj.Actions = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + obj.Conversion = nil // Act & Assert - assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") }) - t.Run("GetActions_NilReceiver", func(t *testing.T) { + t.Run("GetConversion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetActions() // Should return zero value + _ = obj.GetConversion() // Should return zero value }) - t.Run("GetColor", func(t *testing.T) { + t.Run("GetFraction", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor - obj.Color = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFraction + obj.Fraction = expected // Act & Assert - assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") }) - t.Run("GetColor_NilValue", func(t *testing.T) { + t.Run("GetFraction_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - obj.Color = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + obj.Fraction = nil // Act & Assert - assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") }) - t.Run("GetColor_NilReceiver", func(t *testing.T) { + t.Run("GetFraction_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetColor() // Should return zero value + _ = obj.GetFraction() // Should return zero value }) - t.Run("GetOpacity", func(t *testing.T) { + t.Run("GetPrecision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var expected float64 - obj.Opacity = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + var expected *int + obj.Precision = expected // Act & Assert - assert.Equal(t, expected, obj.GetOpacity(), "getter should return the property value") - }) - - t.Run("GetOpacity_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetOpacity() // Should return zero value + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") }) - t.Run("GetStrokeWidth", func(t *testing.T) { + t.Run("GetPrecision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var expected float64 - obj.StrokeWidth = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + obj.Precision = nil // Act & Assert - assert.Equal(t, expected, obj.GetStrokeWidth(), "getter should return the property value") + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") }) - t.Run("GetStrokeWidth_NilReceiver", func(t *testing.T) { + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetStrokeWidth() // Should return zero value + _ = obj.GetPrecision() // Should return zero value }) - t.Run("GetBorderStyle", func(t *testing.T) { + t.Run("GetFixed", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle - obj.BorderStyle = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + var expected *bool + obj.Fixed = expected // Act & Assert - assert.Equal(t, expected, obj.GetBorderStyle(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") }) - t.Run("GetBorderStyle_NilReceiver", func(t *testing.T) { + t.Run("GetFixed_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + obj.Fixed = nil + + // Act & Assert + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") + }) + + t.Run("GetFixed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBorderStyle() // Should return zero value + _ = obj.GetFixed() // Should return zero value }) - t.Run("GetDashArray", func(t *testing.T) { + t.Run("GetThousands", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var expected []float64 - obj.DashArray = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + var expected *string + obj.Thousands = expected // Act & Assert - assert.Equal(t, expected, obj.GetDashArray(), "getter should return the property value") + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") }) - t.Run("GetDashArray_NilValue", func(t *testing.T) { + t.Run("GetThousands_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - obj.DashArray = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + obj.Thousands = nil // Act & Assert - assert.Nil(t, obj.GetDashArray(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") }) - t.Run("GetDashArray_NilReceiver", func(t *testing.T) { + t.Run("GetThousands_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDashArray() // Should return zero value + _ = obj.GetThousands() // Should return zero value }) - t.Run("GetInteriorColor", func(t *testing.T) { + t.Run("GetDecimal", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor - obj.InteriorColor = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + var expected *string + obj.Decimal = expected // Act & Assert - assert.Equal(t, expected, obj.GetInteriorColor(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") }) - t.Run("GetInteriorColor_NilValue", func(t *testing.T) { + t.Run("GetDecimal_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - obj.InteriorColor = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + obj.Decimal = nil // Act & Assert - assert.Nil(t, obj.GetInteriorColor(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") }) - t.Run("GetInteriorColor_NilReceiver", func(t *testing.T) { + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInteriorColor() // Should return zero value + _ = obj.GetDecimal() // Should return zero value }) - t.Run("GetLinePoints", func(t *testing.T) { + t.Run("GetPrefixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints - obj.LinePoints = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + var expected *string + obj.PrefixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetLinePoints(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") }) - t.Run("GetLinePoints_NilValue", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - obj.LinePoints = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + obj.PrefixSpacing = nil // Act & Assert - assert.Nil(t, obj.GetLinePoints(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetLinePoints_NilReceiver", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLinePoints() // Should return zero value + _ = obj.GetPrefixSpacing() // Should return zero value }) - t.Run("GetLineEndings", func(t *testing.T) { + t.Run("GetSuffixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings - obj.LineEndings = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + var expected *string + obj.SuffixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetLineEndings(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") }) - t.Run("GetLineEndings_NilValue", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - obj.LineEndings = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + obj.SuffixSpacing = nil // Act & Assert - assert.Nil(t, obj.GetLineEndings(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetLineEndings_NilReceiver", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLineEndings() // Should return zero value + _ = obj.GetSuffixSpacing() // Should return zero value }) - t.Run("GetRotation", func(t *testing.T) { + t.Run("GetLabelPosition", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var expected *float64 - obj.Rotation = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemLabelPosition + obj.LabelPosition = expected // Act & Assert - assert.Equal(t, expected, obj.GetRotation(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") }) - t.Run("GetRotation_NilValue", func(t *testing.T) { + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - obj.Rotation = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + obj.LabelPosition = nil // Act & Assert - assert.Nil(t, obj.GetRotation(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") }) - t.Run("GetRotation_NilReceiver", func(t *testing.T) { + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRotation() // Should return zero value + _ = obj.GetLabelPosition() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine(t *testing.T) { - t.Run("SetRef_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValueUnit string // Act - obj.SetRef(fernTestValueRef) + obj.SetUnit(fernTestValueUnit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -143832,14 +181834,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValueConversion *float64 // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetConversion(fernTestValueConversion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -143863,14 +181865,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueIndex int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFraction // Act - obj.SetIndex(fernTestValueIndex) + obj.SetFraction(fernTestValueFraction) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -143894,14 +181896,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValuePrecision *int // Act - obj.SetIdentityQuality(fernTestValueIdentityQuality) + obj.SetPrecision(fernTestValuePrecision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -143925,14 +181927,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueNm *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValueFixed *bool // Act - obj.SetNm(fernTestValueNm) + obj.SetFixed(fernTestValueFixed) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -143956,14 +181958,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFlags_MarksExplicit", func(t *testing.T) { + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValueThousands *string // Act - obj.SetFlags(fernTestValueFlags) + obj.SetThousands(fernTestValueThousands) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -143987,14 +181989,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRect_MarksExplicit", func(t *testing.T) { + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValueDecimal *string // Act - obj.SetRect(fernTestValueRect) + obj.SetDecimal(fernTestValueDecimal) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -144018,14 +182020,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetContents_MarksExplicit", func(t *testing.T) { + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueContents *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValuePrefixSpacing *string // Act - obj.SetContents(fernTestValueContents) + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -144049,14 +182051,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetSubject_MarksExplicit", func(t *testing.T) { + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueSubject *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValueSuffixSpacing *string // Act - obj.SetSubject(fernTestValueSubject) + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -144080,14 +182082,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueAuthor *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemLabelPosition // Act - obj.SetAuthor(fernTestValueAuthor) + obj.SetLabelPosition(fernTestValueLabelPosition) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -144111,14 +182113,423 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreated_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueCreated *time.Time + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + var expected string + obj.Unit = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") + }) + + t.Run("GetUnit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnit() // Should return zero value + }) + + t.Run("GetConversion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + var expected *float64 + obj.Conversion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") + }) + + t.Run("GetConversion_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + obj.Conversion = nil + + // Act & Assert + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") + }) + + t.Run("GetConversion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetConversion() // Should return zero value + }) + + t.Run("GetFraction", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFraction + obj.Fraction = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") + }) + + t.Run("GetFraction_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + obj.Fraction = nil + + // Act & Assert + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") + }) + + t.Run("GetFraction_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFraction() // Should return zero value + }) + + t.Run("GetPrecision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + var expected *int + obj.Precision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") + }) + + t.Run("GetPrecision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + obj.Precision = nil + + // Act & Assert + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") + }) + + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrecision() // Should return zero value + }) + + t.Run("GetFixed", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + var expected *bool + obj.Fixed = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") + }) + + t.Run("GetFixed_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + obj.Fixed = nil + + // Act & Assert + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") + }) + + t.Run("GetFixed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFixed() // Should return zero value + }) + + t.Run("GetThousands", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + var expected *string + obj.Thousands = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") + }) + + t.Run("GetThousands_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + obj.Thousands = nil + + // Act & Assert + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") + }) + + t.Run("GetThousands_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetThousands() // Should return zero value + }) + + t.Run("GetDecimal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + var expected *string + obj.Decimal = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") + }) + + t.Run("GetDecimal_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + obj.Decimal = nil + + // Act & Assert + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") + }) + + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDecimal() // Should return zero value + }) + + t.Run("GetPrefixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + var expected *string + obj.PrefixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") + }) + + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + obj.PrefixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrefixSpacing() // Should return zero value + }) + + t.Run("GetSuffixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + var expected *string + obj.SuffixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") + }) + + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + obj.SuffixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSuffixSpacing() // Should return zero value + }) + + t.Run("GetLabelPosition", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemLabelPosition + obj.LabelPosition = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") + }) + + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + obj.LabelPosition = nil + + // Act & Assert + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") + }) + + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLabelPosition() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValueUnit string // Act - obj.SetCreated(fernTestValueCreated) + obj.SetUnit(fernTestValueUnit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -144142,14 +182553,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetModified_MarksExplicit", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueModified *time.Time + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValueConversion *float64 // Act - obj.SetModified(fernTestValueModified) + obj.SetConversion(fernTestValueConversion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -144173,14 +182584,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFraction // Act - obj.SetBlendMode(fernTestValueBlendMode) + obj.SetFraction(fernTestValueFraction) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -144204,14 +182615,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValuePrecision *int // Act - obj.SetInReplyTo(fernTestValueInReplyTo) + obj.SetPrecision(fernTestValuePrecision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -144235,14 +182646,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValueFixed *bool // Act - obj.SetReplyType(fernTestValueReplyType) + obj.SetFixed(fernTestValueFixed) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -144266,14 +182677,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUserID_MarksExplicit", func(t *testing.T) { + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueUserID *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValueThousands *string // Act - obj.SetUserID(fernTestValueUserID) + obj.SetThousands(fernTestValueThousands) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -144297,14 +182708,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueGroupID *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValueDecimal *string // Act - obj.SetGroupID(fernTestValueGroupID) + obj.SetDecimal(fernTestValueDecimal) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -144328,14 +182739,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueCreatedBy *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValuePrefixSpacing *string // Act - obj.SetCreatedBy(fernTestValueCreatedBy) + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -144359,14 +182770,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueUpdatedBy *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValueSuffixSpacing *string // Act - obj.SetUpdatedBy(fernTestValueUpdatedBy) + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -144390,14 +182801,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueActions *PdfAnnotationActions + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemLabelPosition // Act - obj.SetActions(fernTestValueActions) + obj.SetLabelPosition(fernTestValueLabelPosition) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -144421,14 +182832,423 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetColor_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + var expected string + obj.Unit = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") + }) + + t.Run("GetUnit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnit() // Should return zero value + }) + + t.Run("GetConversion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + var expected *float64 + obj.Conversion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") + }) + + t.Run("GetConversion_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + obj.Conversion = nil + + // Act & Assert + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") + }) + + t.Run("GetConversion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetConversion() // Should return zero value + }) + + t.Run("GetFraction", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFraction + obj.Fraction = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") + }) + + t.Run("GetFraction_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + obj.Fraction = nil + + // Act & Assert + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") + }) + + t.Run("GetFraction_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFraction() // Should return zero value + }) + + t.Run("GetPrecision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + var expected *int + obj.Precision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") + }) + + t.Run("GetPrecision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + obj.Precision = nil + + // Act & Assert + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") + }) + + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrecision() // Should return zero value + }) + + t.Run("GetFixed", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + var expected *bool + obj.Fixed = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") + }) + + t.Run("GetFixed_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + obj.Fixed = nil + + // Act & Assert + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") + }) + + t.Run("GetFixed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFixed() // Should return zero value + }) + + t.Run("GetThousands", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + var expected *string + obj.Thousands = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") + }) + + t.Run("GetThousands_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + obj.Thousands = nil + + // Act & Assert + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") + }) + + t.Run("GetThousands_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetThousands() // Should return zero value + }) + + t.Run("GetDecimal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + var expected *string + obj.Decimal = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") + }) + + t.Run("GetDecimal_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + obj.Decimal = nil + + // Act & Assert + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") + }) + + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDecimal() // Should return zero value + }) + + t.Run("GetPrefixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + var expected *string + obj.PrefixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") + }) + + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + obj.PrefixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrefixSpacing() // Should return zero value + }) + + t.Run("GetSuffixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + var expected *string + obj.SuffixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") + }) + + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + obj.SuffixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSuffixSpacing() // Should return zero value + }) + + t.Run("GetLabelPosition", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemLabelPosition + obj.LabelPosition = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") + }) + + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + obj.LabelPosition = nil + + // Act & Assert + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") + }) + + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLabelPosition() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValueUnit string // Act - obj.SetColor(fernTestValueColor) + obj.SetUnit(fernTestValueUnit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -144452,14 +183272,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueOpacity float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValueConversion *float64 // Act - obj.SetOpacity(fernTestValueOpacity) + obj.SetConversion(fernTestValueConversion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -144483,14 +183303,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetStrokeWidth_MarksExplicit", func(t *testing.T) { + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueStrokeWidth float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFraction // Act - obj.SetStrokeWidth(fernTestValueStrokeWidth) + obj.SetFraction(fernTestValueFraction) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -144514,14 +183334,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBorderStyle_MarksExplicit", func(t *testing.T) { + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderStyle + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValuePrecision *int // Act - obj.SetBorderStyle(fernTestValueBorderStyle) + obj.SetPrecision(fernTestValuePrecision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -144545,14 +183365,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDashArray_MarksExplicit", func(t *testing.T) { + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueDashArray []float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValueFixed *bool // Act - obj.SetDashArray(fernTestValueDashArray) + obj.SetFixed(fernTestValueFixed) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -144576,14 +183396,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInteriorColor_MarksExplicit", func(t *testing.T) { + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValueThousands *string // Act - obj.SetInteriorColor(fernTestValueInteriorColor) + obj.SetThousands(fernTestValueThousands) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -144607,14 +183427,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLinePoints_MarksExplicit", func(t *testing.T) { + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueLinePoints *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValueDecimal *string // Act - obj.SetLinePoints(fernTestValueLinePoints) + obj.SetDecimal(fernTestValueDecimal) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -144638,14 +183458,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLineEndings_MarksExplicit", func(t *testing.T) { + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueLineEndings *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValuePrefixSpacing *string // Act - obj.SetLineEndings(fernTestValueLineEndings) + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -144669,14 +183489,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRotation_MarksExplicit", func(t *testing.T) { + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine{} - var fernTestValueRotation *float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValueSuffixSpacing *string // Act - obj.SetRotation(fernTestValueRotation) + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -144700,147 +183520,116 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemLabelPosition -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor(t *testing.T) { - t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor{} - var fernTestValueR int - obj.SetR(fernTestValueR) - assert.Equal(t, fernTestValueR, obj.R) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetLabelPosition(fernTestValueLabelPosition) - t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor{} - var fernTestValueG int - obj.SetG(fernTestValueG) - assert.Equal(t, fernTestValueG, obj.G) - assert.NotNil(t, obj.explicitFields) - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor{} - var fernTestValueB int - obj.SetB(fernTestValueB) - assert.Equal(t, fernTestValueB, obj.B) - assert.NotNil(t, obj.explicitFields) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor(t *testing.T) { - t.Run("GetR", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor{} - var expected int - obj.R = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetR(), "getter should return the property value") +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetR_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetR() // Should return zero value + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetG", func(t *testing.T) { +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor{} - var expected int - obj.G = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin{} + var expected float64 + obj.X = expected // Act & Assert - assert.Equal(t, expected, obj.GetG(), "getter should return the property value") + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") }) - t.Run("GetG_NilReceiver", func(t *testing.T) { + t.Run("GetX_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetG() // Should return zero value + _ = obj.GetX() // Should return zero value }) - t.Run("GetB", func(t *testing.T) { + t.Run("GetY", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor{} - var expected int - obj.B = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin{} + var expected float64 + obj.Y = expected // Act & Assert - assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") }) - t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Run("GetY_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetB() // Should return zero value + _ = obj.GetY() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor(t *testing.T) { - t.Run("SetR_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor{} - var fernTestValueR int - - // Act - obj.SetR(fernTestValueR) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetG_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor{} - var fernTestValueG int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin{} + var fernTestValueX float64 // Act - obj.SetG(fernTestValueG) + obj.SetX(fernTestValueX) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -144864,14 +183653,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor{} - var fernTestValueB int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin{} + var fernTestValueY float64 // Act - obj.SetB(fernTestValueB) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -144897,331 +183686,421 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags(t *testing.T) { - t.Run("SetInvisible", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} - var fernTestValueInvisible bool - obj.SetInvisible(fernTestValueInvisible) - assert.Equal(t, fernTestValueInvisible, obj.Invisible) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetHidden", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} - var fernTestValueHidden bool - obj.SetHidden(fernTestValueHidden) - assert.Equal(t, fernTestValueHidden, obj.Hidden) + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPrint", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} - var fernTestValuePrint bool - obj.SetPrint(fernTestValuePrint) - assert.Equal(t, fernTestValuePrint, obj.Print) + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNoZoom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} - var fernTestValueNoZoom bool - obj.SetNoZoom(fernTestValueNoZoom) - assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNoRotate", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} - var fernTestValueNoRotate bool - obj.SetNoRotate(fernTestValueNoRotate) - assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} - var fernTestValueNoView bool - obj.SetNoView(fernTestValueNoView) - assert.Equal(t, fernTestValueNoView, obj.NoView) + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} - var fernTestValueReadOnly bool - obj.SetReadOnly(fernTestValueReadOnly) - assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetLocked", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} - var fernTestValueLocked bool - obj.SetLocked(fernTestValueLocked) - assert.Equal(t, fernTestValueLocked, obj.Locked) + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetToggleNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} - var fernTestValueToggleNoView bool - obj.SetToggleNoView(fernTestValueToggleNoView) - assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetLockedContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} - var fernTestValueLockedContents bool - obj.SetLockedContents(fernTestValueLockedContents) - assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags(t *testing.T) { - t.Run("GetInvisible", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} - var expected bool - obj.Invisible = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + var expected string + obj.Unit = expected // Act & Assert - assert.Equal(t, expected, obj.GetInvisible(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") }) - t.Run("GetInvisible_NilReceiver", func(t *testing.T) { + t.Run("GetUnit_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInvisible() // Should return zero value + _ = obj.GetUnit() // Should return zero value }) - t.Run("GetHidden", func(t *testing.T) { + t.Run("GetConversion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} - var expected bool - obj.Hidden = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + var expected *float64 + obj.Conversion = expected // Act & Assert - assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") }) - t.Run("GetHidden_NilReceiver", func(t *testing.T) { + t.Run("GetConversion_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + obj.Conversion = nil + + // Act & Assert + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") + }) + + t.Run("GetConversion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetHidden() // Should return zero value + _ = obj.GetConversion() // Should return zero value }) - t.Run("GetPrint", func(t *testing.T) { + t.Run("GetFraction", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} - var expected bool - obj.Print = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFraction + obj.Fraction = expected // Act & Assert - assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") }) - t.Run("GetPrint_NilReceiver", func(t *testing.T) { + t.Run("GetFraction_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + obj.Fraction = nil + + // Act & Assert + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") + }) + + t.Run("GetFraction_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPrint() // Should return zero value + _ = obj.GetFraction() // Should return zero value }) - t.Run("GetNoZoom", func(t *testing.T) { + t.Run("GetPrecision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} - var expected bool - obj.NoZoom = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + var expected *int + obj.Precision = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") }) - t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { + t.Run("GetPrecision_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + obj.Precision = nil + + // Act & Assert + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") + }) + + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNoZoom() // Should return zero value + _ = obj.GetPrecision() // Should return zero value }) - t.Run("GetNoRotate", func(t *testing.T) { + t.Run("GetFixed", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} - var expected bool - obj.NoRotate = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + var expected *bool + obj.Fixed = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") }) - t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { + t.Run("GetFixed_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + obj.Fixed = nil + + // Act & Assert + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") + }) + + t.Run("GetFixed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNoRotate() // Should return zero value + _ = obj.GetFixed() // Should return zero value + }) + + t.Run("GetThousands", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + var expected *string + obj.Thousands = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") }) - t.Run("GetNoView", func(t *testing.T) { + t.Run("GetThousands_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} - var expected bool - obj.NoView = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + obj.Thousands = nil // Act & Assert - assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") }) - t.Run("GetNoView_NilReceiver", func(t *testing.T) { + t.Run("GetThousands_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNoView() // Should return zero value + _ = obj.GetThousands() // Should return zero value }) - t.Run("GetReadOnly", func(t *testing.T) { + t.Run("GetDecimal", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} - var expected bool - obj.ReadOnly = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + var expected *string + obj.Decimal = expected // Act & Assert - assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") }) - t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { + t.Run("GetDecimal_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + obj.Decimal = nil + + // Act & Assert + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") + }) + + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReadOnly() // Should return zero value + _ = obj.GetDecimal() // Should return zero value }) - t.Run("GetLocked", func(t *testing.T) { + t.Run("GetPrefixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} - var expected bool - obj.Locked = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + var expected *string + obj.PrefixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") }) - t.Run("GetLocked_NilReceiver", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + obj.PrefixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLocked() // Should return zero value + _ = obj.GetPrefixSpacing() // Should return zero value }) - t.Run("GetToggleNoView", func(t *testing.T) { + t.Run("GetSuffixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} - var expected bool - obj.ToggleNoView = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + var expected *string + obj.SuffixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") }) - t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + obj.SuffixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetToggleNoView() // Should return zero value + _ = obj.GetSuffixSpacing() // Should return zero value }) - t.Run("GetLockedContents", func(t *testing.T) { + t.Run("GetLabelPosition", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} - var expected bool - obj.LockedContents = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemLabelPosition + obj.LabelPosition = expected // Act & Assert - assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") }) - t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + obj.LabelPosition = nil + + // Act & Assert + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") + }) + + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLockedContents() // Should return zero value + _ = obj.GetLabelPosition() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags(t *testing.T) { - t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} - var fernTestValueInvisible bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValueUnit string // Act - obj.SetInvisible(fernTestValueInvisible) + obj.SetUnit(fernTestValueUnit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -145245,14 +184124,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetHidden_MarksExplicit", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} - var fernTestValueHidden bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValueConversion *float64 // Act - obj.SetHidden(fernTestValueHidden) + obj.SetConversion(fernTestValueConversion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -145276,14 +184155,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPrint_MarksExplicit", func(t *testing.T) { + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} - var fernTestValuePrint bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFraction // Act - obj.SetPrint(fernTestValuePrint) + obj.SetFraction(fernTestValueFraction) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -145307,14 +184186,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} - var fernTestValueNoZoom bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValuePrecision *int // Act - obj.SetNoZoom(fernTestValueNoZoom) + obj.SetPrecision(fernTestValuePrecision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -145338,14 +184217,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} - var fernTestValueNoRotate bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValueFixed *bool // Act - obj.SetNoRotate(fernTestValueNoRotate) + obj.SetFixed(fernTestValueFixed) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -145369,14 +184248,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoView_MarksExplicit", func(t *testing.T) { + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} - var fernTestValueNoView bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValueThousands *string // Act - obj.SetNoView(fernTestValueNoView) + obj.SetThousands(fernTestValueThousands) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -145400,14 +184279,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} - var fernTestValueReadOnly bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValueDecimal *string // Act - obj.SetReadOnly(fernTestValueReadOnly) + obj.SetDecimal(fernTestValueDecimal) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -145431,14 +184310,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLocked_MarksExplicit", func(t *testing.T) { + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} - var fernTestValueLocked bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValuePrefixSpacing *string // Act - obj.SetLocked(fernTestValueLocked) + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -145462,14 +184341,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} - var fernTestValueToggleNoView bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValueSuffixSpacing *string // Act - obj.SetToggleNoView(fernTestValueToggleNoView) + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -145493,14 +184372,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineFlags{} - var fernTestValueLockedContents bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemLabelPosition // Act - obj.SetLockedContents(fernTestValueLockedContents) + obj.SetLabelPosition(fernTestValueLabelPosition) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -145526,249 +184405,421 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} var expected string - obj.Kind = expected + obj.Unit = expected // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetUnit_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKind() // Should return zero value + _ = obj.GetUnit() // Should return zero value }) - t.Run("GetObjectNumber", func(t *testing.T) { + t.Run("GetConversion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber - obj.ObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + var expected *float64 + obj.Conversion = expected // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") }) - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Run("GetConversion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo{} - obj.ObjectNumber = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + obj.Conversion = nil // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") }) - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetConversion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetObjectNumber() // Should return zero value + _ = obj.GetConversion() // Should return zero value }) - t.Run("GetNm", func(t *testing.T) { + t.Run("GetFraction", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm - obj.Nm = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFraction + obj.Fraction = expected // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") }) - t.Run("GetNm_NilValue", func(t *testing.T) { + t.Run("GetFraction_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo{} - obj.Nm = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + obj.Fraction = nil // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetFraction_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetFraction() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetPrecision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex - obj.Index = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + var expected *int + obj.Precision = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") }) - t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Run("GetPrecision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo{} - obj.Index = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + obj.Precision = nil // Act & Assert - assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetPrecision() // Should return zero value }) -} + t.Run("GetFixed", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + var expected *bool + obj.Fixed = expected -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") }) - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) - assert.NotNil(t, obj.explicitFields) + t.Run("GetFixed_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + obj.Fixed = nil + + // Act & Assert + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") }) - t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) - assert.NotNil(t, obj.explicitFields) + t.Run("GetFixed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFixed() // Should return zero value }) -} + t.Run("GetThousands", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + var expected *string + obj.Thousands = expected -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + // Act & Assert + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") + }) + + t.Run("GetThousands_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + obj.Thousands = nil // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetThousands_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetThousands() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetDecimal", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex{} - var expected int - obj.Index = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + var expected *string + obj.Decimal = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetDecimal_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + obj.Decimal = nil + + // Act & Assert + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") + }) + + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetDecimal() // Should return zero value }) - t.Run("GetRevision", func(t *testing.T) { + t.Run("GetPrefixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision - obj.Revision = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + var expected *string + obj.PrefixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") }) - t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex{} - obj.Revision = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + obj.PrefixSpacing = nil // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRevision() // Should return zero value + _ = obj.GetPrefixSpacing() // Should return zero value + }) + + t.Run("GetSuffixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + var expected *string + obj.SuffixSpacing = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") + }) + + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + obj.SuffixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSuffixSpacing() // Should return zero value + }) + + t.Run("GetLabelPosition", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemLabelPosition + obj.LabelPosition = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") + }) + + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + obj.LabelPosition = nil + + // Act & Assert + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") + }) + + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLabelPosition() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValueUnit string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetUnit(fernTestValueUnit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -145792,14 +184843,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex{} - var fernTestValueIndex int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValueConversion *float64 // Act - obj.SetIndex(fernTestValueIndex) + obj.SetConversion(fernTestValueConversion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -145823,14 +184874,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFraction // Act - obj.SetRevision(fernTestValueRevision) + obj.SetFraction(fernTestValueFraction) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -145854,116 +184905,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision{} - var fernTestValueDocSessionID string - obj.SetDocSessionID(fernTestValueDocSessionID) - assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision{} - var expected string - obj.DocSessionID = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") - }) - - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetDocSessionID() // Should return zero value - }) - - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetGeneration", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision{} - var expected int - obj.Generation = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") - }) - - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetGeneration() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision{} - var fernTestValueDocSessionID string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValuePrecision *int // Act - obj.SetDocSessionID(fernTestValueDocSessionID) + obj.SetPrecision(fernTestValuePrecision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -145987,14 +184936,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValueFixed *bool // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetFixed(fernTestValueFixed) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -146018,14 +184967,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToIndexRevision{} - var fernTestValueGeneration int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValueThousands *string // Act - obj.SetGeneration(fernTestValueGeneration) + obj.SetThousands(fernTestValueThousands) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -146049,85 +184998,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm{} - var fernTestValueNm string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm{} - var expected string - obj.Nm = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") - }) - - t.Run("GetNm_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNm() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValueDecimal *string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetDecimal(fernTestValueDecimal) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -146151,14 +185029,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToNm{} - var fernTestValueNm string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValuePrefixSpacing *string // Act - obj.SetNm(fernTestValueNm) + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -146182,85 +185060,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetAnnotObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") - }) - - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAnnotObjectNumber() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValueSuffixSpacing *string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -146284,14 +185091,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemLabelPosition // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + obj.SetLabelPosition(fernTestValueLabelPosition) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -146317,431 +185124,421 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor(t *testing.T) { - t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor{} - var fernTestValueR int - obj.SetR(fernTestValueR) - assert.Equal(t, fernTestValueR, obj.R) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor{} - var fernTestValueG int - obj.SetG(fernTestValueG) - assert.Equal(t, fernTestValueG, obj.G) + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor{} - var fernTestValueB int - obj.SetB(fernTestValueB) - assert.Equal(t, fernTestValueB, obj.B) + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor(t *testing.T) { - t.Run("GetR", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor{} - var expected int - obj.R = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + var expected string + obj.Unit = expected // Act & Assert - assert.Equal(t, expected, obj.GetR(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") }) - t.Run("GetR_NilReceiver", func(t *testing.T) { + t.Run("GetUnit_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetR() // Should return zero value + _ = obj.GetUnit() // Should return zero value }) - t.Run("GetG", func(t *testing.T) { + t.Run("GetConversion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor{} - var expected int - obj.G = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + var expected *float64 + obj.Conversion = expected // Act & Assert - assert.Equal(t, expected, obj.GetG(), "getter should return the property value") + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") }) - t.Run("GetG_NilReceiver", func(t *testing.T) { + t.Run("GetConversion_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + obj.Conversion = nil + + // Act & Assert + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") + }) + + t.Run("GetConversion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetG() // Should return zero value + _ = obj.GetConversion() // Should return zero value }) - t.Run("GetB", func(t *testing.T) { + t.Run("GetFraction", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor{} - var expected int - obj.B = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFraction + obj.Fraction = expected // Act & Assert - assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") }) - t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Run("GetFraction_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + obj.Fraction = nil + + // Act & Assert + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") + }) + + t.Run("GetFraction_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetB() // Should return zero value + _ = obj.GetFraction() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor(t *testing.T) { - t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Run("GetPrecision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor{} - var fernTestValueR int - - // Act - obj.SetR(fernTestValueR) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + var expected *int + obj.Precision = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") }) - t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Run("GetPrecision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor{} - var fernTestValueG int - - // Act - obj.SetG(fernTestValueG) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + obj.Precision = nil - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") }) - t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInteriorColor{} - var fernTestValueB int - - // Act - obj.SetB(fernTestValueB) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrecision() // Should return zero value }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings(t *testing.T) { - t.Run("SetStart", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings{} - var fernTestValueStart DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart - obj.SetStart(fernTestValueStart) - assert.Equal(t, fernTestValueStart, obj.Start) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("GetFixed", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + var expected *bool + obj.Fixed = expected - t.Run("SetEnd", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings{} - var fernTestValueEnd DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd - obj.SetEnd(fernTestValueEnd) - assert.Equal(t, fernTestValueEnd, obj.End) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") }) -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings(t *testing.T) { - t.Run("GetStart", func(t *testing.T) { + t.Run("GetFixed_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart - obj.Start = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + obj.Fixed = nil // Act & Assert - assert.Equal(t, expected, obj.GetStart(), "getter should return the property value") + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") }) - t.Run("GetStart_NilReceiver", func(t *testing.T) { + t.Run("GetFixed_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetStart() // Should return zero value + _ = obj.GetFixed() // Should return zero value }) - t.Run("GetEnd", func(t *testing.T) { + t.Run("GetThousands", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd - obj.End = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + var expected *string + obj.Thousands = expected // Act & Assert - assert.Equal(t, expected, obj.GetEnd(), "getter should return the property value") + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") }) - t.Run("GetEnd_NilReceiver", func(t *testing.T) { + t.Run("GetThousands_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + obj.Thousands = nil + + // Act & Assert + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") + }) + + t.Run("GetThousands_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetEnd() // Should return zero value + _ = obj.GetThousands() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings(t *testing.T) { - t.Run("SetStart_MarksExplicit", func(t *testing.T) { + t.Run("GetDecimal", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings{} - var fernTestValueStart DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsStart - - // Act - obj.SetStart(fernTestValueStart) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + var expected *string + obj.Decimal = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") }) - t.Run("SetEnd_MarksExplicit", func(t *testing.T) { + t.Run("GetDecimal_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings{} - var fernTestValueEnd DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + obj.Decimal = nil - // Act - obj.SetEnd(fernTestValueEnd) + // Act & Assert + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDecimal() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetPrefixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + var expected *string + obj.PrefixSpacing = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") }) -} + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + obj.PrefixSpacing = nil -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints(t *testing.T) { - t.Run("SetStart", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints{} - var fernTestValueStart *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart - obj.SetStart(fernTestValueStart) - assert.Equal(t, fernTestValueStart, obj.Start) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") }) - t.Run("SetEnd", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints{} - var fernTestValueEnd *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd - obj.SetEnd(fernTestValueEnd) - assert.Equal(t, fernTestValueEnd, obj.End) - assert.NotNil(t, obj.explicitFields) + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrefixSpacing() // Should return zero value }) -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints(t *testing.T) { - t.Run("GetStart", func(t *testing.T) { + t.Run("GetSuffixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart - obj.Start = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + var expected *string + obj.SuffixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetStart(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") }) - t.Run("GetStart_NilValue", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints{} - obj.Start = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + obj.SuffixSpacing = nil // Act & Assert - assert.Nil(t, obj.GetStart(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetStart_NilReceiver", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetStart() // Should return zero value + _ = obj.GetSuffixSpacing() // Should return zero value }) - t.Run("GetEnd", func(t *testing.T) { + t.Run("GetLabelPosition", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd - obj.End = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemLabelPosition + obj.LabelPosition = expected // Act & Assert - assert.Equal(t, expected, obj.GetEnd(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") }) - t.Run("GetEnd_NilValue", func(t *testing.T) { + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints{} - obj.End = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + obj.LabelPosition = nil // Act & Assert - assert.Nil(t, obj.GetEnd(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") }) - t.Run("GetEnd_NilReceiver", func(t *testing.T) { + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetEnd() // Should return zero value + _ = obj.GetLabelPosition() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints(t *testing.T) { - t.Run("SetStart_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints{} - var fernTestValueStart *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValueUnit string // Act - obj.SetStart(fernTestValueStart) + obj.SetUnit(fernTestValueUnit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -146765,14 +185562,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetEnd_MarksExplicit", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePoints{} - var fernTestValueEnd *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValueConversion *float64 // Act - obj.SetEnd(fernTestValueEnd) + obj.SetConversion(fernTestValueConversion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -146796,85 +185593,76 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd(t *testing.T) { - t.Run("GetX", func(t *testing.T) { + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd{} - var expected float64 - obj.X = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFraction - // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") - }) + // Act + obj.SetFraction(fernTestValueFraction) - t.Run("GetX_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetX() // Should return zero value + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetY", func(t *testing.T) { + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd{} - var expected float64 - obj.Y = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValuePrecision *int - // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") - }) + // Act + obj.SetPrecision(fernTestValuePrecision) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetY_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetY() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd{} - var fernTestValueX float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValueFixed *bool // Act - obj.SetX(fernTestValueX) + obj.SetFixed(fernTestValueFixed) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -146898,14 +185686,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsEnd{} - var fernTestValueY float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValueThousands *string // Act - obj.SetY(fernTestValueY) + obj.SetThousands(fernTestValueThousands) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -146929,85 +185717,76 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart(t *testing.T) { - t.Run("GetX", func(t *testing.T) { + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart{} - var expected float64 - obj.X = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValueDecimal *string - // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") - }) + // Act + obj.SetDecimal(fernTestValueDecimal) - t.Run("GetX_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetX() // Should return zero value + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetY", func(t *testing.T) { + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart{} - var expected float64 - obj.Y = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValuePrefixSpacing *string - // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") - }) + // Act + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) - t.Run("GetY_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetY() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") -} + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart{} - var fernTestValueX float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValueSuffixSpacing *string // Act - obj.SetX(fernTestValueX) + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -147031,14 +185810,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLinePointsStart{} - var fernTestValueY float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemLabelPosition // Act - obj.SetY(fernTestValueY) + obj.SetLabelPosition(fernTestValueLabelPosition) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -147064,9 +185843,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect(t *testing.T) { t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} var fernTestValueLeft float64 obj.SetLeft(fernTestValueLeft) assert.Equal(t, fernTestValueLeft, obj.Left) @@ -147074,7 +185853,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect }) t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} var fernTestValueBottom float64 obj.SetBottom(fernTestValueBottom) assert.Equal(t, fernTestValueBottom, obj.Bottom) @@ -147082,7 +185861,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect }) t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} var fernTestValueRight float64 obj.SetRight(fernTestValueRight) assert.Equal(t, fernTestValueRight, obj.Right) @@ -147090,7 +185869,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect }) t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} var fernTestValueTop float64 obj.SetTop(fernTestValueTop) assert.Equal(t, fernTestValueTop, obj.Top) @@ -147099,11 +185878,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect(t *testing.T) { t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} var expected float64 obj.Left = expected @@ -147113,7 +185892,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -147126,7 +185905,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} var expected float64 obj.Bottom = expected @@ -147136,7 +185915,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -147149,7 +185928,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} var expected float64 obj.Right = expected @@ -147159,7 +185938,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -147172,7 +185951,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} var expected float64 obj.Top = expected @@ -147182,7 +185961,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -147194,11 +185973,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect(t *testing.T) { t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} var fernTestValueLeft float64 // Act @@ -147229,7 +186008,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} var fernTestValueBottom float64 // Act @@ -147260,7 +186039,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} var fernTestValueRight float64 // Act @@ -147291,7 +186070,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} var fernTestValueTop float64 // Act @@ -147321,11 +186100,11 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef{} var expected string obj.Kind = expected @@ -147335,7 +186114,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef( t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -147348,8 +186127,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef( t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -147359,7 +186138,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef( t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef{} obj.ObjectNumber = nil // Act & Assert @@ -147368,7 +186147,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef( t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -147381,8 +186160,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef( t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm obj.Nm = expected // Act & Assert @@ -147392,7 +186171,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef( t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef{} obj.Nm = nil // Act & Assert @@ -147401,7 +186180,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef( t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -147414,8 +186193,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef( t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex obj.Index = expected // Act & Assert @@ -147425,7 +186204,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef( t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef{} obj.Index = nil // Act & Assert @@ -147434,7 +186213,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef( t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -147446,9 +186225,9 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRef( } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -147456,7 +186235,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefI }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -147464,8 +186243,8 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefI }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -147473,11 +186252,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefI } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex{} var expected int obj.PageObjectNumber = expected @@ -147487,7 +186266,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefI t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -147500,7 +186279,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefI t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex{} var expected int obj.Index = expected @@ -147510,7 +186289,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefI t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -147523,8 +186302,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefI t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision obj.Revision = expected // Act & Assert @@ -147534,7 +186313,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefI t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex{} obj.Revision = nil // Act & Assert @@ -147543,7 +186322,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefI t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -147555,11 +186334,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefI } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex{} var fernTestValuePageObjectNumber int // Act @@ -147590,7 +186369,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex{} var fernTestValueIndex int // Act @@ -147621,8 +186400,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -147651,9 +186430,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -147661,7 +186440,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefI }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -147669,7 +186448,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefI }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -147678,11 +186457,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefI } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision{} var expected string obj.DocSessionID = expected @@ -147692,7 +186471,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefI t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -147705,7 +186484,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefI t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -147715,7 +186494,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefI t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -147728,7 +186507,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefI t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision{} var expected int obj.Generation = expected @@ -147738,7 +186517,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefI t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -147750,11 +186529,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefI } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision{} var fernTestValueDocSessionID string // Act @@ -147785,7 +186564,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -147816,7 +186595,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision{} var fernTestValueGeneration int // Act @@ -147846,9 +186625,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -147856,7 +186635,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefN }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm{} var fernTestValueNm string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -147865,11 +186644,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefN } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm{} var expected int obj.PageObjectNumber = expected @@ -147879,7 +186658,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefN t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -147892,7 +186671,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefN t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm{} var expected string obj.Nm = expected @@ -147902,7 +186681,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefN t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -147914,11 +186693,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefN } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm{} var fernTestValuePageObjectNumber int // Act @@ -147949,7 +186728,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm{} var fernTestValueNm string // Act @@ -147979,9 +186758,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -147989,7 +186768,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefO }) t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber{} var fernTestValueAnnotObjectNumber int obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) @@ -147998,11 +186777,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefO } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber{} var expected int obj.PageObjectNumber = expected @@ -148012,7 +186791,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefO t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -148025,7 +186804,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefO t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber{} var expected int obj.AnnotObjectNumber = expected @@ -148035,7 +186814,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefO t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -148047,11 +186826,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefO } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber{} var fernTestValuePageObjectNumber int // Act @@ -148082,7 +186861,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber{} var fernTestValueAnnotObjectNumber int // Act @@ -148112,17 +186891,174 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem(t *testing.T) { + t.Run("GetX", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem{} + var expected float64 + obj.X = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem{} + var expected float64 + obj.Y = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + }) + + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem{} + var fernTestValueX float64 + + // Act + obj.SetX(fernTestValueX) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem{} + var fernTestValueY float64 + + // Act + obj.SetY(fernTestValueY) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline(t *testing.T) { + t.Run("SetIntent", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueIntent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIntent + obj.SetIntent(fernTestValueIntent) + assert.Equal(t, fernTestValueIntent, obj.Intent) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMeasure", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueMeasure *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasure + obj.SetMeasure(fernTestValueMeasure) + assert.Equal(t, fernTestValueMeasure, obj.Measure) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCaption", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueCaption *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption + obj.SetCaption(fernTestValueCaption) + assert.Equal(t, fernTestValueCaption, obj.Caption) + assert.NotNil(t, obj.explicitFields) + }) + t.Run("SetRef", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef obj.SetRef(fernTestValueRef) assert.Equal(t, fernTestValueRef, obj.Ref) assert.NotNil(t, obj.explicitFields) }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -148130,7 +187066,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -148138,15 +187074,15 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * }) t.Run("SetIdentityQuality", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality obj.SetIdentityQuality(fernTestValueIdentityQuality) assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) assert.NotNil(t, obj.explicitFields) }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} var fernTestValueNm *string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -148154,23 +187090,23 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * }) t.Run("SetFlags", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags obj.SetFlags(fernTestValueFlags) assert.Equal(t, fernTestValueFlags, obj.Flags) assert.NotNil(t, obj.explicitFields) }) t.Run("SetRect", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect obj.SetRect(fernTestValueRect) assert.Equal(t, fernTestValueRect, obj.Rect) assert.NotNil(t, obj.explicitFields) }) t.Run("SetContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} var fernTestValueContents *string obj.SetContents(fernTestValueContents) assert.Equal(t, fernTestValueContents, obj.Contents) @@ -148178,7 +187114,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * }) t.Run("SetSubject", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} var fernTestValueSubject *string obj.SetSubject(fernTestValueSubject) assert.Equal(t, fernTestValueSubject, obj.Subject) @@ -148186,7 +187122,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * }) t.Run("SetAuthor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} var fernTestValueAuthor *string obj.SetAuthor(fernTestValueAuthor) assert.Equal(t, fernTestValueAuthor, obj.Author) @@ -148194,7 +187130,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * }) t.Run("SetCreated", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} var fernTestValueCreated *time.Time obj.SetCreated(fernTestValueCreated) assert.Equal(t, fernTestValueCreated, obj.Created) @@ -148202,7 +187138,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * }) t.Run("SetModified", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} var fernTestValueModified *time.Time obj.SetModified(fernTestValueModified) assert.Equal(t, fernTestValueModified, obj.Modified) @@ -148210,31 +187146,31 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * }) t.Run("SetBlendMode", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode obj.SetBlendMode(fernTestValueBlendMode) assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) assert.NotNil(t, obj.explicitFields) }) t.Run("SetInReplyTo", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo obj.SetInReplyTo(fernTestValueInReplyTo) assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) assert.NotNil(t, obj.explicitFields) }) t.Run("SetReplyType", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyType obj.SetReplyType(fernTestValueReplyType) assert.Equal(t, fernTestValueReplyType, obj.ReplyType) assert.NotNil(t, obj.explicitFields) }) t.Run("SetUserID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} var fernTestValueUserID *string obj.SetUserID(fernTestValueUserID) assert.Equal(t, fernTestValueUserID, obj.UserID) @@ -148242,7 +187178,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * }) t.Run("SetGroupID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} var fernTestValueGroupID *string obj.SetGroupID(fernTestValueGroupID) assert.Equal(t, fernTestValueGroupID, obj.GroupID) @@ -148250,7 +187186,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * }) t.Run("SetCreatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} var fernTestValueCreatedBy *string obj.SetCreatedBy(fernTestValueCreatedBy) assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) @@ -148258,7 +187194,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * }) t.Run("SetUpdatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} var fernTestValueUpdatedBy *string obj.SetUpdatedBy(fernTestValueUpdatedBy) assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) @@ -148266,29 +187202,192 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * }) t.Run("SetActions", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} var fernTestValueActions *PdfAnnotationActions obj.SetActions(fernTestValueActions) assert.Equal(t, fernTestValueActions, obj.Actions) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTarget", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - var fernTestValueTarget *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget - obj.SetTarget(fernTestValueTarget) - assert.Equal(t, fernTestValueTarget, obj.Target) + t.Run("SetColor", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor + obj.SetColor(fernTestValueColor) + assert.Equal(t, fernTestValueColor, obj.Color) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetOpacity", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueOpacity float64 + obj.SetOpacity(fernTestValueOpacity) + assert.Equal(t, fernTestValueOpacity, obj.Opacity) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetStrokeWidth", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueStrokeWidth float64 + obj.SetStrokeWidth(fernTestValueStrokeWidth) + assert.Equal(t, fernTestValueStrokeWidth, obj.StrokeWidth) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBorderStyle", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle + obj.SetBorderStyle(fernTestValueBorderStyle) + assert.Equal(t, fernTestValueBorderStyle, obj.BorderStyle) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDashArray", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueDashArray []float64 + obj.SetDashArray(fernTestValueDashArray) + assert.Equal(t, fernTestValueDashArray, obj.DashArray) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetInteriorColor", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor + obj.SetInteriorColor(fernTestValueInteriorColor) + assert.Equal(t, fernTestValueInteriorColor, obj.InteriorColor) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetVertices", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueVertices []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem + obj.SetVertices(fernTestValueVertices) + assert.Equal(t, fernTestValueVertices, obj.Vertices) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRotation", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueRotation *float64 + obj.SetRotation(fernTestValueRotation) + assert.Equal(t, fernTestValueRotation, obj.Rotation) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLineEndings", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueLineEndings *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings + obj.SetLineEndings(fernTestValueLineEndings) + assert.Equal(t, fernTestValueLineEndings, obj.LineEndings) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline(t *testing.T) { + t.Run("GetIntent", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIntent + obj.Intent = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetIntent(), "getter should return the property value") + }) + + t.Run("GetIntent_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj.Intent = nil + + // Act & Assert + assert.Nil(t, obj.GetIntent(), "getter should return nil when property is nil") + }) + + t.Run("GetIntent_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIntent() // Should return zero value + }) + + t.Run("GetMeasure", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasure + obj.Measure = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMeasure(), "getter should return the property value") + }) + + t.Run("GetMeasure_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj.Measure = nil + + // Act & Assert + assert.Nil(t, obj.GetMeasure(), "getter should return nil when property is nil") + }) + + t.Run("GetMeasure_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMeasure() // Should return zero value + }) + + t.Run("GetCaption", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption + obj.Caption = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCaption(), "getter should return the property value") + }) + + t.Run("GetCaption_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj.Caption = nil + + // Act & Assert + assert.Nil(t, obj.GetCaption(), "getter should return nil when property is nil") + }) + + t.Run("GetCaption_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCaption() // Should return zero value + }) + t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef obj.Ref = expected // Act & Assert @@ -148298,7 +187397,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * t.Run("GetRef_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} obj.Ref = nil // Act & Assert @@ -148307,7 +187406,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * t.Run("GetRef_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -148320,7 +187419,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} var expected int obj.PageObjectNumber = expected @@ -148330,7 +187429,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -148343,7 +187442,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} var expected int obj.Index = expected @@ -148353,7 +187452,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -148366,8 +187465,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * t.Run("GetIdentityQuality", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality obj.IdentityQuality = expected // Act & Assert @@ -148376,7 +187475,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -148389,7 +187488,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} var expected *string obj.Nm = expected @@ -148400,7 +187499,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} obj.Nm = nil // Act & Assert @@ -148409,7 +187508,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -148422,8 +187521,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags obj.Flags = expected // Act & Assert @@ -148433,7 +187532,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} obj.Flags = nil // Act & Assert @@ -148442,7 +187541,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * t.Run("GetFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -148455,8 +187554,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * t.Run("GetRect", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect obj.Rect = expected // Act & Assert @@ -148466,7 +187565,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * t.Run("GetRect_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} obj.Rect = nil // Act & Assert @@ -148475,7 +187574,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * t.Run("GetRect_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -148488,7 +187587,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * t.Run("GetContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} var expected *string obj.Contents = expected @@ -148499,7 +187598,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * t.Run("GetContents_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} obj.Contents = nil // Act & Assert @@ -148508,7 +187607,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * t.Run("GetContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -148521,7 +187620,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * t.Run("GetSubject", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} var expected *string obj.Subject = expected @@ -148532,7 +187631,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * t.Run("GetSubject_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} obj.Subject = nil // Act & Assert @@ -148541,7 +187640,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * t.Run("GetSubject_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -148554,7 +187653,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * t.Run("GetAuthor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} var expected *string obj.Author = expected @@ -148565,7 +187664,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * t.Run("GetAuthor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} obj.Author = nil // Act & Assert @@ -148574,7 +187673,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * t.Run("GetAuthor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -148587,7 +187686,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * t.Run("GetCreated", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} var expected *time.Time obj.Created = expected @@ -148598,353 +187697,680 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t * t.Run("GetCreated_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} obj.Created = nil // Act & Assert - assert.Nil(t, obj.GetCreated(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCreated(), "getter should return nil when property is nil") + }) + + t.Run("GetCreated_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCreated() // Should return zero value + }) + + t.Run("GetModified", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var expected *time.Time + obj.Modified = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") + }) + + t.Run("GetModified_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj.Modified = nil + + // Act & Assert + assert.Nil(t, obj.GetModified(), "getter should return nil when property is nil") + }) + + t.Run("GetModified_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetModified() // Should return zero value + }) + + t.Run("GetBlendMode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode + obj.BlendMode = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBlendMode(), "getter should return the property value") + }) + + t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBlendMode() // Should return zero value + }) + + t.Run("GetInReplyTo", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo + obj.InReplyTo = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetInReplyTo(), "getter should return the property value") + }) + + t.Run("GetInReplyTo_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj.InReplyTo = nil + + // Act & Assert + assert.Nil(t, obj.GetInReplyTo(), "getter should return nil when property is nil") + }) + + t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetInReplyTo() // Should return zero value + }) + + t.Run("GetReplyType", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyType + obj.ReplyType = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetReplyType(), "getter should return the property value") + }) + + t.Run("GetReplyType_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj.ReplyType = nil + + // Act & Assert + assert.Nil(t, obj.GetReplyType(), "getter should return nil when property is nil") + }) + + t.Run("GetReplyType_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetReplyType() // Should return zero value + }) + + t.Run("GetUserID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var expected *string + obj.UserID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") + }) + + t.Run("GetUserID_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj.UserID = nil + + // Act & Assert + assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") + }) + + t.Run("GetUserID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUserID() // Should return zero value + }) + + t.Run("GetGroupID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var expected *string + obj.GroupID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetGroupID(), "getter should return the property value") + }) + + t.Run("GetGroupID_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj.GroupID = nil + + // Act & Assert + assert.Nil(t, obj.GetGroupID(), "getter should return nil when property is nil") + }) + + t.Run("GetGroupID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGroupID() // Should return zero value + }) + + t.Run("GetCreatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var expected *string + obj.CreatedBy = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") + }) + + t.Run("GetCreatedBy_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj.CreatedBy = nil + + // Act & Assert + assert.Nil(t, obj.GetCreatedBy(), "getter should return nil when property is nil") + }) + + t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCreatedBy() // Should return zero value + }) + + t.Run("GetUpdatedBy", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var expected *string + obj.UpdatedBy = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUpdatedBy(), "getter should return the property value") + }) + + t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj.UpdatedBy = nil + + // Act & Assert + assert.Nil(t, obj.GetUpdatedBy(), "getter should return nil when property is nil") + }) + + t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUpdatedBy() // Should return zero value + }) + + t.Run("GetActions", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var expected *PdfAnnotationActions + obj.Actions = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") + }) + + t.Run("GetActions_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj.Actions = nil + + // Act & Assert + assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") }) - t.Run("GetCreated_NilReceiver", func(t *testing.T) { + t.Run("GetActions_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCreated() // Should return zero value + _ = obj.GetActions() // Should return zero value }) - t.Run("GetModified", func(t *testing.T) { + t.Run("GetColor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - var expected *time.Time - obj.Modified = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor + obj.Color = expected // Act & Assert - assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") + assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") }) - t.Run("GetModified_NilValue", func(t *testing.T) { + t.Run("GetColor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - obj.Modified = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj.Color = nil // Act & Assert - assert.Nil(t, obj.GetModified(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") }) - t.Run("GetModified_NilReceiver", func(t *testing.T) { + t.Run("GetColor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetModified() // Should return zero value + _ = obj.GetColor() // Should return zero value }) - t.Run("GetBlendMode", func(t *testing.T) { + t.Run("GetOpacity", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode - obj.BlendMode = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var expected float64 + obj.Opacity = expected // Act & Assert - assert.Equal(t, expected, obj.GetBlendMode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOpacity(), "getter should return the property value") }) - t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { + t.Run("GetOpacity_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBlendMode() // Should return zero value - }) - - t.Run("GetInReplyTo", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo - obj.InReplyTo = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetInReplyTo(), "getter should return the property value") + _ = obj.GetOpacity() // Should return zero value }) - t.Run("GetInReplyTo_NilValue", func(t *testing.T) { + t.Run("GetStrokeWidth", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - obj.InReplyTo = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var expected float64 + obj.StrokeWidth = expected // Act & Assert - assert.Nil(t, obj.GetInReplyTo(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetStrokeWidth(), "getter should return the property value") }) - t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { + t.Run("GetStrokeWidth_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInReplyTo() // Should return zero value - }) - - t.Run("GetReplyType", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyType - obj.ReplyType = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetReplyType(), "getter should return the property value") + _ = obj.GetStrokeWidth() // Should return zero value }) - t.Run("GetReplyType_NilValue", func(t *testing.T) { + t.Run("GetBorderStyle", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - obj.ReplyType = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle + obj.BorderStyle = expected // Act & Assert - assert.Nil(t, obj.GetReplyType(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetBorderStyle(), "getter should return the property value") }) - t.Run("GetReplyType_NilReceiver", func(t *testing.T) { + t.Run("GetBorderStyle_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReplyType() // Should return zero value + _ = obj.GetBorderStyle() // Should return zero value }) - t.Run("GetUserID", func(t *testing.T) { + t.Run("GetDashArray", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - var expected *string - obj.UserID = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var expected []float64 + obj.DashArray = expected // Act & Assert - assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDashArray(), "getter should return the property value") }) - t.Run("GetUserID_NilValue", func(t *testing.T) { + t.Run("GetDashArray_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - obj.UserID = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj.DashArray = nil // Act & Assert - assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetDashArray(), "getter should return nil when property is nil") }) - t.Run("GetUserID_NilReceiver", func(t *testing.T) { + t.Run("GetDashArray_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUserID() // Should return zero value + _ = obj.GetDashArray() // Should return zero value }) - t.Run("GetGroupID", func(t *testing.T) { + t.Run("GetInteriorColor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - var expected *string - obj.GroupID = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor + obj.InteriorColor = expected // Act & Assert - assert.Equal(t, expected, obj.GetGroupID(), "getter should return the property value") + assert.Equal(t, expected, obj.GetInteriorColor(), "getter should return the property value") }) - t.Run("GetGroupID_NilValue", func(t *testing.T) { + t.Run("GetInteriorColor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - obj.GroupID = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj.InteriorColor = nil // Act & Assert - assert.Nil(t, obj.GetGroupID(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetInteriorColor(), "getter should return nil when property is nil") }) - t.Run("GetGroupID_NilReceiver", func(t *testing.T) { + t.Run("GetInteriorColor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGroupID() // Should return zero value + _ = obj.GetInteriorColor() // Should return zero value }) - t.Run("GetCreatedBy", func(t *testing.T) { + t.Run("GetVertices", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - var expected *string - obj.CreatedBy = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem + obj.Vertices = expected // Act & Assert - assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") + assert.Equal(t, expected, obj.GetVertices(), "getter should return the property value") }) - t.Run("GetCreatedBy_NilValue", func(t *testing.T) { + t.Run("GetVertices_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - obj.CreatedBy = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj.Vertices = nil // Act & Assert - assert.Nil(t, obj.GetCreatedBy(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetVertices(), "getter should return nil when property is nil") }) - t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { + t.Run("GetVertices_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCreatedBy() // Should return zero value + _ = obj.GetVertices() // Should return zero value }) - t.Run("GetUpdatedBy", func(t *testing.T) { + t.Run("GetRotation", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - var expected *string - obj.UpdatedBy = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var expected *float64 + obj.Rotation = expected // Act & Assert - assert.Equal(t, expected, obj.GetUpdatedBy(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRotation(), "getter should return the property value") }) - t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { + t.Run("GetRotation_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - obj.UpdatedBy = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj.Rotation = nil // Act & Assert - assert.Nil(t, obj.GetUpdatedBy(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRotation(), "getter should return nil when property is nil") }) - t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { + t.Run("GetRotation_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUpdatedBy() // Should return zero value + _ = obj.GetRotation() // Should return zero value }) - t.Run("GetActions", func(t *testing.T) { + t.Run("GetLineEndings", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - var expected *PdfAnnotationActions - obj.Actions = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings + obj.LineEndings = expected // Act & Assert - assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLineEndings(), "getter should return the property value") }) - t.Run("GetActions_NilValue", func(t *testing.T) { + t.Run("GetLineEndings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - obj.Actions = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj.LineEndings = nil // Act & Assert - assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetLineEndings(), "getter should return nil when property is nil") }) - t.Run("GetActions_NilReceiver", func(t *testing.T) { + t.Run("GetLineEndings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetActions() // Should return zero value + _ = obj.GetLineEndings() // Should return zero value }) - t.Run("GetTarget", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline(t *testing.T) { + t.Run("SetIntent_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget - obj.Target = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueIntent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIntent - // Act & Assert - assert.Equal(t, expected, obj.GetTarget(), "getter should return the property value") + // Act + obj.SetIntent(fernTestValueIntent) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetTarget_NilValue", func(t *testing.T) { + t.Run("SetMeasure_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - obj.Target = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueMeasure *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasure - // Act & Assert - assert.Nil(t, obj.GetTarget(), "getter should return nil when property is nil") + // Act + obj.SetMeasure(fernTestValueMeasure) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetTarget_NilReceiver", func(t *testing.T) { + t.Run("SetCaption_MarksExplicit", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetTarget() // Should return zero value - }) + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueCaption *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption -} + // Act + obj.SetCaption(fernTestValueCaption) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink(t *testing.T) { t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef // Act obj.SetRef(fernTestValueRef) @@ -148974,7 +188400,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} var fernTestValuePageObjectNumber int // Act @@ -149005,7 +188431,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} var fernTestValueIndex int // Act @@ -149036,8 +188462,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality // Act obj.SetIdentityQuality(fernTestValueIdentityQuality) @@ -149067,7 +188493,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} var fernTestValueNm *string // Act @@ -149098,8 +188524,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags // Act obj.SetFlags(fernTestValueFlags) @@ -149129,8 +188555,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect // Act obj.SetRect(fernTestValueRect) @@ -149160,7 +188586,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} var fernTestValueContents *string // Act @@ -149191,7 +188617,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} var fernTestValueSubject *string // Act @@ -149222,7 +188648,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} var fernTestValueAuthor *string // Act @@ -149253,7 +188679,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} var fernTestValueCreated *time.Time // Act @@ -149284,7 +188710,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} var fernTestValueModified *time.Time // Act @@ -149315,8 +188741,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode // Act obj.SetBlendMode(fernTestValueBlendMode) @@ -149346,8 +188772,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo // Act obj.SetInReplyTo(fernTestValueInReplyTo) @@ -149377,8 +188803,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyType // Act obj.SetReplyType(fernTestValueReplyType) @@ -149405,107 +188831,826 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUserID_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - var fernTestValueUserID *string - - // Act - obj.SetUserID(fernTestValueUserID) + t.Run("SetUserID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueUserID *string + + // Act + obj.SetUserID(fernTestValueUserID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueGroupID *string + + // Act + obj.SetGroupID(fernTestValueGroupID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueCreatedBy *string + + // Act + obj.SetCreatedBy(fernTestValueCreatedBy) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueUpdatedBy *string + + // Act + obj.SetUpdatedBy(fernTestValueUpdatedBy) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueActions *PdfAnnotationActions + + // Act + obj.SetActions(fernTestValueActions) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetColor_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor + + // Act + obj.SetColor(fernTestValueColor) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueOpacity float64 + + // Act + obj.SetOpacity(fernTestValueOpacity) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetStrokeWidth_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueStrokeWidth float64 + + // Act + obj.SetStrokeWidth(fernTestValueStrokeWidth) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBorderStyle_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle + + // Act + obj.SetBorderStyle(fernTestValueBorderStyle) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDashArray_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueDashArray []float64 + + // Act + obj.SetDashArray(fernTestValueDashArray) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetInteriorColor_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor + + // Act + obj.SetInteriorColor(fernTestValueInteriorColor) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetVertices_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueVertices []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem + + // Act + obj.SetVertices(fernTestValueVertices) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRotation_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueRotation *float64 + + // Act + obj.SetRotation(fernTestValueRotation) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetLineEndings_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + var fernTestValueLineEndings *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings + + // Act + obj.SetLineEndings(fernTestValueLineEndings) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption(t *testing.T) { + t.Run("SetEnabled", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption{} + var fernTestValueEnabled bool + obj.SetEnabled(fernTestValueEnabled) + assert.Equal(t, fernTestValueEnabled, obj.Enabled) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCenter", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption{} + var fernTestValueCenter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter + obj.SetCenter(fernTestValueCenter) + assert.Equal(t, fernTestValueCenter, obj.Center) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption(t *testing.T) { + t.Run("GetEnabled", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption{} + var expected bool + obj.Enabled = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetEnabled(), "getter should return the property value") + }) + + t.Run("GetEnabled_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetEnabled() // Should return zero value + }) + + t.Run("GetCenter", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter + obj.Center = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCenter(), "getter should return the property value") + }) + + t.Run("GetCenter_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption{} + obj.Center = nil + + // Act & Assert + assert.Nil(t, obj.GetCenter(), "getter should return nil when property is nil") + }) + + t.Run("GetCenter_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCenter() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption(t *testing.T) { + t.Run("SetEnabled_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption{} + var fernTestValueEnabled bool + + // Act + obj.SetEnabled(fernTestValueEnabled) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCenter_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption{} + var fernTestValueCenter *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter + + // Act + obj.SetCenter(fernTestValueCenter) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter(t *testing.T) { + t.Run("GetX", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter{} + var expected float64 + obj.X = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter{} + var expected float64 + obj.Y = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + }) + + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter{} + var fernTestValueX float64 + + // Act + obj.SetX(fernTestValueX) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter{} + var fernTestValueY float64 + + // Act + obj.SetY(fernTestValueY) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor(t *testing.T) { + t.Run("SetR", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor{} + var fernTestValueR int + obj.SetR(fernTestValueR) + assert.Equal(t, fernTestValueR, obj.R) + assert.NotNil(t, obj.explicitFields) + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("SetG", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor{} + var fernTestValueG int + obj.SetG(fernTestValueG) + assert.Equal(t, fernTestValueG, obj.G) + assert.NotNil(t, obj.explicitFields) + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("SetB", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) + assert.NotNil(t, obj.explicitFields) }) - t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - var fernTestValueGroupID *string - - // Act - obj.SetGroupID(fernTestValueGroupID) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor{} + var expected int + obj.R = expected - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetR_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetR() // Should return zero value }) - t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { + t.Run("GetG", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - var fernTestValueCreatedBy *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor{} + var expected int + obj.G = expected - // Act - obj.SetCreatedBy(fernTestValueCreatedBy) + // Act & Assert + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetG_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetG() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetB", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor{} + var expected int + obj.B = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") }) - t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { + t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetB() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - var fernTestValueUpdatedBy *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor{} + var fernTestValueR int // Act - obj.SetUpdatedBy(fernTestValueUpdatedBy) + obj.SetR(fernTestValueR) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -149529,14 +189674,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - var fernTestValueActions *PdfAnnotationActions + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor{} + var fernTestValueG int // Act - obj.SetActions(fernTestValueActions) + obj.SetG(fernTestValueG) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -149560,14 +189705,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTarget_MarksExplicit", func(t *testing.T) { + t.Run("SetB_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLink{} - var fernTestValueTarget *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor{} + var fernTestValueB int // Act - obj.SetTarget(fernTestValueTarget) + obj.SetB(fernTestValueB) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -149593,9 +189738,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags(t *testing.T) { t.Run("SetInvisible", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} var fernTestValueInvisible bool obj.SetInvisible(fernTestValueInvisible) assert.Equal(t, fernTestValueInvisible, obj.Invisible) @@ -149603,7 +189748,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlag }) t.Run("SetHidden", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} var fernTestValueHidden bool obj.SetHidden(fernTestValueHidden) assert.Equal(t, fernTestValueHidden, obj.Hidden) @@ -149611,7 +189756,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlag }) t.Run("SetPrint", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} var fernTestValuePrint bool obj.SetPrint(fernTestValuePrint) assert.Equal(t, fernTestValuePrint, obj.Print) @@ -149619,7 +189764,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlag }) t.Run("SetNoZoom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} var fernTestValueNoZoom bool obj.SetNoZoom(fernTestValueNoZoom) assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) @@ -149627,7 +189772,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlag }) t.Run("SetNoRotate", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} var fernTestValueNoRotate bool obj.SetNoRotate(fernTestValueNoRotate) assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) @@ -149635,7 +189780,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlag }) t.Run("SetNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} var fernTestValueNoView bool obj.SetNoView(fernTestValueNoView) assert.Equal(t, fernTestValueNoView, obj.NoView) @@ -149643,7 +189788,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlag }) t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} var fernTestValueReadOnly bool obj.SetReadOnly(fernTestValueReadOnly) assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) @@ -149651,7 +189796,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlag }) t.Run("SetLocked", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} var fernTestValueLocked bool obj.SetLocked(fernTestValueLocked) assert.Equal(t, fernTestValueLocked, obj.Locked) @@ -149659,7 +189804,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlag }) t.Run("SetToggleNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} var fernTestValueToggleNoView bool obj.SetToggleNoView(fernTestValueToggleNoView) assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) @@ -149667,7 +189812,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlag }) t.Run("SetLockedContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} var fernTestValueLockedContents bool obj.SetLockedContents(fernTestValueLockedContents) assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) @@ -149676,11 +189821,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlag } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags(t *testing.T) { t.Run("GetInvisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} var expected bool obj.Invisible = expected @@ -149690,7 +189835,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlag t.Run("GetInvisible_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -149703,7 +189848,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlag t.Run("GetHidden", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} var expected bool obj.Hidden = expected @@ -149713,7 +189858,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlag t.Run("GetHidden_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -149726,7 +189871,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlag t.Run("GetPrint", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} var expected bool obj.Print = expected @@ -149736,7 +189881,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlag t.Run("GetPrint_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -149749,7 +189894,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlag t.Run("GetNoZoom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} var expected bool obj.NoZoom = expected @@ -149759,7 +189904,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlag t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -149772,7 +189917,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlag t.Run("GetNoRotate", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} var expected bool obj.NoRotate = expected @@ -149782,7 +189927,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlag t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -149795,7 +189940,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlag t.Run("GetNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} var expected bool obj.NoView = expected @@ -149805,7 +189950,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlag t.Run("GetNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -149818,7 +189963,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlag t.Run("GetReadOnly", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} var expected bool obj.ReadOnly = expected @@ -149828,7 +189973,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlag t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -149841,7 +189986,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlag t.Run("GetLocked", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} var expected bool obj.Locked = expected @@ -149851,7 +189996,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlag t.Run("GetLocked_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -149864,7 +190009,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlag t.Run("GetToggleNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} var expected bool obj.ToggleNoView = expected @@ -149874,7 +190019,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlag t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -149887,7 +190032,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlag t.Run("GetLockedContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} var expected bool obj.LockedContents = expected @@ -149897,7 +190042,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlag t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -149909,11 +190054,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlag } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags(t *testing.T) { t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} var fernTestValueInvisible bool // Act @@ -149944,7 +190089,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetHidden_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} var fernTestValueHidden bool // Act @@ -149975,7 +190120,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPrint_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} var fernTestValuePrint bool // Act @@ -150006,7 +190151,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} var fernTestValueNoZoom bool // Act @@ -150037,7 +190182,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} var fernTestValueNoRotate bool // Act @@ -150068,7 +190213,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} var fernTestValueNoView bool // Act @@ -150099,7 +190244,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} var fernTestValueReadOnly bool // Act @@ -150130,7 +190275,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetLocked_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} var fernTestValueLocked bool // Act @@ -150161,7 +190306,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} var fernTestValueToggleNoView bool // Act @@ -150192,7 +190337,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} var fernTestValueLockedContents bool // Act @@ -150222,11 +190367,11 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo{} var expected string obj.Kind = expected @@ -150236,7 +190381,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -150249,8 +190394,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -150260,7 +190405,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo{} obj.ObjectNumber = nil // Act & Assert @@ -150269,7 +190414,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -150282,8 +190427,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm obj.Nm = expected // Act & Assert @@ -150293,7 +190438,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo{} obj.Nm = nil // Act & Assert @@ -150302,7 +190447,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -150315,8 +190460,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex obj.Index = expected // Act & Assert @@ -150326,7 +190471,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo{} obj.Index = nil // Act & Assert @@ -150335,7 +190480,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -150347,9 +190492,9 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -150357,7 +190502,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -150365,8 +190510,8 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -150374,11 +190519,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex{} var expected int obj.PageObjectNumber = expected @@ -150388,7 +190533,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -150401,7 +190546,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex{} var expected int obj.Index = expected @@ -150411,7 +190556,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -150424,8 +190569,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision obj.Revision = expected // Act & Assert @@ -150435,7 +190580,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex{} obj.Revision = nil // Act & Assert @@ -150444,7 +190589,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -150456,11 +190601,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex{} var fernTestValuePageObjectNumber int // Act @@ -150491,7 +190636,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex{} var fernTestValueIndex int // Act @@ -150522,8 +190667,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -150552,9 +190697,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -150562,7 +190707,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -150570,7 +190715,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -150579,11 +190724,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision{} var expected string obj.DocSessionID = expected @@ -150593,7 +190738,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -150606,7 +190751,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -150616,7 +190761,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -150629,7 +190774,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision{} var expected int obj.Generation = expected @@ -150639,7 +190784,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -150651,11 +190796,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision{} var fernTestValueDocSessionID string // Act @@ -150686,7 +190831,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -150717,7 +190862,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision{} var fernTestValueGeneration int // Act @@ -150747,9 +190892,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -150757,7 +190902,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm{} var fernTestValueNm string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -150766,11 +190911,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm{} var expected int obj.PageObjectNumber = expected @@ -150780,7 +190925,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -150793,7 +190938,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm{} var expected string obj.Nm = expected @@ -150803,7 +190948,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -150815,11 +190960,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm{} var fernTestValuePageObjectNumber int // Act @@ -150850,7 +190995,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm{} var fernTestValueNm string // Act @@ -150880,9 +191025,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -150890,7 +191035,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe }) t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber{} var fernTestValueAnnotObjectNumber int obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) @@ -150899,11 +191044,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber{} var expected int obj.PageObjectNumber = expected @@ -150913,7 +191058,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -150926,7 +191071,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber{} var expected int obj.AnnotObjectNumber = expected @@ -150936,7 +191081,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -150948,11 +191093,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInRe } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber{} var fernTestValuePageObjectNumber int // Act @@ -150983,7 +191128,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber{} var fernTestValueAnnotObjectNumber int // Act @@ -151013,145 +191158,145 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect(t *testing.T) { - t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect{} - var fernTestValueLeft float64 - obj.SetLeft(fernTestValueLeft) - assert.Equal(t, fernTestValueLeft, obj.Left) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect{} - var fernTestValueBottom float64 - obj.SetBottom(fernTestValueBottom) - assert.Equal(t, fernTestValueBottom, obj.Bottom) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor(t *testing.T) { + t.Run("SetR", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor{} + var fernTestValueR int + obj.SetR(fernTestValueR) + assert.Equal(t, fernTestValueR, obj.R) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect{} - var fernTestValueRight float64 - obj.SetRight(fernTestValueRight) - assert.Equal(t, fernTestValueRight, obj.Right) + t.Run("SetG", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor{} + var fernTestValueG int + obj.SetG(fernTestValueG) + assert.Equal(t, fernTestValueG, obj.G) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect{} - var fernTestValueTop float64 - obj.SetTop(fernTestValueTop) - assert.Equal(t, fernTestValueTop, obj.Top) + t.Run("SetB", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect(t *testing.T) { - t.Run("GetLeft", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect{} - var expected float64 - obj.Left = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor{} + var expected int + obj.R = expected // Act & Assert - assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") }) - t.Run("GetLeft_NilReceiver", func(t *testing.T) { + t.Run("GetR_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLeft() // Should return zero value + _ = obj.GetR() // Should return zero value }) - t.Run("GetBottom", func(t *testing.T) { + t.Run("GetG", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect{} - var expected float64 - obj.Bottom = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor{} + var expected int + obj.G = expected // Act & Assert - assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") }) - t.Run("GetBottom_NilReceiver", func(t *testing.T) { + t.Run("GetG_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBottom() // Should return zero value + _ = obj.GetG() // Should return zero value }) - t.Run("GetRight", func(t *testing.T) { + t.Run("GetB", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect{} - var expected float64 - obj.Right = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor{} + var expected int + obj.B = expected // Act & Assert - assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") }) - t.Run("GetRight_NilReceiver", func(t *testing.T) { + t.Run("GetB_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRight() // Should return zero value + _ = obj.GetB() // Should return zero value }) - t.Run("GetTop", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect{} - var expected float64 - obj.Top = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor{} + var fernTestValueR int - // Act & Assert - assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") - }) + // Act + obj.SetR(fernTestValueR) - t.Run("GetTop_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetTop() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") -} + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect(t *testing.T) { - t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect{} - var fernTestValueLeft float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor{} + var fernTestValueG int // Act - obj.SetLeft(fernTestValueLeft) + obj.SetG(fernTestValueG) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -151175,14 +191320,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Run("SetB_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect{} - var fernTestValueBottom float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor{} + var fernTestValueB int // Act - obj.SetBottom(fernTestValueBottom) + obj.SetB(fernTestValueB) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -151206,14 +191351,85 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRight_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings(t *testing.T) { + t.Run("SetStart", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings{} + var fernTestValueStart DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart + obj.SetStart(fernTestValueStart) + assert.Equal(t, fernTestValueStart, obj.Start) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetEnd", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings{} + var fernTestValueEnd DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd + obj.SetEnd(fernTestValueEnd) + assert.Equal(t, fernTestValueEnd, obj.End) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings(t *testing.T) { + t.Run("GetStart", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect{} - var fernTestValueRight float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart + obj.Start = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetStart(), "getter should return the property value") + }) + + t.Run("GetStart_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetStart() // Should return zero value + }) + + t.Run("GetEnd", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd + obj.End = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetEnd(), "getter should return the property value") + }) + + t.Run("GetEnd_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetEnd() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings(t *testing.T) { + t.Run("SetStart_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings{} + var fernTestValueStart DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart // Act - obj.SetRight(fernTestValueRight) + obj.SetStart(fernTestValueStart) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -151237,14 +191453,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Run("SetEnd_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRect{} - var fernTestValueTop float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings{} + var fernTestValueEnd DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd // Act - obj.SetTop(fernTestValueTop) + obj.SetEnd(fernTestValueEnd) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -151270,249 +191486,515 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasure(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasure{} var expected string - obj.Kind = expected + obj.Subtype = expected // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasure // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKind() // Should return zero value + _ = obj.GetSubtype() // Should return zero value }) - t.Run("GetObjectNumber", func(t *testing.T) { + t.Run("GetRl", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber - obj.ObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasure{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl + obj.Rl = expected // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRl(), "getter should return the property value") }) - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Run("GetRl_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef{} - obj.ObjectNumber = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasure{} + obj.Rl = nil // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRl(), "getter should return nil when property is nil") }) - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetRl_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasure // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetObjectNumber() // Should return zero value + _ = obj.GetRl() // Should return zero value }) - t.Run("GetNm", func(t *testing.T) { + t.Run("GetGeo", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm - obj.Nm = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasure{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureGeo + obj.Geo = expected // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + assert.Equal(t, expected, obj.GetGeo(), "getter should return the property value") }) - t.Run("GetNm_NilValue", func(t *testing.T) { + t.Run("GetGeo_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef{} - obj.Nm = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasure{} + obj.Geo = nil // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetGeo(), "getter should return nil when property is nil") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetGeo_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasure // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetGeo() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetUnknown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex - obj.Index = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasure{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureUnknown + obj.Unknown = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") }) - t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Run("GetUnknown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef{} - obj.Index = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasure{} + obj.Unknown = nil // Act & Assert - assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetUnknown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasure // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetUnknown() // Should return zero value }) } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl(t *testing.T) { + t.Run("SetRatio", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + var fernTestValueRatio *string + obj.SetRatio(fernTestValueRatio) + assert.Equal(t, fernTestValueRatio, obj.Ratio) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + var fernTestValueX []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + var fernTestValueY []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDistance", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + var fernTestValueDistance []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem + obj.SetDistance(fernTestValueDistance) + assert.Equal(t, fernTestValueDistance, obj.Distance) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetArea", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + var fernTestValueArea []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem + obj.SetArea(fernTestValueArea) + assert.Equal(t, fernTestValueArea, obj.Area) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAngle", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + var fernTestValueAngle []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem + obj.SetAngle(fernTestValueAngle) + assert.Equal(t, fernTestValueAngle, obj.Angle) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSlope", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + var fernTestValueSlope []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem + obj.SetSlope(fernTestValueSlope) + assert.Equal(t, fernTestValueSlope, obj.Slope) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetOrigin", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + var fernTestValueOrigin *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin + obj.SetOrigin(fernTestValueOrigin) + assert.Equal(t, fernTestValueOrigin, obj.Origin) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCyx", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + var fernTestValueCyx *float64 + obj.SetCyx(fernTestValueCyx) + assert.Equal(t, fernTestValueCyx, obj.Cyx) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) - assert.NotNil(t, obj.explicitFields) +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl(t *testing.T) { + t.Run("GetRatio", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + var expected *string + obj.Ratio = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRatio(), "getter should return the property value") + }) + + t.Run("GetRatio_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + obj.Ratio = nil + + // Act & Assert + assert.Nil(t, obj.GetRatio(), "getter should return nil when property is nil") + }) + + t.Run("GetRatio_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRatio() // Should return zero value + }) + + t.Run("GetX", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem + obj.X = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) + + t.Run("GetX_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + obj.X = nil + + // Act & Assert + assert.Nil(t, obj.GetX(), "getter should return nil when property is nil") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem + obj.Y = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + }) + + t.Run("GetY_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + obj.Y = nil + + // Act & Assert + assert.Nil(t, obj.GetY(), "getter should return nil when property is nil") + }) + + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + + t.Run("GetDistance", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem + obj.Distance = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDistance(), "getter should return the property value") + }) + + t.Run("GetDistance_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + obj.Distance = nil + + // Act & Assert + assert.Nil(t, obj.GetDistance(), "getter should return nil when property is nil") + }) + + t.Run("GetDistance_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDistance() // Should return zero value + }) + + t.Run("GetArea", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem + obj.Area = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetArea(), "getter should return the property value") + }) + + t.Run("GetArea_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + obj.Area = nil + + // Act & Assert + assert.Nil(t, obj.GetArea(), "getter should return nil when property is nil") + }) + + t.Run("GetArea_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetArea() // Should return zero value + }) + + t.Run("GetAngle", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem + obj.Angle = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAngle(), "getter should return the property value") + }) + + t.Run("GetAngle_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + obj.Angle = nil + + // Act & Assert + assert.Nil(t, obj.GetAngle(), "getter should return nil when property is nil") }) - t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) - assert.NotNil(t, obj.explicitFields) + t.Run("GetAngle_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAngle() // Should return zero value }) -} + t.Run("GetSlope", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem + obj.Slope = expected -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + // Act & Assert + assert.Equal(t, expected, obj.GetSlope(), "getter should return the property value") + }) + + t.Run("GetSlope_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + obj.Slope = nil // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Nil(t, obj.GetSlope(), "getter should return nil when property is nil") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetSlope_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetSlope() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetOrigin", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex{} - var expected int - obj.Index = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin + obj.Origin = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrigin(), "getter should return the property value") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetOrigin_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + obj.Origin = nil + + // Act & Assert + assert.Nil(t, obj.GetOrigin(), "getter should return nil when property is nil") + }) + + t.Run("GetOrigin_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetOrigin() // Should return zero value }) - t.Run("GetRevision", func(t *testing.T) { + t.Run("GetCyx", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision - obj.Revision = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + var expected *float64 + obj.Cyx = expected // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCyx(), "getter should return the property value") }) - t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Run("GetCyx_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex{} - obj.Revision = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + obj.Cyx = nil // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCyx(), "getter should return nil when property is nil") }) - t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Run("GetCyx_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRevision() // Should return zero value + _ = obj.GetCyx() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl(t *testing.T) { + t.Run("SetRatio_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + var fernTestValueRatio *string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetRatio(fernTestValueRatio) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -151536,14 +192018,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex{} - var fernTestValueIndex int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + var fernTestValueX []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem // Act - obj.SetIndex(fernTestValueIndex) + obj.SetX(fernTestValueX) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -151567,14 +192049,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + var fernTestValueY []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem // Act - obj.SetRevision(fernTestValueRevision) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -151598,116 +192080,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision{} - var fernTestValueDocSessionID string - obj.SetDocSessionID(fernTestValueDocSessionID) - assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision{} - var expected string - obj.DocSessionID = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") - }) - - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetDocSessionID() // Should return zero value - }) - - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetGeneration", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision{} - var expected int - obj.Generation = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") - }) - - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetGeneration() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Run("SetDistance_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision{} - var fernTestValueDocSessionID string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + var fernTestValueDistance []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem // Act - obj.SetDocSessionID(fernTestValueDocSessionID) + obj.SetDistance(fernTestValueDistance) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -151731,14 +192111,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetArea_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + var fernTestValueArea []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetArea(fernTestValueArea) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -151762,14 +192142,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("SetAngle_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefIndexRevision{} - var fernTestValueGeneration int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + var fernTestValueAngle []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem // Act - obj.SetGeneration(fernTestValueGeneration) + obj.SetAngle(fernTestValueAngle) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -151793,85 +192173,45 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm{} - var fernTestValueNm string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("SetSlope_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + var fernTestValueSlope []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) + // Act + obj.SetSlope(fernTestValueSlope) - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm{} - var expected string - obj.Nm = expected + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetNm_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNm() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetOrigin_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + var fernTestValueOrigin *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetOrigin(fernTestValueOrigin) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -151895,14 +192235,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetCyx_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefNm{} - var fernTestValueNm string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + var fernTestValueCyx *float64 // Act - obj.SetNm(fernTestValueNm) + obj.SetCyx(fernTestValueCyx) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -151928,452 +192268,421 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) assert.NotNil(t, obj.explicitFields) }) -} + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber{} - var expected int - obj.PageObjectNumber = expected + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + var expected string + obj.Unit = expected // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") }) - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetUnit_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAnnotObjectNumber() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber{} - var fernTestValuePageObjectNumber int - - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + _ = obj.GetUnit() // Should return zero value }) - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("GetConversion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkRefObjectNumber{} - var fernTestValueAnnotObjectNumber int - - // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + var expected *float64 + obj.Conversion = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") }) -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { + t.Run("GetConversion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget{} - var expected string - obj.Kind = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + obj.Conversion = nil // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetConversion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKind() // Should return zero value + _ = obj.GetConversion() // Should return zero value }) - t.Run("GetGoto", func(t *testing.T) { + t.Run("GetFraction", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto - obj.Goto = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFraction + obj.Fraction = expected // Act & Assert - assert.Equal(t, expected, obj.GetGoto(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") }) - t.Run("GetGoto_NilValue", func(t *testing.T) { + t.Run("GetFraction_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget{} - obj.Goto = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + obj.Fraction = nil // Act & Assert - assert.Nil(t, obj.GetGoto(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") }) - t.Run("GetGoto_NilReceiver", func(t *testing.T) { + t.Run("GetFraction_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGoto() // Should return zero value + _ = obj.GetFraction() // Should return zero value }) - t.Run("GetURI", func(t *testing.T) { + t.Run("GetPrecision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI - obj.URI = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + var expected *int + obj.Precision = expected // Act & Assert - assert.Equal(t, expected, obj.GetURI(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") }) - t.Run("GetURI_NilValue", func(t *testing.T) { + t.Run("GetPrecision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget{} - obj.URI = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + obj.Precision = nil // Act & Assert - assert.Nil(t, obj.GetURI(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") }) - t.Run("GetURI_NilReceiver", func(t *testing.T) { + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetURI() // Should return zero value + _ = obj.GetPrecision() // Should return zero value }) - t.Run("GetGotoRemote", func(t *testing.T) { + t.Run("GetFixed", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote - obj.GotoRemote = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + var expected *bool + obj.Fixed = expected // Act & Assert - assert.Equal(t, expected, obj.GetGotoRemote(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") }) - t.Run("GetGotoRemote_NilValue", func(t *testing.T) { + t.Run("GetFixed_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget{} - obj.GotoRemote = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + obj.Fixed = nil // Act & Assert - assert.Nil(t, obj.GetGotoRemote(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") }) - t.Run("GetGotoRemote_NilReceiver", func(t *testing.T) { + t.Run("GetFixed_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGotoRemote() // Should return zero value + _ = obj.GetFixed() // Should return zero value }) - t.Run("GetLaunch", func(t *testing.T) { + t.Run("GetThousands", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch - obj.Launch = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + var expected *string + obj.Thousands = expected // Act & Assert - assert.Equal(t, expected, obj.GetLaunch(), "getter should return the property value") + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") }) - t.Run("GetLaunch_NilValue", func(t *testing.T) { + t.Run("GetThousands_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget{} - obj.Launch = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + obj.Thousands = nil // Act & Assert - assert.Nil(t, obj.GetLaunch(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") }) - t.Run("GetLaunch_NilReceiver", func(t *testing.T) { + t.Run("GetThousands_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLaunch() // Should return zero value + _ = obj.GetThousands() // Should return zero value }) - t.Run("GetJavascript", func(t *testing.T) { + t.Run("GetDecimal", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetJavascript - obj.Javascript = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + var expected *string + obj.Decimal = expected // Act & Assert - assert.Equal(t, expected, obj.GetJavascript(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") }) - t.Run("GetJavascript_NilValue", func(t *testing.T) { + t.Run("GetDecimal_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget{} - obj.Javascript = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + obj.Decimal = nil // Act & Assert - assert.Nil(t, obj.GetJavascript(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") }) - t.Run("GetJavascript_NilReceiver", func(t *testing.T) { + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetJavascript() // Should return zero value + _ = obj.GetDecimal() // Should return zero value }) - t.Run("GetNamed", func(t *testing.T) { + t.Run("GetPrefixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed - obj.Named = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + var expected *string + obj.PrefixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetNamed(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") }) - t.Run("GetNamed_NilValue", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget{} - obj.Named = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + obj.PrefixSpacing = nil // Act & Assert - assert.Nil(t, obj.GetNamed(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetNamed_NilReceiver", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNamed() // Should return zero value + _ = obj.GetPrefixSpacing() // Should return zero value }) - t.Run("GetUnsupported", func(t *testing.T) { + t.Run("GetSuffixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetUnsupported - obj.Unsupported = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + var expected *string + obj.SuffixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetUnsupported(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") }) - t.Run("GetUnsupported_NilValue", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget{} - obj.Unsupported = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + obj.SuffixSpacing = nil // Act & Assert - assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTarget + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUnsupported() // Should return zero value - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto(t *testing.T) { - t.Run("SetDestination", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto{} - var fernTestValueDestination *PdfDestination - obj.SetDestination(fernTestValueDestination) - assert.Equal(t, fernTestValueDestination, obj.Destination) - assert.NotNil(t, obj.explicitFields) + _ = obj.GetSuffixSpacing() // Should return zero value }) -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto(t *testing.T) { - t.Run("GetDestination", func(t *testing.T) { + t.Run("GetLabelPosition", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto{} - var expected *PdfDestination - obj.Destination = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemLabelPosition + obj.LabelPosition = expected // Act & Assert - assert.Equal(t, expected, obj.GetDestination(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") }) - t.Run("GetDestination_NilValue", func(t *testing.T) { + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto{} - obj.Destination = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + obj.LabelPosition = nil // Act & Assert - assert.Nil(t, obj.GetDestination(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") }) - t.Run("GetDestination_NilReceiver", func(t *testing.T) { + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDestination() // Should return zero value + _ = obj.GetLabelPosition() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto(t *testing.T) { - t.Run("SetDestination_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGoto{} - var fernTestValueDestination *PdfDestination + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValueUnit string // Act - obj.SetDestination(fernTestValueDestination) + obj.SetUnit(fernTestValueUnit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -152397,54 +192706,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote(t *testing.T) { - t.Run("SetFile", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote{} - var fernTestValueFile string - obj.SetFile(fernTestValueFile) - assert.Equal(t, fernTestValueFile, obj.File) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote(t *testing.T) { - t.Run("GetFile", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote{} - var expected string - obj.File = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetFile(), "getter should return the property value") - }) - - t.Run("GetFile_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetFile() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote(t *testing.T) { - t.Run("SetFile_MarksExplicit", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetGotoRemote{} - var fernTestValueFile string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValueConversion *float64 // Act - obj.SetFile(fernTestValueFile) + obj.SetConversion(fernTestValueConversion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -152468,54 +192737,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch(t *testing.T) { - t.Run("SetPath", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch{} - var fernTestValuePath string - obj.SetPath(fernTestValuePath) - assert.Equal(t, fernTestValuePath, obj.Path) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch(t *testing.T) { - t.Run("GetPath", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch{} - var expected string - obj.Path = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPath(), "getter should return the property value") - }) - - t.Run("GetPath_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPath() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch(t *testing.T) { - t.Run("SetPath_MarksExplicit", func(t *testing.T) { + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetLaunch{} - var fernTestValuePath string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFraction // Act - obj.SetPath(fernTestValuePath) + obj.SetFraction(fernTestValueFraction) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -152539,54 +192768,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed{} - var fernTestValueName string - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed(t *testing.T) { - t.Run("GetName", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed{} - var expected string - obj.Name = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") - }) - - t.Run("GetName_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetName() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetNamed{} - var fernTestValueName string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValuePrecision *int // Act - obj.SetName(fernTestValueName) + obj.SetPrecision(fernTestValuePrecision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -152610,54 +192799,45 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI(t *testing.T) { - t.Run("SetURI", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI{} - var fernTestValueURI string - obj.SetURI(fernTestValueURI) - assert.Equal(t, fernTestValueURI, obj.URI) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI(t *testing.T) { - t.Run("GetURI", func(t *testing.T) { + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI{} - var expected string - obj.URI = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValueFixed *bool - // Act & Assert - assert.Equal(t, expected, obj.GetURI(), "getter should return the property value") - }) + // Act + obj.SetFixed(fernTestValueFixed) - t.Run("GetURI_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetURI() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") -} + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI(t *testing.T) { - t.Run("SetURI_MarksExplicit", func(t *testing.T) { + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLinkTargetURI{} - var fernTestValueURI string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValueThousands *string // Act - obj.SetURI(fernTestValueURI) + obj.SetThousands(fernTestValueThousands) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -152681,1142 +192861,1266 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon(t *testing.T) { - t.Run("SetRef", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef - obj.SetRef(fernTestValueRef) - assert.Equal(t, fernTestValueRef, obj.Ref) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIdentityQuality", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality - obj.SetIdentityQuality(fernTestValueIdentityQuality) - assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValueDecimal *string - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueNm *string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetDecimal(fernTestValueDecimal) - t.Run("SetFlags", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags - obj.SetFlags(fernTestValueFlags) - assert.Equal(t, fernTestValueFlags, obj.Flags) - assert.NotNil(t, obj.explicitFields) - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("SetRect", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect - obj.SetRect(fernTestValueRect) - assert.Equal(t, fernTestValueRect, obj.Rect) - assert.NotNil(t, obj.explicitFields) - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("SetContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueContents *string - obj.SetContents(fernTestValueContents) - assert.Equal(t, fernTestValueContents, obj.Contents) - assert.NotNil(t, obj.explicitFields) + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetSubject", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueSubject *string - obj.SetSubject(fernTestValueSubject) - assert.Equal(t, fernTestValueSubject, obj.Subject) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValuePrefixSpacing *string - t.Run("SetAuthor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueAuthor *string - obj.SetAuthor(fernTestValueAuthor) - assert.Equal(t, fernTestValueAuthor, obj.Author) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) - t.Run("SetCreated", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueCreated *time.Time - obj.SetCreated(fernTestValueCreated) - assert.Equal(t, fernTestValueCreated, obj.Created) - assert.NotNil(t, obj.explicitFields) - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("SetModified", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueModified *time.Time - obj.SetModified(fernTestValueModified) - assert.Equal(t, fernTestValueModified, obj.Modified) - assert.NotNil(t, obj.explicitFields) - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("SetBlendMode", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode - obj.SetBlendMode(fernTestValueBlendMode) - assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) - assert.NotNil(t, obj.explicitFields) + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInReplyTo", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo - obj.SetInReplyTo(fernTestValueInReplyTo) - assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValueSuffixSpacing *string - t.Run("SetReplyType", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType - obj.SetReplyType(fernTestValueReplyType) - assert.Equal(t, fernTestValueReplyType, obj.ReplyType) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) - t.Run("SetUserID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueUserID *string - obj.SetUserID(fernTestValueUserID) - assert.Equal(t, fernTestValueUserID, obj.UserID) - assert.NotNil(t, obj.explicitFields) - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("SetGroupID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueGroupID *string - obj.SetGroupID(fernTestValueGroupID) - assert.Equal(t, fernTestValueGroupID, obj.GroupID) - assert.NotNil(t, obj.explicitFields) - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("SetCreatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueCreatedBy *string - obj.SetCreatedBy(fernTestValueCreatedBy) - assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) - assert.NotNil(t, obj.explicitFields) + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUpdatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueUpdatedBy *string - obj.SetUpdatedBy(fernTestValueUpdatedBy) - assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemLabelPosition - t.Run("SetActions", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueActions *PdfAnnotationActions - obj.SetActions(fernTestValueActions) - assert.Equal(t, fernTestValueActions, obj.Actions) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetLabelPosition(fernTestValueLabelPosition) - t.Run("SetColor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor - obj.SetColor(fernTestValueColor) - assert.Equal(t, fernTestValueColor, obj.Color) - assert.NotNil(t, obj.explicitFields) - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("SetOpacity", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueOpacity float64 - obj.SetOpacity(fernTestValueOpacity) - assert.Equal(t, fernTestValueOpacity, obj.Opacity) - assert.NotNil(t, obj.explicitFields) - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("SetStrokeWidth", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueStrokeWidth float64 - obj.SetStrokeWidth(fernTestValueStrokeWidth) - assert.Equal(t, fernTestValueStrokeWidth, obj.StrokeWidth) - assert.NotNil(t, obj.explicitFields) + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBorderStyle", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle - obj.SetBorderStyle(fernTestValueBorderStyle) - assert.Equal(t, fernTestValueBorderStyle, obj.BorderStyle) - assert.NotNil(t, obj.explicitFields) - }) +} - t.Run("SetDashArray", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueDashArray []float64 - obj.SetDashArray(fernTestValueDashArray) - assert.Equal(t, fernTestValueDashArray, obj.DashArray) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetInteriorColor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor - obj.SetInteriorColor(fernTestValueInteriorColor) - assert.Equal(t, fernTestValueInteriorColor, obj.InteriorColor) + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetVertices", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueVertices []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem - obj.SetVertices(fernTestValueVertices) - assert.Equal(t, fernTestValueVertices, obj.Vertices) + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRotation", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueRotation *float64 - obj.SetRotation(fernTestValueRotation) - assert.Equal(t, fernTestValueRotation, obj.Rotation) + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCloudyIntensity", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueCloudyIntensity *float64 - obj.SetCloudyIntensity(fernTestValueCloudyIntensity) - assert.Equal(t, fernTestValueCloudyIntensity, obj.CloudyIntensity) + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) assert.NotNil(t, obj.explicitFields) }) -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon(t *testing.T) { - t.Run("GetRef", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef - obj.Ref = expected + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetRef_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - obj.Ref = nil + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetRef_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRef() // Should return zero value + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetPageObjectNumber", func(t *testing.T) { +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + var expected string + obj.Unit = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetUnit_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetUnit() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetConversion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var expected int - obj.Index = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + var expected *float64 + obj.Conversion = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") - }) - - t.Run("GetIndex_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetIndex() // Should return zero value + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") }) - t.Run("GetIdentityQuality", func(t *testing.T) { + t.Run("GetConversion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality - obj.IdentityQuality = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + obj.Conversion = nil // Act & Assert - assert.Equal(t, expected, obj.GetIdentityQuality(), "getter should return the property value") + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") }) - t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { + t.Run("GetConversion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIdentityQuality() // Should return zero value + _ = obj.GetConversion() // Should return zero value }) - t.Run("GetNm", func(t *testing.T) { + t.Run("GetFraction", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var expected *string - obj.Nm = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFraction + obj.Fraction = expected // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") }) - t.Run("GetNm_NilValue", func(t *testing.T) { + t.Run("GetFraction_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - obj.Nm = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + obj.Fraction = nil // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetFraction_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetFraction() // Should return zero value }) - t.Run("GetFlags", func(t *testing.T) { + t.Run("GetPrecision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags - obj.Flags = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + var expected *int + obj.Precision = expected // Act & Assert - assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") }) - t.Run("GetFlags_NilValue", func(t *testing.T) { + t.Run("GetPrecision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - obj.Flags = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + obj.Precision = nil // Act & Assert - assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") }) - t.Run("GetFlags_NilReceiver", func(t *testing.T) { + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFlags() // Should return zero value + _ = obj.GetPrecision() // Should return zero value }) - t.Run("GetRect", func(t *testing.T) { + t.Run("GetFixed", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect - obj.Rect = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + var expected *bool + obj.Fixed = expected // Act & Assert - assert.Equal(t, expected, obj.GetRect(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") }) - t.Run("GetRect_NilValue", func(t *testing.T) { + t.Run("GetFixed_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - obj.Rect = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + obj.Fixed = nil // Act & Assert - assert.Nil(t, obj.GetRect(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") }) - t.Run("GetRect_NilReceiver", func(t *testing.T) { + t.Run("GetFixed_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRect() // Should return zero value + _ = obj.GetFixed() // Should return zero value }) - t.Run("GetContents", func(t *testing.T) { + t.Run("GetThousands", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} var expected *string - obj.Contents = expected + obj.Thousands = expected // Act & Assert - assert.Equal(t, expected, obj.GetContents(), "getter should return the property value") + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") }) - t.Run("GetContents_NilValue", func(t *testing.T) { + t.Run("GetThousands_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - obj.Contents = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + obj.Thousands = nil // Act & Assert - assert.Nil(t, obj.GetContents(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") }) - t.Run("GetContents_NilReceiver", func(t *testing.T) { + t.Run("GetThousands_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetContents() // Should return zero value + _ = obj.GetThousands() // Should return zero value }) - t.Run("GetSubject", func(t *testing.T) { + t.Run("GetDecimal", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} var expected *string - obj.Subject = expected + obj.Decimal = expected // Act & Assert - assert.Equal(t, expected, obj.GetSubject(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") }) - t.Run("GetSubject_NilValue", func(t *testing.T) { + t.Run("GetDecimal_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - obj.Subject = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + obj.Decimal = nil // Act & Assert - assert.Nil(t, obj.GetSubject(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") }) - t.Run("GetSubject_NilReceiver", func(t *testing.T) { + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetSubject() // Should return zero value + _ = obj.GetDecimal() // Should return zero value }) - t.Run("GetAuthor", func(t *testing.T) { + t.Run("GetPrefixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} var expected *string - obj.Author = expected + obj.PrefixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetAuthor(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") }) - t.Run("GetAuthor_NilValue", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - obj.Author = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + obj.PrefixSpacing = nil // Act & Assert - assert.Nil(t, obj.GetAuthor(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetAuthor_NilReceiver", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAuthor() // Should return zero value + _ = obj.GetPrefixSpacing() // Should return zero value }) - t.Run("GetCreated", func(t *testing.T) { + t.Run("GetSuffixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var expected *time.Time - obj.Created = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + var expected *string + obj.SuffixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetCreated(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") }) - t.Run("GetCreated_NilValue", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - obj.Created = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + obj.SuffixSpacing = nil // Act & Assert - assert.Nil(t, obj.GetCreated(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetCreated_NilReceiver", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCreated() // Should return zero value + _ = obj.GetSuffixSpacing() // Should return zero value }) - t.Run("GetModified", func(t *testing.T) { + t.Run("GetLabelPosition", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var expected *time.Time - obj.Modified = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemLabelPosition + obj.LabelPosition = expected // Act & Assert - assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") }) - t.Run("GetModified_NilValue", func(t *testing.T) { + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - obj.Modified = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + obj.LabelPosition = nil // Act & Assert - assert.Nil(t, obj.GetModified(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") }) - t.Run("GetModified_NilReceiver", func(t *testing.T) { + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetModified() // Should return zero value + _ = obj.GetLabelPosition() // Should return zero value }) - t.Run("GetBlendMode", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode - obj.BlendMode = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValueUnit string - // Act & Assert - assert.Equal(t, expected, obj.GetBlendMode(), "getter should return the property value") - }) + // Act + obj.SetUnit(fernTestValueUnit) - t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetBlendMode() // Should return zero value + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetInReplyTo", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo - obj.InReplyTo = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValueConversion *float64 - // Act & Assert - assert.Equal(t, expected, obj.GetInReplyTo(), "getter should return the property value") + // Act + obj.SetConversion(fernTestValueConversion) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetInReplyTo_NilValue", func(t *testing.T) { + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - obj.InReplyTo = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFraction - // Act & Assert - assert.Nil(t, obj.GetInReplyTo(), "getter should return nil when property is nil") - }) + // Act + obj.SetFraction(fernTestValueFraction) - t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetInReplyTo() // Should return zero value + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetReplyType", func(t *testing.T) { + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType - obj.ReplyType = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValuePrecision *int - // Act & Assert - assert.Equal(t, expected, obj.GetReplyType(), "getter should return the property value") + // Act + obj.SetPrecision(fernTestValuePrecision) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetReplyType_NilValue", func(t *testing.T) { + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - obj.ReplyType = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValueFixed *bool - // Act & Assert - assert.Nil(t, obj.GetReplyType(), "getter should return nil when property is nil") - }) + // Act + obj.SetFixed(fernTestValueFixed) - t.Run("GetReplyType_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetReplyType() // Should return zero value + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetUserID", func(t *testing.T) { + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var expected *string - obj.UserID = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValueThousands *string - // Act & Assert - assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") + // Act + obj.SetThousands(fernTestValueThousands) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetUserID_NilValue", func(t *testing.T) { + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - obj.UserID = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValueDecimal *string - // Act & Assert - assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") + // Act + obj.SetDecimal(fernTestValueDecimal) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetUserID_NilReceiver", func(t *testing.T) { + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetUserID() // Should return zero value + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValuePrefixSpacing *string + + // Act + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetGroupID", func(t *testing.T) { + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var expected *string - obj.GroupID = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValueSuffixSpacing *string - // Act & Assert - assert.Equal(t, expected, obj.GetGroupID(), "getter should return the property value") + // Act + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetGroupID_NilValue", func(t *testing.T) { + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - obj.GroupID = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemLabelPosition - // Act & Assert - assert.Nil(t, obj.GetGroupID(), "getter should return nil when property is nil") + // Act + obj.SetLabelPosition(fernTestValueLabelPosition) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetGroupID_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetGroupID() // Should return zero value +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetCreatedBy", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var expected *string - obj.CreatedBy = expected + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetCreatedBy_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - obj.CreatedBy = nil + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Nil(t, obj.GetCreatedBy(), "getter should return nil when property is nil") + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetCreatedBy() // Should return zero value + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetUpdatedBy", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var expected *string - obj.UpdatedBy = expected + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Equal(t, expected, obj.GetUpdatedBy(), "getter should return the property value") + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - obj.UpdatedBy = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + var expected string + obj.Unit = expected // Act & Assert - assert.Nil(t, obj.GetUpdatedBy(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") }) - t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { + t.Run("GetUnit_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUpdatedBy() // Should return zero value + _ = obj.GetUnit() // Should return zero value }) - t.Run("GetActions", func(t *testing.T) { + t.Run("GetConversion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var expected *PdfAnnotationActions - obj.Actions = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + var expected *float64 + obj.Conversion = expected // Act & Assert - assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") }) - t.Run("GetActions_NilValue", func(t *testing.T) { + t.Run("GetConversion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - obj.Actions = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + obj.Conversion = nil // Act & Assert - assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") }) - t.Run("GetActions_NilReceiver", func(t *testing.T) { + t.Run("GetConversion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetActions() // Should return zero value + _ = obj.GetConversion() // Should return zero value }) - t.Run("GetColor", func(t *testing.T) { + t.Run("GetFraction", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor - obj.Color = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFraction + obj.Fraction = expected // Act & Assert - assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") }) - t.Run("GetColor_NilValue", func(t *testing.T) { + t.Run("GetFraction_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - obj.Color = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + obj.Fraction = nil // Act & Assert - assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") }) - t.Run("GetColor_NilReceiver", func(t *testing.T) { + t.Run("GetFraction_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetColor() // Should return zero value + _ = obj.GetFraction() // Should return zero value }) - t.Run("GetOpacity", func(t *testing.T) { + t.Run("GetPrecision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var expected float64 - obj.Opacity = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + var expected *int + obj.Precision = expected // Act & Assert - assert.Equal(t, expected, obj.GetOpacity(), "getter should return the property value") - }) - - t.Run("GetOpacity_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetOpacity() // Should return zero value + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") }) - t.Run("GetStrokeWidth", func(t *testing.T) { + t.Run("GetPrecision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var expected float64 - obj.StrokeWidth = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + obj.Precision = nil // Act & Assert - assert.Equal(t, expected, obj.GetStrokeWidth(), "getter should return the property value") + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") }) - t.Run("GetStrokeWidth_NilReceiver", func(t *testing.T) { + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetStrokeWidth() // Should return zero value + _ = obj.GetPrecision() // Should return zero value }) - t.Run("GetBorderStyle", func(t *testing.T) { + t.Run("GetFixed", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle - obj.BorderStyle = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + var expected *bool + obj.Fixed = expected // Act & Assert - assert.Equal(t, expected, obj.GetBorderStyle(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") }) - t.Run("GetBorderStyle_NilReceiver", func(t *testing.T) { + t.Run("GetFixed_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + obj.Fixed = nil + + // Act & Assert + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") + }) + + t.Run("GetFixed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBorderStyle() // Should return zero value + _ = obj.GetFixed() // Should return zero value }) - t.Run("GetDashArray", func(t *testing.T) { + t.Run("GetThousands", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var expected []float64 - obj.DashArray = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + var expected *string + obj.Thousands = expected // Act & Assert - assert.Equal(t, expected, obj.GetDashArray(), "getter should return the property value") + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") }) - t.Run("GetDashArray_NilValue", func(t *testing.T) { + t.Run("GetThousands_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - obj.DashArray = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + obj.Thousands = nil // Act & Assert - assert.Nil(t, obj.GetDashArray(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") }) - t.Run("GetDashArray_NilReceiver", func(t *testing.T) { + t.Run("GetThousands_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDashArray() // Should return zero value + _ = obj.GetThousands() // Should return zero value }) - t.Run("GetInteriorColor", func(t *testing.T) { + t.Run("GetDecimal", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor - obj.InteriorColor = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + var expected *string + obj.Decimal = expected // Act & Assert - assert.Equal(t, expected, obj.GetInteriorColor(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") }) - t.Run("GetInteriorColor_NilValue", func(t *testing.T) { + t.Run("GetDecimal_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - obj.InteriorColor = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + obj.Decimal = nil // Act & Assert - assert.Nil(t, obj.GetInteriorColor(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") }) - t.Run("GetInteriorColor_NilReceiver", func(t *testing.T) { + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInteriorColor() // Should return zero value + _ = obj.GetDecimal() // Should return zero value }) - t.Run("GetVertices", func(t *testing.T) { + t.Run("GetPrefixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem - obj.Vertices = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + var expected *string + obj.PrefixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetVertices(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") }) - t.Run("GetVertices_NilValue", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - obj.Vertices = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + obj.PrefixSpacing = nil // Act & Assert - assert.Nil(t, obj.GetVertices(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetVertices_NilReceiver", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetVertices() // Should return zero value + _ = obj.GetPrefixSpacing() // Should return zero value }) - t.Run("GetRotation", func(t *testing.T) { + t.Run("GetSuffixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var expected *float64 - obj.Rotation = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + var expected *string + obj.SuffixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetRotation(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") }) - t.Run("GetRotation_NilValue", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - obj.Rotation = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + obj.SuffixSpacing = nil // Act & Assert - assert.Nil(t, obj.GetRotation(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetRotation_NilReceiver", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRotation() // Should return zero value + _ = obj.GetSuffixSpacing() // Should return zero value }) - t.Run("GetCloudyIntensity", func(t *testing.T) { + t.Run("GetLabelPosition", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var expected *float64 - obj.CloudyIntensity = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemLabelPosition + obj.LabelPosition = expected // Act & Assert - assert.Equal(t, expected, obj.GetCloudyIntensity(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") }) - t.Run("GetCloudyIntensity_NilValue", func(t *testing.T) { + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - obj.CloudyIntensity = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + obj.LabelPosition = nil // Act & Assert - assert.Nil(t, obj.GetCloudyIntensity(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") }) - t.Run("GetCloudyIntensity_NilReceiver", func(t *testing.T) { + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCloudyIntensity() // Should return zero value + _ = obj.GetLabelPosition() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon(t *testing.T) { - t.Run("SetRef_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValueUnit string // Act - obj.SetRef(fernTestValueRef) + obj.SetUnit(fernTestValueUnit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -153840,14 +194144,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValueConversion *float64 // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetConversion(fernTestValueConversion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -153871,14 +194175,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueIndex int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFraction // Act - obj.SetIndex(fernTestValueIndex) + obj.SetFraction(fernTestValueFraction) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -153902,14 +194206,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValuePrecision *int // Act - obj.SetIdentityQuality(fernTestValueIdentityQuality) + obj.SetPrecision(fernTestValuePrecision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -153933,14 +194237,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueNm *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValueFixed *bool // Act - obj.SetNm(fernTestValueNm) + obj.SetFixed(fernTestValueFixed) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -153964,14 +194268,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFlags_MarksExplicit", func(t *testing.T) { + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValueThousands *string // Act - obj.SetFlags(fernTestValueFlags) + obj.SetThousands(fernTestValueThousands) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -153995,14 +194299,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRect_MarksExplicit", func(t *testing.T) { + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValueDecimal *string // Act - obj.SetRect(fernTestValueRect) + obj.SetDecimal(fernTestValueDecimal) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -154026,14 +194330,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetContents_MarksExplicit", func(t *testing.T) { + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueContents *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValuePrefixSpacing *string // Act - obj.SetContents(fernTestValueContents) + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -154057,14 +194361,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetSubject_MarksExplicit", func(t *testing.T) { + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueSubject *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValueSuffixSpacing *string // Act - obj.SetSubject(fernTestValueSubject) + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -154088,14 +194392,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueAuthor *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemLabelPosition // Act - obj.SetAuthor(fernTestValueAuthor) + obj.SetLabelPosition(fernTestValueLabelPosition) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -154119,45 +194423,85 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreated_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueCreated *time.Time + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin{} + var expected float64 + obj.X = expected - // Act - obj.SetCreated(fernTestValueCreated) + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin{} + var expected float64 + obj.Y = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") }) - t.Run("SetModified_MarksExplicit", func(t *testing.T) { + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueModified *time.Time + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin{} + var fernTestValueX float64 // Act - obj.SetModified(fernTestValueModified) + obj.SetX(fernTestValueX) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -154181,14 +194525,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin{} + var fernTestValueY float64 // Act - obj.SetBlendMode(fernTestValueBlendMode) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -154212,293 +194556,423 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + var expected string + obj.Unit = expected - // Act - obj.SetInReplyTo(fernTestValueInReplyTo) + // Act & Assert + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetUnit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnit() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetConversion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + var expected *float64 + obj.Conversion = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") }) - t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { + t.Run("GetConversion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + obj.Conversion = nil - // Act - obj.SetReplyType(fernTestValueReplyType) + // Act & Assert + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetConversion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetConversion() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetFraction", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFraction + obj.Fraction = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") }) - t.Run("SetUserID_MarksExplicit", func(t *testing.T) { + t.Run("GetFraction_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueUserID *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + obj.Fraction = nil - // Act - obj.SetUserID(fernTestValueUserID) + // Act & Assert + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetFraction_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFraction() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetPrecision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + var expected *int + obj.Precision = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") }) - t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { + t.Run("GetPrecision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueGroupID *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + obj.Precision = nil - // Act - obj.SetGroupID(fernTestValueGroupID) + // Act & Assert + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrecision() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetFixed", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + var expected *bool + obj.Fixed = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") + }) + + t.Run("GetFixed_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + obj.Fixed = nil + + // Act & Assert + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") + }) + + t.Run("GetFixed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFixed() // Should return zero value + }) + + t.Run("GetThousands", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + var expected *string + obj.Thousands = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") + }) + + t.Run("GetThousands_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + obj.Thousands = nil + + // Act & Assert + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") + }) + + t.Run("GetThousands_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetThousands() // Should return zero value }) - t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { + t.Run("GetDecimal", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueCreatedBy *string - - // Act - obj.SetCreatedBy(fernTestValueCreatedBy) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + var expected *string + obj.Decimal = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") }) - t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { + t.Run("GetDecimal_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueUpdatedBy *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + obj.Decimal = nil - // Act - obj.SetUpdatedBy(fernTestValueUpdatedBy) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDecimal() // Should return zero value }) - t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Run("GetPrefixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueActions *PdfAnnotationActions + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + var expected *string + obj.PrefixSpacing = expected - // Act - obj.SetActions(fernTestValueActions) + // Act & Assert + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + obj.PrefixSpacing = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrefixSpacing() // Should return zero value }) - t.Run("SetColor_MarksExplicit", func(t *testing.T) { + t.Run("GetSuffixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + var expected *string + obj.SuffixSpacing = expected - // Act - obj.SetColor(fernTestValueColor) + // Act & Assert + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + obj.SuffixSpacing = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSuffixSpacing() // Should return zero value }) - t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { + t.Run("GetLabelPosition", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueOpacity float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemLabelPosition + obj.LabelPosition = expected - // Act - obj.SetOpacity(fernTestValueOpacity) + // Act & Assert + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + obj.LabelPosition = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLabelPosition() // Should return zero value }) - t.Run("SetStrokeWidth_MarksExplicit", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueStrokeWidth float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValueUnit string // Act - obj.SetStrokeWidth(fernTestValueStrokeWidth) + obj.SetUnit(fernTestValueUnit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -154522,14 +194996,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBorderStyle_MarksExplicit", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonBorderStyle + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValueConversion *float64 // Act - obj.SetBorderStyle(fernTestValueBorderStyle) + obj.SetConversion(fernTestValueConversion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -154553,14 +195027,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDashArray_MarksExplicit", func(t *testing.T) { + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueDashArray []float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFraction // Act - obj.SetDashArray(fernTestValueDashArray) + obj.SetFraction(fernTestValueFraction) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -154584,14 +195058,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInteriorColor_MarksExplicit", func(t *testing.T) { + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValuePrecision *int // Act - obj.SetInteriorColor(fernTestValueInteriorColor) + obj.SetPrecision(fernTestValuePrecision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -154615,14 +195089,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetVertices_MarksExplicit", func(t *testing.T) { + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueVertices []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValueFixed *bool // Act - obj.SetVertices(fernTestValueVertices) + obj.SetFixed(fernTestValueFixed) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -154646,14 +195120,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRotation_MarksExplicit", func(t *testing.T) { + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueRotation *float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValueThousands *string // Act - obj.SetRotation(fernTestValueRotation) + obj.SetThousands(fernTestValueThousands) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -154677,14 +195151,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCloudyIntensity_MarksExplicit", func(t *testing.T) { + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon{} - var fernTestValueCloudyIntensity *float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValueDecimal *string // Act - obj.SetCloudyIntensity(fernTestValueCloudyIntensity) + obj.SetDecimal(fernTestValueDecimal) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -154708,116 +195182,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor(t *testing.T) { - t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor{} - var fernTestValueR int - obj.SetR(fernTestValueR) - assert.Equal(t, fernTestValueR, obj.R) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor{} - var fernTestValueG int - obj.SetG(fernTestValueG) - assert.Equal(t, fernTestValueG, obj.G) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor{} - var fernTestValueB int - obj.SetB(fernTestValueB) - assert.Equal(t, fernTestValueB, obj.B) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor(t *testing.T) { - t.Run("GetR", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor{} - var expected int - obj.R = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetR(), "getter should return the property value") - }) - - t.Run("GetR_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetR() // Should return zero value - }) - - t.Run("GetG", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor{} - var expected int - obj.G = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetG(), "getter should return the property value") - }) - - t.Run("GetG_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetG() // Should return zero value - }) - - t.Run("GetB", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor{} - var expected int - obj.B = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetB(), "getter should return the property value") - }) - - t.Run("GetB_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetB() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor(t *testing.T) { - t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor{} - var fernTestValueR int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValuePrefixSpacing *string // Act - obj.SetR(fernTestValueR) + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -154841,14 +195213,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor{} - var fernTestValueG int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValueSuffixSpacing *string // Act - obj.SetG(fernTestValueG) + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -154872,14 +195244,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor{} - var fernTestValueB int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemLabelPosition // Act - obj.SetB(fernTestValueB) + obj.SetLabelPosition(fernTestValueLabelPosition) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -154905,331 +195277,421 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags(t *testing.T) { - t.Run("SetInvisible", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} - var fernTestValueInvisible bool - obj.SetInvisible(fernTestValueInvisible) - assert.Equal(t, fernTestValueInvisible, obj.Invisible) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetHidden", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} - var fernTestValueHidden bool - obj.SetHidden(fernTestValueHidden) - assert.Equal(t, fernTestValueHidden, obj.Hidden) + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPrint", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} - var fernTestValuePrint bool - obj.SetPrint(fernTestValuePrint) - assert.Equal(t, fernTestValuePrint, obj.Print) + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNoZoom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} - var fernTestValueNoZoom bool - obj.SetNoZoom(fernTestValueNoZoom) - assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNoRotate", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} - var fernTestValueNoRotate bool - obj.SetNoRotate(fernTestValueNoRotate) - assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} - var fernTestValueNoView bool - obj.SetNoView(fernTestValueNoView) - assert.Equal(t, fernTestValueNoView, obj.NoView) + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} - var fernTestValueReadOnly bool - obj.SetReadOnly(fernTestValueReadOnly) - assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetLocked", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} - var fernTestValueLocked bool - obj.SetLocked(fernTestValueLocked) - assert.Equal(t, fernTestValueLocked, obj.Locked) + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetToggleNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} - var fernTestValueToggleNoView bool - obj.SetToggleNoView(fernTestValueToggleNoView) - assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetLockedContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} - var fernTestValueLockedContents bool - obj.SetLockedContents(fernTestValueLockedContents) - assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags(t *testing.T) { - t.Run("GetInvisible", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} - var expected bool - obj.Invisible = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + var expected string + obj.Unit = expected // Act & Assert - assert.Equal(t, expected, obj.GetInvisible(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") }) - t.Run("GetInvisible_NilReceiver", func(t *testing.T) { + t.Run("GetUnit_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInvisible() // Should return zero value + _ = obj.GetUnit() // Should return zero value }) - t.Run("GetHidden", func(t *testing.T) { + t.Run("GetConversion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} - var expected bool - obj.Hidden = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + var expected *float64 + obj.Conversion = expected // Act & Assert - assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") }) - t.Run("GetHidden_NilReceiver", func(t *testing.T) { + t.Run("GetConversion_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + obj.Conversion = nil + + // Act & Assert + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") + }) + + t.Run("GetConversion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetHidden() // Should return zero value + _ = obj.GetConversion() // Should return zero value }) - t.Run("GetPrint", func(t *testing.T) { + t.Run("GetFraction", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} - var expected bool - obj.Print = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFraction + obj.Fraction = expected // Act & Assert - assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") }) - t.Run("GetPrint_NilReceiver", func(t *testing.T) { + t.Run("GetFraction_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + obj.Fraction = nil + + // Act & Assert + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") + }) + + t.Run("GetFraction_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPrint() // Should return zero value + _ = obj.GetFraction() // Should return zero value }) - t.Run("GetNoZoom", func(t *testing.T) { + t.Run("GetPrecision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} - var expected bool - obj.NoZoom = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + var expected *int + obj.Precision = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") }) - t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { + t.Run("GetPrecision_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + obj.Precision = nil + + // Act & Assert + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") + }) + + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNoZoom() // Should return zero value + _ = obj.GetPrecision() // Should return zero value }) - t.Run("GetNoRotate", func(t *testing.T) { + t.Run("GetFixed", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} - var expected bool - obj.NoRotate = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + var expected *bool + obj.Fixed = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") }) - t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { + t.Run("GetFixed_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + obj.Fixed = nil + + // Act & Assert + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") + }) + + t.Run("GetFixed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNoRotate() // Should return zero value + _ = obj.GetFixed() // Should return zero value }) - t.Run("GetNoView", func(t *testing.T) { + t.Run("GetThousands", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} - var expected bool - obj.NoView = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + var expected *string + obj.Thousands = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") }) - t.Run("GetNoView_NilReceiver", func(t *testing.T) { + t.Run("GetThousands_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + obj.Thousands = nil + + // Act & Assert + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") + }) + + t.Run("GetThousands_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNoView() // Should return zero value + _ = obj.GetThousands() // Should return zero value }) - t.Run("GetReadOnly", func(t *testing.T) { + t.Run("GetDecimal", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} - var expected bool - obj.ReadOnly = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + var expected *string + obj.Decimal = expected // Act & Assert - assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") }) - t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { + t.Run("GetDecimal_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + obj.Decimal = nil + + // Act & Assert + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") + }) + + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReadOnly() // Should return zero value + _ = obj.GetDecimal() // Should return zero value }) - t.Run("GetLocked", func(t *testing.T) { + t.Run("GetPrefixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} - var expected bool - obj.Locked = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + var expected *string + obj.PrefixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") }) - t.Run("GetLocked_NilReceiver", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + obj.PrefixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLocked() // Should return zero value + _ = obj.GetPrefixSpacing() // Should return zero value }) - t.Run("GetToggleNoView", func(t *testing.T) { + t.Run("GetSuffixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} - var expected bool - obj.ToggleNoView = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + var expected *string + obj.SuffixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") }) - t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + obj.SuffixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetToggleNoView() // Should return zero value + _ = obj.GetSuffixSpacing() // Should return zero value }) - t.Run("GetLockedContents", func(t *testing.T) { + t.Run("GetLabelPosition", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} - var expected bool - obj.LockedContents = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemLabelPosition + obj.LabelPosition = expected // Act & Assert - assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") }) - t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + obj.LabelPosition = nil + + // Act & Assert + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") + }) + + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLockedContents() // Should return zero value + _ = obj.GetLabelPosition() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags(t *testing.T) { - t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} - var fernTestValueInvisible bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValueUnit string // Act - obj.SetInvisible(fernTestValueInvisible) + obj.SetUnit(fernTestValueUnit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -155253,14 +195715,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetHidden_MarksExplicit", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} - var fernTestValueHidden bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValueConversion *float64 // Act - obj.SetHidden(fernTestValueHidden) + obj.SetConversion(fernTestValueConversion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -155284,14 +195746,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPrint_MarksExplicit", func(t *testing.T) { + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} - var fernTestValuePrint bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFraction // Act - obj.SetPrint(fernTestValuePrint) + obj.SetFraction(fernTestValueFraction) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -155315,14 +195777,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} - var fernTestValueNoZoom bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValuePrecision *int // Act - obj.SetNoZoom(fernTestValueNoZoom) + obj.SetPrecision(fernTestValuePrecision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -155346,14 +195808,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} - var fernTestValueNoRotate bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValueFixed *bool // Act - obj.SetNoRotate(fernTestValueNoRotate) + obj.SetFixed(fernTestValueFixed) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -155377,14 +195839,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoView_MarksExplicit", func(t *testing.T) { + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} - var fernTestValueNoView bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValueThousands *string // Act - obj.SetNoView(fernTestValueNoView) + obj.SetThousands(fernTestValueThousands) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -155408,14 +195870,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} - var fernTestValueReadOnly bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValueDecimal *string // Act - obj.SetReadOnly(fernTestValueReadOnly) + obj.SetDecimal(fernTestValueDecimal) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -155439,14 +195901,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLocked_MarksExplicit", func(t *testing.T) { + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} - var fernTestValueLocked bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValuePrefixSpacing *string // Act - obj.SetLocked(fernTestValueLocked) + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -155470,14 +195932,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} - var fernTestValueToggleNoView bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValueSuffixSpacing *string // Act - obj.SetToggleNoView(fernTestValueToggleNoView) + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -155501,14 +195963,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonFlags{} - var fernTestValueLockedContents bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemLabelPosition // Act - obj.SetLockedContents(fernTestValueLockedContents) + obj.SetLabelPosition(fernTestValueLabelPosition) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -155534,444 +195996,421 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetConversion", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFraction", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFixed", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} var expected string - obj.Kind = expected + obj.Unit = expected // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetUnit_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKind() // Should return zero value + _ = obj.GetUnit() // Should return zero value }) - t.Run("GetObjectNumber", func(t *testing.T) { + t.Run("GetConversion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber - obj.ObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + var expected *float64 + obj.Conversion = expected // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") }) - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Run("GetConversion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo{} - obj.ObjectNumber = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + obj.Conversion = nil // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") }) - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetConversion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetObjectNumber() // Should return zero value + _ = obj.GetConversion() // Should return zero value }) - t.Run("GetNm", func(t *testing.T) { + t.Run("GetFraction", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm - obj.Nm = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFraction + obj.Fraction = expected // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") }) - t.Run("GetNm_NilValue", func(t *testing.T) { + t.Run("GetFraction_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo{} - obj.Nm = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + obj.Fraction = nil // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetFraction_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetFraction() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetPrecision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex - obj.Index = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + var expected *int + obj.Precision = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") }) - t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Run("GetPrecision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo{} - obj.Index = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + obj.Precision = nil // Act & Assert - assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) + _ = obj.GetPrecision() // Should return zero value }) - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("GetFixed", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + var expected *bool + obj.Fixed = expected - t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") }) -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetFixed_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + obj.Fixed = nil // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetFixed_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetFixed() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetThousands", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex{} - var expected int - obj.Index = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + var expected *string + obj.Thousands = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetThousands_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + obj.Thousands = nil + + // Act & Assert + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") + }) + + t.Run("GetThousands_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetThousands() // Should return zero value }) - t.Run("GetRevision", func(t *testing.T) { + t.Run("GetDecimal", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision - obj.Revision = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + var expected *string + obj.Decimal = expected // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") }) - t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Run("GetDecimal_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex{} - obj.Revision = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + obj.Decimal = nil // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") }) - t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRevision() // Should return zero value + _ = obj.GetDecimal() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("GetPrefixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex{} - var fernTestValuePageObjectNumber int - - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + var expected *string + obj.PrefixSpacing = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex{} - var fernTestValueIndex int - - // Act - obj.SetIndex(fernTestValueIndex) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + obj.PrefixSpacing = nil - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision - - // Act - obj.SetRevision(fernTestValueRevision) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision{} - var fernTestValueDocSessionID string - obj.SetDocSessionID(fernTestValueDocSessionID) - assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) - assert.NotNil(t, obj.explicitFields) + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrefixSpacing() // Should return zero value }) - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("GetSuffixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + var expected *string + obj.SuffixSpacing = expected - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") }) -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision{} - var expected string - obj.DocSessionID = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + obj.SuffixSpacing = nil // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDocSessionID() // Should return zero value + _ = obj.GetSuffixSpacing() // Should return zero value }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetLabelPosition", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemLabelPosition + obj.LabelPosition = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") }) - t.Run("GetGeneration", func(t *testing.T) { + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision{} - var expected int - obj.Generation = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + obj.LabelPosition = nil // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") }) - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGeneration() // Should return zero value + _ = obj.GetLabelPosition() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision{} - var fernTestValueDocSessionID string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValueUnit string // Act - obj.SetDocSessionID(fernTestValueDocSessionID) + obj.SetUnit(fernTestValueUnit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -155995,14 +196434,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValueConversion *float64 // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetConversion(fernTestValueConversion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -156026,14 +196465,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToIndexRevision{} - var fernTestValueGeneration int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValueFraction *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFraction // Act - obj.SetGeneration(fernTestValueGeneration) + obj.SetFraction(fernTestValueFraction) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -156057,85 +196496,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm{} - var fernTestValueNm string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm{} - var expected string - obj.Nm = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") - }) - - t.Run("GetNm_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNm() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValuePrecision *int // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetPrecision(fernTestValuePrecision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -156159,14 +196527,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToNm{} - var fernTestValueNm string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValueFixed *bool // Act - obj.SetNm(fernTestValueNm) + obj.SetFixed(fernTestValueFixed) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -156190,85 +196558,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetAnnotObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") - }) - - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAnnotObjectNumber() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValueThousands *string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetThousands(fernTestValueThousands) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -156292,14 +196589,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValueDecimal *string // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + obj.SetDecimal(fernTestValueDecimal) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -156323,116 +196620,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor(t *testing.T) { - t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor{} - var fernTestValueR int - obj.SetR(fernTestValueR) - assert.Equal(t, fernTestValueR, obj.R) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor{} - var fernTestValueG int - obj.SetG(fernTestValueG) - assert.Equal(t, fernTestValueG, obj.G) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor{} - var fernTestValueB int - obj.SetB(fernTestValueB) - assert.Equal(t, fernTestValueB, obj.B) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor(t *testing.T) { - t.Run("GetR", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor{} - var expected int - obj.R = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetR(), "getter should return the property value") - }) - - t.Run("GetR_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetR() // Should return zero value - }) - - t.Run("GetG", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor{} - var expected int - obj.G = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetG(), "getter should return the property value") - }) - - t.Run("GetG_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetG() // Should return zero value - }) - - t.Run("GetB", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor{} - var expected int - obj.B = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetB(), "getter should return the property value") - }) - - t.Run("GetB_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetB() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor(t *testing.T) { - t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor{} - var fernTestValueR int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValuePrefixSpacing *string // Act - obj.SetR(fernTestValueR) + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -156456,14 +196651,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor{} - var fernTestValueG int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValueSuffixSpacing *string // Act - obj.SetG(fernTestValueG) + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -156487,14 +196682,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonInteriorColor{} - var fernTestValueB int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + var fernTestValueLabelPosition *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemLabelPosition // Act - obj.SetB(fernTestValueB) + obj.SetLabelPosition(fernTestValueLabelPosition) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -156520,9 +196715,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect(t *testing.T) { t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} var fernTestValueLeft float64 obj.SetLeft(fernTestValueLeft) assert.Equal(t, fernTestValueLeft, obj.Left) @@ -156530,7 +196725,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR }) t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} var fernTestValueBottom float64 obj.SetBottom(fernTestValueBottom) assert.Equal(t, fernTestValueBottom, obj.Bottom) @@ -156538,7 +196733,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR }) t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} var fernTestValueRight float64 obj.SetRight(fernTestValueRight) assert.Equal(t, fernTestValueRight, obj.Right) @@ -156546,7 +196741,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR }) t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} var fernTestValueTop float64 obj.SetTop(fernTestValueTop) assert.Equal(t, fernTestValueTop, obj.Top) @@ -156555,11 +196750,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect(t *testing.T) { t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} var expected float64 obj.Left = expected @@ -156569,7 +196764,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -156582,7 +196777,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} var expected float64 obj.Bottom = expected @@ -156592,7 +196787,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -156605,7 +196800,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} var expected float64 obj.Right = expected @@ -156615,7 +196810,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -156628,7 +196823,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} var expected float64 obj.Top = expected @@ -156638,7 +196833,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -156650,11 +196845,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect(t *testing.T) { t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} var fernTestValueLeft float64 // Act @@ -156685,7 +196880,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} var fernTestValueBottom float64 // Act @@ -156716,7 +196911,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} var fernTestValueRight float64 // Act @@ -156747,7 +196942,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} var fernTestValueTop float64 // Act @@ -156777,11 +196972,11 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef{} var expected string obj.Kind = expected @@ -156791,7 +196986,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -156804,8 +196999,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -156815,7 +197010,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef{} obj.ObjectNumber = nil // Act & Assert @@ -156824,7 +197019,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -156837,8 +197032,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm obj.Nm = expected // Act & Assert @@ -156848,7 +197043,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef{} obj.Nm = nil // Act & Assert @@ -156857,7 +197052,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -156870,8 +197065,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex obj.Index = expected // Act & Assert @@ -156881,7 +197076,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef{} obj.Index = nil // Act & Assert @@ -156890,7 +197085,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -156902,9 +197097,9 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -156912,7 +197107,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -156920,8 +197115,8 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -156929,11 +197124,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex{} var expected int obj.PageObjectNumber = expected @@ -156943,7 +197138,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -156956,7 +197151,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex{} var expected int obj.Index = expected @@ -156966,7 +197161,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -156979,8 +197174,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision obj.Revision = expected // Act & Assert @@ -156990,7 +197185,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex{} obj.Revision = nil // Act & Assert @@ -156999,7 +197194,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -157011,11 +197206,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex{} var fernTestValuePageObjectNumber int // Act @@ -157046,7 +197241,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex{} var fernTestValueIndex int // Act @@ -157077,8 +197272,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -157107,9 +197302,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -157117,7 +197312,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -157125,7 +197320,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -157134,11 +197329,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision{} var expected string obj.DocSessionID = expected @@ -157148,7 +197343,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -157161,7 +197356,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -157171,7 +197366,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -157184,7 +197379,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision{} var expected int obj.Generation = expected @@ -157194,7 +197389,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -157206,11 +197401,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision{} var fernTestValueDocSessionID string // Act @@ -157241,7 +197436,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -157272,7 +197467,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision{} var fernTestValueGeneration int // Act @@ -157302,9 +197497,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -157312,7 +197507,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm{} var fernTestValueNm string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -157321,11 +197516,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm{} var expected int obj.PageObjectNumber = expected @@ -157335,7 +197530,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -157348,7 +197543,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm{} var expected string obj.Nm = expected @@ -157358,7 +197553,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -157370,11 +197565,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm{} var fernTestValuePageObjectNumber int // Act @@ -157405,7 +197600,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm{} var fernTestValueNm string // Act @@ -157435,9 +197630,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -157445,7 +197640,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR }) t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber{} var fernTestValueAnnotObjectNumber int obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) @@ -157454,11 +197649,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber{} var expected int obj.PageObjectNumber = expected @@ -157468,7 +197663,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -157481,7 +197676,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber{} var expected int obj.AnnotObjectNumber = expected @@ -157491,7 +197686,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -157503,11 +197698,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonR } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber{} var fernTestValuePageObjectNumber int // Act @@ -157538,7 +197733,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber{} var fernTestValueAnnotObjectNumber int // Act @@ -157568,9 +197763,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem(t *testing.T) { t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem{} var fernTestValueX float64 obj.SetX(fernTestValueX) assert.Equal(t, fernTestValueX, obj.X) @@ -157578,7 +197773,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonV }) t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem{} var fernTestValueY float64 obj.SetY(fernTestValueY) assert.Equal(t, fernTestValueY, obj.Y) @@ -157587,11 +197782,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonV } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem(t *testing.T) { t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem{} var expected float64 obj.X = expected @@ -157601,7 +197796,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonV t.Run("GetX_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -157614,7 +197809,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonV t.Run("GetY", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem{} var expected float64 obj.Y = expected @@ -157624,7 +197819,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonV t.Run("GetY_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -157636,11 +197831,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonV } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem(t *testing.T) { t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem{} var fernTestValueX float64 // Act @@ -157671,7 +197866,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonVerticesItem{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem{} var fernTestValueY float64 // Act @@ -157701,17 +197896,17 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t *testing.T) { t.Run("SetRef", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef obj.SetRef(fernTestValueRef) assert.Equal(t, fernTestValueRef, obj.Ref) assert.NotNil(t, obj.explicitFields) }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -157719,7 +197914,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -157727,15 +197922,15 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline }) t.Run("SetIdentityQuality", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQuality obj.SetIdentityQuality(fernTestValueIdentityQuality) assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) assert.NotNil(t, obj.explicitFields) }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var fernTestValueNm *string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -157743,23 +197938,23 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline }) t.Run("SetFlags", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags obj.SetFlags(fernTestValueFlags) assert.Equal(t, fernTestValueFlags, obj.Flags) assert.NotNil(t, obj.explicitFields) }) t.Run("SetRect", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect obj.SetRect(fernTestValueRect) assert.Equal(t, fernTestValueRect, obj.Rect) assert.NotNil(t, obj.explicitFields) }) t.Run("SetContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var fernTestValueContents *string obj.SetContents(fernTestValueContents) assert.Equal(t, fernTestValueContents, obj.Contents) @@ -157767,7 +197962,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline }) t.Run("SetSubject", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var fernTestValueSubject *string obj.SetSubject(fernTestValueSubject) assert.Equal(t, fernTestValueSubject, obj.Subject) @@ -157775,7 +197970,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline }) t.Run("SetAuthor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var fernTestValueAuthor *string obj.SetAuthor(fernTestValueAuthor) assert.Equal(t, fernTestValueAuthor, obj.Author) @@ -157783,7 +197978,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline }) t.Run("SetCreated", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var fernTestValueCreated *time.Time obj.SetCreated(fernTestValueCreated) assert.Equal(t, fernTestValueCreated, obj.Created) @@ -157791,7 +197986,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline }) t.Run("SetModified", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var fernTestValueModified *time.Time obj.SetModified(fernTestValueModified) assert.Equal(t, fernTestValueModified, obj.Modified) @@ -157799,31 +197994,31 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline }) t.Run("SetBlendMode", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode obj.SetBlendMode(fernTestValueBlendMode) assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) assert.NotNil(t, obj.explicitFields) }) t.Run("SetInReplyTo", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo obj.SetInReplyTo(fernTestValueInReplyTo) assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) assert.NotNil(t, obj.explicitFields) }) t.Run("SetReplyType", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType obj.SetReplyType(fernTestValueReplyType) assert.Equal(t, fernTestValueReplyType, obj.ReplyType) assert.NotNil(t, obj.explicitFields) }) t.Run("SetUserID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var fernTestValueUserID *string obj.SetUserID(fernTestValueUserID) assert.Equal(t, fernTestValueUserID, obj.UserID) @@ -157831,7 +198026,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline }) t.Run("SetGroupID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var fernTestValueGroupID *string obj.SetGroupID(fernTestValueGroupID) assert.Equal(t, fernTestValueGroupID, obj.GroupID) @@ -157839,7 +198034,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline }) t.Run("SetCreatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var fernTestValueCreatedBy *string obj.SetCreatedBy(fernTestValueCreatedBy) assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) @@ -157847,7 +198042,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline }) t.Run("SetUpdatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var fernTestValueUpdatedBy *string obj.SetUpdatedBy(fernTestValueUpdatedBy) assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) @@ -157855,93 +198050,101 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline }) t.Run("SetActions", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var fernTestValueActions *PdfAnnotationActions obj.SetActions(fernTestValueActions) assert.Equal(t, fernTestValueActions, obj.Actions) assert.NotNil(t, obj.explicitFields) }) + t.Run("SetQuadPoints", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueQuadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem + obj.SetQuadPoints(fernTestValueQuadPoints) + assert.Equal(t, fernTestValueQuadPoints, obj.QuadPoints) + assert.NotNil(t, obj.explicitFields) + }) + t.Run("SetColor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor obj.SetColor(fernTestValueColor) assert.Equal(t, fernTestValueColor, obj.Color) assert.NotNil(t, obj.explicitFields) }) t.Run("SetOpacity", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var fernTestValueOpacity float64 obj.SetOpacity(fernTestValueOpacity) assert.Equal(t, fernTestValueOpacity, obj.Opacity) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetStrokeWidth", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var fernTestValueStrokeWidth float64 - obj.SetStrokeWidth(fernTestValueStrokeWidth) - assert.Equal(t, fernTestValueStrokeWidth, obj.StrokeWidth) + t.Run("SetInteriorColor", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor + obj.SetInteriorColor(fernTestValueInteriorColor) + assert.Equal(t, fernTestValueInteriorColor, obj.InteriorColor) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetBorderStyle", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle - obj.SetBorderStyle(fernTestValueBorderStyle) - assert.Equal(t, fernTestValueBorderStyle, obj.BorderStyle) + t.Run("SetOverlayText", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueOverlayText *string + obj.SetOverlayText(fernTestValueOverlayText) + assert.Equal(t, fernTestValueOverlayText, obj.OverlayText) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetDashArray", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var fernTestValueDashArray []float64 - obj.SetDashArray(fernTestValueDashArray) - assert.Equal(t, fernTestValueDashArray, obj.DashArray) + t.Run("SetRepeat", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueRepeat bool + obj.SetRepeat(fernTestValueRepeat) + assert.Equal(t, fernTestValueRepeat, obj.Repeat) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetInteriorColor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor - obj.SetInteriorColor(fernTestValueInteriorColor) - assert.Equal(t, fernTestValueInteriorColor, obj.InteriorColor) + t.Run("SetFontFamily", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueFontFamily DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily + obj.SetFontFamily(fernTestValueFontFamily) + assert.Equal(t, fernTestValueFontFamily, obj.FontFamily) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetVertices", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var fernTestValueVertices []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem - obj.SetVertices(fernTestValueVertices) - assert.Equal(t, fernTestValueVertices, obj.Vertices) + t.Run("SetFontSize", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueFontSize float64 + obj.SetFontSize(fernTestValueFontSize) + assert.Equal(t, fernTestValueFontSize, obj.FontSize) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRotation", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var fernTestValueRotation *float64 - obj.SetRotation(fernTestValueRotation) - assert.Equal(t, fernTestValueRotation, obj.Rotation) + t.Run("SetFontColor", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueFontColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor + obj.SetFontColor(fernTestValueFontColor) + assert.Equal(t, fernTestValueFontColor, obj.FontColor) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetLineEndings", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var fernTestValueLineEndings *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings - obj.SetLineEndings(fernTestValueLineEndings) - assert.Equal(t, fernTestValueLineEndings, obj.LineEndings) + t.Run("SetTextAlign", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueTextAlign DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlign + obj.SetTextAlign(fernTestValueTextAlign) + assert.Equal(t, fernTestValueTextAlign, obj.TextAlign) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t *testing.T) { t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef obj.Ref = expected // Act & Assert @@ -157951,7 +198154,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetRef_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} obj.Ref = nil // Act & Assert @@ -157960,7 +198163,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetRef_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -157973,7 +198176,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var expected int obj.PageObjectNumber = expected @@ -157983,7 +198186,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -157996,7 +198199,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var expected int obj.Index = expected @@ -158006,7 +198209,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -158019,8 +198222,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetIdentityQuality", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQuality obj.IdentityQuality = expected // Act & Assert @@ -158029,7 +198232,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -158042,7 +198245,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var expected *string obj.Nm = expected @@ -158053,7 +198256,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} obj.Nm = nil // Act & Assert @@ -158062,7 +198265,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -158075,8 +198278,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags obj.Flags = expected // Act & Assert @@ -158086,7 +198289,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} obj.Flags = nil // Act & Assert @@ -158095,7 +198298,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -158108,8 +198311,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetRect", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect obj.Rect = expected // Act & Assert @@ -158119,7 +198322,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetRect_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} obj.Rect = nil // Act & Assert @@ -158128,7 +198331,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetRect_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -158141,7 +198344,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var expected *string obj.Contents = expected @@ -158152,7 +198355,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetContents_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} obj.Contents = nil // Act & Assert @@ -158161,7 +198364,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -158174,7 +198377,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetSubject", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var expected *string obj.Subject = expected @@ -158185,7 +198388,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetSubject_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} obj.Subject = nil // Act & Assert @@ -158194,7 +198397,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetSubject_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -158207,7 +198410,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetAuthor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var expected *string obj.Author = expected @@ -158218,7 +198421,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetAuthor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} obj.Author = nil // Act & Assert @@ -158227,7 +198430,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetAuthor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -158240,7 +198443,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetCreated", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var expected *time.Time obj.Created = expected @@ -158251,7 +198454,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetCreated_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} obj.Created = nil // Act & Assert @@ -158260,7 +198463,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetCreated_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -158273,7 +198476,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetModified", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var expected *time.Time obj.Modified = expected @@ -158284,7 +198487,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetModified_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} obj.Modified = nil // Act & Assert @@ -158293,7 +198496,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetModified_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -158306,8 +198509,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetBlendMode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode obj.BlendMode = expected // Act & Assert @@ -158316,7 +198519,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -158329,8 +198532,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetInReplyTo", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo obj.InReplyTo = expected // Act & Assert @@ -158340,7 +198543,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetInReplyTo_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} obj.InReplyTo = nil // Act & Assert @@ -158349,7 +198552,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -158362,8 +198565,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetReplyType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType obj.ReplyType = expected // Act & Assert @@ -158373,7 +198576,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetReplyType_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} obj.ReplyType = nil // Act & Assert @@ -158382,7 +198585,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetReplyType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -158395,7 +198598,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetUserID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var expected *string obj.UserID = expected @@ -158406,7 +198609,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetUserID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} obj.UserID = nil // Act & Assert @@ -158415,7 +198618,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetUserID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -158428,7 +198631,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetGroupID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var expected *string obj.GroupID = expected @@ -158439,7 +198642,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetGroupID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} obj.GroupID = nil // Act & Assert @@ -158448,7 +198651,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetGroupID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -158461,7 +198664,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetCreatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var expected *string obj.CreatedBy = expected @@ -158472,7 +198675,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetCreatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} obj.CreatedBy = nil // Act & Assert @@ -158481,7 +198684,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -158494,7 +198697,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetUpdatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var expected *string obj.UpdatedBy = expected @@ -158505,7 +198708,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} obj.UpdatedBy = nil // Act & Assert @@ -158514,7 +198717,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -158527,7 +198730,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetActions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var expected *PdfAnnotationActions obj.Actions = expected @@ -158538,7 +198741,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetActions_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} obj.Actions = nil // Act & Assert @@ -158547,7 +198750,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetActions_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -158557,11 +198760,44 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline _ = obj.GetActions() // Should return zero value }) + t.Run("GetQuadPoints", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem + obj.QuadPoints = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetQuadPoints(), "getter should return the property value") + }) + + t.Run("GetQuadPoints_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj.QuadPoints = nil + + // Act & Assert + assert.Nil(t, obj.GetQuadPoints(), "getter should return nil when property is nil") + }) + + t.Run("GetQuadPoints_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetQuadPoints() // Should return zero value + }) + t.Run("GetColor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor obj.Color = expected // Act & Assert @@ -158571,7 +198807,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetColor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} obj.Color = nil // Act & Assert @@ -158580,7 +198816,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetColor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -158593,7 +198829,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetOpacity", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var expected float64 obj.Opacity = expected @@ -158603,7 +198839,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetOpacity_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -158613,225 +198849,205 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline _ = obj.GetOpacity() // Should return zero value }) - t.Run("GetStrokeWidth", func(t *testing.T) { + t.Run("GetInteriorColor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var expected float64 - obj.StrokeWidth = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor + obj.InteriorColor = expected // Act & Assert - assert.Equal(t, expected, obj.GetStrokeWidth(), "getter should return the property value") - }) - - t.Run("GetStrokeWidth_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetStrokeWidth() // Should return zero value + assert.Equal(t, expected, obj.GetInteriorColor(), "getter should return the property value") }) - t.Run("GetBorderStyle", func(t *testing.T) { + t.Run("GetInteriorColor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle - obj.BorderStyle = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj.InteriorColor = nil // Act & Assert - assert.Equal(t, expected, obj.GetBorderStyle(), "getter should return the property value") + assert.Nil(t, obj.GetInteriorColor(), "getter should return nil when property is nil") }) - t.Run("GetBorderStyle_NilReceiver", func(t *testing.T) { + t.Run("GetInteriorColor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBorderStyle() // Should return zero value + _ = obj.GetInteriorColor() // Should return zero value }) - t.Run("GetDashArray", func(t *testing.T) { + t.Run("GetOverlayText", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var expected []float64 - obj.DashArray = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var expected *string + obj.OverlayText = expected // Act & Assert - assert.Equal(t, expected, obj.GetDashArray(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOverlayText(), "getter should return the property value") }) - t.Run("GetDashArray_NilValue", func(t *testing.T) { + t.Run("GetOverlayText_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - obj.DashArray = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj.OverlayText = nil // Act & Assert - assert.Nil(t, obj.GetDashArray(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOverlayText(), "getter should return nil when property is nil") }) - t.Run("GetDashArray_NilReceiver", func(t *testing.T) { + t.Run("GetOverlayText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDashArray() // Should return zero value - }) - - t.Run("GetInteriorColor", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor - obj.InteriorColor = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetInteriorColor(), "getter should return the property value") + _ = obj.GetOverlayText() // Should return zero value }) - t.Run("GetInteriorColor_NilValue", func(t *testing.T) { + t.Run("GetRepeat", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - obj.InteriorColor = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var expected bool + obj.Repeat = expected // Act & Assert - assert.Nil(t, obj.GetInteriorColor(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetRepeat(), "getter should return the property value") }) - t.Run("GetInteriorColor_NilReceiver", func(t *testing.T) { + t.Run("GetRepeat_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInteriorColor() // Should return zero value + _ = obj.GetRepeat() // Should return zero value }) - t.Run("GetVertices", func(t *testing.T) { + t.Run("GetFontFamily", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem - obj.Vertices = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily + obj.FontFamily = expected // Act & Assert - assert.Equal(t, expected, obj.GetVertices(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFontFamily(), "getter should return the property value") }) - t.Run("GetVertices_NilValue", func(t *testing.T) { + t.Run("GetFontFamily_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFontFamily() // Should return zero value + }) + + t.Run("GetFontSize", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - obj.Vertices = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var expected float64 + obj.FontSize = expected // Act & Assert - assert.Nil(t, obj.GetVertices(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetFontSize(), "getter should return the property value") }) - t.Run("GetVertices_NilReceiver", func(t *testing.T) { + t.Run("GetFontSize_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetVertices() // Should return zero value + _ = obj.GetFontSize() // Should return zero value }) - t.Run("GetRotation", func(t *testing.T) { + t.Run("GetFontColor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var expected *float64 - obj.Rotation = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor + obj.FontColor = expected // Act & Assert - assert.Equal(t, expected, obj.GetRotation(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFontColor(), "getter should return the property value") }) - t.Run("GetRotation_NilValue", func(t *testing.T) { + t.Run("GetFontColor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - obj.Rotation = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj.FontColor = nil // Act & Assert - assert.Nil(t, obj.GetRotation(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetFontColor(), "getter should return nil when property is nil") }) - t.Run("GetRotation_NilReceiver", func(t *testing.T) { + t.Run("GetFontColor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRotation() // Should return zero value - }) - - t.Run("GetLineEndings", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings - obj.LineEndings = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetLineEndings(), "getter should return the property value") + _ = obj.GetFontColor() // Should return zero value }) - t.Run("GetLineEndings_NilValue", func(t *testing.T) { + t.Run("GetTextAlign", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - obj.LineEndings = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlign + obj.TextAlign = expected // Act & Assert - assert.Nil(t, obj.GetLineEndings(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetTextAlign(), "getter should return the property value") }) - t.Run("GetLineEndings_NilReceiver", func(t *testing.T) { + t.Run("GetTextAlign_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLineEndings() // Should return zero value + _ = obj.GetTextAlign() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t *testing.T) { t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef // Act obj.SetRef(fernTestValueRef) @@ -158861,7 +199077,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var fernTestValuePageObjectNumber int // Act @@ -158892,7 +199108,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var fernTestValueIndex int // Act @@ -158923,8 +199139,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQuality // Act obj.SetIdentityQuality(fernTestValueIdentityQuality) @@ -158954,7 +199170,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var fernTestValueNm *string // Act @@ -158985,8 +199201,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags // Act obj.SetFlags(fernTestValueFlags) @@ -159016,8 +199232,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect // Act obj.SetRect(fernTestValueRect) @@ -159047,7 +199263,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var fernTestValueContents *string // Act @@ -159078,7 +199294,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var fernTestValueSubject *string // Act @@ -159109,7 +199325,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var fernTestValueAuthor *string // Act @@ -159140,7 +199356,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var fernTestValueCreated *time.Time // Act @@ -159171,7 +199387,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var fernTestValueModified *time.Time // Act @@ -159202,8 +199418,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode // Act obj.SetBlendMode(fernTestValueBlendMode) @@ -159233,8 +199449,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo // Act obj.SetInReplyTo(fernTestValueInReplyTo) @@ -159264,8 +199480,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType // Act obj.SetReplyType(fernTestValueReplyType) @@ -159295,7 +199511,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var fernTestValueUserID *string // Act @@ -159326,7 +199542,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var fernTestValueGroupID *string // Act @@ -159357,7 +199573,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var fernTestValueCreatedBy *string // Act @@ -159388,7 +199604,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var fernTestValueUpdatedBy *string // Act @@ -159419,7 +199635,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetActions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var fernTestValueActions *PdfAnnotationActions // Act @@ -159447,11 +199663,42 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) + t.Run("SetQuadPoints_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueQuadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem + + // Act + obj.SetQuadPoints(fernTestValueQuadPoints) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + t.Run("SetColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor // Act obj.SetColor(fernTestValueColor) @@ -159481,7 +199728,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} var fernTestValueOpacity float64 // Act @@ -159509,14 +199756,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetStrokeWidth_MarksExplicit", func(t *testing.T) { + t.Run("SetInteriorColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var fernTestValueStrokeWidth float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor // Act - obj.SetStrokeWidth(fernTestValueStrokeWidth) + obj.SetInteriorColor(fernTestValueInteriorColor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -159540,14 +199787,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBorderStyle_MarksExplicit", func(t *testing.T) { + t.Run("SetOverlayText_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineBorderStyle + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueOverlayText *string // Act - obj.SetBorderStyle(fernTestValueBorderStyle) + obj.SetOverlayText(fernTestValueOverlayText) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -159571,14 +199818,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDashArray_MarksExplicit", func(t *testing.T) { + t.Run("SetRepeat_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var fernTestValueDashArray []float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueRepeat bool // Act - obj.SetDashArray(fernTestValueDashArray) + obj.SetRepeat(fernTestValueRepeat) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -159602,14 +199849,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInteriorColor_MarksExplicit", func(t *testing.T) { + t.Run("SetFontFamily_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueFontFamily DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily // Act - obj.SetInteriorColor(fernTestValueInteriorColor) + obj.SetFontFamily(fernTestValueFontFamily) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -159633,14 +199880,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetVertices_MarksExplicit", func(t *testing.T) { + t.Run("SetFontSize_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var fernTestValueVertices []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueFontSize float64 // Act - obj.SetVertices(fernTestValueVertices) + obj.SetFontSize(fernTestValueFontSize) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -159664,14 +199911,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRotation_MarksExplicit", func(t *testing.T) { + t.Run("SetFontColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var fernTestValueRotation *float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueFontColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor // Act - obj.SetRotation(fernTestValueRotation) + obj.SetFontColor(fernTestValueFontColor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -159695,14 +199942,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLineEndings_MarksExplicit", func(t *testing.T) { + t.Run("SetTextAlign_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline{} - var fernTestValueLineEndings *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + var fernTestValueTextAlign DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlign // Act - obj.SetLineEndings(fernTestValueLineEndings) + obj.SetTextAlign(fernTestValueTextAlign) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -159728,9 +199975,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor(t *testing.T) { t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor{} var fernTestValueR int obj.SetR(fernTestValueR) assert.Equal(t, fernTestValueR, obj.R) @@ -159738,7 +199985,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline }) t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor{} var fernTestValueG int obj.SetG(fernTestValueG) assert.Equal(t, fernTestValueG, obj.G) @@ -159746,7 +199993,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline }) t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor{} var fernTestValueB int obj.SetB(fernTestValueB) assert.Equal(t, fernTestValueB, obj.B) @@ -159755,11 +200002,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor(t *testing.T) { t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor{} var expected int obj.R = expected @@ -159769,7 +200016,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetR_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -159782,7 +200029,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetG", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor{} var expected int obj.G = expected @@ -159792,7 +200039,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetG_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -159805,7 +200052,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetB", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor{} var expected int obj.B = expected @@ -159815,7 +200062,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetB_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -159827,11 +200074,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor(t *testing.T) { t.Run("SetR_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor{} var fernTestValueR int // Act @@ -159862,7 +200109,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor{} var fernTestValueG int // Act @@ -159893,7 +200140,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetB_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor{} var fernTestValueB int // Act @@ -159923,9 +200170,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags(t *testing.T) { t.Run("SetInvisible", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} var fernTestValueInvisible bool obj.SetInvisible(fernTestValueInvisible) assert.Equal(t, fernTestValueInvisible, obj.Invisible) @@ -159933,7 +200180,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline }) t.Run("SetHidden", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} var fernTestValueHidden bool obj.SetHidden(fernTestValueHidden) assert.Equal(t, fernTestValueHidden, obj.Hidden) @@ -159941,7 +200188,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline }) t.Run("SetPrint", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} var fernTestValuePrint bool obj.SetPrint(fernTestValuePrint) assert.Equal(t, fernTestValuePrint, obj.Print) @@ -159949,7 +200196,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline }) t.Run("SetNoZoom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} var fernTestValueNoZoom bool obj.SetNoZoom(fernTestValueNoZoom) assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) @@ -159957,7 +200204,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline }) t.Run("SetNoRotate", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} var fernTestValueNoRotate bool obj.SetNoRotate(fernTestValueNoRotate) assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) @@ -159965,7 +200212,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline }) t.Run("SetNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} var fernTestValueNoView bool obj.SetNoView(fernTestValueNoView) assert.Equal(t, fernTestValueNoView, obj.NoView) @@ -159973,7 +200220,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline }) t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} var fernTestValueReadOnly bool obj.SetReadOnly(fernTestValueReadOnly) assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) @@ -159981,7 +200228,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline }) t.Run("SetLocked", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} var fernTestValueLocked bool obj.SetLocked(fernTestValueLocked) assert.Equal(t, fernTestValueLocked, obj.Locked) @@ -159989,7 +200236,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline }) t.Run("SetToggleNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} var fernTestValueToggleNoView bool obj.SetToggleNoView(fernTestValueToggleNoView) assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) @@ -159997,7 +200244,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline }) t.Run("SetLockedContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} var fernTestValueLockedContents bool obj.SetLockedContents(fernTestValueLockedContents) assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) @@ -160006,11 +200253,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags(t *testing.T) { t.Run("GetInvisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} var expected bool obj.Invisible = expected @@ -160020,7 +200267,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetInvisible_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -160033,7 +200280,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetHidden", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} var expected bool obj.Hidden = expected @@ -160041,213 +200288,955 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") }) - t.Run("GetHidden_NilReceiver", func(t *testing.T) { + t.Run("GetHidden_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetHidden() // Should return zero value + }) + + t.Run("GetPrint", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} + var expected bool + obj.Print = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") + }) + + t.Run("GetPrint_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrint() // Should return zero value + }) + + t.Run("GetNoZoom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} + var expected bool + obj.NoZoom = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") + }) + + t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNoZoom() // Should return zero value + }) + + t.Run("GetNoRotate", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} + var expected bool + obj.NoRotate = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") + }) + + t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNoRotate() // Should return zero value + }) + + t.Run("GetNoView", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} + var expected bool + obj.NoView = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") + }) + + t.Run("GetNoView_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNoView() // Should return zero value + }) + + t.Run("GetReadOnly", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} + var expected bool + obj.ReadOnly = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") + }) + + t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetReadOnly() // Should return zero value + }) + + t.Run("GetLocked", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} + var expected bool + obj.Locked = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") + }) + + t.Run("GetLocked_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLocked() // Should return zero value + }) + + t.Run("GetToggleNoView", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} + var expected bool + obj.ToggleNoView = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") + }) + + t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetToggleNoView() // Should return zero value + }) + + t.Run("GetLockedContents", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} + var expected bool + obj.LockedContents = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") + }) + + t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLockedContents() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags(t *testing.T) { + t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} + var fernTestValueInvisible bool + + // Act + obj.SetInvisible(fernTestValueInvisible) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetHidden_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} + var fernTestValueHidden bool + + // Act + obj.SetHidden(fernTestValueHidden) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrint_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} + var fernTestValuePrint bool + + // Act + obj.SetPrint(fernTestValuePrint) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} + var fernTestValueNoZoom bool + + // Act + obj.SetNoZoom(fernTestValueNoZoom) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} + var fernTestValueNoRotate bool + + // Act + obj.SetNoRotate(fernTestValueNoRotate) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNoView_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} + var fernTestValueNoView bool + + // Act + obj.SetNoView(fernTestValueNoView) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} + var fernTestValueReadOnly bool + + // Act + obj.SetReadOnly(fernTestValueReadOnly) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetLocked_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} + var fernTestValueLocked bool + + // Act + obj.SetLocked(fernTestValueLocked) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} + var fernTestValueToggleNoView bool + + // Act + obj.SetToggleNoView(fernTestValueToggleNoView) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} + var fernTestValueLockedContents bool + + // Act + obj.SetLockedContents(fernTestValueLockedContents) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor(t *testing.T) { + t.Run("SetR", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor{} + var fernTestValueR int + obj.SetR(fernTestValueR) + assert.Equal(t, fernTestValueR, obj.R) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetG", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor{} + var fernTestValueG int + obj.SetG(fernTestValueG) + assert.Equal(t, fernTestValueG, obj.G) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetB", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor{} + var expected int + obj.R = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") + }) + + t.Run("GetR_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetR() // Should return zero value + }) + + t.Run("GetG", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor{} + var expected int + obj.G = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") + }) + + t.Run("GetG_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetG() // Should return zero value + }) + + t.Run("GetB", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor{} + var expected int + obj.B = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + }) + + t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetB() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor{} + var fernTestValueR int + + // Act + obj.SetR(fernTestValueR) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor{} + var fernTestValueG int + + // Act + obj.SetG(fernTestValueG) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor{} + var fernTestValueB int + + // Act + obj.SetB(fernTestValueB) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo{} + var expected string + obj.Kind = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + }) + + t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetHidden() // Should return zero value + _ = obj.GetKind() // Should return zero value }) - t.Run("GetPrint", func(t *testing.T) { + t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} - var expected bool - obj.Print = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber + obj.ObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") - }) - - t.Run("GetPrint_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPrint() // Should return zero value + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") }) - t.Run("GetNoZoom", func(t *testing.T) { + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} - var expected bool - obj.NoZoom = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo{} + obj.ObjectNumber = nil // Act & Assert - assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") }) - t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNoZoom() // Should return zero value + _ = obj.GetObjectNumber() // Should return zero value }) - t.Run("GetNoRotate", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} - var expected bool - obj.NoRotate = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm + obj.Nm = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") - }) - - t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNoRotate() // Should return zero value + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("GetNoView", func(t *testing.T) { + t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} - var expected bool - obj.NoView = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo{} + obj.Nm = nil // Act & Assert - assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") }) - t.Run("GetNoView_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNoView() // Should return zero value + _ = obj.GetNm() // Should return zero value }) - t.Run("GetReadOnly", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} - var expected bool - obj.ReadOnly = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex + obj.Index = expected // Act & Assert - assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { + t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo{} + obj.Index = nil + + // Act & Assert + assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + }) + + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReadOnly() // Should return zero value + _ = obj.GetIndex() // Should return zero value }) - t.Run("GetLocked", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} - var expected bool - obj.Locked = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetLocked_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLocked() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetToggleNoView", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} - var expected bool - obj.ToggleNoView = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex{} + var expected int + obj.Index = expected // Act & Assert - assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetToggleNoView() // Should return zero value + _ = obj.GetIndex() // Should return zero value }) - t.Run("GetLockedContents", func(t *testing.T) { + t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} - var expected bool - obj.LockedContents = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision + obj.Revision = expected // Act & Assert - assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") }) - t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { + t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex{} + obj.Revision = nil + + // Act & Assert + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + }) + + t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLockedContents() // Should return zero value + _ = obj.GetRevision() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags(t *testing.T) { - t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} - var fernTestValueInvisible bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex{} + var fernTestValuePageObjectNumber int // Act - obj.SetInvisible(fernTestValueInvisible) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -160271,14 +201260,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetHidden_MarksExplicit", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} - var fernTestValueHidden bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex{} + var fernTestValueIndex int // Act - obj.SetHidden(fernTestValueHidden) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -160302,14 +201291,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPrint_MarksExplicit", func(t *testing.T) { + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} - var fernTestValuePrint bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision // Act - obj.SetPrint(fernTestValuePrint) + obj.SetRevision(fernTestValueRevision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -160333,45 +201322,116 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision{} + var fernTestValueDocSessionID string + obj.SetDocSessionID(fernTestValueDocSessionID) + assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetGeneration", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} - var fernTestValueNoZoom bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision{} + var expected string + obj.DocSessionID = expected - // Act - obj.SetNoZoom(fernTestValueNoZoom) + // Act & Assert + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDocSessionID() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision{} + var expected int + obj.PageObjectNumber = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} - var fernTestValueNoRotate bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision{} + var expected int + obj.Generation = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + }) + + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGeneration() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision{} + var fernTestValueDocSessionID string // Act - obj.SetNoRotate(fernTestValueNoRotate) + obj.SetDocSessionID(fernTestValueDocSessionID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -160395,14 +201455,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoView_MarksExplicit", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} - var fernTestValueNoView bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int // Act - obj.SetNoView(fernTestValueNoView) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -160426,14 +201486,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} - var fernTestValueReadOnly bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision{} + var fernTestValueGeneration int // Act - obj.SetReadOnly(fernTestValueReadOnly) + obj.SetGeneration(fernTestValueGeneration) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -160457,45 +201517,85 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLocked_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} - var fernTestValueLocked bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm{} + var expected int + obj.PageObjectNumber = expected - // Act - obj.SetLocked(fernTestValueLocked) + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm{} + var expected string + obj.Nm = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} - var fernTestValueToggleNoView bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm{} + var fernTestValuePageObjectNumber int // Act - obj.SetToggleNoView(fernTestValueToggleNoView) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -160519,14 +201619,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineFlags{} - var fernTestValueLockedContents bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm{} + var fernTestValueNm string // Act - obj.SetLockedContents(fernTestValueLockedContents) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -160552,249 +201652,247 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo{} - var expected string - obj.Kind = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetKind() // Should return zero value + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber - obj.ObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") - }) +} - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo{} - obj.ObjectNumber = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetObjectNumber() // Should return zero value - }) - - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm - obj.Nm = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetNm_NilValue", func(t *testing.T) { + t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo{} - obj.Nm = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetAnnotObjectNumber() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex - obj.Index = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int - // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo{} - obj.Index = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int - // Act & Assert - assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") - }) + // Act + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyTo - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetIndex() // Should return zero value + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor(t *testing.T) { + t.Run("SetR", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor{} + var fernTestValueR int + obj.SetR(fernTestValueR) + assert.Equal(t, fernTestValueR, obj.R) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) + t.Run("SetG", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor{} + var fernTestValueG int + obj.SetG(fernTestValueG) + assert.Equal(t, fernTestValueG, obj.G) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) + t.Run("SetB", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor{} var expected int - obj.PageObjectNumber = expected + obj.R = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetR_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetR() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetG", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor{} var expected int - obj.Index = expected + obj.G = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetG_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value - }) - - t.Run("GetRevision", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision - obj.Revision = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + _ = obj.GetG() // Should return zero value }) - t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Run("GetB", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex{} - obj.Revision = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor{} + var expected int + obj.B = expected // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") }) - t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Run("GetB_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRevision() // Should return zero value + _ = obj.GetB() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor{} + var fernTestValueR int // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetR(fernTestValueR) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -160818,14 +201916,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex{} - var fernTestValueIndex int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor{} + var fernTestValueG int // Act - obj.SetIndex(fernTestValueIndex) + obj.SetG(fernTestValueG) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -160849,14 +201947,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("SetB_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor{} + var fernTestValueB int // Act - obj.SetRevision(fernTestValueRevision) + obj.SetB(fernTestValueB) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -160882,114 +201980,185 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision{} - var fernTestValueDocSessionID string - obj.SetDocSessionID(fernTestValueDocSessionID) - assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem(t *testing.T) { + t.Run("SetP1", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} + var fernTestValueP1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1 + obj.SetP1(fernTestValueP1) + assert.Equal(t, fernTestValueP1, obj.P1) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + t.Run("SetP2", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} + var fernTestValueP2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2 + obj.SetP2(fernTestValueP2) + assert.Equal(t, fernTestValueP2, obj.P2) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) + t.Run("SetP3", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} + var fernTestValueP3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3 + obj.SetP3(fernTestValueP3) + assert.Equal(t, fernTestValueP3, obj.P3) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetP4", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} + var fernTestValueP4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4 + obj.SetP4(fernTestValueP4) + assert.Equal(t, fernTestValueP4, obj.P4) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem(t *testing.T) { + t.Run("GetP1", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision{} - var expected string - obj.DocSessionID = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1 + obj.P1 = expected // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + assert.Equal(t, expected, obj.GetP1(), "getter should return the property value") }) - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Run("GetP1_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} + obj.P1 = nil + + // Act & Assert + assert.Nil(t, obj.GetP1(), "getter should return nil when property is nil") + }) + + t.Run("GetP1_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDocSessionID() // Should return zero value + _ = obj.GetP1() // Should return zero value }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetP2", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2 + obj.P2 = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetP2(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetP2_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} + obj.P2 = nil + + // Act & Assert + assert.Nil(t, obj.GetP2(), "getter should return nil when property is nil") + }) + + t.Run("GetP2_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetP2() // Should return zero value }) - t.Run("GetGeneration", func(t *testing.T) { + t.Run("GetP3", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision{} - var expected int - obj.Generation = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3 + obj.P3 = expected // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + assert.Equal(t, expected, obj.GetP3(), "getter should return the property value") }) - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Run("GetP3_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} + obj.P3 = nil + + // Act & Assert + assert.Nil(t, obj.GetP3(), "getter should return nil when property is nil") + }) + + t.Run("GetP3_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGeneration() // Should return zero value + _ = obj.GetP3() // Should return zero value + }) + + t.Run("GetP4", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4 + obj.P4 = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetP4(), "getter should return the property value") + }) + + t.Run("GetP4_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} + obj.P4 = nil + + // Act & Assert + assert.Nil(t, obj.GetP4(), "getter should return nil when property is nil") + }) + + t.Run("GetP4_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetP4() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem(t *testing.T) { + t.Run("SetP1_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision{} - var fernTestValueDocSessionID string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} + var fernTestValueP1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1 // Act - obj.SetDocSessionID(fernTestValueDocSessionID) + obj.SetP1(fernTestValueP1) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -161013,14 +202182,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetP2_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} + var fernTestValueP2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2 // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetP2(fernTestValueP2) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -161044,14 +202213,45 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("SetP3_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToIndexRevision{} - var fernTestValueGeneration int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} + var fernTestValueP3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3 // Act - obj.SetGeneration(fernTestValueGeneration) + obj.SetP3(fernTestValueP3) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetP4_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} + var fernTestValueP4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4 + + // Act + obj.SetP4(fernTestValueP4) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -161077,83 +202277,83 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm{} - var fernTestValueNm string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1{} + var expected float64 + obj.X = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetX_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetX() // Should return zero value }) - t.Run("GetNm", func(t *testing.T) { + t.Run("GetY", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm{} - var expected string - obj.Nm = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1{} + var expected float64 + obj.Y = expected // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetY_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetY() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1{} + var fernTestValueX float64 // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetX(fernTestValueX) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -161177,14 +202377,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToNm{} - var fernTestValueNm string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1{} + var fernTestValueY float64 // Act - obj.SetNm(fernTestValueNm) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -161210,83 +202410,83 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2{} + var expected float64 + obj.X = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetX_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetX() // Should return zero value }) - t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Run("GetY", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2{} + var expected float64 + obj.Y = expected // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") }) - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetY_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAnnotObjectNumber() // Should return zero value + _ = obj.GetY() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2{} + var fernTestValueX float64 // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetX(fernTestValueX) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -161310,14 +202510,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2{} + var fernTestValueY float64 // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -161343,145 +202543,83 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor(t *testing.T) { - t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor{} - var fernTestValueR int - obj.SetR(fernTestValueR) - assert.Equal(t, fernTestValueR, obj.R) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor{} - var fernTestValueG int - obj.SetG(fernTestValueG) - assert.Equal(t, fernTestValueG, obj.G) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor{} - var fernTestValueB int - obj.SetB(fernTestValueB) - assert.Equal(t, fernTestValueB, obj.B) + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor(t *testing.T) { - t.Run("GetR", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor{} - var expected int - obj.R = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetR(), "getter should return the property value") - }) - - t.Run("GetR_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetR() // Should return zero value - }) - - t.Run("GetG", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor{} - var expected int - obj.G = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3{} + var expected float64 + obj.X = expected // Act & Assert - assert.Equal(t, expected, obj.GetG(), "getter should return the property value") + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") }) - t.Run("GetG_NilReceiver", func(t *testing.T) { + t.Run("GetX_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetG() // Should return zero value + _ = obj.GetX() // Should return zero value }) - t.Run("GetB", func(t *testing.T) { + t.Run("GetY", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor{} - var expected int - obj.B = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3{} + var expected float64 + obj.Y = expected // Act & Assert - assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") }) - t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Run("GetY_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetB() // Should return zero value + _ = obj.GetY() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor(t *testing.T) { - t.Run("SetR_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor{} - var fernTestValueR int - - // Act - obj.SetR(fernTestValueR) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetG_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor{} - var fernTestValueG int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3{} + var fernTestValueX float64 // Act - obj.SetG(fernTestValueG) + obj.SetX(fernTestValueX) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -161505,14 +202643,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineInteriorColor{} - var fernTestValueB int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3{} + var fernTestValueY float64 // Act - obj.SetB(fernTestValueB) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -161538,83 +202676,83 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings(t *testing.T) { - t.Run("SetStart", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings{} - var fernTestValueStart DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart - obj.SetStart(fernTestValueStart) - assert.Equal(t, fernTestValueStart, obj.Start) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetEnd", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings{} - var fernTestValueEnd DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd - obj.SetEnd(fernTestValueEnd) - assert.Equal(t, fernTestValueEnd, obj.End) + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings(t *testing.T) { - t.Run("GetStart", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart - obj.Start = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4{} + var expected float64 + obj.X = expected // Act & Assert - assert.Equal(t, expected, obj.GetStart(), "getter should return the property value") + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") }) - t.Run("GetStart_NilReceiver", func(t *testing.T) { + t.Run("GetX_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetStart() // Should return zero value + _ = obj.GetX() // Should return zero value }) - t.Run("GetEnd", func(t *testing.T) { + t.Run("GetY", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd - obj.End = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4{} + var expected float64 + obj.Y = expected // Act & Assert - assert.Equal(t, expected, obj.GetEnd(), "getter should return the property value") + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") }) - t.Run("GetEnd_NilReceiver", func(t *testing.T) { + t.Run("GetY_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetEnd() // Should return zero value + _ = obj.GetY() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings(t *testing.T) { - t.Run("SetStart_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings{} - var fernTestValueStart DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsStart + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4{} + var fernTestValueX float64 // Act - obj.SetStart(fernTestValueStart) + obj.SetX(fernTestValueX) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -161638,14 +202776,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetEnd_MarksExplicit", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndings{} - var fernTestValueEnd DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4{} + var fernTestValueY float64 // Act - obj.SetEnd(fernTestValueEnd) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -161671,9 +202809,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect(t *testing.T) { t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} var fernTestValueLeft float64 obj.SetLeft(fernTestValueLeft) assert.Equal(t, fernTestValueLeft, obj.Left) @@ -161681,7 +202819,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline }) t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} var fernTestValueBottom float64 obj.SetBottom(fernTestValueBottom) assert.Equal(t, fernTestValueBottom, obj.Bottom) @@ -161689,7 +202827,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline }) t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} var fernTestValueRight float64 obj.SetRight(fernTestValueRight) assert.Equal(t, fernTestValueRight, obj.Right) @@ -161697,7 +202835,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline }) t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} var fernTestValueTop float64 obj.SetTop(fernTestValueTop) assert.Equal(t, fernTestValueTop, obj.Top) @@ -161706,11 +202844,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect(t *testing.T) { t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} var expected float64 obj.Left = expected @@ -161720,7 +202858,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -161733,7 +202871,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} var expected float64 obj.Bottom = expected @@ -161743,7 +202881,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -161756,7 +202894,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} var expected float64 obj.Right = expected @@ -161766,7 +202904,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -161779,7 +202917,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} var expected float64 obj.Top = expected @@ -161789,7 +202927,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -161801,11 +202939,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect(t *testing.T) { t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} var fernTestValueLeft float64 // Act @@ -161836,7 +202974,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} var fernTestValueBottom float64 // Act @@ -161867,7 +203005,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} var fernTestValueRight float64 // Act @@ -161898,7 +203036,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} var fernTestValueTop float64 // Act @@ -161928,11 +203066,11 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef{} var expected string obj.Kind = expected @@ -161942,7 +203080,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -161955,8 +203093,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -161966,7 +203104,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef{} obj.ObjectNumber = nil // Act & Assert @@ -161975,7 +203113,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -161988,8 +203126,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm obj.Nm = expected // Act & Assert @@ -161999,7 +203137,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef{} obj.Nm = nil // Act & Assert @@ -162008,7 +203146,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -162021,8 +203159,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex obj.Index = expected // Act & Assert @@ -162032,7 +203170,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef{} obj.Index = nil // Act & Assert @@ -162041,7 +203179,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -162053,9 +203191,9 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -162063,7 +203201,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -162071,8 +203209,8 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -162080,11 +203218,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex{} var expected int obj.PageObjectNumber = expected @@ -162094,7 +203232,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -162107,7 +203245,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex{} var expected int obj.Index = expected @@ -162117,7 +203255,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -162130,8 +203268,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision obj.Revision = expected // Act & Assert @@ -162141,7 +203279,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex{} obj.Revision = nil // Act & Assert @@ -162150,7 +203288,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -162162,11 +203300,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex{} var fernTestValuePageObjectNumber int // Act @@ -162197,7 +203335,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex{} var fernTestValueIndex int // Act @@ -162228,8 +203366,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -162258,9 +203396,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -162268,7 +203406,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -162276,7 +203414,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -162285,11 +203423,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision{} var expected string obj.DocSessionID = expected @@ -162299,7 +203437,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -162312,7 +203450,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -162322,7 +203460,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -162335,7 +203473,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision{} var expected int obj.Generation = expected @@ -162345,7 +203483,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -162357,11 +203495,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision{} var fernTestValueDocSessionID string // Act @@ -162392,7 +203530,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -162423,7 +203561,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision{} var fernTestValueGeneration int // Act @@ -162453,9 +203591,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -162463,7 +203601,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm{} var fernTestValueNm string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -162472,11 +203610,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm{} var expected int obj.PageObjectNumber = expected @@ -162486,7 +203624,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -162499,7 +203637,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm{} var expected string obj.Nm = expected @@ -162509,7 +203647,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -162521,11 +203659,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm{} var fernTestValuePageObjectNumber int // Act @@ -162556,7 +203694,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm{} var fernTestValueNm string // Act @@ -162586,9 +203724,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -162596,7 +203734,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline }) t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber{} var fernTestValueAnnotObjectNumber int obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) @@ -162605,11 +203743,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber{} var expected int obj.PageObjectNumber = expected @@ -162619,7 +203757,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -162632,7 +203770,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber{} var expected int obj.AnnotObjectNumber = expected @@ -162642,7 +203780,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -162654,11 +203792,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber{} var fernTestValuePageObjectNumber int // Act @@ -162689,7 +203827,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber{} var fernTestValueAnnotObjectNumber int // Act @@ -162719,150 +203857,17 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem(t *testing.T) { - t.Run("GetX", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem{} - var expected float64 - obj.X = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") - }) - - t.Run("GetX_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetX() // Should return zero value - }) - - t.Run("GetY", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem{} - var expected float64 - obj.Y = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") - }) - - t.Run("GetY_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetY() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem{} - var fernTestValueX float64 - - // Act - obj.SetX(fernTestValueX) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetY_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineVerticesItem{} - var fernTestValueY float64 - - // Act - obj.SetY(fernTestValueY) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t *testing.T) { t.Run("SetRef", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef obj.SetRef(fernTestValueRef) assert.Equal(t, fernTestValueRef, obj.Ref) assert.NotNil(t, obj.explicitFields) }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -162870,7 +203875,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -162878,15 +203883,15 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t }) t.Run("SetIdentityQuality", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality obj.SetIdentityQuality(fernTestValueIdentityQuality) assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) assert.NotNil(t, obj.explicitFields) }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var fernTestValueNm *string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -162894,23 +203899,23 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t }) t.Run("SetFlags", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags obj.SetFlags(fernTestValueFlags) assert.Equal(t, fernTestValueFlags, obj.Flags) assert.NotNil(t, obj.explicitFields) }) t.Run("SetRect", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect obj.SetRect(fernTestValueRect) assert.Equal(t, fernTestValueRect, obj.Rect) assert.NotNil(t, obj.explicitFields) }) t.Run("SetContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var fernTestValueContents *string obj.SetContents(fernTestValueContents) assert.Equal(t, fernTestValueContents, obj.Contents) @@ -162918,7 +203923,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t }) t.Run("SetSubject", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var fernTestValueSubject *string obj.SetSubject(fernTestValueSubject) assert.Equal(t, fernTestValueSubject, obj.Subject) @@ -162926,7 +203931,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t }) t.Run("SetAuthor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var fernTestValueAuthor *string obj.SetAuthor(fernTestValueAuthor) assert.Equal(t, fernTestValueAuthor, obj.Author) @@ -162934,7 +203939,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t }) t.Run("SetCreated", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var fernTestValueCreated *time.Time obj.SetCreated(fernTestValueCreated) assert.Equal(t, fernTestValueCreated, obj.Created) @@ -162942,7 +203947,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t }) t.Run("SetModified", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var fernTestValueModified *time.Time obj.SetModified(fernTestValueModified) assert.Equal(t, fernTestValueModified, obj.Modified) @@ -162950,31 +203955,31 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t }) t.Run("SetBlendMode", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode obj.SetBlendMode(fernTestValueBlendMode) assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) assert.NotNil(t, obj.explicitFields) }) t.Run("SetInReplyTo", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo obj.SetInReplyTo(fernTestValueInReplyTo) assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) assert.NotNil(t, obj.explicitFields) }) t.Run("SetReplyType", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyType obj.SetReplyType(fernTestValueReplyType) assert.Equal(t, fernTestValueReplyType, obj.ReplyType) assert.NotNil(t, obj.explicitFields) }) t.Run("SetUserID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var fernTestValueUserID *string obj.SetUserID(fernTestValueUserID) assert.Equal(t, fernTestValueUserID, obj.UserID) @@ -162982,7 +203987,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t }) t.Run("SetGroupID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var fernTestValueGroupID *string obj.SetGroupID(fernTestValueGroupID) assert.Equal(t, fernTestValueGroupID, obj.GroupID) @@ -162990,7 +203995,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t }) t.Run("SetCreatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var fernTestValueCreatedBy *string obj.SetCreatedBy(fernTestValueCreatedBy) assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) @@ -162998,7 +204003,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t }) t.Run("SetUpdatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var fernTestValueUpdatedBy *string obj.SetUpdatedBy(fernTestValueUpdatedBy) assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) @@ -163006,101 +204011,101 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t }) t.Run("SetActions", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var fernTestValueActions *PdfAnnotationActions obj.SetActions(fernTestValueActions) assert.Equal(t, fernTestValueActions, obj.Actions) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetQuadPoints", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var fernTestValueQuadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem - obj.SetQuadPoints(fernTestValueQuadPoints) - assert.Equal(t, fernTestValueQuadPoints, obj.QuadPoints) - assert.NotNil(t, obj.explicitFields) - }) - t.Run("SetColor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor obj.SetColor(fernTestValueColor) assert.Equal(t, fernTestValueColor, obj.Color) assert.NotNil(t, obj.explicitFields) }) t.Run("SetOpacity", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var fernTestValueOpacity float64 obj.SetOpacity(fernTestValueOpacity) assert.Equal(t, fernTestValueOpacity, obj.Opacity) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetInteriorColor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor - obj.SetInteriorColor(fernTestValueInteriorColor) - assert.Equal(t, fernTestValueInteriorColor, obj.InteriorColor) + t.Run("SetStrokeWidth", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueStrokeWidth float64 + obj.SetStrokeWidth(fernTestValueStrokeWidth) + assert.Equal(t, fernTestValueStrokeWidth, obj.StrokeWidth) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOverlayText", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var fernTestValueOverlayText *string - obj.SetOverlayText(fernTestValueOverlayText) - assert.Equal(t, fernTestValueOverlayText, obj.OverlayText) + t.Run("SetBorderStyle", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle + obj.SetBorderStyle(fernTestValueBorderStyle) + assert.Equal(t, fernTestValueBorderStyle, obj.BorderStyle) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRepeat", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var fernTestValueRepeat bool - obj.SetRepeat(fernTestValueRepeat) - assert.Equal(t, fernTestValueRepeat, obj.Repeat) + t.Run("SetDashArray", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueDashArray []float64 + obj.SetDashArray(fernTestValueDashArray) + assert.Equal(t, fernTestValueDashArray, obj.DashArray) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetFontFamily", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var fernTestValueFontFamily DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily - obj.SetFontFamily(fernTestValueFontFamily) - assert.Equal(t, fernTestValueFontFamily, obj.FontFamily) + t.Run("SetInteriorColor", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor + obj.SetInteriorColor(fernTestValueInteriorColor) + assert.Equal(t, fernTestValueInteriorColor, obj.InteriorColor) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetFontSize", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var fernTestValueFontSize float64 - obj.SetFontSize(fernTestValueFontSize) - assert.Equal(t, fernTestValueFontSize, obj.FontSize) + t.Run("SetCloudyIntensity", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueCloudyIntensity *float64 + obj.SetCloudyIntensity(fernTestValueCloudyIntensity) + assert.Equal(t, fernTestValueCloudyIntensity, obj.CloudyIntensity) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetFontColor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var fernTestValueFontColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor - obj.SetFontColor(fernTestValueFontColor) - assert.Equal(t, fernTestValueFontColor, obj.FontColor) + t.Run("SetRectDifferences", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueRectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences + obj.SetRectDifferences(fernTestValueRectDifferences) + assert.Equal(t, fernTestValueRectDifferences, obj.RectDifferences) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTextAlign", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var fernTestValueTextAlign DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlign - obj.SetTextAlign(fernTestValueTextAlign) - assert.Equal(t, fernTestValueTextAlign, obj.TextAlign) + t.Run("SetRotation", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueRotation *float64 + obj.SetRotation(fernTestValueRotation) + assert.Equal(t, fernTestValueRotation, obj.Rotation) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetUnrotatedRect", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueUnrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect + obj.SetUnrotatedRect(fernTestValueUnrotatedRect) + assert.Equal(t, fernTestValueUnrotatedRect, obj.UnrotatedRect) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t *testing.T) { t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef obj.Ref = expected // Act & Assert @@ -163110,7 +204115,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetRef_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} obj.Ref = nil // Act & Assert @@ -163119,7 +204124,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetRef_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -163132,7 +204137,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var expected int obj.PageObjectNumber = expected @@ -163142,7 +204147,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -163155,7 +204160,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var expected int obj.Index = expected @@ -163165,7 +204170,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -163178,8 +204183,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetIdentityQuality", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality obj.IdentityQuality = expected // Act & Assert @@ -163188,7 +204193,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -163201,7 +204206,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var expected *string obj.Nm = expected @@ -163212,7 +204217,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} obj.Nm = nil // Act & Assert @@ -163221,7 +204226,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -163234,8 +204239,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags obj.Flags = expected // Act & Assert @@ -163245,7 +204250,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} obj.Flags = nil // Act & Assert @@ -163254,7 +204259,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -163267,8 +204272,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetRect", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect obj.Rect = expected // Act & Assert @@ -163278,7 +204283,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetRect_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} obj.Rect = nil // Act & Assert @@ -163287,7 +204292,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetRect_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -163300,7 +204305,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var expected *string obj.Contents = expected @@ -163311,7 +204316,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetContents_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} obj.Contents = nil // Act & Assert @@ -163320,7 +204325,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -163333,7 +204338,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetSubject", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var expected *string obj.Subject = expected @@ -163344,7 +204349,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetSubject_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} obj.Subject = nil // Act & Assert @@ -163353,7 +204358,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetSubject_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -163366,7 +204371,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetAuthor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var expected *string obj.Author = expected @@ -163377,7 +204382,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetAuthor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} obj.Author = nil // Act & Assert @@ -163386,7 +204391,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetAuthor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -163399,7 +204404,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetCreated", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var expected *time.Time obj.Created = expected @@ -163410,7 +204415,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetCreated_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} obj.Created = nil // Act & Assert @@ -163419,7 +204424,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetCreated_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -163432,7 +204437,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetModified", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var expected *time.Time obj.Modified = expected @@ -163443,7 +204448,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetModified_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} obj.Modified = nil // Act & Assert @@ -163452,7 +204457,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetModified_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -163465,8 +204470,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetBlendMode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode obj.BlendMode = expected // Act & Assert @@ -163475,7 +204480,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -163488,8 +204493,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetInReplyTo", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo obj.InReplyTo = expected // Act & Assert @@ -163499,7 +204504,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetInReplyTo_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} obj.InReplyTo = nil // Act & Assert @@ -163508,7 +204513,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -163521,8 +204526,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetReplyType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyType obj.ReplyType = expected // Act & Assert @@ -163532,7 +204537,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetReplyType_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} obj.ReplyType = nil // Act & Assert @@ -163541,7 +204546,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetReplyType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -163554,7 +204559,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetUserID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var expected *string obj.UserID = expected @@ -163565,7 +204570,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetUserID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} obj.UserID = nil // Act & Assert @@ -163574,7 +204579,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetUserID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -163587,7 +204592,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetGroupID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var expected *string obj.GroupID = expected @@ -163598,7 +204603,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetGroupID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} obj.GroupID = nil // Act & Assert @@ -163607,7 +204612,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetGroupID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -163620,7 +204625,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetCreatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var expected *string obj.CreatedBy = expected @@ -163631,7 +204636,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetCreatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} obj.CreatedBy = nil // Act & Assert @@ -163640,7 +204645,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -163653,7 +204658,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetUpdatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var expected *string obj.UpdatedBy = expected @@ -163664,7 +204669,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} obj.UpdatedBy = nil // Act & Assert @@ -163673,7 +204678,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -163686,7 +204691,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetActions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var expected *PdfAnnotationActions obj.Actions = expected @@ -163697,7 +204702,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetActions_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} obj.Actions = nil // Act & Assert @@ -163706,7 +204711,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t t.Run("GetActions_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -163716,294 +204721,314 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t _ = obj.GetActions() // Should return zero value }) - t.Run("GetQuadPoints", func(t *testing.T) { + t.Run("GetColor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem - obj.QuadPoints = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor + obj.Color = expected // Act & Assert - assert.Equal(t, expected, obj.GetQuadPoints(), "getter should return the property value") + assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") }) - t.Run("GetQuadPoints_NilValue", func(t *testing.T) { + t.Run("GetColor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - obj.QuadPoints = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj.Color = nil // Act & Assert - assert.Nil(t, obj.GetQuadPoints(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") }) - t.Run("GetQuadPoints_NilReceiver", func(t *testing.T) { + t.Run("GetColor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetQuadPoints() // Should return zero value + _ = obj.GetColor() // Should return zero value }) - t.Run("GetColor", func(t *testing.T) { + t.Run("GetOpacity", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor - obj.Color = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var expected float64 + obj.Opacity = expected // Act & Assert - assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOpacity(), "getter should return the property value") }) - t.Run("GetColor_NilValue", func(t *testing.T) { + t.Run("GetOpacity_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetOpacity() // Should return zero value + }) + + t.Run("GetStrokeWidth", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - obj.Color = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var expected float64 + obj.StrokeWidth = expected // Act & Assert - assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetStrokeWidth(), "getter should return the property value") }) - t.Run("GetColor_NilReceiver", func(t *testing.T) { + t.Run("GetStrokeWidth_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetColor() // Should return zero value + _ = obj.GetStrokeWidth() // Should return zero value }) - t.Run("GetOpacity", func(t *testing.T) { + t.Run("GetBorderStyle", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var expected float64 - obj.Opacity = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle + obj.BorderStyle = expected // Act & Assert - assert.Equal(t, expected, obj.GetOpacity(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBorderStyle(), "getter should return the property value") }) - t.Run("GetOpacity_NilReceiver", func(t *testing.T) { + t.Run("GetBorderStyle_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOpacity() // Should return zero value + _ = obj.GetBorderStyle() // Should return zero value }) - t.Run("GetInteriorColor", func(t *testing.T) { + t.Run("GetDashArray", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor - obj.InteriorColor = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var expected []float64 + obj.DashArray = expected // Act & Assert - assert.Equal(t, expected, obj.GetInteriorColor(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDashArray(), "getter should return the property value") }) - t.Run("GetInteriorColor_NilValue", func(t *testing.T) { + t.Run("GetDashArray_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - obj.InteriorColor = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj.DashArray = nil // Act & Assert - assert.Nil(t, obj.GetInteriorColor(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetDashArray(), "getter should return nil when property is nil") }) - t.Run("GetInteriorColor_NilReceiver", func(t *testing.T) { + t.Run("GetDashArray_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInteriorColor() // Should return zero value + _ = obj.GetDashArray() // Should return zero value }) - t.Run("GetOverlayText", func(t *testing.T) { + t.Run("GetInteriorColor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var expected *string - obj.OverlayText = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor + obj.InteriorColor = expected // Act & Assert - assert.Equal(t, expected, obj.GetOverlayText(), "getter should return the property value") + assert.Equal(t, expected, obj.GetInteriorColor(), "getter should return the property value") }) - t.Run("GetOverlayText_NilValue", func(t *testing.T) { + t.Run("GetInteriorColor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - obj.OverlayText = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj.InteriorColor = nil // Act & Assert - assert.Nil(t, obj.GetOverlayText(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetInteriorColor(), "getter should return nil when property is nil") }) - t.Run("GetOverlayText_NilReceiver", func(t *testing.T) { + t.Run("GetInteriorColor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOverlayText() // Should return zero value + _ = obj.GetInteriorColor() // Should return zero value }) - t.Run("GetRepeat", func(t *testing.T) { + t.Run("GetCloudyIntensity", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var expected bool - obj.Repeat = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var expected *float64 + obj.CloudyIntensity = expected // Act & Assert - assert.Equal(t, expected, obj.GetRepeat(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCloudyIntensity(), "getter should return the property value") }) - t.Run("GetRepeat_NilReceiver", func(t *testing.T) { + t.Run("GetCloudyIntensity_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj.CloudyIntensity = nil + + // Act & Assert + assert.Nil(t, obj.GetCloudyIntensity(), "getter should return nil when property is nil") + }) + + t.Run("GetCloudyIntensity_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRepeat() // Should return zero value + _ = obj.GetCloudyIntensity() // Should return zero value }) - t.Run("GetFontFamily", func(t *testing.T) { + t.Run("GetRectDifferences", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily - obj.FontFamily = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetFontFamily(), "getter should return the property value") - }) + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences + obj.RectDifferences = expected - t.Run("GetFontFamily_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetFontFamily() // Should return zero value + // Act & Assert + assert.Equal(t, expected, obj.GetRectDifferences(), "getter should return the property value") }) - t.Run("GetFontSize", func(t *testing.T) { + t.Run("GetRectDifferences_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var expected float64 - obj.FontSize = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj.RectDifferences = nil // Act & Assert - assert.Equal(t, expected, obj.GetFontSize(), "getter should return the property value") + assert.Nil(t, obj.GetRectDifferences(), "getter should return nil when property is nil") }) - t.Run("GetFontSize_NilReceiver", func(t *testing.T) { + t.Run("GetRectDifferences_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFontSize() // Should return zero value + _ = obj.GetRectDifferences() // Should return zero value }) - t.Run("GetFontColor", func(t *testing.T) { + t.Run("GetRotation", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor - obj.FontColor = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var expected *float64 + obj.Rotation = expected // Act & Assert - assert.Equal(t, expected, obj.GetFontColor(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRotation(), "getter should return the property value") }) - t.Run("GetFontColor_NilValue", func(t *testing.T) { + t.Run("GetRotation_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - obj.FontColor = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj.Rotation = nil // Act & Assert - assert.Nil(t, obj.GetFontColor(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRotation(), "getter should return nil when property is nil") }) - t.Run("GetFontColor_NilReceiver", func(t *testing.T) { + t.Run("GetRotation_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFontColor() // Should return zero value + _ = obj.GetRotation() // Should return zero value }) - t.Run("GetTextAlign", func(t *testing.T) { + t.Run("GetUnrotatedRect", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlign - obj.TextAlign = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect + obj.UnrotatedRect = expected // Act & Assert - assert.Equal(t, expected, obj.GetTextAlign(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnrotatedRect(), "getter should return the property value") }) - t.Run("GetTextAlign_NilReceiver", func(t *testing.T) { + t.Run("GetUnrotatedRect_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj.UnrotatedRect = nil + + // Act & Assert + assert.Nil(t, obj.GetUnrotatedRect(), "getter should return nil when property is nil") + }) + + t.Run("GetUnrotatedRect_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTextAlign() // Should return zero value + _ = obj.GetUnrotatedRect() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t *testing.T) { t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef // Act obj.SetRef(fernTestValueRef) @@ -164033,7 +205058,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var fernTestValuePageObjectNumber int // Act @@ -164064,7 +205089,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var fernTestValueIndex int // Act @@ -164095,8 +205120,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality // Act obj.SetIdentityQuality(fernTestValueIdentityQuality) @@ -164126,7 +205151,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var fernTestValueNm *string // Act @@ -164157,8 +205182,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags // Act obj.SetFlags(fernTestValueFlags) @@ -164188,8 +205213,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect // Act obj.SetRect(fernTestValueRect) @@ -164219,7 +205244,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var fernTestValueContents *string // Act @@ -164250,7 +205275,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var fernTestValueSubject *string // Act @@ -164281,7 +205306,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var fernTestValueAuthor *string // Act @@ -164312,7 +205337,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var fernTestValueCreated *time.Time // Act @@ -164343,7 +205368,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var fernTestValueModified *time.Time // Act @@ -164374,8 +205399,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode // Act obj.SetBlendMode(fernTestValueBlendMode) @@ -164405,8 +205430,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo // Act obj.SetInReplyTo(fernTestValueInReplyTo) @@ -164436,8 +205461,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyType // Act obj.SetReplyType(fernTestValueReplyType) @@ -164467,7 +205492,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var fernTestValueUserID *string // Act @@ -164498,7 +205523,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var fernTestValueGroupID *string // Act @@ -164529,7 +205554,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var fernTestValueCreatedBy *string // Act @@ -164560,7 +205585,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var fernTestValueUpdatedBy *string // Act @@ -164591,7 +205616,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetActions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var fernTestValueActions *PdfAnnotationActions // Act @@ -164619,42 +205644,11 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetQuadPoints_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var fernTestValueQuadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem - - // Act - obj.SetQuadPoints(fernTestValueQuadPoints) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - t.Run("SetColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor // Act obj.SetColor(fernTestValueColor) @@ -164684,7 +205678,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} var fernTestValueOpacity float64 // Act @@ -164712,807 +205706,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInteriorColor_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor - - // Act - obj.SetInteriorColor(fernTestValueInteriorColor) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetOverlayText_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var fernTestValueOverlayText *string - - // Act - obj.SetOverlayText(fernTestValueOverlayText) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetRepeat_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var fernTestValueRepeat bool - - // Act - obj.SetRepeat(fernTestValueRepeat) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetFontFamily_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var fernTestValueFontFamily DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontFamily - - // Act - obj.SetFontFamily(fernTestValueFontFamily) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetFontSize_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var fernTestValueFontSize float64 - - // Act - obj.SetFontSize(fernTestValueFontSize) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetFontColor_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var fernTestValueFontColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor - - // Act - obj.SetFontColor(fernTestValueFontColor) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetTextAlign_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedact{} - var fernTestValueTextAlign DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactTextAlign - - // Act - obj.SetTextAlign(fernTestValueTextAlign) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor(t *testing.T) { - t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor{} - var fernTestValueR int - obj.SetR(fernTestValueR) - assert.Equal(t, fernTestValueR, obj.R) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor{} - var fernTestValueG int - obj.SetG(fernTestValueG) - assert.Equal(t, fernTestValueG, obj.G) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor{} - var fernTestValueB int - obj.SetB(fernTestValueB) - assert.Equal(t, fernTestValueB, obj.B) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor(t *testing.T) { - t.Run("GetR", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor{} - var expected int - obj.R = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetR(), "getter should return the property value") - }) - - t.Run("GetR_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetR() // Should return zero value - }) - - t.Run("GetG", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor{} - var expected int - obj.G = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetG(), "getter should return the property value") - }) - - t.Run("GetG_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetG() // Should return zero value - }) - - t.Run("GetB", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor{} - var expected int - obj.B = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetB(), "getter should return the property value") - }) - - t.Run("GetB_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetB() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor(t *testing.T) { - t.Run("SetR_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor{} - var fernTestValueR int - - // Act - obj.SetR(fernTestValueR) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetG_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor{} - var fernTestValueG int - - // Act - obj.SetG(fernTestValueG) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetB_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactColor{} - var fernTestValueB int - - // Act - obj.SetB(fernTestValueB) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags(t *testing.T) { - t.Run("SetInvisible", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} - var fernTestValueInvisible bool - obj.SetInvisible(fernTestValueInvisible) - assert.Equal(t, fernTestValueInvisible, obj.Invisible) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetHidden", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} - var fernTestValueHidden bool - obj.SetHidden(fernTestValueHidden) - assert.Equal(t, fernTestValueHidden, obj.Hidden) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetPrint", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} - var fernTestValuePrint bool - obj.SetPrint(fernTestValuePrint) - assert.Equal(t, fernTestValuePrint, obj.Print) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNoZoom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} - var fernTestValueNoZoom bool - obj.SetNoZoom(fernTestValueNoZoom) - assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNoRotate", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} - var fernTestValueNoRotate bool - obj.SetNoRotate(fernTestValueNoRotate) - assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} - var fernTestValueNoView bool - obj.SetNoView(fernTestValueNoView) - assert.Equal(t, fernTestValueNoView, obj.NoView) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} - var fernTestValueReadOnly bool - obj.SetReadOnly(fernTestValueReadOnly) - assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetLocked", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} - var fernTestValueLocked bool - obj.SetLocked(fernTestValueLocked) - assert.Equal(t, fernTestValueLocked, obj.Locked) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetToggleNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} - var fernTestValueToggleNoView bool - obj.SetToggleNoView(fernTestValueToggleNoView) - assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetLockedContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} - var fernTestValueLockedContents bool - obj.SetLockedContents(fernTestValueLockedContents) - assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags(t *testing.T) { - t.Run("GetInvisible", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} - var expected bool - obj.Invisible = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetInvisible(), "getter should return the property value") - }) - - t.Run("GetInvisible_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetInvisible() // Should return zero value - }) - - t.Run("GetHidden", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} - var expected bool - obj.Hidden = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") - }) - - t.Run("GetHidden_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetHidden() // Should return zero value - }) - - t.Run("GetPrint", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} - var expected bool - obj.Print = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") - }) - - t.Run("GetPrint_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPrint() // Should return zero value - }) - - t.Run("GetNoZoom", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} - var expected bool - obj.NoZoom = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") - }) - - t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNoZoom() // Should return zero value - }) - - t.Run("GetNoRotate", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} - var expected bool - obj.NoRotate = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") - }) - - t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNoRotate() // Should return zero value - }) - - t.Run("GetNoView", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} - var expected bool - obj.NoView = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") - }) - - t.Run("GetNoView_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNoView() // Should return zero value - }) - - t.Run("GetReadOnly", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} - var expected bool - obj.ReadOnly = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") - }) - - t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetReadOnly() // Should return zero value - }) - - t.Run("GetLocked", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} - var expected bool - obj.Locked = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") - }) - - t.Run("GetLocked_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetLocked() // Should return zero value - }) - - t.Run("GetToggleNoView", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} - var expected bool - obj.ToggleNoView = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") - }) - - t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetToggleNoView() // Should return zero value - }) - - t.Run("GetLockedContents", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} - var expected bool - obj.LockedContents = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") - }) - - t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetLockedContents() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags(t *testing.T) { - t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} - var fernTestValueInvisible bool - - // Act - obj.SetInvisible(fernTestValueInvisible) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetHidden_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} - var fernTestValueHidden bool - - // Act - obj.SetHidden(fernTestValueHidden) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetPrint_MarksExplicit", func(t *testing.T) { + t.Run("SetStrokeWidth_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} - var fernTestValuePrint bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueStrokeWidth float64 // Act - obj.SetPrint(fernTestValuePrint) + obj.SetStrokeWidth(fernTestValueStrokeWidth) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -165536,14 +205737,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { + t.Run("SetBorderStyle_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} - var fernTestValueNoZoom bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle // Act - obj.SetNoZoom(fernTestValueNoZoom) + obj.SetBorderStyle(fernTestValueBorderStyle) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -165567,14 +205768,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { + t.Run("SetDashArray_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} - var fernTestValueNoRotate bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueDashArray []float64 // Act - obj.SetNoRotate(fernTestValueNoRotate) + obj.SetDashArray(fernTestValueDashArray) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -165598,14 +205799,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoView_MarksExplicit", func(t *testing.T) { + t.Run("SetInteriorColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} - var fernTestValueNoView bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor // Act - obj.SetNoView(fernTestValueNoView) + obj.SetInteriorColor(fernTestValueInteriorColor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -165629,14 +205830,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { + t.Run("SetCloudyIntensity_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} - var fernTestValueReadOnly bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueCloudyIntensity *float64 // Act - obj.SetReadOnly(fernTestValueReadOnly) + obj.SetCloudyIntensity(fernTestValueCloudyIntensity) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -165660,14 +205861,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLocked_MarksExplicit", func(t *testing.T) { + t.Run("SetRectDifferences_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} - var fernTestValueLocked bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueRectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences // Act - obj.SetLocked(fernTestValueLocked) + obj.SetRectDifferences(fernTestValueRectDifferences) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -165691,14 +205892,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { + t.Run("SetRotation_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} - var fernTestValueToggleNoView bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueRotation *float64 // Act - obj.SetToggleNoView(fernTestValueToggleNoView) + obj.SetRotation(fernTestValueRotation) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -165722,14 +205923,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { + t.Run("SetUnrotatedRect_MarksExplicit", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFlags{} - var fernTestValueLockedContents bool + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + var fernTestValueUnrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect // Act - obj.SetLockedContents(fernTestValueLockedContents) + obj.SetUnrotatedRect(fernTestValueUnrotatedRect) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -165755,9 +205956,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor(t *testing.T) { t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor{} var fernTestValueR int obj.SetR(fernTestValueR) assert.Equal(t, fernTestValueR, obj.R) @@ -165765,7 +205966,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFo }) t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor{} var fernTestValueG int obj.SetG(fernTestValueG) assert.Equal(t, fernTestValueG, obj.G) @@ -165773,7 +205974,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFo }) t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor{} var fernTestValueB int obj.SetB(fernTestValueB) assert.Equal(t, fernTestValueB, obj.B) @@ -165782,11 +205983,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFo } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor(t *testing.T) { t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor{} var expected int obj.R = expected @@ -165796,7 +205997,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFo t.Run("GetR_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -165809,7 +206010,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFo t.Run("GetG", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor{} var expected int obj.G = expected @@ -165819,7 +206020,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFo t.Run("GetG_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -165832,7 +206033,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFo t.Run("GetB", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor{} var expected int obj.B = expected @@ -165842,7 +206043,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFo t.Run("GetB_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -165854,11 +206055,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFo } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor(t *testing.T) { t.Run("SetR_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor{} var fernTestValueR int // Act @@ -165889,7 +206090,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor{} var fernTestValueG int // Act @@ -165920,7 +206121,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetB_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactFontColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor{} var fernTestValueB int // Act @@ -165950,249 +206151,331 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags(t *testing.T) { + t.Run("SetInvisible", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + var fernTestValueInvisible bool + obj.SetInvisible(fernTestValueInvisible) + assert.Equal(t, fernTestValueInvisible, obj.Invisible) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetHidden", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + var fernTestValueHidden bool + obj.SetHidden(fernTestValueHidden) + assert.Equal(t, fernTestValueHidden, obj.Hidden) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrint", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + var fernTestValuePrint bool + obj.SetPrint(fernTestValuePrint) + assert.Equal(t, fernTestValuePrint, obj.Print) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNoZoom", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + var fernTestValueNoZoom bool + obj.SetNoZoom(fernTestValueNoZoom) + assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNoRotate", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + var fernTestValueNoRotate bool + obj.SetNoRotate(fernTestValueNoRotate) + assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNoView", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + var fernTestValueNoView bool + obj.SetNoView(fernTestValueNoView) + assert.Equal(t, fernTestValueNoView, obj.NoView) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetReadOnly", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + var fernTestValueReadOnly bool + obj.SetReadOnly(fernTestValueReadOnly) + assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLocked", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + var fernTestValueLocked bool + obj.SetLocked(fernTestValueLocked) + assert.Equal(t, fernTestValueLocked, obj.Locked) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetToggleNoView", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + var fernTestValueToggleNoView bool + obj.SetToggleNoView(fernTestValueToggleNoView) + assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLockedContents", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + var fernTestValueLockedContents bool + obj.SetLockedContents(fernTestValueLockedContents) + assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags(t *testing.T) { + t.Run("GetInvisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo{} - var expected string - obj.Kind = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + var expected bool + obj.Invisible = expected // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Equal(t, expected, obj.GetInvisible(), "getter should return the property value") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetInvisible_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKind() // Should return zero value - }) - - t.Run("GetObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber - obj.ObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + _ = obj.GetInvisible() // Should return zero value }) - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Run("GetHidden", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo{} - obj.ObjectNumber = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + var expected bool + obj.Hidden = expected // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") }) - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetHidden_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetObjectNumber() // Should return zero value + _ = obj.GetHidden() // Should return zero value }) - t.Run("GetNm", func(t *testing.T) { + t.Run("GetPrint", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm - obj.Nm = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + var expected bool + obj.Print = expected // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") }) - t.Run("GetNm_NilValue", func(t *testing.T) { + t.Run("GetPrint_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrint() // Should return zero value + }) + + t.Run("GetNoZoom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo{} - obj.Nm = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + var expected bool + obj.NoZoom = expected // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetNoZoom() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetNoRotate", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex - obj.Index = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + var expected bool + obj.NoRotate = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") }) - t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNoRotate() // Should return zero value + }) + + t.Run("GetNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo{} - obj.Index = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + var expected bool + obj.NoView = expected // Act & Assert - assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) - assert.NotNil(t, obj.explicitFields) + _ = obj.GetNoView() // Should return zero value }) -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetReadOnly", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + var expected bool + obj.ReadOnly = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetReadOnly() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetLocked", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex{} - var expected int - obj.Index = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + var expected bool + obj.Locked = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetLocked_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetLocked() // Should return zero value }) - t.Run("GetRevision", func(t *testing.T) { + t.Run("GetToggleNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision - obj.Revision = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + var expected bool + obj.ToggleNoView = expected // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") }) - t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetToggleNoView() // Should return zero value + }) + + t.Run("GetLockedContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex{} - obj.Revision = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + var expected bool + obj.LockedContents = expected // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") }) - t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRevision() // Should return zero value + _ = obj.GetLockedContents() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags(t *testing.T) { + t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + var fernTestValueInvisible bool // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetInvisible(fernTestValueInvisible) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -166216,14 +206499,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("SetHidden_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex{} - var fernTestValueIndex int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + var fernTestValueHidden bool // Act - obj.SetIndex(fernTestValueIndex) + obj.SetHidden(fernTestValueHidden) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -166247,14 +206530,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("SetPrint_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + var fernTestValuePrint bool // Act - obj.SetRevision(fernTestValueRevision) + obj.SetPrint(fernTestValuePrint) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -166278,116 +206561,45 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision{} - var fernTestValueDocSessionID string - obj.SetDocSessionID(fernTestValueDocSessionID) - assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision{} - var expected string - obj.DocSessionID = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") - }) - - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetDocSessionID() // Should return zero value - }) - - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + var fernTestValueNoZoom bool - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) + // Act + obj.SetNoZoom(fernTestValueNoZoom) - t.Run("GetGeneration", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision{} - var expected int - obj.Generation = expected + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetGeneration() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision{} - var fernTestValueDocSessionID string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + var fernTestValueNoRotate bool // Act - obj.SetDocSessionID(fernTestValueDocSessionID) + obj.SetNoRotate(fernTestValueNoRotate) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -166411,14 +206623,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + var fernTestValueNoView bool // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetNoView(fernTestValueNoView) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -166442,14 +206654,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToIndexRevision{} - var fernTestValueGeneration int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + var fernTestValueReadOnly bool // Act - obj.SetGeneration(fernTestValueGeneration) + obj.SetReadOnly(fernTestValueReadOnly) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -166473,85 +206685,45 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm{} - var fernTestValueNm string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("SetLocked_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + var fernTestValueLocked bool - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) + // Act + obj.SetLocked(fernTestValueLocked) - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm{} - var expected string - obj.Nm = expected + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetNm_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNm() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + var fernTestValueToggleNoView bool // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetToggleNoView(fernTestValueToggleNoView) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -166575,14 +206747,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToNm{} - var fernTestValueNm string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + var fernTestValueLockedContents bool // Act - obj.SetNm(fernTestValueNm) + obj.SetLockedContents(fernTestValueLockedContents) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -166608,247 +206780,249 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo{} + var expected string + obj.Kind = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetKind() // Should return zero value }) - t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber + obj.ObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") }) - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo{} + obj.ObjectNumber = nil + + // Act & Assert + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + }) + + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAnnotObjectNumber() // Should return zero value + _ = obj.GetObjectNumber() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm + obj.Nm = expected - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetNm_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo{} + obj.Nm = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value }) - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex + obj.Index = expected - // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + // Act & Assert + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo{} + obj.Index = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIndex() // Should return zero value }) } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor(t *testing.T) { - t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor{} - var fernTestValueR int - obj.SetR(fernTestValueR) - assert.Equal(t, fernTestValueR, obj.R) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor{} - var fernTestValueG int - obj.SetG(fernTestValueG) - assert.Equal(t, fernTestValueG, obj.G) + t.Run("SetIndex", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex{} + var fernTestValueIndex int + obj.SetIndex(fernTestValueIndex) + assert.Equal(t, fernTestValueIndex, obj.Index) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor{} - var fernTestValueB int - obj.SetB(fernTestValueB) - assert.Equal(t, fernTestValueB, obj.B) + t.Run("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor(t *testing.T) { - t.Run("GetR", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex{} var expected int - obj.R = expected + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetR(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetR_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetR() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetG", func(t *testing.T) { + t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex{} var expected int - obj.G = expected + obj.Index = expected // Act & Assert - assert.Equal(t, expected, obj.GetG(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") }) - t.Run("GetG_NilReceiver", func(t *testing.T) { + t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetG() // Should return zero value + _ = obj.GetIndex() // Should return zero value }) - t.Run("GetB", func(t *testing.T) { + t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor{} - var expected int - obj.B = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision + obj.Revision = expected // Act & Assert - assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") }) - t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex{} + obj.Revision = nil + + // Act & Assert + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + }) + + t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetB() // Should return zero value + _ = obj.GetRevision() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor(t *testing.T) { - t.Run("SetR_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor{} - var fernTestValueR int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex{} + var fernTestValuePageObjectNumber int // Act - obj.SetR(fernTestValueR) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -166872,14 +207046,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor{} - var fernTestValueG int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex{} + var fernTestValueIndex int // Act - obj.SetG(fernTestValueG) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -166903,14 +207077,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactInteriorColor{} - var fernTestValueB int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision // Act - obj.SetB(fernTestValueB) + obj.SetRevision(fernTestValueRevision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -166936,216 +207110,114 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem(t *testing.T) { - t.Run("SetP1", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} - var fernTestValueP1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1 - obj.SetP1(fernTestValueP1) - assert.Equal(t, fernTestValueP1, obj.P1) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetP2", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} - var fernTestValueP2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2 - obj.SetP2(fernTestValueP2) - assert.Equal(t, fernTestValueP2, obj.P2) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision{} + var fernTestValueDocSessionID string + obj.SetDocSessionID(fernTestValueDocSessionID) + assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetP3", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} - var fernTestValueP3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3 - obj.SetP3(fernTestValueP3) - assert.Equal(t, fernTestValueP3, obj.P3) + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetP4", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} - var fernTestValueP4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4 - obj.SetP4(fernTestValueP4) - assert.Equal(t, fernTestValueP4, obj.P4) + t.Run("SetGeneration", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem(t *testing.T) { - t.Run("GetP1", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1 - obj.P1 = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetP1(), "getter should return the property value") - }) - - t.Run("GetP1_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} - obj.P1 = nil - - // Act & Assert - assert.Nil(t, obj.GetP1(), "getter should return nil when property is nil") - }) - - t.Run("GetP1_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetP1() // Should return zero value - }) - - t.Run("GetP2", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2 - obj.P2 = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetP2(), "getter should return the property value") - }) - - t.Run("GetP2_NilValue", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} - obj.P2 = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision{} + var expected string + obj.DocSessionID = expected // Act & Assert - assert.Nil(t, obj.GetP2(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") }) - t.Run("GetP2_NilReceiver", func(t *testing.T) { + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetP2() // Should return zero value - }) - - t.Run("GetP3", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3 - obj.P3 = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetP3(), "getter should return the property value") + _ = obj.GetDocSessionID() // Should return zero value }) - t.Run("GetP3_NilValue", func(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} - obj.P3 = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Nil(t, obj.GetP3(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetP3_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetP3() // Should return zero value - }) - - t.Run("GetP4", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4 - obj.P4 = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetP4(), "getter should return the property value") + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetP4_NilValue", func(t *testing.T) { + t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} - obj.P4 = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision{} + var expected int + obj.Generation = expected // Act & Assert - assert.Nil(t, obj.GetP4(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") }) - t.Run("GetP4_NilReceiver", func(t *testing.T) { + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetP4() // Should return zero value + _ = obj.GetGeneration() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem(t *testing.T) { - t.Run("SetP1_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} - var fernTestValueP1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1 - - // Act - obj.SetP1(fernTestValueP1) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetP2_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} - var fernTestValueP2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision{} + var fernTestValueDocSessionID string // Act - obj.SetP2(fernTestValueP2) + obj.SetDocSessionID(fernTestValueDocSessionID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -167169,14 +207241,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetP3_MarksExplicit", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} - var fernTestValueP3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int // Act - obj.SetP3(fernTestValueP3) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -167200,14 +207272,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetP4_MarksExplicit", func(t *testing.T) { + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItem{} - var fernTestValueP4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision{} + var fernTestValueGeneration int // Act - obj.SetP4(fernTestValueP4) + obj.SetGeneration(fernTestValueGeneration) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -167233,83 +207305,83 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1(t *testing.T) { - t.Run("GetX", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1{} - var expected float64 - obj.X = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetX() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetY", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1{} - var expected float64 - obj.Y = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm{} + var expected string + obj.Nm = expected // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetY() // Should return zero value + _ = obj.GetNm() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1{} - var fernTestValueX float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm{} + var fernTestValuePageObjectNumber int // Act - obj.SetX(fernTestValueX) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -167333,14 +207405,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP1{} - var fernTestValueY float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm{} + var fernTestValueNm string // Act - obj.SetY(fernTestValueY) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -167366,83 +207438,83 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2(t *testing.T) { - t.Run("GetX", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2{} - var expected float64 - obj.X = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetX() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetY", func(t *testing.T) { + t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2{} - var expected float64 - obj.Y = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") }) - t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetY() // Should return zero value + _ = obj.GetAnnotObjectNumber() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2{} - var fernTestValueX float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int // Act - obj.SetX(fernTestValueX) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -167466,14 +207538,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP2{} - var fernTestValueY float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int // Act - obj.SetY(fernTestValueY) + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -167499,83 +207571,114 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor(t *testing.T) { + t.Run("SetR", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor{} + var fernTestValueR int + obj.SetR(fernTestValueR) + assert.Equal(t, fernTestValueR, obj.R) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) + t.Run("SetG", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor{} + var fernTestValueG int + obj.SetG(fernTestValueG) + assert.Equal(t, fernTestValueG, obj.G) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetB", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3(t *testing.T) { - t.Run("GetX", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3{} - var expected float64 - obj.X = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor{} + var expected int + obj.R = expected // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") }) - t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Run("GetR_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetX() // Should return zero value + _ = obj.GetR() // Should return zero value }) - t.Run("GetY", func(t *testing.T) { + t.Run("GetG", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3{} - var expected float64 - obj.Y = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor{} + var expected int + obj.G = expected // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") }) - t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Run("GetG_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetY() // Should return zero value + _ = obj.GetG() // Should return zero value + }) + + t.Run("GetB", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor{} + var expected int + obj.B = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + }) + + t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetB() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3{} - var fernTestValueX float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor{} + var fernTestValueR int // Act - obj.SetX(fernTestValueX) + obj.SetR(fernTestValueR) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -167599,14 +207702,45 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP3{} - var fernTestValueY float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor{} + var fernTestValueG int // Act - obj.SetY(fernTestValueY) + obj.SetG(fernTestValueG) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor{} + var fernTestValueB int + + // Act + obj.SetB(fernTestValueB) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -167632,83 +207766,145 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect{} + var fernTestValueLeft float64 + obj.SetLeft(fernTestValueLeft) + assert.Equal(t, fernTestValueLeft, obj.Left) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) + t.Run("SetBottom", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect{} + var fernTestValueBottom float64 + obj.SetBottom(fernTestValueBottom) + assert.Equal(t, fernTestValueBottom, obj.Bottom) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRight", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect{} + var fernTestValueRight float64 + obj.SetRight(fernTestValueRight) + assert.Equal(t, fernTestValueRight, obj.Right) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetTop", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4(t *testing.T) { - t.Run("GetX", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect{} var expected float64 - obj.X = expected + obj.Left = expected // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") }) - t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetX() // Should return zero value + _ = obj.GetLeft() // Should return zero value }) - t.Run("GetY", func(t *testing.T) { + t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect{} var expected float64 - obj.Y = expected + obj.Bottom = expected // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") }) - t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetY() // Should return zero value + _ = obj.GetBottom() // Should return zero value + }) + + t.Run("GetRight", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect{} + var expected float64 + obj.Right = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") + }) + + t.Run("GetRight_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRight() // Should return zero value + }) + + t.Run("GetTop", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect{} + var expected float64 + obj.Top = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + }) + + t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetTop() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4{} - var fernTestValueX float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect{} + var fernTestValueLeft float64 // Act - obj.SetX(fernTestValueX) + obj.SetLeft(fernTestValueLeft) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -167732,14 +207928,76 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactQuadPointsItemP4{} - var fernTestValueY float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect{} + var fernTestValueBottom float64 // Act - obj.SetY(fernTestValueY) + obj.SetBottom(fernTestValueBottom) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRight_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect{} + var fernTestValueRight float64 + + // Act + obj.SetRight(fernTestValueRight) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect{} + var fernTestValueTop float64 + + // Act + obj.SetTop(fernTestValueTop) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -167765,46 +208023,46 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences(t *testing.T) { t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} var fernTestValueLeft float64 obj.SetLeft(fernTestValueLeft) assert.Equal(t, fernTestValueLeft, obj.Left) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} - var fernTestValueBottom float64 - obj.SetBottom(fernTestValueBottom) - assert.Equal(t, fernTestValueBottom, obj.Bottom) + t.Run("SetTop", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) assert.NotNil(t, obj.explicitFields) }) t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} var fernTestValueRight float64 obj.SetRight(fernTestValueRight) assert.Equal(t, fernTestValueRight, obj.Right) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} - var fernTestValueTop float64 - obj.SetTop(fernTestValueTop) - assert.Equal(t, fernTestValueTop, obj.Top) + t.Run("SetBottom", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} + var fernTestValueBottom float64 + obj.SetBottom(fernTestValueBottom) + assert.Equal(t, fernTestValueBottom, obj.Bottom) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences(t *testing.T) { t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} var expected float64 obj.Left = expected @@ -167814,7 +208072,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRe t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -167824,33 +208082,33 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRe _ = obj.GetLeft() // Should return zero value }) - t.Run("GetBottom", func(t *testing.T) { + t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} var expected float64 - obj.Bottom = expected + obj.Top = expected // Act & Assert - assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") }) - t.Run("GetBottom_NilReceiver", func(t *testing.T) { + t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBottom() // Should return zero value + _ = obj.GetTop() // Should return zero value }) t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} var expected float64 obj.Right = expected @@ -167860,7 +208118,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRe t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -167870,36 +208128,36 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRe _ = obj.GetRight() // Should return zero value }) - t.Run("GetTop", func(t *testing.T) { + t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} var expected float64 - obj.Top = expected + obj.Bottom = expected // Act & Assert - assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") }) - t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTop() // Should return zero value + _ = obj.GetBottom() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences(t *testing.T) { t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} var fernTestValueLeft float64 // Act @@ -167927,14 +208185,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Run("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} - var fernTestValueBottom float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} + var fernTestValueTop float64 // Act - obj.SetBottom(fernTestValueBottom) + obj.SetTop(fernTestValueTop) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -167961,7 +208219,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} var fernTestValueRight float64 // Act @@ -167989,14 +208247,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRect{} - var fernTestValueTop float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} + var fernTestValueBottom float64 // Act - obj.SetTop(fernTestValueTop) + obj.SetBottom(fernTestValueBottom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -168022,11 +208280,11 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef{} var expected string obj.Kind = expected @@ -168036,7 +208294,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRe t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -168049,8 +208307,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRe t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -168060,7 +208318,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRe t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef{} obj.ObjectNumber = nil // Act & Assert @@ -168069,7 +208327,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRe t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -168082,8 +208340,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRe t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm obj.Nm = expected // Act & Assert @@ -168093,7 +208351,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRe t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef{} obj.Nm = nil // Act & Assert @@ -168102,7 +208360,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRe t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -168115,8 +208373,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRe t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex obj.Index = expected // Act & Assert @@ -168126,7 +208384,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRe t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef{} obj.Index = nil // Act & Assert @@ -168135,7 +208393,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRe t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -168147,9 +208405,9 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRe } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -168157,7 +208415,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRe }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -168165,8 +208423,8 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRe }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -168174,11 +208432,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRe } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex{} var expected int obj.PageObjectNumber = expected @@ -168188,7 +208446,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRe t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -168201,7 +208459,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRe t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex{} var expected int obj.Index = expected @@ -168211,7 +208469,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRe t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -168224,8 +208482,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRe t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision obj.Revision = expected // Act & Assert @@ -168235,7 +208493,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRe t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex{} obj.Revision = nil // Act & Assert @@ -168244,7 +208502,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRe t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -168256,11 +208514,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRe } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex{} var fernTestValuePageObjectNumber int // Act @@ -168291,7 +208549,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex{} var fernTestValueIndex int // Act @@ -168322,8 +208580,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -168352,9 +208610,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -168362,7 +208620,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRe }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -168370,7 +208628,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRe }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -168379,11 +208637,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRe } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision{} var expected string obj.DocSessionID = expected @@ -168393,7 +208651,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRe t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -168406,7 +208664,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRe t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -168416,7 +208674,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRe t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -168429,7 +208687,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRe t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision{} var expected int obj.Generation = expected @@ -168439,7 +208697,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRe t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -168451,11 +208709,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRe } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision{} var fernTestValueDocSessionID string // Act @@ -168486,7 +208744,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -168517,7 +208775,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision{} var fernTestValueGeneration int // Act @@ -168541,89 +208799,417 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations require.NoError(t, err, "unmarshaling should succeed for test verification") } - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm{} + var expected string + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm{} + var fernTestValueNm string + + // Act + obj.SetNm(fernTestValueNm) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + }) + + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAnnotObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber{} + var fernTestValueAnnotObjectNumber int + + // Act + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect{} + var fernTestValueLeft float64 + obj.SetLeft(fernTestValueLeft) + assert.Equal(t, fernTestValueLeft, obj.Left) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBottom", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect{} + var fernTestValueBottom float64 + obj.SetBottom(fernTestValueBottom) + assert.Equal(t, fernTestValueBottom, obj.Bottom) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRight", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect{} + var fernTestValueRight float64 + obj.SetRight(fernTestValueRight) + assert.Equal(t, fernTestValueRight, obj.Right) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetTop", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) + assert.NotNil(t, obj.explicitFields) }) } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect{} + var expected float64 + obj.Left = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") }) - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm{} - var fernTestValueNm string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) + t.Run("GetLeft_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLeft() // Should return zero value }) -} + t.Run("GetBottom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect{} + var expected float64 + obj.Bottom = expected -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + // Act & Assert + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") + }) + + t.Run("GetBottom_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBottom() // Should return zero value + }) + + t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect{} + var expected float64 + obj.Right = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetRight() // Should return zero value }) - t.Run("GetNm", func(t *testing.T) { + t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm{} - var expected string - obj.Nm = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect{} + var expected float64 + obj.Top = expected // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetTop() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect{} + var fernTestValueLeft float64 // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetLeft(fernTestValueLeft) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -168647,14 +209233,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefNm{} - var fernTestValueNm string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect{} + var fernTestValueBottom float64 // Act - obj.SetNm(fernTestValueNm) + obj.SetBottom(fernTestValueBottom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -168678,85 +209264,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetAnnotObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") - }) - - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAnnotObjectNumber() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect{} + var fernTestValueRight float64 // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetRight(fernTestValueRight) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -168780,14 +209295,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemRedactRefObjectNumber{} - var fernTestValueAnnotObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect{} + var fernTestValueTop float64 // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + obj.SetTop(fernTestValueTop) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -168813,17 +209328,17 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly(t *testing.T) { t.Run("SetRef", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef obj.SetRef(fernTestValueRef) assert.Equal(t, fernTestValueRef, obj.Ref) assert.NotNil(t, obj.explicitFields) }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -168831,7 +209346,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -168839,15 +209354,15 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t }) t.Run("SetIdentityQuality", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality obj.SetIdentityQuality(fernTestValueIdentityQuality) assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) assert.NotNil(t, obj.explicitFields) }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} var fernTestValueNm *string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -168855,23 +209370,23 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t }) t.Run("SetFlags", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags obj.SetFlags(fernTestValueFlags) assert.Equal(t, fernTestValueFlags, obj.Flags) assert.NotNil(t, obj.explicitFields) }) t.Run("SetRect", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect obj.SetRect(fernTestValueRect) assert.Equal(t, fernTestValueRect, obj.Rect) assert.NotNil(t, obj.explicitFields) }) t.Run("SetContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} var fernTestValueContents *string obj.SetContents(fernTestValueContents) assert.Equal(t, fernTestValueContents, obj.Contents) @@ -168879,7 +209394,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t }) t.Run("SetSubject", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} var fernTestValueSubject *string obj.SetSubject(fernTestValueSubject) assert.Equal(t, fernTestValueSubject, obj.Subject) @@ -168887,7 +209402,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t }) t.Run("SetAuthor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} var fernTestValueAuthor *string obj.SetAuthor(fernTestValueAuthor) assert.Equal(t, fernTestValueAuthor, obj.Author) @@ -168895,7 +209410,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t }) t.Run("SetCreated", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} var fernTestValueCreated *time.Time obj.SetCreated(fernTestValueCreated) assert.Equal(t, fernTestValueCreated, obj.Created) @@ -168903,7 +209418,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t }) t.Run("SetModified", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} var fernTestValueModified *time.Time obj.SetModified(fernTestValueModified) assert.Equal(t, fernTestValueModified, obj.Modified) @@ -168911,31 +209426,31 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t }) t.Run("SetBlendMode", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode obj.SetBlendMode(fernTestValueBlendMode) assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) assert.NotNil(t, obj.explicitFields) }) t.Run("SetInReplyTo", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo obj.SetInReplyTo(fernTestValueInReplyTo) assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) assert.NotNil(t, obj.explicitFields) }) t.Run("SetReplyType", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType obj.SetReplyType(fernTestValueReplyType) assert.Equal(t, fernTestValueReplyType, obj.ReplyType) assert.NotNil(t, obj.explicitFields) }) t.Run("SetUserID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} var fernTestValueUserID *string obj.SetUserID(fernTestValueUserID) assert.Equal(t, fernTestValueUserID, obj.UserID) @@ -168943,7 +209458,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t }) t.Run("SetGroupID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} var fernTestValueGroupID *string obj.SetGroupID(fernTestValueGroupID) assert.Equal(t, fernTestValueGroupID, obj.GroupID) @@ -168951,7 +209466,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t }) t.Run("SetCreatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} var fernTestValueCreatedBy *string obj.SetCreatedBy(fernTestValueCreatedBy) assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) @@ -168959,7 +209474,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t }) t.Run("SetUpdatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} var fernTestValueUpdatedBy *string obj.SetUpdatedBy(fernTestValueUpdatedBy) assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) @@ -168967,7 +209482,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t }) t.Run("SetActions", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} var fernTestValueActions *PdfAnnotationActions obj.SetActions(fernTestValueActions) assert.Equal(t, fernTestValueActions, obj.Actions) @@ -168975,93 +209490,37 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t }) t.Run("SetColor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor obj.SetColor(fernTestValueColor) assert.Equal(t, fernTestValueColor, obj.Color) assert.NotNil(t, obj.explicitFields) }) t.Run("SetOpacity", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} var fernTestValueOpacity float64 obj.SetOpacity(fernTestValueOpacity) assert.Equal(t, fernTestValueOpacity, obj.Opacity) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetStrokeWidth", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueStrokeWidth float64 - obj.SetStrokeWidth(fernTestValueStrokeWidth) - assert.Equal(t, fernTestValueStrokeWidth, obj.StrokeWidth) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetBorderStyle", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle - obj.SetBorderStyle(fernTestValueBorderStyle) - assert.Equal(t, fernTestValueBorderStyle, obj.BorderStyle) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetDashArray", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueDashArray []float64 - obj.SetDashArray(fernTestValueDashArray) - assert.Equal(t, fernTestValueDashArray, obj.DashArray) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetInteriorColor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor - obj.SetInteriorColor(fernTestValueInteriorColor) - assert.Equal(t, fernTestValueInteriorColor, obj.InteriorColor) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCloudyIntensity", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueCloudyIntensity *float64 - obj.SetCloudyIntensity(fernTestValueCloudyIntensity) - assert.Equal(t, fernTestValueCloudyIntensity, obj.CloudyIntensity) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRectDifferences", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueRectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences - obj.SetRectDifferences(fernTestValueRectDifferences) - assert.Equal(t, fernTestValueRectDifferences, obj.RectDifferences) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRotation", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueRotation *float64 - obj.SetRotation(fernTestValueRotation) - assert.Equal(t, fernTestValueRotation, obj.Rotation) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetUnrotatedRect", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueUnrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect - obj.SetUnrotatedRect(fernTestValueUnrotatedRect) - assert.Equal(t, fernTestValueUnrotatedRect, obj.UnrotatedRect) + t.Run("SetQuadPoints", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueQuadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem + obj.SetQuadPoints(fernTestValueQuadPoints) + assert.Equal(t, fernTestValueQuadPoints, obj.QuadPoints) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly(t *testing.T) { t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef obj.Ref = expected // Act & Assert @@ -169071,7 +209530,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetRef_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} obj.Ref = nil // Act & Assert @@ -169080,7 +209539,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetRef_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -169093,7 +209552,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} var expected int obj.PageObjectNumber = expected @@ -169103,7 +209562,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -169116,7 +209575,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} var expected int obj.Index = expected @@ -169126,7 +209585,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -169139,8 +209598,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetIdentityQuality", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality obj.IdentityQuality = expected // Act & Assert @@ -169149,7 +209608,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -169162,7 +209621,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} var expected *string obj.Nm = expected @@ -169173,7 +209632,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} obj.Nm = nil // Act & Assert @@ -169182,7 +209641,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -169195,8 +209654,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags obj.Flags = expected // Act & Assert @@ -169206,7 +209665,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} obj.Flags = nil // Act & Assert @@ -169215,7 +209674,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -169228,8 +209687,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetRect", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect obj.Rect = expected // Act & Assert @@ -169239,7 +209698,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetRect_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} obj.Rect = nil // Act & Assert @@ -169248,7 +209707,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetRect_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -169261,7 +209720,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} var expected *string obj.Contents = expected @@ -169272,7 +209731,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetContents_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} obj.Contents = nil // Act & Assert @@ -169281,7 +209740,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -169294,7 +209753,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetSubject", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} var expected *string obj.Subject = expected @@ -169305,7 +209764,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetSubject_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} obj.Subject = nil // Act & Assert @@ -169314,7 +209773,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetSubject_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -169327,7 +209786,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetAuthor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} var expected *string obj.Author = expected @@ -169338,7 +209797,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetAuthor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} obj.Author = nil // Act & Assert @@ -169347,7 +209806,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetAuthor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -169360,7 +209819,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetCreated", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} var expected *time.Time obj.Created = expected @@ -169371,7 +209830,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetCreated_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} obj.Created = nil // Act & Assert @@ -169380,7 +209839,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetCreated_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -169393,7 +209852,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetModified", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} var expected *time.Time obj.Modified = expected @@ -169404,7 +209863,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetModified_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} obj.Modified = nil // Act & Assert @@ -169413,7 +209872,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetModified_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -169426,8 +209885,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetBlendMode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode obj.BlendMode = expected // Act & Assert @@ -169436,7 +209895,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -169449,8 +209908,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetInReplyTo", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo obj.InReplyTo = expected // Act & Assert @@ -169460,7 +209919,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetInReplyTo_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} obj.InReplyTo = nil // Act & Assert @@ -169469,7 +209928,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -169482,8 +209941,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetReplyType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType obj.ReplyType = expected // Act & Assert @@ -169493,7 +209952,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetReplyType_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} obj.ReplyType = nil // Act & Assert @@ -169502,7 +209961,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetReplyType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -169515,7 +209974,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetUserID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} var expected *string obj.UserID = expected @@ -169526,7 +209985,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetUserID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} obj.UserID = nil // Act & Assert @@ -169535,7 +209994,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetUserID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -169548,7 +210007,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetGroupID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} var expected *string obj.GroupID = expected @@ -169559,7 +210018,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetGroupID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} obj.GroupID = nil // Act & Assert @@ -169568,7 +210027,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetGroupID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -169581,7 +210040,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetCreatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} var expected *string obj.CreatedBy = expected @@ -169592,7 +210051,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetCreatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} obj.CreatedBy = nil // Act & Assert @@ -169601,7 +210060,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -169614,7 +210073,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetUpdatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} var expected *string obj.UpdatedBy = expected @@ -169625,7 +210084,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} obj.UpdatedBy = nil // Act & Assert @@ -169634,7 +210093,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -169647,7 +210106,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetActions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} var expected *PdfAnnotationActions obj.Actions = expected @@ -169658,7 +210117,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetActions_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} obj.Actions = nil // Act & Assert @@ -169667,7 +210126,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetActions_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -169680,8 +210139,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetColor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor obj.Color = expected // Act & Assert @@ -169691,7 +210150,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetColor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} obj.Color = nil // Act & Assert @@ -169700,7 +210159,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetColor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -169713,7 +210172,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetOpacity", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} var expected float64 obj.Opacity = expected @@ -169723,7 +210182,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t t.Run("GetOpacity_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -169733,258 +210192,47 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t _ = obj.GetOpacity() // Should return zero value }) - t.Run("GetStrokeWidth", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var expected float64 - obj.StrokeWidth = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetStrokeWidth(), "getter should return the property value") - }) - - t.Run("GetStrokeWidth_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetStrokeWidth() // Should return zero value - }) - - t.Run("GetBorderStyle", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle - obj.BorderStyle = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetBorderStyle(), "getter should return the property value") - }) - - t.Run("GetBorderStyle_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetBorderStyle() // Should return zero value - }) - - t.Run("GetDashArray", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var expected []float64 - obj.DashArray = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDashArray(), "getter should return the property value") - }) - - t.Run("GetDashArray_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - obj.DashArray = nil - - // Act & Assert - assert.Nil(t, obj.GetDashArray(), "getter should return nil when property is nil") - }) - - t.Run("GetDashArray_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetDashArray() // Should return zero value - }) - - t.Run("GetInteriorColor", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor - obj.InteriorColor = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetInteriorColor(), "getter should return the property value") - }) - - t.Run("GetInteriorColor_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - obj.InteriorColor = nil - - // Act & Assert - assert.Nil(t, obj.GetInteriorColor(), "getter should return nil when property is nil") - }) - - t.Run("GetInteriorColor_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetInteriorColor() // Should return zero value - }) - - t.Run("GetCloudyIntensity", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var expected *float64 - obj.CloudyIntensity = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetCloudyIntensity(), "getter should return the property value") - }) - - t.Run("GetCloudyIntensity_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - obj.CloudyIntensity = nil - - // Act & Assert - assert.Nil(t, obj.GetCloudyIntensity(), "getter should return nil when property is nil") - }) - - t.Run("GetCloudyIntensity_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetCloudyIntensity() // Should return zero value - }) - - t.Run("GetRectDifferences", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences - obj.RectDifferences = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRectDifferences(), "getter should return the property value") - }) - - t.Run("GetRectDifferences_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - obj.RectDifferences = nil - - // Act & Assert - assert.Nil(t, obj.GetRectDifferences(), "getter should return nil when property is nil") - }) - - t.Run("GetRectDifferences_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRectDifferences() // Should return zero value - }) - - t.Run("GetRotation", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var expected *float64 - obj.Rotation = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRotation(), "getter should return the property value") - }) - - t.Run("GetRotation_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - obj.Rotation = nil - - // Act & Assert - assert.Nil(t, obj.GetRotation(), "getter should return nil when property is nil") - }) - - t.Run("GetRotation_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRotation() // Should return zero value - }) - - t.Run("GetUnrotatedRect", func(t *testing.T) { + t.Run("GetQuadPoints", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect - obj.UnrotatedRect = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem + obj.QuadPoints = expected // Act & Assert - assert.Equal(t, expected, obj.GetUnrotatedRect(), "getter should return the property value") + assert.Equal(t, expected, obj.GetQuadPoints(), "getter should return the property value") }) - t.Run("GetUnrotatedRect_NilValue", func(t *testing.T) { + t.Run("GetQuadPoints_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - obj.UnrotatedRect = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj.QuadPoints = nil // Act & Assert - assert.Nil(t, obj.GetUnrotatedRect(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetQuadPoints(), "getter should return nil when property is nil") }) - t.Run("GetUnrotatedRect_NilReceiver", func(t *testing.T) { + t.Run("GetQuadPoints_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUnrotatedRect() // Should return zero value + _ = obj.GetQuadPoints() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly(t *testing.T) { t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef // Act obj.SetRef(fernTestValueRef) @@ -170014,7 +210262,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} var fernTestValuePageObjectNumber int // Act @@ -170042,324 +210290,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueIndex int - - // Act - obj.SetIndex(fernTestValueIndex) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIdentityQuality - - // Act - obj.SetIdentityQuality(fernTestValueIdentityQuality) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetNm_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueNm *string - - // Act - obj.SetNm(fernTestValueNm) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetFlags_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags - - // Act - obj.SetFlags(fernTestValueFlags) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetRect_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect - - // Act - obj.SetRect(fernTestValueRect) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetContents_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueContents *string - - // Act - obj.SetContents(fernTestValueContents) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetSubject_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueSubject *string - - // Act - obj.SetSubject(fernTestValueSubject) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueAuthor *string - - // Act - obj.SetAuthor(fernTestValueAuthor) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetCreated_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueCreated *time.Time - - // Act - obj.SetCreated(fernTestValueCreated) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetModified_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueModified *time.Time - - // Act - obj.SetModified(fernTestValueModified) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueIndex int // Act - obj.SetBlendMode(fernTestValueBlendMode) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -170383,14 +210321,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { + t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality // Act - obj.SetInReplyTo(fernTestValueInReplyTo) + obj.SetIdentityQuality(fernTestValueIdentityQuality) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -170414,14 +210352,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueNm *string // Act - obj.SetReplyType(fernTestValueReplyType) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -170445,14 +210383,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUserID_MarksExplicit", func(t *testing.T) { + t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueUserID *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags // Act - obj.SetUserID(fernTestValueUserID) + obj.SetFlags(fernTestValueFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -170476,14 +210414,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { + t.Run("SetRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueGroupID *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect // Act - obj.SetGroupID(fernTestValueGroupID) + obj.SetRect(fernTestValueRect) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -170507,14 +210445,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueCreatedBy *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueContents *string // Act - obj.SetCreatedBy(fernTestValueCreatedBy) + obj.SetContents(fernTestValueContents) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -170538,14 +210476,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueUpdatedBy *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueSubject *string // Act - obj.SetUpdatedBy(fernTestValueUpdatedBy) + obj.SetSubject(fernTestValueSubject) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -170569,14 +210507,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueActions *PdfAnnotationActions + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueAuthor *string // Act - obj.SetActions(fernTestValueActions) + obj.SetAuthor(fernTestValueAuthor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -170600,14 +210538,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetColor_MarksExplicit", func(t *testing.T) { + t.Run("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueCreated *time.Time // Act - obj.SetColor(fernTestValueColor) + obj.SetCreated(fernTestValueCreated) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -170631,14 +210569,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { + t.Run("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueOpacity float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueModified *time.Time // Act - obj.SetOpacity(fernTestValueOpacity) + obj.SetModified(fernTestValueModified) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -170662,14 +210600,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetStrokeWidth_MarksExplicit", func(t *testing.T) { + t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueStrokeWidth float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode // Act - obj.SetStrokeWidth(fernTestValueStrokeWidth) + obj.SetBlendMode(fernTestValueBlendMode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -170693,14 +210631,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBorderStyle_MarksExplicit", func(t *testing.T) { + t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareBorderStyle + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo // Act - obj.SetBorderStyle(fernTestValueBorderStyle) + obj.SetInReplyTo(fernTestValueInReplyTo) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -170724,14 +210662,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDashArray_MarksExplicit", func(t *testing.T) { + t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueDashArray []float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType // Act - obj.SetDashArray(fernTestValueDashArray) + obj.SetReplyType(fernTestValueReplyType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -170755,14 +210693,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInteriorColor_MarksExplicit", func(t *testing.T) { + t.Run("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueUserID *string // Act - obj.SetInteriorColor(fernTestValueInteriorColor) + obj.SetUserID(fernTestValueUserID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -170786,14 +210724,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCloudyIntensity_MarksExplicit", func(t *testing.T) { + t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueCloudyIntensity *float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueGroupID *string // Act - obj.SetCloudyIntensity(fernTestValueCloudyIntensity) + obj.SetGroupID(fernTestValueGroupID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -170817,14 +210755,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRectDifferences_MarksExplicit", func(t *testing.T) { + t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueRectDifferences *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueCreatedBy *string // Act - obj.SetRectDifferences(fernTestValueRectDifferences) + obj.SetCreatedBy(fernTestValueCreatedBy) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -170848,14 +210786,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRotation_MarksExplicit", func(t *testing.T) { + t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueRotation *float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueUpdatedBy *string // Act - obj.SetRotation(fernTestValueRotation) + obj.SetUpdatedBy(fernTestValueUpdatedBy) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -170879,14 +210817,107 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUnrotatedRect_MarksExplicit", func(t *testing.T) { + t.Run("SetActions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquare{} - var fernTestValueUnrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueActions *PdfAnnotationActions // Act - obj.SetUnrotatedRect(fernTestValueUnrotatedRect) + obj.SetActions(fernTestValueActions) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetColor_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor + + // Act + obj.SetColor(fernTestValueColor) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueOpacity float64 + + // Act + obj.SetOpacity(fernTestValueOpacity) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetQuadPoints_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + var fernTestValueQuadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem + + // Act + obj.SetQuadPoints(fernTestValueQuadPoints) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -170912,9 +210943,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor(t *testing.T) { t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor{} var fernTestValueR int obj.SetR(fernTestValueR) assert.Equal(t, fernTestValueR, obj.R) @@ -170922,7 +210953,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareCo }) t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor{} var fernTestValueG int obj.SetG(fernTestValueG) assert.Equal(t, fernTestValueG, obj.G) @@ -170930,7 +210961,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareCo }) t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor{} var fernTestValueB int obj.SetB(fernTestValueB) assert.Equal(t, fernTestValueB, obj.B) @@ -170939,11 +210970,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareCo } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor(t *testing.T) { t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor{} var expected int obj.R = expected @@ -170953,7 +210984,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareCo t.Run("GetR_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -170966,7 +210997,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareCo t.Run("GetG", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor{} var expected int obj.G = expected @@ -170976,7 +211007,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareCo t.Run("GetG_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -170989,7 +211020,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareCo t.Run("GetB", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor{} var expected int obj.B = expected @@ -170999,7 +211030,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareCo t.Run("GetB_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -171011,11 +211042,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareCo } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor(t *testing.T) { t.Run("SetR_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor{} var fernTestValueR int // Act @@ -171046,7 +211077,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor{} var fernTestValueG int // Act @@ -171077,7 +211108,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetB_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor{} var fernTestValueB int // Act @@ -171107,9 +211138,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags(t *testing.T) { t.Run("SetInvisible", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} var fernTestValueInvisible bool obj.SetInvisible(fernTestValueInvisible) assert.Equal(t, fernTestValueInvisible, obj.Invisible) @@ -171117,7 +211148,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFl }) t.Run("SetHidden", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} var fernTestValueHidden bool obj.SetHidden(fernTestValueHidden) assert.Equal(t, fernTestValueHidden, obj.Hidden) @@ -171125,7 +211156,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFl }) t.Run("SetPrint", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} var fernTestValuePrint bool obj.SetPrint(fernTestValuePrint) assert.Equal(t, fernTestValuePrint, obj.Print) @@ -171133,7 +211164,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFl }) t.Run("SetNoZoom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} var fernTestValueNoZoom bool obj.SetNoZoom(fernTestValueNoZoom) assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) @@ -171141,7 +211172,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFl }) t.Run("SetNoRotate", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} var fernTestValueNoRotate bool obj.SetNoRotate(fernTestValueNoRotate) assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) @@ -171149,7 +211180,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFl }) t.Run("SetNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} var fernTestValueNoView bool obj.SetNoView(fernTestValueNoView) assert.Equal(t, fernTestValueNoView, obj.NoView) @@ -171157,7 +211188,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFl }) t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} var fernTestValueReadOnly bool obj.SetReadOnly(fernTestValueReadOnly) assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) @@ -171165,7 +211196,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFl }) t.Run("SetLocked", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} var fernTestValueLocked bool obj.SetLocked(fernTestValueLocked) assert.Equal(t, fernTestValueLocked, obj.Locked) @@ -171173,7 +211204,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFl }) t.Run("SetToggleNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} var fernTestValueToggleNoView bool obj.SetToggleNoView(fernTestValueToggleNoView) assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) @@ -171181,7 +211212,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFl }) t.Run("SetLockedContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} var fernTestValueLockedContents bool obj.SetLockedContents(fernTestValueLockedContents) assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) @@ -171190,11 +211221,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFl } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags(t *testing.T) { t.Run("GetInvisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} var expected bool obj.Invisible = expected @@ -171204,7 +211235,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFl t.Run("GetInvisible_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -171217,7 +211248,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFl t.Run("GetHidden", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} var expected bool obj.Hidden = expected @@ -171227,7 +211258,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFl t.Run("GetHidden_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -171240,7 +211271,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFl t.Run("GetPrint", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} var expected bool obj.Print = expected @@ -171250,7 +211281,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFl t.Run("GetPrint_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -171263,7 +211294,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFl t.Run("GetNoZoom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} var expected bool obj.NoZoom = expected @@ -171273,7 +211304,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFl t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -171286,7 +211317,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFl t.Run("GetNoRotate", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} var expected bool obj.NoRotate = expected @@ -171296,7 +211327,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFl t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -171309,7 +211340,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFl t.Run("GetNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} var expected bool obj.NoView = expected @@ -171319,7 +211350,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFl t.Run("GetNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -171332,7 +211363,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFl t.Run("GetReadOnly", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} var expected bool obj.ReadOnly = expected @@ -171342,7 +211373,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFl t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -171355,7 +211386,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFl t.Run("GetLocked", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} var expected bool obj.Locked = expected @@ -171365,7 +211396,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFl t.Run("GetLocked_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -171378,7 +211409,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFl t.Run("GetToggleNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} var expected bool obj.ToggleNoView = expected @@ -171388,7 +211419,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFl t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -171401,7 +211432,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFl t.Run("GetLockedContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} var expected bool obj.LockedContents = expected @@ -171411,7 +211442,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFl t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -171423,11 +211454,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFl } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags(t *testing.T) { t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} var fernTestValueInvisible bool // Act @@ -171458,7 +211489,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetHidden_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} var fernTestValueHidden bool // Act @@ -171489,7 +211520,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPrint_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} var fernTestValuePrint bool // Act @@ -171520,7 +211551,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} var fernTestValueNoZoom bool // Act @@ -171551,7 +211582,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} var fernTestValueNoRotate bool // Act @@ -171582,7 +211613,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} var fernTestValueNoView bool // Act @@ -171613,7 +211644,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} var fernTestValueReadOnly bool // Act @@ -171644,7 +211675,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetLocked_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} var fernTestValueLocked bool // Act @@ -171675,7 +211706,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} var fernTestValueToggleNoView bool // Act @@ -171706,7 +211737,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} var fernTestValueLockedContents bool // Act @@ -171736,11 +211767,11 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo{} var expected string obj.Kind = expected @@ -171750,7 +211781,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -171763,8 +211794,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -171774,7 +211805,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo{} obj.ObjectNumber = nil // Act & Assert @@ -171783,7 +211814,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -171796,8 +211827,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm obj.Nm = expected // Act & Assert @@ -171807,7 +211838,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo{} obj.Nm = nil // Act & Assert @@ -171816,7 +211847,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -171829,8 +211860,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex obj.Index = expected // Act & Assert @@ -171840,7 +211871,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo{} obj.Index = nil // Act & Assert @@ -171849,7 +211880,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -171861,9 +211892,9 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -171871,7 +211902,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -171879,8 +211910,8 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -171888,11 +211919,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex{} var expected int obj.PageObjectNumber = expected @@ -171902,7 +211933,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -171915,7 +211946,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex{} var expected int obj.Index = expected @@ -171925,7 +211956,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -171938,8 +211969,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision obj.Revision = expected // Act & Assert @@ -171949,7 +211980,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex{} obj.Revision = nil // Act & Assert @@ -171958,7 +211989,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -171970,11 +212001,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex{} var fernTestValuePageObjectNumber int // Act @@ -172005,7 +212036,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex{} var fernTestValueIndex int // Act @@ -172036,8 +212067,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -172066,9 +212097,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -172076,7 +212107,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -172084,7 +212115,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -172093,11 +212124,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision{} var expected string obj.DocSessionID = expected @@ -172107,7 +212138,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -172120,7 +212151,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -172130,7 +212161,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -172143,7 +212174,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision{} var expected int obj.Generation = expected @@ -172153,7 +212184,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -172165,11 +212196,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision{} var fernTestValueDocSessionID string // Act @@ -172200,7 +212231,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -172231,7 +212262,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision{} var fernTestValueGeneration int // Act @@ -172261,9 +212292,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -172271,7 +212302,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm{} var fernTestValueNm string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -172280,11 +212311,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm{} var expected int obj.PageObjectNumber = expected @@ -172294,7 +212325,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -172307,7 +212338,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm{} var expected string obj.Nm = expected @@ -172317,7 +212348,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -172329,11 +212360,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm{} var fernTestValuePageObjectNumber int // Act @@ -172364,7 +212395,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm{} var fernTestValueNm string // Act @@ -172394,9 +212425,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -172404,7 +212435,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn }) t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber{} var fernTestValueAnnotObjectNumber int obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) @@ -172413,11 +212444,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber{} var expected int obj.PageObjectNumber = expected @@ -172427,7 +212458,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -172440,7 +212471,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber{} var expected int obj.AnnotObjectNumber = expected @@ -172450,7 +212481,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -172462,11 +212493,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareIn } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber{} var fernTestValuePageObjectNumber int // Act @@ -172497,7 +212528,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber{} var fernTestValueAnnotObjectNumber int // Act @@ -172527,114 +212558,185 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor(t *testing.T) { - t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor{} - var fernTestValueR int - obj.SetR(fernTestValueR) - assert.Equal(t, fernTestValueR, obj.R) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem(t *testing.T) { + t.Run("SetP1", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem{} + var fernTestValueP1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1 + obj.SetP1(fernTestValueP1) + assert.Equal(t, fernTestValueP1, obj.P1) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor{} - var fernTestValueG int - obj.SetG(fernTestValueG) - assert.Equal(t, fernTestValueG, obj.G) + t.Run("SetP2", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem{} + var fernTestValueP2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2 + obj.SetP2(fernTestValueP2) + assert.Equal(t, fernTestValueP2, obj.P2) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor{} - var fernTestValueB int - obj.SetB(fernTestValueB) - assert.Equal(t, fernTestValueB, obj.B) + t.Run("SetP3", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem{} + var fernTestValueP3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3 + obj.SetP3(fernTestValueP3) + assert.Equal(t, fernTestValueP3, obj.P3) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetP4", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem{} + var fernTestValueP4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4 + obj.SetP4(fernTestValueP4) + assert.Equal(t, fernTestValueP4, obj.P4) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor(t *testing.T) { - t.Run("GetR", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem(t *testing.T) { + t.Run("GetP1", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor{} - var expected int - obj.R = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1 + obj.P1 = expected // Act & Assert - assert.Equal(t, expected, obj.GetR(), "getter should return the property value") + assert.Equal(t, expected, obj.GetP1(), "getter should return the property value") }) - t.Run("GetR_NilReceiver", func(t *testing.T) { + t.Run("GetP1_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem{} + obj.P1 = nil + + // Act & Assert + assert.Nil(t, obj.GetP1(), "getter should return nil when property is nil") + }) + + t.Run("GetP1_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetR() // Should return zero value + _ = obj.GetP1() // Should return zero value }) - t.Run("GetG", func(t *testing.T) { + t.Run("GetP2", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor{} - var expected int - obj.G = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2 + obj.P2 = expected // Act & Assert - assert.Equal(t, expected, obj.GetG(), "getter should return the property value") + assert.Equal(t, expected, obj.GetP2(), "getter should return the property value") }) - t.Run("GetG_NilReceiver", func(t *testing.T) { + t.Run("GetP2_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem{} + obj.P2 = nil + + // Act & Assert + assert.Nil(t, obj.GetP2(), "getter should return nil when property is nil") + }) + + t.Run("GetP2_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetG() // Should return zero value + _ = obj.GetP2() // Should return zero value }) - t.Run("GetB", func(t *testing.T) { + t.Run("GetP3", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor{} - var expected int - obj.B = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3 + obj.P3 = expected // Act & Assert - assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + assert.Equal(t, expected, obj.GetP3(), "getter should return the property value") }) - t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Run("GetP3_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem{} + obj.P3 = nil + + // Act & Assert + assert.Nil(t, obj.GetP3(), "getter should return nil when property is nil") + }) + + t.Run("GetP3_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetB() // Should return zero value + _ = obj.GetP3() // Should return zero value + }) + + t.Run("GetP4", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4 + obj.P4 = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetP4(), "getter should return the property value") + }) + + t.Run("GetP4_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem{} + obj.P4 = nil + + // Act & Assert + assert.Nil(t, obj.GetP4(), "getter should return nil when property is nil") + }) + + t.Run("GetP4_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetP4() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor(t *testing.T) { - t.Run("SetR_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem(t *testing.T) { + t.Run("SetP1_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor{} - var fernTestValueR int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem{} + var fernTestValueP1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1 // Act - obj.SetR(fernTestValueR) + obj.SetP1(fernTestValueP1) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -172658,14 +212760,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Run("SetP2_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor{} - var fernTestValueG int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem{} + var fernTestValueP2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2 // Act - obj.SetG(fernTestValueG) + obj.SetP2(fernTestValueP2) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -172689,14 +212791,45 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Run("SetP3_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareInteriorColor{} - var fernTestValueB int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem{} + var fernTestValueP3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3 // Act - obj.SetB(fernTestValueB) + obj.SetP3(fernTestValueP3) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetP4_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem{} + var fernTestValueP4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4 + + // Act + obj.SetP4(fernTestValueP4) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -172722,145 +212855,349 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect(t *testing.T) { - t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect{} - var fernTestValueLeft float64 - obj.SetLeft(fernTestValueLeft) - assert.Equal(t, fernTestValueLeft, obj.Left) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect{} - var fernTestValueBottom float64 - obj.SetBottom(fernTestValueBottom) - assert.Equal(t, fernTestValueBottom, obj.Bottom) + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect{} - var fernTestValueRight float64 - obj.SetRight(fernTestValueRight) - assert.Equal(t, fernTestValueRight, obj.Right) +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1(t *testing.T) { + t.Run("GetX", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1{} + var expected float64 + obj.X = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1{} + var expected float64 + obj.Y = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + }) + + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1{} + var fernTestValueX float64 + + // Act + obj.SetX(fernTestValueX) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1{} + var fernTestValueY float64 + + // Act + obj.SetY(fernTestValueY) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect{} - var fernTestValueTop float64 - obj.SetTop(fernTestValueTop) - assert.Equal(t, fernTestValueTop, obj.Top) + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect(t *testing.T) { - t.Run("GetLeft", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2{} var expected float64 - obj.Left = expected + obj.X = expected // Act & Assert - assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") }) - t.Run("GetLeft_NilReceiver", func(t *testing.T) { + t.Run("GetX_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLeft() // Should return zero value + _ = obj.GetX() // Should return zero value }) - t.Run("GetBottom", func(t *testing.T) { + t.Run("GetY", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2{} var expected float64 - obj.Bottom = expected + obj.Y = expected // Act & Assert - assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") }) - t.Run("GetBottom_NilReceiver", func(t *testing.T) { + t.Run("GetY_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBottom() // Should return zero value + _ = obj.GetY() // Should return zero value }) - t.Run("GetRight", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2{} + var fernTestValueX float64 + + // Act + obj.SetX(fernTestValueX) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2{} + var fernTestValueY float64 + + // Act + obj.SetY(fernTestValueY) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3(t *testing.T) { + t.Run("GetX", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3{} var expected float64 - obj.Right = expected + obj.X = expected // Act & Assert - assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") }) - t.Run("GetRight_NilReceiver", func(t *testing.T) { + t.Run("GetX_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRight() // Should return zero value + _ = obj.GetX() // Should return zero value }) - t.Run("GetTop", func(t *testing.T) { + t.Run("GetY", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3{} var expected float64 - obj.Top = expected + obj.Y = expected // Act & Assert - assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") }) - t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Run("GetY_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTop() // Should return zero value + _ = obj.GetY() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect(t *testing.T) { - t.Run("SetLeft_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect{} - var fernTestValueLeft float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3{} + var fernTestValueX float64 // Act - obj.SetLeft(fernTestValueLeft) + obj.SetX(fernTestValueX) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -172884,14 +213221,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect{} - var fernTestValueBottom float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3{} + var fernTestValueY float64 // Act - obj.SetBottom(fernTestValueBottom) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -172915,14 +213252,85 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRight_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect{} - var fernTestValueRight float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4{} + var expected float64 + obj.X = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4{} + var expected float64 + obj.Y = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + }) + + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4{} + var fernTestValueX float64 // Act - obj.SetRight(fernTestValueRight) + obj.SetX(fernTestValueX) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -172946,14 +213354,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRect{} - var fernTestValueTop float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4{} + var fernTestValueY float64 // Act - obj.SetTop(fernTestValueTop) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -172979,46 +213387,46 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect(t *testing.T) { t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} var fernTestValueLeft float64 obj.SetLeft(fernTestValueLeft) assert.Equal(t, fernTestValueLeft, obj.Left) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} - var fernTestValueTop float64 - obj.SetTop(fernTestValueTop) - assert.Equal(t, fernTestValueTop, obj.Top) + t.Run("SetBottom", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} + var fernTestValueBottom float64 + obj.SetBottom(fernTestValueBottom) + assert.Equal(t, fernTestValueBottom, obj.Bottom) assert.NotNil(t, obj.explicitFields) }) t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} var fernTestValueRight float64 obj.SetRight(fernTestValueRight) assert.Equal(t, fernTestValueRight, obj.Right) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} - var fernTestValueBottom float64 - obj.SetBottom(fernTestValueBottom) - assert.Equal(t, fernTestValueBottom, obj.Bottom) + t.Run("SetTop", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect(t *testing.T) { t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} var expected float64 obj.Left = expected @@ -173028,7 +213436,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -173038,33 +213446,33 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe _ = obj.GetLeft() // Should return zero value }) - t.Run("GetTop", func(t *testing.T) { + t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} var expected float64 - obj.Top = expected + obj.Bottom = expected // Act & Assert - assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") }) - t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTop() // Should return zero value + _ = obj.GetBottom() // Should return zero value }) t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} var expected float64 obj.Right = expected @@ -173074,7 +213482,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -173084,36 +213492,36 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe _ = obj.GetRight() // Should return zero value }) - t.Run("GetBottom", func(t *testing.T) { + t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} var expected float64 - obj.Bottom = expected + obj.Top = expected // Act & Assert - assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") }) - t.Run("GetBottom_NilReceiver", func(t *testing.T) { + t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBottom() // Should return zero value + _ = obj.GetTop() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect(t *testing.T) { t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} var fernTestValueLeft float64 // Act @@ -173141,14 +213549,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} - var fernTestValueTop float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} + var fernTestValueBottom float64 // Act - obj.SetTop(fernTestValueTop) + obj.SetBottom(fernTestValueBottom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -173175,7 +213583,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} var fernTestValueRight float64 // Act @@ -173203,14 +213611,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Run("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRectDifferences{} - var fernTestValueBottom float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} + var fernTestValueTop float64 // Act - obj.SetBottom(fernTestValueBottom) + obj.SetTop(fernTestValueTop) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -173236,11 +213644,11 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef{} var expected string obj.Kind = expected @@ -173250,7 +213658,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -173263,8 +213671,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -173274,7 +213682,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef{} obj.ObjectNumber = nil // Act & Assert @@ -173283,7 +213691,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -173296,8 +213704,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm obj.Nm = expected // Act & Assert @@ -173307,7 +213715,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef{} obj.Nm = nil // Act & Assert @@ -173316,7 +213724,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -173329,8 +213737,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex obj.Index = expected // Act & Assert @@ -173340,7 +213748,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef{} obj.Index = nil // Act & Assert @@ -173349,7 +213757,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -173361,9 +213769,9 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -173371,7 +213779,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -173379,8 +213787,8 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -173388,11 +213796,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex{} var expected int obj.PageObjectNumber = expected @@ -173402,7 +213810,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -173415,7 +213823,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex{} var expected int obj.Index = expected @@ -173425,7 +213833,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -173438,8 +213846,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision obj.Revision = expected // Act & Assert @@ -173449,7 +213857,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex{} obj.Revision = nil // Act & Assert @@ -173458,7 +213866,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -173470,11 +213878,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex{} var fernTestValuePageObjectNumber int // Act @@ -173505,7 +213913,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex{} var fernTestValueIndex int // Act @@ -173536,8 +213944,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -173566,9 +213974,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -173576,7 +213984,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -173584,7 +213992,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -173593,11 +214001,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision{} var expected string obj.DocSessionID = expected @@ -173607,7 +214015,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -173620,7 +214028,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -173630,7 +214038,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -173643,7 +214051,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision{} var expected int obj.Generation = expected @@ -173653,7 +214061,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -173665,11 +214073,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision{} var fernTestValueDocSessionID string // Act @@ -173700,7 +214108,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -173731,7 +214139,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision{} var fernTestValueGeneration int // Act @@ -173761,9 +214169,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -173771,7 +214179,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm{} var fernTestValueNm string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -173780,11 +214188,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm{} var expected int obj.PageObjectNumber = expected @@ -173794,7 +214202,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -173807,7 +214215,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm{} var expected string obj.Nm = expected @@ -173817,7 +214225,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -173829,11 +214237,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm{} var fernTestValuePageObjectNumber int // Act @@ -173864,7 +214272,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm{} var fernTestValueNm string // Act @@ -173894,9 +214302,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -173904,7 +214312,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe }) t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber{} var fernTestValueAnnotObjectNumber int obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) @@ -173913,11 +214321,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber{} var expected int obj.PageObjectNumber = expected @@ -173927,7 +214335,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -173940,7 +214348,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber{} var expected int obj.AnnotObjectNumber = expected @@ -173950,7 +214358,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -173962,11 +214370,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRe } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber{} var fernTestValuePageObjectNumber int // Act @@ -173997,7 +214405,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber{} var fernTestValueAnnotObjectNumber int // Act @@ -174027,274 +214435,17 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect(t *testing.T) { - t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect{} - var fernTestValueLeft float64 - obj.SetLeft(fernTestValueLeft) - assert.Equal(t, fernTestValueLeft, obj.Left) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect{} - var fernTestValueBottom float64 - obj.SetBottom(fernTestValueBottom) - assert.Equal(t, fernTestValueBottom, obj.Bottom) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect{} - var fernTestValueRight float64 - obj.SetRight(fernTestValueRight) - assert.Equal(t, fernTestValueRight, obj.Right) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect{} - var fernTestValueTop float64 - obj.SetTop(fernTestValueTop) - assert.Equal(t, fernTestValueTop, obj.Top) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect(t *testing.T) { - t.Run("GetLeft", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect{} - var expected float64 - obj.Left = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") - }) - - t.Run("GetLeft_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetLeft() // Should return zero value - }) - - t.Run("GetBottom", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect{} - var expected float64 - obj.Bottom = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") - }) - - t.Run("GetBottom_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetBottom() // Should return zero value - }) - - t.Run("GetRight", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect{} - var expected float64 - obj.Right = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") - }) - - t.Run("GetRight_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRight() // Should return zero value - }) - - t.Run("GetTop", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect{} - var expected float64 - obj.Top = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") - }) - - t.Run("GetTop_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetTop() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect(t *testing.T) { - t.Run("SetLeft_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect{} - var fernTestValueLeft float64 - - // Act - obj.SetLeft(fernTestValueLeft) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetBottom_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect{} - var fernTestValueBottom float64 - - // Act - obj.SetBottom(fernTestValueBottom) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetRight_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect{} - var fernTestValueRight float64 - - // Act - obj.SetRight(fernTestValueRight) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetTop_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquareUnrotatedRect{} - var fernTestValueTop float64 - - // Act - obj.SetTop(fernTestValueTop) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t *testing.T) { t.Run("SetRef", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef obj.SetRef(fernTestValueRef) assert.Equal(t, fernTestValueRef, obj.Ref) assert.NotNil(t, obj.explicitFields) }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -174302,7 +214453,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -174310,15 +214461,15 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly }) t.Run("SetIdentityQuality", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality obj.SetIdentityQuality(fernTestValueIdentityQuality) assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) assert.NotNil(t, obj.explicitFields) }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} var fernTestValueNm *string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -174326,23 +214477,23 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly }) t.Run("SetFlags", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags obj.SetFlags(fernTestValueFlags) assert.Equal(t, fernTestValueFlags, obj.Flags) assert.NotNil(t, obj.explicitFields) }) t.Run("SetRect", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect obj.SetRect(fernTestValueRect) assert.Equal(t, fernTestValueRect, obj.Rect) assert.NotNil(t, obj.explicitFields) }) t.Run("SetContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} var fernTestValueContents *string obj.SetContents(fernTestValueContents) assert.Equal(t, fernTestValueContents, obj.Contents) @@ -174350,7 +214501,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly }) t.Run("SetSubject", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} var fernTestValueSubject *string obj.SetSubject(fernTestValueSubject) assert.Equal(t, fernTestValueSubject, obj.Subject) @@ -174358,7 +214509,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly }) t.Run("SetAuthor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} var fernTestValueAuthor *string obj.SetAuthor(fernTestValueAuthor) assert.Equal(t, fernTestValueAuthor, obj.Author) @@ -174366,7 +214517,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly }) t.Run("SetCreated", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} var fernTestValueCreated *time.Time obj.SetCreated(fernTestValueCreated) assert.Equal(t, fernTestValueCreated, obj.Created) @@ -174374,7 +214525,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly }) t.Run("SetModified", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} var fernTestValueModified *time.Time obj.SetModified(fernTestValueModified) assert.Equal(t, fernTestValueModified, obj.Modified) @@ -174382,31 +214533,31 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly }) t.Run("SetBlendMode", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode obj.SetBlendMode(fernTestValueBlendMode) assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) assert.NotNil(t, obj.explicitFields) }) t.Run("SetInReplyTo", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo obj.SetInReplyTo(fernTestValueInReplyTo) assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) assert.NotNil(t, obj.explicitFields) }) t.Run("SetReplyType", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyType obj.SetReplyType(fernTestValueReplyType) assert.Equal(t, fernTestValueReplyType, obj.ReplyType) assert.NotNil(t, obj.explicitFields) }) t.Run("SetUserID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} var fernTestValueUserID *string obj.SetUserID(fernTestValueUserID) assert.Equal(t, fernTestValueUserID, obj.UserID) @@ -174414,7 +214565,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly }) t.Run("SetGroupID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} var fernTestValueGroupID *string obj.SetGroupID(fernTestValueGroupID) assert.Equal(t, fernTestValueGroupID, obj.GroupID) @@ -174422,7 +214573,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly }) t.Run("SetCreatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} var fernTestValueCreatedBy *string obj.SetCreatedBy(fernTestValueCreatedBy) assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) @@ -174430,7 +214581,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly }) t.Run("SetUpdatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} var fernTestValueUpdatedBy *string obj.SetUpdatedBy(fernTestValueUpdatedBy) assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) @@ -174438,45 +214589,45 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly }) t.Run("SetActions", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} var fernTestValueActions *PdfAnnotationActions obj.SetActions(fernTestValueActions) assert.Equal(t, fernTestValueActions, obj.Actions) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetColor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor - obj.SetColor(fernTestValueColor) - assert.Equal(t, fernTestValueColor, obj.Color) + t.Run("SetName", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueName *string + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOpacity", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var fernTestValueOpacity float64 - obj.SetOpacity(fernTestValueOpacity) - assert.Equal(t, fernTestValueOpacity, obj.Opacity) + t.Run("SetRotation", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueRotation *float64 + obj.SetRotation(fernTestValueRotation) + assert.Equal(t, fernTestValueRotation, obj.Rotation) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetQuadPoints", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var fernTestValueQuadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem - obj.SetQuadPoints(fernTestValueQuadPoints) - assert.Equal(t, fernTestValueQuadPoints, obj.QuadPoints) + t.Run("SetUnrotatedRect", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueUnrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect + obj.SetUnrotatedRect(fernTestValueUnrotatedRect) + assert.Equal(t, fernTestValueUnrotatedRect, obj.UnrotatedRect) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t *testing.T) { t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef obj.Ref = expected // Act & Assert @@ -174486,7 +214637,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetRef_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} obj.Ref = nil // Act & Assert @@ -174495,7 +214646,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetRef_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -174508,7 +214659,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} var expected int obj.PageObjectNumber = expected @@ -174518,7 +214669,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -174531,7 +214682,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} var expected int obj.Index = expected @@ -174541,7 +214692,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -174554,8 +214705,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetIdentityQuality", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality obj.IdentityQuality = expected // Act & Assert @@ -174564,7 +214715,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -174577,7 +214728,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} var expected *string obj.Nm = expected @@ -174588,7 +214739,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} obj.Nm = nil // Act & Assert @@ -174597,7 +214748,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -174610,8 +214761,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags obj.Flags = expected // Act & Assert @@ -174621,7 +214772,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} obj.Flags = nil // Act & Assert @@ -174630,7 +214781,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -174643,8 +214794,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetRect", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect obj.Rect = expected // Act & Assert @@ -174654,7 +214805,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetRect_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} obj.Rect = nil // Act & Assert @@ -174663,7 +214814,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetRect_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -174676,7 +214827,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} var expected *string obj.Contents = expected @@ -174687,7 +214838,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetContents_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} obj.Contents = nil // Act & Assert @@ -174696,7 +214847,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -174709,7 +214860,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetSubject", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} var expected *string obj.Subject = expected @@ -174720,7 +214871,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetSubject_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} obj.Subject = nil // Act & Assert @@ -174729,7 +214880,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetSubject_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -174742,7 +214893,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetAuthor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} var expected *string obj.Author = expected @@ -174753,7 +214904,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetAuthor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} obj.Author = nil // Act & Assert @@ -174762,7 +214913,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetAuthor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -174775,7 +214926,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetCreated", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} var expected *time.Time obj.Created = expected @@ -174786,7 +214937,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetCreated_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} obj.Created = nil // Act & Assert @@ -174795,7 +214946,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetCreated_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -174808,7 +214959,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetModified", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} var expected *time.Time obj.Modified = expected @@ -174819,7 +214970,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetModified_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} obj.Modified = nil // Act & Assert @@ -174828,7 +214979,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetModified_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -174841,8 +214992,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetBlendMode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode obj.BlendMode = expected // Act & Assert @@ -174851,7 +215002,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -174864,8 +215015,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetInReplyTo", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo obj.InReplyTo = expected // Act & Assert @@ -174875,7 +215026,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetInReplyTo_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} obj.InReplyTo = nil // Act & Assert @@ -174884,7 +215035,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -174897,8 +215048,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetReplyType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyType obj.ReplyType = expected // Act & Assert @@ -174908,7 +215059,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetReplyType_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} obj.ReplyType = nil // Act & Assert @@ -174917,7 +215068,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetReplyType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -174930,7 +215081,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetUserID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} var expected *string obj.UserID = expected @@ -174941,7 +215092,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetUserID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} obj.UserID = nil // Act & Assert @@ -174950,7 +215101,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetUserID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -174963,7 +215114,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetGroupID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} var expected *string obj.GroupID = expected @@ -174974,7 +215125,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetGroupID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} obj.GroupID = nil // Act & Assert @@ -174983,7 +215134,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetGroupID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -174996,7 +215147,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetCreatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} var expected *string obj.CreatedBy = expected @@ -175007,7 +215158,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetCreatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} obj.CreatedBy = nil // Act & Assert @@ -175016,7 +215167,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -175029,7 +215180,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetUpdatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} var expected *string obj.UpdatedBy = expected @@ -175040,7 +215191,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} obj.UpdatedBy = nil // Act & Assert @@ -175049,7 +215200,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -175062,7 +215213,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetActions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} var expected *PdfAnnotationActions obj.Actions = expected @@ -175073,7 +215224,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetActions_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} obj.Actions = nil // Act & Assert @@ -175082,7 +215233,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetActions_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -175092,103 +215243,113 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly _ = obj.GetActions() // Should return zero value }) - t.Run("GetColor", func(t *testing.T) { + t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor - obj.Color = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var expected *string + obj.Name = expected // Act & Assert - assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") }) - t.Run("GetColor_NilValue", func(t *testing.T) { + t.Run("GetName_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - obj.Color = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj.Name = nil // Act & Assert - assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetName(), "getter should return nil when property is nil") }) - t.Run("GetColor_NilReceiver", func(t *testing.T) { + t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetColor() // Should return zero value + _ = obj.GetName() // Should return zero value }) - t.Run("GetOpacity", func(t *testing.T) { + t.Run("GetRotation", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var expected float64 - obj.Opacity = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var expected *float64 + obj.Rotation = expected // Act & Assert - assert.Equal(t, expected, obj.GetOpacity(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRotation(), "getter should return the property value") }) - t.Run("GetOpacity_NilReceiver", func(t *testing.T) { + t.Run("GetRotation_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj.Rotation = nil + + // Act & Assert + assert.Nil(t, obj.GetRotation(), "getter should return nil when property is nil") + }) + + t.Run("GetRotation_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOpacity() // Should return zero value + _ = obj.GetRotation() // Should return zero value }) - t.Run("GetQuadPoints", func(t *testing.T) { + t.Run("GetUnrotatedRect", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem - obj.QuadPoints = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect + obj.UnrotatedRect = expected // Act & Assert - assert.Equal(t, expected, obj.GetQuadPoints(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnrotatedRect(), "getter should return the property value") }) - t.Run("GetQuadPoints_NilValue", func(t *testing.T) { + t.Run("GetUnrotatedRect_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - obj.QuadPoints = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj.UnrotatedRect = nil // Act & Assert - assert.Nil(t, obj.GetQuadPoints(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetUnrotatedRect(), "getter should return nil when property is nil") }) - t.Run("GetQuadPoints_NilReceiver", func(t *testing.T) { + t.Run("GetUnrotatedRect_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetQuadPoints() // Should return zero value + _ = obj.GetUnrotatedRect() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t *testing.T) { t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef // Act obj.SetRef(fernTestValueRef) @@ -175215,262 +215376,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var fernTestValuePageObjectNumber int - - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var fernTestValueIndex int - - // Act - obj.SetIndex(fernTestValueIndex) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyIdentityQuality - - // Act - obj.SetIdentityQuality(fernTestValueIdentityQuality) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetNm_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var fernTestValueNm *string - - // Act - obj.SetNm(fernTestValueNm) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetFlags_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags - - // Act - obj.SetFlags(fernTestValueFlags) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetRect_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect - - // Act - obj.SetRect(fernTestValueRect) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetContents_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var fernTestValueContents *string - - // Act - obj.SetContents(fernTestValueContents) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetSubject_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var fernTestValueSubject *string - - // Act - obj.SetSubject(fernTestValueSubject) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var fernTestValueAuthor *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValuePageObjectNumber int // Act - obj.SetAuthor(fernTestValueAuthor) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -175494,14 +215407,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreated_MarksExplicit", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var fernTestValueCreated *time.Time + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueIndex int // Act - obj.SetCreated(fernTestValueCreated) + obj.SetIndex(fernTestValueIndex) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -175525,14 +215438,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetModified_MarksExplicit", func(t *testing.T) { + t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var fernTestValueModified *time.Time + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality // Act - obj.SetModified(fernTestValueModified) + obj.SetIdentityQuality(fernTestValueIdentityQuality) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -175556,14 +215469,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueNm *string // Act - obj.SetBlendMode(fernTestValueBlendMode) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -175587,14 +215500,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { + t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags // Act - obj.SetInReplyTo(fernTestValueInReplyTo) + obj.SetFlags(fernTestValueFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -175618,14 +215531,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { + t.Run("SetRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect // Act - obj.SetReplyType(fernTestValueReplyType) + obj.SetRect(fernTestValueRect) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -175649,14 +215562,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUserID_MarksExplicit", func(t *testing.T) { + t.Run("SetContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var fernTestValueUserID *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueContents *string // Act - obj.SetUserID(fernTestValueUserID) + obj.SetContents(fernTestValueContents) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -175680,14 +215593,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { + t.Run("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var fernTestValueGroupID *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueSubject *string // Act - obj.SetGroupID(fernTestValueGroupID) + obj.SetSubject(fernTestValueSubject) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -175711,14 +215624,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var fernTestValueCreatedBy *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueAuthor *string // Act - obj.SetCreatedBy(fernTestValueCreatedBy) + obj.SetAuthor(fernTestValueAuthor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -175742,14 +215655,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var fernTestValueUpdatedBy *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueCreated *time.Time // Act - obj.SetUpdatedBy(fernTestValueUpdatedBy) + obj.SetCreated(fernTestValueCreated) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -175773,14 +215686,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Run("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var fernTestValueActions *PdfAnnotationActions + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueModified *time.Time // Act - obj.SetActions(fernTestValueActions) + obj.SetModified(fernTestValueModified) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -175804,14 +215717,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetColor_MarksExplicit", func(t *testing.T) { + t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode // Act - obj.SetColor(fernTestValueColor) + obj.SetBlendMode(fernTestValueBlendMode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -175835,14 +215748,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { + t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var fernTestValueOpacity float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo // Act - obj.SetOpacity(fernTestValueOpacity) + obj.SetInReplyTo(fernTestValueInReplyTo) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -175866,14 +215779,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetQuadPoints_MarksExplicit", func(t *testing.T) { + t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly{} - var fernTestValueQuadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyType // Act - obj.SetQuadPoints(fernTestValueQuadPoints) + obj.SetReplyType(fernTestValueReplyType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -175897,116 +215810,169 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} + t.Run("SetUserID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueUserID *string -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor(t *testing.T) { - t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor{} - var fernTestValueR int - obj.SetR(fernTestValueR) - assert.Equal(t, fernTestValueR, obj.R) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetUserID(fernTestValueUserID) - t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor{} - var fernTestValueG int - obj.SetG(fernTestValueG) - assert.Equal(t, fernTestValueG, obj.G) - assert.NotNil(t, obj.explicitFields) - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor{} - var fernTestValueB int - obj.SetB(fernTestValueB) - assert.Equal(t, fernTestValueB, obj.B) - assert.NotNil(t, obj.explicitFields) - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } -} + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor(t *testing.T) { - t.Run("GetR", func(t *testing.T) { + t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor{} - var expected int - obj.R = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueGroupID *string - // Act & Assert - assert.Equal(t, expected, obj.GetR(), "getter should return the property value") + // Act + obj.SetGroupID(fernTestValueGroupID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetR_NilReceiver", func(t *testing.T) { + t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetR() // Should return zero value + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueCreatedBy *string + + // Act + obj.SetCreatedBy(fernTestValueCreatedBy) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetG", func(t *testing.T) { + t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor{} - var expected int - obj.G = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueUpdatedBy *string - // Act & Assert - assert.Equal(t, expected, obj.GetG(), "getter should return the property value") - }) + // Act + obj.SetUpdatedBy(fernTestValueUpdatedBy) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetG_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetG() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetB", func(t *testing.T) { + t.Run("SetActions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor{} - var expected int - obj.B = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueActions *PdfAnnotationActions - // Act & Assert - assert.Equal(t, expected, obj.GetB(), "getter should return the property value") - }) + // Act + obj.SetActions(fernTestValueActions) - t.Run("GetB_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetB() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") -} + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor(t *testing.T) { - t.Run("SetR_MarksExplicit", func(t *testing.T) { + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor{} - var fernTestValueR int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueName *string // Act - obj.SetR(fernTestValueR) + obj.SetName(fernTestValueName) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -176030,14 +215996,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Run("SetRotation_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor{} - var fernTestValueG int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueRotation *float64 // Act - obj.SetG(fernTestValueG) + obj.SetRotation(fernTestValueRotation) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -176061,14 +216027,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Run("SetUnrotatedRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyColor{} - var fernTestValueB int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + var fernTestValueUnrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect // Act - obj.SetB(fernTestValueB) + obj.SetUnrotatedRect(fernTestValueUnrotatedRect) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -176094,9 +216060,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags(t *testing.T) { t.Run("SetInvisible", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} var fernTestValueInvisible bool obj.SetInvisible(fernTestValueInvisible) assert.Equal(t, fernTestValueInvisible, obj.Invisible) @@ -176104,7 +216070,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly }) t.Run("SetHidden", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} var fernTestValueHidden bool obj.SetHidden(fernTestValueHidden) assert.Equal(t, fernTestValueHidden, obj.Hidden) @@ -176112,7 +216078,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly }) t.Run("SetPrint", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} var fernTestValuePrint bool obj.SetPrint(fernTestValuePrint) assert.Equal(t, fernTestValuePrint, obj.Print) @@ -176120,7 +216086,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly }) t.Run("SetNoZoom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} var fernTestValueNoZoom bool obj.SetNoZoom(fernTestValueNoZoom) assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) @@ -176128,7 +216094,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly }) t.Run("SetNoRotate", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} var fernTestValueNoRotate bool obj.SetNoRotate(fernTestValueNoRotate) assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) @@ -176136,7 +216102,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly }) t.Run("SetNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} var fernTestValueNoView bool obj.SetNoView(fernTestValueNoView) assert.Equal(t, fernTestValueNoView, obj.NoView) @@ -176144,7 +216110,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly }) t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} var fernTestValueReadOnly bool obj.SetReadOnly(fernTestValueReadOnly) assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) @@ -176152,7 +216118,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly }) t.Run("SetLocked", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} var fernTestValueLocked bool obj.SetLocked(fernTestValueLocked) assert.Equal(t, fernTestValueLocked, obj.Locked) @@ -176160,7 +216126,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly }) t.Run("SetToggleNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} var fernTestValueToggleNoView bool obj.SetToggleNoView(fernTestValueToggleNoView) assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) @@ -176168,7 +216134,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly }) t.Run("SetLockedContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} var fernTestValueLockedContents bool obj.SetLockedContents(fernTestValueLockedContents) assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) @@ -176177,11 +216143,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags(t *testing.T) { t.Run("GetInvisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} var expected bool obj.Invisible = expected @@ -176191,7 +216157,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetInvisible_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -176204,7 +216170,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetHidden", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} var expected bool obj.Hidden = expected @@ -176214,7 +216180,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetHidden_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -176227,7 +216193,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetPrint", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} var expected bool obj.Print = expected @@ -176237,7 +216203,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetPrint_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -176250,7 +216216,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetNoZoom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} var expected bool obj.NoZoom = expected @@ -176260,7 +216226,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -176273,7 +216239,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetNoRotate", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} var expected bool obj.NoRotate = expected @@ -176283,7 +216249,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -176296,7 +216262,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} var expected bool obj.NoView = expected @@ -176306,7 +216272,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -176319,7 +216285,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetReadOnly", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} var expected bool obj.ReadOnly = expected @@ -176329,7 +216295,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -176342,7 +216308,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetLocked", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} var expected bool obj.Locked = expected @@ -176352,7 +216318,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetLocked_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -176365,7 +216331,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetToggleNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} var expected bool obj.ToggleNoView = expected @@ -176375,7 +216341,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -176388,7 +216354,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetLockedContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} var expected bool obj.LockedContents = expected @@ -176398,7 +216364,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -176410,11 +216376,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags(t *testing.T) { t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} var fernTestValueInvisible bool // Act @@ -176445,7 +216411,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetHidden_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} var fernTestValueHidden bool // Act @@ -176476,7 +216442,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPrint_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} var fernTestValuePrint bool // Act @@ -176507,7 +216473,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} var fernTestValueNoZoom bool // Act @@ -176538,7 +216504,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} var fernTestValueNoRotate bool // Act @@ -176569,7 +216535,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} var fernTestValueNoView bool // Act @@ -176600,7 +216566,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} var fernTestValueReadOnly bool // Act @@ -176631,7 +216597,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetLocked_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} var fernTestValueLocked bool // Act @@ -176662,7 +216628,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} var fernTestValueToggleNoView bool // Act @@ -176693,7 +216659,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} var fernTestValueLockedContents bool // Act @@ -176723,11 +216689,11 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo{} var expected string obj.Kind = expected @@ -176737,7 +216703,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -176750,8 +216716,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -176761,7 +216727,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo{} obj.ObjectNumber = nil // Act & Assert @@ -176770,7 +216736,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -176783,8 +216749,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm obj.Nm = expected // Act & Assert @@ -176794,7 +216760,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo{} obj.Nm = nil // Act & Assert @@ -176803,7 +216769,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -176816,8 +216782,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex obj.Index = expected // Act & Assert @@ -176827,7 +216793,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo{} obj.Index = nil // Act & Assert @@ -176836,7 +216802,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -176848,9 +216814,9 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -176858,7 +216824,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -176866,8 +216832,8 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -176875,11 +216841,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex{} var expected int obj.PageObjectNumber = expected @@ -176889,7 +216855,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -176902,7 +216868,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex{} var expected int obj.Index = expected @@ -176912,7 +216878,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -176925,8 +216891,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision obj.Revision = expected // Act & Assert @@ -176936,7 +216902,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex{} obj.Revision = nil // Act & Assert @@ -176945,7 +216911,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -176957,11 +216923,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex{} var fernTestValuePageObjectNumber int // Act @@ -176992,7 +216958,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex{} var fernTestValueIndex int // Act @@ -177023,8 +216989,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -177053,9 +217019,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -177063,7 +217029,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -177071,7 +217037,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -177080,11 +217046,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision{} var expected string obj.DocSessionID = expected @@ -177094,7 +217060,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -177107,7 +217073,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -177117,7 +217083,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -177130,7 +217096,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision{} var expected int obj.Generation = expected @@ -177140,7 +217106,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -177152,11 +217118,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision{} var fernTestValueDocSessionID string // Act @@ -177184,843 +217150,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision{} - var fernTestValuePageObjectNumber int - - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToIndexRevision{} - var fernTestValueGeneration int - - // Act - obj.SetGeneration(fernTestValueGeneration) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm{} - var fernTestValueNm string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm{} - var expected string - obj.Nm = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") - }) - - t.Run("GetNm_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNm() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm{} - var fernTestValuePageObjectNumber int - - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetNm_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToNm{} - var fernTestValueNm string - - // Act - obj.SetNm(fernTestValueNm) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetAnnotObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") - }) - - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAnnotObjectNumber() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber{} - var fernTestValuePageObjectNumber int - - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int - - // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem(t *testing.T) { - t.Run("SetP1", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem{} - var fernTestValueP1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1 - obj.SetP1(fernTestValueP1) - assert.Equal(t, fernTestValueP1, obj.P1) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetP2", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem{} - var fernTestValueP2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2 - obj.SetP2(fernTestValueP2) - assert.Equal(t, fernTestValueP2, obj.P2) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetP3", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem{} - var fernTestValueP3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3 - obj.SetP3(fernTestValueP3) - assert.Equal(t, fernTestValueP3, obj.P3) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetP4", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem{} - var fernTestValueP4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4 - obj.SetP4(fernTestValueP4) - assert.Equal(t, fernTestValueP4, obj.P4) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem(t *testing.T) { - t.Run("GetP1", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1 - obj.P1 = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetP1(), "getter should return the property value") - }) - - t.Run("GetP1_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem{} - obj.P1 = nil - - // Act & Assert - assert.Nil(t, obj.GetP1(), "getter should return nil when property is nil") - }) - - t.Run("GetP1_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetP1() // Should return zero value - }) - - t.Run("GetP2", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2 - obj.P2 = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetP2(), "getter should return the property value") - }) - - t.Run("GetP2_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem{} - obj.P2 = nil - - // Act & Assert - assert.Nil(t, obj.GetP2(), "getter should return nil when property is nil") - }) - - t.Run("GetP2_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetP2() // Should return zero value - }) - - t.Run("GetP3", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3 - obj.P3 = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetP3(), "getter should return the property value") - }) - - t.Run("GetP3_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem{} - obj.P3 = nil - - // Act & Assert - assert.Nil(t, obj.GetP3(), "getter should return nil when property is nil") - }) - - t.Run("GetP3_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetP3() // Should return zero value - }) - - t.Run("GetP4", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4 - obj.P4 = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetP4(), "getter should return the property value") - }) - - t.Run("GetP4_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem{} - obj.P4 = nil - - // Act & Assert - assert.Nil(t, obj.GetP4(), "getter should return nil when property is nil") - }) - - t.Run("GetP4_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetP4() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem(t *testing.T) { - t.Run("SetP1_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem{} - var fernTestValueP1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1 - - // Act - obj.SetP1(fernTestValueP1) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetP2_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem{} - var fernTestValueP2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2 - - // Act - obj.SetP2(fernTestValueP2) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetP3_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem{} - var fernTestValueP3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3 - - // Act - obj.SetP3(fernTestValueP3) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetP4_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItem{} - var fernTestValueP4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4 - - // Act - obj.SetP4(fernTestValueP4) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1(t *testing.T) { - t.Run("GetX", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1{} - var expected float64 - obj.X = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") - }) - - t.Run("GetX_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1 - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetX() // Should return zero value - }) - - t.Run("GetY", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1{} - var expected float64 - obj.Y = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") - }) - - t.Run("GetY_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1 - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetY() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1{} - var fernTestValueX float64 - - // Act - obj.SetX(fernTestValueX) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetY_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP1{} - var fernTestValueY float64 - - // Act - obj.SetY(fernTestValueY) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2(t *testing.T) { - t.Run("GetX", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2{} - var expected float64 - obj.X = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") - }) - - t.Run("GetX_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2 - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetX() // Should return zero value - }) - - t.Run("GetY", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2{} - var expected float64 - obj.Y = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") - }) - - t.Run("GetY_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2 - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetY() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2{} - var fernTestValueX float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int // Act - obj.SetX(fernTestValueX) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -178044,14 +217181,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP2{} - var fernTestValueY float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision{} + var fernTestValueGeneration int // Act - obj.SetY(fernTestValueY) + obj.SetGeneration(fernTestValueGeneration) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -178077,83 +217214,83 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3(t *testing.T) { - t.Run("GetX", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3{} - var expected float64 - obj.X = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetX() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetY", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3{} - var expected float64 - obj.Y = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm{} + var expected string + obj.Nm = expected // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetY() // Should return zero value + _ = obj.GetNm() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3{} - var fernTestValueX float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm{} + var fernTestValuePageObjectNumber int // Act - obj.SetX(fernTestValueX) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -178177,14 +217314,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP3{} - var fernTestValueY float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm{} + var fernTestValueNm string // Act - obj.SetY(fernTestValueY) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -178210,83 +217347,83 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4(t *testing.T) { - t.Run("GetX", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4{} - var expected float64 - obj.X = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetX() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetY", func(t *testing.T) { + t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4{} - var expected float64 - obj.Y = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") }) - t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetY() // Should return zero value + _ = obj.GetAnnotObjectNumber() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4{} - var fernTestValueX float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int // Act - obj.SetX(fernTestValueX) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -178310,14 +217447,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyQuadPointsItemP4{} - var fernTestValueY float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int // Act - obj.SetY(fernTestValueY) + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -178343,9 +217480,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect(t *testing.T) { t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} var fernTestValueLeft float64 obj.SetLeft(fernTestValueLeft) assert.Equal(t, fernTestValueLeft, obj.Left) @@ -178353,7 +217490,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly }) t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} var fernTestValueBottom float64 obj.SetBottom(fernTestValueBottom) assert.Equal(t, fernTestValueBottom, obj.Bottom) @@ -178361,7 +217498,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly }) t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} var fernTestValueRight float64 obj.SetRight(fernTestValueRight) assert.Equal(t, fernTestValueRight, obj.Right) @@ -178369,7 +217506,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly }) t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} var fernTestValueTop float64 obj.SetTop(fernTestValueTop) assert.Equal(t, fernTestValueTop, obj.Top) @@ -178378,11 +217515,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect(t *testing.T) { t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} var expected float64 obj.Left = expected @@ -178392,7 +217529,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -178405,7 +217542,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} var expected float64 obj.Bottom = expected @@ -178415,7 +217552,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -178428,7 +217565,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} var expected float64 obj.Right = expected @@ -178438,7 +217575,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -178451,7 +217588,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} var expected float64 obj.Top = expected @@ -178461,7 +217598,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -178473,11 +217610,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect(t *testing.T) { t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} var fernTestValueLeft float64 // Act @@ -178508,7 +217645,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} var fernTestValueBottom float64 // Act @@ -178539,7 +217676,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} var fernTestValueRight float64 // Act @@ -178570,7 +217707,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} var fernTestValueTop float64 // Act @@ -178600,11 +217737,11 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef{} var expected string obj.Kind = expected @@ -178614,7 +217751,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -178627,8 +217764,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -178638,7 +217775,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef{} obj.ObjectNumber = nil // Act & Assert @@ -178647,7 +217784,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -178660,8 +217797,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm obj.Nm = expected // Act & Assert @@ -178671,7 +217808,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef{} obj.Nm = nil // Act & Assert @@ -178680,7 +217817,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -178693,8 +217830,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex obj.Index = expected // Act & Assert @@ -178704,7 +217841,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef{} obj.Index = nil // Act & Assert @@ -178713,7 +217850,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -178725,9 +217862,9 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -178735,7 +217872,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -178743,8 +217880,8 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -178752,11 +217889,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex{} var expected int obj.PageObjectNumber = expected @@ -178766,7 +217903,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -178779,7 +217916,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex{} var expected int obj.Index = expected @@ -178789,7 +217926,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -178802,8 +217939,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision obj.Revision = expected // Act & Assert @@ -178813,7 +217950,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex{} obj.Revision = nil // Act & Assert @@ -178822,7 +217959,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -178834,11 +217971,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex{} var fernTestValuePageObjectNumber int // Act @@ -178869,7 +218006,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex{} var fernTestValueIndex int // Act @@ -178900,8 +218037,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -178930,9 +218067,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -178940,7 +218077,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -178948,7 +218085,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -178957,11 +218094,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision{} var expected string obj.DocSessionID = expected @@ -178971,7 +218108,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -178984,7 +218121,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -178994,7 +218131,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -179007,7 +218144,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision{} var expected int obj.Generation = expected @@ -179017,7 +218154,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -179029,11 +218166,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision{} var fernTestValueDocSessionID string // Act @@ -179064,7 +218201,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -179095,7 +218232,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision{} var fernTestValueGeneration int // Act @@ -179125,9 +218262,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -179135,7 +218272,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm{} var fernTestValueNm string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -179144,11 +218281,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm{} var expected int obj.PageObjectNumber = expected @@ -179158,7 +218295,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -179171,7 +218308,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm{} var expected string obj.Nm = expected @@ -179181,7 +218318,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -179193,11 +218330,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm{} var fernTestValuePageObjectNumber int // Act @@ -179228,7 +218365,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm{} var fernTestValueNm string // Act @@ -179258,9 +218395,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -179268,7 +218405,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly }) t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber{} var fernTestValueAnnotObjectNumber int obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) @@ -179277,11 +218414,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber{} var expected int obj.PageObjectNumber = expected @@ -179291,7 +218428,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -179304,7 +218441,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber{} var expected int obj.AnnotObjectNumber = expected @@ -179314,7 +218451,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -179326,11 +218463,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquiggly } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber{} var fernTestValuePageObjectNumber int // Act @@ -179361,7 +218498,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemSquigglyRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber{} var fernTestValueAnnotObjectNumber int // Act @@ -179391,17 +218528,274 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect{} + var fernTestValueLeft float64 + obj.SetLeft(fernTestValueLeft) + assert.Equal(t, fernTestValueLeft, obj.Left) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBottom", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect{} + var fernTestValueBottom float64 + obj.SetBottom(fernTestValueBottom) + assert.Equal(t, fernTestValueBottom, obj.Bottom) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRight", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect{} + var fernTestValueRight float64 + obj.SetRight(fernTestValueRight) + assert.Equal(t, fernTestValueRight, obj.Right) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetTop", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect{} + var expected float64 + obj.Left = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") + }) + + t.Run("GetLeft_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetLeft() // Should return zero value + }) + + t.Run("GetBottom", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect{} + var expected float64 + obj.Bottom = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") + }) + + t.Run("GetBottom_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBottom() // Should return zero value + }) + + t.Run("GetRight", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect{} + var expected float64 + obj.Right = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") + }) + + t.Run("GetRight_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRight() // Should return zero value + }) + + t.Run("GetTop", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect{} + var expected float64 + obj.Top = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + }) + + t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetTop() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect{} + var fernTestValueLeft float64 + + // Act + obj.SetLeft(fernTestValueLeft) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect{} + var fernTestValueBottom float64 + + // Act + obj.SetBottom(fernTestValueBottom) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRight_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect{} + var fernTestValueRight float64 + + // Act + obj.SetRight(fernTestValueRight) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect{} + var fernTestValueTop float64 + + // Act + obj.SetTop(fernTestValueTop) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout(t *testing.T) { t.Run("SetRef", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef obj.SetRef(fernTestValueRef) assert.Equal(t, fernTestValueRef, obj.Ref) assert.NotNil(t, obj.explicitFields) }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -179409,7 +218803,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -179417,15 +218811,15 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t }) t.Run("SetIdentityQuality", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQuality obj.SetIdentityQuality(fernTestValueIdentityQuality) assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) assert.NotNil(t, obj.explicitFields) }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} var fernTestValueNm *string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -179433,23 +218827,23 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t }) t.Run("SetFlags", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags obj.SetFlags(fernTestValueFlags) assert.Equal(t, fernTestValueFlags, obj.Flags) assert.NotNil(t, obj.explicitFields) }) t.Run("SetRect", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect obj.SetRect(fernTestValueRect) assert.Equal(t, fernTestValueRect, obj.Rect) assert.NotNil(t, obj.explicitFields) }) t.Run("SetContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} var fernTestValueContents *string obj.SetContents(fernTestValueContents) assert.Equal(t, fernTestValueContents, obj.Contents) @@ -179457,7 +218851,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t }) t.Run("SetSubject", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} var fernTestValueSubject *string obj.SetSubject(fernTestValueSubject) assert.Equal(t, fernTestValueSubject, obj.Subject) @@ -179465,7 +218859,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t }) t.Run("SetAuthor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} var fernTestValueAuthor *string obj.SetAuthor(fernTestValueAuthor) assert.Equal(t, fernTestValueAuthor, obj.Author) @@ -179473,7 +218867,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t }) t.Run("SetCreated", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} var fernTestValueCreated *time.Time obj.SetCreated(fernTestValueCreated) assert.Equal(t, fernTestValueCreated, obj.Created) @@ -179481,7 +218875,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t }) t.Run("SetModified", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} var fernTestValueModified *time.Time obj.SetModified(fernTestValueModified) assert.Equal(t, fernTestValueModified, obj.Modified) @@ -179489,31 +218883,31 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t }) t.Run("SetBlendMode", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode obj.SetBlendMode(fernTestValueBlendMode) assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) assert.NotNil(t, obj.explicitFields) }) t.Run("SetInReplyTo", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo obj.SetInReplyTo(fernTestValueInReplyTo) assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) assert.NotNil(t, obj.explicitFields) }) t.Run("SetReplyType", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType obj.SetReplyType(fernTestValueReplyType) assert.Equal(t, fernTestValueReplyType, obj.ReplyType) assert.NotNil(t, obj.explicitFields) }) t.Run("SetUserID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} var fernTestValueUserID *string obj.SetUserID(fernTestValueUserID) assert.Equal(t, fernTestValueUserID, obj.UserID) @@ -179521,7 +218915,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t }) t.Run("SetGroupID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} var fernTestValueGroupID *string obj.SetGroupID(fernTestValueGroupID) assert.Equal(t, fernTestValueGroupID, obj.GroupID) @@ -179529,7 +218923,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t }) t.Run("SetCreatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} var fernTestValueCreatedBy *string obj.SetCreatedBy(fernTestValueCreatedBy) assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) @@ -179537,7 +218931,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t }) t.Run("SetUpdatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} var fernTestValueUpdatedBy *string obj.SetUpdatedBy(fernTestValueUpdatedBy) assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) @@ -179545,45 +218939,53 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t }) t.Run("SetActions", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} var fernTestValueActions *PdfAnnotationActions obj.SetActions(fernTestValueActions) assert.Equal(t, fernTestValueActions, obj.Actions) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetName", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var fernTestValueName *string - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) + t.Run("SetColor", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor + obj.SetColor(fernTestValueColor) + assert.Equal(t, fernTestValueColor, obj.Color) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRotation", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var fernTestValueRotation *float64 - obj.SetRotation(fernTestValueRotation) - assert.Equal(t, fernTestValueRotation, obj.Rotation) + t.Run("SetOpacity", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueOpacity float64 + obj.SetOpacity(fernTestValueOpacity) + assert.Equal(t, fernTestValueOpacity, obj.Opacity) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetUnrotatedRect", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var fernTestValueUnrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect - obj.SetUnrotatedRect(fernTestValueUnrotatedRect) - assert.Equal(t, fernTestValueUnrotatedRect, obj.UnrotatedRect) + t.Run("SetQuadPoints", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueQuadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem + obj.SetQuadPoints(fernTestValueQuadPoints) + assert.Equal(t, fernTestValueQuadPoints, obj.QuadPoints) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetIntent", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueIntent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntent + obj.SetIntent(fernTestValueIntent) + assert.Equal(t, fernTestValueIntent, obj.Intent) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout(t *testing.T) { t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef obj.Ref = expected // Act & Assert @@ -179593,7 +218995,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetRef_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} obj.Ref = nil // Act & Assert @@ -179602,7 +219004,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetRef_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -179615,7 +219017,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} var expected int obj.PageObjectNumber = expected @@ -179625,7 +219027,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -179638,7 +219040,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} var expected int obj.Index = expected @@ -179648,7 +219050,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -179661,8 +219063,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetIdentityQuality", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQuality obj.IdentityQuality = expected // Act & Assert @@ -179671,7 +219073,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -179684,7 +219086,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} var expected *string obj.Nm = expected @@ -179695,7 +219097,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} obj.Nm = nil // Act & Assert @@ -179704,7 +219106,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -179717,8 +219119,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags obj.Flags = expected // Act & Assert @@ -179728,7 +219130,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} obj.Flags = nil // Act & Assert @@ -179737,7 +219139,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -179750,8 +219152,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetRect", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect obj.Rect = expected // Act & Assert @@ -179761,7 +219163,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetRect_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} obj.Rect = nil // Act & Assert @@ -179770,7 +219172,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetRect_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -179783,7 +219185,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} var expected *string obj.Contents = expected @@ -179794,7 +219196,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetContents_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} obj.Contents = nil // Act & Assert @@ -179803,7 +219205,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -179816,7 +219218,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetSubject", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} var expected *string obj.Subject = expected @@ -179827,7 +219229,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetSubject_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} obj.Subject = nil // Act & Assert @@ -179836,7 +219238,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetSubject_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -179849,7 +219251,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetAuthor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} var expected *string obj.Author = expected @@ -179860,7 +219262,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetAuthor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} obj.Author = nil // Act & Assert @@ -179869,7 +219271,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetAuthor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -179882,7 +219284,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetCreated", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} var expected *time.Time obj.Created = expected @@ -179893,7 +219295,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetCreated_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} obj.Created = nil // Act & Assert @@ -179902,7 +219304,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetCreated_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -179915,7 +219317,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetModified", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} var expected *time.Time obj.Modified = expected @@ -179926,7 +219328,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetModified_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} obj.Modified = nil // Act & Assert @@ -179935,7 +219337,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetModified_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -179948,8 +219350,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetBlendMode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode obj.BlendMode = expected // Act & Assert @@ -179958,7 +219360,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -179971,8 +219373,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetInReplyTo", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo obj.InReplyTo = expected // Act & Assert @@ -179982,7 +219384,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetInReplyTo_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} obj.InReplyTo = nil // Act & Assert @@ -179991,7 +219393,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -180004,8 +219406,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetReplyType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType obj.ReplyType = expected // Act & Assert @@ -180015,7 +219417,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetReplyType_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} obj.ReplyType = nil // Act & Assert @@ -180024,7 +219426,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetReplyType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -180037,7 +219439,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetUserID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} var expected *string obj.UserID = expected @@ -180048,7 +219450,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetUserID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} obj.UserID = nil // Act & Assert @@ -180057,7 +219459,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetUserID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -180070,7 +219472,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetGroupID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} var expected *string obj.GroupID = expected @@ -180081,7 +219483,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetGroupID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} obj.GroupID = nil // Act & Assert @@ -180090,7 +219492,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetGroupID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -180103,7 +219505,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetCreatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} var expected *string obj.CreatedBy = expected @@ -180114,7 +219516,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetCreatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} obj.CreatedBy = nil // Act & Assert @@ -180123,7 +219525,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -180136,7 +219538,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetUpdatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} var expected *string obj.UpdatedBy = expected @@ -180147,7 +219549,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} obj.UpdatedBy = nil // Act & Assert @@ -180156,7 +219558,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -180169,7 +219571,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetActions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} var expected *PdfAnnotationActions obj.Actions = expected @@ -180180,7 +219582,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetActions_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} obj.Actions = nil // Act & Assert @@ -180189,7 +219591,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t t.Run("GetActions_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -180199,113 +219601,136 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t _ = obj.GetActions() // Should return zero value }) - t.Run("GetName", func(t *testing.T) { + t.Run("GetColor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var expected *string - obj.Name = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor + obj.Color = expected // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") }) - t.Run("GetName_NilValue", func(t *testing.T) { + t.Run("GetColor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - obj.Name = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj.Color = nil // Act & Assert - assert.Nil(t, obj.GetName(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetColor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetName() // Should return zero value + _ = obj.GetColor() // Should return zero value }) - t.Run("GetRotation", func(t *testing.T) { + t.Run("GetOpacity", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var expected *float64 - obj.Rotation = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var expected float64 + obj.Opacity = expected // Act & Assert - assert.Equal(t, expected, obj.GetRotation(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOpacity(), "getter should return the property value") }) - t.Run("GetRotation_NilValue", func(t *testing.T) { + t.Run("GetOpacity_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetOpacity() // Should return zero value + }) + + t.Run("GetQuadPoints", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - obj.Rotation = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem + obj.QuadPoints = expected // Act & Assert - assert.Nil(t, obj.GetRotation(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetQuadPoints(), "getter should return the property value") }) - t.Run("GetRotation_NilReceiver", func(t *testing.T) { + t.Run("GetQuadPoints_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj.QuadPoints = nil + + // Act & Assert + assert.Nil(t, obj.GetQuadPoints(), "getter should return nil when property is nil") + }) + + t.Run("GetQuadPoints_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRotation() // Should return zero value + _ = obj.GetQuadPoints() // Should return zero value }) - t.Run("GetUnrotatedRect", func(t *testing.T) { + t.Run("GetIntent", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect - obj.UnrotatedRect = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntent + obj.Intent = expected // Act & Assert - assert.Equal(t, expected, obj.GetUnrotatedRect(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIntent(), "getter should return the property value") }) - t.Run("GetUnrotatedRect_NilValue", func(t *testing.T) { + t.Run("GetIntent_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - obj.UnrotatedRect = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj.Intent = nil // Act & Assert - assert.Nil(t, obj.GetUnrotatedRect(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIntent(), "getter should return nil when property is nil") }) - t.Run("GetUnrotatedRect_NilReceiver", func(t *testing.T) { + t.Run("GetIntent_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUnrotatedRect() // Should return zero value + _ = obj.GetIntent() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout(t *testing.T) { t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef // Act obj.SetRef(fernTestValueRef) @@ -180335,7 +219760,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} var fernTestValuePageObjectNumber int // Act @@ -180363,14 +219788,107 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueIndex int + + // Act + obj.SetIndex(fernTestValueIndex) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQuality + + // Act + obj.SetIdentityQuality(fernTestValueIdentityQuality) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueNm *string + + // Act + obj.SetNm(fernTestValueNm) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var fernTestValueIndex int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags // Act - obj.SetIndex(fernTestValueIndex) + obj.SetFlags(fernTestValueFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -180394,14 +219912,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { + t.Run("SetRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect // Act - obj.SetIdentityQuality(fernTestValueIdentityQuality) + obj.SetRect(fernTestValueRect) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -180425,14 +219943,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var fernTestValueNm *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueContents *string // Act - obj.SetNm(fernTestValueNm) + obj.SetContents(fernTestValueContents) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -180456,14 +219974,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFlags_MarksExplicit", func(t *testing.T) { + t.Run("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueSubject *string // Act - obj.SetFlags(fernTestValueFlags) + obj.SetSubject(fernTestValueSubject) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -180487,14 +220005,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRect_MarksExplicit", func(t *testing.T) { + t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueAuthor *string // Act - obj.SetRect(fernTestValueRect) + obj.SetAuthor(fernTestValueAuthor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -180518,14 +220036,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetContents_MarksExplicit", func(t *testing.T) { + t.Run("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var fernTestValueContents *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueCreated *time.Time // Act - obj.SetContents(fernTestValueContents) + obj.SetCreated(fernTestValueCreated) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -180549,14 +220067,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetSubject_MarksExplicit", func(t *testing.T) { + t.Run("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var fernTestValueSubject *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueModified *time.Time // Act - obj.SetSubject(fernTestValueSubject) + obj.SetModified(fernTestValueModified) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -180580,14 +220098,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { + t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var fernTestValueAuthor *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode // Act - obj.SetAuthor(fernTestValueAuthor) + obj.SetBlendMode(fernTestValueBlendMode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -180611,14 +220129,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreated_MarksExplicit", func(t *testing.T) { + t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var fernTestValueCreated *time.Time + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo // Act - obj.SetCreated(fernTestValueCreated) + obj.SetInReplyTo(fernTestValueInReplyTo) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -180642,14 +220160,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetModified_MarksExplicit", func(t *testing.T) { + t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var fernTestValueModified *time.Time + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType // Act - obj.SetModified(fernTestValueModified) + obj.SetReplyType(fernTestValueReplyType) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -180673,14 +220191,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { + t.Run("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueUserID *string // Act - obj.SetBlendMode(fernTestValueBlendMode) + obj.SetUserID(fernTestValueUserID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -180704,14 +220222,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { + t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueGroupID *string // Act - obj.SetInReplyTo(fernTestValueInReplyTo) + obj.SetGroupID(fernTestValueGroupID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -180735,14 +220253,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { + t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueCreatedBy *string // Act - obj.SetReplyType(fernTestValueReplyType) + obj.SetCreatedBy(fernTestValueCreatedBy) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -180766,14 +220284,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUserID_MarksExplicit", func(t *testing.T) { + t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var fernTestValueUserID *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueUpdatedBy *string // Act - obj.SetUserID(fernTestValueUserID) + obj.SetUpdatedBy(fernTestValueUpdatedBy) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -180797,14 +220315,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { + t.Run("SetActions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var fernTestValueGroupID *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueActions *PdfAnnotationActions // Act - obj.SetGroupID(fernTestValueGroupID) + obj.SetActions(fernTestValueActions) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -180828,14 +220346,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var fernTestValueCreatedBy *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor // Act - obj.SetCreatedBy(fernTestValueCreatedBy) + obj.SetColor(fernTestValueColor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -180859,14 +220377,76 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var fernTestValueUpdatedBy *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueOpacity float64 // Act - obj.SetUpdatedBy(fernTestValueUpdatedBy) + obj.SetOpacity(fernTestValueOpacity) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetQuadPoints_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueQuadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem + + // Act + obj.SetQuadPoints(fernTestValueQuadPoints) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetIntent_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + var fernTestValueIntent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntent + + // Act + obj.SetIntent(fernTestValueIntent) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -180886,49 +220466,120 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations require.NoError(t, err, "unmarshaling should succeed for test verification") } - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor(t *testing.T) { + t.Run("SetR", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor{} + var fernTestValueR int + obj.SetR(fernTestValueR) + assert.Equal(t, fernTestValueR, obj.R) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetG", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor{} + var fernTestValueG int + obj.SetG(fernTestValueG) + assert.Equal(t, fernTestValueG, obj.G) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetB", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor{} + var expected int + obj.R = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") + }) + + t.Run("GetR_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetR() // Should return zero value + }) + + t.Run("GetG", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor{} + var expected int + obj.G = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") }) - t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Run("GetG_NilReceiver", func(t *testing.T) { t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var fernTestValueActions *PdfAnnotationActions - - // Act - obj.SetActions(fernTestValueActions) + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetG() // Should return zero value + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetB", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor{} + var expected int + obj.B = expected - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetB() // Should return zero value }) - t.Run("SetName_MarksExplicit", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var fernTestValueName *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor{} + var fernTestValueR int // Act - obj.SetName(fernTestValueName) + obj.SetR(fernTestValueR) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -180952,14 +220603,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRotation_MarksExplicit", func(t *testing.T) { + t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var fernTestValueRotation *float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor{} + var fernTestValueG int // Act - obj.SetRotation(fernTestValueRotation) + obj.SetG(fernTestValueG) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -180983,14 +220634,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUnrotatedRect_MarksExplicit", func(t *testing.T) { + t.Run("SetB_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStamp{} - var fernTestValueUnrotatedRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor{} + var fernTestValueB int // Act - obj.SetUnrotatedRect(fernTestValueUnrotatedRect) + obj.SetB(fernTestValueB) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -181016,9 +220667,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags(t *testing.T) { t.Run("SetInvisible", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} var fernTestValueInvisible bool obj.SetInvisible(fernTestValueInvisible) assert.Equal(t, fernTestValueInvisible, obj.Invisible) @@ -181026,7 +220677,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFla }) t.Run("SetHidden", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} var fernTestValueHidden bool obj.SetHidden(fernTestValueHidden) assert.Equal(t, fernTestValueHidden, obj.Hidden) @@ -181034,7 +220685,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFla }) t.Run("SetPrint", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} var fernTestValuePrint bool obj.SetPrint(fernTestValuePrint) assert.Equal(t, fernTestValuePrint, obj.Print) @@ -181042,7 +220693,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFla }) t.Run("SetNoZoom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} var fernTestValueNoZoom bool obj.SetNoZoom(fernTestValueNoZoom) assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) @@ -181050,7 +220701,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFla }) t.Run("SetNoRotate", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} var fernTestValueNoRotate bool obj.SetNoRotate(fernTestValueNoRotate) assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) @@ -181058,7 +220709,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFla }) t.Run("SetNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} var fernTestValueNoView bool obj.SetNoView(fernTestValueNoView) assert.Equal(t, fernTestValueNoView, obj.NoView) @@ -181066,7 +220717,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFla }) t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} var fernTestValueReadOnly bool obj.SetReadOnly(fernTestValueReadOnly) assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) @@ -181074,7 +220725,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFla }) t.Run("SetLocked", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} var fernTestValueLocked bool obj.SetLocked(fernTestValueLocked) assert.Equal(t, fernTestValueLocked, obj.Locked) @@ -181082,7 +220733,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFla }) t.Run("SetToggleNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} var fernTestValueToggleNoView bool obj.SetToggleNoView(fernTestValueToggleNoView) assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) @@ -181090,7 +220741,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFla }) t.Run("SetLockedContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} var fernTestValueLockedContents bool obj.SetLockedContents(fernTestValueLockedContents) assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) @@ -181099,11 +220750,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFla } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags(t *testing.T) { t.Run("GetInvisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} var expected bool obj.Invisible = expected @@ -181113,7 +220764,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFla t.Run("GetInvisible_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -181126,7 +220777,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFla t.Run("GetHidden", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} var expected bool obj.Hidden = expected @@ -181136,7 +220787,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFla t.Run("GetHidden_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -181149,7 +220800,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFla t.Run("GetPrint", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} var expected bool obj.Print = expected @@ -181159,7 +220810,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFla t.Run("GetPrint_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -181172,7 +220823,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFla t.Run("GetNoZoom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} var expected bool obj.NoZoom = expected @@ -181182,7 +220833,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFla t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -181195,7 +220846,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFla t.Run("GetNoRotate", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} var expected bool obj.NoRotate = expected @@ -181205,7 +220856,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFla t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -181218,7 +220869,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFla t.Run("GetNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} var expected bool obj.NoView = expected @@ -181228,7 +220879,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFla t.Run("GetNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -181241,7 +220892,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFla t.Run("GetReadOnly", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} var expected bool obj.ReadOnly = expected @@ -181251,7 +220902,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFla t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -181264,7 +220915,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFla t.Run("GetLocked", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} var expected bool obj.Locked = expected @@ -181274,7 +220925,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFla t.Run("GetLocked_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -181287,7 +220938,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFla t.Run("GetToggleNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} var expected bool obj.ToggleNoView = expected @@ -181297,7 +220948,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFla t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -181310,7 +220961,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFla t.Run("GetLockedContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} var expected bool obj.LockedContents = expected @@ -181320,7 +220971,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFla t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -181332,11 +220983,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFla } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags(t *testing.T) { t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} var fernTestValueInvisible bool // Act @@ -181367,7 +221018,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetHidden_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} var fernTestValueHidden bool // Act @@ -181398,7 +221049,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPrint_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} var fernTestValuePrint bool // Act @@ -181429,7 +221080,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} var fernTestValueNoZoom bool // Act @@ -181460,7 +221111,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} var fernTestValueNoRotate bool // Act @@ -181491,7 +221142,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} var fernTestValueNoView bool // Act @@ -181522,7 +221173,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} var fernTestValueReadOnly bool // Act @@ -181553,7 +221204,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetLocked_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} var fernTestValueLocked bool // Act @@ -181584,7 +221235,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} var fernTestValueToggleNoView bool // Act @@ -181615,7 +221266,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} var fernTestValueLockedContents bool // Act @@ -181645,11 +221296,11 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo{} var expected string obj.Kind = expected @@ -181659,7 +221310,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInR t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -181672,8 +221323,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInR t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -181683,7 +221334,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInR t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo{} obj.ObjectNumber = nil // Act & Assert @@ -181692,7 +221343,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInR t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -181705,8 +221356,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInR t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm obj.Nm = expected // Act & Assert @@ -181716,7 +221367,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInR t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo{} obj.Nm = nil // Act & Assert @@ -181725,7 +221376,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInR t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -181738,8 +221389,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInR t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex obj.Index = expected // Act & Assert @@ -181749,7 +221400,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInR t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo{} obj.Index = nil // Act & Assert @@ -181758,7 +221409,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInR t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -181770,9 +221421,9 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInR } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -181780,7 +221431,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInR }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -181788,8 +221439,8 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInR }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -181797,11 +221448,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInR } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex{} var expected int obj.PageObjectNumber = expected @@ -181811,7 +221462,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInR t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -181824,7 +221475,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInR t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex{} var expected int obj.Index = expected @@ -181834,7 +221485,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInR t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -181847,8 +221498,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInR t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision obj.Revision = expected // Act & Assert @@ -181858,7 +221509,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInR t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex{} obj.Revision = nil // Act & Assert @@ -181867,7 +221518,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInR t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -181879,11 +221530,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInR } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex{} var fernTestValuePageObjectNumber int // Act @@ -181914,7 +221565,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex{} var fernTestValueIndex int // Act @@ -181945,8 +221596,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -181975,9 +221626,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -181985,7 +221636,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInR }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -181993,7 +221644,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInR }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -182002,11 +221653,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInR } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision{} var expected string obj.DocSessionID = expected @@ -182016,7 +221667,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInR t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -182029,7 +221680,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInR t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -182039,7 +221690,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInR t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -182052,7 +221703,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInR t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision{} var expected int obj.Generation = expected @@ -182062,7 +221713,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInR t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -182074,11 +221725,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInR } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision{} var fernTestValueDocSessionID string // Act @@ -182106,14 +221757,843 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision{} + var fernTestValueGeneration int + + // Act + obj.SetGeneration(fernTestValueGeneration) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetNm", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm{} + var expected string + obj.Nm = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + }) + + t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNm() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm{} + var fernTestValueNm string + + // Act + obj.SetNm(fernTestValueNm) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + }) + + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAnnotObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int + + // Act + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem(t *testing.T) { + t.Run("SetP1", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem{} + var fernTestValueP1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1 + obj.SetP1(fernTestValueP1) + assert.Equal(t, fernTestValueP1, obj.P1) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetP2", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem{} + var fernTestValueP2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2 + obj.SetP2(fernTestValueP2) + assert.Equal(t, fernTestValueP2, obj.P2) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetP3", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem{} + var fernTestValueP3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3 + obj.SetP3(fernTestValueP3) + assert.Equal(t, fernTestValueP3, obj.P3) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetP4", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem{} + var fernTestValueP4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4 + obj.SetP4(fernTestValueP4) + assert.Equal(t, fernTestValueP4, obj.P4) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem(t *testing.T) { + t.Run("GetP1", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1 + obj.P1 = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetP1(), "getter should return the property value") + }) + + t.Run("GetP1_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem{} + obj.P1 = nil + + // Act & Assert + assert.Nil(t, obj.GetP1(), "getter should return nil when property is nil") + }) + + t.Run("GetP1_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetP1() // Should return zero value + }) + + t.Run("GetP2", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2 + obj.P2 = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetP2(), "getter should return the property value") + }) + + t.Run("GetP2_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem{} + obj.P2 = nil + + // Act & Assert + assert.Nil(t, obj.GetP2(), "getter should return nil when property is nil") + }) + + t.Run("GetP2_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetP2() // Should return zero value + }) + + t.Run("GetP3", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3 + obj.P3 = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetP3(), "getter should return the property value") + }) + + t.Run("GetP3_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem{} + obj.P3 = nil + + // Act & Assert + assert.Nil(t, obj.GetP3(), "getter should return nil when property is nil") + }) + + t.Run("GetP3_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetP3() // Should return zero value + }) + + t.Run("GetP4", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4 + obj.P4 = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetP4(), "getter should return the property value") + }) + + t.Run("GetP4_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem{} + obj.P4 = nil + + // Act & Assert + assert.Nil(t, obj.GetP4(), "getter should return nil when property is nil") + }) + + t.Run("GetP4_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetP4() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem(t *testing.T) { + t.Run("SetP1_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem{} + var fernTestValueP1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1 + + // Act + obj.SetP1(fernTestValueP1) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetP2_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem{} + var fernTestValueP2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2 + + // Act + obj.SetP2(fernTestValueP2) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetP3_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem{} + var fernTestValueP3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3 + + // Act + obj.SetP3(fernTestValueP3) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetP4_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem{} + var fernTestValueP4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4 + + // Act + obj.SetP4(fernTestValueP4) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1(t *testing.T) { + t.Run("GetX", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1{} + var expected float64 + obj.X = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1{} + var expected float64 + obj.Y = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + }) + + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1{} + var fernTestValueX float64 + + // Act + obj.SetX(fernTestValueX) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1{} + var fernTestValueY float64 + + // Act + obj.SetY(fernTestValueY) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2{} + var expected float64 + obj.X = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2{} + var expected float64 + obj.Y = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + }) + + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2{} + var fernTestValueX float64 // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetX(fernTestValueX) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -182137,14 +222617,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToIndexRevision{} - var fernTestValueGeneration int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2{} + var fernTestValueY float64 // Act - obj.SetGeneration(fernTestValueGeneration) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -182170,83 +222650,83 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm{} - var fernTestValueNm string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3{} + var expected float64 + obj.X = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetX_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetX() // Should return zero value }) - t.Run("GetNm", func(t *testing.T) { + t.Run("GetY", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm{} - var expected string - obj.Nm = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3{} + var expected float64 + obj.Y = expected // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetY_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetY() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3{} + var fernTestValueX float64 // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetX(fernTestValueX) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -182270,14 +222750,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToNm{} - var fernTestValueNm string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3{} + var fernTestValueY float64 // Act - obj.SetNm(fernTestValueNm) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -182303,83 +222783,83 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4{} + var expected float64 + obj.X = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetX_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetX() // Should return zero value }) - t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Run("GetY", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4{} + var expected float64 + obj.Y = expected // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") }) - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetY_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAnnotObjectNumber() // Should return zero value + _ = obj.GetY() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4{} + var fernTestValueX float64 // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetX(fernTestValueX) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -182403,14 +222883,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4{} + var fernTestValueY float64 // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -182436,9 +222916,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect(t *testing.T) { t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} var fernTestValueLeft float64 obj.SetLeft(fernTestValueLeft) assert.Equal(t, fernTestValueLeft, obj.Left) @@ -182446,7 +222926,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRec }) t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} var fernTestValueBottom float64 obj.SetBottom(fernTestValueBottom) assert.Equal(t, fernTestValueBottom, obj.Bottom) @@ -182454,7 +222934,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRec }) t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} var fernTestValueRight float64 obj.SetRight(fernTestValueRight) assert.Equal(t, fernTestValueRight, obj.Right) @@ -182462,7 +222942,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRec }) t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} var fernTestValueTop float64 obj.SetTop(fernTestValueTop) assert.Equal(t, fernTestValueTop, obj.Top) @@ -182471,11 +222951,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRec } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect(t *testing.T) { t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} var expected float64 obj.Left = expected @@ -182485,7 +222965,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRec t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -182498,7 +222978,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRec t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} var expected float64 obj.Bottom = expected @@ -182508,7 +222988,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRec t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -182521,7 +223001,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRec t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} var expected float64 obj.Right = expected @@ -182531,7 +223011,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRec t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -182544,7 +223024,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRec t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} var expected float64 obj.Top = expected @@ -182554,7 +223034,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRec t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -182566,11 +223046,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRec } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect(t *testing.T) { t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} var fernTestValueLeft float64 // Act @@ -182601,7 +223081,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} var fernTestValueBottom float64 // Act @@ -182632,7 +223112,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} var fernTestValueRight float64 // Act @@ -182663,7 +223143,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} var fernTestValueTop float64 // Act @@ -182693,11 +223173,11 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef{} var expected string obj.Kind = expected @@ -182707,7 +223187,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -182720,8 +223200,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -182731,7 +223211,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef{} obj.ObjectNumber = nil // Act & Assert @@ -182740,7 +223220,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -182753,8 +223233,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm obj.Nm = expected // Act & Assert @@ -182764,7 +223244,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef{} obj.Nm = nil // Act & Assert @@ -182773,7 +223253,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -182786,8 +223266,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex obj.Index = expected // Act & Assert @@ -182797,7 +223277,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef{} obj.Index = nil // Act & Assert @@ -182806,7 +223286,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -182818,9 +223298,9 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -182828,7 +223308,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -182836,8 +223316,8 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -182845,11 +223325,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex{} var expected int obj.PageObjectNumber = expected @@ -182859,7 +223339,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -182872,7 +223352,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex{} var expected int obj.Index = expected @@ -182882,7 +223362,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -182895,8 +223375,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision obj.Revision = expected // Act & Assert @@ -182906,7 +223386,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex{} obj.Revision = nil // Act & Assert @@ -182915,7 +223395,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -182927,11 +223407,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex{} var fernTestValuePageObjectNumber int // Act @@ -182962,7 +223442,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex{} var fernTestValueIndex int // Act @@ -182993,8 +223473,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -183023,9 +223503,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -183033,7 +223513,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -183041,7 +223521,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -183050,11 +223530,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision{} var expected string obj.DocSessionID = expected @@ -183064,7 +223544,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -183077,7 +223557,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -183087,7 +223567,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -183100,7 +223580,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision{} var expected int obj.Generation = expected @@ -183110,7 +223590,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -183122,11 +223602,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision{} var fernTestValueDocSessionID string // Act @@ -183157,7 +223637,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -183188,7 +223668,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision{} var fernTestValueGeneration int // Act @@ -183218,9 +223698,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -183228,7 +223708,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm{} var fernTestValueNm string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -183237,11 +223717,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm{} var expected int obj.PageObjectNumber = expected @@ -183251,7 +223731,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -183264,7 +223744,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm{} var expected string obj.Nm = expected @@ -183274,7 +223754,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -183286,11 +223766,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm{} var fernTestValuePageObjectNumber int // Act @@ -183321,7 +223801,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm{} var fernTestValueNm string // Act @@ -183351,9 +223831,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -183361,7 +223841,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef }) t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber{} var fernTestValueAnnotObjectNumber int obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) @@ -183370,11 +223850,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber{} var expected int obj.PageObjectNumber = expected @@ -183384,7 +223864,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -183397,7 +223877,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber{} var expected int obj.AnnotObjectNumber = expected @@ -183407,7 +223887,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -183419,11 +223899,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRef } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber{} var fernTestValuePageObjectNumber int // Act @@ -183454,7 +223934,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber{} var fernTestValueAnnotObjectNumber int // Act @@ -183484,274 +223964,17 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect(t *testing.T) { - t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect{} - var fernTestValueLeft float64 - obj.SetLeft(fernTestValueLeft) - assert.Equal(t, fernTestValueLeft, obj.Left) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect{} - var fernTestValueBottom float64 - obj.SetBottom(fernTestValueBottom) - assert.Equal(t, fernTestValueBottom, obj.Bottom) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect{} - var fernTestValueRight float64 - obj.SetRight(fernTestValueRight) - assert.Equal(t, fernTestValueRight, obj.Right) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect{} - var fernTestValueTop float64 - obj.SetTop(fernTestValueTop) - assert.Equal(t, fernTestValueTop, obj.Top) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect(t *testing.T) { - t.Run("GetLeft", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect{} - var expected float64 - obj.Left = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") - }) - - t.Run("GetLeft_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetLeft() // Should return zero value - }) - - t.Run("GetBottom", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect{} - var expected float64 - obj.Bottom = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") - }) - - t.Run("GetBottom_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetBottom() // Should return zero value - }) - - t.Run("GetRight", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect{} - var expected float64 - obj.Right = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") - }) - - t.Run("GetRight_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRight() // Should return zero value - }) - - t.Run("GetTop", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect{} - var expected float64 - obj.Top = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") - }) - - t.Run("GetTop_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetTop() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect(t *testing.T) { - t.Run("SetLeft_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect{} - var fernTestValueLeft float64 - - // Act - obj.SetLeft(fernTestValueLeft) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetBottom_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect{} - var fernTestValueBottom float64 - - // Act - obj.SetBottom(fernTestValueBottom) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetRight_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect{} - var fernTestValueRight float64 - - // Act - obj.SetRight(fernTestValueRight) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetTop_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStampUnrotatedRect{} - var fernTestValueTop float64 - - // Act - obj.SetTop(fernTestValueTop) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t *testing.T) { t.Run("SetRef", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef obj.SetRef(fernTestValueRef) assert.Equal(t, fernTestValueRef, obj.Ref) assert.NotNil(t, obj.explicitFields) }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -183759,7 +223982,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -183767,15 +223990,15 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetIdentityQuality", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality obj.SetIdentityQuality(fernTestValueIdentityQuality) assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) assert.NotNil(t, obj.explicitFields) }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var fernTestValueNm *string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -183783,23 +224006,23 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetFlags", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags obj.SetFlags(fernTestValueFlags) assert.Equal(t, fernTestValueFlags, obj.Flags) assert.NotNil(t, obj.explicitFields) }) t.Run("SetRect", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect obj.SetRect(fernTestValueRect) assert.Equal(t, fernTestValueRect, obj.Rect) assert.NotNil(t, obj.explicitFields) }) t.Run("SetContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var fernTestValueContents *string obj.SetContents(fernTestValueContents) assert.Equal(t, fernTestValueContents, obj.Contents) @@ -183807,7 +224030,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetSubject", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var fernTestValueSubject *string obj.SetSubject(fernTestValueSubject) assert.Equal(t, fernTestValueSubject, obj.Subject) @@ -183815,7 +224038,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetAuthor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var fernTestValueAuthor *string obj.SetAuthor(fernTestValueAuthor) assert.Equal(t, fernTestValueAuthor, obj.Author) @@ -183823,7 +224046,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetCreated", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var fernTestValueCreated *time.Time obj.SetCreated(fernTestValueCreated) assert.Equal(t, fernTestValueCreated, obj.Created) @@ -183831,7 +224054,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetModified", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var fernTestValueModified *time.Time obj.SetModified(fernTestValueModified) assert.Equal(t, fernTestValueModified, obj.Modified) @@ -183839,31 +224062,31 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetBlendMode", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode obj.SetBlendMode(fernTestValueBlendMode) assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) assert.NotNil(t, obj.explicitFields) }) t.Run("SetInReplyTo", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo obj.SetInReplyTo(fernTestValueInReplyTo) assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) assert.NotNil(t, obj.explicitFields) }) t.Run("SetReplyType", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType obj.SetReplyType(fernTestValueReplyType) assert.Equal(t, fernTestValueReplyType, obj.ReplyType) assert.NotNil(t, obj.explicitFields) }) t.Run("SetUserID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var fernTestValueUserID *string obj.SetUserID(fernTestValueUserID) assert.Equal(t, fernTestValueUserID, obj.UserID) @@ -183871,7 +224094,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetGroupID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var fernTestValueGroupID *string obj.SetGroupID(fernTestValueGroupID) assert.Equal(t, fernTestValueGroupID, obj.GroupID) @@ -183879,7 +224102,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetCreatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var fernTestValueCreatedBy *string obj.SetCreatedBy(fernTestValueCreatedBy) assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) @@ -183887,7 +224110,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetUpdatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var fernTestValueUpdatedBy *string obj.SetUpdatedBy(fernTestValueUpdatedBy) assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) @@ -183895,7 +224118,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetActions", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var fernTestValueActions *PdfAnnotationActions obj.SetActions(fernTestValueActions) assert.Equal(t, fernTestValueActions, obj.Actions) @@ -183903,45 +224126,53 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetColor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} - var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor obj.SetColor(fernTestValueColor) assert.Equal(t, fernTestValueColor, obj.Color) assert.NotNil(t, obj.explicitFields) }) t.Run("SetOpacity", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var fernTestValueOpacity float64 obj.SetOpacity(fernTestValueOpacity) assert.Equal(t, fernTestValueOpacity, obj.Opacity) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetQuadPoints", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} - var fernTestValueQuadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem - obj.SetQuadPoints(fernTestValueQuadPoints) - assert.Equal(t, fernTestValueQuadPoints, obj.QuadPoints) + t.Run("SetIcon", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var fernTestValueIcon DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon + obj.SetIcon(fernTestValueIcon) + assert.Equal(t, fernTestValueIcon, obj.Icon) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetIntent", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} - var fernTestValueIntent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntent - obj.SetIntent(fernTestValueIntent) - assert.Equal(t, fernTestValueIntent, obj.Intent) + t.Run("SetState", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var fernTestValueState *string + obj.SetState(fernTestValueState) + assert.Equal(t, fernTestValueState, obj.State) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetStateModel", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var fernTestValueStateModel *string + obj.SetStateModel(fernTestValueStateModel) + assert.Equal(t, fernTestValueStateModel, obj.StateModel) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t *testing.T) { t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef obj.Ref = expected // Act & Assert @@ -183951,7 +224182,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetRef_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} obj.Ref = nil // Act & Assert @@ -183960,7 +224191,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetRef_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -183973,7 +224204,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var expected int obj.PageObjectNumber = expected @@ -183983,7 +224214,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -183996,7 +224227,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var expected int obj.Index = expected @@ -184006,7 +224237,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -184019,8 +224250,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetIdentityQuality", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality obj.IdentityQuality = expected // Act & Assert @@ -184029,7 +224260,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -184042,7 +224273,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var expected *string obj.Nm = expected @@ -184053,7 +224284,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} obj.Nm = nil // Act & Assert @@ -184062,7 +224293,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -184075,8 +224306,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags obj.Flags = expected // Act & Assert @@ -184086,7 +224317,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} obj.Flags = nil // Act & Assert @@ -184095,7 +224326,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -184108,8 +224339,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetRect", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect obj.Rect = expected // Act & Assert @@ -184119,7 +224350,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetRect_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} obj.Rect = nil // Act & Assert @@ -184128,7 +224359,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetRect_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -184141,7 +224372,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var expected *string obj.Contents = expected @@ -184152,7 +224383,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetContents_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} obj.Contents = nil // Act & Assert @@ -184161,7 +224392,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -184174,7 +224405,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetSubject", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var expected *string obj.Subject = expected @@ -184185,7 +224416,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetSubject_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} obj.Subject = nil // Act & Assert @@ -184194,7 +224425,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetSubject_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -184207,7 +224438,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetAuthor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var expected *string obj.Author = expected @@ -184218,7 +224449,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetAuthor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} obj.Author = nil // Act & Assert @@ -184227,7 +224458,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetAuthor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -184240,7 +224471,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetCreated", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var expected *time.Time obj.Created = expected @@ -184251,7 +224482,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetCreated_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} obj.Created = nil // Act & Assert @@ -184260,7 +224491,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetCreated_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -184273,7 +224504,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetModified", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var expected *time.Time obj.Modified = expected @@ -184284,7 +224515,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetModified_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} obj.Modified = nil // Act & Assert @@ -184293,7 +224524,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetModified_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -184306,8 +224537,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetBlendMode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode obj.BlendMode = expected // Act & Assert @@ -184316,7 +224547,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -184329,8 +224560,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetInReplyTo", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo obj.InReplyTo = expected // Act & Assert @@ -184340,7 +224571,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetInReplyTo_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} obj.InReplyTo = nil // Act & Assert @@ -184349,7 +224580,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -184362,8 +224593,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetReplyType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType obj.ReplyType = expected // Act & Assert @@ -184373,7 +224604,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetReplyType_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} obj.ReplyType = nil // Act & Assert @@ -184382,7 +224613,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetReplyType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -184395,7 +224626,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetUserID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var expected *string obj.UserID = expected @@ -184406,7 +224637,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetUserID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} obj.UserID = nil // Act & Assert @@ -184415,7 +224646,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetUserID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -184428,7 +224659,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetGroupID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var expected *string obj.GroupID = expected @@ -184439,7 +224670,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetGroupID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} obj.GroupID = nil // Act & Assert @@ -184448,7 +224679,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetGroupID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -184461,7 +224692,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetCreatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var expected *string obj.CreatedBy = expected @@ -184472,7 +224703,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetCreatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} obj.CreatedBy = nil // Act & Assert @@ -184481,7 +224712,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -184494,7 +224725,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetUpdatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var expected *string obj.UpdatedBy = expected @@ -184505,7 +224736,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} obj.UpdatedBy = nil // Act & Assert @@ -184514,7 +224745,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -184527,7 +224758,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetActions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var expected *PdfAnnotationActions obj.Actions = expected @@ -184538,7 +224769,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetActions_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} obj.Actions = nil // Act & Assert @@ -184547,7 +224778,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetActions_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -184560,8 +224791,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetColor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor obj.Color = expected // Act & Assert @@ -184571,7 +224802,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetColor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} obj.Color = nil // Act & Assert @@ -184580,7 +224811,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetColor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -184593,7 +224824,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetOpacity", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var expected float64 obj.Opacity = expected @@ -184603,7 +224834,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetOpacity_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -184613,80 +224844,103 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou _ = obj.GetOpacity() // Should return zero value }) - t.Run("GetQuadPoints", func(t *testing.T) { + t.Run("GetIcon", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} - var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem - obj.QuadPoints = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon + obj.Icon = expected // Act & Assert - assert.Equal(t, expected, obj.GetQuadPoints(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIcon(), "getter should return the property value") }) - t.Run("GetQuadPoints_NilValue", func(t *testing.T) { + t.Run("GetIcon_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetIcon() // Should return zero value + }) + + t.Run("GetState", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} - obj.QuadPoints = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var expected *string + obj.State = expected // Act & Assert - assert.Nil(t, obj.GetQuadPoints(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetState(), "getter should return the property value") }) - t.Run("GetQuadPoints_NilReceiver", func(t *testing.T) { + t.Run("GetState_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj.State = nil + + // Act & Assert + assert.Nil(t, obj.GetState(), "getter should return nil when property is nil") + }) + + t.Run("GetState_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetQuadPoints() // Should return zero value + _ = obj.GetState() // Should return zero value }) - t.Run("GetIntent", func(t *testing.T) { + t.Run("GetStateModel", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntent - obj.Intent = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var expected *string + obj.StateModel = expected // Act & Assert - assert.Equal(t, expected, obj.GetIntent(), "getter should return the property value") + assert.Equal(t, expected, obj.GetStateModel(), "getter should return the property value") }) - t.Run("GetIntent_NilValue", func(t *testing.T) { + t.Run("GetStateModel_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} - obj.Intent = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj.StateModel = nil // Act & Assert - assert.Nil(t, obj.GetIntent(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetStateModel(), "getter should return nil when property is nil") }) - t.Run("GetIntent_NilReceiver", func(t *testing.T) { + t.Run("GetStateModel_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIntent() // Should return zero value + _ = obj.GetStateModel() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t *testing.T) { t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef // Act obj.SetRef(fernTestValueRef) @@ -184716,7 +224970,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var fernTestValuePageObjectNumber int // Act @@ -184747,7 +225001,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var fernTestValueIndex int // Act @@ -184778,8 +225032,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality // Act obj.SetIdentityQuality(fernTestValueIdentityQuality) @@ -184809,7 +225063,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var fernTestValueNm *string // Act @@ -184840,8 +225094,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags // Act obj.SetFlags(fernTestValueFlags) @@ -184871,8 +225125,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect // Act obj.SetRect(fernTestValueRect) @@ -184902,7 +225156,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var fernTestValueContents *string // Act @@ -184933,7 +225187,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var fernTestValueSubject *string // Act @@ -184964,7 +225218,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var fernTestValueAuthor *string // Act @@ -184995,7 +225249,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var fernTestValueCreated *time.Time // Act @@ -185026,7 +225280,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var fernTestValueModified *time.Time // Act @@ -185057,8 +225311,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode // Act obj.SetBlendMode(fernTestValueBlendMode) @@ -185088,8 +225342,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo // Act obj.SetInReplyTo(fernTestValueInReplyTo) @@ -185119,8 +225373,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType // Act obj.SetReplyType(fernTestValueReplyType) @@ -185150,7 +225404,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var fernTestValueUserID *string // Act @@ -185181,7 +225435,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var fernTestValueGroupID *string // Act @@ -185212,7 +225466,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var fernTestValueCreatedBy *string // Act @@ -185243,7 +225497,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var fernTestValueUpdatedBy *string // Act @@ -185274,7 +225528,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetActions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var fernTestValueActions *PdfAnnotationActions // Act @@ -185305,8 +225559,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} - var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor // Act obj.SetColor(fernTestValueColor) @@ -185336,7 +225590,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} var fernTestValueOpacity float64 // Act @@ -185364,14 +225618,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetQuadPoints_MarksExplicit", func(t *testing.T) { + t.Run("SetIcon_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} - var fernTestValueQuadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var fernTestValueIcon DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon // Act - obj.SetQuadPoints(fernTestValueQuadPoints) + obj.SetIcon(fernTestValueIcon) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -185395,14 +225649,45 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIntent_MarksExplicit", func(t *testing.T) { + t.Run("SetState_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeout{} - var fernTestValueIntent *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutIntent + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var fernTestValueState *string // Act - obj.SetIntent(fernTestValueIntent) + obj.SetState(fernTestValueState) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetStateModel_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + var fernTestValueStateModel *string + + // Act + obj.SetStateModel(fernTestValueStateModel) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -185428,9 +225713,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor(t *testing.T) { t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor{} var fernTestValueR int obj.SetR(fernTestValueR) assert.Equal(t, fernTestValueR, obj.R) @@ -185438,7 +225723,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor{} var fernTestValueG int obj.SetG(fernTestValueG) assert.Equal(t, fernTestValueG, obj.G) @@ -185446,7 +225731,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor{} var fernTestValueB int obj.SetB(fernTestValueB) assert.Equal(t, fernTestValueB, obj.B) @@ -185455,11 +225740,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor(t *testing.T) { t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor{} var expected int obj.R = expected @@ -185469,7 +225754,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetR_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -185482,7 +225767,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetG", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor{} var expected int obj.G = expected @@ -185492,7 +225777,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetG_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -185505,7 +225790,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetB", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor{} var expected int obj.B = expected @@ -185515,7 +225800,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetB_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -185527,11 +225812,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor(t *testing.T) { t.Run("SetR_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor{} var fernTestValueR int // Act @@ -185562,7 +225847,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor{} var fernTestValueG int // Act @@ -185593,7 +225878,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetB_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor{} var fernTestValueB int // Act @@ -185623,9 +225908,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags(t *testing.T) { t.Run("SetInvisible", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} var fernTestValueInvisible bool obj.SetInvisible(fernTestValueInvisible) assert.Equal(t, fernTestValueInvisible, obj.Invisible) @@ -185633,7 +225918,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetHidden", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} var fernTestValueHidden bool obj.SetHidden(fernTestValueHidden) assert.Equal(t, fernTestValueHidden, obj.Hidden) @@ -185641,7 +225926,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetPrint", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} var fernTestValuePrint bool obj.SetPrint(fernTestValuePrint) assert.Equal(t, fernTestValuePrint, obj.Print) @@ -185649,7 +225934,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetNoZoom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} var fernTestValueNoZoom bool obj.SetNoZoom(fernTestValueNoZoom) assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) @@ -185657,7 +225942,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetNoRotate", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} var fernTestValueNoRotate bool obj.SetNoRotate(fernTestValueNoRotate) assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) @@ -185665,7 +225950,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} var fernTestValueNoView bool obj.SetNoView(fernTestValueNoView) assert.Equal(t, fernTestValueNoView, obj.NoView) @@ -185673,7 +225958,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} var fernTestValueReadOnly bool obj.SetReadOnly(fernTestValueReadOnly) assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) @@ -185681,7 +225966,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetLocked", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} var fernTestValueLocked bool obj.SetLocked(fernTestValueLocked) assert.Equal(t, fernTestValueLocked, obj.Locked) @@ -185689,7 +225974,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetToggleNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} var fernTestValueToggleNoView bool obj.SetToggleNoView(fernTestValueToggleNoView) assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) @@ -185697,7 +225982,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetLockedContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} var fernTestValueLockedContents bool obj.SetLockedContents(fernTestValueLockedContents) assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) @@ -185706,11 +225991,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags(t *testing.T) { t.Run("GetInvisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} var expected bool obj.Invisible = expected @@ -185720,7 +226005,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetInvisible_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -185733,7 +226018,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetHidden", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} var expected bool obj.Hidden = expected @@ -185743,7 +226028,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetHidden_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -185756,7 +226041,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetPrint", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} var expected bool obj.Print = expected @@ -185766,7 +226051,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetPrint_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -185779,7 +226064,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetNoZoom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} var expected bool obj.NoZoom = expected @@ -185789,7 +226074,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -185802,7 +226087,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetNoRotate", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} var expected bool obj.NoRotate = expected @@ -185812,7 +226097,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -185825,7 +226110,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} var expected bool obj.NoView = expected @@ -185835,7 +226120,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -185848,7 +226133,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetReadOnly", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} var expected bool obj.ReadOnly = expected @@ -185858,7 +226143,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -185871,7 +226156,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetLocked", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} var expected bool obj.Locked = expected @@ -185881,7 +226166,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetLocked_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -185894,7 +226179,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetToggleNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} var expected bool obj.ToggleNoView = expected @@ -185904,7 +226189,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -185917,7 +226202,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetLockedContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} var expected bool obj.LockedContents = expected @@ -185927,7 +226212,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -185939,11 +226224,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags(t *testing.T) { t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} var fernTestValueInvisible bool // Act @@ -185974,7 +226259,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetHidden_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} var fernTestValueHidden bool // Act @@ -186005,7 +226290,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPrint_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} var fernTestValuePrint bool // Act @@ -186036,7 +226321,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} var fernTestValueNoZoom bool // Act @@ -186067,7 +226352,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} var fernTestValueNoRotate bool // Act @@ -186098,7 +226383,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} var fernTestValueNoView bool // Act @@ -186129,7 +226414,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} var fernTestValueReadOnly bool // Act @@ -186160,7 +226445,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetLocked_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} var fernTestValueLocked bool // Act @@ -186191,7 +226476,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} var fernTestValueToggleNoView bool // Act @@ -186222,7 +226507,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} var fernTestValueLockedContents bool // Act @@ -186252,11 +226537,11 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo{} var expected string obj.Kind = expected @@ -186266,7 +226551,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -186279,8 +226564,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -186290,7 +226575,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo{} obj.ObjectNumber = nil // Act & Assert @@ -186299,7 +226584,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -186312,8 +226597,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm obj.Nm = expected // Act & Assert @@ -186323,7 +226608,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo{} obj.Nm = nil // Act & Assert @@ -186332,7 +226617,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -186345,8 +226630,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex obj.Index = expected // Act & Assert @@ -186356,7 +226641,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo{} obj.Index = nil // Act & Assert @@ -186365,7 +226650,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -186377,9 +226662,9 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -186387,7 +226672,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -186395,8 +226680,8 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -186404,11 +226689,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex{} var expected int obj.PageObjectNumber = expected @@ -186418,7 +226703,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -186431,7 +226716,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex{} var expected int obj.Index = expected @@ -186441,7 +226726,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -186454,8 +226739,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision obj.Revision = expected // Act & Assert @@ -186465,7 +226750,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex{} obj.Revision = nil // Act & Assert @@ -186474,7 +226759,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -186486,11 +226771,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex{} var fernTestValuePageObjectNumber int // Act @@ -186521,7 +226806,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex{} var fernTestValueIndex int // Act @@ -186552,8 +226837,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -186582,9 +226867,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -186592,7 +226877,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -186600,7 +226885,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -186609,11 +226894,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision{} var expected string obj.DocSessionID = expected @@ -186623,7 +226908,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -186636,7 +226921,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -186646,7 +226931,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -186659,7 +226944,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision{} var expected int obj.Generation = expected @@ -186669,7 +226954,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -186681,11 +226966,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision{} var fernTestValueDocSessionID string // Act @@ -186716,7 +227001,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -186747,7 +227032,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision{} var fernTestValueGeneration int // Act @@ -186777,9 +227062,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -186787,7 +227072,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm{} var fernTestValueNm string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -186796,11 +227081,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm{} var expected int obj.PageObjectNumber = expected @@ -186810,7 +227095,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -186823,7 +227108,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm{} var expected string obj.Nm = expected @@ -186833,7 +227118,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -186845,144 +227130,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm{} - var fernTestValuePageObjectNumber int - - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetNm_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToNm{} - var fernTestValueNm string - - // Act - obj.SetNm(fernTestValueNm) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetAnnotObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") - }) - - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAnnotObjectNumber() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm{} var fernTestValuePageObjectNumber int // Act @@ -187010,710 +227162,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int - - // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem(t *testing.T) { - t.Run("SetP1", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem{} - var fernTestValueP1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1 - obj.SetP1(fernTestValueP1) - assert.Equal(t, fernTestValueP1, obj.P1) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetP2", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem{} - var fernTestValueP2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2 - obj.SetP2(fernTestValueP2) - assert.Equal(t, fernTestValueP2, obj.P2) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetP3", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem{} - var fernTestValueP3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3 - obj.SetP3(fernTestValueP3) - assert.Equal(t, fernTestValueP3, obj.P3) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetP4", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem{} - var fernTestValueP4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4 - obj.SetP4(fernTestValueP4) - assert.Equal(t, fernTestValueP4, obj.P4) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem(t *testing.T) { - t.Run("GetP1", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1 - obj.P1 = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetP1(), "getter should return the property value") - }) - - t.Run("GetP1_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem{} - obj.P1 = nil - - // Act & Assert - assert.Nil(t, obj.GetP1(), "getter should return nil when property is nil") - }) - - t.Run("GetP1_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetP1() // Should return zero value - }) - - t.Run("GetP2", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2 - obj.P2 = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetP2(), "getter should return the property value") - }) - - t.Run("GetP2_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem{} - obj.P2 = nil - - // Act & Assert - assert.Nil(t, obj.GetP2(), "getter should return nil when property is nil") - }) - - t.Run("GetP2_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetP2() // Should return zero value - }) - - t.Run("GetP3", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3 - obj.P3 = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetP3(), "getter should return the property value") - }) - - t.Run("GetP3_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem{} - obj.P3 = nil - - // Act & Assert - assert.Nil(t, obj.GetP3(), "getter should return nil when property is nil") - }) - - t.Run("GetP3_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetP3() // Should return zero value - }) - - t.Run("GetP4", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4 - obj.P4 = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetP4(), "getter should return the property value") - }) - - t.Run("GetP4_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem{} - obj.P4 = nil - - // Act & Assert - assert.Nil(t, obj.GetP4(), "getter should return nil when property is nil") - }) - - t.Run("GetP4_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetP4() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem(t *testing.T) { - t.Run("SetP1_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem{} - var fernTestValueP1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1 - - // Act - obj.SetP1(fernTestValueP1) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetP2_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem{} - var fernTestValueP2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2 - - // Act - obj.SetP2(fernTestValueP2) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetP3_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem{} - var fernTestValueP3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3 - - // Act - obj.SetP3(fernTestValueP3) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetP4_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItem{} - var fernTestValueP4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4 - - // Act - obj.SetP4(fernTestValueP4) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1(t *testing.T) { - t.Run("GetX", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1{} - var expected float64 - obj.X = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") - }) - - t.Run("GetX_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1 - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetX() // Should return zero value - }) - - t.Run("GetY", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1{} - var expected float64 - obj.Y = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") - }) - - t.Run("GetY_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1 - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetY() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1{} - var fernTestValueX float64 - - // Act - obj.SetX(fernTestValueX) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetY_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP1{} - var fernTestValueY float64 - - // Act - obj.SetY(fernTestValueY) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2(t *testing.T) { - t.Run("GetX", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2{} - var expected float64 - obj.X = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") - }) - - t.Run("GetX_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2 - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetX() // Should return zero value - }) - - t.Run("GetY", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2{} - var expected float64 - obj.Y = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") - }) - - t.Run("GetY_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2 - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetY() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2{} - var fernTestValueX float64 - - // Act - obj.SetX(fernTestValueX) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetY_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP2{} - var fernTestValueY float64 - - // Act - obj.SetY(fernTestValueY) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3(t *testing.T) { - t.Run("GetX", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3{} - var expected float64 - obj.X = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") - }) - - t.Run("GetX_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3 - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetX() // Should return zero value - }) - - t.Run("GetY", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3{} - var expected float64 - obj.Y = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") - }) - - t.Run("GetY_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3 - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetY() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3{} - var fernTestValueX float64 - - // Act - obj.SetX(fernTestValueX) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP3{} - var fernTestValueY float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm{} + var fernTestValueNm string // Act - obj.SetY(fernTestValueY) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -187739,83 +227195,83 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4(t *testing.T) { - t.Run("GetX", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4{} - var expected float64 - obj.X = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetX() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetY", func(t *testing.T) { + t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4{} - var expected float64 - obj.Y = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") }) - t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetY() // Should return zero value + _ = obj.GetAnnotObjectNumber() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4{} - var fernTestValueX float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int // Act - obj.SetX(fernTestValueX) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -187839,14 +227295,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutQuadPointsItemP4{} - var fernTestValueY float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int // Act - obj.SetY(fernTestValueY) + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -187872,9 +227328,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect(t *testing.T) { t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} var fernTestValueLeft float64 obj.SetLeft(fernTestValueLeft) assert.Equal(t, fernTestValueLeft, obj.Left) @@ -187882,7 +227338,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} var fernTestValueBottom float64 obj.SetBottom(fernTestValueBottom) assert.Equal(t, fernTestValueBottom, obj.Bottom) @@ -187890,7 +227346,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} var fernTestValueRight float64 obj.SetRight(fernTestValueRight) assert.Equal(t, fernTestValueRight, obj.Right) @@ -187898,7 +227354,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} var fernTestValueTop float64 obj.SetTop(fernTestValueTop) assert.Equal(t, fernTestValueTop, obj.Top) @@ -187907,11 +227363,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect(t *testing.T) { t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} var expected float64 obj.Left = expected @@ -187921,7 +227377,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -187934,7 +227390,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} var expected float64 obj.Bottom = expected @@ -187944,7 +227400,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -187957,7 +227413,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} var expected float64 obj.Right = expected @@ -187967,7 +227423,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -187980,7 +227436,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} var expected float64 obj.Top = expected @@ -187990,7 +227446,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -188002,11 +227458,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect(t *testing.T) { t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} var fernTestValueLeft float64 // Act @@ -188037,7 +227493,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} var fernTestValueBottom float64 // Act @@ -188068,7 +227524,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} var fernTestValueRight float64 // Act @@ -188099,7 +227555,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} var fernTestValueTop float64 // Act @@ -188129,11 +227585,11 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef{} var expected string obj.Kind = expected @@ -188143,7 +227599,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -188156,8 +227612,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -188167,7 +227623,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef{} obj.ObjectNumber = nil // Act & Assert @@ -188176,7 +227632,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -188189,8 +227645,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm obj.Nm = expected // Act & Assert @@ -188200,7 +227656,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef{} obj.Nm = nil // Act & Assert @@ -188209,7 +227665,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -188222,8 +227678,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex obj.Index = expected // Act & Assert @@ -188233,7 +227689,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef{} obj.Index = nil // Act & Assert @@ -188242,7 +227698,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -188254,9 +227710,9 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -188264,7 +227720,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -188272,8 +227728,8 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -188281,11 +227737,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex{} var expected int obj.PageObjectNumber = expected @@ -188295,7 +227751,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -188308,7 +227764,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex{} var expected int obj.Index = expected @@ -188318,7 +227774,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -188331,8 +227787,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision obj.Revision = expected // Act & Assert @@ -188342,7 +227798,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex{} obj.Revision = nil // Act & Assert @@ -188351,7 +227807,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -188363,11 +227819,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex{} var fernTestValuePageObjectNumber int // Act @@ -188398,7 +227854,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex{} var fernTestValueIndex int // Act @@ -188429,8 +227885,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -188459,9 +227915,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -188469,7 +227925,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -188477,7 +227933,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -188486,11 +227942,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision{} var expected string obj.DocSessionID = expected @@ -188500,7 +227956,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -188513,7 +227969,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -188523,7 +227979,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -188536,7 +227992,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision{} var expected int obj.Generation = expected @@ -188546,7 +228002,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -188558,11 +228014,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision{} var fernTestValueDocSessionID string // Act @@ -188593,7 +228049,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -188624,7 +228080,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision{} var fernTestValueGeneration int // Act @@ -188654,9 +228110,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -188664,7 +228120,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm{} var fernTestValueNm string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -188673,11 +228129,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm{} var expected int obj.PageObjectNumber = expected @@ -188687,7 +228143,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -188700,7 +228156,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm{} var expected string obj.Nm = expected @@ -188710,7 +228166,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -188722,11 +228178,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm{} var fernTestValuePageObjectNumber int // Act @@ -188757,7 +228213,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm{} var fernTestValueNm string // Act @@ -188787,9 +228243,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -188797,7 +228253,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou }) t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber{} var fernTestValueAnnotObjectNumber int obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) @@ -188806,11 +228262,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber{} var expected int obj.PageObjectNumber = expected @@ -188820,7 +228276,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -188833,7 +228289,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber{} var expected int obj.AnnotObjectNumber = expected @@ -188843,7 +228299,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -188855,11 +228311,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeou } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber{} var fernTestValuePageObjectNumber int // Act @@ -188890,7 +228346,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemStrikeoutRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber{} var fernTestValueAnnotObjectNumber int // Act @@ -188920,17 +228376,17 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline(t *testing.T) { t.Run("SetRef", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef obj.SetRef(fernTestValueRef) assert.Equal(t, fernTestValueRef, obj.Ref) assert.NotNil(t, obj.explicitFields) }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -188938,7 +228394,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -188946,15 +228402,15 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * }) t.Run("SetIdentityQuality", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality obj.SetIdentityQuality(fernTestValueIdentityQuality) assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) assert.NotNil(t, obj.explicitFields) }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var fernTestValueNm *string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -188962,23 +228418,23 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * }) t.Run("SetFlags", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags obj.SetFlags(fernTestValueFlags) assert.Equal(t, fernTestValueFlags, obj.Flags) assert.NotNil(t, obj.explicitFields) }) t.Run("SetRect", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect obj.SetRect(fernTestValueRect) assert.Equal(t, fernTestValueRect, obj.Rect) assert.NotNil(t, obj.explicitFields) }) t.Run("SetContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var fernTestValueContents *string obj.SetContents(fernTestValueContents) assert.Equal(t, fernTestValueContents, obj.Contents) @@ -188986,7 +228442,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * }) t.Run("SetSubject", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var fernTestValueSubject *string obj.SetSubject(fernTestValueSubject) assert.Equal(t, fernTestValueSubject, obj.Subject) @@ -188994,7 +228450,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * }) t.Run("SetAuthor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var fernTestValueAuthor *string obj.SetAuthor(fernTestValueAuthor) assert.Equal(t, fernTestValueAuthor, obj.Author) @@ -189002,7 +228458,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * }) t.Run("SetCreated", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var fernTestValueCreated *time.Time obj.SetCreated(fernTestValueCreated) assert.Equal(t, fernTestValueCreated, obj.Created) @@ -189010,7 +228466,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * }) t.Run("SetModified", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var fernTestValueModified *time.Time obj.SetModified(fernTestValueModified) assert.Equal(t, fernTestValueModified, obj.Modified) @@ -189018,31 +228474,31 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * }) t.Run("SetBlendMode", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode obj.SetBlendMode(fernTestValueBlendMode) assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) assert.NotNil(t, obj.explicitFields) }) t.Run("SetInReplyTo", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo obj.SetInReplyTo(fernTestValueInReplyTo) assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) assert.NotNil(t, obj.explicitFields) }) t.Run("SetReplyType", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType obj.SetReplyType(fernTestValueReplyType) assert.Equal(t, fernTestValueReplyType, obj.ReplyType) assert.NotNil(t, obj.explicitFields) }) t.Run("SetUserID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var fernTestValueUserID *string obj.SetUserID(fernTestValueUserID) assert.Equal(t, fernTestValueUserID, obj.UserID) @@ -189050,7 +228506,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * }) t.Run("SetGroupID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var fernTestValueGroupID *string obj.SetGroupID(fernTestValueGroupID) assert.Equal(t, fernTestValueGroupID, obj.GroupID) @@ -189058,7 +228514,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * }) t.Run("SetCreatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var fernTestValueCreatedBy *string obj.SetCreatedBy(fernTestValueCreatedBy) assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) @@ -189066,7 +228522,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * }) t.Run("SetUpdatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var fernTestValueUpdatedBy *string obj.SetUpdatedBy(fernTestValueUpdatedBy) assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) @@ -189074,7 +228530,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * }) t.Run("SetActions", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var fernTestValueActions *PdfAnnotationActions obj.SetActions(fernTestValueActions) assert.Equal(t, fernTestValueActions, obj.Actions) @@ -189082,53 +228538,37 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * }) t.Run("SetColor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} - var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor obj.SetColor(fernTestValueColor) assert.Equal(t, fernTestValueColor, obj.Color) assert.NotNil(t, obj.explicitFields) }) t.Run("SetOpacity", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var fernTestValueOpacity float64 obj.SetOpacity(fernTestValueOpacity) assert.Equal(t, fernTestValueOpacity, obj.Opacity) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetIcon", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} - var fernTestValueIcon DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon - obj.SetIcon(fernTestValueIcon) - assert.Equal(t, fernTestValueIcon, obj.Icon) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetState", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} - var fernTestValueState *string - obj.SetState(fernTestValueState) - assert.Equal(t, fernTestValueState, obj.State) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetStateModel", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} - var fernTestValueStateModel *string - obj.SetStateModel(fernTestValueStateModel) - assert.Equal(t, fernTestValueStateModel, obj.StateModel) + t.Run("SetQuadPoints", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var fernTestValueQuadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem + obj.SetQuadPoints(fernTestValueQuadPoints) + assert.Equal(t, fernTestValueQuadPoints, obj.QuadPoints) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline(t *testing.T) { t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef obj.Ref = expected // Act & Assert @@ -189138,7 +228578,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetRef_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} obj.Ref = nil // Act & Assert @@ -189147,7 +228587,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetRef_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -189160,7 +228600,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var expected int obj.PageObjectNumber = expected @@ -189170,7 +228610,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -189183,7 +228623,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var expected int obj.Index = expected @@ -189193,7 +228633,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -189206,8 +228646,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetIdentityQuality", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality obj.IdentityQuality = expected // Act & Assert @@ -189216,7 +228656,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -189229,7 +228669,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var expected *string obj.Nm = expected @@ -189240,7 +228680,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} obj.Nm = nil // Act & Assert @@ -189249,7 +228689,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -189262,8 +228702,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags obj.Flags = expected // Act & Assert @@ -189273,7 +228713,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} obj.Flags = nil // Act & Assert @@ -189282,7 +228722,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -189295,8 +228735,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetRect", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect obj.Rect = expected // Act & Assert @@ -189306,7 +228746,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetRect_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} obj.Rect = nil // Act & Assert @@ -189315,7 +228755,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetRect_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -189328,7 +228768,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var expected *string obj.Contents = expected @@ -189339,7 +228779,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetContents_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} obj.Contents = nil // Act & Assert @@ -189348,7 +228788,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -189361,7 +228801,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetSubject", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var expected *string obj.Subject = expected @@ -189372,7 +228812,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetSubject_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} obj.Subject = nil // Act & Assert @@ -189381,7 +228821,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetSubject_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -189394,7 +228834,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetAuthor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var expected *string obj.Author = expected @@ -189405,7 +228845,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetAuthor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} obj.Author = nil // Act & Assert @@ -189414,7 +228854,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetAuthor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -189427,7 +228867,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetCreated", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var expected *time.Time obj.Created = expected @@ -189438,7 +228878,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetCreated_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} obj.Created = nil // Act & Assert @@ -189447,7 +228887,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetCreated_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -189460,7 +228900,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetModified", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var expected *time.Time obj.Modified = expected @@ -189471,7 +228911,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetModified_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} obj.Modified = nil // Act & Assert @@ -189480,7 +228920,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetModified_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -189493,8 +228933,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetBlendMode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode obj.BlendMode = expected // Act & Assert @@ -189503,7 +228943,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -189516,8 +228956,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetInReplyTo", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo obj.InReplyTo = expected // Act & Assert @@ -189527,7 +228967,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetInReplyTo_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} obj.InReplyTo = nil // Act & Assert @@ -189536,7 +228976,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -189549,8 +228989,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetReplyType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType obj.ReplyType = expected // Act & Assert @@ -189560,7 +229000,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetReplyType_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} obj.ReplyType = nil // Act & Assert @@ -189569,7 +229009,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetReplyType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -189582,7 +229022,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetUserID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var expected *string obj.UserID = expected @@ -189593,7 +229033,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetUserID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} obj.UserID = nil // Act & Assert @@ -189602,7 +229042,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetUserID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -189615,7 +229055,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetGroupID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var expected *string obj.GroupID = expected @@ -189626,7 +229066,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetGroupID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} obj.GroupID = nil // Act & Assert @@ -189635,7 +229075,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetGroupID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -189648,7 +229088,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetCreatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var expected *string obj.CreatedBy = expected @@ -189659,7 +229099,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetCreatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} obj.CreatedBy = nil // Act & Assert @@ -189668,7 +229108,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -189681,7 +229121,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetUpdatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var expected *string obj.UpdatedBy = expected @@ -189692,7 +229132,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} obj.UpdatedBy = nil // Act & Assert @@ -189701,7 +229141,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -189714,7 +229154,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetActions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var expected *PdfAnnotationActions obj.Actions = expected @@ -189725,7 +229165,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetActions_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} obj.Actions = nil // Act & Assert @@ -189734,7 +229174,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetActions_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -189747,8 +229187,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetColor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor obj.Color = expected // Act & Assert @@ -189758,7 +229198,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetColor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} obj.Color = nil // Act & Assert @@ -189767,7 +229207,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetColor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -189780,7 +229220,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetOpacity", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var expected float64 obj.Opacity = expected @@ -189790,7 +229230,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * t.Run("GetOpacity_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -189800,103 +229240,47 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t * _ = obj.GetOpacity() // Should return zero value }) - t.Run("GetIcon", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon - obj.Icon = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetIcon(), "getter should return the property value") - }) - - t.Run("GetIcon_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetIcon() // Should return zero value - }) - - t.Run("GetState", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} - var expected *string - obj.State = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetState(), "getter should return the property value") - }) - - t.Run("GetState_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} - obj.State = nil - - // Act & Assert - assert.Nil(t, obj.GetState(), "getter should return nil when property is nil") - }) - - t.Run("GetState_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetState() // Should return zero value - }) - - t.Run("GetStateModel", func(t *testing.T) { + t.Run("GetQuadPoints", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} - var expected *string - obj.StateModel = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem + obj.QuadPoints = expected // Act & Assert - assert.Equal(t, expected, obj.GetStateModel(), "getter should return the property value") + assert.Equal(t, expected, obj.GetQuadPoints(), "getter should return the property value") }) - t.Run("GetStateModel_NilValue", func(t *testing.T) { + t.Run("GetQuadPoints_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} - obj.StateModel = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj.QuadPoints = nil // Act & Assert - assert.Nil(t, obj.GetStateModel(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetQuadPoints(), "getter should return nil when property is nil") }) - t.Run("GetStateModel_NilReceiver", func(t *testing.T) { + t.Run("GetQuadPoints_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetStateModel() // Should return zero value + _ = obj.GetQuadPoints() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemText(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline(t *testing.T) { t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef // Act obj.SetRef(fernTestValueRef) @@ -189926,7 +229310,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var fernTestValuePageObjectNumber int // Act @@ -189957,7 +229341,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var fernTestValueIndex int // Act @@ -189988,8 +229372,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality // Act obj.SetIdentityQuality(fernTestValueIdentityQuality) @@ -190019,7 +229403,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var fernTestValueNm *string // Act @@ -190050,8 +229434,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags // Act obj.SetFlags(fernTestValueFlags) @@ -190081,8 +229465,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect // Act obj.SetRect(fernTestValueRect) @@ -190112,7 +229496,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var fernTestValueContents *string // Act @@ -190143,7 +229527,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var fernTestValueSubject *string // Act @@ -190174,7 +229558,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var fernTestValueAuthor *string // Act @@ -190205,7 +229589,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var fernTestValueCreated *time.Time // Act @@ -190236,7 +229620,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var fernTestValueModified *time.Time // Act @@ -190267,8 +229651,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode // Act obj.SetBlendMode(fernTestValueBlendMode) @@ -190298,8 +229682,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo // Act obj.SetInReplyTo(fernTestValueInReplyTo) @@ -190329,8 +229713,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType // Act obj.SetReplyType(fernTestValueReplyType) @@ -190360,7 +229744,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var fernTestValueUserID *string // Act @@ -190391,7 +229775,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var fernTestValueGroupID *string // Act @@ -190422,7 +229806,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var fernTestValueCreatedBy *string // Act @@ -190453,7 +229837,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var fernTestValueUpdatedBy *string // Act @@ -190484,7 +229868,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetActions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var fernTestValueActions *PdfAnnotationActions // Act @@ -190515,8 +229899,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} - var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor // Act obj.SetColor(fernTestValueColor) @@ -190546,7 +229930,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} var fernTestValueOpacity float64 // Act @@ -190574,76 +229958,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIcon_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} - var fernTestValueIcon DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextIcon - - // Act - obj.SetIcon(fernTestValueIcon) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetState_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} - var fernTestValueState *string - - // Act - obj.SetState(fernTestValueState) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetStateModel_MarksExplicit", func(t *testing.T) { + t.Run("SetQuadPoints_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemText{} - var fernTestValueStateModel *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + var fernTestValueQuadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem // Act - obj.SetStateModel(fernTestValueStateModel) + obj.SetQuadPoints(fernTestValueQuadPoints) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -190669,9 +229991,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor(t *testing.T) { t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor{} var fernTestValueR int obj.SetR(fernTestValueR) assert.Equal(t, fernTestValueR, obj.R) @@ -190679,7 +230001,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColo }) t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor{} var fernTestValueG int obj.SetG(fernTestValueG) assert.Equal(t, fernTestValueG, obj.G) @@ -190687,7 +230009,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColo }) t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor{} var fernTestValueB int obj.SetB(fernTestValueB) assert.Equal(t, fernTestValueB, obj.B) @@ -190696,11 +230018,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColo } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor(t *testing.T) { t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor{} var expected int obj.R = expected @@ -190710,7 +230032,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColo t.Run("GetR_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -190723,7 +230045,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColo t.Run("GetG", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor{} var expected int obj.G = expected @@ -190733,7 +230055,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColo t.Run("GetG_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -190746,7 +230068,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColo t.Run("GetB", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor{} var expected int obj.B = expected @@ -190756,7 +230078,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColo t.Run("GetB_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -190768,11 +230090,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColo } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor(t *testing.T) { t.Run("SetR_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor{} var fernTestValueR int // Act @@ -190803,7 +230125,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor{} var fernTestValueG int // Act @@ -190834,7 +230156,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetB_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextColor{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor{} var fernTestValueB int // Act @@ -190864,9 +230186,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags(t *testing.T) { t.Run("SetInvisible", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} var fernTestValueInvisible bool obj.SetInvisible(fernTestValueInvisible) assert.Equal(t, fernTestValueInvisible, obj.Invisible) @@ -190874,7 +230196,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlag }) t.Run("SetHidden", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} var fernTestValueHidden bool obj.SetHidden(fernTestValueHidden) assert.Equal(t, fernTestValueHidden, obj.Hidden) @@ -190882,7 +230204,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlag }) t.Run("SetPrint", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} var fernTestValuePrint bool obj.SetPrint(fernTestValuePrint) assert.Equal(t, fernTestValuePrint, obj.Print) @@ -190890,7 +230212,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlag }) t.Run("SetNoZoom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} var fernTestValueNoZoom bool obj.SetNoZoom(fernTestValueNoZoom) assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) @@ -190898,7 +230220,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlag }) t.Run("SetNoRotate", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} var fernTestValueNoRotate bool obj.SetNoRotate(fernTestValueNoRotate) assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) @@ -190906,7 +230228,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlag }) t.Run("SetNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} var fernTestValueNoView bool obj.SetNoView(fernTestValueNoView) assert.Equal(t, fernTestValueNoView, obj.NoView) @@ -190914,7 +230236,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlag }) t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} var fernTestValueReadOnly bool obj.SetReadOnly(fernTestValueReadOnly) assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) @@ -190922,7 +230244,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlag }) t.Run("SetLocked", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} var fernTestValueLocked bool obj.SetLocked(fernTestValueLocked) assert.Equal(t, fernTestValueLocked, obj.Locked) @@ -190930,7 +230252,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlag }) t.Run("SetToggleNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} var fernTestValueToggleNoView bool obj.SetToggleNoView(fernTestValueToggleNoView) assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) @@ -190938,7 +230260,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlag }) t.Run("SetLockedContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} var fernTestValueLockedContents bool obj.SetLockedContents(fernTestValueLockedContents) assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) @@ -190947,11 +230269,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlag } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags(t *testing.T) { t.Run("GetInvisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} var expected bool obj.Invisible = expected @@ -190961,7 +230283,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlag t.Run("GetInvisible_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -190974,7 +230296,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlag t.Run("GetHidden", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} var expected bool obj.Hidden = expected @@ -190984,7 +230306,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlag t.Run("GetHidden_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -190997,7 +230319,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlag t.Run("GetPrint", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} var expected bool obj.Print = expected @@ -191007,7 +230329,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlag t.Run("GetPrint_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -191020,7 +230342,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlag t.Run("GetNoZoom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} var expected bool obj.NoZoom = expected @@ -191030,7 +230352,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlag t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -191043,7 +230365,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlag t.Run("GetNoRotate", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} var expected bool obj.NoRotate = expected @@ -191053,7 +230375,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlag t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -191066,7 +230388,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlag t.Run("GetNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} var expected bool obj.NoView = expected @@ -191076,7 +230398,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlag t.Run("GetNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -191089,7 +230411,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlag t.Run("GetReadOnly", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} var expected bool obj.ReadOnly = expected @@ -191099,7 +230421,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlag t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -191112,7 +230434,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlag t.Run("GetLocked", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} var expected bool obj.Locked = expected @@ -191122,7 +230444,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlag t.Run("GetLocked_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -191135,7 +230457,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlag t.Run("GetToggleNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} var expected bool obj.ToggleNoView = expected @@ -191145,7 +230467,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlag t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -191158,7 +230480,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlag t.Run("GetLockedContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} var expected bool obj.LockedContents = expected @@ -191168,7 +230490,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlag t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -191180,11 +230502,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlag } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags(t *testing.T) { t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} var fernTestValueInvisible bool // Act @@ -191215,7 +230537,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetHidden_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} var fernTestValueHidden bool // Act @@ -191246,7 +230568,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPrint_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} var fernTestValuePrint bool // Act @@ -191277,7 +230599,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} var fernTestValueNoZoom bool // Act @@ -191308,7 +230630,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} var fernTestValueNoRotate bool // Act @@ -191339,7 +230661,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} var fernTestValueNoView bool // Act @@ -191370,7 +230692,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} var fernTestValueReadOnly bool // Act @@ -191401,7 +230723,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetLocked_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} var fernTestValueLocked bool // Act @@ -191432,7 +230754,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} var fernTestValueToggleNoView bool // Act @@ -191463,7 +230785,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} var fernTestValueLockedContents bool // Act @@ -191493,11 +230815,11 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo{} var expected string obj.Kind = expected @@ -191507,7 +230829,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -191520,8 +230842,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -191531,7 +230853,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo{} obj.ObjectNumber = nil // Act & Assert @@ -191540,7 +230862,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -191553,8 +230875,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm obj.Nm = expected // Act & Assert @@ -191564,7 +230886,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo{} obj.Nm = nil // Act & Assert @@ -191573,7 +230895,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -191586,8 +230908,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex obj.Index = expected // Act & Assert @@ -191597,7 +230919,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo{} obj.Index = nil // Act & Assert @@ -191606,7 +230928,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -191618,9 +230940,9 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -191628,7 +230950,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -191636,8 +230958,8 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -191645,11 +230967,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex{} var expected int obj.PageObjectNumber = expected @@ -191659,7 +230981,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -191672,7 +230994,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex{} var expected int obj.Index = expected @@ -191682,7 +231004,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -191695,8 +231017,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision obj.Revision = expected // Act & Assert @@ -191706,7 +231028,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex{} obj.Revision = nil // Act & Assert @@ -191715,7 +231037,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -191727,11 +231049,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex{} var fernTestValuePageObjectNumber int // Act @@ -191762,7 +231084,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex{} var fernTestValueIndex int // Act @@ -191793,8 +231115,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -191823,9 +231145,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -191833,7 +231155,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -191841,7 +231163,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -191850,11 +231172,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision{} var expected string obj.DocSessionID = expected @@ -191864,7 +231186,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -191877,7 +231199,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -191887,7 +231209,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -191900,7 +231222,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision{} var expected int obj.Generation = expected @@ -191910,7 +231232,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -191922,11 +231244,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision{} var fernTestValueDocSessionID string // Act @@ -191957,7 +231279,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -191988,7 +231310,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision{} var fernTestValueGeneration int // Act @@ -192018,9 +231340,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -192028,7 +231350,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm{} var fernTestValueNm string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -192037,11 +231359,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm{} var expected int obj.PageObjectNumber = expected @@ -192051,7 +231373,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -192064,7 +231386,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm{} var expected string obj.Nm = expected @@ -192074,7 +231396,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -192086,11 +231408,144 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInRe } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm{} + var fernTestValueNm string + + // Act + obj.SetNm(fernTestValueNm) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + }) + + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAnnotObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber{} var fernTestValuePageObjectNumber int // Act @@ -192118,14 +231573,710 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int + + // Act + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem(t *testing.T) { + t.Run("SetP1", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem{} + var fernTestValueP1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1 + obj.SetP1(fernTestValueP1) + assert.Equal(t, fernTestValueP1, obj.P1) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetP2", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem{} + var fernTestValueP2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2 + obj.SetP2(fernTestValueP2) + assert.Equal(t, fernTestValueP2, obj.P2) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetP3", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem{} + var fernTestValueP3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3 + obj.SetP3(fernTestValueP3) + assert.Equal(t, fernTestValueP3, obj.P3) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetP4", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem{} + var fernTestValueP4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4 + obj.SetP4(fernTestValueP4) + assert.Equal(t, fernTestValueP4, obj.P4) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem(t *testing.T) { + t.Run("GetP1", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1 + obj.P1 = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetP1(), "getter should return the property value") + }) + + t.Run("GetP1_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem{} + obj.P1 = nil + + // Act & Assert + assert.Nil(t, obj.GetP1(), "getter should return nil when property is nil") + }) + + t.Run("GetP1_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetP1() // Should return zero value + }) + + t.Run("GetP2", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2 + obj.P2 = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetP2(), "getter should return the property value") + }) + + t.Run("GetP2_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem{} + obj.P2 = nil + + // Act & Assert + assert.Nil(t, obj.GetP2(), "getter should return nil when property is nil") + }) + + t.Run("GetP2_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetP2() // Should return zero value + }) + + t.Run("GetP3", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3 + obj.P3 = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetP3(), "getter should return the property value") + }) + + t.Run("GetP3_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem{} + obj.P3 = nil + + // Act & Assert + assert.Nil(t, obj.GetP3(), "getter should return nil when property is nil") + }) + + t.Run("GetP3_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetP3() // Should return zero value + }) + + t.Run("GetP4", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4 + obj.P4 = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetP4(), "getter should return the property value") + }) + + t.Run("GetP4_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem{} + obj.P4 = nil + + // Act & Assert + assert.Nil(t, obj.GetP4(), "getter should return nil when property is nil") + }) + + t.Run("GetP4_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetP4() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem(t *testing.T) { + t.Run("SetP1_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem{} + var fernTestValueP1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1 + + // Act + obj.SetP1(fernTestValueP1) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetP2_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem{} + var fernTestValueP2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2 + + // Act + obj.SetP2(fernTestValueP2) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetP3_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem{} + var fernTestValueP3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3 + + // Act + obj.SetP3(fernTestValueP3) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetP4_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem{} + var fernTestValueP4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4 + + // Act + obj.SetP4(fernTestValueP4) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1(t *testing.T) { + t.Run("GetX", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1{} + var expected float64 + obj.X = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1{} + var expected float64 + obj.Y = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + }) + + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1{} + var fernTestValueX float64 + + // Act + obj.SetX(fernTestValueX) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1{} + var fernTestValueY float64 + + // Act + obj.SetY(fernTestValueY) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2(t *testing.T) { + t.Run("GetX", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2{} + var expected float64 + obj.X = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2{} + var expected float64 + obj.Y = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + }) + + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2{} + var fernTestValueX float64 + + // Act + obj.SetX(fernTestValueX) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2{} + var fernTestValueY float64 + + // Act + obj.SetY(fernTestValueY) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3(t *testing.T) { + t.Run("GetX", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3{} + var expected float64 + obj.X = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3{} + var expected float64 + obj.Y = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + }) + + t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3 + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetY() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3{} + var fernTestValueX float64 + + // Act + obj.SetX(fernTestValueX) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToNm{} - var fernTestValueNm string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3{} + var fernTestValueY float64 // Act - obj.SetNm(fernTestValueNm) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -192151,83 +232302,83 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + t.Run("SetY", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4{} + var expected float64 + obj.X = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetX_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetX() // Should return zero value }) - t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Run("GetY", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4{} + var expected float64 + obj.Y = expected // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") }) - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetY_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAnnotObjectNumber() // Should return zero value + _ = obj.GetY() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4{} + var fernTestValueX float64 // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetX(fernTestValueX) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -192251,14 +232402,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4{} + var fernTestValueY float64 // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -192284,9 +232435,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect(t *testing.T) { t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} var fernTestValueLeft float64 obj.SetLeft(fernTestValueLeft) assert.Equal(t, fernTestValueLeft, obj.Left) @@ -192294,7 +232445,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect }) t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} var fernTestValueBottom float64 obj.SetBottom(fernTestValueBottom) assert.Equal(t, fernTestValueBottom, obj.Bottom) @@ -192302,7 +232453,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect }) t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} var fernTestValueRight float64 obj.SetRight(fernTestValueRight) assert.Equal(t, fernTestValueRight, obj.Right) @@ -192310,7 +232461,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect }) t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} var fernTestValueTop float64 obj.SetTop(fernTestValueTop) assert.Equal(t, fernTestValueTop, obj.Top) @@ -192319,11 +232470,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect(t *testing.T) { t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} var expected float64 obj.Left = expected @@ -192333,7 +232484,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -192346,7 +232497,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} var expected float64 obj.Bottom = expected @@ -192356,7 +232507,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -192369,7 +232520,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} var expected float64 obj.Right = expected @@ -192379,7 +232530,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -192392,7 +232543,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} var expected float64 obj.Top = expected @@ -192402,7 +232553,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -192414,11 +232565,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect(t *testing.T) { t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} var fernTestValueLeft float64 // Act @@ -192449,7 +232600,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} var fernTestValueBottom float64 // Act @@ -192480,7 +232631,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} var fernTestValueRight float64 // Act @@ -192511,7 +232662,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} var fernTestValueTop float64 // Act @@ -192541,11 +232692,11 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef{} var expected string obj.Kind = expected @@ -192555,7 +232706,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef( t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -192568,8 +232719,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef( t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -192579,7 +232730,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef( t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef{} obj.ObjectNumber = nil // Act & Assert @@ -192588,7 +232739,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef( t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -192601,8 +232752,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef( t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm obj.Nm = expected // Act & Assert @@ -192612,7 +232763,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef( t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef{} obj.Nm = nil // Act & Assert @@ -192621,7 +232772,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef( t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -192634,8 +232785,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef( t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex obj.Index = expected // Act & Assert @@ -192645,7 +232796,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef( t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef{} obj.Index = nil // Act & Assert @@ -192654,7 +232805,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef( t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -192666,9 +232817,9 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRef( } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -192676,7 +232827,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefI }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -192684,8 +232835,8 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefI }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -192693,11 +232844,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefI } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex{} var expected int obj.PageObjectNumber = expected @@ -192707,7 +232858,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefI t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -192720,7 +232871,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefI t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex{} var expected int obj.Index = expected @@ -192730,7 +232881,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefI t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -192743,8 +232894,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefI t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision obj.Revision = expected // Act & Assert @@ -192754,7 +232905,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefI t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex{} obj.Revision = nil // Act & Assert @@ -192763,7 +232914,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefI t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -192775,11 +232926,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefI } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex{} var fernTestValuePageObjectNumber int // Act @@ -192810,7 +232961,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex{} var fernTestValueIndex int // Act @@ -192841,8 +232992,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -192871,9 +233022,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -192881,7 +233032,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefI }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -192889,7 +233040,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefI }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -192898,11 +233049,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefI } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision{} var expected string obj.DocSessionID = expected @@ -192912,7 +233063,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefI t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -192925,7 +233076,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefI t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -192935,7 +233086,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefI t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -192948,7 +233099,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefI t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision{} var expected int obj.Generation = expected @@ -192958,7 +233109,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefI t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -192970,11 +233121,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefI } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision{} var fernTestValueDocSessionID string // Act @@ -193005,7 +233156,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -193036,7 +233187,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision{} var fernTestValueGeneration int // Act @@ -193066,9 +233217,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -193076,7 +233227,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefN }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm{} var fernTestValueNm string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -193085,11 +233236,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefN } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm{} var expected int obj.PageObjectNumber = expected @@ -193099,7 +233250,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefN t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -193112,7 +233263,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefN t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm{} var expected string obj.Nm = expected @@ -193122,7 +233273,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefN t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -193134,11 +233285,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefN } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm{} var fernTestValuePageObjectNumber int // Act @@ -193169,7 +233320,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm{} var fernTestValueNm string // Act @@ -193199,9 +233350,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -193209,7 +233360,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefO }) t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber{} var fernTestValueAnnotObjectNumber int obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) @@ -193218,11 +233369,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefO } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber{} var expected int obj.PageObjectNumber = expected @@ -193232,7 +233383,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefO t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -193245,7 +233396,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefO t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber{} var expected int obj.AnnotObjectNumber = expected @@ -193255,7 +233406,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefO t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -193267,11 +233418,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefO } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber{} var fernTestValuePageObjectNumber int // Act @@ -193302,7 +233453,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemTextRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber{} var fernTestValueAnnotObjectNumber int // Act @@ -193332,17 +233483,17 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported(t *testing.T) { t.Run("SetRef", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef obj.SetRef(fernTestValueRef) assert.Equal(t, fernTestValueRef, obj.Ref) assert.NotNil(t, obj.explicitFields) }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -193350,7 +233501,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -193358,15 +233509,15 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin }) t.Run("SetIdentityQuality", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality obj.SetIdentityQuality(fernTestValueIdentityQuality) assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) assert.NotNil(t, obj.explicitFields) }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var fernTestValueNm *string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -193374,23 +233525,23 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin }) t.Run("SetFlags", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags obj.SetFlags(fernTestValueFlags) assert.Equal(t, fernTestValueFlags, obj.Flags) assert.NotNil(t, obj.explicitFields) }) t.Run("SetRect", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect obj.SetRect(fernTestValueRect) assert.Equal(t, fernTestValueRect, obj.Rect) assert.NotNil(t, obj.explicitFields) }) t.Run("SetContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var fernTestValueContents *string obj.SetContents(fernTestValueContents) assert.Equal(t, fernTestValueContents, obj.Contents) @@ -193398,7 +233549,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin }) t.Run("SetSubject", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var fernTestValueSubject *string obj.SetSubject(fernTestValueSubject) assert.Equal(t, fernTestValueSubject, obj.Subject) @@ -193406,7 +233557,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin }) t.Run("SetAuthor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var fernTestValueAuthor *string obj.SetAuthor(fernTestValueAuthor) assert.Equal(t, fernTestValueAuthor, obj.Author) @@ -193414,7 +233565,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin }) t.Run("SetCreated", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var fernTestValueCreated *time.Time obj.SetCreated(fernTestValueCreated) assert.Equal(t, fernTestValueCreated, obj.Created) @@ -193422,7 +233573,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin }) t.Run("SetModified", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var fernTestValueModified *time.Time obj.SetModified(fernTestValueModified) assert.Equal(t, fernTestValueModified, obj.Modified) @@ -193430,31 +233581,31 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin }) t.Run("SetBlendMode", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode obj.SetBlendMode(fernTestValueBlendMode) assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) assert.NotNil(t, obj.explicitFields) }) t.Run("SetInReplyTo", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo obj.SetInReplyTo(fernTestValueInReplyTo) assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) assert.NotNil(t, obj.explicitFields) }) t.Run("SetReplyType", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyType obj.SetReplyType(fernTestValueReplyType) assert.Equal(t, fernTestValueReplyType, obj.ReplyType) assert.NotNil(t, obj.explicitFields) }) t.Run("SetUserID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var fernTestValueUserID *string obj.SetUserID(fernTestValueUserID) assert.Equal(t, fernTestValueUserID, obj.UserID) @@ -193462,7 +233613,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin }) t.Run("SetGroupID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var fernTestValueGroupID *string obj.SetGroupID(fernTestValueGroupID) assert.Equal(t, fernTestValueGroupID, obj.GroupID) @@ -193470,7 +233621,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin }) t.Run("SetCreatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var fernTestValueCreatedBy *string obj.SetCreatedBy(fernTestValueCreatedBy) assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) @@ -193478,7 +233629,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin }) t.Run("SetUpdatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var fernTestValueUpdatedBy *string obj.SetUpdatedBy(fernTestValueUpdatedBy) assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) @@ -193486,45 +233637,37 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin }) t.Run("SetActions", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var fernTestValueActions *PdfAnnotationActions obj.SetActions(fernTestValueActions) assert.Equal(t, fernTestValueActions, obj.Actions) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetColor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} - var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor - obj.SetColor(fernTestValueColor) - assert.Equal(t, fernTestValueColor, obj.Color) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetOpacity", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} - var fernTestValueOpacity float64 - obj.SetOpacity(fernTestValueOpacity) - assert.Equal(t, fernTestValueOpacity, obj.Opacity) + t.Run("SetRawSubtypeCode", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var fernTestValueRawSubtypeCode int + obj.SetRawSubtypeCode(fernTestValueRawSubtypeCode) + assert.Equal(t, fernTestValueRawSubtypeCode, obj.RawSubtypeCode) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetQuadPoints", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} - var fernTestValueQuadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem - obj.SetQuadPoints(fernTestValueQuadPoints) - assert.Equal(t, fernTestValueQuadPoints, obj.QuadPoints) + t.Run("SetRawSubtypeName", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var fernTestValueRawSubtypeName *string + obj.SetRawSubtypeName(fernTestValueRawSubtypeName) + assert.Equal(t, fernTestValueRawSubtypeName, obj.RawSubtypeName) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported(t *testing.T) { t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef obj.Ref = expected // Act & Assert @@ -193534,7 +233677,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetRef_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} obj.Ref = nil // Act & Assert @@ -193543,7 +233686,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetRef_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -193556,7 +233699,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var expected int obj.PageObjectNumber = expected @@ -193566,7 +233709,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -193579,7 +233722,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var expected int obj.Index = expected @@ -193589,7 +233732,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -193602,8 +233745,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetIdentityQuality", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality obj.IdentityQuality = expected // Act & Assert @@ -193612,7 +233755,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -193625,7 +233768,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var expected *string obj.Nm = expected @@ -193636,7 +233779,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} obj.Nm = nil // Act & Assert @@ -193645,7 +233788,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -193658,8 +233801,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags obj.Flags = expected // Act & Assert @@ -193669,7 +233812,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} obj.Flags = nil // Act & Assert @@ -193678,7 +233821,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -193691,8 +233834,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetRect", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect obj.Rect = expected // Act & Assert @@ -193702,7 +233845,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetRect_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} obj.Rect = nil // Act & Assert @@ -193711,7 +233854,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetRect_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -193724,7 +233867,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var expected *string obj.Contents = expected @@ -193735,7 +233878,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetContents_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} obj.Contents = nil // Act & Assert @@ -193744,7 +233887,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -193757,7 +233900,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetSubject", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var expected *string obj.Subject = expected @@ -193768,7 +233911,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetSubject_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} obj.Subject = nil // Act & Assert @@ -193777,7 +233920,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetSubject_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -193790,7 +233933,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetAuthor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var expected *string obj.Author = expected @@ -193801,7 +233944,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetAuthor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} obj.Author = nil // Act & Assert @@ -193810,7 +233953,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetAuthor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -193823,7 +233966,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetCreated", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var expected *time.Time obj.Created = expected @@ -193834,7 +233977,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetCreated_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} obj.Created = nil // Act & Assert @@ -193843,7 +233986,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetCreated_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -193856,7 +233999,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetModified", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var expected *time.Time obj.Modified = expected @@ -193867,7 +234010,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetModified_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} obj.Modified = nil // Act & Assert @@ -193876,7 +234019,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetModified_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -193889,8 +234032,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetBlendMode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode obj.BlendMode = expected // Act & Assert @@ -193899,7 +234042,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -193912,8 +234055,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetInReplyTo", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo obj.InReplyTo = expected // Act & Assert @@ -193923,7 +234066,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetInReplyTo_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} obj.InReplyTo = nil // Act & Assert @@ -193932,7 +234075,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -193945,8 +234088,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetReplyType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyType obj.ReplyType = expected // Act & Assert @@ -193956,7 +234099,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetReplyType_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} obj.ReplyType = nil // Act & Assert @@ -193965,7 +234108,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetReplyType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -193978,7 +234121,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetUserID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var expected *string obj.UserID = expected @@ -193989,7 +234132,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetUserID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} obj.UserID = nil // Act & Assert @@ -193998,7 +234141,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetUserID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -194011,7 +234154,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetGroupID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var expected *string obj.GroupID = expected @@ -194022,7 +234165,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetGroupID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} obj.GroupID = nil // Act & Assert @@ -194031,7 +234174,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetGroupID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -194044,7 +234187,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetCreatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var expected *string obj.CreatedBy = expected @@ -194055,7 +234198,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetCreatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} obj.CreatedBy = nil // Act & Assert @@ -194064,7 +234207,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -194077,7 +234220,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetUpdatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var expected *string obj.UpdatedBy = expected @@ -194088,7 +234231,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} obj.UpdatedBy = nil // Act & Assert @@ -194097,7 +234240,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -194110,7 +234253,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetActions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var expected *PdfAnnotationActions obj.Actions = expected @@ -194121,7 +234264,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetActions_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} obj.Actions = nil // Act & Assert @@ -194130,7 +234273,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetActions_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -194140,103 +234283,70 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin _ = obj.GetActions() // Should return zero value }) - t.Run("GetColor", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor - obj.Color = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") - }) - - t.Run("GetColor_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} - obj.Color = nil - - // Act & Assert - assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") - }) - - t.Run("GetColor_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetColor() // Should return zero value - }) - - t.Run("GetOpacity", func(t *testing.T) { + t.Run("GetRawSubtypeCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} - var expected float64 - obj.Opacity = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var expected int + obj.RawSubtypeCode = expected // Act & Assert - assert.Equal(t, expected, obj.GetOpacity(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRawSubtypeCode(), "getter should return the property value") }) - t.Run("GetOpacity_NilReceiver", func(t *testing.T) { + t.Run("GetRawSubtypeCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOpacity() // Should return zero value + _ = obj.GetRawSubtypeCode() // Should return zero value }) - t.Run("GetQuadPoints", func(t *testing.T) { + t.Run("GetRawSubtypeName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} - var expected []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem - obj.QuadPoints = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var expected *string + obj.RawSubtypeName = expected // Act & Assert - assert.Equal(t, expected, obj.GetQuadPoints(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRawSubtypeName(), "getter should return the property value") }) - t.Run("GetQuadPoints_NilValue", func(t *testing.T) { + t.Run("GetRawSubtypeName_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} - obj.QuadPoints = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj.RawSubtypeName = nil // Act & Assert - assert.Nil(t, obj.GetQuadPoints(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRawSubtypeName(), "getter should return nil when property is nil") }) - t.Run("GetQuadPoints_NilReceiver", func(t *testing.T) { + t.Run("GetRawSubtypeName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetQuadPoints() // Should return zero value + _ = obj.GetRawSubtypeName() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported(t *testing.T) { t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef // Act obj.SetRef(fernTestValueRef) @@ -194266,7 +234376,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var fernTestValuePageObjectNumber int // Act @@ -194297,7 +234407,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var fernTestValueIndex int // Act @@ -194328,8 +234438,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality // Act obj.SetIdentityQuality(fernTestValueIdentityQuality) @@ -194359,7 +234469,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var fernTestValueNm *string // Act @@ -194390,8 +234500,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags // Act obj.SetFlags(fernTestValueFlags) @@ -194421,8 +234531,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect // Act obj.SetRect(fernTestValueRect) @@ -194452,7 +234562,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var fernTestValueContents *string // Act @@ -194483,7 +234593,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var fernTestValueSubject *string // Act @@ -194514,7 +234624,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var fernTestValueAuthor *string // Act @@ -194545,7 +234655,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var fernTestValueCreated *time.Time // Act @@ -194576,7 +234686,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var fernTestValueModified *time.Time // Act @@ -194607,8 +234717,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode // Act obj.SetBlendMode(fernTestValueBlendMode) @@ -194638,8 +234748,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo // Act obj.SetInReplyTo(fernTestValueInReplyTo) @@ -194669,8 +234779,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyType // Act obj.SetReplyType(fernTestValueReplyType) @@ -194700,7 +234810,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var fernTestValueUserID *string // Act @@ -194731,7 +234841,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var fernTestValueGroupID *string // Act @@ -194762,7 +234872,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} var fernTestValueCreatedBy *string // Act @@ -194780,281 +234890,55 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations err = json.Unmarshal(bytes, &unmarshaled) require.NoError(t, err, "unmarshaling should succeed for test verification") } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} - var fernTestValueUpdatedBy *string - - // Act - obj.SetUpdatedBy(fernTestValueUpdatedBy) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetActions_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} - var fernTestValueActions *PdfAnnotationActions - - // Act - obj.SetActions(fernTestValueActions) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetColor_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} - var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor - - // Act - obj.SetColor(fernTestValueColor) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetOpacity_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} - var fernTestValueOpacity float64 - - // Act - obj.SetOpacity(fernTestValueOpacity) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetQuadPoints_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderline{} - var fernTestValueQuadPoints []*DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem - - // Act - obj.SetQuadPoints(fernTestValueQuadPoints) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor(t *testing.T) { - t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor{} - var fernTestValueR int - obj.SetR(fernTestValueR) - assert.Equal(t, fernTestValueR, obj.R) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor{} - var fernTestValueG int - obj.SetG(fernTestValueG) - assert.Equal(t, fernTestValueG, obj.G) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor{} - var fernTestValueB int - obj.SetB(fernTestValueB) - assert.Equal(t, fernTestValueB, obj.B) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor(t *testing.T) { - t.Run("GetR", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor{} - var expected int - obj.R = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetR(), "getter should return the property value") - }) - - t.Run("GetR_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetR() // Should return zero value - }) - - t.Run("GetG", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor{} - var expected int - obj.G = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetG(), "getter should return the property value") - }) + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetG_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetG() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetB", func(t *testing.T) { + t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor{} - var expected int - obj.B = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var fernTestValueUpdatedBy *string - // Act & Assert - assert.Equal(t, expected, obj.GetB(), "getter should return the property value") - }) + // Act + obj.SetUpdatedBy(fernTestValueUpdatedBy) - t.Run("GetB_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetB() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") -} + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor(t *testing.T) { - t.Run("SetR_MarksExplicit", func(t *testing.T) { + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetActions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor{} - var fernTestValueR int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var fernTestValueActions *PdfAnnotationActions // Act - obj.SetR(fernTestValueR) + obj.SetActions(fernTestValueActions) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -195078,14 +234962,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Run("SetRawSubtypeCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor{} - var fernTestValueG int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var fernTestValueRawSubtypeCode int // Act - obj.SetG(fernTestValueG) + obj.SetRawSubtypeCode(fernTestValueRawSubtypeCode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -195109,14 +234993,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Run("SetRawSubtypeName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineColor{} - var fernTestValueB int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + var fernTestValueRawSubtypeName *string // Act - obj.SetB(fernTestValueB) + obj.SetRawSubtypeName(fernTestValueRawSubtypeName) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -195142,9 +235026,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags(t *testing.T) { t.Run("SetInvisible", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} var fernTestValueInvisible bool obj.SetInvisible(fernTestValueInvisible) assert.Equal(t, fernTestValueInvisible, obj.Invisible) @@ -195152,7 +235036,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin }) t.Run("SetHidden", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} var fernTestValueHidden bool obj.SetHidden(fernTestValueHidden) assert.Equal(t, fernTestValueHidden, obj.Hidden) @@ -195160,7 +235044,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin }) t.Run("SetPrint", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} var fernTestValuePrint bool obj.SetPrint(fernTestValuePrint) assert.Equal(t, fernTestValuePrint, obj.Print) @@ -195168,7 +235052,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin }) t.Run("SetNoZoom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} var fernTestValueNoZoom bool obj.SetNoZoom(fernTestValueNoZoom) assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) @@ -195176,7 +235060,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin }) t.Run("SetNoRotate", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} var fernTestValueNoRotate bool obj.SetNoRotate(fernTestValueNoRotate) assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) @@ -195184,7 +235068,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin }) t.Run("SetNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} var fernTestValueNoView bool obj.SetNoView(fernTestValueNoView) assert.Equal(t, fernTestValueNoView, obj.NoView) @@ -195192,7 +235076,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin }) t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} var fernTestValueReadOnly bool obj.SetReadOnly(fernTestValueReadOnly) assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) @@ -195200,7 +235084,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin }) t.Run("SetLocked", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} var fernTestValueLocked bool obj.SetLocked(fernTestValueLocked) assert.Equal(t, fernTestValueLocked, obj.Locked) @@ -195208,7 +235092,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin }) t.Run("SetToggleNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} var fernTestValueToggleNoView bool obj.SetToggleNoView(fernTestValueToggleNoView) assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) @@ -195216,7 +235100,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin }) t.Run("SetLockedContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} var fernTestValueLockedContents bool obj.SetLockedContents(fernTestValueLockedContents) assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) @@ -195225,11 +235109,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags(t *testing.T) { t.Run("GetInvisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} var expected bool obj.Invisible = expected @@ -195239,7 +235123,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetInvisible_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -195252,7 +235136,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetHidden", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} var expected bool obj.Hidden = expected @@ -195262,7 +235146,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetHidden_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -195275,7 +235159,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetPrint", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} var expected bool obj.Print = expected @@ -195285,7 +235169,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetPrint_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -195298,7 +235182,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetNoZoom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} var expected bool obj.NoZoom = expected @@ -195308,7 +235192,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -195321,7 +235205,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetNoRotate", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} var expected bool obj.NoRotate = expected @@ -195331,7 +235215,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -195344,7 +235228,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} var expected bool obj.NoView = expected @@ -195354,7 +235238,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -195367,7 +235251,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetReadOnly", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} var expected bool obj.ReadOnly = expected @@ -195377,7 +235261,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -195390,7 +235274,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetLocked", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} var expected bool obj.Locked = expected @@ -195400,7 +235284,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetLocked_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -195413,7 +235297,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetToggleNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} var expected bool obj.ToggleNoView = expected @@ -195423,7 +235307,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -195436,7 +235320,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetLockedContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} var expected bool obj.LockedContents = expected @@ -195446,7 +235330,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -195458,11 +235342,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags(t *testing.T) { t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} var fernTestValueInvisible bool // Act @@ -195493,7 +235377,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetHidden_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} var fernTestValueHidden bool // Act @@ -195524,7 +235408,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPrint_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} var fernTestValuePrint bool // Act @@ -195555,7 +235439,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} var fernTestValueNoZoom bool // Act @@ -195586,7 +235470,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} var fernTestValueNoRotate bool // Act @@ -195617,7 +235501,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} var fernTestValueNoView bool // Act @@ -195648,7 +235532,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} var fernTestValueReadOnly bool // Act @@ -195679,7 +235563,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetLocked_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} var fernTestValueLocked bool // Act @@ -195710,7 +235594,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} var fernTestValueToggleNoView bool // Act @@ -195741,7 +235625,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} var fernTestValueLockedContents bool // Act @@ -195771,11 +235655,11 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo{} var expected string obj.Kind = expected @@ -195785,7 +235669,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -195798,8 +235682,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -195809,7 +235693,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo{} obj.ObjectNumber = nil // Act & Assert @@ -195818,7 +235702,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -195831,8 +235715,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm obj.Nm = expected // Act & Assert @@ -195842,7 +235726,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo{} obj.Nm = nil // Act & Assert @@ -195851,7 +235735,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -195864,8 +235748,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex obj.Index = expected // Act & Assert @@ -195875,7 +235759,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo{} obj.Index = nil // Act & Assert @@ -195884,7 +235768,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -195896,9 +235780,9 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -195906,7 +235790,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -195914,8 +235798,8 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -195923,11 +235807,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex{} var expected int obj.PageObjectNumber = expected @@ -195937,7 +235821,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -195950,7 +235834,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex{} var expected int obj.Index = expected @@ -195960,7 +235844,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -195973,8 +235857,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision obj.Revision = expected // Act & Assert @@ -195984,7 +235868,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex{} obj.Revision = nil // Act & Assert @@ -195993,7 +235877,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -196005,11 +235889,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex{} var fernTestValuePageObjectNumber int // Act @@ -196040,7 +235924,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex{} var fernTestValueIndex int // Act @@ -196071,8 +235955,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -196101,9 +235985,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -196111,7 +235995,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -196119,7 +236003,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -196128,11 +236012,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision{} var expected string obj.DocSessionID = expected @@ -196142,7 +236026,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -196155,7 +236039,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -196165,7 +236049,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -196178,7 +236062,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision{} var expected int obj.Generation = expected @@ -196188,7 +236072,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -196200,11 +236084,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision{} var fernTestValueDocSessionID string // Act @@ -196232,843 +236116,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision{} - var fernTestValuePageObjectNumber int - - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToIndexRevision{} - var fernTestValueGeneration int - - // Act - obj.SetGeneration(fernTestValueGeneration) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm{} - var fernTestValueNm string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm{} - var expected string - obj.Nm = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") - }) - - t.Run("GetNm_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNm() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm{} - var fernTestValuePageObjectNumber int - - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetNm_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToNm{} - var fernTestValueNm string - - // Act - obj.SetNm(fernTestValueNm) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetAnnotObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") - }) - - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAnnotObjectNumber() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber{} - var fernTestValuePageObjectNumber int - - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int - - // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem(t *testing.T) { - t.Run("SetP1", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem{} - var fernTestValueP1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1 - obj.SetP1(fernTestValueP1) - assert.Equal(t, fernTestValueP1, obj.P1) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetP2", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem{} - var fernTestValueP2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2 - obj.SetP2(fernTestValueP2) - assert.Equal(t, fernTestValueP2, obj.P2) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetP3", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem{} - var fernTestValueP3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3 - obj.SetP3(fernTestValueP3) - assert.Equal(t, fernTestValueP3, obj.P3) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetP4", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem{} - var fernTestValueP4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4 - obj.SetP4(fernTestValueP4) - assert.Equal(t, fernTestValueP4, obj.P4) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem(t *testing.T) { - t.Run("GetP1", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1 - obj.P1 = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetP1(), "getter should return the property value") - }) - - t.Run("GetP1_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem{} - obj.P1 = nil - - // Act & Assert - assert.Nil(t, obj.GetP1(), "getter should return nil when property is nil") - }) - - t.Run("GetP1_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetP1() // Should return zero value - }) - - t.Run("GetP2", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2 - obj.P2 = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetP2(), "getter should return the property value") - }) - - t.Run("GetP2_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem{} - obj.P2 = nil - - // Act & Assert - assert.Nil(t, obj.GetP2(), "getter should return nil when property is nil") - }) - - t.Run("GetP2_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetP2() // Should return zero value - }) - - t.Run("GetP3", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3 - obj.P3 = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetP3(), "getter should return the property value") - }) - - t.Run("GetP3_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem{} - obj.P3 = nil - - // Act & Assert - assert.Nil(t, obj.GetP3(), "getter should return nil when property is nil") - }) - - t.Run("GetP3_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetP3() // Should return zero value - }) - - t.Run("GetP4", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4 - obj.P4 = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetP4(), "getter should return the property value") - }) - - t.Run("GetP4_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem{} - obj.P4 = nil - - // Act & Assert - assert.Nil(t, obj.GetP4(), "getter should return nil when property is nil") - }) - - t.Run("GetP4_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetP4() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem(t *testing.T) { - t.Run("SetP1_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem{} - var fernTestValueP1 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1 - - // Act - obj.SetP1(fernTestValueP1) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetP2_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem{} - var fernTestValueP2 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2 - - // Act - obj.SetP2(fernTestValueP2) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetP3_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem{} - var fernTestValueP3 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3 - - // Act - obj.SetP3(fernTestValueP3) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetP4_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItem{} - var fernTestValueP4 *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4 - - // Act - obj.SetP4(fernTestValueP4) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1(t *testing.T) { - t.Run("GetX", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1{} - var expected float64 - obj.X = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") - }) - - t.Run("GetX_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1 - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetX() // Should return zero value - }) - - t.Run("GetY", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1{} - var expected float64 - obj.Y = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") - }) - - t.Run("GetY_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1 - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetY() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1{} - var fernTestValueX float64 - - // Act - obj.SetX(fernTestValueX) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetY_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP1{} - var fernTestValueY float64 - - // Act - obj.SetY(fernTestValueY) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2(t *testing.T) { - t.Run("GetX", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2{} - var expected float64 - obj.X = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") - }) - - t.Run("GetX_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2 - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetX() // Should return zero value - }) - - t.Run("GetY", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2{} - var expected float64 - obj.Y = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") - }) - - t.Run("GetY_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2 - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetY() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2{} - var fernTestValueX float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision{} + var fernTestValuePageObjectNumber int // Act - obj.SetX(fernTestValueX) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -197092,14 +236147,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP2{} - var fernTestValueY float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision{} + var fernTestValueGeneration int // Act - obj.SetY(fernTestValueY) + obj.SetGeneration(fernTestValueGeneration) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -197125,83 +236180,83 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) + t.Run("SetNm", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm{} + var fernTestValueNm string + obj.SetNm(fernTestValueNm) + assert.Equal(t, fernTestValueNm, obj.Nm) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3(t *testing.T) { - t.Run("GetX", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3{} - var expected float64 - obj.X = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetX() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetY", func(t *testing.T) { + t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3{} - var expected float64 - obj.Y = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm{} + var expected string + obj.Nm = expected // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") }) - t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetY() // Should return zero value + _ = obj.GetNm() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3{} - var fernTestValueX float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm{} + var fernTestValuePageObjectNumber int // Act - obj.SetX(fernTestValueX) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -197225,14 +236280,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP3{} - var fernTestValueY float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm{} + var fernTestValueNm string // Act - obj.SetY(fernTestValueY) + obj.SetNm(fernTestValueNm) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -197258,83 +236313,83 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4(t *testing.T) { - t.Run("SetX", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4{} - var fernTestValueX float64 - obj.SetX(fernTestValueX) - assert.Equal(t, fernTestValueX, obj.X) +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetY", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4{} - var fernTestValueY float64 - obj.SetY(fernTestValueY) - assert.Equal(t, fernTestValueY, obj.Y) + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4(t *testing.T) { - t.Run("GetX", func(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4{} - var expected float64 - obj.X = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetX(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetX() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetY", func(t *testing.T) { + t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4{} - var expected float64 - obj.Y = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber{} + var expected int + obj.AnnotObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetY(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") }) - t.Run("GetY_NilReceiver", func(t *testing.T) { + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4 + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetY() // Should return zero value + _ = obj.GetAnnotObjectNumber() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4(t *testing.T) { - t.Run("SetX_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4{} - var fernTestValueX float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber{} + var fernTestValuePageObjectNumber int // Act - obj.SetX(fernTestValueX) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -197358,14 +236413,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineQuadPointsItemP4{} - var fernTestValueY float64 + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber{} + var fernTestValueAnnotObjectNumber int // Act - obj.SetY(fernTestValueY) + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -197391,9 +236446,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect(t *testing.T) { t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} var fernTestValueLeft float64 obj.SetLeft(fernTestValueLeft) assert.Equal(t, fernTestValueLeft, obj.Left) @@ -197401,7 +236456,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin }) t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} var fernTestValueBottom float64 obj.SetBottom(fernTestValueBottom) assert.Equal(t, fernTestValueBottom, obj.Bottom) @@ -197409,7 +236464,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin }) t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} var fernTestValueRight float64 obj.SetRight(fernTestValueRight) assert.Equal(t, fernTestValueRight, obj.Right) @@ -197417,7 +236472,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin }) t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} var fernTestValueTop float64 obj.SetTop(fernTestValueTop) assert.Equal(t, fernTestValueTop, obj.Top) @@ -197426,11 +236481,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect(t *testing.T) { t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} var expected float64 obj.Left = expected @@ -197440,7 +236495,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -197453,7 +236508,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} var expected float64 obj.Bottom = expected @@ -197463,7 +236518,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -197476,7 +236531,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} var expected float64 obj.Right = expected @@ -197486,7 +236541,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -197499,7 +236554,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} var expected float64 obj.Top = expected @@ -197509,7 +236564,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -197521,11 +236576,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect(t *testing.T) { t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} var fernTestValueLeft float64 // Act @@ -197556,7 +236611,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} var fernTestValueBottom float64 // Act @@ -197587,7 +236642,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} var fernTestValueRight float64 // Act @@ -197618,7 +236673,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} var fernTestValueTop float64 // Act @@ -197648,11 +236703,11 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef{} var expected string obj.Kind = expected @@ -197662,7 +236717,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -197675,8 +236730,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -197686,7 +236741,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef{} obj.ObjectNumber = nil // Act & Assert @@ -197695,7 +236750,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -197708,8 +236763,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm obj.Nm = expected // Act & Assert @@ -197719,7 +236774,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef{} obj.Nm = nil // Act & Assert @@ -197728,7 +236783,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -197741,8 +236796,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex obj.Index = expected // Act & Assert @@ -197752,7 +236807,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef{} obj.Index = nil // Act & Assert @@ -197761,7 +236816,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -197773,9 +236828,9 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -197783,7 +236838,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -197791,8 +236846,8 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -197800,11 +236855,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex{} var expected int obj.PageObjectNumber = expected @@ -197814,7 +236869,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -197827,7 +236882,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex{} var expected int obj.Index = expected @@ -197837,7 +236892,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -197850,8 +236905,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision obj.Revision = expected // Act & Assert @@ -197861,7 +236916,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex{} obj.Revision = nil // Act & Assert @@ -197870,7 +236925,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -197882,11 +236937,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex{} var fernTestValuePageObjectNumber int // Act @@ -197917,7 +236972,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex{} var fernTestValueIndex int // Act @@ -197948,8 +237003,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -197978,9 +237033,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -197988,7 +237043,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -197996,7 +237051,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -198005,11 +237060,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision{} var expected string obj.DocSessionID = expected @@ -198019,7 +237074,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -198032,7 +237087,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -198042,7 +237097,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -198055,7 +237110,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision{} var expected int obj.Generation = expected @@ -198065,7 +237120,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -198077,11 +237132,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision{} var fernTestValueDocSessionID string // Act @@ -198112,7 +237167,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -198143,7 +237198,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision{} var fernTestValueGeneration int // Act @@ -198173,9 +237228,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -198183,7 +237238,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm{} var fernTestValueNm string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -198192,11 +237247,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm{} var expected int obj.PageObjectNumber = expected @@ -198206,7 +237261,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -198219,7 +237274,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm{} var expected string obj.Nm = expected @@ -198229,7 +237284,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -198241,11 +237296,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm{} var fernTestValuePageObjectNumber int // Act @@ -198276,7 +237331,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm{} var fernTestValueNm string // Act @@ -198306,9 +237361,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -198316,7 +237371,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin }) t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber{} var fernTestValueAnnotObjectNumber int obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) @@ -198325,11 +237380,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber{} var expected int obj.PageObjectNumber = expected @@ -198339,7 +237394,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -198352,7 +237407,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber{} var expected int obj.AnnotObjectNumber = expected @@ -198362,7 +237417,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -198374,11 +237429,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlin } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber{} var fernTestValuePageObjectNumber int // Act @@ -198409,7 +237464,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnderlineRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber{} var fernTestValueAnnotObjectNumber int // Act @@ -198439,17 +237494,17 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget(t *testing.T) { t.Run("SetRef", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef obj.SetRef(fernTestValueRef) assert.Equal(t, fernTestValueRef, obj.Ref) assert.NotNil(t, obj.explicitFields) }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -198457,7 +237512,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -198465,15 +237520,15 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetIdentityQuality", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality obj.SetIdentityQuality(fernTestValueIdentityQuality) assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) assert.NotNil(t, obj.explicitFields) }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} var fernTestValueNm *string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -198481,23 +237536,23 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetFlags", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags obj.SetFlags(fernTestValueFlags) assert.Equal(t, fernTestValueFlags, obj.Flags) assert.NotNil(t, obj.explicitFields) }) t.Run("SetRect", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect obj.SetRect(fernTestValueRect) assert.Equal(t, fernTestValueRect, obj.Rect) assert.NotNil(t, obj.explicitFields) }) t.Run("SetContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} var fernTestValueContents *string obj.SetContents(fernTestValueContents) assert.Equal(t, fernTestValueContents, obj.Contents) @@ -198505,7 +237560,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetSubject", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} var fernTestValueSubject *string obj.SetSubject(fernTestValueSubject) assert.Equal(t, fernTestValueSubject, obj.Subject) @@ -198513,7 +237568,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetAuthor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} var fernTestValueAuthor *string obj.SetAuthor(fernTestValueAuthor) assert.Equal(t, fernTestValueAuthor, obj.Author) @@ -198521,7 +237576,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetCreated", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} var fernTestValueCreated *time.Time obj.SetCreated(fernTestValueCreated) assert.Equal(t, fernTestValueCreated, obj.Created) @@ -198529,7 +237584,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetModified", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} var fernTestValueModified *time.Time obj.SetModified(fernTestValueModified) assert.Equal(t, fernTestValueModified, obj.Modified) @@ -198537,31 +237592,31 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetBlendMode", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode obj.SetBlendMode(fernTestValueBlendMode) assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) assert.NotNil(t, obj.explicitFields) }) t.Run("SetInReplyTo", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo obj.SetInReplyTo(fernTestValueInReplyTo) assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) assert.NotNil(t, obj.explicitFields) }) t.Run("SetReplyType", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType obj.SetReplyType(fernTestValueReplyType) assert.Equal(t, fernTestValueReplyType, obj.ReplyType) assert.NotNil(t, obj.explicitFields) }) t.Run("SetUserID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} var fernTestValueUserID *string obj.SetUserID(fernTestValueUserID) assert.Equal(t, fernTestValueUserID, obj.UserID) @@ -198569,7 +237624,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetGroupID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} var fernTestValueGroupID *string obj.SetGroupID(fernTestValueGroupID) assert.Equal(t, fernTestValueGroupID, obj.GroupID) @@ -198577,7 +237632,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetCreatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} var fernTestValueCreatedBy *string obj.SetCreatedBy(fernTestValueCreatedBy) assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) @@ -198585,7 +237640,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetUpdatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} var fernTestValueUpdatedBy *string obj.SetUpdatedBy(fernTestValueUpdatedBy) assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) @@ -198593,37 +237648,101 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetActions", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} var fernTestValueActions *PdfAnnotationActions obj.SetActions(fernTestValueActions) assert.Equal(t, fernTestValueActions, obj.Actions) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRawSubtypeCode", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} - var fernTestValueRawSubtypeCode int - obj.SetRawSubtypeCode(fernTestValueRawSubtypeCode) - assert.Equal(t, fernTestValueRawSubtypeCode, obj.RawSubtypeCode) + t.Run("SetColor", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor + obj.SetColor(fernTestValueColor) + assert.Equal(t, fernTestValueColor, obj.Color) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRawSubtypeName", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} - var fernTestValueRawSubtypeName *string - obj.SetRawSubtypeName(fernTestValueRawSubtypeName) - assert.Equal(t, fernTestValueRawSubtypeName, obj.RawSubtypeName) + t.Run("SetInteriorColor", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor + obj.SetInteriorColor(fernTestValueInteriorColor) + assert.Equal(t, fernTestValueInteriorColor, obj.InteriorColor) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetStrokeWidth", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueStrokeWidth float64 + obj.SetStrokeWidth(fernTestValueStrokeWidth) + assert.Equal(t, fernTestValueStrokeWidth, obj.StrokeWidth) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetBorderStyle", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle + obj.SetBorderStyle(fernTestValueBorderStyle) + assert.Equal(t, fernTestValueBorderStyle, obj.BorderStyle) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFontFamily", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueFontFamily *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily + obj.SetFontFamily(fernTestValueFontFamily) + assert.Equal(t, fernTestValueFontFamily, obj.FontFamily) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFontSize", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueFontSize *float64 + obj.SetFontSize(fernTestValueFontSize) + assert.Equal(t, fernTestValueFontSize, obj.FontSize) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFontColor", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueFontColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor + obj.SetFontColor(fernTestValueFontColor) + assert.Equal(t, fernTestValueFontColor, obj.FontColor) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetTextAlign", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueTextAlign DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign + obj.SetTextAlign(fernTestValueTextAlign) + assert.Equal(t, fernTestValueTextAlign, obj.TextAlign) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFieldObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueFieldObjectNumber int + obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) + assert.Equal(t, fernTestValueFieldObjectNumber, obj.FieldObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFieldFamily", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueFieldFamily DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily + obj.SetFieldFamily(fernTestValueFieldFamily) + assert.Equal(t, fernTestValueFieldFamily, obj.FieldFamily) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget(t *testing.T) { t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef obj.Ref = expected // Act & Assert @@ -198633,7 +237752,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetRef_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} obj.Ref = nil // Act & Assert @@ -198642,7 +237761,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetRef_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -198655,7 +237774,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} var expected int obj.PageObjectNumber = expected @@ -198665,7 +237784,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -198678,7 +237797,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} var expected int obj.Index = expected @@ -198688,7 +237807,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -198701,8 +237820,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetIdentityQuality", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality obj.IdentityQuality = expected // Act & Assert @@ -198711,7 +237830,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -198724,7 +237843,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} var expected *string obj.Nm = expected @@ -198735,7 +237854,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} obj.Nm = nil // Act & Assert @@ -198744,7 +237863,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -198757,8 +237876,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags obj.Flags = expected // Act & Assert @@ -198768,7 +237887,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} obj.Flags = nil // Act & Assert @@ -198777,7 +237896,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -198790,8 +237909,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetRect", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect obj.Rect = expected // Act & Assert @@ -198801,7 +237920,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetRect_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} obj.Rect = nil // Act & Assert @@ -198810,7 +237929,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetRect_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -198823,7 +237942,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} var expected *string obj.Contents = expected @@ -198834,7 +237953,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetContents_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} obj.Contents = nil // Act & Assert @@ -198843,7 +237962,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -198856,7 +237975,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetSubject", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} var expected *string obj.Subject = expected @@ -198867,7 +237986,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetSubject_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} obj.Subject = nil // Act & Assert @@ -198876,7 +237995,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetSubject_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -198889,7 +238008,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetAuthor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} var expected *string obj.Author = expected @@ -198900,7 +238019,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetAuthor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} obj.Author = nil // Act & Assert @@ -198909,7 +238028,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetAuthor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -198922,7 +238041,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetCreated", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} var expected *time.Time obj.Created = expected @@ -198933,7 +238052,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetCreated_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} obj.Created = nil // Act & Assert @@ -198942,7 +238061,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetCreated_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -198955,7 +238074,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetModified", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} var expected *time.Time obj.Modified = expected @@ -198966,7 +238085,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetModified_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} obj.Modified = nil // Act & Assert @@ -198975,7 +238094,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetModified_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -198988,8 +238107,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetBlendMode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode obj.BlendMode = expected // Act & Assert @@ -198998,7 +238117,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -199011,8 +238130,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetInReplyTo", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo obj.InReplyTo = expected // Act & Assert @@ -199022,7 +238141,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetInReplyTo_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} obj.InReplyTo = nil // Act & Assert @@ -199031,7 +238150,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -199044,8 +238163,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetReplyType", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType obj.ReplyType = expected // Act & Assert @@ -199055,7 +238174,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetReplyType_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} obj.ReplyType = nil // Act & Assert @@ -199064,7 +238183,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetReplyType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -199077,7 +238196,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetUserID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} var expected *string obj.UserID = expected @@ -199088,7 +238207,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetUserID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} obj.UserID = nil // Act & Assert @@ -199097,7 +238216,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetUserID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -199110,7 +238229,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetGroupID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} var expected *string obj.GroupID = expected @@ -199121,7 +238240,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetGroupID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} obj.GroupID = nil // Act & Assert @@ -199130,7 +238249,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetGroupID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -199143,7 +238262,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetCreatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} var expected *string obj.CreatedBy = expected @@ -199154,7 +238273,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetCreatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} obj.CreatedBy = nil // Act & Assert @@ -199163,7 +238282,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -199176,7 +238295,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetUpdatedBy", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} var expected *string obj.UpdatedBy = expected @@ -199187,7 +238306,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} obj.UpdatedBy = nil // Act & Assert @@ -199196,7 +238315,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -199209,7 +238328,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetActions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} var expected *PdfAnnotationActions obj.Actions = expected @@ -199220,7 +238339,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetActions_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} obj.Actions = nil // Act & Assert @@ -199229,7 +238348,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetActions_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -199239,70 +238358,294 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor _ = obj.GetActions() // Should return zero value }) - t.Run("GetRawSubtypeCode", func(t *testing.T) { + t.Run("GetColor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} - var expected int - obj.RawSubtypeCode = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor + obj.Color = expected // Act & Assert - assert.Equal(t, expected, obj.GetRawSubtypeCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") }) - t.Run("GetRawSubtypeCode_NilReceiver", func(t *testing.T) { + t.Run("GetColor_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + obj.Color = nil + + // Act & Assert + assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") + }) + + t.Run("GetColor_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRawSubtypeCode() // Should return zero value + _ = obj.GetColor() // Should return zero value }) - t.Run("GetRawSubtypeName", func(t *testing.T) { + t.Run("GetInteriorColor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} - var expected *string - obj.RawSubtypeName = expected + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor + obj.InteriorColor = expected // Act & Assert - assert.Equal(t, expected, obj.GetRawSubtypeName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetInteriorColor(), "getter should return the property value") }) - t.Run("GetRawSubtypeName_NilValue", func(t *testing.T) { + t.Run("GetInteriorColor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} - obj.RawSubtypeName = nil + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + obj.InteriorColor = nil // Act & Assert - assert.Nil(t, obj.GetRawSubtypeName(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetInteriorColor(), "getter should return nil when property is nil") }) - t.Run("GetRawSubtypeName_NilReceiver", func(t *testing.T) { + t.Run("GetInteriorColor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRawSubtypeName() // Should return zero value + _ = obj.GetInteriorColor() // Should return zero value + }) + + t.Run("GetStrokeWidth", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var expected float64 + obj.StrokeWidth = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetStrokeWidth(), "getter should return the property value") + }) + + t.Run("GetStrokeWidth_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetStrokeWidth() // Should return zero value + }) + + t.Run("GetBorderStyle", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle + obj.BorderStyle = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetBorderStyle(), "getter should return the property value") + }) + + t.Run("GetBorderStyle_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetBorderStyle() // Should return zero value + }) + + t.Run("GetFontFamily", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily + obj.FontFamily = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFontFamily(), "getter should return the property value") + }) + + t.Run("GetFontFamily_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + obj.FontFamily = nil + + // Act & Assert + assert.Nil(t, obj.GetFontFamily(), "getter should return nil when property is nil") + }) + + t.Run("GetFontFamily_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFontFamily() // Should return zero value + }) + + t.Run("GetFontSize", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var expected *float64 + obj.FontSize = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFontSize(), "getter should return the property value") + }) + + t.Run("GetFontSize_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + obj.FontSize = nil + + // Act & Assert + assert.Nil(t, obj.GetFontSize(), "getter should return nil when property is nil") + }) + + t.Run("GetFontSize_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFontSize() // Should return zero value + }) + + t.Run("GetFontColor", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor + obj.FontColor = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFontColor(), "getter should return the property value") + }) + + t.Run("GetFontColor_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + obj.FontColor = nil + + // Act & Assert + assert.Nil(t, obj.GetFontColor(), "getter should return nil when property is nil") + }) + + t.Run("GetFontColor_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFontColor() // Should return zero value + }) + + t.Run("GetTextAlign", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign + obj.TextAlign = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetTextAlign(), "getter should return the property value") + }) + + t.Run("GetTextAlign_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetTextAlign() // Should return zero value + }) + + t.Run("GetFieldObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var expected int + obj.FieldObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFieldObjectNumber(), "getter should return the property value") + }) + + t.Run("GetFieldObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFieldObjectNumber() // Should return zero value + }) + + t.Run("GetFieldFamily", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily + obj.FieldFamily = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFieldFamily(), "getter should return the property value") + }) + + t.Run("GetFieldFamily_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFieldFamily() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget(t *testing.T) { t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef // Act obj.SetRef(fernTestValueRef) @@ -199332,7 +238675,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} var fernTestValuePageObjectNumber int // Act @@ -199363,7 +238706,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} var fernTestValueIndex int // Act @@ -199394,8 +238737,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedIdentityQuality + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality // Act obj.SetIdentityQuality(fernTestValueIdentityQuality) @@ -199425,7 +238768,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} var fernTestValueNm *string // Act @@ -199456,8 +238799,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags // Act obj.SetFlags(fernTestValueFlags) @@ -199487,8 +238830,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect // Act obj.SetRect(fernTestValueRect) @@ -199518,7 +238861,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} var fernTestValueContents *string // Act @@ -199549,7 +238892,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetSubject_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} var fernTestValueSubject *string // Act @@ -199580,7 +238923,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} var fernTestValueAuthor *string // Act @@ -199611,7 +238954,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetCreated_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} var fernTestValueCreated *time.Time // Act @@ -199642,7 +238985,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} var fernTestValueModified *time.Time // Act @@ -199673,8 +239016,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedBlendMode + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode // Act obj.SetBlendMode(fernTestValueBlendMode) @@ -199704,8 +239047,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo // Act obj.SetInReplyTo(fernTestValueInReplyTo) @@ -199732,14 +239075,355 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { + t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType + + // Act + obj.SetReplyType(fernTestValueReplyType) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetUserID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueUserID *string + + // Act + obj.SetUserID(fernTestValueUserID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueGroupID *string + + // Act + obj.SetGroupID(fernTestValueGroupID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueCreatedBy *string + + // Act + obj.SetCreatedBy(fernTestValueCreatedBy) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueUpdatedBy *string + + // Act + obj.SetUpdatedBy(fernTestValueUpdatedBy) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueActions *PdfAnnotationActions + + // Act + obj.SetActions(fernTestValueActions) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetColor_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor + + // Act + obj.SetColor(fernTestValueColor) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetInteriorColor_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor + + // Act + obj.SetInteriorColor(fernTestValueInteriorColor) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetStrokeWidth_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueStrokeWidth float64 + + // Act + obj.SetStrokeWidth(fernTestValueStrokeWidth) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetBorderStyle_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle + + // Act + obj.SetBorderStyle(fernTestValueBorderStyle) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFontFamily_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueFontFamily *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily + + // Act + obj.SetFontFamily(fernTestValueFontFamily) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFontSize_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedReplyType + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueFontSize *float64 // Act - obj.SetReplyType(fernTestValueReplyType) + obj.SetFontSize(fernTestValueFontSize) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -199763,14 +239447,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUserID_MarksExplicit", func(t *testing.T) { + t.Run("SetFontColor_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} - var fernTestValueUserID *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueFontColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor // Act - obj.SetUserID(fernTestValueUserID) + obj.SetFontColor(fernTestValueFontColor) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -199794,14 +239478,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { + t.Run("SetTextAlign_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} - var fernTestValueGroupID *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueTextAlign DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign // Act - obj.SetGroupID(fernTestValueGroupID) + obj.SetTextAlign(fernTestValueTextAlign) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -199825,14 +239509,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} - var fernTestValueCreatedBy *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueFieldObjectNumber int // Act - obj.SetCreatedBy(fernTestValueCreatedBy) + obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -199856,14 +239540,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetFieldFamily_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} - var fernTestValueUpdatedBy *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + var fernTestValueFieldFamily DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily // Act - obj.SetUpdatedBy(fernTestValueUpdatedBy) + obj.SetFieldFamily(fernTestValueFieldFamily) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -199887,14 +239571,116 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetActions_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor(t *testing.T) { + t.Run("SetR", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor{} + var fernTestValueR int + obj.SetR(fernTestValueR) + assert.Equal(t, fernTestValueR, obj.R) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetG", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor{} + var fernTestValueG int + obj.SetG(fernTestValueG) + assert.Equal(t, fernTestValueG, obj.G) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetB", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} - var fernTestValueActions *PdfAnnotationActions + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor{} + var expected int + obj.R = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") + }) + + t.Run("GetR_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetR() // Should return zero value + }) + + t.Run("GetG", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor{} + var expected int + obj.G = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") + }) + + t.Run("GetG_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetG() // Should return zero value + }) + + t.Run("GetB", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor{} + var expected int + obj.B = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + }) + + t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetB() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor{} + var fernTestValueR int // Act - obj.SetActions(fernTestValueActions) + obj.SetR(fernTestValueR) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -199918,14 +239704,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRawSubtypeCode_MarksExplicit", func(t *testing.T) { + t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} - var fernTestValueRawSubtypeCode int + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor{} + var fernTestValueG int // Act - obj.SetRawSubtypeCode(fernTestValueRawSubtypeCode) + obj.SetG(fernTestValueG) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -199949,14 +239735,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRawSubtypeName_MarksExplicit", func(t *testing.T) { + t.Run("SetB_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupported{} - var fernTestValueRawSubtypeName *string + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor{} + var fernTestValueB int // Act - obj.SetRawSubtypeName(fernTestValueRawSubtypeName) + obj.SetB(fernTestValueB) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -199982,9 +239768,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags(t *testing.T) { t.Run("SetInvisible", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} var fernTestValueInvisible bool obj.SetInvisible(fernTestValueInvisible) assert.Equal(t, fernTestValueInvisible, obj.Invisible) @@ -199992,7 +239778,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetHidden", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} var fernTestValueHidden bool obj.SetHidden(fernTestValueHidden) assert.Equal(t, fernTestValueHidden, obj.Hidden) @@ -200000,7 +239786,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetPrint", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} var fernTestValuePrint bool obj.SetPrint(fernTestValuePrint) assert.Equal(t, fernTestValuePrint, obj.Print) @@ -200008,7 +239794,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetNoZoom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} var fernTestValueNoZoom bool obj.SetNoZoom(fernTestValueNoZoom) assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) @@ -200016,7 +239802,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetNoRotate", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} var fernTestValueNoRotate bool obj.SetNoRotate(fernTestValueNoRotate) assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) @@ -200024,7 +239810,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} var fernTestValueNoView bool obj.SetNoView(fernTestValueNoView) assert.Equal(t, fernTestValueNoView, obj.NoView) @@ -200032,7 +239818,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} var fernTestValueReadOnly bool obj.SetReadOnly(fernTestValueReadOnly) assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) @@ -200040,7 +239826,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetLocked", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} var fernTestValueLocked bool obj.SetLocked(fernTestValueLocked) assert.Equal(t, fernTestValueLocked, obj.Locked) @@ -200048,7 +239834,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetToggleNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} var fernTestValueToggleNoView bool obj.SetToggleNoView(fernTestValueToggleNoView) assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) @@ -200056,7 +239842,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetLockedContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} var fernTestValueLockedContents bool obj.SetLockedContents(fernTestValueLockedContents) assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) @@ -200065,11 +239851,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags(t *testing.T) { t.Run("GetInvisible", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} var expected bool obj.Invisible = expected @@ -200079,7 +239865,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetInvisible_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -200092,7 +239878,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetHidden", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} var expected bool obj.Hidden = expected @@ -200102,7 +239888,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetHidden_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -200115,7 +239901,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetPrint", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} var expected bool obj.Print = expected @@ -200125,7 +239911,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetPrint_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -200138,7 +239924,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetNoZoom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} var expected bool obj.NoZoom = expected @@ -200148,7 +239934,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -200161,7 +239947,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetNoRotate", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} var expected bool obj.NoRotate = expected @@ -200171,7 +239957,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -200184,7 +239970,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} var expected bool obj.NoView = expected @@ -200194,7 +239980,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -200207,7 +239993,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetReadOnly", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} var expected bool obj.ReadOnly = expected @@ -200217,7 +240003,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -200230,7 +240016,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetLocked", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} var expected bool obj.Locked = expected @@ -200240,7 +240026,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetLocked_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -200253,7 +240039,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetToggleNoView", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} var expected bool obj.ToggleNoView = expected @@ -200263,7 +240049,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -200276,7 +240062,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetLockedContents", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} var expected bool obj.LockedContents = expected @@ -200286,7 +240072,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -200298,11 +240084,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags(t *testing.T) { t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} var fernTestValueInvisible bool // Act @@ -200330,14 +240116,76 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetHidden_MarksExplicit", func(t *testing.T) { + t.Run("SetHidden_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} + var fernTestValueHidden bool + + // Act + obj.SetHidden(fernTestValueHidden) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrint_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} + var fernTestValuePrint bool + + // Act + obj.SetPrint(fernTestValuePrint) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} - var fernTestValueHidden bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} + var fernTestValueNoZoom bool // Act - obj.SetHidden(fernTestValueHidden) + obj.SetNoZoom(fernTestValueNoZoom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -200361,14 +240209,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPrint_MarksExplicit", func(t *testing.T) { + t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} - var fernTestValuePrint bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} + var fernTestValueNoRotate bool // Act - obj.SetPrint(fernTestValuePrint) + obj.SetNoRotate(fernTestValueNoRotate) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -200392,14 +240240,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { + t.Run("SetNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} - var fernTestValueNoZoom bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} + var fernTestValueNoView bool // Act - obj.SetNoZoom(fernTestValueNoZoom) + obj.SetNoView(fernTestValueNoView) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -200423,14 +240271,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { + t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} - var fernTestValueNoRotate bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} + var fernTestValueReadOnly bool // Act - obj.SetNoRotate(fernTestValueNoRotate) + obj.SetReadOnly(fernTestValueReadOnly) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -200454,14 +240302,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoView_MarksExplicit", func(t *testing.T) { + t.Run("SetLocked_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} - var fernTestValueNoView bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} + var fernTestValueLocked bool // Act - obj.SetNoView(fernTestValueNoView) + obj.SetLocked(fernTestValueLocked) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -200485,14 +240333,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { + t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} - var fernTestValueReadOnly bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} + var fernTestValueToggleNoView bool // Act - obj.SetReadOnly(fernTestValueReadOnly) + obj.SetToggleNoView(fernTestValueToggleNoView) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -200516,14 +240364,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLocked_MarksExplicit", func(t *testing.T) { + t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} - var fernTestValueLocked bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} + var fernTestValueLockedContents bool // Act - obj.SetLocked(fernTestValueLocked) + obj.SetLockedContents(fernTestValueLockedContents) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -200547,14 +240395,116 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor(t *testing.T) { + t.Run("SetR", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor{} + var fernTestValueR int + obj.SetR(fernTestValueR) + assert.Equal(t, fernTestValueR, obj.R) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetG", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor{} + var fernTestValueG int + obj.SetG(fernTestValueG) + assert.Equal(t, fernTestValueG, obj.G) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetB", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} - var fernTestValueToggleNoView bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor{} + var expected int + obj.R = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") + }) + + t.Run("GetR_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetR() // Should return zero value + }) + + t.Run("GetG", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor{} + var expected int + obj.G = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") + }) + + t.Run("GetG_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetG() // Should return zero value + }) + + t.Run("GetB", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor{} + var expected int + obj.B = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + }) + + t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetB() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor{} + var fernTestValueR int // Act - obj.SetToggleNoView(fernTestValueToggleNoView) + obj.SetR(fernTestValueR) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -200578,14 +240528,45 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { + t.Run("SetG_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedFlags{} - var fernTestValueLockedContents bool + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor{} + var fernTestValueG int // Act - obj.SetLockedContents(fernTestValueLockedContents) + obj.SetG(fernTestValueG) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor{} + var fernTestValueB int + + // Act + obj.SetB(fernTestValueB) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -200611,11 +240592,11 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo{} var expected string obj.Kind = expected @@ -200625,7 +240606,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -200638,8 +240619,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -200649,7 +240630,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo{} obj.ObjectNumber = nil // Act & Assert @@ -200658,7 +240639,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -200671,8 +240652,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm obj.Nm = expected // Act & Assert @@ -200682,7 +240663,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo{} obj.Nm = nil // Act & Assert @@ -200691,7 +240672,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -200704,8 +240685,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex obj.Index = expected // Act & Assert @@ -200715,7 +240696,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo{} obj.Index = nil // Act & Assert @@ -200724,7 +240705,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyTo + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -200736,9 +240717,9 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -200746,7 +240727,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -200754,8 +240735,8 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -200763,11 +240744,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex{} var expected int obj.PageObjectNumber = expected @@ -200777,7 +240758,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -200790,7 +240771,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex{} var expected int obj.Index = expected @@ -200800,7 +240781,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -200813,8 +240794,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision obj.Revision = expected // Act & Assert @@ -200824,7 +240805,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex{} obj.Revision = nil // Act & Assert @@ -200833,7 +240814,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -200845,11 +240826,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex{} var fernTestValuePageObjectNumber int // Act @@ -200880,7 +240861,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex{} var fernTestValueIndex int // Act @@ -200911,8 +240892,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -200941,9 +240922,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -200951,7 +240932,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -200959,7 +240940,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -200968,11 +240949,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision{} var expected string obj.DocSessionID = expected @@ -200982,7 +240963,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -200995,7 +240976,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -201005,7 +240986,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -201018,7 +240999,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision{} var expected int obj.Generation = expected @@ -201028,7 +241009,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -201040,11 +241021,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision{} var fernTestValueDocSessionID string // Act @@ -201075,7 +241056,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -201106,7 +241087,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision{} var fernTestValueGeneration int // Act @@ -201136,9 +241117,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -201146,7 +241127,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm{} var fernTestValueNm string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -201155,11 +241136,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm{} var expected int obj.PageObjectNumber = expected @@ -201169,7 +241150,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -201182,7 +241163,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm{} var expected string obj.Nm = expected @@ -201192,7 +241173,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -201204,11 +241185,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm{} var fernTestValuePageObjectNumber int // Act @@ -201239,7 +241220,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm{} var fernTestValueNm string // Act @@ -201269,9 +241250,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -201279,7 +241260,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber{} var fernTestValueAnnotObjectNumber int obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) @@ -201288,11 +241269,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber{} var expected int obj.PageObjectNumber = expected @@ -201302,7 +241283,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -201315,7 +241296,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber{} var expected int obj.AnnotObjectNumber = expected @@ -201325,7 +241306,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -201337,11 +241318,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber{} var fernTestValuePageObjectNumber int // Act @@ -201372,7 +241353,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedInReplyToObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber{} var fernTestValueAnnotObjectNumber int // Act @@ -201402,9 +241383,204 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor(t *testing.T) { + t.Run("SetR", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor{} + var fernTestValueR int + obj.SetR(fernTestValueR) + assert.Equal(t, fernTestValueR, obj.R) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetG", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor{} + var fernTestValueG int + obj.SetG(fernTestValueG) + assert.Equal(t, fernTestValueG, obj.G) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetB", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor{} + var fernTestValueB int + obj.SetB(fernTestValueB) + assert.Equal(t, fernTestValueB, obj.B) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor(t *testing.T) { + t.Run("GetR", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor{} + var expected int + obj.R = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetR(), "getter should return the property value") + }) + + t.Run("GetR_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetR() // Should return zero value + }) + + t.Run("GetG", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor{} + var expected int + obj.G = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetG(), "getter should return the property value") + }) + + t.Run("GetG_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetG() // Should return zero value + }) + + t.Run("GetB", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor{} + var expected int + obj.B = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + }) + + t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetB() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor(t *testing.T) { + t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor{} + var fernTestValueR int + + // Act + obj.SetR(fernTestValueR) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor{} + var fernTestValueG int + + // Act + obj.SetG(fernTestValueG) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor{} + var fernTestValueB int + + // Act + obj.SetB(fernTestValueB) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect(t *testing.T) { t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} var fernTestValueLeft float64 obj.SetLeft(fernTestValueLeft) assert.Equal(t, fernTestValueLeft, obj.Left) @@ -201412,7 +241588,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} var fernTestValueBottom float64 obj.SetBottom(fernTestValueBottom) assert.Equal(t, fernTestValueBottom, obj.Bottom) @@ -201420,7 +241596,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} var fernTestValueRight float64 obj.SetRight(fernTestValueRight) assert.Equal(t, fernTestValueRight, obj.Right) @@ -201428,7 +241604,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} var fernTestValueTop float64 obj.SetTop(fernTestValueTop) assert.Equal(t, fernTestValueTop, obj.Top) @@ -201437,11 +241613,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect(t *testing.T) { t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} var expected float64 obj.Left = expected @@ -201451,7 +241627,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -201464,7 +241640,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} var expected float64 obj.Bottom = expected @@ -201474,7 +241650,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -201487,7 +241663,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} var expected float64 obj.Right = expected @@ -201497,7 +241673,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -201510,7 +241686,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} var expected float64 obj.Top = expected @@ -201520,7 +241696,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -201532,11 +241708,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect(t *testing.T) { t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} var fernTestValueLeft float64 // Act @@ -201567,7 +241743,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} var fernTestValueBottom float64 // Act @@ -201598,7 +241774,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} var fernTestValueRight float64 // Act @@ -201629,7 +241805,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRect{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} var fernTestValueTop float64 // Act @@ -201659,11 +241835,11 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef{} var expected string obj.Kind = expected @@ -201673,7 +241849,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -201686,8 +241862,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -201697,7 +241873,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef{} obj.ObjectNumber = nil // Act & Assert @@ -201706,7 +241882,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -201719,8 +241895,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm obj.Nm = expected // Act & Assert @@ -201730,7 +241906,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetNm_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef{} obj.Nm = nil // Act & Assert @@ -201739,7 +241915,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -201752,8 +241928,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex obj.Index = expected // Act & Assert @@ -201763,7 +241939,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetIndex_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef{} obj.Index = nil // Act & Assert @@ -201772,7 +241948,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRef + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -201784,9 +241960,9 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -201794,7 +241970,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex{} var fernTestValueIndex int obj.SetIndex(fernTestValueIndex) assert.Equal(t, fernTestValueIndex, obj.Index) @@ -201802,8 +241978,8 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) @@ -201811,11 +241987,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex{} var expected int obj.PageObjectNumber = expected @@ -201825,7 +242001,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -201838,7 +242014,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetIndex", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex{} var expected int obj.Index = expected @@ -201848,7 +242024,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetIndex_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -201861,8 +242037,8 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex{} + var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision obj.Revision = expected // Act & Assert @@ -201872,7 +242048,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex{} obj.Revision = nil // Act & Assert @@ -201881,7 +242057,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -201893,11 +242069,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex{} var fernTestValuePageObjectNumber int // Act @@ -201928,7 +242104,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetIndex_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex{} var fernTestValueIndex int // Act @@ -201959,8 +242135,8 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision // Act obj.SetRevision(fernTestValueRevision) @@ -201989,9 +242165,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -201999,7 +242175,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -202007,7 +242183,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -202016,11 +242192,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision{} var expected string obj.DocSessionID = expected @@ -202030,7 +242206,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -202043,7 +242219,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision{} var expected int obj.PageObjectNumber = expected @@ -202053,7 +242229,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -202066,7 +242242,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision{} var expected int obj.Generation = expected @@ -202076,7 +242252,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -202088,11 +242264,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision{} var fernTestValueDocSessionID string // Act @@ -202123,7 +242299,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision{} var fernTestValuePageObjectNumber int // Act @@ -202154,7 +242330,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefIndexRevision{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision{} var fernTestValueGeneration int // Act @@ -202184,9 +242360,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -202194,7 +242370,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm{} var fernTestValueNm string obj.SetNm(fernTestValueNm) assert.Equal(t, fernTestValueNm, obj.Nm) @@ -202203,11 +242379,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm{} var expected int obj.PageObjectNumber = expected @@ -202217,7 +242393,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -202230,7 +242406,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetNm", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm{} var expected string obj.Nm = expected @@ -202240,7 +242416,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetNm_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -202252,11 +242428,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm{} var fernTestValuePageObjectNumber int // Act @@ -202287,7 +242463,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetNm_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefNm{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm{} var fernTestValueNm string // Act @@ -202317,9 +242493,9 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber(t *testing.T) { +func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -202327,7 +242503,7 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor }) t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber{} var fernTestValueAnnotObjectNumber int obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) @@ -202336,11 +242512,11 @@ func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber(t *testing.T) { +func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber{} var expected int obj.PageObjectNumber = expected @@ -202350,7 +242526,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -202363,7 +242539,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber{} var expected int obj.AnnotObjectNumber = expected @@ -202373,7 +242549,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -202385,11 +242561,11 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsuppor } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber{} var fernTestValuePageObjectNumber int // Act @@ -202420,7 +242596,7 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemUnsupportedRefObjectNumber{} + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber{} var fernTestValueAnnotObjectNumber int // Act @@ -202450,1161 +242626,2161 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget(t *testing.T) { - t.Run("SetRef", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef - obj.SetRef(fernTestValueRef) - assert.Equal(t, fernTestValueRef, obj.Ref) - assert.NotNil(t, obj.explicitFields) - }) - +func TestSettersDocAnnotationsListAll200ResponsePagesItemPageState(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} + obj := &DocAnnotationsListAll200ResponsePagesItemPageState{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) + t.Run("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemPageState{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemPageStateRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetIdentityQuality", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality - obj.SetIdentityQuality(fernTestValueIdentityQuality) - assert.Equal(t, fernTestValueIdentityQuality, obj.IdentityQuality) + t.Run("SetWeakAnnotationState", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemPageState{} + var fernTestValueWeakAnnotationState *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState + obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) + assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueNm *string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemPageState(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemPageState{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("SetFlags", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags - obj.SetFlags(fernTestValueFlags) - assert.Equal(t, fernTestValueFlags, obj.Flags) - assert.NotNil(t, obj.explicitFields) + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemPageState + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("SetRect", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect - obj.SetRect(fernTestValueRect) - assert.Equal(t, fernTestValueRect, obj.Rect) - assert.NotNil(t, obj.explicitFields) + t.Run("GetRevision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemPageState{} + var expected *DocAnnotationsListAll200ResponsePagesItemPageStateRevision + obj.Revision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") }) - t.Run("SetContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueContents *string - obj.SetContents(fernTestValueContents) - assert.Equal(t, fernTestValueContents, obj.Contents) - assert.NotNil(t, obj.explicitFields) + t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemPageState{} + obj.Revision = nil + + // Act & Assert + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") }) - t.Run("SetSubject", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueSubject *string - obj.SetSubject(fernTestValueSubject) - assert.Equal(t, fernTestValueSubject, obj.Subject) - assert.NotNil(t, obj.explicitFields) + t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemPageState + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRevision() // Should return zero value }) - t.Run("SetAuthor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueAuthor *string - obj.SetAuthor(fernTestValueAuthor) - assert.Equal(t, fernTestValueAuthor, obj.Author) - assert.NotNil(t, obj.explicitFields) + t.Run("GetWeakAnnotationState", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemPageState{} + var expected *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState + obj.WeakAnnotationState = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWeakAnnotationState(), "getter should return the property value") }) - t.Run("SetCreated", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueCreated *time.Time - obj.SetCreated(fernTestValueCreated) - assert.Equal(t, fernTestValueCreated, obj.Created) - assert.NotNil(t, obj.explicitFields) + t.Run("GetWeakAnnotationState_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemPageState{} + obj.WeakAnnotationState = nil + + // Act & Assert + assert.Nil(t, obj.GetWeakAnnotationState(), "getter should return nil when property is nil") }) - t.Run("SetModified", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueModified *time.Time - obj.SetModified(fernTestValueModified) - assert.Equal(t, fernTestValueModified, obj.Modified) - assert.NotNil(t, obj.explicitFields) + t.Run("GetWeakAnnotationState_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemPageState + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWeakAnnotationState() // Should return zero value }) - t.Run("SetBlendMode", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode - obj.SetBlendMode(fernTestValueBlendMode) - assert.Equal(t, fernTestValueBlendMode, obj.BlendMode) - assert.NotNil(t, obj.explicitFields) +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemPageState(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemPageState{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInReplyTo", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo - obj.SetInReplyTo(fernTestValueInReplyTo) - assert.Equal(t, fernTestValueInReplyTo, obj.InReplyTo) + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemPageState{} + var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemPageStateRevision + + // Act + obj.SetRevision(fernTestValueRevision) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWeakAnnotationState_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemPageState{} + var fernTestValueWeakAnnotationState *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState + + // Act + obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemPageStateRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemPageStateRevision{} + var fernTestValueDocSessionID string + obj.SetDocSessionID(fernTestValueDocSessionID) + assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetReplyType", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType - obj.SetReplyType(fernTestValueReplyType) - assert.Equal(t, fernTestValueReplyType, obj.ReplyType) + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemPageStateRevision{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetUserID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueUserID *string - obj.SetUserID(fernTestValueUserID) - assert.Equal(t, fernTestValueUserID, obj.UserID) + t.Run("SetGeneration", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemPageStateRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetGroupID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueGroupID *string - obj.SetGroupID(fernTestValueGroupID) - assert.Equal(t, fernTestValueGroupID, obj.GroupID) +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemPageStateRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemPageStateRevision{} + var expected string + obj.DocSessionID = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + }) + + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemPageStateRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDocSessionID() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemPageStateRevision{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemPageStateRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetGeneration", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemPageStateRevision{} + var expected int + obj.Generation = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + }) + + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemPageStateRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetGeneration() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemPageStateRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemPageStateRevision{} + var fernTestValueDocSessionID string + + // Act + obj.SetDocSessionID(fernTestValueDocSessionID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemPageStateRevision{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemPageStateRevision{} + var fernTestValueGeneration int + + // Act + obj.SetGeneration(fernTestValueGeneration) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState{} + var expected string + obj.Kind = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + }) + + t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKind() // Should return zero value + }) + + t.Run("GetUnknown", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState{} + var expected *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown + obj.Unknown = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") + }) + + t.Run("GetUnknown_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState{} + obj.Unknown = nil + + // Act & Assert + assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") + }) + + t.Run("GetUnknown_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnknown() // Should return zero value + }) + + t.Run("GetKnown", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState{} + var expected *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown + obj.Known = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetKnown(), "getter should return the property value") + }) + + t.Run("GetKnown_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState{} + obj.Known = nil + + // Act & Assert + assert.Nil(t, obj.GetKnown(), "getter should return nil when property is nil") + }) + + t.Run("GetKnown_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKnown() // Should return zero value + }) + +} + +func TestSettersDocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown(t *testing.T) { + t.Run("SetHasAnyWeakAnnotations", func(t *testing.T) { + obj := &DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown{} + var fernTestValueHasAnyWeakAnnotations bool + obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) + assert.Equal(t, fernTestValueHasAnyWeakAnnotations, obj.HasAnyWeakAnnotations) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCreatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueCreatedBy *string - obj.SetCreatedBy(fernTestValueCreatedBy) - assert.Equal(t, fernTestValueCreatedBy, obj.CreatedBy) +} + +func TestGettersDocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown(t *testing.T) { + t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown{} + var expected bool + obj.HasAnyWeakAnnotations = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetHasAnyWeakAnnotations(), "getter should return the property value") + }) + + t.Run("GetHasAnyWeakAnnotations_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetHasAnyWeakAnnotations() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown(t *testing.T) { + t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown{} + var fernTestValueHasAnyWeakAnnotations bool + + // Act + obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsListAll404Response(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + obj := &DocAnnotationsListAll404Response{} + var fernTestValueName DocAnnotationsListAll404ResponseName + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetUpdatedBy", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueUpdatedBy *string - obj.SetUpdatedBy(fernTestValueUpdatedBy) - assert.Equal(t, fernTestValueUpdatedBy, obj.UpdatedBy) + t.Run("SetCode", func(t *testing.T) { + obj := &DocAnnotationsListAll404Response{} + var fernTestValueCode DocAnnotationsListAll404ResponseCode + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetActions", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueActions *PdfAnnotationActions - obj.SetActions(fernTestValueActions) - assert.Equal(t, fernTestValueActions, obj.Actions) + t.Run("SetMessage", func(t *testing.T) { + obj := &DocAnnotationsListAll404Response{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetColor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor - obj.SetColor(fernTestValueColor) - assert.Equal(t, fernTestValueColor, obj.Color) + t.Run("SetDetails", func(t *testing.T) { + obj := &DocAnnotationsListAll404Response{} + var fernTestValueDetails map[string]any + obj.SetDetails(fernTestValueDetails) + assert.Equal(t, fernTestValueDetails, obj.Details) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetInteriorColor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor - obj.SetInteriorColor(fernTestValueInteriorColor) - assert.Equal(t, fernTestValueInteriorColor, obj.InteriorColor) - assert.NotNil(t, obj.explicitFields) +} + +func TestGettersDocAnnotationsListAll404Response(t *testing.T) { + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll404Response{} + var expected DocAnnotationsListAll404ResponseName + obj.Name = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + }) + + t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll404Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetName() // Should return zero value + }) + + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll404Response{} + var expected DocAnnotationsListAll404ResponseCode + obj.Code = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + }) + + t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll404Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCode() // Should return zero value + }) + + t.Run("GetMessage", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll404Response{} + var expected string + obj.Message = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + }) + + t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll404Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMessage() // Should return zero value + }) + + t.Run("GetDetails", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll404Response{} + var expected map[string]any + obj.Details = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + }) + + t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll404Response{} + obj.Details = nil + + // Act & Assert + assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + }) + + t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll404Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDetails() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsListAll404Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll404Response{} + var fernTestValueName DocAnnotationsListAll404ResponseName + + // Act + obj.SetName(fernTestValueName) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll404Response{} + var fernTestValueCode DocAnnotationsListAll404ResponseCode + + // Act + obj.SetCode(fernTestValueCode) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMessage_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll404Response{} + var fernTestValueMessage string + + // Act + obj.SetMessage(fernTestValueMessage) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetStrokeWidth", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueStrokeWidth float64 - obj.SetStrokeWidth(fernTestValueStrokeWidth) - assert.Equal(t, fernTestValueStrokeWidth, obj.StrokeWidth) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("SetDetails_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll404Response{} + var fernTestValueDetails map[string]any - t.Run("SetBorderStyle", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle - obj.SetBorderStyle(fernTestValueBorderStyle) - assert.Equal(t, fernTestValueBorderStyle, obj.BorderStyle) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetDetails(fernTestValueDetails) - t.Run("SetFontFamily", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueFontFamily *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily - obj.SetFontFamily(fernTestValueFontFamily) - assert.Equal(t, fernTestValueFontFamily, obj.FontFamily) - assert.NotNil(t, obj.explicitFields) - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("SetFontSize", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueFontSize *float64 - obj.SetFontSize(fernTestValueFontSize) - assert.Equal(t, fernTestValueFontSize, obj.FontSize) - assert.NotNil(t, obj.explicitFields) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFontColor", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueFontColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor - obj.SetFontColor(fernTestValueFontColor) - assert.Equal(t, fernTestValueFontColor, obj.FontColor) +} + +func TestSettersDocAnnotationsListAll409Response(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + obj := &DocAnnotationsListAll409Response{} + var fernTestValueName DocAnnotationsListAll409ResponseName + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTextAlign", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueTextAlign DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign - obj.SetTextAlign(fernTestValueTextAlign) - assert.Equal(t, fernTestValueTextAlign, obj.TextAlign) + t.Run("SetCode", func(t *testing.T) { + obj := &DocAnnotationsListAll409Response{} + var fernTestValueCode DocAnnotationsListAll409ResponseCode + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetFieldObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueFieldObjectNumber int - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) - assert.Equal(t, fernTestValueFieldObjectNumber, obj.FieldObjectNumber) + t.Run("SetMessage", func(t *testing.T) { + obj := &DocAnnotationsListAll409Response{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetFieldFamily", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueFieldFamily DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily - obj.SetFieldFamily(fernTestValueFieldFamily) - assert.Equal(t, fernTestValueFieldFamily, obj.FieldFamily) + t.Run("SetDetails", func(t *testing.T) { + obj := &DocAnnotationsListAll409Response{} + var fernTestValueDetails map[string]any + obj.SetDetails(fernTestValueDetails) + assert.Equal(t, fernTestValueDetails, obj.Details) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget(t *testing.T) { - t.Run("GetRef", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef - obj.Ref = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") - }) - - t.Run("GetRef_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - obj.Ref = nil - - // Act & Assert - assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") - }) - - t.Run("GetRef_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRef() // Should return zero value - }) - - t.Run("GetPageObjectNumber", func(t *testing.T) { +func TestGettersDocAnnotationsListAll409Response(t *testing.T) { + t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var expected int - obj.PageObjectNumber = expected + obj := &DocAnnotationsListAll409Response{} + var expected DocAnnotationsListAll409ResponseName + obj.Name = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + var obj *DocAnnotationsListAll409Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetName() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var expected int - obj.Index = expected + obj := &DocAnnotationsListAll409Response{} + var expected DocAnnotationsListAll409ResponseCode + obj.Code = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + var obj *DocAnnotationsListAll409Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetCode() // Should return zero value }) - t.Run("GetIdentityQuality", func(t *testing.T) { + t.Run("GetMessage", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality - obj.IdentityQuality = expected + obj := &DocAnnotationsListAll409Response{} + var expected string + obj.Message = expected // Act & Assert - assert.Equal(t, expected, obj.GetIdentityQuality(), "getter should return the property value") + assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") }) - t.Run("GetIdentityQuality_NilReceiver", func(t *testing.T) { + t.Run("GetMessage_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + var obj *DocAnnotationsListAll409Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIdentityQuality() // Should return zero value + _ = obj.GetMessage() // Should return zero value }) - t.Run("GetNm", func(t *testing.T) { + t.Run("GetDetails", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var expected *string - obj.Nm = expected + obj := &DocAnnotationsListAll409Response{} + var expected map[string]any + obj.Details = expected // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") }) - t.Run("GetNm_NilValue", func(t *testing.T) { + t.Run("GetDetails_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - obj.Nm = nil + obj := &DocAnnotationsListAll409Response{} + obj.Details = nil // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetDetails_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + var obj *DocAnnotationsListAll409Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetDetails() // Should return zero value }) - t.Run("GetFlags", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsListAll409Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags - obj.Flags = expected + obj := &DocAnnotationsListAll409Response{} + var fernTestValueName DocAnnotationsListAll409ResponseName - // Act & Assert - assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") + // Act + obj.SetName(fernTestValueName) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetFlags_NilValue", func(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - obj.Flags = nil + obj := &DocAnnotationsListAll409Response{} + var fernTestValueCode DocAnnotationsListAll409ResponseCode - // Act & Assert - assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") - }) + // Act + obj.SetCode(fernTestValueCode) - t.Run("GetFlags_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetFlags() // Should return zero value + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetRect", func(t *testing.T) { + t.Run("SetMessage_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect - obj.Rect = expected + obj := &DocAnnotationsListAll409Response{} + var fernTestValueMessage string - // Act & Assert - assert.Equal(t, expected, obj.GetRect(), "getter should return the property value") + // Act + obj.SetMessage(fernTestValueMessage) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetRect_NilValue", func(t *testing.T) { + t.Run("SetDetails_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - obj.Rect = nil + obj := &DocAnnotationsListAll409Response{} + var fernTestValueDetails map[string]any - // Act & Assert - assert.Nil(t, obj.GetRect(), "getter should return nil when property is nil") + // Act + obj.SetDetails(fernTestValueDetails) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetRect_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRect() // Should return zero value +} + +func TestSettersDocAnnotationsUpdate200Response(t *testing.T) { + t.Run("SetMeta", func(t *testing.T) { + obj := &DocAnnotationsUpdate200Response{} + var fernTestValueMeta *DocAnnotationsUpdate200ResponseMeta + obj.SetMeta(fernTestValueMeta) + assert.Equal(t, fernTestValueMeta, obj.Meta) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetContents", func(t *testing.T) { +} + +func TestGettersDocAnnotationsUpdate200Response(t *testing.T) { + t.Run("GetMeta", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var expected *string - obj.Contents = expected + obj := &DocAnnotationsUpdate200Response{} + var expected *DocAnnotationsUpdate200ResponseMeta + obj.Meta = expected // Act & Assert - assert.Equal(t, expected, obj.GetContents(), "getter should return the property value") + assert.Equal(t, expected, obj.GetMeta(), "getter should return the property value") }) - t.Run("GetContents_NilValue", func(t *testing.T) { + t.Run("GetMeta_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - obj.Contents = nil + obj := &DocAnnotationsUpdate200Response{} + obj.Meta = nil // Act & Assert - assert.Nil(t, obj.GetContents(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetMeta(), "getter should return nil when property is nil") }) - t.Run("GetContents_NilReceiver", func(t *testing.T) { + t.Run("GetMeta_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + var obj *DocAnnotationsUpdate200Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetContents() // Should return zero value + _ = obj.GetMeta() // Should return zero value }) - t.Run("GetSubject", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsUpdate200Response(t *testing.T) { + t.Run("SetMeta_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var expected *string - obj.Subject = expected + obj := &DocAnnotationsUpdate200Response{} + var fernTestValueMeta *DocAnnotationsUpdate200ResponseMeta - // Act & Assert - assert.Equal(t, expected, obj.GetSubject(), "getter should return the property value") + // Act + obj.SetMeta(fernTestValueMeta) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetSubject_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - obj.Subject = nil +} - // Act & Assert - assert.Nil(t, obj.GetSubject(), "getter should return nil when property is nil") +func TestSettersDocAnnotationsUpdate200ResponseMeta(t *testing.T) { + t.Run("SetAffectedPages", func(t *testing.T) { + obj := &DocAnnotationsUpdate200ResponseMeta{} + var fernTestValueAffectedPages []*DocAnnotationsUpdate200ResponseMetaAffectedPagesItem + obj.SetAffectedPages(fernTestValueAffectedPages) + assert.Equal(t, fernTestValueAffectedPages, obj.AffectedPages) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetSubject_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetSubject() // Should return zero value + t.Run("SetCacheDelta", func(t *testing.T) { + obj := &DocAnnotationsUpdate200ResponseMeta{} + var fernTestValueCacheDelta *DocAnnotationsUpdate200ResponseMetaCacheDelta + obj.SetCacheDelta(fernTestValueCacheDelta) + assert.Equal(t, fernTestValueCacheDelta, obj.CacheDelta) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetAuthor", func(t *testing.T) { +} + +func TestGettersDocAnnotationsUpdate200ResponseMeta(t *testing.T) { + t.Run("GetAffectedPages", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var expected *string - obj.Author = expected + obj := &DocAnnotationsUpdate200ResponseMeta{} + var expected []*DocAnnotationsUpdate200ResponseMetaAffectedPagesItem + obj.AffectedPages = expected // Act & Assert - assert.Equal(t, expected, obj.GetAuthor(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAffectedPages(), "getter should return the property value") }) - t.Run("GetAuthor_NilValue", func(t *testing.T) { + t.Run("GetAffectedPages_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - obj.Author = nil + obj := &DocAnnotationsUpdate200ResponseMeta{} + obj.AffectedPages = nil // Act & Assert - assert.Nil(t, obj.GetAuthor(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetAffectedPages(), "getter should return nil when property is nil") }) - t.Run("GetAuthor_NilReceiver", func(t *testing.T) { + t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + var obj *DocAnnotationsUpdate200ResponseMeta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAuthor() // Should return zero value + _ = obj.GetAffectedPages() // Should return zero value }) - t.Run("GetCreated", func(t *testing.T) { + t.Run("GetCacheDelta", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var expected *time.Time - obj.Created = expected + obj := &DocAnnotationsUpdate200ResponseMeta{} + var expected *DocAnnotationsUpdate200ResponseMetaCacheDelta + obj.CacheDelta = expected // Act & Assert - assert.Equal(t, expected, obj.GetCreated(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCacheDelta(), "getter should return the property value") }) - t.Run("GetCreated_NilValue", func(t *testing.T) { + t.Run("GetCacheDelta_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - obj.Created = nil + obj := &DocAnnotationsUpdate200ResponseMeta{} + obj.CacheDelta = nil // Act & Assert - assert.Nil(t, obj.GetCreated(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCacheDelta(), "getter should return nil when property is nil") }) - t.Run("GetCreated_NilReceiver", func(t *testing.T) { + t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + var obj *DocAnnotationsUpdate200ResponseMeta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCreated() // Should return zero value + _ = obj.GetCacheDelta() // Should return zero value }) - t.Run("GetModified", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMeta(t *testing.T) { + t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var expected *time.Time - obj.Modified = expected + obj := &DocAnnotationsUpdate200ResponseMeta{} + var fernTestValueAffectedPages []*DocAnnotationsUpdate200ResponseMetaAffectedPagesItem - // Act & Assert - assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") + // Act + obj.SetAffectedPages(fernTestValueAffectedPages) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetModified_NilValue", func(t *testing.T) { + t.Run("SetCacheDelta_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - obj.Modified = nil + obj := &DocAnnotationsUpdate200ResponseMeta{} + var fernTestValueCacheDelta *DocAnnotationsUpdate200ResponseMetaCacheDelta - // Act & Assert - assert.Nil(t, obj.GetModified(), "getter should return nil when property is nil") + // Act + obj.SetCacheDelta(fernTestValueCacheDelta) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetModified_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetModified() // Should return zero value +} + +func TestSettersDocAnnotationsUpdate200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetBlendMode", func(t *testing.T) { + t.Run("SetRevision", func(t *testing.T) { + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWeakAnnotationState", func(t *testing.T) { + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState + obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) + assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsUpdate200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode - obj.BlendMode = expected + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetBlendMode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetBlendMode_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + var obj *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBlendMode() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetInReplyTo", func(t *testing.T) { + t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo - obj.InReplyTo = expected + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} + var expected *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision + obj.Revision = expected // Act & Assert - assert.Equal(t, expected, obj.GetInReplyTo(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") }) - t.Run("GetInReplyTo_NilValue", func(t *testing.T) { + t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - obj.InReplyTo = nil + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} + obj.Revision = nil // Act & Assert - assert.Nil(t, obj.GetInReplyTo(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") }) - t.Run("GetInReplyTo_NilReceiver", func(t *testing.T) { + t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + var obj *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInReplyTo() // Should return zero value + _ = obj.GetRevision() // Should return zero value }) - t.Run("GetReplyType", func(t *testing.T) { + t.Run("GetWeakAnnotationState", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType - obj.ReplyType = expected + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} + var expected *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState + obj.WeakAnnotationState = expected // Act & Assert - assert.Equal(t, expected, obj.GetReplyType(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWeakAnnotationState(), "getter should return the property value") }) - t.Run("GetReplyType_NilValue", func(t *testing.T) { + t.Run("GetWeakAnnotationState_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - obj.ReplyType = nil + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} + obj.WeakAnnotationState = nil // Act & Assert - assert.Nil(t, obj.GetReplyType(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetWeakAnnotationState(), "getter should return nil when property is nil") }) - t.Run("GetReplyType_NilReceiver", func(t *testing.T) { + t.Run("GetWeakAnnotationState_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + var obj *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReplyType() // Should return zero value + _ = obj.GetWeakAnnotationState() // Should return zero value }) - t.Run("GetUserID", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var expected *string - obj.UserID = expected + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} + var fernTestValuePageObjectNumber int - // Act & Assert - assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetUserID_NilValue", func(t *testing.T) { + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - obj.UserID = nil + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision - // Act & Assert - assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") - }) + // Act + obj.SetRevision(fernTestValueRevision) - t.Run("GetUserID_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetUserID() // Should return zero value + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetGroupID", func(t *testing.T) { + t.Run("SetWeakAnnotationState_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var expected *string - obj.GroupID = expected + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState - // Act & Assert - assert.Equal(t, expected, obj.GetGroupID(), "getter should return the property value") + // Act + obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetGroupID_NilValue", func(t *testing.T) { +} + +func TestSettersDocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision{} + var fernTestValueDocSessionID string + obj.SetDocSessionID(fernTestValueDocSessionID) + assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetGeneration", func(t *testing.T) { + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - obj.GroupID = nil + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision{} + var expected string + obj.DocSessionID = expected // Act & Assert - assert.Nil(t, obj.GetGroupID(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") }) - t.Run("GetGroupID_NilReceiver", func(t *testing.T) { + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + var obj *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGroupID() // Should return zero value + _ = obj.GetDocSessionID() // Should return zero value }) - t.Run("GetCreatedBy", func(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var expected *string - obj.CreatedBy = expected + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetCreatedBy(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetCreatedBy_NilValue", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - obj.CreatedBy = nil + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision{} + var expected int + obj.Generation = expected // Act & Assert - assert.Nil(t, obj.GetCreatedBy(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") }) - t.Run("GetCreatedBy_NilReceiver", func(t *testing.T) { + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + var obj *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCreatedBy() // Should return zero value + _ = obj.GetGeneration() // Should return zero value }) - t.Run("GetUpdatedBy", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var expected *string - obj.UpdatedBy = expected + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision{} + var fernTestValueDocSessionID string - // Act & Assert - assert.Equal(t, expected, obj.GetUpdatedBy(), "getter should return the property value") + // Act + obj.SetDocSessionID(fernTestValueDocSessionID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetUpdatedBy_NilValue", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - obj.UpdatedBy = nil + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision{} + var fernTestValuePageObjectNumber int - // Act & Assert - assert.Nil(t, obj.GetUpdatedBy(), "getter should return nil when property is nil") - }) + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - t.Run("GetUpdatedBy_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetUpdatedBy() // Should return zero value + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetActions", func(t *testing.T) { + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var expected *PdfAnnotationActions - obj.Actions = expected + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision{} + var fernTestValueGeneration int - // Act & Assert - assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") + // Act + obj.SetGeneration(fernTestValueGeneration) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetActions_NilValue", func(t *testing.T) { +} + +func TestGettersDocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - obj.Actions = nil + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected string + obj.Kind = expected // Act & Assert - assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") }) - t.Run("GetActions_NilReceiver", func(t *testing.T) { + t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + var obj *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetActions() // Should return zero value + _ = obj.GetKind() // Should return zero value }) - t.Run("GetColor", func(t *testing.T) { + t.Run("GetUnknown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor - obj.Color = expected + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + obj.Unknown = expected // Act & Assert - assert.Equal(t, expected, obj.GetColor(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") }) - t.Run("GetColor_NilValue", func(t *testing.T) { + t.Run("GetUnknown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - obj.Color = nil + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj.Unknown = nil // Act & Assert - assert.Nil(t, obj.GetColor(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") }) - t.Run("GetColor_NilReceiver", func(t *testing.T) { + t.Run("GetUnknown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + var obj *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetColor() // Should return zero value + _ = obj.GetUnknown() // Should return zero value }) - t.Run("GetInteriorColor", func(t *testing.T) { + t.Run("GetKnown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor - obj.InteriorColor = expected + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + obj.Known = expected // Act & Assert - assert.Equal(t, expected, obj.GetInteriorColor(), "getter should return the property value") + assert.Equal(t, expected, obj.GetKnown(), "getter should return the property value") }) - t.Run("GetInteriorColor_NilValue", func(t *testing.T) { + t.Run("GetKnown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - obj.InteriorColor = nil + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj.Known = nil // Act & Assert - assert.Nil(t, obj.GetInteriorColor(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetKnown(), "getter should return nil when property is nil") }) - t.Run("GetInteriorColor_NilReceiver", func(t *testing.T) { + t.Run("GetKnown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + var obj *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInteriorColor() // Should return zero value + _ = obj.GetKnown() // Should return zero value }) - t.Run("GetStrokeWidth", func(t *testing.T) { +} + +func TestSettersDocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("SetHasAnyWeakAnnotations", func(t *testing.T) { + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + var fernTestValueHasAnyWeakAnnotations bool + obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) + assert.Equal(t, fernTestValueHasAnyWeakAnnotations, obj.HasAnyWeakAnnotations) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var expected float64 - obj.StrokeWidth = expected + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + var expected bool + obj.HasAnyWeakAnnotations = expected // Act & Assert - assert.Equal(t, expected, obj.GetStrokeWidth(), "getter should return the property value") + assert.Equal(t, expected, obj.GetHasAnyWeakAnnotations(), "getter should return the property value") }) - t.Run("GetStrokeWidth_NilReceiver", func(t *testing.T) { + t.Run("GetHasAnyWeakAnnotations_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + var obj *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetStrokeWidth() // Should return zero value + _ = obj.GetHasAnyWeakAnnotations() // Should return zero value }) - t.Run("GetBorderStyle", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle - obj.BorderStyle = expected + obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + var fernTestValueHasAnyWeakAnnotations bool + + // Act + obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocAnnotationsUpdate200ResponseMetaCacheDelta(t *testing.T) { + t.Run("SetPreviousDocVersion", func(t *testing.T) { + obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} + var fernTestValuePreviousDocVersion int + obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) + assert.Equal(t, fernTestValuePreviousDocVersion, obj.PreviousDocVersion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDocVersion", func(t *testing.T) { + obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} + var fernTestValueDocVersion int + obj.SetDocVersion(fernTestValueDocVersion) + assert.Equal(t, fernTestValueDocVersion, obj.DocVersion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotationsVersion", func(t *testing.T) { + obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} + var fernTestValueAnnotationsVersion *int + obj.SetAnnotationsVersion(fernTestValueAnnotationsVersion) + assert.Equal(t, fernTestValueAnnotationsVersion, obj.AnnotationsVersion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLayerVersion", func(t *testing.T) { + obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} + var fernTestValueLayerVersion *int + obj.SetLayerVersion(fernTestValueLayerVersion) + assert.Equal(t, fernTestValueLayerVersion, obj.LayerVersion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWorking", func(t *testing.T) { + obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} + var fernTestValueWorking *bool + obj.SetWorking(fernTestValueWorking) + assert.Equal(t, fernTestValueWorking, obj.Working) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPages", func(t *testing.T) { + obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem + obj.SetPages(fernTestValuePages) + assert.Equal(t, fernTestValuePages, obj.Pages) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsUpdate200ResponseMetaCacheDelta(t *testing.T) { + t.Run("GetPreviousDocVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} + var expected int + obj.PreviousDocVersion = expected // Act & Assert - assert.Equal(t, expected, obj.GetBorderStyle(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPreviousDocVersion(), "getter should return the property value") }) - t.Run("GetBorderStyle_NilReceiver", func(t *testing.T) { + t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + var obj *DocAnnotationsUpdate200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBorderStyle() // Should return zero value - }) - - t.Run("GetFontFamily", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily - obj.FontFamily = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetFontFamily(), "getter should return the property value") + _ = obj.GetPreviousDocVersion() // Should return zero value }) - t.Run("GetFontFamily_NilValue", func(t *testing.T) { + t.Run("GetDocVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - obj.FontFamily = nil + obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} + var expected int + obj.DocVersion = expected // Act & Assert - assert.Nil(t, obj.GetFontFamily(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetDocVersion(), "getter should return the property value") }) - t.Run("GetFontFamily_NilReceiver", func(t *testing.T) { + t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + var obj *DocAnnotationsUpdate200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFontFamily() // Should return zero value + _ = obj.GetDocVersion() // Should return zero value }) - t.Run("GetFontSize", func(t *testing.T) { + t.Run("GetAnnotationsVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var expected *float64 - obj.FontSize = expected + obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} + var expected *int + obj.AnnotationsVersion = expected // Act & Assert - assert.Equal(t, expected, obj.GetFontSize(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAnnotationsVersion(), "getter should return the property value") }) - t.Run("GetFontSize_NilValue", func(t *testing.T) { + t.Run("GetAnnotationsVersion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - obj.FontSize = nil + obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} + obj.AnnotationsVersion = nil // Act & Assert - assert.Nil(t, obj.GetFontSize(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetAnnotationsVersion(), "getter should return nil when property is nil") }) - t.Run("GetFontSize_NilReceiver", func(t *testing.T) { + t.Run("GetAnnotationsVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + var obj *DocAnnotationsUpdate200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFontSize() // Should return zero value + _ = obj.GetAnnotationsVersion() // Should return zero value }) - t.Run("GetFontColor", func(t *testing.T) { + t.Run("GetLayerVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor - obj.FontColor = expected + obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} + var expected *int + obj.LayerVersion = expected // Act & Assert - assert.Equal(t, expected, obj.GetFontColor(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLayerVersion(), "getter should return the property value") }) - t.Run("GetFontColor_NilValue", func(t *testing.T) { + t.Run("GetLayerVersion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - obj.FontColor = nil + obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} + obj.LayerVersion = nil // Act & Assert - assert.Nil(t, obj.GetFontColor(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetLayerVersion(), "getter should return nil when property is nil") }) - t.Run("GetFontColor_NilReceiver", func(t *testing.T) { + t.Run("GetLayerVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + var obj *DocAnnotationsUpdate200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFontColor() // Should return zero value + _ = obj.GetLayerVersion() // Should return zero value }) - t.Run("GetTextAlign", func(t *testing.T) { + t.Run("GetWorking", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign - obj.TextAlign = expected + obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} + var expected *bool + obj.Working = expected // Act & Assert - assert.Equal(t, expected, obj.GetTextAlign(), "getter should return the property value") - }) - - t.Run("GetTextAlign_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetTextAlign() // Should return zero value + assert.Equal(t, expected, obj.GetWorking(), "getter should return the property value") }) - t.Run("GetFieldObjectNumber", func(t *testing.T) { + t.Run("GetWorking_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var expected int - obj.FieldObjectNumber = expected + obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} + obj.Working = nil // Act & Assert - assert.Equal(t, expected, obj.GetFieldObjectNumber(), "getter should return the property value") + assert.Nil(t, obj.GetWorking(), "getter should return nil when property is nil") }) - t.Run("GetFieldObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetWorking_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + var obj *DocAnnotationsUpdate200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFieldObjectNumber() // Should return zero value + _ = obj.GetWorking() // Should return zero value }) - t.Run("GetFieldFamily", func(t *testing.T) { + t.Run("GetPages", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var expected DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily - obj.FieldFamily = expected + obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} + var expected []*DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem + obj.Pages = expected // Act & Assert - assert.Equal(t, expected, obj.GetFieldFamily(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPages(), "getter should return the property value") }) - t.Run("GetFieldFamily_NilReceiver", func(t *testing.T) { + t.Run("GetPages_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget + // Arrange + obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} + obj.Pages = nil + + // Act & Assert + assert.Nil(t, obj.GetPages(), "getter should return nil when property is nil") + }) + + t.Run("GetPages_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsUpdate200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFieldFamily() // Should return zero value + _ = obj.GetPages() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget(t *testing.T) { - t.Run("SetRef_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMetaCacheDelta(t *testing.T) { + t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueRef *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef + obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} + var fernTestValuePreviousDocVersion int // Act - obj.SetRef(fernTestValueRef) + obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -203628,14 +244804,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetDocVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValuePageObjectNumber int + obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} + var fernTestValueDocVersion int // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetDocVersion(fernTestValueDocVersion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -203659,14 +244835,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("SetAnnotationsVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueIndex int + obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} + var fernTestValueAnnotationsVersion *int // Act - obj.SetIndex(fernTestValueIndex) + obj.SetAnnotationsVersion(fernTestValueAnnotationsVersion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -203690,14 +244866,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIdentityQuality_MarksExplicit", func(t *testing.T) { + t.Run("SetLayerVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueIdentityQuality DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIdentityQuality + obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} + var fernTestValueLayerVersion *int // Act - obj.SetIdentityQuality(fernTestValueIdentityQuality) + obj.SetLayerVersion(fernTestValueLayerVersion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -203721,14 +244897,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetWorking_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueNm *string + obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} + var fernTestValueWorking *bool // Act - obj.SetNm(fernTestValueNm) + obj.SetWorking(fernTestValueWorking) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -203752,14 +244928,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFlags_MarksExplicit", func(t *testing.T) { + t.Run("SetPages_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueFlags *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags + obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem // Act - obj.SetFlags(fernTestValueFlags) + obj.SetPages(fernTestValuePages) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -203783,14 +244959,95 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRect_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCache", func(t *testing.T) { + obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache + obj.SetCache(fernTestValueCache) + assert.Equal(t, fernTestValueCache, obj.Cache) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueRect *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect + obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetCache", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem{} + var expected *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache + obj.Cache = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCache(), "getter should return the property value") + }) + + t.Run("GetCache_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem{} + obj.Cache = nil + + // Act & Assert + assert.Nil(t, obj.GetCache(), "getter should return nil when property is nil") + }) + + t.Run("GetCache_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCache() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem{} + var fernTestValuePageObjectNumber int // Act - obj.SetRect(fernTestValueRect) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -203814,14 +245071,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetContents_MarksExplicit", func(t *testing.T) { + t.Run("SetCache_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueContents *string + obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache // Act - obj.SetContents(fernTestValueContents) + obj.SetCache(fernTestValueCache) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -203845,14 +245102,85 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetSubject_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("SetContentVersion", func(t *testing.T) { + obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache{} + var fernTestValueContentVersion int + obj.SetContentVersion(fernTestValueContentVersion) + assert.Equal(t, fernTestValueContentVersion, obj.ContentVersion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotationVersion", func(t *testing.T) { + obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache{} + var fernTestValueAnnotationVersion int + obj.SetAnnotationVersion(fernTestValueAnnotationVersion) + assert.Equal(t, fernTestValueAnnotationVersion, obj.AnnotationVersion) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("GetContentVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueSubject *string + obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache{} + var expected int + obj.ContentVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetContentVersion(), "getter should return the property value") + }) + + t.Run("GetContentVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetContentVersion() // Should return zero value + }) + + t.Run("GetAnnotationVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache{} + var expected int + obj.AnnotationVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotationVersion(), "getter should return the property value") + }) + + t.Run("GetAnnotationVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAnnotationVersion() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("SetContentVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache{} + var fernTestValueContentVersion int // Act - obj.SetSubject(fernTestValueSubject) + obj.SetContentVersion(fernTestValueContentVersion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -203876,14 +245204,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { + t.Run("SetAnnotationVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueAuthor *string + obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache{} + var fernTestValueAnnotationVersion int // Act - obj.SetAuthor(fernTestValueAuthor) + obj.SetAnnotationVersion(fernTestValueAnnotationVersion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -203907,14 +245235,157 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreated_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsUpdate400Response(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + obj := &DocAnnotationsUpdate400Response{} + var fernTestValueName DocAnnotationsUpdate400ResponseName + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCode", func(t *testing.T) { + obj := &DocAnnotationsUpdate400Response{} + var fernTestValueCode DocAnnotationsUpdate400ResponseCode + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &DocAnnotationsUpdate400Response{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDetails", func(t *testing.T) { + obj := &DocAnnotationsUpdate400Response{} + var fernTestValueDetails map[string]any + obj.SetDetails(fernTestValueDetails) + assert.Equal(t, fernTestValueDetails, obj.Details) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsUpdate400Response(t *testing.T) { + t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueCreated *time.Time + obj := &DocAnnotationsUpdate400Response{} + var expected DocAnnotationsUpdate400ResponseName + obj.Name = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + }) + + t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsUpdate400Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetName() // Should return zero value + }) + + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate400Response{} + var expected DocAnnotationsUpdate400ResponseCode + obj.Code = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + }) + + t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsUpdate400Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCode() // Should return zero value + }) + + t.Run("GetMessage", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate400Response{} + var expected string + obj.Message = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + }) + + t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsUpdate400Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMessage() // Should return zero value + }) + + t.Run("GetDetails", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate400Response{} + var expected map[string]any + obj.Details = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + }) + + t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate400Response{} + obj.Details = nil + + // Act & Assert + assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + }) + + t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsUpdate400Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDetails() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsUpdate400Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate400Response{} + var fernTestValueName DocAnnotationsUpdate400ResponseName // Act - obj.SetCreated(fernTestValueCreated) + obj.SetName(fernTestValueName) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -203938,14 +245409,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetModified_MarksExplicit", func(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueModified *time.Time + obj := &DocAnnotationsUpdate400Response{} + var fernTestValueCode DocAnnotationsUpdate400ResponseCode // Act - obj.SetModified(fernTestValueModified) + obj.SetCode(fernTestValueCode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -203969,14 +245440,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBlendMode_MarksExplicit", func(t *testing.T) { + t.Run("SetMessage_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueBlendMode DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBlendMode + obj := &DocAnnotationsUpdate400Response{} + var fernTestValueMessage string // Act - obj.SetBlendMode(fernTestValueBlendMode) + obj.SetMessage(fernTestValueMessage) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -204000,14 +245471,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInReplyTo_MarksExplicit", func(t *testing.T) { + t.Run("SetDetails_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueInReplyTo *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo + obj := &DocAnnotationsUpdate400Response{} + var fernTestValueDetails map[string]any // Act - obj.SetInReplyTo(fernTestValueInReplyTo) + obj.SetDetails(fernTestValueDetails) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -204031,14 +245502,157 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReplyType_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocAnnotationsUpdate404Response(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + obj := &DocAnnotationsUpdate404Response{} + var fernTestValueName DocAnnotationsUpdate404ResponseName + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCode", func(t *testing.T) { + obj := &DocAnnotationsUpdate404Response{} + var fernTestValueCode DocAnnotationsUpdate404ResponseCode + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &DocAnnotationsUpdate404Response{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDetails", func(t *testing.T) { + obj := &DocAnnotationsUpdate404Response{} + var fernTestValueDetails map[string]any + obj.SetDetails(fernTestValueDetails) + assert.Equal(t, fernTestValueDetails, obj.Details) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocAnnotationsUpdate404Response(t *testing.T) { + t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueReplyType *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetReplyType + obj := &DocAnnotationsUpdate404Response{} + var expected DocAnnotationsUpdate404ResponseName + obj.Name = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + }) + + t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsUpdate404Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetName() // Should return zero value + }) + + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate404Response{} + var expected DocAnnotationsUpdate404ResponseCode + obj.Code = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + }) + + t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsUpdate404Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCode() // Should return zero value + }) + + t.Run("GetMessage", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate404Response{} + var expected string + obj.Message = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + }) + + t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsUpdate404Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMessage() // Should return zero value + }) + + t.Run("GetDetails", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate404Response{} + var expected map[string]any + obj.Details = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + }) + + t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate404Response{} + obj.Details = nil + + // Act & Assert + assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + }) + + t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsUpdate404Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDetails() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocAnnotationsUpdate404Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsUpdate404Response{} + var fernTestValueName DocAnnotationsUpdate404ResponseName // Act - obj.SetReplyType(fernTestValueReplyType) + obj.SetName(fernTestValueName) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -204062,14 +245676,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUserID_MarksExplicit", func(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueUserID *string + obj := &DocAnnotationsUpdate404Response{} + var fernTestValueCode DocAnnotationsUpdate404ResponseCode // Act - obj.SetUserID(fernTestValueUserID) + obj.SetCode(fernTestValueCode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -204093,14 +245707,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGroupID_MarksExplicit", func(t *testing.T) { + t.Run("SetMessage_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueGroupID *string + obj := &DocAnnotationsUpdate404Response{} + var fernTestValueMessage string // Act - obj.SetGroupID(fernTestValueGroupID) + obj.SetMessage(fernTestValueMessage) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -204124,14 +245738,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreatedBy_MarksExplicit", func(t *testing.T) { + t.Run("SetDetails_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueCreatedBy *string + obj := &DocAnnotationsUpdate404Response{} + var fernTestValueDetails map[string]any // Act - obj.SetCreatedBy(fernTestValueCreatedBy) + obj.SetDetails(fernTestValueDetails) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -204155,14 +245769,157 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUpdatedBy_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocDownloadResponse(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + obj := &DocDownloadResponse{} + var fernTestValueName DocDownloadResponseName + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCode", func(t *testing.T) { + obj := &DocDownloadResponse{} + var fernTestValueCode DocDownloadResponseCode + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &DocDownloadResponse{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDetails", func(t *testing.T) { + obj := &DocDownloadResponse{} + var fernTestValueDetails map[string]any + obj.SetDetails(fernTestValueDetails) + assert.Equal(t, fernTestValueDetails, obj.Details) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocDownloadResponse(t *testing.T) { + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocDownloadResponse{} + var expected DocDownloadResponseName + obj.Name = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + }) + + t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocDownloadResponse + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetName() // Should return zero value + }) + + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocDownloadResponse{} + var expected DocDownloadResponseCode + obj.Code = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + }) + + t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocDownloadResponse + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCode() // Should return zero value + }) + + t.Run("GetMessage", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocDownloadResponse{} + var expected string + obj.Message = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + }) + + t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocDownloadResponse + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMessage() // Should return zero value + }) + + t.Run("GetDetails", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocDownloadResponse{} + var expected map[string]any + obj.Details = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + }) + + t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocDownloadResponse{} + obj.Details = nil + + // Act & Assert + assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + }) + + t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocDownloadResponse + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDetails() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocDownloadResponse(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueUpdatedBy *string + obj := &DocDownloadResponse{} + var fernTestValueName DocDownloadResponseName // Act - obj.SetUpdatedBy(fernTestValueUpdatedBy) + obj.SetName(fernTestValueName) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -204186,14 +245943,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueActions *PdfAnnotationActions + obj := &DocDownloadResponse{} + var fernTestValueCode DocDownloadResponseCode // Act - obj.SetActions(fernTestValueActions) + obj.SetCode(fernTestValueCode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -204217,14 +245974,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetColor_MarksExplicit", func(t *testing.T) { + t.Run("SetMessage_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor + obj := &DocDownloadResponse{} + var fernTestValueMessage string // Act - obj.SetColor(fernTestValueColor) + obj.SetMessage(fernTestValueMessage) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -204248,14 +246005,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInteriorColor_MarksExplicit", func(t *testing.T) { + t.Run("SetDetails_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueInteriorColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor + obj := &DocDownloadResponse{} + var fernTestValueDetails map[string]any // Act - obj.SetInteriorColor(fernTestValueInteriorColor) + obj.SetDetails(fernTestValueDetails) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -204279,14 +246036,157 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetStrokeWidth_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocFormsExportDataResponse(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + obj := &DocFormsExportDataResponse{} + var fernTestValueName DocFormsExportDataResponseName + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCode", func(t *testing.T) { + obj := &DocFormsExportDataResponse{} + var fernTestValueCode DocFormsExportDataResponseCode + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &DocFormsExportDataResponse{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDetails", func(t *testing.T) { + obj := &DocFormsExportDataResponse{} + var fernTestValueDetails map[string]any + obj.SetDetails(fernTestValueDetails) + assert.Equal(t, fernTestValueDetails, obj.Details) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsExportDataResponse(t *testing.T) { + t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueStrokeWidth float64 + obj := &DocFormsExportDataResponse{} + var expected DocFormsExportDataResponseName + obj.Name = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + }) + + t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsExportDataResponse + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetName() // Should return zero value + }) + + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsExportDataResponse{} + var expected DocFormsExportDataResponseCode + obj.Code = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + }) + + t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsExportDataResponse + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCode() // Should return zero value + }) + + t.Run("GetMessage", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsExportDataResponse{} + var expected string + obj.Message = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + }) + + t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsExportDataResponse + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMessage() // Should return zero value + }) + + t.Run("GetDetails", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsExportDataResponse{} + var expected map[string]any + obj.Details = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + }) + + t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsExportDataResponse{} + obj.Details = nil + + // Act & Assert + assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + }) + + t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsExportDataResponse + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDetails() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsExportDataResponse(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsExportDataResponse{} + var fernTestValueName DocFormsExportDataResponseName // Act - obj.SetStrokeWidth(fernTestValueStrokeWidth) + obj.SetName(fernTestValueName) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -204310,14 +246210,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBorderStyle_MarksExplicit", func(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueBorderStyle DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetBorderStyle + obj := &DocFormsExportDataResponse{} + var fernTestValueCode DocFormsExportDataResponseCode // Act - obj.SetBorderStyle(fernTestValueBorderStyle) + obj.SetCode(fernTestValueCode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -204341,14 +246241,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFontFamily_MarksExplicit", func(t *testing.T) { + t.Run("SetMessage_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueFontFamily *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontFamily + obj := &DocFormsExportDataResponse{} + var fernTestValueMessage string // Act - obj.SetFontFamily(fernTestValueFontFamily) + obj.SetMessage(fernTestValueMessage) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -204372,14 +246272,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFontSize_MarksExplicit", func(t *testing.T) { + t.Run("SetDetails_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueFontSize *float64 + obj := &DocFormsExportDataResponse{} + var fernTestValueDetails map[string]any // Act - obj.SetFontSize(fernTestValueFontSize) + obj.SetDetails(fernTestValueDetails) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -204403,14 +246303,167 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFontColor_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocFormsGet200Response(t *testing.T) { + t.Run("SetFormKind", func(t *testing.T) { + obj := &DocFormsGet200Response{} + var fernTestValueFormKind DocFormsGet200ResponseFormKind + obj.SetFormKind(fernTestValueFormKind) + assert.Equal(t, fernTestValueFormKind, obj.FormKind) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNeedsAppearances", func(t *testing.T) { + obj := &DocFormsGet200Response{} + var fernTestValueNeedsAppearances bool + obj.SetNeedsAppearances(fernTestValueNeedsAppearances) + assert.Equal(t, fernTestValueNeedsAppearances, obj.NeedsAppearances) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFields", func(t *testing.T) { + obj := &DocFormsGet200Response{} + var fernTestValueFields []*DocFormsGet200ResponseFieldsItem + obj.SetFields(fernTestValueFields) + assert.Equal(t, fernTestValueFields, obj.Fields) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCalculationOrder", func(t *testing.T) { + obj := &DocFormsGet200Response{} + var fernTestValueCalculationOrder []*DocFormsGet200ResponseCalculationOrderItem + obj.SetCalculationOrder(fernTestValueCalculationOrder) + assert.Equal(t, fernTestValueCalculationOrder, obj.CalculationOrder) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200Response(t *testing.T) { + t.Run("GetFormKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueFontColor *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor + obj := &DocFormsGet200Response{} + var expected DocFormsGet200ResponseFormKind + obj.FormKind = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFormKind(), "getter should return the property value") + }) + + t.Run("GetFormKind_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFormKind() // Should return zero value + }) + + t.Run("GetNeedsAppearances", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200Response{} + var expected bool + obj.NeedsAppearances = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNeedsAppearances(), "getter should return the property value") + }) + + t.Run("GetNeedsAppearances_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNeedsAppearances() // Should return zero value + }) + + t.Run("GetFields", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200Response{} + var expected []*DocFormsGet200ResponseFieldsItem + obj.Fields = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFields(), "getter should return the property value") + }) + + t.Run("GetFields_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200Response{} + obj.Fields = nil + + // Act & Assert + assert.Nil(t, obj.GetFields(), "getter should return nil when property is nil") + }) + + t.Run("GetFields_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFields() // Should return zero value + }) + + t.Run("GetCalculationOrder", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200Response{} + var expected []*DocFormsGet200ResponseCalculationOrderItem + obj.CalculationOrder = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCalculationOrder(), "getter should return the property value") + }) + + t.Run("GetCalculationOrder_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200Response{} + obj.CalculationOrder = nil + + // Act & Assert + assert.Nil(t, obj.GetCalculationOrder(), "getter should return nil when property is nil") + }) + + t.Run("GetCalculationOrder_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCalculationOrder() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200Response(t *testing.T) { + t.Run("SetFormKind_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200Response{} + var fernTestValueFormKind DocFormsGet200ResponseFormKind // Act - obj.SetFontColor(fernTestValueFontColor) + obj.SetFormKind(fernTestValueFormKind) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -204434,14 +246487,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTextAlign_MarksExplicit", func(t *testing.T) { + t.Run("SetNeedsAppearances_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueTextAlign DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetTextAlign + obj := &DocFormsGet200Response{} + var fernTestValueNeedsAppearances bool // Act - obj.SetTextAlign(fernTestValueTextAlign) + obj.SetNeedsAppearances(fernTestValueNeedsAppearances) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -204465,14 +246518,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetFields_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueFieldObjectNumber int + obj := &DocFormsGet200Response{} + var fernTestValueFields []*DocFormsGet200ResponseFieldsItem // Act - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) + obj.SetFields(fernTestValueFields) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -204496,14 +246549,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFieldFamily_MarksExplicit", func(t *testing.T) { + t.Run("SetCalculationOrder_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidget{} - var fernTestValueFieldFamily DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFieldFamily + obj := &DocFormsGet200Response{} + var fernTestValueCalculationOrder []*DocFormsGet200ResponseCalculationOrderItem // Act - obj.SetFieldFamily(fernTestValueFieldFamily) + obj.SetCalculationOrder(fernTestValueCalculationOrder) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -204529,114 +246582,144 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor(t *testing.T) { - t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor{} - var fernTestValueR int - obj.SetR(fernTestValueR) - assert.Equal(t, fernTestValueR, obj.R) - assert.NotNil(t, obj.explicitFields) - }) +func TestGettersDocFormsGet200ResponseCalculationOrderItem(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseCalculationOrderItem{} + var expected string + obj.Kind = expected - t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor{} - var fernTestValueG int - obj.SetG(fernTestValueG) - assert.Equal(t, fernTestValueG, obj.G) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") }) - t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor{} - var fernTestValueB int - obj.SetB(fernTestValueB) - assert.Equal(t, fernTestValueB, obj.B) - assert.NotNil(t, obj.explicitFields) + t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseCalculationOrderItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKind() // Should return zero value }) -} + t.Run("GetObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseCalculationOrderItem{} + var expected *DocFormsGet200ResponseCalculationOrderItemObjectNumber + obj.ObjectNumber = expected -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor(t *testing.T) { - t.Run("GetR", func(t *testing.T) { + // Act & Assert + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + }) + + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor{} - var expected int - obj.R = expected + obj := &DocFormsGet200ResponseCalculationOrderItem{} + obj.ObjectNumber = nil // Act & Assert - assert.Equal(t, expected, obj.GetR(), "getter should return the property value") + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") }) - t.Run("GetR_NilReceiver", func(t *testing.T) { + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor + var obj *DocFormsGet200ResponseCalculationOrderItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetR() // Should return zero value + _ = obj.GetObjectNumber() // Should return zero value }) - t.Run("GetG", func(t *testing.T) { + t.Run("GetFqn", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor{} - var expected int - obj.G = expected + obj := &DocFormsGet200ResponseCalculationOrderItem{} + var expected *DocFormsGet200ResponseCalculationOrderItemFqn + obj.Fqn = expected // Act & Assert - assert.Equal(t, expected, obj.GetG(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFqn(), "getter should return the property value") }) - t.Run("GetG_NilReceiver", func(t *testing.T) { + t.Run("GetFqn_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor + // Arrange + obj := &DocFormsGet200ResponseCalculationOrderItem{} + obj.Fqn = nil + + // Act & Assert + assert.Nil(t, obj.GetFqn(), "getter should return nil when property is nil") + }) + + t.Run("GetFqn_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseCalculationOrderItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetG() // Should return zero value + _ = obj.GetFqn() // Should return zero value }) - t.Run("GetB", func(t *testing.T) { +} + +func TestSettersDocFormsGet200ResponseCalculationOrderItemFqn(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + obj := &DocFormsGet200ResponseCalculationOrderItemFqn{} + var fernTestValueName string + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseCalculationOrderItemFqn(t *testing.T) { + t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor{} - var expected int - obj.B = expected + obj := &DocFormsGet200ResponseCalculationOrderItemFqn{} + var expected string + obj.Name = expected // Act & Assert - assert.Equal(t, expected, obj.GetB(), "getter should return the property value") + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") }) - t.Run("GetB_NilReceiver", func(t *testing.T) { + t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor + var obj *DocFormsGet200ResponseCalculationOrderItemFqn // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetB() // Should return zero value + _ = obj.GetName() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor(t *testing.T) { - t.Run("SetR_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseCalculationOrderItemFqn(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor{} - var fernTestValueR int + obj := &DocFormsGet200ResponseCalculationOrderItemFqn{} + var fernTestValueName string // Act - obj.SetR(fernTestValueR) + obj.SetName(fernTestValueName) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -204660,14 +246743,54 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetG_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocFormsGet200ResponseCalculationOrderItemObjectNumber(t *testing.T) { + t.Run("SetFieldObjectNumber", func(t *testing.T) { + obj := &DocFormsGet200ResponseCalculationOrderItemObjectNumber{} + var fernTestValueFieldObjectNumber int + obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) + assert.Equal(t, fernTestValueFieldObjectNumber, obj.FieldObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseCalculationOrderItemObjectNumber(t *testing.T) { + t.Run("GetFieldObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor{} - var fernTestValueG int + obj := &DocFormsGet200ResponseCalculationOrderItemObjectNumber{} + var expected int + obj.FieldObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFieldObjectNumber(), "getter should return the property value") + }) + + t.Run("GetFieldObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseCalculationOrderItemObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFieldObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseCalculationOrderItemObjectNumber(t *testing.T) { + t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseCalculationOrderItemObjectNumber{} + var fernTestValueFieldObjectNumber int // Act - obj.SetG(fernTestValueG) + obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -204691,364 +246814,796 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetB_MarksExplicit", func(t *testing.T) { +} + +func TestGettersDocFormsGet200ResponseFieldsItem(t *testing.T) { + t.Run("GetFamily", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetColor{} - var fernTestValueB int + obj := &DocFormsGet200ResponseFieldsItem{} + var expected string + obj.Family = expected - // Act - obj.SetB(fernTestValueB) + // Act & Assert + assert.Equal(t, expected, obj.GetFamily(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetFamily_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFamily() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetText", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItem{} + var expected *DocFormsGet200ResponseFieldsItemText + obj.Text = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetText(), "getter should return the property value") + }) + + t.Run("GetText_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItem{} + obj.Text = nil + + // Act & Assert + assert.Nil(t, obj.GetText(), "getter should return nil when property is nil") + }) + + t.Run("GetText_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetText() // Should return zero value + }) + + t.Run("GetCheckbox", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItem{} + var expected *DocFormsGet200ResponseFieldsItemCheckbox + obj.Checkbox = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCheckbox(), "getter should return the property value") + }) + + t.Run("GetCheckbox_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItem{} + obj.Checkbox = nil + + // Act & Assert + assert.Nil(t, obj.GetCheckbox(), "getter should return nil when property is nil") + }) + + t.Run("GetCheckbox_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCheckbox() // Should return zero value + }) + + t.Run("GetRadio", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItem{} + var expected *DocFormsGet200ResponseFieldsItemRadio + obj.Radio = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRadio(), "getter should return the property value") + }) + + t.Run("GetRadio_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItem{} + obj.Radio = nil + + // Act & Assert + assert.Nil(t, obj.GetRadio(), "getter should return nil when property is nil") + }) + + t.Run("GetRadio_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRadio() // Should return zero value + }) + + t.Run("GetCombobox", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItem{} + var expected *DocFormsGet200ResponseFieldsItemCombobox + obj.Combobox = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCombobox(), "getter should return the property value") + }) + + t.Run("GetCombobox_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItem{} + obj.Combobox = nil + + // Act & Assert + assert.Nil(t, obj.GetCombobox(), "getter should return nil when property is nil") + }) + + t.Run("GetCombobox_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCombobox() // Should return zero value + }) + + t.Run("GetListbox", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItem{} + var expected *DocFormsGet200ResponseFieldsItemListbox + obj.Listbox = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetListbox(), "getter should return the property value") + }) + + t.Run("GetListbox_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItem{} + obj.Listbox = nil + + // Act & Assert + assert.Nil(t, obj.GetListbox(), "getter should return nil when property is nil") + }) + + t.Run("GetListbox_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetListbox() // Should return zero value + }) + + t.Run("GetPushbutton", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItem{} + var expected *DocFormsGet200ResponseFieldsItemPushbutton + obj.Pushbutton = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPushbutton(), "getter should return the property value") + }) + + t.Run("GetPushbutton_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItem{} + obj.Pushbutton = nil + + // Act & Assert + assert.Nil(t, obj.GetPushbutton(), "getter should return nil when property is nil") + }) + + t.Run("GetPushbutton_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPushbutton() // Should return zero value + }) + + t.Run("GetSignature", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItem{} + var expected *DocFormsGet200ResponseFieldsItemSignature + obj.Signature = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetSignature(), "getter should return the property value") + }) + + t.Run("GetSignature_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItem{} + obj.Signature = nil + + // Act & Assert + assert.Nil(t, obj.GetSignature(), "getter should return nil when property is nil") + }) + + t.Run("GetSignature_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSignature() // Should return zero value + }) + + t.Run("GetUnknown", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItem{} + var expected *DocFormsGet200ResponseFieldsItemUnknown + obj.Unknown = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") + }) + + t.Run("GetUnknown_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItem{} + obj.Unknown = nil + + // Act & Assert + assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") + }) + + t.Run("GetUnknown_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnknown() // Should return zero value }) } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags(t *testing.T) { - t.Run("SetInvisible", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} - var fernTestValueInvisible bool - obj.SetInvisible(fernTestValueInvisible) - assert.Equal(t, fernTestValueInvisible, obj.Invisible) +func TestSettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { + t.Run("SetRef", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var fernTestValueRef *DocFormsGet200ResponseFieldsItemCheckboxRef + obj.SetRef(fernTestValueRef) + assert.Equal(t, fernTestValueRef, obj.Ref) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetHidden", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} - var fernTestValueHidden bool - obj.SetHidden(fernTestValueHidden) - assert.Equal(t, fernTestValueHidden, obj.Hidden) + t.Run("SetFieldObjectNumber", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var fernTestValueFieldObjectNumber int + obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) + assert.Equal(t, fernTestValueFieldObjectNumber, obj.FieldObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPrint", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} - var fernTestValuePrint bool - obj.SetPrint(fernTestValuePrint) - assert.Equal(t, fernTestValuePrint, obj.Print) + t.Run("SetName", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var fernTestValueName string + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNoZoom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} - var fernTestValueNoZoom bool - obj.SetNoZoom(fernTestValueNoZoom) - assert.Equal(t, fernTestValueNoZoom, obj.NoZoom) + t.Run("SetOrigin", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var fernTestValueOrigin DocFormsGet200ResponseFieldsItemCheckboxOrigin + obj.SetOrigin(fernTestValueOrigin) + assert.Equal(t, fernTestValueOrigin, obj.Origin) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFlags", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var fernTestValueFlags *DocFormsGet200ResponseFieldsItemCheckboxFlags + obj.SetFlags(fernTestValueFlags) + assert.Equal(t, fernTestValueFlags, obj.Flags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAlternateName", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var fernTestValueAlternateName *string + obj.SetAlternateName(fernTestValueAlternateName) + assert.Equal(t, fernTestValueAlternateName, obj.AlternateName) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMappingName", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var fernTestValueMappingName *string + obj.SetMappingName(fernTestValueMappingName) + assert.Equal(t, fernTestValueMappingName, obj.MappingName) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetValueEntry", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemCheckboxValueEntry + obj.SetValueEntry(fernTestValueValueEntry) + assert.Equal(t, fernTestValueValueEntry, obj.ValueEntry) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDefaultValueEntry", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry + obj.SetDefaultValueEntry(fernTestValueDefaultValueEntry) + assert.Equal(t, fernTestValueDefaultValueEntry, obj.DefaultValueEntry) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetActions", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var fernTestValueActions *PdfFieldActions + obj.SetActions(fernTestValueActions) + assert.Equal(t, fernTestValueActions, obj.Actions) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWidgets", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem + obj.SetWidgets(fernTestValueWidgets) + assert.Equal(t, fernTestValueWidgets, obj.Widgets) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetChecked", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var fernTestValueChecked bool + obj.SetChecked(fernTestValueChecked) + assert.Equal(t, fernTestValueChecked, obj.Checked) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetExportValue", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var fernTestValueExportValue string + obj.SetExportValue(fernTestValueExportValue) + assert.Equal(t, fernTestValueExportValue, obj.ExportValue) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNoRotate", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} - var fernTestValueNoRotate bool - obj.SetNoRotate(fernTestValueNoRotate) - assert.Equal(t, fernTestValueNoRotate, obj.NoRotate) - assert.NotNil(t, obj.explicitFields) - }) +} + +func TestGettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var expected *DocFormsGet200ResponseFieldsItemCheckboxRef + obj.Ref = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") + }) + + t.Run("GetRef_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + obj.Ref = nil + + // Act & Assert + assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") + }) + + t.Run("GetRef_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckbox + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRef() // Should return zero value + }) + + t.Run("GetFieldObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var expected int + obj.FieldObjectNumber = expected - t.Run("SetNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} - var fernTestValueNoView bool - obj.SetNoView(fernTestValueNoView) - assert.Equal(t, fernTestValueNoView, obj.NoView) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetFieldObjectNumber(), "getter should return the property value") }) - t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} - var fernTestValueReadOnly bool - obj.SetReadOnly(fernTestValueReadOnly) - assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) - assert.NotNil(t, obj.explicitFields) + t.Run("GetFieldObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckbox + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFieldObjectNumber() // Should return zero value }) - t.Run("SetLocked", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} - var fernTestValueLocked bool - obj.SetLocked(fernTestValueLocked) - assert.Equal(t, fernTestValueLocked, obj.Locked) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var expected string + obj.Name = expected - t.Run("SetToggleNoView", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} - var fernTestValueToggleNoView bool - obj.SetToggleNoView(fernTestValueToggleNoView) - assert.Equal(t, fernTestValueToggleNoView, obj.ToggleNoView) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") }) - t.Run("SetLockedContents", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} - var fernTestValueLockedContents bool - obj.SetLockedContents(fernTestValueLockedContents) - assert.Equal(t, fernTestValueLockedContents, obj.LockedContents) - assert.NotNil(t, obj.explicitFields) + t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckbox + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetName() // Should return zero value }) -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags(t *testing.T) { - t.Run("GetInvisible", func(t *testing.T) { + t.Run("GetOrigin", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} - var expected bool - obj.Invisible = expected + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var expected DocFormsGet200ResponseFieldsItemCheckboxOrigin + obj.Origin = expected // Act & Assert - assert.Equal(t, expected, obj.GetInvisible(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrigin(), "getter should return the property value") }) - t.Run("GetInvisible_NilReceiver", func(t *testing.T) { + t.Run("GetOrigin_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags + var obj *DocFormsGet200ResponseFieldsItemCheckbox // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInvisible() // Should return zero value + _ = obj.GetOrigin() // Should return zero value }) - t.Run("GetHidden", func(t *testing.T) { + t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} - var expected bool - obj.Hidden = expected + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var expected *DocFormsGet200ResponseFieldsItemCheckboxFlags + obj.Flags = expected // Act & Assert - assert.Equal(t, expected, obj.GetHidden(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") }) - t.Run("GetHidden_NilReceiver", func(t *testing.T) { + t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + obj.Flags = nil + + // Act & Assert + assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") + }) + + t.Run("GetFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckbox // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetHidden() // Should return zero value + _ = obj.GetFlags() // Should return zero value }) - t.Run("GetPrint", func(t *testing.T) { + t.Run("GetAlternateName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} - var expected bool - obj.Print = expected + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var expected *string + obj.AlternateName = expected // Act & Assert - assert.Equal(t, expected, obj.GetPrint(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAlternateName(), "getter should return the property value") }) - t.Run("GetPrint_NilReceiver", func(t *testing.T) { + t.Run("GetAlternateName_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + obj.AlternateName = nil + + // Act & Assert + assert.Nil(t, obj.GetAlternateName(), "getter should return nil when property is nil") + }) + + t.Run("GetAlternateName_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckbox // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPrint() // Should return zero value + _ = obj.GetAlternateName() // Should return zero value }) - t.Run("GetNoZoom", func(t *testing.T) { + t.Run("GetMappingName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} - var expected bool - obj.NoZoom = expected + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var expected *string + obj.MappingName = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoZoom(), "getter should return the property value") + assert.Equal(t, expected, obj.GetMappingName(), "getter should return the property value") }) - t.Run("GetNoZoom_NilReceiver", func(t *testing.T) { + t.Run("GetMappingName_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + obj.MappingName = nil + + // Act & Assert + assert.Nil(t, obj.GetMappingName(), "getter should return nil when property is nil") + }) + + t.Run("GetMappingName_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckbox // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNoZoom() // Should return zero value + _ = obj.GetMappingName() // Should return zero value }) - t.Run("GetNoRotate", func(t *testing.T) { + t.Run("GetValueEntry", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} - var expected bool - obj.NoRotate = expected + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var expected *DocFormsGet200ResponseFieldsItemCheckboxValueEntry + obj.ValueEntry = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoRotate(), "getter should return the property value") + assert.Equal(t, expected, obj.GetValueEntry(), "getter should return the property value") }) - t.Run("GetNoRotate_NilReceiver", func(t *testing.T) { + t.Run("GetValueEntry_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + obj.ValueEntry = nil + + // Act & Assert + assert.Nil(t, obj.GetValueEntry(), "getter should return nil when property is nil") + }) + + t.Run("GetValueEntry_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckbox // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNoRotate() // Should return zero value + _ = obj.GetValueEntry() // Should return zero value }) - t.Run("GetNoView", func(t *testing.T) { + t.Run("GetDefaultValueEntry", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} - var expected bool - obj.NoView = expected + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var expected *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry + obj.DefaultValueEntry = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoView(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDefaultValueEntry(), "getter should return the property value") }) - t.Run("GetNoView_NilReceiver", func(t *testing.T) { + t.Run("GetDefaultValueEntry_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + obj.DefaultValueEntry = nil + + // Act & Assert + assert.Nil(t, obj.GetDefaultValueEntry(), "getter should return nil when property is nil") + }) + + t.Run("GetDefaultValueEntry_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckbox // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNoView() // Should return zero value + _ = obj.GetDefaultValueEntry() // Should return zero value }) - t.Run("GetReadOnly", func(t *testing.T) { + t.Run("GetActions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} - var expected bool - obj.ReadOnly = expected + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var expected *PdfFieldActions + obj.Actions = expected // Act & Assert - assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") + assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") }) - t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { + t.Run("GetActions_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + obj.Actions = nil + + // Act & Assert + assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") + }) + + t.Run("GetActions_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckbox // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReadOnly() // Should return zero value + _ = obj.GetActions() // Should return zero value }) - t.Run("GetLocked", func(t *testing.T) { + t.Run("GetWidgets", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} - var expected bool - obj.Locked = expected + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var expected []*DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem + obj.Widgets = expected // Act & Assert - assert.Equal(t, expected, obj.GetLocked(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWidgets(), "getter should return the property value") }) - t.Run("GetLocked_NilReceiver", func(t *testing.T) { + t.Run("GetWidgets_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + obj.Widgets = nil + + // Act & Assert + assert.Nil(t, obj.GetWidgets(), "getter should return nil when property is nil") + }) + + t.Run("GetWidgets_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckbox // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLocked() // Should return zero value + _ = obj.GetWidgets() // Should return zero value }) - t.Run("GetToggleNoView", func(t *testing.T) { + t.Run("GetChecked", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} var expected bool - obj.ToggleNoView = expected + obj.Checked = expected // Act & Assert - assert.Equal(t, expected, obj.GetToggleNoView(), "getter should return the property value") + assert.Equal(t, expected, obj.GetChecked(), "getter should return the property value") }) - t.Run("GetToggleNoView_NilReceiver", func(t *testing.T) { + t.Run("GetChecked_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags + var obj *DocFormsGet200ResponseFieldsItemCheckbox // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetToggleNoView() // Should return zero value + _ = obj.GetChecked() // Should return zero value }) - t.Run("GetLockedContents", func(t *testing.T) { + t.Run("GetExportValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} - var expected bool - obj.LockedContents = expected + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var expected string + obj.ExportValue = expected // Act & Assert - assert.Equal(t, expected, obj.GetLockedContents(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExportValue(), "getter should return the property value") }) - t.Run("GetLockedContents_NilReceiver", func(t *testing.T) { + t.Run("GetExportValue_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags + var obj *DocFormsGet200ResponseFieldsItemCheckbox // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLockedContents() // Should return zero value + _ = obj.GetExportValue() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags(t *testing.T) { - t.Run("SetInvisible_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} - var fernTestValueInvisible bool + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var fernTestValueRef *DocFormsGet200ResponseFieldsItemCheckboxRef // Act - obj.SetInvisible(fernTestValueInvisible) + obj.SetRef(fernTestValueRef) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -205072,14 +247627,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetHidden_MarksExplicit", func(t *testing.T) { + t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} - var fernTestValueHidden bool + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var fernTestValueFieldObjectNumber int // Act - obj.SetHidden(fernTestValueHidden) + obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -205103,14 +247658,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPrint_MarksExplicit", func(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} - var fernTestValuePrint bool + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var fernTestValueName string // Act - obj.SetPrint(fernTestValuePrint) + obj.SetName(fernTestValueName) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -205134,14 +247689,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoZoom_MarksExplicit", func(t *testing.T) { + t.Run("SetOrigin_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} - var fernTestValueNoZoom bool + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var fernTestValueOrigin DocFormsGet200ResponseFieldsItemCheckboxOrigin // Act - obj.SetNoZoom(fernTestValueNoZoom) + obj.SetOrigin(fernTestValueOrigin) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -205165,14 +247720,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoRotate_MarksExplicit", func(t *testing.T) { + t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} - var fernTestValueNoRotate bool + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var fernTestValueFlags *DocFormsGet200ResponseFieldsItemCheckboxFlags // Act - obj.SetNoRotate(fernTestValueNoRotate) + obj.SetFlags(fernTestValueFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -205196,14 +247751,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoView_MarksExplicit", func(t *testing.T) { + t.Run("SetAlternateName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} - var fernTestValueNoView bool + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var fernTestValueAlternateName *string // Act - obj.SetNoView(fernTestValueNoView) + obj.SetAlternateName(fernTestValueAlternateName) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -205227,14 +247782,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { + t.Run("SetMappingName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} - var fernTestValueReadOnly bool + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var fernTestValueMappingName *string // Act - obj.SetReadOnly(fernTestValueReadOnly) + obj.SetMappingName(fernTestValueMappingName) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -205258,14 +247813,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLocked_MarksExplicit", func(t *testing.T) { + t.Run("SetValueEntry_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} - var fernTestValueLocked bool + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemCheckboxValueEntry // Act - obj.SetLocked(fernTestValueLocked) + obj.SetValueEntry(fernTestValueValueEntry) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -205289,14 +247844,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetToggleNoView_MarksExplicit", func(t *testing.T) { + t.Run("SetDefaultValueEntry_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} - var fernTestValueToggleNoView bool + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry // Act - obj.SetToggleNoView(fernTestValueToggleNoView) + obj.SetDefaultValueEntry(fernTestValueDefaultValueEntry) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -205320,14 +247875,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLockedContents_MarksExplicit", func(t *testing.T) { + t.Run("SetActions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFlags{} - var fernTestValueLockedContents bool + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var fernTestValueActions *PdfFieldActions // Act - obj.SetLockedContents(fernTestValueLockedContents) + obj.SetActions(fernTestValueActions) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -205351,116 +247906,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor(t *testing.T) { - t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor{} - var fernTestValueR int - obj.SetR(fernTestValueR) - assert.Equal(t, fernTestValueR, obj.R) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor{} - var fernTestValueG int - obj.SetG(fernTestValueG) - assert.Equal(t, fernTestValueG, obj.G) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor{} - var fernTestValueB int - obj.SetB(fernTestValueB) - assert.Equal(t, fernTestValueB, obj.B) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor(t *testing.T) { - t.Run("GetR", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor{} - var expected int - obj.R = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetR(), "getter should return the property value") - }) - - t.Run("GetR_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetR() // Should return zero value - }) - - t.Run("GetG", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor{} - var expected int - obj.G = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetG(), "getter should return the property value") - }) - - t.Run("GetG_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetG() // Should return zero value - }) - - t.Run("GetB", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor{} - var expected int - obj.B = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetB(), "getter should return the property value") - }) - - t.Run("GetB_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetB() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor(t *testing.T) { - t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Run("SetWidgets_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor{} - var fernTestValueR int + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem // Act - obj.SetR(fernTestValueR) + obj.SetWidgets(fernTestValueWidgets) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -205484,14 +247937,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Run("SetChecked_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor{} - var fernTestValueG int + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var fernTestValueChecked bool // Act - obj.SetG(fernTestValueG) + obj.SetChecked(fernTestValueChecked) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -205515,14 +247968,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Run("SetExportValue_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetFontColor{} - var fernTestValueB int + obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + var fernTestValueExportValue string // Act - obj.SetB(fernTestValueB) + obj.SetExportValue(fernTestValueExportValue) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -205548,11 +248001,11 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo{} + obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry{} var expected string obj.Kind = expected @@ -205562,7 +248015,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIn t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo + var obj *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -205572,225 +248025,431 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIn _ = obj.GetKind() // Should return zero value }) - t.Run("GetObjectNumber", func(t *testing.T) { + t.Run("GetNone", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber - obj.ObjectNumber = expected + obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone + obj.None = expected // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNone(), "getter should return the property value") }) - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Run("GetNone_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo{} - obj.ObjectNumber = nil + obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry{} + obj.None = nil // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNone(), "getter should return nil when property is nil") }) - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetNone_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo + var obj *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetObjectNumber() // Should return zero value + _ = obj.GetNone() // Should return zero value }) - t.Run("GetNm", func(t *testing.T) { + t.Run("GetScalar", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm - obj.Nm = expected + obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar + obj.Scalar = expected // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScalar(), "getter should return the property value") }) - t.Run("GetNm_NilValue", func(t *testing.T) { + t.Run("GetScalar_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo{} - obj.Nm = nil + obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry{} + obj.Scalar = nil // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetScalar(), "getter should return nil when property is nil") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetScalar_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo + var obj *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetScalar() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetArray", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex - obj.Index = expected + obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray + obj.Array = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetArray(), "getter should return the property value") }) - t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Run("GetArray_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo{} - obj.Index = nil + obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry{} + obj.Array = nil // Act & Assert - assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetArray(), "getter should return nil when property is nil") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetArray_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyTo + var obj *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetArray() // Should return zero value + }) + + t.Run("GetUnsupported", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported + obj.Unsupported = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUnsupported(), "getter should return the property value") + }) + + t.Run("GetUnsupported_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry{} + obj.Unsupported = nil + + // Act & Assert + assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") + }) + + t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnsupported() // Should return zero value }) } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) +func TestSettersDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray(t *testing.T) { + t.Run("SetValues", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray{} + var fernTestValueValues []string + obj.SetValues(fernTestValueValues) + assert.Equal(t, fernTestValueValues, obj.Values) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) +} + +func TestGettersDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray(t *testing.T) { + t.Run("GetValues", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray{} + var expected []string + obj.Values = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetValues(), "getter should return the property value") + }) + + t.Run("GetValues_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray{} + obj.Values = nil + + // Act & Assert + assert.Nil(t, obj.GetValues(), "getter should return nil when property is nil") + }) + + t.Run("GetValues_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetValues() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray(t *testing.T) { + t.Run("SetValues_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray{} + var fernTestValueValues []string + + // Act + obj.SetValues(fernTestValueValues) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar(t *testing.T) { + t.Run("SetValue", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar{} + var fernTestValueValue string + obj.SetValue(fernTestValueValue) + assert.Equal(t, fernTestValueValue, obj.Value) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) +} + +func TestGettersDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar(t *testing.T) { + t.Run("GetValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar{} + var expected string + obj.Value = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") + }) + + t.Run("GetValue_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetValue() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar(t *testing.T) { + t.Run("SetValue_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar{} + var fernTestValueValue string + + // Act + obj.SetValue(fernTestValueValue) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemCheckboxFlags(t *testing.T) { + t.Run("SetReadOnly", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} + var fernTestValueReadOnly bool + obj.SetReadOnly(fernTestValueReadOnly) + assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRequired", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} + var fernTestValueRequired bool + obj.SetRequired(fernTestValueRequired) + assert.Equal(t, fernTestValueRequired, obj.Required) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNoExport", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} + var fernTestValueNoExport bool + obj.SetNoExport(fernTestValueNoExport) + assert.Equal(t, fernTestValueNoExport, obj.NoExport) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRaw", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} + var fernTestValueRaw int + obj.SetRaw(fernTestValueRaw) + assert.Equal(t, fernTestValueRaw, obj.Raw) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemCheckboxFlags(t *testing.T) { + t.Run("GetReadOnly", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex{} - var expected int - obj.PageObjectNumber = expected + obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} + var expected bool + obj.ReadOnly = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex + var obj *DocFormsGet200ResponseFieldsItemCheckboxFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetReadOnly() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetRequired", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex{} - var expected int - obj.Index = expected + obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} + var expected bool + obj.Required = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRequired(), "getter should return the property value") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetRequired_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex + var obj *DocFormsGet200ResponseFieldsItemCheckboxFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetRequired() // Should return zero value }) - t.Run("GetRevision", func(t *testing.T) { + t.Run("GetNoExport", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision - obj.Revision = expected + obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} + var expected bool + obj.NoExport = expected // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNoExport(), "getter should return the property value") }) - t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Run("GetNoExport_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNoExport() // Should return zero value + }) + + t.Run("GetRaw", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex{} - obj.Revision = nil + obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} + var expected int + obj.Raw = expected // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetRaw(), "getter should return the property value") }) - t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Run("GetRaw_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex + var obj *DocFormsGet200ResponseFieldsItemCheckboxFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRevision() // Should return zero value + _ = obj.GetRaw() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxFlags(t *testing.T) { + t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex{} - var fernTestValuePageObjectNumber int + obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} + var fernTestValueReadOnly bool // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetReadOnly(fernTestValueReadOnly) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -205814,14 +248473,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("SetRequired_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex{} - var fernTestValueIndex int + obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} + var fernTestValueRequired bool // Act - obj.SetIndex(fernTestValueIndex) + obj.SetRequired(fernTestValueRequired) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -205845,14 +248504,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("SetNoExport_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision + obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} + var fernTestValueNoExport bool // Act - obj.SetRevision(fernTestValueRevision) + obj.SetNoExport(fernTestValueNoExport) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -205876,116 +248535,177 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} + t.Run("SetRaw_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} + var fernTestValueRaw int -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision{} - var fernTestValueDocSessionID string - obj.SetDocSessionID(fernTestValueDocSessionID) - assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetRaw(fernTestValueRaw) - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) - assert.NotNil(t, obj.explicitFields) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemCheckboxRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision{} + obj := &DocFormsGet200ResponseFieldsItemCheckboxRef{} var expected string - obj.DocSessionID = expected + obj.Kind = expected // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") }) - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision + var obj *DocFormsGet200ResponseFieldsItemCheckboxRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDocSessionID() // Should return zero value + _ = obj.GetKind() // Should return zero value }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxRef{} + var expected *DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber + obj.ObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + }) + + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxRef{} + obj.ObjectNumber = nil + + // Act & Assert + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + }) + + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetObjectNumber() // Should return zero value + }) + + t.Run("GetFqn", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxRef{} + var expected *DocFormsGet200ResponseFieldsItemCheckboxRefFqn + obj.Fqn = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFqn(), "getter should return the property value") + }) + + t.Run("GetFqn_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision{} - var expected int - obj.PageObjectNumber = expected + obj := &DocFormsGet200ResponseFieldsItemCheckboxRef{} + obj.Fqn = nil // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Nil(t, obj.GetFqn(), "getter should return nil when property is nil") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetFqn_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision + var obj *DocFormsGet200ResponseFieldsItemCheckboxRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetFqn() // Should return zero value }) - t.Run("GetGeneration", func(t *testing.T) { +} + +func TestSettersDocFormsGet200ResponseFieldsItemCheckboxRefFqn(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxRefFqn{} + var fernTestValueName string + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemCheckboxRefFqn(t *testing.T) { + t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision{} - var expected int - obj.Generation = expected + obj := &DocFormsGet200ResponseFieldsItemCheckboxRefFqn{} + var expected string + obj.Name = expected // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") }) - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision + var obj *DocFormsGet200ResponseFieldsItemCheckboxRefFqn // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGeneration() // Should return zero value + _ = obj.GetName() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxRefFqn(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision{} - var fernTestValueDocSessionID string + obj := &DocFormsGet200ResponseFieldsItemCheckboxRefFqn{} + var fernTestValueName string // Act - obj.SetDocSessionID(fernTestValueDocSessionID) + obj.SetName(fernTestValueName) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -206009,14 +248729,54 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber(t *testing.T) { + t.Run("SetFieldObjectNumber", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber{} + var fernTestValueFieldObjectNumber int + obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) + assert.Equal(t, fernTestValueFieldObjectNumber, obj.FieldObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber(t *testing.T) { + t.Run("GetFieldObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision{} - var fernTestValuePageObjectNumber int + obj := &DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber{} + var expected int + obj.FieldObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFieldObjectNumber(), "getter should return the property value") + }) + + t.Run("GetFieldObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFieldObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber(t *testing.T) { + t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber{} + var fernTestValueFieldObjectNumber int // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -206040,116 +248800,222 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { +} + +func TestGettersDocFormsGet200ResponseFieldsItemCheckboxValueEntry(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToIndexRevision{} - var fernTestValueGeneration int + obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntry{} + var expected string + obj.Kind = expected - // Act - obj.SetGeneration(fernTestValueGeneration) + // Act & Assert + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxValueEntry + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKind() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetNone", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone + obj.None = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetNone(), "getter should return the property value") }) -} + t.Run("GetNone_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntry{} + obj.None = nil -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Nil(t, obj.GetNone(), "getter should return nil when property is nil") }) - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm{} - var fernTestValueNm string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) + t.Run("GetNone_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxValueEntry + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNone() // Should return zero value }) -} + t.Run("GetScalar", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar + obj.Scalar = expected -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + // Act & Assert + assert.Equal(t, expected, obj.GetScalar(), "getter should return the property value") + }) + + t.Run("GetScalar_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm{} - var expected int - obj.PageObjectNumber = expected + obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntry{} + obj.Scalar = nil // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Nil(t, obj.GetScalar(), "getter should return nil when property is nil") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetScalar_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm + var obj *DocFormsGet200ResponseFieldsItemCheckboxValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetScalar() // Should return zero value }) - t.Run("GetNm", func(t *testing.T) { + t.Run("GetArray", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm{} - var expected string - obj.Nm = expected + obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray + obj.Array = expected // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + assert.Equal(t, expected, obj.GetArray(), "getter should return the property value") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetArray_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntry{} + obj.Array = nil + + // Act & Assert + assert.Nil(t, obj.GetArray(), "getter should return nil when property is nil") + }) + + t.Run("GetArray_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetArray() // Should return zero value + }) + + t.Run("GetUnsupported", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported + obj.Unsupported = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUnsupported(), "getter should return the property value") + }) + + t.Run("GetUnsupported_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntry{} + obj.Unsupported = nil + + // Act & Assert + assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") + }) + + t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxValueEntry + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnsupported() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemCheckboxValueEntryArray(t *testing.T) { + t.Run("SetValues", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray{} + var fernTestValueValues []string + obj.SetValues(fernTestValueValues) + assert.Equal(t, fernTestValueValues, obj.Values) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemCheckboxValueEntryArray(t *testing.T) { + t.Run("GetValues", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm{} - var fernTestValuePageObjectNumber int + obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray{} + var expected []string + obj.Values = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetValues(), "getter should return the property value") + }) + + t.Run("GetValues_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray{} + obj.Values = nil + + // Act & Assert + assert.Nil(t, obj.GetValues(), "getter should return nil when property is nil") + }) + + t.Run("GetValues_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetValues() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxValueEntryArray(t *testing.T) { + t.Run("SetValues_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray{} + var fernTestValueValues []string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetValues(fernTestValueValues) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -206173,14 +249039,54 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar(t *testing.T) { + t.Run("SetValue", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar{} + var fernTestValueValue string + obj.SetValue(fernTestValueValue) + assert.Equal(t, fernTestValueValue, obj.Value) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar(t *testing.T) { + t.Run("GetValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToNm{} - var fernTestValueNm string + obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar{} + var expected string + obj.Value = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") + }) + + t.Run("GetValue_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetValue() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar(t *testing.T) { + t.Run("SetValue_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar{} + var fernTestValueValue string // Act - obj.SetNm(fernTestValueNm) + obj.SetValue(fernTestValueValue) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -206206,30 +249112,77 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemCheckboxWidgetsItem(t *testing.T) { + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber{} + obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + t.Run("SetOnState", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} + var fernTestValueOnState string + obj.SetOnState(fernTestValueOnState) + assert.Equal(t, fernTestValueOnState, obj.OnState) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetExportValue", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} + var fernTestValueExportValue string + obj.SetExportValue(fernTestValueExportValue) + assert.Equal(t, fernTestValueExportValue, obj.ExportValue) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetChecked", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} + var fernTestValueChecked bool + obj.SetChecked(fernTestValueChecked) + assert.Equal(t, fernTestValueChecked, obj.Checked) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemCheckboxWidgetsItem(t *testing.T) { + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} + var expected int + obj.AnnotObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + }) + + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAnnotObjectNumber() // Should return zero value + }) + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber{} + obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} var expected int obj.PageObjectNumber = expected @@ -206239,7 +249192,7 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIn t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber + var obj *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -206249,40 +249202,86 @@ func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetIn _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Run("GetOnState", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected + obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} + var expected string + obj.OnState = expected // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOnState(), "getter should return the property value") }) - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetOnState_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber + var obj *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAnnotObjectNumber() // Should return zero value + _ = obj.GetOnState() // Should return zero value + }) + + t.Run("GetExportValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} + var expected string + obj.ExportValue = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetExportValue(), "getter should return the property value") + }) + + t.Run("GetExportValue_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetExportValue() // Should return zero value + }) + + t.Run("GetChecked", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} + var expected bool + obj.Checked = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetChecked(), "getter should return the property value") + }) + + t.Run("GetChecked_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetChecked() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxWidgetsItem(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber{} - var fernTestValuePageObjectNumber int + obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} + var fernTestValueAnnotObjectNumber int // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -206306,14 +249305,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInReplyToObjectNumber{} - var fernTestValueAnnotObjectNumber int + obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} + var fernTestValuePageObjectNumber int // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -206337,116 +249336,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor(t *testing.T) { - t.Run("SetR", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor{} - var fernTestValueR int - obj.SetR(fernTestValueR) - assert.Equal(t, fernTestValueR, obj.R) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetG", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor{} - var fernTestValueG int - obj.SetG(fernTestValueG) - assert.Equal(t, fernTestValueG, obj.G) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetB", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor{} - var fernTestValueB int - obj.SetB(fernTestValueB) - assert.Equal(t, fernTestValueB, obj.B) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor(t *testing.T) { - t.Run("GetR", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor{} - var expected int - obj.R = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetR(), "getter should return the property value") - }) - - t.Run("GetR_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetR() // Should return zero value - }) - - t.Run("GetG", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor{} - var expected int - obj.G = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetG(), "getter should return the property value") - }) - - t.Run("GetG_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetG() // Should return zero value - }) - - t.Run("GetB", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor{} - var expected int - obj.B = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetB(), "getter should return the property value") - }) - - t.Run("GetB_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetB() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor(t *testing.T) { - t.Run("SetR_MarksExplicit", func(t *testing.T) { + t.Run("SetOnState_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor{} - var fernTestValueR int + obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} + var fernTestValueOnState string // Act - obj.SetR(fernTestValueR) + obj.SetOnState(fernTestValueOnState) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -206470,14 +249367,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetG_MarksExplicit", func(t *testing.T) { + t.Run("SetExportValue_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor{} - var fernTestValueG int + obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} + var fernTestValueExportValue string // Act - obj.SetG(fernTestValueG) + obj.SetExportValue(fernTestValueExportValue) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -206501,14 +249398,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetB_MarksExplicit", func(t *testing.T) { + t.Run("SetChecked_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetInteriorColor{} - var fernTestValueB int + obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} + var fernTestValueChecked bool // Act - obj.SetB(fernTestValueB) + obj.SetChecked(fernTestValueChecked) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -206534,506 +249431,576 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations } -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect(t *testing.T) { - t.Run("SetLeft", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} - var fernTestValueLeft float64 - obj.SetLeft(fernTestValueLeft) - assert.Equal(t, fernTestValueLeft, obj.Left) +func TestSettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { + t.Run("SetRef", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueRef *DocFormsGet200ResponseFieldsItemComboboxRef + obj.SetRef(fernTestValueRef) + assert.Equal(t, fernTestValueRef, obj.Ref) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetBottom", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} - var fernTestValueBottom float64 - obj.SetBottom(fernTestValueBottom) - assert.Equal(t, fernTestValueBottom, obj.Bottom) + t.Run("SetFieldObjectNumber", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueFieldObjectNumber int + obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) + assert.Equal(t, fernTestValueFieldObjectNumber, obj.FieldObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRight", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} - var fernTestValueRight float64 - obj.SetRight(fernTestValueRight) - assert.Equal(t, fernTestValueRight, obj.Right) + t.Run("SetName", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueName string + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTop", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} - var fernTestValueTop float64 - obj.SetTop(fernTestValueTop) - assert.Equal(t, fernTestValueTop, obj.Top) + t.Run("SetOrigin", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueOrigin DocFormsGet200ResponseFieldsItemComboboxOrigin + obj.SetOrigin(fernTestValueOrigin) + assert.Equal(t, fernTestValueOrigin, obj.Origin) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFlags", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueFlags *DocFormsGet200ResponseFieldsItemComboboxFlags + obj.SetFlags(fernTestValueFlags) + assert.Equal(t, fernTestValueFlags, obj.Flags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAlternateName", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueAlternateName *string + obj.SetAlternateName(fernTestValueAlternateName) + assert.Equal(t, fernTestValueAlternateName, obj.AlternateName) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMappingName", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueMappingName *string + obj.SetMappingName(fernTestValueMappingName) + assert.Equal(t, fernTestValueMappingName, obj.MappingName) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetValueEntry", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemComboboxValueEntry + obj.SetValueEntry(fernTestValueValueEntry) + assert.Equal(t, fernTestValueValueEntry, obj.ValueEntry) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDefaultValueEntry", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry + obj.SetDefaultValueEntry(fernTestValueDefaultValueEntry) + assert.Equal(t, fernTestValueDefaultValueEntry, obj.DefaultValueEntry) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetActions", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueActions *PdfFieldActions + obj.SetActions(fernTestValueActions) + assert.Equal(t, fernTestValueActions, obj.Actions) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWidgets", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemComboboxWidgetsItem + obj.SetWidgets(fernTestValueWidgets) + assert.Equal(t, fernTestValueWidgets, obj.Widgets) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetValue", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueValue string + obj.SetValue(fernTestValueValue) + assert.Equal(t, fernTestValueValue, obj.Value) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDefaultValue", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueDefaultValue string + obj.SetDefaultValue(fernTestValueDefaultValue) + assert.Equal(t, fernTestValueDefaultValue, obj.DefaultValue) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetEdit", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueEdit bool + obj.SetEdit(fernTestValueEdit) + assert.Equal(t, fernTestValueEdit, obj.Edit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetOptions", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueOptions []*DocFormsGet200ResponseFieldsItemComboboxOptionsItem + obj.SetOptions(fernTestValueOptions) + assert.Equal(t, fernTestValueOptions, obj.Options) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect(t *testing.T) { - t.Run("GetLeft", func(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} - var expected float64 - obj.Left = expected + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var expected *DocFormsGet200ResponseFieldsItemComboboxRef + obj.Ref = expected // Act & Assert - assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") }) - t.Run("GetLeft_NilReceiver", func(t *testing.T) { + t.Run("GetRef_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + obj.Ref = nil + + // Act & Assert + assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") + }) + + t.Run("GetRef_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCombobox // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLeft() // Should return zero value + _ = obj.GetRef() // Should return zero value }) - t.Run("GetBottom", func(t *testing.T) { + t.Run("GetFieldObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} - var expected float64 - obj.Bottom = expected + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var expected int + obj.FieldObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFieldObjectNumber(), "getter should return the property value") }) - t.Run("GetBottom_NilReceiver", func(t *testing.T) { + t.Run("GetFieldObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect + var obj *DocFormsGet200ResponseFieldsItemCombobox // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBottom() // Should return zero value + _ = obj.GetFieldObjectNumber() // Should return zero value }) - t.Run("GetRight", func(t *testing.T) { + t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} - var expected float64 - obj.Right = expected + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var expected string + obj.Name = expected // Act & Assert - assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") }) - t.Run("GetRight_NilReceiver", func(t *testing.T) { + t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect + var obj *DocFormsGet200ResponseFieldsItemCombobox // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRight() // Should return zero value + _ = obj.GetName() // Should return zero value }) - t.Run("GetTop", func(t *testing.T) { + t.Run("GetOrigin", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} - var expected float64 - obj.Top = expected + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var expected DocFormsGet200ResponseFieldsItemComboboxOrigin + obj.Origin = expected // Act & Assert - assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrigin(), "getter should return the property value") }) - t.Run("GetTop_NilReceiver", func(t *testing.T) { + t.Run("GetOrigin_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect + var obj *DocFormsGet200ResponseFieldsItemCombobox // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTop() // Should return zero value + _ = obj.GetOrigin() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect(t *testing.T) { - t.Run("SetLeft_MarksExplicit", func(t *testing.T) { + t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} - var fernTestValueLeft float64 - - // Act - obj.SetLeft(fernTestValueLeft) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var expected *DocFormsGet200ResponseFieldsItemComboboxFlags + obj.Flags = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") }) - t.Run("SetBottom_MarksExplicit", func(t *testing.T) { + t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} - var fernTestValueBottom float64 - - // Act - obj.SetBottom(fernTestValueBottom) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + obj.Flags = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetFlags_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCombobox + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFlags() // Should return zero value }) - t.Run("SetRight_MarksExplicit", func(t *testing.T) { + t.Run("GetAlternateName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} - var fernTestValueRight float64 + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var expected *string + obj.AlternateName = expected - // Act - obj.SetRight(fernTestValueRight) + // Act & Assert + assert.Equal(t, expected, obj.GetAlternateName(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetAlternateName_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + obj.AlternateName = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetAlternateName(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetAlternateName_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCombobox + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAlternateName() // Should return zero value }) - t.Run("SetTop_MarksExplicit", func(t *testing.T) { + t.Run("GetMappingName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRect{} - var fernTestValueTop float64 + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var expected *string + obj.MappingName = expected - // Act - obj.SetTop(fernTestValueTop) + // Act & Assert + assert.Equal(t, expected, obj.GetMappingName(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetMappingName_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + obj.MappingName = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetMappingName(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetMappingName_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCombobox + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMappingName() // Should return zero value }) -} + t.Run("GetValueEntry", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var expected *DocFormsGet200ResponseFieldsItemComboboxValueEntry + obj.ValueEntry = expected -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { + // Act & Assert + assert.Equal(t, expected, obj.GetValueEntry(), "getter should return the property value") + }) + + t.Run("GetValueEntry_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef{} - var expected string - obj.Kind = expected + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + obj.ValueEntry = nil // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Nil(t, obj.GetValueEntry(), "getter should return nil when property is nil") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetValueEntry_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef + var obj *DocFormsGet200ResponseFieldsItemCombobox // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKind() // Should return zero value + _ = obj.GetValueEntry() // Should return zero value }) - t.Run("GetObjectNumber", func(t *testing.T) { + t.Run("GetDefaultValueEntry", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber - obj.ObjectNumber = expected + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var expected *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry + obj.DefaultValueEntry = expected // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDefaultValueEntry(), "getter should return the property value") }) - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Run("GetDefaultValueEntry_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef{} - obj.ObjectNumber = nil + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + obj.DefaultValueEntry = nil // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetDefaultValueEntry(), "getter should return nil when property is nil") }) - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetDefaultValueEntry_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef + var obj *DocFormsGet200ResponseFieldsItemCombobox // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetObjectNumber() // Should return zero value + _ = obj.GetDefaultValueEntry() // Should return zero value }) - t.Run("GetNm", func(t *testing.T) { + t.Run("GetActions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm - obj.Nm = expected + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var expected *PdfFieldActions + obj.Actions = expected // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") + assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") }) - t.Run("GetNm_NilValue", func(t *testing.T) { + t.Run("GetActions_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef{} - obj.Nm = nil + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + obj.Actions = nil // Act & Assert - assert.Nil(t, obj.GetNm(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") }) - t.Run("GetNm_NilReceiver", func(t *testing.T) { + t.Run("GetActions_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef + var obj *DocFormsGet200ResponseFieldsItemCombobox // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNm() // Should return zero value + _ = obj.GetActions() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetWidgets", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex - obj.Index = expected + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var expected []*DocFormsGet200ResponseFieldsItemComboboxWidgetsItem + obj.Widgets = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWidgets(), "getter should return the property value") }) - t.Run("GetIndex_NilValue", func(t *testing.T) { + t.Run("GetWidgets_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef{} - obj.Index = nil + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + obj.Widgets = nil // Act & Assert - assert.Nil(t, obj.GetIndex(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetWidgets(), "getter should return nil when property is nil") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetWidgets_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRef + var obj *DocFormsGet200ResponseFieldsItemCombobox // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetWidgets() // Should return zero value }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("GetValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var expected string + obj.Value = expected - t.Run("SetIndex", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex{} - var fernTestValueIndex int - obj.SetIndex(fernTestValueIndex) - assert.Equal(t, fernTestValueIndex, obj.Index) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") }) - t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) - assert.NotNil(t, obj.explicitFields) + t.Run("GetValue_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemCombobox + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetValue() // Should return zero value }) -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetDefaultValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex{} - var expected int - obj.PageObjectNumber = expected + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var expected string + obj.DefaultValue = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDefaultValue(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetDefaultValue_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex + var obj *DocFormsGet200ResponseFieldsItemCombobox // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetDefaultValue() // Should return zero value }) - t.Run("GetIndex", func(t *testing.T) { + t.Run("GetEdit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex{} - var expected int - obj.Index = expected + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var expected bool + obj.Edit = expected // Act & Assert - assert.Equal(t, expected, obj.GetIndex(), "getter should return the property value") + assert.Equal(t, expected, obj.GetEdit(), "getter should return the property value") }) - t.Run("GetIndex_NilReceiver", func(t *testing.T) { + t.Run("GetEdit_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex + var obj *DocFormsGet200ResponseFieldsItemCombobox // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIndex() // Should return zero value + _ = obj.GetEdit() // Should return zero value }) - t.Run("GetRevision", func(t *testing.T) { + t.Run("GetOptions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex{} - var expected *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision - obj.Revision = expected + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var expected []*DocFormsGet200ResponseFieldsItemComboboxOptionsItem + obj.Options = expected // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOptions(), "getter should return the property value") }) - t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Run("GetOptions_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex{} - obj.Revision = nil + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + obj.Options = nil // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOptions(), "getter should return nil when property is nil") }) - t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Run("GetOptions_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex + var obj *DocFormsGet200ResponseFieldsItemCombobox // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRevision() // Should return zero value + _ = obj.GetOptions() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex{} - var fernTestValuePageObjectNumber int + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueRef *DocFormsGet200ResponseFieldsItemComboboxRef // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetRef(fernTestValueRef) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -207057,14 +250024,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIndex_MarksExplicit", func(t *testing.T) { + t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex{} - var fernTestValueIndex int + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueFieldObjectNumber int // Act - obj.SetIndex(fernTestValueIndex) + obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -207088,14 +250055,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndex{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueName string // Act - obj.SetRevision(fernTestValueRevision) + obj.SetName(fernTestValueName) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -207119,116 +250086,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision{} - var fernTestValueDocSessionID string - obj.SetDocSessionID(fernTestValueDocSessionID) - assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision{} - var expected string - obj.DocSessionID = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") - }) - - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetDocSessionID() // Should return zero value - }) - - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetGeneration", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision{} - var expected int - obj.Generation = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") - }) - - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetGeneration() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Run("SetOrigin_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision{} - var fernTestValueDocSessionID string + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueOrigin DocFormsGet200ResponseFieldsItemComboboxOrigin // Act - obj.SetDocSessionID(fernTestValueDocSessionID) + obj.SetOrigin(fernTestValueOrigin) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -207252,14 +250117,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision{} - var fernTestValuePageObjectNumber int + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueFlags *DocFormsGet200ResponseFieldsItemComboboxFlags // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetFlags(fernTestValueFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -207283,14 +250148,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("SetAlternateName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefIndexRevision{} - var fernTestValueGeneration int + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueAlternateName *string // Act - obj.SetGeneration(fernTestValueGeneration) + obj.SetAlternateName(fernTestValueAlternateName) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -207314,85 +250179,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNm", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm{} - var fernTestValueNm string - obj.SetNm(fernTestValueNm) - assert.Equal(t, fernTestValueNm, obj.Nm) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetNm", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm{} - var expected string - obj.Nm = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNm(), "getter should return the property value") - }) - - t.Run("GetNm_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNm() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetMappingName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm{} - var fernTestValuePageObjectNumber int + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueMappingName *string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetMappingName(fernTestValueMappingName) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -207416,14 +250210,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNm_MarksExplicit", func(t *testing.T) { + t.Run("SetValueEntry_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefNm{} - var fernTestValueNm string + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemComboboxValueEntry // Act - obj.SetNm(fernTestValueNm) + obj.SetValueEntry(fernTestValueValueEntry) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -207447,85 +250241,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetAnnotObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber{} - var expected int - obj.AnnotObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") - }) - - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAnnotObjectNumber() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetDefaultValueEntry_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber{} - var fernTestValuePageObjectNumber int + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetDefaultValueEntry(fernTestValueDefaultValueEntry) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -207549,14 +250272,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetActions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemWidgetRefObjectNumber{} - var fernTestValueAnnotObjectNumber int + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueActions *PdfFieldActions // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + obj.SetActions(fernTestValueActions) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -207580,136 +250303,76 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemAnnotations // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsListAll200ResponsePagesItemPageState(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemPageState{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemPageState{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemPageStateRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetWeakAnnotationState", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemPageState{} - var fernTestValueWeakAnnotationState *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState - obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) - assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemPageState(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemPageState{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemPageState - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetRevision", func(t *testing.T) { + t.Run("SetWidgets_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemPageState{} - var expected *DocAnnotationsListAll200ResponsePagesItemPageStateRevision - obj.Revision = expected + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemComboboxWidgetsItem - // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") - }) + // Act + obj.SetWidgets(fernTestValueWidgets) - t.Run("GetRevision_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemPageState{} - obj.Revision = nil + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetRevision_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemPageState - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRevision() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetWeakAnnotationState", func(t *testing.T) { + t.Run("SetValue_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemPageState{} - var expected *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState - obj.WeakAnnotationState = expected + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueValue string - // Act & Assert - assert.Equal(t, expected, obj.GetWeakAnnotationState(), "getter should return the property value") - }) + // Act + obj.SetValue(fernTestValueValue) - t.Run("GetWeakAnnotationState_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemPageState{} - obj.WeakAnnotationState = nil + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Nil(t, obj.GetWeakAnnotationState(), "getter should return nil when property is nil") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetWeakAnnotationState_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemPageState - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetWeakAnnotationState() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemPageState(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetDefaultValue_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemPageState{} - var fernTestValuePageObjectNumber int + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueDefaultValue string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetDefaultValue(fernTestValueDefaultValue) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -207733,14 +250396,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemPageState(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("SetEdit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemPageState{} - var fernTestValueRevision *DocAnnotationsListAll200ResponsePagesItemPageStateRevision + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueEdit bool // Act - obj.SetRevision(fernTestValueRevision) + obj.SetEdit(fernTestValueEdit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -207764,14 +250427,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemPageState(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWeakAnnotationState_MarksExplicit", func(t *testing.T) { + t.Run("SetOptions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemPageState{} - var fernTestValueWeakAnnotationState *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState + obj := &DocFormsGet200ResponseFieldsItemCombobox{} + var fernTestValueOptions []*DocFormsGet200ResponseFieldsItemComboboxOptionsItem // Act - obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) + obj.SetOptions(fernTestValueOptions) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -207797,339 +250460,291 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemPageState(t } -func TestSettersDocAnnotationsListAll200ResponsePagesItemPageStateRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemPageStateRevision{} - var fernTestValueDocSessionID string - obj.SetDocSessionID(fernTestValueDocSessionID) - assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemPageStateRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemPageStateRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemPageStateRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemPageStateRevision{} + obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} var expected string - obj.DocSessionID = expected + obj.Kind = expected // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") }) - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemPageStateRevision + var obj *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDocSessionID() // Should return zero value + _ = obj.GetKind() // Should return zero value }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetNone", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemPageStateRevision{} - var expected int - obj.PageObjectNumber = expected + obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone + obj.None = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemPageStateRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value + assert.Equal(t, expected, obj.GetNone(), "getter should return the property value") }) - t.Run("GetGeneration", func(t *testing.T) { + t.Run("GetNone_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemPageStateRevision{} - var expected int - obj.Generation = expected + obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} + obj.None = nil // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + assert.Nil(t, obj.GetNone(), "getter should return nil when property is nil") }) - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Run("GetNone_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemPageStateRevision + var obj *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGeneration() // Should return zero value + _ = obj.GetNone() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemPageStateRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + t.Run("GetScalar", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemPageStateRevision{} - var fernTestValueDocSessionID string - - // Act - obj.SetDocSessionID(fernTestValueDocSessionID) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar + obj.Scalar = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetScalar(), "getter should return the property value") }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("GetScalar_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemPageStateRevision{} - var fernTestValuePageObjectNumber int - - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} + obj.Scalar = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetScalar(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetScalar_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetScalar() // Should return zero value }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("GetArray", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemPageStateRevision{} - var fernTestValueGeneration int - - // Act - obj.SetGeneration(fernTestValueGeneration) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray + obj.Array = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetArray(), "getter should return the property value") }) -} - -func TestGettersDocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { + t.Run("GetArray_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState{} - var expected string - obj.Kind = expected + obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} + obj.Array = nil // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Nil(t, obj.GetArray(), "getter should return nil when property is nil") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetArray_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState + var obj *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKind() // Should return zero value + _ = obj.GetArray() // Should return zero value }) - t.Run("GetUnknown", func(t *testing.T) { + t.Run("GetUnsupported", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState{} - var expected *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateUnknown - obj.Unknown = expected + obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported + obj.Unsupported = expected // Act & Assert - assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnsupported(), "getter should return the property value") }) - t.Run("GetUnknown_NilValue", func(t *testing.T) { + t.Run("GetUnsupported_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState{} - obj.Unknown = nil + obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} + obj.Unsupported = nil // Act & Assert - assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") }) - t.Run("GetUnknown_NilReceiver", func(t *testing.T) { + t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState + var obj *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUnknown() // Should return zero value + _ = obj.GetUnsupported() // Should return zero value }) - t.Run("GetKnown", func(t *testing.T) { +} + +func TestSettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray(t *testing.T) { + t.Run("SetValues", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray{} + var fernTestValueValues []string + obj.SetValues(fernTestValueValues) + assert.Equal(t, fernTestValueValues, obj.Values) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray(t *testing.T) { + t.Run("GetValues", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState{} - var expected *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown - obj.Known = expected + obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray{} + var expected []string + obj.Values = expected // Act & Assert - assert.Equal(t, expected, obj.GetKnown(), "getter should return the property value") + assert.Equal(t, expected, obj.GetValues(), "getter should return the property value") }) - t.Run("GetKnown_NilValue", func(t *testing.T) { + t.Run("GetValues_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState{} - obj.Known = nil + obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray{} + obj.Values = nil // Act & Assert - assert.Nil(t, obj.GetKnown(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetValues(), "getter should return nil when property is nil") }) - t.Run("GetKnown_NilReceiver", func(t *testing.T) { + t.Run("GetValues_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationState + var obj *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKnown() // Should return zero value + _ = obj.GetValues() // Should return zero value }) } -func TestSettersDocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown(t *testing.T) { - t.Run("SetHasAnyWeakAnnotations", func(t *testing.T) { - obj := &DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown{} - var fernTestValueHasAnyWeakAnnotations bool - obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) - assert.Equal(t, fernTestValueHasAnyWeakAnnotations, obj.HasAnyWeakAnnotations) +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray(t *testing.T) { + t.Run("SetValues_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray{} + var fernTestValueValues []string + + // Act + obj.SetValues(fernTestValueValues) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar(t *testing.T) { + t.Run("SetValue", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar{} + var fernTestValueValue string + obj.SetValue(fernTestValueValue) + assert.Equal(t, fernTestValueValue, obj.Value) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown(t *testing.T) { - t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar(t *testing.T) { + t.Run("GetValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown{} - var expected bool - obj.HasAnyWeakAnnotations = expected + obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar{} + var expected string + obj.Value = expected // Act & Assert - assert.Equal(t, expected, obj.GetHasAnyWeakAnnotations(), "getter should return the property value") + assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") }) - t.Run("GetHasAnyWeakAnnotations_NilReceiver", func(t *testing.T) { + t.Run("GetValue_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown + var obj *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetHasAnyWeakAnnotations() // Should return zero value + _ = obj.GetValue() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown(t *testing.T) { - t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar(t *testing.T) { + t.Run("SetValue_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll200ResponsePagesItemPageStateWeakAnnotationStateKnown{} - var fernTestValueHasAnyWeakAnnotations bool + obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar{} + var fernTestValueValue string // Act - obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) + obj.SetValue(fernTestValueValue) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -208155,155 +250770,145 @@ func TestSettersMarkExplicitDocAnnotationsListAll200ResponsePagesItemPageStateWe } -func TestSettersDocAnnotationsListAll404Response(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocAnnotationsListAll404Response{} - var fernTestValueName DocAnnotationsListAll404ResponseName - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) +func TestSettersDocFormsGet200ResponseFieldsItemComboboxFlags(t *testing.T) { + t.Run("SetReadOnly", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} + var fernTestValueReadOnly bool + obj.SetReadOnly(fernTestValueReadOnly) + assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCode", func(t *testing.T) { - obj := &DocAnnotationsListAll404Response{} - var fernTestValueCode DocAnnotationsListAll404ResponseCode - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) + t.Run("SetRequired", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} + var fernTestValueRequired bool + obj.SetRequired(fernTestValueRequired) + assert.Equal(t, fernTestValueRequired, obj.Required) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMessage", func(t *testing.T) { - obj := &DocAnnotationsListAll404Response{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + t.Run("SetNoExport", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} + var fernTestValueNoExport bool + obj.SetNoExport(fernTestValueNoExport) + assert.Equal(t, fernTestValueNoExport, obj.NoExport) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetDetails", func(t *testing.T) { - obj := &DocAnnotationsListAll404Response{} - var fernTestValueDetails map[string]any - obj.SetDetails(fernTestValueDetails) - assert.Equal(t, fernTestValueDetails, obj.Details) + t.Run("SetRaw", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} + var fernTestValueRaw int + obj.SetRaw(fernTestValueRaw) + assert.Equal(t, fernTestValueRaw, obj.Raw) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll404Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemComboboxFlags(t *testing.T) { + t.Run("GetReadOnly", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll404Response{} - var expected DocAnnotationsListAll404ResponseName - obj.Name = expected + obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} + var expected bool + obj.ReadOnly = expected // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll404Response + var obj *DocFormsGet200ResponseFieldsItemComboboxFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetName() // Should return zero value + _ = obj.GetReadOnly() // Should return zero value }) - t.Run("GetCode", func(t *testing.T) { + t.Run("GetRequired", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll404Response{} - var expected DocAnnotationsListAll404ResponseCode - obj.Code = expected + obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} + var expected bool + obj.Required = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRequired(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetRequired_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll404Response + var obj *DocFormsGet200ResponseFieldsItemComboboxFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCode() // Should return zero value + _ = obj.GetRequired() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetNoExport", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll404Response{} - var expected string - obj.Message = expected + obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} + var expected bool + obj.NoExport = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNoExport(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetNoExport_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll404Response + var obj *DocFormsGet200ResponseFieldsItemComboboxFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetMessage() // Should return zero value - }) - - t.Run("GetDetails", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll404Response{} - var expected map[string]any - obj.Details = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + _ = obj.GetNoExport() // Should return zero value }) - t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Run("GetRaw", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll404Response{} - obj.Details = nil + obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} + var expected int + obj.Raw = expected // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetRaw(), "getter should return the property value") }) - t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Run("GetRaw_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll404Response + var obj *DocFormsGet200ResponseFieldsItemComboboxFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDetails() // Should return zero value + _ = obj.GetRaw() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll404Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxFlags(t *testing.T) { + t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll404Response{} - var fernTestValueName DocAnnotationsListAll404ResponseName + obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} + var fernTestValueReadOnly bool // Act - obj.SetName(fernTestValueName) + obj.SetReadOnly(fernTestValueReadOnly) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -208327,14 +250932,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll404Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Run("SetRequired_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll404Response{} - var fernTestValueCode DocAnnotationsListAll404ResponseCode + obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} + var fernTestValueRequired bool // Act - obj.SetCode(fernTestValueCode) + obj.SetRequired(fernTestValueRequired) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -208358,14 +250963,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll404Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetMessage_MarksExplicit", func(t *testing.T) { + t.Run("SetNoExport_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll404Response{} - var fernTestValueMessage string + obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} + var fernTestValueNoExport bool // Act - obj.SetMessage(fernTestValueMessage) + obj.SetNoExport(fernTestValueNoExport) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -208389,14 +250994,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll404Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDetails_MarksExplicit", func(t *testing.T) { + t.Run("SetRaw_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll404Response{} - var fernTestValueDetails map[string]any + obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} + var fernTestValueRaw int // Act - obj.SetDetails(fernTestValueDetails) + obj.SetRaw(fernTestValueRaw) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -208422,155 +251027,114 @@ func TestSettersMarkExplicitDocAnnotationsListAll404Response(t *testing.T) { } -func TestSettersDocAnnotationsListAll409Response(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocAnnotationsListAll409Response{} - var fernTestValueName DocAnnotationsListAll409ResponseName - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCode", func(t *testing.T) { - obj := &DocAnnotationsListAll409Response{} - var fernTestValueCode DocAnnotationsListAll409ResponseCode - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) +func TestSettersDocFormsGet200ResponseFieldsItemComboboxOptionsItem(t *testing.T) { + t.Run("SetLabel", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxOptionsItem{} + var fernTestValueLabel string + obj.SetLabel(fernTestValueLabel) + assert.Equal(t, fernTestValueLabel, obj.Label) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMessage", func(t *testing.T) { - obj := &DocAnnotationsListAll409Response{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + t.Run("SetValue", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxOptionsItem{} + var fernTestValueValue string + obj.SetValue(fernTestValueValue) + assert.Equal(t, fernTestValueValue, obj.Value) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetDetails", func(t *testing.T) { - obj := &DocAnnotationsListAll409Response{} - var fernTestValueDetails map[string]any - obj.SetDetails(fernTestValueDetails) - assert.Equal(t, fernTestValueDetails, obj.Details) + t.Run("SetSelected", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxOptionsItem{} + var fernTestValueSelected bool + obj.SetSelected(fernTestValueSelected) + assert.Equal(t, fernTestValueSelected, obj.Selected) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocAnnotationsListAll409Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll409Response{} - var expected DocAnnotationsListAll409ResponseName - obj.Name = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") - }) - - t.Run("GetName_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsListAll409Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetName() // Should return zero value - }) - - t.Run("GetCode", func(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemComboboxOptionsItem(t *testing.T) { + t.Run("GetLabel", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll409Response{} - var expected DocAnnotationsListAll409ResponseCode - obj.Code = expected + obj := &DocFormsGet200ResponseFieldsItemComboboxOptionsItem{} + var expected string + obj.Label = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLabel(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetLabel_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll409Response + var obj *DocFormsGet200ResponseFieldsItemComboboxOptionsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCode() // Should return zero value + _ = obj.GetLabel() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll409Response{} + obj := &DocFormsGet200ResponseFieldsItemComboboxOptionsItem{} var expected string - obj.Message = expected + obj.Value = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetValue_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll409Response + var obj *DocFormsGet200ResponseFieldsItemComboboxOptionsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetMessage() // Should return zero value - }) - - t.Run("GetDetails", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsListAll409Response{} - var expected map[string]any - obj.Details = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + _ = obj.GetValue() // Should return zero value }) - t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Run("GetSelected", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll409Response{} - obj.Details = nil + obj := &DocFormsGet200ResponseFieldsItemComboboxOptionsItem{} + var expected bool + obj.Selected = expected // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetSelected(), "getter should return the property value") }) - t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Run("GetSelected_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsListAll409Response + var obj *DocFormsGet200ResponseFieldsItemComboboxOptionsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDetails() // Should return zero value + _ = obj.GetSelected() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsListAll409Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxOptionsItem(t *testing.T) { + t.Run("SetLabel_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll409Response{} - var fernTestValueName DocAnnotationsListAll409ResponseName + obj := &DocFormsGet200ResponseFieldsItemComboboxOptionsItem{} + var fernTestValueLabel string // Act - obj.SetName(fernTestValueName) + obj.SetLabel(fernTestValueLabel) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -208594,14 +251158,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll409Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Run("SetValue_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll409Response{} - var fernTestValueCode DocAnnotationsListAll409ResponseCode + obj := &DocFormsGet200ResponseFieldsItemComboboxOptionsItem{} + var fernTestValueValue string // Act - obj.SetCode(fernTestValueCode) + obj.SetValue(fernTestValueValue) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -208625,14 +251189,14 @@ func TestSettersMarkExplicitDocAnnotationsListAll409Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetMessage_MarksExplicit", func(t *testing.T) { + t.Run("SetSelected_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll409Response{} - var fernTestValueMessage string + obj := &DocFormsGet200ResponseFieldsItemComboboxOptionsItem{} + var fernTestValueSelected bool // Act - obj.SetMessage(fernTestValueMessage) + obj.SetSelected(fernTestValueSelected) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -208656,217 +251220,146 @@ func TestSettersMarkExplicitDocAnnotationsListAll409Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDetails_MarksExplicit", func(t *testing.T) { +} + +func TestGettersDocFormsGet200ResponseFieldsItemComboboxRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsListAll409Response{} - var fernTestValueDetails map[string]any - - // Act - obj.SetDetails(fernTestValueDetails) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocFormsGet200ResponseFieldsItemComboboxRef{} + var expected string + obj.Kind = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") }) -} - -func TestSettersDocAnnotationsUpdate200Response(t *testing.T) { - t.Run("SetMeta", func(t *testing.T) { - obj := &DocAnnotationsUpdate200Response{} - var fernTestValueMeta *DocAnnotationsUpdate200ResponseMeta - obj.SetMeta(fernTestValueMeta) - assert.Equal(t, fernTestValueMeta, obj.Meta) - assert.NotNil(t, obj.explicitFields) + t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKind() // Should return zero value }) -} - -func TestGettersDocAnnotationsUpdate200Response(t *testing.T) { - t.Run("GetMeta", func(t *testing.T) { + t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200Response{} - var expected *DocAnnotationsUpdate200ResponseMeta - obj.Meta = expected + obj := &DocFormsGet200ResponseFieldsItemComboboxRef{} + var expected *DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber + obj.ObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetMeta(), "getter should return the property value") + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") }) - t.Run("GetMeta_NilValue", func(t *testing.T) { + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200Response{} - obj.Meta = nil + obj := &DocFormsGet200ResponseFieldsItemComboboxRef{} + obj.ObjectNumber = nil // Act & Assert - assert.Nil(t, obj.GetMeta(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") }) - t.Run("GetMeta_NilReceiver", func(t *testing.T) { + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200Response + var obj *DocFormsGet200ResponseFieldsItemComboboxRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetMeta() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsUpdate200Response(t *testing.T) { - t.Run("SetMeta_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsUpdate200Response{} - var fernTestValueMeta *DocAnnotationsUpdate200ResponseMeta - - // Act - obj.SetMeta(fernTestValueMeta) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocAnnotationsUpdate200ResponseMeta(t *testing.T) { - t.Run("SetAffectedPages", func(t *testing.T) { - obj := &DocAnnotationsUpdate200ResponseMeta{} - var fernTestValueAffectedPages []*DocAnnotationsUpdate200ResponseMetaAffectedPagesItem - obj.SetAffectedPages(fernTestValueAffectedPages) - assert.Equal(t, fernTestValueAffectedPages, obj.AffectedPages) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCacheDelta", func(t *testing.T) { - obj := &DocAnnotationsUpdate200ResponseMeta{} - var fernTestValueCacheDelta *DocAnnotationsUpdate200ResponseMetaCacheDelta - obj.SetCacheDelta(fernTestValueCacheDelta) - assert.Equal(t, fernTestValueCacheDelta, obj.CacheDelta) - assert.NotNil(t, obj.explicitFields) + _ = obj.GetObjectNumber() // Should return zero value }) -} - -func TestGettersDocAnnotationsUpdate200ResponseMeta(t *testing.T) { - t.Run("GetAffectedPages", func(t *testing.T) { + t.Run("GetFqn", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMeta{} - var expected []*DocAnnotationsUpdate200ResponseMetaAffectedPagesItem - obj.AffectedPages = expected + obj := &DocFormsGet200ResponseFieldsItemComboboxRef{} + var expected *DocFormsGet200ResponseFieldsItemComboboxRefFqn + obj.Fqn = expected // Act & Assert - assert.Equal(t, expected, obj.GetAffectedPages(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFqn(), "getter should return the property value") }) - t.Run("GetAffectedPages_NilValue", func(t *testing.T) { + t.Run("GetFqn_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMeta{} - obj.AffectedPages = nil + obj := &DocFormsGet200ResponseFieldsItemComboboxRef{} + obj.Fqn = nil // Act & Assert - assert.Nil(t, obj.GetAffectedPages(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetFqn(), "getter should return nil when property is nil") }) - t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { + t.Run("GetFqn_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMeta + var obj *DocFormsGet200ResponseFieldsItemComboboxRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAffectedPages() // Should return zero value + _ = obj.GetFqn() // Should return zero value }) - t.Run("GetCacheDelta", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsUpdate200ResponseMeta{} - var expected *DocAnnotationsUpdate200ResponseMetaCacheDelta - obj.CacheDelta = expected +} - // Act & Assert - assert.Equal(t, expected, obj.GetCacheDelta(), "getter should return the property value") +func TestSettersDocFormsGet200ResponseFieldsItemComboboxRefFqn(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxRefFqn{} + var fernTestValueName string + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetCacheDelta_NilValue", func(t *testing.T) { +} + +func TestGettersDocFormsGet200ResponseFieldsItemComboboxRefFqn(t *testing.T) { + t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMeta{} - obj.CacheDelta = nil + obj := &DocFormsGet200ResponseFieldsItemComboboxRefFqn{} + var expected string + obj.Name = expected // Act & Assert - assert.Nil(t, obj.GetCacheDelta(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") }) - t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { + t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMeta + var obj *DocFormsGet200ResponseFieldsItemComboboxRefFqn // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCacheDelta() // Should return zero value + _ = obj.GetName() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMeta(t *testing.T) { - t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxRefFqn(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMeta{} - var fernTestValueAffectedPages []*DocAnnotationsUpdate200ResponseMetaAffectedPagesItem + obj := &DocFormsGet200ResponseFieldsItemComboboxRefFqn{} + var fernTestValueName string // Act - obj.SetAffectedPages(fernTestValueAffectedPages) + obj.SetName(fernTestValueName) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -208890,14 +251383,54 @@ func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMeta(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCacheDelta_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocFormsGet200ResponseFieldsItemComboboxRefObjectNumber(t *testing.T) { + t.Run("SetFieldObjectNumber", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber{} + var fernTestValueFieldObjectNumber int + obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) + assert.Equal(t, fernTestValueFieldObjectNumber, obj.FieldObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemComboboxRefObjectNumber(t *testing.T) { + t.Run("GetFieldObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMeta{} - var fernTestValueCacheDelta *DocAnnotationsUpdate200ResponseMetaCacheDelta + obj := &DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber{} + var expected int + obj.FieldObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFieldObjectNumber(), "getter should return the property value") + }) + + t.Run("GetFieldObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFieldObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxRefObjectNumber(t *testing.T) { + t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber{} + var fernTestValueFieldObjectNumber int // Act - obj.SetCacheDelta(fernTestValueCacheDelta) + obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -208923,165 +251456,220 @@ func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMeta(t *testing.T) { } -func TestSettersDocAnnotationsUpdate200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) +func TestGettersDocFormsGet200ResponseFieldsItemComboboxValueEntry(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntry{} + var expected string + obj.Kind = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") }) - t.Run("SetRevision", func(t *testing.T) { - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) - assert.NotNil(t, obj.explicitFields) + t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxValueEntry + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKind() // Should return zero value }) - t.Run("SetWeakAnnotationState", func(t *testing.T) { - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState - obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) - assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) - assert.NotNil(t, obj.explicitFields) + t.Run("GetNone", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemComboboxValueEntryNone + obj.None = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNone(), "getter should return the property value") }) -} + t.Run("GetNone_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntry{} + obj.None = nil -func TestGettersDocAnnotationsUpdate200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + // Act & Assert + assert.Nil(t, obj.GetNone(), "getter should return nil when property is nil") + }) + + t.Run("GetNone_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxValueEntry + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNone() // Should return zero value + }) + + t.Run("GetScalar", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} - var expected int - obj.PageObjectNumber = expected + obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar + obj.Scalar = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScalar(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetScalar_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntry{} + obj.Scalar = nil + + // Act & Assert + assert.Nil(t, obj.GetScalar(), "getter should return nil when property is nil") + }) + + t.Run("GetScalar_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetScalar() // Should return zero value }) - t.Run("GetRevision", func(t *testing.T) { + t.Run("GetArray", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} - var expected *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision - obj.Revision = expected + obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemComboboxValueEntryArray + obj.Array = expected // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + assert.Equal(t, expected, obj.GetArray(), "getter should return the property value") }) - t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Run("GetArray_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} - obj.Revision = nil + obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntry{} + obj.Array = nil // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetArray(), "getter should return nil when property is nil") }) - t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Run("GetArray_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem + var obj *DocFormsGet200ResponseFieldsItemComboboxValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRevision() // Should return zero value + _ = obj.GetArray() // Should return zero value }) - t.Run("GetWeakAnnotationState", func(t *testing.T) { + t.Run("GetUnsupported", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} - var expected *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState - obj.WeakAnnotationState = expected + obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported + obj.Unsupported = expected // Act & Assert - assert.Equal(t, expected, obj.GetWeakAnnotationState(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnsupported(), "getter should return the property value") }) - t.Run("GetWeakAnnotationState_NilValue", func(t *testing.T) { + t.Run("GetUnsupported_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} - obj.WeakAnnotationState = nil + obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntry{} + obj.Unsupported = nil // Act & Assert - assert.Nil(t, obj.GetWeakAnnotationState(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") }) - t.Run("GetWeakAnnotationState_NilReceiver", func(t *testing.T) { + t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaAffectedPagesItem + var obj *DocFormsGet200ResponseFieldsItemComboboxValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetWeakAnnotationState() // Should return zero value + _ = obj.GetUnsupported() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemComboboxValueEntryArray(t *testing.T) { + t.Run("SetValues", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryArray{} + var fernTestValueValues []string + obj.SetValues(fernTestValueValues) + assert.Equal(t, fernTestValueValues, obj.Values) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemComboboxValueEntryArray(t *testing.T) { + t.Run("GetValues", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} - var fernTestValuePageObjectNumber int + obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryArray{} + var expected []string + obj.Values = expected - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + // Act & Assert + assert.Equal(t, expected, obj.GetValues(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetValues_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryArray{} + obj.Values = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetValues(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetValues_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxValueEntryArray + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetValues() // Should return zero value }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxValueEntryArray(t *testing.T) { + t.Run("SetValues_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision + obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryArray{} + var fernTestValueValues []string // Act - obj.SetRevision(fernTestValueRevision) + obj.SetValues(fernTestValueValues) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -209105,14 +251693,54 @@ func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMetaAffectedPagesItem // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWeakAnnotationState_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocFormsGet200ResponseFieldsItemComboboxValueEntryScalar(t *testing.T) { + t.Run("SetValue", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar{} + var fernTestValueValue string + obj.SetValue(fernTestValueValue) + assert.Equal(t, fernTestValueValue, obj.Value) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemComboboxValueEntryScalar(t *testing.T) { + t.Run("GetValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar{} + var expected string + obj.Value = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") + }) + + t.Run("GetValue_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetValue() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxValueEntryScalar(t *testing.T) { + t.Run("SetValue_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar{} + var fernTestValueValue string // Act - obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) + obj.SetValue(fernTestValueValue) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -209138,61 +251766,53 @@ func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMetaAffectedPagesItem } -func TestSettersDocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueDocSessionID string - obj.SetDocSessionID(fernTestValueDocSessionID) - assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) +func TestSettersDocFormsGet200ResponseFieldsItemComboboxWidgetsItem(t *testing.T) { + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemComboboxWidgetsItem{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) assert.NotNil(t, obj.explicitFields) }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision{} + obj := &DocFormsGet200ResponseFieldsItemComboboxWidgetsItem{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) - assert.NotNil(t, obj.explicitFields) - }) - } -func TestGettersDocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemComboboxWidgetsItem(t *testing.T) { + t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision{} - var expected string - obj.DocSessionID = expected + obj := &DocFormsGet200ResponseFieldsItemComboboxWidgetsItem{} + var expected int + obj.AnnotObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") }) - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision + var obj *DocFormsGet200ResponseFieldsItemComboboxWidgetsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDocSessionID() // Should return zero value + _ = obj.GetAnnotObjectNumber() // Should return zero value }) t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision{} + obj := &DocFormsGet200ResponseFieldsItemComboboxWidgetsItem{} var expected int obj.PageObjectNumber = expected @@ -209202,7 +251822,7 @@ func TestGettersDocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision(t * t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision + var obj *DocFormsGet200ResponseFieldsItemComboboxWidgetsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -209212,40 +251832,17 @@ func TestGettersDocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision(t * _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetGeneration", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision{} - var expected int - obj.Generation = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") - }) - - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetGeneration() // Should return zero value - }) - } -func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxWidgetsItem(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueDocSessionID string + obj := &DocFormsGet200ResponseFieldsItemComboboxWidgetsItem{} + var fernTestValueAnnotObjectNumber int // Act - obj.SetDocSessionID(fernTestValueDocSessionID) + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -209272,7 +251869,7 @@ func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMetaAffectedPagesItem t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision{} + obj := &DocFormsGet200ResponseFieldsItemComboboxWidgetsItem{} var fernTestValuePageObjectNumber int // Act @@ -209300,443 +251897,557 @@ func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMetaAffectedPagesItem // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { + t.Run("SetRef", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var fernTestValueRef *DocFormsGet200ResponseFieldsItemListboxRef + obj.SetRef(fernTestValueRef) + assert.Equal(t, fernTestValueRef, obj.Ref) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFieldObjectNumber", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var fernTestValueFieldObjectNumber int + obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) + assert.Equal(t, fernTestValueFieldObjectNumber, obj.FieldObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetName", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var fernTestValueName string + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetOrigin", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var fernTestValueOrigin DocFormsGet200ResponseFieldsItemListboxOrigin + obj.SetOrigin(fernTestValueOrigin) + assert.Equal(t, fernTestValueOrigin, obj.Origin) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFlags", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var fernTestValueFlags *DocFormsGet200ResponseFieldsItemListboxFlags + obj.SetFlags(fernTestValueFlags) + assert.Equal(t, fernTestValueFlags, obj.Flags) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAlternateName", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var fernTestValueAlternateName *string + obj.SetAlternateName(fernTestValueAlternateName) + assert.Equal(t, fernTestValueAlternateName, obj.AlternateName) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMappingName", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var fernTestValueMappingName *string + obj.SetMappingName(fernTestValueMappingName) + assert.Equal(t, fernTestValueMappingName, obj.MappingName) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetValueEntry", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemListboxValueEntry + obj.SetValueEntry(fernTestValueValueEntry) + assert.Equal(t, fernTestValueValueEntry, obj.ValueEntry) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDefaultValueEntry", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry + obj.SetDefaultValueEntry(fernTestValueDefaultValueEntry) + assert.Equal(t, fernTestValueDefaultValueEntry, obj.DefaultValueEntry) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetActions", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var fernTestValueActions *PdfFieldActions + obj.SetActions(fernTestValueActions) + assert.Equal(t, fernTestValueActions, obj.Actions) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWidgets", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemListboxWidgetsItem + obj.SetWidgets(fernTestValueWidgets) + assert.Equal(t, fernTestValueWidgets, obj.Widgets) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSelectedValues", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var fernTestValueSelectedValues []string + obj.SetSelectedValues(fernTestValueSelectedValues) + assert.Equal(t, fernTestValueSelectedValues, obj.SelectedValues) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMultiSelect", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var fernTestValueMultiSelect bool + obj.SetMultiSelect(fernTestValueMultiSelect) + assert.Equal(t, fernTestValueMultiSelect, obj.MultiSelect) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetOptions", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var fernTestValueOptions []*DocFormsGet200ResponseFieldsItemListboxOptionsItem + obj.SetOptions(fernTestValueOptions) + assert.Equal(t, fernTestValueOptions, obj.Options) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { + t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueGeneration int - - // Act - obj.SetGeneration(fernTestValueGeneration) + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var expected *DocFormsGet200ResponseFieldsItemListboxRef + obj.Ref = expected - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + // Act & Assert + assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetRef_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListbox{} + obj.Ref = nil - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") }) -} + t.Run("GetRef_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListbox + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRef() // Should return zero value + }) -func TestGettersDocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { + t.Run("GetFieldObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected string - obj.Kind = expected + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var expected int + obj.FieldObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFieldObjectNumber(), "getter should return the property value") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetFieldObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocFormsGet200ResponseFieldsItemListbox // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKind() // Should return zero value + _ = obj.GetFieldObjectNumber() // Should return zero value }) - t.Run("GetUnknown", func(t *testing.T) { + t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - obj.Unknown = expected + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var expected string + obj.Name = expected // Act & Assert - assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") }) - t.Run("GetUnknown_NilValue", func(t *testing.T) { + t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListbox + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetName() // Should return zero value + }) + + t.Run("GetOrigin", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState{} - obj.Unknown = nil + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var expected DocFormsGet200ResponseFieldsItemListboxOrigin + obj.Origin = expected // Act & Assert - assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetOrigin(), "getter should return the property value") }) - t.Run("GetUnknown_NilReceiver", func(t *testing.T) { + t.Run("GetOrigin_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocFormsGet200ResponseFieldsItemListbox // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUnknown() // Should return zero value + _ = obj.GetOrigin() // Should return zero value }) - t.Run("GetKnown", func(t *testing.T) { + t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - obj.Known = expected + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var expected *DocFormsGet200ResponseFieldsItemListboxFlags + obj.Flags = expected // Act & Assert - assert.Equal(t, expected, obj.GetKnown(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") }) - t.Run("GetKnown_NilValue", func(t *testing.T) { + t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState{} - obj.Known = nil + obj := &DocFormsGet200ResponseFieldsItemListbox{} + obj.Flags = nil // Act & Assert - assert.Nil(t, obj.GetKnown(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") }) - t.Run("GetKnown_NilReceiver", func(t *testing.T) { + t.Run("GetFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocFormsGet200ResponseFieldsItemListbox // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKnown() // Should return zero value + _ = obj.GetFlags() // Should return zero value }) -} + t.Run("GetAlternateName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var expected *string + obj.AlternateName = expected -func TestSettersDocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("SetHasAnyWeakAnnotations", func(t *testing.T) { - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var fernTestValueHasAnyWeakAnnotations bool - obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) - assert.Equal(t, fernTestValueHasAnyWeakAnnotations, obj.HasAnyWeakAnnotations) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetAlternateName(), "getter should return the property value") }) -} - -func TestGettersDocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { + t.Run("GetAlternateName_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var expected bool - obj.HasAnyWeakAnnotations = expected + obj := &DocFormsGet200ResponseFieldsItemListbox{} + obj.AlternateName = nil // Act & Assert - assert.Equal(t, expected, obj.GetHasAnyWeakAnnotations(), "getter should return the property value") + assert.Nil(t, obj.GetAlternateName(), "getter should return nil when property is nil") }) - t.Run("GetHasAnyWeakAnnotations_NilReceiver", func(t *testing.T) { + t.Run("GetAlternateName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + var obj *DocFormsGet200ResponseFieldsItemListbox // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetHasAnyWeakAnnotations() // Should return zero value + _ = obj.GetAlternateName() // Should return zero value }) -} - -func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { + t.Run("GetMappingName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var fernTestValueHasAnyWeakAnnotations bool - - // Act - obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var expected *string + obj.MappingName = expected -func TestSettersDocAnnotationsUpdate200ResponseMetaCacheDelta(t *testing.T) { - t.Run("SetPreviousDocVersion", func(t *testing.T) { - obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} - var fernTestValuePreviousDocVersion int - obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) - assert.Equal(t, fernTestValuePreviousDocVersion, obj.PreviousDocVersion) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetMappingName(), "getter should return the property value") }) - t.Run("SetDocVersion", func(t *testing.T) { - obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} - var fernTestValueDocVersion int - obj.SetDocVersion(fernTestValueDocVersion) - assert.Equal(t, fernTestValueDocVersion, obj.DocVersion) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("GetMappingName_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListbox{} + obj.MappingName = nil - t.Run("SetAnnotationsVersion", func(t *testing.T) { - obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} - var fernTestValueAnnotationsVersion *int - obj.SetAnnotationsVersion(fernTestValueAnnotationsVersion) - assert.Equal(t, fernTestValueAnnotationsVersion, obj.AnnotationsVersion) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Nil(t, obj.GetMappingName(), "getter should return nil when property is nil") }) - t.Run("SetLayerVersion", func(t *testing.T) { - obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} - var fernTestValueLayerVersion *int - obj.SetLayerVersion(fernTestValueLayerVersion) - assert.Equal(t, fernTestValueLayerVersion, obj.LayerVersion) - assert.NotNil(t, obj.explicitFields) + t.Run("GetMappingName_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListbox + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMappingName() // Should return zero value }) - t.Run("SetWorking", func(t *testing.T) { - obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} - var fernTestValueWorking *bool - obj.SetWorking(fernTestValueWorking) - assert.Equal(t, fernTestValueWorking, obj.Working) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("GetValueEntry", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var expected *DocFormsGet200ResponseFieldsItemListboxValueEntry + obj.ValueEntry = expected - t.Run("SetPages", func(t *testing.T) { - obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem - obj.SetPages(fernTestValuePages) - assert.Equal(t, fernTestValuePages, obj.Pages) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetValueEntry(), "getter should return the property value") }) -} - -func TestGettersDocAnnotationsUpdate200ResponseMetaCacheDelta(t *testing.T) { - t.Run("GetPreviousDocVersion", func(t *testing.T) { + t.Run("GetValueEntry_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} - var expected int - obj.PreviousDocVersion = expected + obj := &DocFormsGet200ResponseFieldsItemListbox{} + obj.ValueEntry = nil // Act & Assert - assert.Equal(t, expected, obj.GetPreviousDocVersion(), "getter should return the property value") + assert.Nil(t, obj.GetValueEntry(), "getter should return nil when property is nil") }) - t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { + t.Run("GetValueEntry_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaCacheDelta + var obj *DocFormsGet200ResponseFieldsItemListbox // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPreviousDocVersion() // Should return zero value + _ = obj.GetValueEntry() // Should return zero value }) - t.Run("GetDocVersion", func(t *testing.T) { + t.Run("GetDefaultValueEntry", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} - var expected int - obj.DocVersion = expected + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var expected *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry + obj.DefaultValueEntry = expected // Act & Assert - assert.Equal(t, expected, obj.GetDocVersion(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDefaultValueEntry(), "getter should return the property value") }) - t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { + t.Run("GetDefaultValueEntry_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaCacheDelta + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListbox{} + obj.DefaultValueEntry = nil + + // Act & Assert + assert.Nil(t, obj.GetDefaultValueEntry(), "getter should return nil when property is nil") + }) + + t.Run("GetDefaultValueEntry_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListbox // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDocVersion() // Should return zero value + _ = obj.GetDefaultValueEntry() // Should return zero value }) - t.Run("GetAnnotationsVersion", func(t *testing.T) { + t.Run("GetActions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} - var expected *int - obj.AnnotationsVersion = expected + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var expected *PdfFieldActions + obj.Actions = expected // Act & Assert - assert.Equal(t, expected, obj.GetAnnotationsVersion(), "getter should return the property value") + assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") }) - t.Run("GetAnnotationsVersion_NilValue", func(t *testing.T) { + t.Run("GetActions_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} - obj.AnnotationsVersion = nil + obj := &DocFormsGet200ResponseFieldsItemListbox{} + obj.Actions = nil // Act & Assert - assert.Nil(t, obj.GetAnnotationsVersion(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") }) - t.Run("GetAnnotationsVersion_NilReceiver", func(t *testing.T) { + t.Run("GetActions_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaCacheDelta + var obj *DocFormsGet200ResponseFieldsItemListbox // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAnnotationsVersion() // Should return zero value + _ = obj.GetActions() // Should return zero value }) - t.Run("GetLayerVersion", func(t *testing.T) { + t.Run("GetWidgets", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} - var expected *int - obj.LayerVersion = expected + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var expected []*DocFormsGet200ResponseFieldsItemListboxWidgetsItem + obj.Widgets = expected // Act & Assert - assert.Equal(t, expected, obj.GetLayerVersion(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWidgets(), "getter should return the property value") }) - t.Run("GetLayerVersion_NilValue", func(t *testing.T) { + t.Run("GetWidgets_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} - obj.LayerVersion = nil + obj := &DocFormsGet200ResponseFieldsItemListbox{} + obj.Widgets = nil // Act & Assert - assert.Nil(t, obj.GetLayerVersion(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetWidgets(), "getter should return nil when property is nil") }) - t.Run("GetLayerVersion_NilReceiver", func(t *testing.T) { + t.Run("GetWidgets_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaCacheDelta + var obj *DocFormsGet200ResponseFieldsItemListbox // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLayerVersion() // Should return zero value + _ = obj.GetWidgets() // Should return zero value }) - t.Run("GetWorking", func(t *testing.T) { + t.Run("GetSelectedValues", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} - var expected *bool - obj.Working = expected + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var expected []string + obj.SelectedValues = expected // Act & Assert - assert.Equal(t, expected, obj.GetWorking(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSelectedValues(), "getter should return the property value") }) - t.Run("GetWorking_NilValue", func(t *testing.T) { + t.Run("GetSelectedValues_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} - obj.Working = nil + obj := &DocFormsGet200ResponseFieldsItemListbox{} + obj.SelectedValues = nil // Act & Assert - assert.Nil(t, obj.GetWorking(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetSelectedValues(), "getter should return nil when property is nil") }) - t.Run("GetWorking_NilReceiver", func(t *testing.T) { + t.Run("GetSelectedValues_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaCacheDelta + var obj *DocFormsGet200ResponseFieldsItemListbox // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetWorking() // Should return zero value + _ = obj.GetSelectedValues() // Should return zero value }) - t.Run("GetPages", func(t *testing.T) { + t.Run("GetMultiSelect", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} - var expected []*DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem - obj.Pages = expected + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var expected bool + obj.MultiSelect = expected // Act & Assert - assert.Equal(t, expected, obj.GetPages(), "getter should return the property value") + assert.Equal(t, expected, obj.GetMultiSelect(), "getter should return the property value") }) - t.Run("GetPages_NilValue", func(t *testing.T) { + t.Run("GetMultiSelect_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListbox + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMultiSelect() // Should return zero value + }) + + t.Run("GetOptions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} - obj.Pages = nil + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var expected []*DocFormsGet200ResponseFieldsItemListboxOptionsItem + obj.Options = expected // Act & Assert - assert.Nil(t, obj.GetPages(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetOptions(), "getter should return the property value") }) - t.Run("GetPages_NilReceiver", func(t *testing.T) { + t.Run("GetOptions_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaCacheDelta + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListbox{} + obj.Options = nil + + // Act & Assert + assert.Nil(t, obj.GetOptions(), "getter should return nil when property is nil") + }) + + t.Run("GetOptions_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListbox // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPages() // Should return zero value + _ = obj.GetOptions() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMetaCacheDelta(t *testing.T) { - t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { + t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} - var fernTestValuePreviousDocVersion int + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var fernTestValueRef *DocFormsGet200ResponseFieldsItemListboxRef // Act - obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) + obj.SetRef(fernTestValueRef) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -209760,14 +252471,14 @@ func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMetaCacheDelta(t *tes // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDocVersion_MarksExplicit", func(t *testing.T) { + t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} - var fernTestValueDocVersion int + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var fernTestValueFieldObjectNumber int // Act - obj.SetDocVersion(fernTestValueDocVersion) + obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -209791,14 +252502,14 @@ func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMetaCacheDelta(t *tes // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotationsVersion_MarksExplicit", func(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} - var fernTestValueAnnotationsVersion *int + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var fernTestValueName string // Act - obj.SetAnnotationsVersion(fernTestValueAnnotationsVersion) + obj.SetName(fernTestValueName) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -209822,14 +252533,14 @@ func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMetaCacheDelta(t *tes // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLayerVersion_MarksExplicit", func(t *testing.T) { + t.Run("SetOrigin_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} - var fernTestValueLayerVersion *int + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var fernTestValueOrigin DocFormsGet200ResponseFieldsItemListboxOrigin // Act - obj.SetLayerVersion(fernTestValueLayerVersion) + obj.SetOrigin(fernTestValueOrigin) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -209853,14 +252564,14 @@ func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMetaCacheDelta(t *tes // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWorking_MarksExplicit", func(t *testing.T) { + t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} - var fernTestValueWorking *bool + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var fernTestValueFlags *DocFormsGet200ResponseFieldsItemListboxFlags // Act - obj.SetWorking(fernTestValueWorking) + obj.SetFlags(fernTestValueFlags) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -209884,14 +252595,14 @@ func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMetaCacheDelta(t *tes // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPages_MarksExplicit", func(t *testing.T) { + t.Run("SetAlternateName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var fernTestValueAlternateName *string // Act - obj.SetPages(fernTestValuePages) + obj.SetAlternateName(fernTestValueAlternateName) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -209915,95 +252626,14 @@ func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMetaCacheDelta(t *tes // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCache", func(t *testing.T) { - obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache - obj.SetCache(fernTestValueCache) - assert.Equal(t, fernTestValueCache, obj.Cache) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - - t.Run("GetCache", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem{} - var expected *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache - obj.Cache = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetCache(), "getter should return the property value") - }) - - t.Run("GetCache_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem{} - obj.Cache = nil - - // Act & Assert - assert.Nil(t, obj.GetCache(), "getter should return nil when property is nil") - }) - - t.Run("GetCache_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetCache() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetMappingName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem{} - var fernTestValuePageObjectNumber int + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var fernTestValueMappingName *string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetMappingName(fernTestValueMappingName) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -210027,14 +252657,14 @@ func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMetaCacheDeltaPagesIt // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCache_MarksExplicit", func(t *testing.T) { + t.Run("SetValueEntry_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemListboxValueEntry // Act - obj.SetCache(fernTestValueCache) + obj.SetValueEntry(fernTestValueValueEntry) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -210058,85 +252688,14 @@ func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMetaCacheDeltaPagesIt // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("SetContentVersion", func(t *testing.T) { - obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueContentVersion int - obj.SetContentVersion(fernTestValueContentVersion) - assert.Equal(t, fernTestValueContentVersion, obj.ContentVersion) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAnnotationVersion", func(t *testing.T) { - obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueAnnotationVersion int - obj.SetAnnotationVersion(fernTestValueAnnotationVersion) - assert.Equal(t, fernTestValueAnnotationVersion, obj.AnnotationVersion) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("GetContentVersion", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache{} - var expected int - obj.ContentVersion = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetContentVersion(), "getter should return the property value") - }) - - t.Run("GetContentVersion_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetContentVersion() // Should return zero value - }) - - t.Run("GetAnnotationVersion", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache{} - var expected int - obj.AnnotationVersion = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAnnotationVersion(), "getter should return the property value") - }) - - t.Run("GetAnnotationVersion_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAnnotationVersion() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("SetContentVersion_MarksExplicit", func(t *testing.T) { + t.Run("SetDefaultValueEntry_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueContentVersion int + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry // Act - obj.SetContentVersion(fernTestValueContentVersion) + obj.SetDefaultValueEntry(fernTestValueDefaultValueEntry) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -210160,14 +252719,14 @@ func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMetaCacheDeltaPagesIt // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotationVersion_MarksExplicit", func(t *testing.T) { + t.Run("SetActions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueAnnotationVersion int + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var fernTestValueActions *PdfFieldActions // Act - obj.SetAnnotationVersion(fernTestValueAnnotationVersion) + obj.SetActions(fernTestValueActions) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -210191,157 +252750,14 @@ func TestSettersMarkExplicitDocAnnotationsUpdate200ResponseMetaCacheDeltaPagesIt // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocAnnotationsUpdate400Response(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocAnnotationsUpdate400Response{} - var fernTestValueName DocAnnotationsUpdate400ResponseName - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCode", func(t *testing.T) { - obj := &DocAnnotationsUpdate400Response{} - var fernTestValueCode DocAnnotationsUpdate400ResponseCode - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetMessage", func(t *testing.T) { - obj := &DocAnnotationsUpdate400Response{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetDetails", func(t *testing.T) { - obj := &DocAnnotationsUpdate400Response{} - var fernTestValueDetails map[string]any - obj.SetDetails(fernTestValueDetails) - assert.Equal(t, fernTestValueDetails, obj.Details) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocAnnotationsUpdate400Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsUpdate400Response{} - var expected DocAnnotationsUpdate400ResponseName - obj.Name = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") - }) - - t.Run("GetName_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsUpdate400Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetName() // Should return zero value - }) - - t.Run("GetCode", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsUpdate400Response{} - var expected DocAnnotationsUpdate400ResponseCode - obj.Code = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") - }) - - t.Run("GetCode_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsUpdate400Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetCode() // Should return zero value - }) - - t.Run("GetMessage", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsUpdate400Response{} - var expected string - obj.Message = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") - }) - - t.Run("GetMessage_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsUpdate400Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetMessage() // Should return zero value - }) - - t.Run("GetDetails", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsUpdate400Response{} - var expected map[string]any - obj.Details = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") - }) - - t.Run("GetDetails_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsUpdate400Response{} - obj.Details = nil - - // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") - }) - - t.Run("GetDetails_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocAnnotationsUpdate400Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetDetails() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocAnnotationsUpdate400Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Run("SetWidgets_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate400Response{} - var fernTestValueName DocAnnotationsUpdate400ResponseName + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemListboxWidgetsItem // Act - obj.SetName(fernTestValueName) + obj.SetWidgets(fernTestValueWidgets) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -210365,14 +252781,14 @@ func TestSettersMarkExplicitDocAnnotationsUpdate400Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Run("SetSelectedValues_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate400Response{} - var fernTestValueCode DocAnnotationsUpdate400ResponseCode + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var fernTestValueSelectedValues []string // Act - obj.SetCode(fernTestValueCode) + obj.SetSelectedValues(fernTestValueSelectedValues) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -210396,14 +252812,14 @@ func TestSettersMarkExplicitDocAnnotationsUpdate400Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetMessage_MarksExplicit", func(t *testing.T) { + t.Run("SetMultiSelect_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate400Response{} - var fernTestValueMessage string + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var fernTestValueMultiSelect bool // Act - obj.SetMessage(fernTestValueMessage) + obj.SetMultiSelect(fernTestValueMultiSelect) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -210427,14 +252843,14 @@ func TestSettersMarkExplicitDocAnnotationsUpdate400Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDetails_MarksExplicit", func(t *testing.T) { + t.Run("SetOptions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate400Response{} - var fernTestValueDetails map[string]any + obj := &DocFormsGet200ResponseFieldsItemListbox{} + var fernTestValueOptions []*DocFormsGet200ResponseFieldsItemListboxOptionsItem // Act - obj.SetDetails(fernTestValueDetails) + obj.SetOptions(fernTestValueOptions) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -210460,155 +252876,220 @@ func TestSettersMarkExplicitDocAnnotationsUpdate400Response(t *testing.T) { } -func TestSettersDocAnnotationsUpdate404Response(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocAnnotationsUpdate404Response{} - var fernTestValueName DocAnnotationsUpdate404ResponseName - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) - assert.NotNil(t, obj.explicitFields) +func TestGettersDocFormsGet200ResponseFieldsItemListboxDefaultValueEntry(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry{} + var expected string + obj.Kind = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") }) - t.Run("SetCode", func(t *testing.T) { - obj := &DocAnnotationsUpdate404Response{} - var fernTestValueCode DocAnnotationsUpdate404ResponseCode - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) - assert.NotNil(t, obj.explicitFields) + t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKind() // Should return zero value }) - t.Run("SetMessage", func(t *testing.T) { - obj := &DocAnnotationsUpdate404Response{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) - assert.NotNil(t, obj.explicitFields) + t.Run("GetNone", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone + obj.None = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNone(), "getter should return the property value") }) - t.Run("SetDetails", func(t *testing.T) { - obj := &DocAnnotationsUpdate404Response{} - var fernTestValueDetails map[string]any - obj.SetDetails(fernTestValueDetails) - assert.Equal(t, fernTestValueDetails, obj.Details) - assert.NotNil(t, obj.explicitFields) + t.Run("GetNone_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry{} + obj.None = nil + + // Act & Assert + assert.Nil(t, obj.GetNone(), "getter should return nil when property is nil") }) -} + t.Run("GetNone_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNone() // Should return zero value + }) -func TestGettersDocAnnotationsUpdate404Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { + t.Run("GetScalar", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate404Response{} - var expected DocAnnotationsUpdate404ResponseName - obj.Name = expected + obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar + obj.Scalar = expected // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScalar(), "getter should return the property value") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetScalar_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate404Response + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry{} + obj.Scalar = nil + + // Act & Assert + assert.Nil(t, obj.GetScalar(), "getter should return nil when property is nil") + }) + + t.Run("GetScalar_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetName() // Should return zero value + _ = obj.GetScalar() // Should return zero value }) - t.Run("GetCode", func(t *testing.T) { + t.Run("GetArray", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate404Response{} - var expected DocAnnotationsUpdate404ResponseCode - obj.Code = expected + obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray + obj.Array = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetArray(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetArray_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate404Response + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry{} + obj.Array = nil + + // Act & Assert + assert.Nil(t, obj.GetArray(), "getter should return nil when property is nil") + }) + + t.Run("GetArray_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCode() // Should return zero value + _ = obj.GetArray() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetUnsupported", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate404Response{} - var expected string - obj.Message = expected + obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported + obj.Unsupported = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnsupported(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetUnsupported_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate404Response + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry{} + obj.Unsupported = nil + + // Act & Assert + assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") + }) + + t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetMessage() // Should return zero value + _ = obj.GetUnsupported() // Should return zero value }) - t.Run("GetDetails", func(t *testing.T) { +} + +func TestSettersDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray(t *testing.T) { + t.Run("SetValues", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray{} + var fernTestValueValues []string + obj.SetValues(fernTestValueValues) + assert.Equal(t, fernTestValueValues, obj.Values) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray(t *testing.T) { + t.Run("GetValues", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate404Response{} - var expected map[string]any - obj.Details = expected + obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray{} + var expected []string + obj.Values = expected // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + assert.Equal(t, expected, obj.GetValues(), "getter should return the property value") }) - t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Run("GetValues_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate404Response{} - obj.Details = nil + obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray{} + obj.Values = nil // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetValues(), "getter should return nil when property is nil") }) - t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Run("GetValues_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocAnnotationsUpdate404Response + var obj *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDetails() // Should return zero value + _ = obj.GetValues() // Should return zero value }) } -func TestSettersMarkExplicitDocAnnotationsUpdate404Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray(t *testing.T) { + t.Run("SetValues_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate404Response{} - var fernTestValueName DocAnnotationsUpdate404ResponseName + obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray{} + var fernTestValueValues []string // Act - obj.SetName(fernTestValueName) + obj.SetValues(fernTestValueValues) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -210632,76 +253113,54 @@ func TestSettersMarkExplicitDocAnnotationsUpdate404Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCode_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocAnnotationsUpdate404Response{} - var fernTestValueCode DocAnnotationsUpdate404ResponseCode - - // Act - obj.SetCode(fernTestValueCode) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } +} - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip +func TestSettersDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar(t *testing.T) { + t.Run("SetValue", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar{} + var fernTestValueValue string + obj.SetValue(fernTestValueValue) + assert.Equal(t, fernTestValueValue, obj.Value) + assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMessage_MarksExplicit", func(t *testing.T) { +} + +func TestGettersDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar(t *testing.T) { + t.Run("GetValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate404Response{} - var fernTestValueMessage string - - // Act - obj.SetMessage(fernTestValueMessage) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar{} + var expected string + obj.Value = expected - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetValue_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetValue() // Should return zero value }) - t.Run("SetDetails_MarksExplicit", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar(t *testing.T) { + t.Run("SetValue_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocAnnotationsUpdate404Response{} - var fernTestValueDetails map[string]any + obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar{} + var fernTestValueValue string // Act - obj.SetDetails(fernTestValueDetails) + obj.SetValue(fernTestValueValue) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -210727,155 +253186,145 @@ func TestSettersMarkExplicitDocAnnotationsUpdate404Response(t *testing.T) { } -func TestSettersDocDownloadResponse(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocDownloadResponse{} - var fernTestValueName DocDownloadResponseName - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) +func TestSettersDocFormsGet200ResponseFieldsItemListboxFlags(t *testing.T) { + t.Run("SetReadOnly", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} + var fernTestValueReadOnly bool + obj.SetReadOnly(fernTestValueReadOnly) + assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCode", func(t *testing.T) { - obj := &DocDownloadResponse{} - var fernTestValueCode DocDownloadResponseCode - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) + t.Run("SetRequired", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} + var fernTestValueRequired bool + obj.SetRequired(fernTestValueRequired) + assert.Equal(t, fernTestValueRequired, obj.Required) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMessage", func(t *testing.T) { - obj := &DocDownloadResponse{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + t.Run("SetNoExport", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} + var fernTestValueNoExport bool + obj.SetNoExport(fernTestValueNoExport) + assert.Equal(t, fernTestValueNoExport, obj.NoExport) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetDetails", func(t *testing.T) { - obj := &DocDownloadResponse{} - var fernTestValueDetails map[string]any - obj.SetDetails(fernTestValueDetails) - assert.Equal(t, fernTestValueDetails, obj.Details) + t.Run("SetRaw", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} + var fernTestValueRaw int + obj.SetRaw(fernTestValueRaw) + assert.Equal(t, fernTestValueRaw, obj.Raw) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocDownloadResponse(t *testing.T) { - t.Run("GetName", func(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemListboxFlags(t *testing.T) { + t.Run("GetReadOnly", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocDownloadResponse{} - var expected DocDownloadResponseName - obj.Name = expected + obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} + var expected bool + obj.ReadOnly = expected // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocDownloadResponse + var obj *DocFormsGet200ResponseFieldsItemListboxFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetName() // Should return zero value + _ = obj.GetReadOnly() // Should return zero value }) - t.Run("GetCode", func(t *testing.T) { + t.Run("GetRequired", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocDownloadResponse{} - var expected DocDownloadResponseCode - obj.Code = expected + obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} + var expected bool + obj.Required = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRequired(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetRequired_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocDownloadResponse + var obj *DocFormsGet200ResponseFieldsItemListboxFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCode() // Should return zero value + _ = obj.GetRequired() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetNoExport", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocDownloadResponse{} - var expected string - obj.Message = expected + obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} + var expected bool + obj.NoExport = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNoExport(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetNoExport_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocDownloadResponse + var obj *DocFormsGet200ResponseFieldsItemListboxFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetMessage() // Should return zero value - }) - - t.Run("GetDetails", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocDownloadResponse{} - var expected map[string]any - obj.Details = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + _ = obj.GetNoExport() // Should return zero value }) - t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Run("GetRaw", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocDownloadResponse{} - obj.Details = nil + obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} + var expected int + obj.Raw = expected // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetRaw(), "getter should return the property value") }) - t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Run("GetRaw_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocDownloadResponse + var obj *DocFormsGet200ResponseFieldsItemListboxFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDetails() // Should return zero value + _ = obj.GetRaw() // Should return zero value }) } -func TestSettersMarkExplicitDocDownloadResponse(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxFlags(t *testing.T) { + t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocDownloadResponse{} - var fernTestValueName DocDownloadResponseName + obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} + var fernTestValueReadOnly bool // Act - obj.SetName(fernTestValueName) + obj.SetReadOnly(fernTestValueReadOnly) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -210899,14 +253348,14 @@ func TestSettersMarkExplicitDocDownloadResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Run("SetRequired_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocDownloadResponse{} - var fernTestValueCode DocDownloadResponseCode + obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} + var fernTestValueRequired bool // Act - obj.SetCode(fernTestValueCode) + obj.SetRequired(fernTestValueRequired) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -210930,14 +253379,14 @@ func TestSettersMarkExplicitDocDownloadResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetMessage_MarksExplicit", func(t *testing.T) { + t.Run("SetNoExport_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocDownloadResponse{} - var fernTestValueMessage string + obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} + var fernTestValueNoExport bool // Act - obj.SetMessage(fernTestValueMessage) + obj.SetNoExport(fernTestValueNoExport) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -210961,14 +253410,14 @@ func TestSettersMarkExplicitDocDownloadResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDetails_MarksExplicit", func(t *testing.T) { + t.Run("SetRaw_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocDownloadResponse{} - var fernTestValueDetails map[string]any + obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} + var fernTestValueRaw int // Act - obj.SetDetails(fernTestValueDetails) + obj.SetRaw(fernTestValueRaw) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -210994,186 +253443,114 @@ func TestSettersMarkExplicitDocDownloadResponse(t *testing.T) { } -func TestSettersDocFormsExportDataResponse(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocFormsExportDataResponse{} - var fernTestValueName DocFormsExportDataResponseName - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCode", func(t *testing.T) { - obj := &DocFormsExportDataResponse{} - var fernTestValueCode DocFormsExportDataResponseCode - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) +func TestSettersDocFormsGet200ResponseFieldsItemListboxOptionsItem(t *testing.T) { + t.Run("SetLabel", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxOptionsItem{} + var fernTestValueLabel string + obj.SetLabel(fernTestValueLabel) + assert.Equal(t, fernTestValueLabel, obj.Label) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMessage", func(t *testing.T) { - obj := &DocFormsExportDataResponse{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + t.Run("SetValue", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxOptionsItem{} + var fernTestValueValue string + obj.SetValue(fernTestValueValue) + assert.Equal(t, fernTestValueValue, obj.Value) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetDetails", func(t *testing.T) { - obj := &DocFormsExportDataResponse{} - var fernTestValueDetails map[string]any - obj.SetDetails(fernTestValueDetails) - assert.Equal(t, fernTestValueDetails, obj.Details) + t.Run("SetSelected", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxOptionsItem{} + var fernTestValueSelected bool + obj.SetSelected(fernTestValueSelected) + assert.Equal(t, fernTestValueSelected, obj.Selected) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsExportDataResponse(t *testing.T) { - t.Run("GetName", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsExportDataResponse{} - var expected DocFormsExportDataResponseName - obj.Name = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") - }) - - t.Run("GetName_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsExportDataResponse - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetName() // Should return zero value - }) - - t.Run("GetCode", func(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemListboxOptionsItem(t *testing.T) { + t.Run("GetLabel", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsExportDataResponse{} - var expected DocFormsExportDataResponseCode - obj.Code = expected + obj := &DocFormsGet200ResponseFieldsItemListboxOptionsItem{} + var expected string + obj.Label = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLabel(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetLabel_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsExportDataResponse + var obj *DocFormsGet200ResponseFieldsItemListboxOptionsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCode() // Should return zero value + _ = obj.GetLabel() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsExportDataResponse{} + obj := &DocFormsGet200ResponseFieldsItemListboxOptionsItem{} var expected string - obj.Message = expected + obj.Value = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetValue_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsExportDataResponse + var obj *DocFormsGet200ResponseFieldsItemListboxOptionsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetMessage() // Should return zero value - }) - - t.Run("GetDetails", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsExportDataResponse{} - var expected map[string]any - obj.Details = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + _ = obj.GetValue() // Should return zero value }) - t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Run("GetSelected", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsExportDataResponse{} - obj.Details = nil + obj := &DocFormsGet200ResponseFieldsItemListboxOptionsItem{} + var expected bool + obj.Selected = expected // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetSelected(), "getter should return the property value") }) - t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Run("GetSelected_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsExportDataResponse + var obj *DocFormsGet200ResponseFieldsItemListboxOptionsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDetails() // Should return zero value + _ = obj.GetSelected() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsExportDataResponse(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsExportDataResponse{} - var fernTestValueName DocFormsExportDataResponseName - - // Act - obj.SetName(fernTestValueName) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetCode_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxOptionsItem(t *testing.T) { + t.Run("SetLabel_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsExportDataResponse{} - var fernTestValueCode DocFormsExportDataResponseCode + obj := &DocFormsGet200ResponseFieldsItemListboxOptionsItem{} + var fernTestValueLabel string // Act - obj.SetCode(fernTestValueCode) + obj.SetLabel(fernTestValueLabel) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -211197,14 +253574,14 @@ func TestSettersMarkExplicitDocFormsExportDataResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetMessage_MarksExplicit", func(t *testing.T) { + t.Run("SetValue_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsExportDataResponse{} - var fernTestValueMessage string + obj := &DocFormsGet200ResponseFieldsItemListboxOptionsItem{} + var fernTestValueValue string // Act - obj.SetMessage(fernTestValueMessage) + obj.SetValue(fernTestValueValue) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -211228,14 +253605,14 @@ func TestSettersMarkExplicitDocFormsExportDataResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDetails_MarksExplicit", func(t *testing.T) { + t.Run("SetSelected_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsExportDataResponse{} - var fernTestValueDetails map[string]any + obj := &DocFormsGet200ResponseFieldsItemListboxOptionsItem{} + var fernTestValueSelected bool // Act - obj.SetDetails(fernTestValueDetails) + obj.SetSelected(fernTestValueSelected) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -211261,165 +253638,144 @@ func TestSettersMarkExplicitDocFormsExportDataResponse(t *testing.T) { } -func TestSettersDocFormsGet200Response(t *testing.T) { - t.Run("SetFormKind", func(t *testing.T) { - obj := &DocFormsGet200Response{} - var fernTestValueFormKind DocFormsGet200ResponseFormKind - obj.SetFormKind(fernTestValueFormKind) - assert.Equal(t, fernTestValueFormKind, obj.FormKind) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNeedsAppearances", func(t *testing.T) { - obj := &DocFormsGet200Response{} - var fernTestValueNeedsAppearances bool - obj.SetNeedsAppearances(fernTestValueNeedsAppearances) - assert.Equal(t, fernTestValueNeedsAppearances, obj.NeedsAppearances) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetFields", func(t *testing.T) { - obj := &DocFormsGet200Response{} - var fernTestValueFields []*DocFormsGet200ResponseFieldsItem - obj.SetFields(fernTestValueFields) - assert.Equal(t, fernTestValueFields, obj.Fields) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCalculationOrder", func(t *testing.T) { - obj := &DocFormsGet200Response{} - var fernTestValueCalculationOrder []*DocFormsGet200ResponseCalculationOrderItem - obj.SetCalculationOrder(fernTestValueCalculationOrder) - assert.Equal(t, fernTestValueCalculationOrder, obj.CalculationOrder) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocFormsGet200Response(t *testing.T) { - t.Run("GetFormKind", func(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemListboxRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200Response{} - var expected DocFormsGet200ResponseFormKind - obj.FormKind = expected + obj := &DocFormsGet200ResponseFieldsItemListboxRef{} + var expected string + obj.Kind = expected // Act & Assert - assert.Equal(t, expected, obj.GetFormKind(), "getter should return the property value") + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") }) - t.Run("GetFormKind_NilReceiver", func(t *testing.T) { + t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200Response + var obj *DocFormsGet200ResponseFieldsItemListboxRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFormKind() // Should return zero value + _ = obj.GetKind() // Should return zero value }) - t.Run("GetNeedsAppearances", func(t *testing.T) { + t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200Response{} - var expected bool - obj.NeedsAppearances = expected + obj := &DocFormsGet200ResponseFieldsItemListboxRef{} + var expected *DocFormsGet200ResponseFieldsItemListboxRefObjectNumber + obj.ObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetNeedsAppearances(), "getter should return the property value") + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") }) - t.Run("GetNeedsAppearances_NilReceiver", func(t *testing.T) { + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200Response + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxRef{} + obj.ObjectNumber = nil + + // Act & Assert + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + }) + + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNeedsAppearances() // Should return zero value + _ = obj.GetObjectNumber() // Should return zero value }) - t.Run("GetFields", func(t *testing.T) { + t.Run("GetFqn", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200Response{} - var expected []*DocFormsGet200ResponseFieldsItem - obj.Fields = expected + obj := &DocFormsGet200ResponseFieldsItemListboxRef{} + var expected *DocFormsGet200ResponseFieldsItemListboxRefFqn + obj.Fqn = expected // Act & Assert - assert.Equal(t, expected, obj.GetFields(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFqn(), "getter should return the property value") }) - t.Run("GetFields_NilValue", func(t *testing.T) { + t.Run("GetFqn_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200Response{} - obj.Fields = nil + obj := &DocFormsGet200ResponseFieldsItemListboxRef{} + obj.Fqn = nil // Act & Assert - assert.Nil(t, obj.GetFields(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetFqn(), "getter should return nil when property is nil") }) - t.Run("GetFields_NilReceiver", func(t *testing.T) { + t.Run("GetFqn_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200Response + var obj *DocFormsGet200ResponseFieldsItemListboxRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFields() // Should return zero value + _ = obj.GetFqn() // Should return zero value }) - t.Run("GetCalculationOrder", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200Response{} - var expected []*DocFormsGet200ResponseCalculationOrderItem - obj.CalculationOrder = expected +} - // Act & Assert - assert.Equal(t, expected, obj.GetCalculationOrder(), "getter should return the property value") +func TestSettersDocFormsGet200ResponseFieldsItemListboxRefFqn(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxRefFqn{} + var fernTestValueName string + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetCalculationOrder_NilValue", func(t *testing.T) { +} + +func TestGettersDocFormsGet200ResponseFieldsItemListboxRefFqn(t *testing.T) { + t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200Response{} - obj.CalculationOrder = nil + obj := &DocFormsGet200ResponseFieldsItemListboxRefFqn{} + var expected string + obj.Name = expected // Act & Assert - assert.Nil(t, obj.GetCalculationOrder(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") }) - t.Run("GetCalculationOrder_NilReceiver", func(t *testing.T) { + t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200Response + var obj *DocFormsGet200ResponseFieldsItemListboxRefFqn // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCalculationOrder() // Should return zero value + _ = obj.GetName() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200Response(t *testing.T) { - t.Run("SetFormKind_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxRefFqn(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200Response{} - var fernTestValueFormKind DocFormsGet200ResponseFormKind + obj := &DocFormsGet200ResponseFieldsItemListboxRefFqn{} + var fernTestValueName string // Act - obj.SetFormKind(fernTestValueFormKind) + obj.SetName(fernTestValueName) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -211443,76 +253799,54 @@ func TestSettersMarkExplicitDocFormsGet200Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNeedsAppearances_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200Response{} - var fernTestValueNeedsAppearances bool - - // Act - obj.SetNeedsAppearances(fernTestValueNeedsAppearances) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } +} - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip +func TestSettersDocFormsGet200ResponseFieldsItemListboxRefObjectNumber(t *testing.T) { + t.Run("SetFieldObjectNumber", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxRefObjectNumber{} + var fernTestValueFieldObjectNumber int + obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) + assert.Equal(t, fernTestValueFieldObjectNumber, obj.FieldObjectNumber) + assert.NotNil(t, obj.explicitFields) }) - t.Run("SetFields_MarksExplicit", func(t *testing.T) { +} + +func TestGettersDocFormsGet200ResponseFieldsItemListboxRefObjectNumber(t *testing.T) { + t.Run("GetFieldObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200Response{} - var fernTestValueFields []*DocFormsGet200ResponseFieldsItem - - // Act - obj.SetFields(fernTestValueFields) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocFormsGet200ResponseFieldsItemListboxRefObjectNumber{} + var expected int + obj.FieldObjectNumber = expected - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Equal(t, expected, obj.GetFieldObjectNumber(), "getter should return the property value") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetFieldObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxRefObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFieldObjectNumber() // Should return zero value }) - t.Run("SetCalculationOrder_MarksExplicit", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxRefObjectNumber(t *testing.T) { + t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200Response{} - var fernTestValueCalculationOrder []*DocFormsGet200ResponseCalculationOrderItem + obj := &DocFormsGet200ResponseFieldsItemListboxRefObjectNumber{} + var fernTestValueFieldObjectNumber int // Act - obj.SetCalculationOrder(fernTestValueCalculationOrder) + obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -211538,11 +253872,11 @@ func TestSettersMarkExplicitDocFormsGet200Response(t *testing.T) { } -func TestGettersDocFormsGet200ResponseCalculationOrderItem(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemListboxValueEntry(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseCalculationOrderItem{} + obj := &DocFormsGet200ResponseFieldsItemListboxValueEntry{} var expected string obj.Kind = expected @@ -211552,7 +253886,7 @@ func TestGettersDocFormsGet200ResponseCalculationOrderItem(t *testing.T) { t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseCalculationOrderItem + var obj *DocFormsGet200ResponseFieldsItemListboxValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -211562,120 +253896,267 @@ func TestGettersDocFormsGet200ResponseCalculationOrderItem(t *testing.T) { _ = obj.GetKind() // Should return zero value }) - t.Run("GetObjectNumber", func(t *testing.T) { + t.Run("GetNone", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseCalculationOrderItem{} - var expected *DocFormsGet200ResponseCalculationOrderItemObjectNumber - obj.ObjectNumber = expected + obj := &DocFormsGet200ResponseFieldsItemListboxValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemListboxValueEntryNone + obj.None = expected // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNone(), "getter should return the property value") }) - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Run("GetNone_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseCalculationOrderItem{} - obj.ObjectNumber = nil + obj := &DocFormsGet200ResponseFieldsItemListboxValueEntry{} + obj.None = nil // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNone(), "getter should return nil when property is nil") }) - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetNone_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseCalculationOrderItem + var obj *DocFormsGet200ResponseFieldsItemListboxValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetObjectNumber() // Should return zero value + _ = obj.GetNone() // Should return zero value }) - t.Run("GetFqn", func(t *testing.T) { + t.Run("GetScalar", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseCalculationOrderItem{} - var expected *DocFormsGet200ResponseCalculationOrderItemFqn - obj.Fqn = expected + obj := &DocFormsGet200ResponseFieldsItemListboxValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemListboxValueEntryScalar + obj.Scalar = expected // Act & Assert - assert.Equal(t, expected, obj.GetFqn(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScalar(), "getter should return the property value") }) - t.Run("GetFqn_NilValue", func(t *testing.T) { + t.Run("GetScalar_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseCalculationOrderItem{} - obj.Fqn = nil + obj := &DocFormsGet200ResponseFieldsItemListboxValueEntry{} + obj.Scalar = nil // Act & Assert - assert.Nil(t, obj.GetFqn(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetScalar(), "getter should return nil when property is nil") }) - t.Run("GetFqn_NilReceiver", func(t *testing.T) { + t.Run("GetScalar_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseCalculationOrderItem + var obj *DocFormsGet200ResponseFieldsItemListboxValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFqn() // Should return zero value + _ = obj.GetScalar() // Should return zero value + }) + + t.Run("GetArray", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemListboxValueEntryArray + obj.Array = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetArray(), "getter should return the property value") + }) + + t.Run("GetArray_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxValueEntry{} + obj.Array = nil + + // Act & Assert + assert.Nil(t, obj.GetArray(), "getter should return nil when property is nil") + }) + + t.Run("GetArray_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxValueEntry + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetArray() // Should return zero value + }) + + t.Run("GetUnsupported", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported + obj.Unsupported = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUnsupported(), "getter should return the property value") + }) + + t.Run("GetUnsupported_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxValueEntry{} + obj.Unsupported = nil + + // Act & Assert + assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") + }) + + t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxValueEntry + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnsupported() // Should return zero value }) } -func TestSettersDocFormsGet200ResponseCalculationOrderItemFqn(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocFormsGet200ResponseCalculationOrderItemFqn{} - var fernTestValueName string - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) +func TestSettersDocFormsGet200ResponseFieldsItemListboxValueEntryArray(t *testing.T) { + t.Run("SetValues", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxValueEntryArray{} + var fernTestValueValues []string + obj.SetValues(fernTestValueValues) + assert.Equal(t, fernTestValueValues, obj.Values) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseCalculationOrderItemFqn(t *testing.T) { - t.Run("GetName", func(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemListboxValueEntryArray(t *testing.T) { + t.Run("GetValues", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseCalculationOrderItemFqn{} + obj := &DocFormsGet200ResponseFieldsItemListboxValueEntryArray{} + var expected []string + obj.Values = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetValues(), "getter should return the property value") + }) + + t.Run("GetValues_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxValueEntryArray{} + obj.Values = nil + + // Act & Assert + assert.Nil(t, obj.GetValues(), "getter should return nil when property is nil") + }) + + t.Run("GetValues_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxValueEntryArray + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetValues() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxValueEntryArray(t *testing.T) { + t.Run("SetValues_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxValueEntryArray{} + var fernTestValueValues []string + + // Act + obj.SetValues(fernTestValueValues) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemListboxValueEntryScalar(t *testing.T) { + t.Run("SetValue", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxValueEntryScalar{} + var fernTestValueValue string + obj.SetValue(fernTestValueValue) + assert.Equal(t, fernTestValueValue, obj.Value) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemListboxValueEntryScalar(t *testing.T) { + t.Run("GetValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxValueEntryScalar{} var expected string - obj.Name = expected + obj.Value = expected // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetValue_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseCalculationOrderItemFqn + var obj *DocFormsGet200ResponseFieldsItemListboxValueEntryScalar // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetName() // Should return zero value + _ = obj.GetValue() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseCalculationOrderItemFqn(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxValueEntryScalar(t *testing.T) { + t.Run("SetValue_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseCalculationOrderItemFqn{} - var fernTestValueName string + obj := &DocFormsGet200ResponseFieldsItemListboxValueEntryScalar{} + var fernTestValueValue string // Act - obj.SetName(fernTestValueName) + obj.SetValue(fernTestValueValue) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -211701,52 +254182,114 @@ func TestSettersMarkExplicitDocFormsGet200ResponseCalculationOrderItemFqn(t *tes } -func TestSettersDocFormsGet200ResponseCalculationOrderItemObjectNumber(t *testing.T) { - t.Run("SetFieldObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseCalculationOrderItemObjectNumber{} - var fernTestValueFieldObjectNumber int - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) - assert.Equal(t, fernTestValueFieldObjectNumber, obj.FieldObjectNumber) +func TestSettersDocFormsGet200ResponseFieldsItemListboxWidgetsItem(t *testing.T) { + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxWidgetsItem{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemListboxWidgetsItem{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseCalculationOrderItemObjectNumber(t *testing.T) { - t.Run("GetFieldObjectNumber", func(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemListboxWidgetsItem(t *testing.T) { + t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseCalculationOrderItemObjectNumber{} + obj := &DocFormsGet200ResponseFieldsItemListboxWidgetsItem{} var expected int - obj.FieldObjectNumber = expected + obj.AnnotObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetFieldObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") }) - t.Run("GetFieldObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseCalculationOrderItemObjectNumber + var obj *DocFormsGet200ResponseFieldsItemListboxWidgetsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFieldObjectNumber() // Should return zero value + _ = obj.GetAnnotObjectNumber() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxWidgetsItem{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemListboxWidgetsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseCalculationOrderItemObjectNumber(t *testing.T) { - t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxWidgetsItem(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseCalculationOrderItemObjectNumber{} - var fernTestValueFieldObjectNumber int + obj := &DocFormsGet200ResponseFieldsItemListboxWidgetsItem{} + var fernTestValueAnnotObjectNumber int // Act - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemListboxWidgetsItem{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -211772,307 +254315,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseCalculationOrderItemObjectNumb } -func TestGettersDocFormsGet200ResponseFieldsItem(t *testing.T) { - t.Run("GetFamily", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItem{} - var expected string - obj.Family = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetFamily(), "getter should return the property value") - }) - - t.Run("GetFamily_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetFamily() // Should return zero value - }) - - t.Run("GetText", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItem{} - var expected *DocFormsGet200ResponseFieldsItemText - obj.Text = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetText(), "getter should return the property value") - }) - - t.Run("GetText_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItem{} - obj.Text = nil - - // Act & Assert - assert.Nil(t, obj.GetText(), "getter should return nil when property is nil") - }) - - t.Run("GetText_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetText() // Should return zero value - }) - - t.Run("GetCheckbox", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItem{} - var expected *DocFormsGet200ResponseFieldsItemCheckbox - obj.Checkbox = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetCheckbox(), "getter should return the property value") - }) - - t.Run("GetCheckbox_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItem{} - obj.Checkbox = nil - - // Act & Assert - assert.Nil(t, obj.GetCheckbox(), "getter should return nil when property is nil") - }) - - t.Run("GetCheckbox_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetCheckbox() // Should return zero value - }) - - t.Run("GetRadio", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItem{} - var expected *DocFormsGet200ResponseFieldsItemRadio - obj.Radio = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRadio(), "getter should return the property value") - }) - - t.Run("GetRadio_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItem{} - obj.Radio = nil - - // Act & Assert - assert.Nil(t, obj.GetRadio(), "getter should return nil when property is nil") - }) - - t.Run("GetRadio_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRadio() // Should return zero value - }) - - t.Run("GetCombobox", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItem{} - var expected *DocFormsGet200ResponseFieldsItemCombobox - obj.Combobox = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetCombobox(), "getter should return the property value") - }) - - t.Run("GetCombobox_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItem{} - obj.Combobox = nil - - // Act & Assert - assert.Nil(t, obj.GetCombobox(), "getter should return nil when property is nil") - }) - - t.Run("GetCombobox_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetCombobox() // Should return zero value - }) - - t.Run("GetListbox", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItem{} - var expected *DocFormsGet200ResponseFieldsItemListbox - obj.Listbox = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetListbox(), "getter should return the property value") - }) - - t.Run("GetListbox_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItem{} - obj.Listbox = nil - - // Act & Assert - assert.Nil(t, obj.GetListbox(), "getter should return nil when property is nil") - }) - - t.Run("GetListbox_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetListbox() // Should return zero value - }) - - t.Run("GetPushbutton", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItem{} - var expected *DocFormsGet200ResponseFieldsItemPushbutton - obj.Pushbutton = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPushbutton(), "getter should return the property value") - }) - - t.Run("GetPushbutton_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItem{} - obj.Pushbutton = nil - - // Act & Assert - assert.Nil(t, obj.GetPushbutton(), "getter should return nil when property is nil") - }) - - t.Run("GetPushbutton_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPushbutton() // Should return zero value - }) - - t.Run("GetSignature", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItem{} - var expected *DocFormsGet200ResponseFieldsItemSignature - obj.Signature = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetSignature(), "getter should return the property value") - }) - - t.Run("GetSignature_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItem{} - obj.Signature = nil - - // Act & Assert - assert.Nil(t, obj.GetSignature(), "getter should return nil when property is nil") - }) - - t.Run("GetSignature_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetSignature() // Should return zero value - }) - - t.Run("GetUnknown", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItem{} - var expected *DocFormsGet200ResponseFieldsItemUnknown - obj.Unknown = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") - }) - - t.Run("GetUnknown_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItem{} - obj.Unknown = nil - - // Act & Assert - assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") - }) - - t.Run("GetUnknown_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetUnknown() // Should return zero value - }) - -} - -func TestSettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { t.Run("SetRef", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var fernTestValueRef *DocFormsGet200ResponseFieldsItemCheckboxRef + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + var fernTestValueRef *DocFormsGet200ResponseFieldsItemPushbuttonRef obj.SetRef(fernTestValueRef) assert.Equal(t, fernTestValueRef, obj.Ref) assert.NotNil(t, obj.explicitFields) }) t.Run("SetFieldObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} var fernTestValueFieldObjectNumber int obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) assert.Equal(t, fernTestValueFieldObjectNumber, obj.FieldObjectNumber) @@ -212080,7 +254333,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { }) t.Run("SetName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} var fernTestValueName string obj.SetName(fernTestValueName) assert.Equal(t, fernTestValueName, obj.Name) @@ -212088,23 +254341,23 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { }) t.Run("SetOrigin", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var fernTestValueOrigin DocFormsGet200ResponseFieldsItemCheckboxOrigin + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + var fernTestValueOrigin DocFormsGet200ResponseFieldsItemPushbuttonOrigin obj.SetOrigin(fernTestValueOrigin) assert.Equal(t, fernTestValueOrigin, obj.Origin) assert.NotNil(t, obj.explicitFields) }) t.Run("SetFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var fernTestValueFlags *DocFormsGet200ResponseFieldsItemCheckboxFlags + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + var fernTestValueFlags *DocFormsGet200ResponseFieldsItemPushbuttonFlags obj.SetFlags(fernTestValueFlags) assert.Equal(t, fernTestValueFlags, obj.Flags) assert.NotNil(t, obj.explicitFields) }) t.Run("SetAlternateName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} var fernTestValueAlternateName *string obj.SetAlternateName(fernTestValueAlternateName) assert.Equal(t, fernTestValueAlternateName, obj.AlternateName) @@ -212112,7 +254365,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { }) t.Run("SetMappingName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} var fernTestValueMappingName *string obj.SetMappingName(fernTestValueMappingName) assert.Equal(t, fernTestValueMappingName, obj.MappingName) @@ -212120,23 +254373,23 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { }) t.Run("SetValueEntry", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemCheckboxValueEntry + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry obj.SetValueEntry(fernTestValueValueEntry) assert.Equal(t, fernTestValueValueEntry, obj.ValueEntry) assert.NotNil(t, obj.explicitFields) }) t.Run("SetDefaultValueEntry", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry obj.SetDefaultValueEntry(fernTestValueDefaultValueEntry) assert.Equal(t, fernTestValueDefaultValueEntry, obj.DefaultValueEntry) assert.NotNil(t, obj.explicitFields) }) t.Run("SetActions", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} var fernTestValueActions *PdfFieldActions obj.SetActions(fernTestValueActions) assert.Equal(t, fernTestValueActions, obj.Actions) @@ -212144,37 +254397,21 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { }) t.Run("SetWidgets", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem obj.SetWidgets(fernTestValueWidgets) assert.Equal(t, fernTestValueWidgets, obj.Widgets) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetChecked", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var fernTestValueChecked bool - obj.SetChecked(fernTestValueChecked) - assert.Equal(t, fernTestValueChecked, obj.Checked) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetExportValue", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var fernTestValueExportValue string - obj.SetExportValue(fernTestValueExportValue) - assert.Equal(t, fernTestValueExportValue, obj.ExportValue) - assert.NotNil(t, obj.explicitFields) - }) - } -func TestGettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxRef + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonRef obj.Ref = expected // Act & Assert @@ -212184,7 +254421,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { t.Run("GetRef_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} obj.Ref = nil // Act & Assert @@ -212193,7 +254430,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { t.Run("GetRef_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckbox + var obj *DocFormsGet200ResponseFieldsItemPushbutton // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -212206,7 +254443,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { t.Run("GetFieldObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} var expected int obj.FieldObjectNumber = expected @@ -212216,7 +254453,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { t.Run("GetFieldObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckbox + var obj *DocFormsGet200ResponseFieldsItemPushbutton // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -212229,7 +254466,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} var expected string obj.Name = expected @@ -212239,7 +254476,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckbox + var obj *DocFormsGet200ResponseFieldsItemPushbutton // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -212252,8 +254489,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { t.Run("GetOrigin", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var expected DocFormsGet200ResponseFieldsItemCheckboxOrigin + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + var expected DocFormsGet200ResponseFieldsItemPushbuttonOrigin obj.Origin = expected // Act & Assert @@ -212262,7 +254499,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { t.Run("GetOrigin_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckbox + var obj *DocFormsGet200ResponseFieldsItemPushbutton // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -212275,8 +254512,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxFlags + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonFlags obj.Flags = expected // Act & Assert @@ -212286,7 +254523,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} obj.Flags = nil // Act & Assert @@ -212295,7 +254532,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { t.Run("GetFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckbox + var obj *DocFormsGet200ResponseFieldsItemPushbutton // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -212308,7 +254545,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { t.Run("GetAlternateName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} var expected *string obj.AlternateName = expected @@ -212319,7 +254556,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { t.Run("GetAlternateName_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} obj.AlternateName = nil // Act & Assert @@ -212328,7 +254565,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { t.Run("GetAlternateName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckbox + var obj *DocFormsGet200ResponseFieldsItemPushbutton // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -212341,7 +254578,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { t.Run("GetMappingName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} var expected *string obj.MappingName = expected @@ -212352,7 +254589,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { t.Run("GetMappingName_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} obj.MappingName = nil // Act & Assert @@ -212361,7 +254598,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { t.Run("GetMappingName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckbox + var obj *DocFormsGet200ResponseFieldsItemPushbutton // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -212374,8 +254611,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { t.Run("GetValueEntry", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxValueEntry + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry obj.ValueEntry = expected // Act & Assert @@ -212385,7 +254622,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { t.Run("GetValueEntry_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} obj.ValueEntry = nil // Act & Assert @@ -212394,7 +254631,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { t.Run("GetValueEntry_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckbox + var obj *DocFormsGet200ResponseFieldsItemPushbutton // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -212407,8 +254644,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { t.Run("GetDefaultValueEntry", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry obj.DefaultValueEntry = expected // Act & Assert @@ -212418,7 +254655,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { t.Run("GetDefaultValueEntry_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} obj.DefaultValueEntry = nil // Act & Assert @@ -212427,7 +254664,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { t.Run("GetDefaultValueEntry_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckbox + var obj *DocFormsGet200ResponseFieldsItemPushbutton // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -212440,7 +254677,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { t.Run("GetActions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} var expected *PdfFieldActions obj.Actions = expected @@ -212451,7 +254688,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { t.Run("GetActions_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} obj.Actions = nil // Act & Assert @@ -212460,7 +254697,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { t.Run("GetActions_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckbox + var obj *DocFormsGet200ResponseFieldsItemPushbutton // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -212473,8 +254710,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { t.Run("GetWidgets", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var expected []*DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + var expected []*DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem obj.Widgets = expected // Act & Assert @@ -212484,7 +254721,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { t.Run("GetWidgets_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} obj.Widgets = nil // Act & Assert @@ -212493,7 +254730,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { t.Run("GetWidgets_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckbox + var obj *DocFormsGet200ResponseFieldsItemPushbutton // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -212503,60 +254740,14 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { _ = obj.GetWidgets() // Should return zero value }) - t.Run("GetChecked", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var expected bool - obj.Checked = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetChecked(), "getter should return the property value") - }) - - t.Run("GetChecked_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckbox - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetChecked() // Should return zero value - }) - - t.Run("GetExportValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var expected string - obj.ExportValue = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetExportValue(), "getter should return the property value") - }) - - t.Run("GetExportValue_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckbox - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetExportValue() // Should return zero value - }) - } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckbox(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var fernTestValueRef *DocFormsGet200ResponseFieldsItemCheckboxRef + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + var fernTestValueRef *DocFormsGet200ResponseFieldsItemPushbuttonRef // Act obj.SetRef(fernTestValueRef) @@ -212586,7 +254777,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckbox(t *testing. t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} var fernTestValueFieldObjectNumber int // Act @@ -212617,7 +254808,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckbox(t *testing. t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} var fernTestValueName string // Act @@ -212648,8 +254839,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckbox(t *testing. t.Run("SetOrigin_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var fernTestValueOrigin DocFormsGet200ResponseFieldsItemCheckboxOrigin + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + var fernTestValueOrigin DocFormsGet200ResponseFieldsItemPushbuttonOrigin // Act obj.SetOrigin(fernTestValueOrigin) @@ -212679,8 +254870,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckbox(t *testing. t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var fernTestValueFlags *DocFormsGet200ResponseFieldsItemCheckboxFlags + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + var fernTestValueFlags *DocFormsGet200ResponseFieldsItemPushbuttonFlags // Act obj.SetFlags(fernTestValueFlags) @@ -212710,7 +254901,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckbox(t *testing. t.Run("SetAlternateName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} var fernTestValueAlternateName *string // Act @@ -212741,7 +254932,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckbox(t *testing. t.Run("SetMappingName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} var fernTestValueMappingName *string // Act @@ -212772,8 +254963,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckbox(t *testing. t.Run("SetValueEntry_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemCheckboxValueEntry + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry // Act obj.SetValueEntry(fernTestValueValueEntry) @@ -212803,8 +254994,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckbox(t *testing. t.Run("SetDefaultValueEntry_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry // Act obj.SetDefaultValueEntry(fernTestValueDefaultValueEntry) @@ -212834,7 +255025,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckbox(t *testing. t.Run("SetActions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} var fernTestValueActions *PdfFieldActions // Act @@ -212865,8 +255056,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckbox(t *testing. t.Run("SetWidgets_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem + obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem // Act obj.SetWidgets(fernTestValueWidgets) @@ -212893,75 +255084,13 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckbox(t *testing. // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetChecked_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var fernTestValueChecked bool - - // Act - obj.SetChecked(fernTestValueChecked) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetExportValue_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckbox{} - var fernTestValueExportValue string - - // Act - obj.SetExportValue(fernTestValueExportValue) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - } -func TestGettersDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} var expected string obj.Kind = expected @@ -212971,7 +255100,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry(t *tes t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry + var obj *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -212984,8 +255113,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry(t *tes t.Run("GetNone", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryNone + obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone obj.None = expected // Act & Assert @@ -212995,7 +255124,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry(t *tes t.Run("GetNone_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} obj.None = nil // Act & Assert @@ -213004,7 +255133,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry(t *tes t.Run("GetNone_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry + var obj *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -213017,8 +255146,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry(t *tes t.Run("GetScalar", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar + obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar obj.Scalar = expected // Act & Assert @@ -213028,7 +255157,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry(t *tes t.Run("GetScalar_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} obj.Scalar = nil // Act & Assert @@ -213037,7 +255166,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry(t *tes t.Run("GetScalar_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry + var obj *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -213050,8 +255179,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry(t *tes t.Run("GetArray", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray + obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray obj.Array = expected // Act & Assert @@ -213061,7 +255190,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry(t *tes t.Run("GetArray_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} obj.Array = nil // Act & Assert @@ -213070,7 +255199,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry(t *tes t.Run("GetArray_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry + var obj *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -213083,8 +255212,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry(t *tes t.Run("GetUnsupported", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryUnsupported + obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported obj.Unsupported = expected // Act & Assert @@ -213094,7 +255223,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry(t *tes t.Run("GetUnsupported_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} obj.Unsupported = nil // Act & Assert @@ -213103,7 +255232,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry(t *tes t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry + var obj *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -213115,9 +255244,9 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntry(t *tes } -func TestSettersDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray(t *testing.T) { t.Run("SetValues", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray{} var fernTestValueValues []string obj.SetValues(fernTestValueValues) assert.Equal(t, fernTestValueValues, obj.Values) @@ -213126,11 +255255,11 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray(t } -func TestGettersDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray(t *testing.T) { t.Run("GetValues", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray{} var expected []string obj.Values = expected @@ -213141,7 +255270,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray(t t.Run("GetValues_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray{} obj.Values = nil // Act & Assert @@ -213150,7 +255279,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray(t t.Run("GetValues_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray + var obj *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -213162,11 +255291,11 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray(t } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray(t *testing.T) { t.Run("SetValues_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray{} var fernTestValueValues []string // Act @@ -213196,9 +255325,9 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxDefaultValue } -func TestSettersDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar(t *testing.T) { t.Run("SetValue", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar{} var fernTestValueValue string obj.SetValue(fernTestValueValue) assert.Equal(t, fernTestValueValue, obj.Value) @@ -213207,11 +255336,11 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar( } -func TestGettersDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar(t *testing.T) { t.Run("GetValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar{} var expected string obj.Value = expected @@ -213221,7 +255350,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar( t.Run("GetValue_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar + var obj *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -213233,11 +255362,11 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar( } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar(t *testing.T) { t.Run("SetValue_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxDefaultValueEntryScalar{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar{} var fernTestValueValue string // Act @@ -213267,9 +255396,9 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxDefaultValue } -func TestSettersDocFormsGet200ResponseFieldsItemCheckboxFlags(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonFlags(t *testing.T) { t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} var fernTestValueReadOnly bool obj.SetReadOnly(fernTestValueReadOnly) assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) @@ -213277,7 +255406,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckboxFlags(t *testing.T) { }) t.Run("SetRequired", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} var fernTestValueRequired bool obj.SetRequired(fernTestValueRequired) assert.Equal(t, fernTestValueRequired, obj.Required) @@ -213285,7 +255414,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckboxFlags(t *testing.T) { }) t.Run("SetNoExport", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} var fernTestValueNoExport bool obj.SetNoExport(fernTestValueNoExport) assert.Equal(t, fernTestValueNoExport, obj.NoExport) @@ -213293,7 +255422,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckboxFlags(t *testing.T) { }) t.Run("SetRaw", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} var fernTestValueRaw int obj.SetRaw(fernTestValueRaw) assert.Equal(t, fernTestValueRaw, obj.Raw) @@ -213302,11 +255431,11 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckboxFlags(t *testing.T) { } -func TestGettersDocFormsGet200ResponseFieldsItemCheckboxFlags(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonFlags(t *testing.T) { t.Run("GetReadOnly", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} var expected bool obj.ReadOnly = expected @@ -213316,7 +255445,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxFlags(t *testing.T) { t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxFlags + var obj *DocFormsGet200ResponseFieldsItemPushbuttonFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -213329,7 +255458,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxFlags(t *testing.T) { t.Run("GetRequired", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} var expected bool obj.Required = expected @@ -213339,7 +255468,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxFlags(t *testing.T) { t.Run("GetRequired_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxFlags + var obj *DocFormsGet200ResponseFieldsItemPushbuttonFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -213352,7 +255481,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxFlags(t *testing.T) { t.Run("GetNoExport", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} var expected bool obj.NoExport = expected @@ -213362,7 +255491,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxFlags(t *testing.T) { t.Run("GetNoExport_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxFlags + var obj *DocFormsGet200ResponseFieldsItemPushbuttonFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -213375,7 +255504,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxFlags(t *testing.T) { t.Run("GetRaw", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} var expected int obj.Raw = expected @@ -213385,7 +255514,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxFlags(t *testing.T) { t.Run("GetRaw_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxFlags + var obj *DocFormsGet200ResponseFieldsItemPushbuttonFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -213397,11 +255526,11 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxFlags(t *testing.T) { } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxFlags(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonFlags(t *testing.T) { t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} var fernTestValueReadOnly bool // Act @@ -213432,7 +255561,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxFlags(t *tes t.Run("SetRequired_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} var fernTestValueRequired bool // Act @@ -213463,7 +255592,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxFlags(t *tes t.Run("SetNoExport_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} var fernTestValueNoExport bool // Act @@ -213494,7 +255623,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxFlags(t *tes t.Run("SetRaw_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} var fernTestValueRaw int // Act @@ -213524,11 +255653,11 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxFlags(t *tes } -func TestGettersDocFormsGet200ResponseFieldsItemCheckboxRef(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonRef(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxRef{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonRef{} var expected string obj.Kind = expected @@ -213538,7 +255667,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxRef(t *testing.T) { t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxRef + var obj *DocFormsGet200ResponseFieldsItemPushbuttonRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -213551,8 +255680,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxRef(t *testing.T) { t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxRef{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber + obj := &DocFormsGet200ResponseFieldsItemPushbuttonRef{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -213562,7 +255691,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxRef(t *testing.T) { t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxRef{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonRef{} obj.ObjectNumber = nil // Act & Assert @@ -213571,7 +255700,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxRef(t *testing.T) { t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxRef + var obj *DocFormsGet200ResponseFieldsItemPushbuttonRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -213584,8 +255713,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxRef(t *testing.T) { t.Run("GetFqn", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxRef{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxRefFqn + obj := &DocFormsGet200ResponseFieldsItemPushbuttonRef{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonRefFqn obj.Fqn = expected // Act & Assert @@ -213595,7 +255724,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxRef(t *testing.T) { t.Run("GetFqn_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxRef{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonRef{} obj.Fqn = nil // Act & Assert @@ -213604,7 +255733,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxRef(t *testing.T) { t.Run("GetFqn_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxRef + var obj *DocFormsGet200ResponseFieldsItemPushbuttonRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -213616,9 +255745,9 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxRef(t *testing.T) { } -func TestSettersDocFormsGet200ResponseFieldsItemCheckboxRefFqn(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonRefFqn(t *testing.T) { t.Run("SetName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxRefFqn{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonRefFqn{} var fernTestValueName string obj.SetName(fernTestValueName) assert.Equal(t, fernTestValueName, obj.Name) @@ -213627,11 +255756,11 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckboxRefFqn(t *testing.T) { } -func TestGettersDocFormsGet200ResponseFieldsItemCheckboxRefFqn(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonRefFqn(t *testing.T) { t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxRefFqn{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonRefFqn{} var expected string obj.Name = expected @@ -213641,7 +255770,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxRefFqn(t *testing.T) { t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxRefFqn + var obj *DocFormsGet200ResponseFieldsItemPushbuttonRefFqn // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -213653,11 +255782,11 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxRefFqn(t *testing.T) { } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxRefFqn(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonRefFqn(t *testing.T) { t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxRefFqn{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonRefFqn{} var fernTestValueName string // Act @@ -213687,9 +255816,9 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxRefFqn(t *te } -func TestSettersDocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber(t *testing.T) { t.Run("SetFieldObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber{} var fernTestValueFieldObjectNumber int obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) assert.Equal(t, fernTestValueFieldObjectNumber, obj.FieldObjectNumber) @@ -213698,11 +255827,11 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber(t *testi } -func TestGettersDocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber(t *testing.T) { t.Run("GetFieldObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber{} var expected int obj.FieldObjectNumber = expected @@ -213712,7 +255841,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber(t *testi t.Run("GetFieldObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber + var obj *DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -213724,11 +255853,11 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber(t *testi } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber(t *testing.T) { t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxRefObjectNumber{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber{} var fernTestValueFieldObjectNumber int // Act @@ -213758,11 +255887,11 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxRefObjectNum } -func TestGettersDocFormsGet200ResponseFieldsItemCheckboxValueEntry(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntry(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} var expected string obj.Kind = expected @@ -213772,7 +255901,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxValueEntry(t *testing.T) t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxValueEntry + var obj *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -213785,8 +255914,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxValueEntry(t *testing.T) t.Run("GetNone", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxValueEntryNone + obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone obj.None = expected // Act & Assert @@ -213796,7 +255925,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxValueEntry(t *testing.T) t.Run("GetNone_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} obj.None = nil // Act & Assert @@ -213805,7 +255934,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxValueEntry(t *testing.T) t.Run("GetNone_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxValueEntry + var obj *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -213818,8 +255947,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxValueEntry(t *testing.T) t.Run("GetScalar", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar + obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar obj.Scalar = expected // Act & Assert @@ -213829,7 +255958,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxValueEntry(t *testing.T) t.Run("GetScalar_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} obj.Scalar = nil // Act & Assert @@ -213838,7 +255967,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxValueEntry(t *testing.T) t.Run("GetScalar_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxValueEntry + var obj *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -213851,8 +255980,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxValueEntry(t *testing.T) t.Run("GetArray", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray + obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray obj.Array = expected // Act & Assert @@ -213862,7 +255991,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxValueEntry(t *testing.T) t.Run("GetArray_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} obj.Array = nil // Act & Assert @@ -213871,7 +256000,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxValueEntry(t *testing.T) t.Run("GetArray_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxValueEntry + var obj *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -213884,8 +256013,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxValueEntry(t *testing.T) t.Run("GetUnsupported", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemCheckboxValueEntryUnsupported + obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported obj.Unsupported = expected // Act & Assert @@ -213895,7 +256024,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxValueEntry(t *testing.T) t.Run("GetUnsupported_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} obj.Unsupported = nil // Act & Assert @@ -213904,7 +256033,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxValueEntry(t *testing.T) t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxValueEntry + var obj *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -213916,9 +256045,9 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxValueEntry(t *testing.T) } -func TestSettersDocFormsGet200ResponseFieldsItemCheckboxValueEntryArray(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray(t *testing.T) { t.Run("SetValues", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray{} var fernTestValueValues []string obj.SetValues(fernTestValueValues) assert.Equal(t, fernTestValueValues, obj.Values) @@ -213927,11 +256056,11 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckboxValueEntryArray(t *testi } -func TestGettersDocFormsGet200ResponseFieldsItemCheckboxValueEntryArray(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray(t *testing.T) { t.Run("GetValues", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray{} var expected []string obj.Values = expected @@ -213942,7 +256071,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxValueEntryArray(t *testi t.Run("GetValues_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray{} obj.Values = nil // Act & Assert @@ -213951,7 +256080,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxValueEntryArray(t *testi t.Run("GetValues_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray + var obj *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -213963,11 +256092,11 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxValueEntryArray(t *testi } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxValueEntryArray(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray(t *testing.T) { t.Run("SetValues_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray{} var fernTestValueValues []string // Act @@ -213997,9 +256126,9 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxValueEntryAr } -func TestSettersDocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar(t *testing.T) { t.Run("SetValue", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar{} var fernTestValueValue string obj.SetValue(fernTestValueValue) assert.Equal(t, fernTestValueValue, obj.Value) @@ -214008,11 +256137,11 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar(t *test } -func TestGettersDocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar(t *testing.T) { t.Run("GetValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar{} var expected string obj.Value = expected @@ -214022,7 +256151,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar(t *test t.Run("GetValue_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar + var obj *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -214034,11 +256163,11 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar(t *test } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar(t *testing.T) { t.Run("SetValue_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxValueEntryScalar{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar{} var fernTestValueValue string // Act @@ -214068,9 +256197,9 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxValueEntrySc } -func TestSettersDocFormsGet200ResponseFieldsItemCheckboxWidgetsItem(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem(t *testing.T) { t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem{} var fernTestValueAnnotObjectNumber int obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) @@ -214078,44 +256207,20 @@ func TestSettersDocFormsGet200ResponseFieldsItemCheckboxWidgetsItem(t *testing.T }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOnState", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} - var fernTestValueOnState string - obj.SetOnState(fernTestValueOnState) - assert.Equal(t, fernTestValueOnState, obj.OnState) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetExportValue", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} - var fernTestValueExportValue string - obj.SetExportValue(fernTestValueExportValue) - assert.Equal(t, fernTestValueExportValue, obj.ExportValue) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetChecked", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} - var fernTestValueChecked bool - obj.SetChecked(fernTestValueChecked) - assert.Equal(t, fernTestValueChecked, obj.Checked) - assert.NotNil(t, obj.explicitFields) - }) - } -func TestGettersDocFormsGet200ResponseFieldsItemCheckboxWidgetsItem(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem(t *testing.T) { t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem{} var expected int obj.AnnotObjectNumber = expected @@ -214125,7 +256230,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxWidgetsItem(t *testing.T t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem + var obj *DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -214138,7 +256243,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxWidgetsItem(t *testing.T t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem{} var expected int obj.PageObjectNumber = expected @@ -214148,7 +256253,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxWidgetsItem(t *testing.T t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem + var obj *DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -214158,82 +256263,13 @@ func TestGettersDocFormsGet200ResponseFieldsItemCheckboxWidgetsItem(t *testing.T _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetOnState", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} - var expected string - obj.OnState = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetOnState(), "getter should return the property value") - }) - - t.Run("GetOnState_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetOnState() // Should return zero value - }) - - t.Run("GetExportValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} - var expected string - obj.ExportValue = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetExportValue(), "getter should return the property value") - }) - - t.Run("GetExportValue_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetExportValue() // Should return zero value - }) - - t.Run("GetChecked", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} - var expected bool - obj.Checked = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetChecked(), "getter should return the property value") - }) - - t.Run("GetChecked_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetChecked() // Should return zero value - }) - } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxWidgetsItem(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem(t *testing.T) { t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem{} var fernTestValueAnnotObjectNumber int // Act @@ -214264,7 +256300,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxWidgetsItem( t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} + obj := &DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem{} var fernTestValuePageObjectNumber int // Act @@ -214292,112 +256328,19 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCheckboxWidgetsItem( // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOnState_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} - var fernTestValueOnState string - - // Act - obj.SetOnState(fernTestValueOnState) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetExportValue_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} - var fernTestValueExportValue string - - // Act - obj.SetExportValue(fernTestValueExportValue) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetChecked_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCheckboxWidgetsItem{} - var fernTestValueChecked bool - - // Act - obj.SetChecked(fernTestValueChecked) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - } -func TestSettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { t.Run("SetRef", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var fernTestValueRef *DocFormsGet200ResponseFieldsItemComboboxRef + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var fernTestValueRef *DocFormsGet200ResponseFieldsItemRadioRef obj.SetRef(fernTestValueRef) assert.Equal(t, fernTestValueRef, obj.Ref) assert.NotNil(t, obj.explicitFields) }) t.Run("SetFieldObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCombobox{} + obj := &DocFormsGet200ResponseFieldsItemRadio{} var fernTestValueFieldObjectNumber int obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) assert.Equal(t, fernTestValueFieldObjectNumber, obj.FieldObjectNumber) @@ -214405,7 +256348,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { }) t.Run("SetName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCombobox{} + obj := &DocFormsGet200ResponseFieldsItemRadio{} var fernTestValueName string obj.SetName(fernTestValueName) assert.Equal(t, fernTestValueName, obj.Name) @@ -214413,23 +256356,23 @@ func TestSettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { }) t.Run("SetOrigin", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var fernTestValueOrigin DocFormsGet200ResponseFieldsItemComboboxOrigin + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var fernTestValueOrigin DocFormsGet200ResponseFieldsItemRadioOrigin obj.SetOrigin(fernTestValueOrigin) assert.Equal(t, fernTestValueOrigin, obj.Origin) assert.NotNil(t, obj.explicitFields) }) t.Run("SetFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var fernTestValueFlags *DocFormsGet200ResponseFieldsItemComboboxFlags + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var fernTestValueFlags *DocFormsGet200ResponseFieldsItemRadioFlags obj.SetFlags(fernTestValueFlags) assert.Equal(t, fernTestValueFlags, obj.Flags) assert.NotNil(t, obj.explicitFields) }) t.Run("SetAlternateName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCombobox{} + obj := &DocFormsGet200ResponseFieldsItemRadio{} var fernTestValueAlternateName *string obj.SetAlternateName(fernTestValueAlternateName) assert.Equal(t, fernTestValueAlternateName, obj.AlternateName) @@ -214437,7 +256380,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { }) t.Run("SetMappingName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCombobox{} + obj := &DocFormsGet200ResponseFieldsItemRadio{} var fernTestValueMappingName *string obj.SetMappingName(fernTestValueMappingName) assert.Equal(t, fernTestValueMappingName, obj.MappingName) @@ -214445,23 +256388,23 @@ func TestSettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { }) t.Run("SetValueEntry", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemComboboxValueEntry + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemRadioValueEntry obj.SetValueEntry(fernTestValueValueEntry) assert.Equal(t, fernTestValueValueEntry, obj.ValueEntry) assert.NotNil(t, obj.explicitFields) }) t.Run("SetDefaultValueEntry", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry obj.SetDefaultValueEntry(fernTestValueDefaultValueEntry) assert.Equal(t, fernTestValueDefaultValueEntry, obj.DefaultValueEntry) assert.NotNil(t, obj.explicitFields) }) t.Run("SetActions", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCombobox{} + obj := &DocFormsGet200ResponseFieldsItemRadio{} var fernTestValueActions *PdfFieldActions obj.SetActions(fernTestValueActions) assert.Equal(t, fernTestValueActions, obj.Actions) @@ -214469,53 +256412,45 @@ func TestSettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { }) t.Run("SetWidgets", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemComboboxWidgetsItem + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemRadioWidgetsItem obj.SetWidgets(fernTestValueWidgets) assert.Equal(t, fernTestValueWidgets, obj.Widgets) assert.NotNil(t, obj.explicitFields) }) t.Run("SetValue", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCombobox{} + obj := &DocFormsGet200ResponseFieldsItemRadio{} var fernTestValueValue string obj.SetValue(fernTestValueValue) assert.Equal(t, fernTestValueValue, obj.Value) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetDefaultValue", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var fernTestValueDefaultValue string - obj.SetDefaultValue(fernTestValueDefaultValue) - assert.Equal(t, fernTestValueDefaultValue, obj.DefaultValue) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetEdit", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var fernTestValueEdit bool - obj.SetEdit(fernTestValueEdit) - assert.Equal(t, fernTestValueEdit, obj.Edit) + t.Run("SetRadiosInUnison", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var fernTestValueRadiosInUnison bool + obj.SetRadiosInUnison(fernTestValueRadiosInUnison) + assert.Equal(t, fernTestValueRadiosInUnison, obj.RadiosInUnison) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOptions", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var fernTestValueOptions []*DocFormsGet200ResponseFieldsItemComboboxOptionsItem - obj.SetOptions(fernTestValueOptions) - assert.Equal(t, fernTestValueOptions, obj.Options) + t.Run("SetNoToggleToOff", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var fernTestValueNoToggleToOff bool + obj.SetNoToggleToOff(fernTestValueNoToggleToOff) + assert.Equal(t, fernTestValueNoToggleToOff, obj.NoToggleToOff) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var expected *DocFormsGet200ResponseFieldsItemComboboxRef + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var expected *DocFormsGet200ResponseFieldsItemRadioRef obj.Ref = expected // Act & Assert @@ -214525,7 +256460,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { t.Run("GetRef_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} + obj := &DocFormsGet200ResponseFieldsItemRadio{} obj.Ref = nil // Act & Assert @@ -214534,7 +256469,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { t.Run("GetRef_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCombobox + var obj *DocFormsGet200ResponseFieldsItemRadio // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -214547,7 +256482,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { t.Run("GetFieldObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} + obj := &DocFormsGet200ResponseFieldsItemRadio{} var expected int obj.FieldObjectNumber = expected @@ -214557,7 +256492,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { t.Run("GetFieldObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCombobox + var obj *DocFormsGet200ResponseFieldsItemRadio // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -214570,7 +256505,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} + obj := &DocFormsGet200ResponseFieldsItemRadio{} var expected string obj.Name = expected @@ -214580,7 +256515,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCombobox + var obj *DocFormsGet200ResponseFieldsItemRadio // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -214593,8 +256528,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { t.Run("GetOrigin", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var expected DocFormsGet200ResponseFieldsItemComboboxOrigin + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var expected DocFormsGet200ResponseFieldsItemRadioOrigin obj.Origin = expected // Act & Assert @@ -214603,7 +256538,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { t.Run("GetOrigin_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCombobox + var obj *DocFormsGet200ResponseFieldsItemRadio // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -214616,8 +256551,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var expected *DocFormsGet200ResponseFieldsItemComboboxFlags + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var expected *DocFormsGet200ResponseFieldsItemRadioFlags obj.Flags = expected // Act & Assert @@ -214627,7 +256562,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} + obj := &DocFormsGet200ResponseFieldsItemRadio{} obj.Flags = nil // Act & Assert @@ -214636,7 +256571,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { t.Run("GetFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCombobox + var obj *DocFormsGet200ResponseFieldsItemRadio // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -214649,7 +256584,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { t.Run("GetAlternateName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} + obj := &DocFormsGet200ResponseFieldsItemRadio{} var expected *string obj.AlternateName = expected @@ -214660,7 +256595,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { t.Run("GetAlternateName_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} + obj := &DocFormsGet200ResponseFieldsItemRadio{} obj.AlternateName = nil // Act & Assert @@ -214669,7 +256604,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { t.Run("GetAlternateName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCombobox + var obj *DocFormsGet200ResponseFieldsItemRadio // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -214682,7 +256617,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { t.Run("GetMappingName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} + obj := &DocFormsGet200ResponseFieldsItemRadio{} var expected *string obj.MappingName = expected @@ -214693,7 +256628,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { t.Run("GetMappingName_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} + obj := &DocFormsGet200ResponseFieldsItemRadio{} obj.MappingName = nil // Act & Assert @@ -214702,7 +256637,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { t.Run("GetMappingName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCombobox + var obj *DocFormsGet200ResponseFieldsItemRadio // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -214715,8 +256650,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { t.Run("GetValueEntry", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var expected *DocFormsGet200ResponseFieldsItemComboboxValueEntry + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var expected *DocFormsGet200ResponseFieldsItemRadioValueEntry obj.ValueEntry = expected // Act & Assert @@ -214726,7 +256661,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { t.Run("GetValueEntry_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} + obj := &DocFormsGet200ResponseFieldsItemRadio{} obj.ValueEntry = nil // Act & Assert @@ -214735,7 +256670,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { t.Run("GetValueEntry_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCombobox + var obj *DocFormsGet200ResponseFieldsItemRadio // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -214748,8 +256683,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { t.Run("GetDefaultValueEntry", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var expected *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var expected *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry obj.DefaultValueEntry = expected // Act & Assert @@ -214759,7 +256694,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { t.Run("GetDefaultValueEntry_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} + obj := &DocFormsGet200ResponseFieldsItemRadio{} obj.DefaultValueEntry = nil // Act & Assert @@ -214768,7 +256703,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { t.Run("GetDefaultValueEntry_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCombobox + var obj *DocFormsGet200ResponseFieldsItemRadio // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -214781,7 +256716,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { t.Run("GetActions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} + obj := &DocFormsGet200ResponseFieldsItemRadio{} var expected *PdfFieldActions obj.Actions = expected @@ -214792,7 +256727,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { t.Run("GetActions_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} + obj := &DocFormsGet200ResponseFieldsItemRadio{} obj.Actions = nil // Act & Assert @@ -214801,7 +256736,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { t.Run("GetActions_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCombobox + var obj *DocFormsGet200ResponseFieldsItemRadio // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -214814,8 +256749,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { t.Run("GetWidgets", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var expected []*DocFormsGet200ResponseFieldsItemComboboxWidgetsItem + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var expected []*DocFormsGet200ResponseFieldsItemRadioWidgetsItem obj.Widgets = expected // Act & Assert @@ -214825,7 +256760,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { t.Run("GetWidgets_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} + obj := &DocFormsGet200ResponseFieldsItemRadio{} obj.Widgets = nil // Act & Assert @@ -214834,7 +256769,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { t.Run("GetWidgets_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCombobox + var obj *DocFormsGet200ResponseFieldsItemRadio // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -214847,7 +256782,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { t.Run("GetValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} + obj := &DocFormsGet200ResponseFieldsItemRadio{} var expected string obj.Value = expected @@ -214857,7 +256792,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { t.Run("GetValue_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCombobox + var obj *DocFormsGet200ResponseFieldsItemRadio // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -214867,93 +256802,60 @@ func TestGettersDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { _ = obj.GetValue() // Should return zero value }) - t.Run("GetDefaultValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var expected string - obj.DefaultValue = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDefaultValue(), "getter should return the property value") - }) - - t.Run("GetDefaultValue_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCombobox - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetDefaultValue() // Should return zero value - }) - - t.Run("GetEdit", func(t *testing.T) { + t.Run("GetRadiosInUnison", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} + obj := &DocFormsGet200ResponseFieldsItemRadio{} var expected bool - obj.Edit = expected + obj.RadiosInUnison = expected // Act & Assert - assert.Equal(t, expected, obj.GetEdit(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRadiosInUnison(), "getter should return the property value") }) - t.Run("GetEdit_NilReceiver", func(t *testing.T) { + t.Run("GetRadiosInUnison_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCombobox + var obj *DocFormsGet200ResponseFieldsItemRadio // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetEdit() // Should return zero value - }) - - t.Run("GetOptions", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var expected []*DocFormsGet200ResponseFieldsItemComboboxOptionsItem - obj.Options = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetOptions(), "getter should return the property value") + _ = obj.GetRadiosInUnison() // Should return zero value }) - t.Run("GetOptions_NilValue", func(t *testing.T) { + t.Run("GetNoToggleToOff", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - obj.Options = nil + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var expected bool + obj.NoToggleToOff = expected // Act & Assert - assert.Nil(t, obj.GetOptions(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetNoToggleToOff(), "getter should return the property value") }) - t.Run("GetOptions_NilReceiver", func(t *testing.T) { + t.Run("GetNoToggleToOff_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemCombobox + var obj *DocFormsGet200ResponseFieldsItemRadio // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOptions() // Should return zero value + _ = obj.GetNoToggleToOff() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCombobox(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var fernTestValueRef *DocFormsGet200ResponseFieldsItemComboboxRef + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var fernTestValueRef *DocFormsGet200ResponseFieldsItemRadioRef // Act obj.SetRef(fernTestValueRef) @@ -214983,7 +256885,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCombobox(t *testing. t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} + obj := &DocFormsGet200ResponseFieldsItemRadio{} var fernTestValueFieldObjectNumber int // Act @@ -215014,7 +256916,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCombobox(t *testing. t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} + obj := &DocFormsGet200ResponseFieldsItemRadio{} var fernTestValueName string // Act @@ -215045,8 +256947,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCombobox(t *testing. t.Run("SetOrigin_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var fernTestValueOrigin DocFormsGet200ResponseFieldsItemComboboxOrigin + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var fernTestValueOrigin DocFormsGet200ResponseFieldsItemRadioOrigin // Act obj.SetOrigin(fernTestValueOrigin) @@ -215076,8 +256978,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCombobox(t *testing. t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var fernTestValueFlags *DocFormsGet200ResponseFieldsItemComboboxFlags + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var fernTestValueFlags *DocFormsGet200ResponseFieldsItemRadioFlags // Act obj.SetFlags(fernTestValueFlags) @@ -215107,7 +257009,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCombobox(t *testing. t.Run("SetAlternateName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} + obj := &DocFormsGet200ResponseFieldsItemRadio{} var fernTestValueAlternateName *string // Act @@ -215138,7 +257040,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCombobox(t *testing. t.Run("SetMappingName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} + obj := &DocFormsGet200ResponseFieldsItemRadio{} var fernTestValueMappingName *string // Act @@ -215169,8 +257071,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCombobox(t *testing. t.Run("SetValueEntry_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemComboboxValueEntry + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemRadioValueEntry // Act obj.SetValueEntry(fernTestValueValueEntry) @@ -215200,8 +257102,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCombobox(t *testing. t.Run("SetDefaultValueEntry_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry // Act obj.SetDefaultValueEntry(fernTestValueDefaultValueEntry) @@ -215231,7 +257133,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCombobox(t *testing. t.Run("SetActions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} + obj := &DocFormsGet200ResponseFieldsItemRadio{} var fernTestValueActions *PdfFieldActions // Act @@ -215262,8 +257164,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCombobox(t *testing. t.Run("SetWidgets_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemComboboxWidgetsItem + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemRadioWidgetsItem // Act obj.SetWidgets(fernTestValueWidgets) @@ -215290,45 +257192,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCombobox(t *testing. // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetValue_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var fernTestValueValue string - - // Act - obj.SetValue(fernTestValueValue) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetDefaultValue_MarksExplicit", func(t *testing.T) { + t.Run("SetValue_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var fernTestValueDefaultValue string + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var fernTestValueValue string // Act - obj.SetDefaultValue(fernTestValueDefaultValue) + obj.SetValue(fernTestValueValue) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -215352,14 +257223,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCombobox(t *testing. // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetEdit_MarksExplicit", func(t *testing.T) { + t.Run("SetRadiosInUnison_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var fernTestValueEdit bool + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var fernTestValueRadiosInUnison bool // Act - obj.SetEdit(fernTestValueEdit) + obj.SetRadiosInUnison(fernTestValueRadiosInUnison) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -215383,14 +257254,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCombobox(t *testing. // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOptions_MarksExplicit", func(t *testing.T) { + t.Run("SetNoToggleToOff_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemCombobox{} - var fernTestValueOptions []*DocFormsGet200ResponseFieldsItemComboboxOptionsItem + obj := &DocFormsGet200ResponseFieldsItemRadio{} + var fernTestValueNoToggleToOff bool // Act - obj.SetOptions(fernTestValueOptions) + obj.SetNoToggleToOff(fernTestValueNoToggleToOff) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -215416,11 +257287,11 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemCombobox(t *testing. } -func TestGettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntry(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} var expected string obj.Kind = expected @@ -215430,7 +257301,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry(t *tes t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry + var obj *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -215443,8 +257314,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry(t *tes t.Run("GetNone", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryNone + obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone obj.None = expected // Act & Assert @@ -215454,7 +257325,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry(t *tes t.Run("GetNone_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} obj.None = nil // Act & Assert @@ -215463,7 +257334,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry(t *tes t.Run("GetNone_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry + var obj *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -215476,8 +257347,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry(t *tes t.Run("GetScalar", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar + obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar obj.Scalar = expected // Act & Assert @@ -215487,7 +257358,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry(t *tes t.Run("GetScalar_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} obj.Scalar = nil // Act & Assert @@ -215496,7 +257367,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry(t *tes t.Run("GetScalar_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry + var obj *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -215509,8 +257380,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry(t *tes t.Run("GetArray", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray + obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray obj.Array = expected // Act & Assert @@ -215520,7 +257391,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry(t *tes t.Run("GetArray_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} obj.Array = nil // Act & Assert @@ -215529,7 +257400,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry(t *tes t.Run("GetArray_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry + var obj *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -215542,8 +257413,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry(t *tes t.Run("GetUnsupported", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryUnsupported + obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported obj.Unsupported = expected // Act & Assert @@ -215553,7 +257424,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry(t *tes t.Run("GetUnsupported_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} obj.Unsupported = nil // Act & Assert @@ -215562,7 +257433,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry(t *tes t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry + var obj *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -215574,9 +257445,9 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntry(t *tes } -func TestSettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray(t *testing.T) { t.Run("SetValues", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray{} var fernTestValueValues []string obj.SetValues(fernTestValueValues) assert.Equal(t, fernTestValueValues, obj.Values) @@ -215585,11 +257456,11 @@ func TestSettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray(t } -func TestGettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray(t *testing.T) { t.Run("GetValues", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray{} var expected []string obj.Values = expected @@ -215600,7 +257471,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray(t t.Run("GetValues_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray{} obj.Values = nil // Act & Assert @@ -215609,7 +257480,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray(t t.Run("GetValues_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray + var obj *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -215621,11 +257492,11 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray(t } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray(t *testing.T) { t.Run("SetValues_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray{} var fernTestValueValues []string // Act @@ -215655,9 +257526,9 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxDefaultValue } -func TestSettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar(t *testing.T) { t.Run("SetValue", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar{} + obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar{} var fernTestValueValue string obj.SetValue(fernTestValueValue) assert.Equal(t, fernTestValueValue, obj.Value) @@ -215666,11 +257537,11 @@ func TestSettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar( } -func TestGettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar(t *testing.T) { t.Run("GetValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar{} + obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar{} var expected string obj.Value = expected @@ -215680,7 +257551,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar( t.Run("GetValue_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar + var obj *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -215692,11 +257563,11 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar( } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar(t *testing.T) { t.Run("SetValue_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxDefaultValueEntryScalar{} + obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar{} var fernTestValueValue string // Act @@ -215726,9 +257597,9 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxDefaultValue } -func TestSettersDocFormsGet200ResponseFieldsItemComboboxFlags(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemRadioFlags(t *testing.T) { t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} var fernTestValueReadOnly bool obj.SetReadOnly(fernTestValueReadOnly) assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) @@ -215736,7 +257607,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemComboboxFlags(t *testing.T) { }) t.Run("SetRequired", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} var fernTestValueRequired bool obj.SetRequired(fernTestValueRequired) assert.Equal(t, fernTestValueRequired, obj.Required) @@ -215744,7 +257615,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemComboboxFlags(t *testing.T) { }) t.Run("SetNoExport", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} var fernTestValueNoExport bool obj.SetNoExport(fernTestValueNoExport) assert.Equal(t, fernTestValueNoExport, obj.NoExport) @@ -215752,7 +257623,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemComboboxFlags(t *testing.T) { }) t.Run("SetRaw", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} var fernTestValueRaw int obj.SetRaw(fernTestValueRaw) assert.Equal(t, fernTestValueRaw, obj.Raw) @@ -215761,11 +257632,11 @@ func TestSettersDocFormsGet200ResponseFieldsItemComboboxFlags(t *testing.T) { } -func TestGettersDocFormsGet200ResponseFieldsItemComboboxFlags(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemRadioFlags(t *testing.T) { t.Run("GetReadOnly", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} var expected bool obj.ReadOnly = expected @@ -215775,7 +257646,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxFlags(t *testing.T) { t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxFlags + var obj *DocFormsGet200ResponseFieldsItemRadioFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -215788,7 +257659,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxFlags(t *testing.T) { t.Run("GetRequired", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} var expected bool obj.Required = expected @@ -215798,7 +257669,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxFlags(t *testing.T) { t.Run("GetRequired_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxFlags + var obj *DocFormsGet200ResponseFieldsItemRadioFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -215811,7 +257682,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxFlags(t *testing.T) { t.Run("GetNoExport", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} var expected bool obj.NoExport = expected @@ -215821,7 +257692,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxFlags(t *testing.T) { t.Run("GetNoExport_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxFlags + var obj *DocFormsGet200ResponseFieldsItemRadioFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -215834,7 +257705,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxFlags(t *testing.T) { t.Run("GetRaw", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} var expected int obj.Raw = expected @@ -215844,7 +257715,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxFlags(t *testing.T) { t.Run("GetRaw_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxFlags + var obj *DocFormsGet200ResponseFieldsItemRadioFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -215856,11 +257727,11 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxFlags(t *testing.T) { } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxFlags(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioFlags(t *testing.T) { t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} var fernTestValueReadOnly bool // Act @@ -215891,7 +257762,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxFlags(t *tes t.Run("SetRequired_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} var fernTestValueRequired bool // Act @@ -215922,7 +257793,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxFlags(t *tes t.Run("SetNoExport_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} var fernTestValueNoExport bool // Act @@ -215953,7 +257824,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxFlags(t *tes t.Run("SetRaw_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} var fernTestValueRaw int // Act @@ -215983,206 +257854,11 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxFlags(t *tes } -func TestSettersDocFormsGet200ResponseFieldsItemComboboxOptionsItem(t *testing.T) { - t.Run("SetLabel", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxOptionsItem{} - var fernTestValueLabel string - obj.SetLabel(fernTestValueLabel) - assert.Equal(t, fernTestValueLabel, obj.Label) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetValue", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxOptionsItem{} - var fernTestValueValue string - obj.SetValue(fernTestValueValue) - assert.Equal(t, fernTestValueValue, obj.Value) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetSelected", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxOptionsItem{} - var fernTestValueSelected bool - obj.SetSelected(fernTestValueSelected) - assert.Equal(t, fernTestValueSelected, obj.Selected) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemComboboxOptionsItem(t *testing.T) { - t.Run("GetLabel", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxOptionsItem{} - var expected string - obj.Label = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetLabel(), "getter should return the property value") - }) - - t.Run("GetLabel_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxOptionsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetLabel() // Should return zero value - }) - - t.Run("GetValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxOptionsItem{} - var expected string - obj.Value = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") - }) - - t.Run("GetValue_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxOptionsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetValue() // Should return zero value - }) - - t.Run("GetSelected", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxOptionsItem{} - var expected bool - obj.Selected = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetSelected(), "getter should return the property value") - }) - - t.Run("GetSelected_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxOptionsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetSelected() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxOptionsItem(t *testing.T) { - t.Run("SetLabel_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxOptionsItem{} - var fernTestValueLabel string - - // Act - obj.SetLabel(fernTestValueLabel) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetValue_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxOptionsItem{} - var fernTestValueValue string - - // Act - obj.SetValue(fernTestValueValue) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetSelected_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxOptionsItem{} - var fernTestValueSelected bool - - // Act - obj.SetSelected(fernTestValueSelected) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemComboboxRef(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemRadioRef(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxRef{} + obj := &DocFormsGet200ResponseFieldsItemRadioRef{} var expected string obj.Kind = expected @@ -216192,7 +257868,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxRef(t *testing.T) { t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxRef + var obj *DocFormsGet200ResponseFieldsItemRadioRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -216205,8 +257881,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxRef(t *testing.T) { t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxRef{} - var expected *DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber + obj := &DocFormsGet200ResponseFieldsItemRadioRef{} + var expected *DocFormsGet200ResponseFieldsItemRadioRefObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -216216,7 +257892,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxRef(t *testing.T) { t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxRef{} + obj := &DocFormsGet200ResponseFieldsItemRadioRef{} obj.ObjectNumber = nil // Act & Assert @@ -216225,7 +257901,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxRef(t *testing.T) { t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxRef + var obj *DocFormsGet200ResponseFieldsItemRadioRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -216238,8 +257914,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxRef(t *testing.T) { t.Run("GetFqn", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxRef{} - var expected *DocFormsGet200ResponseFieldsItemComboboxRefFqn + obj := &DocFormsGet200ResponseFieldsItemRadioRef{} + var expected *DocFormsGet200ResponseFieldsItemRadioRefFqn obj.Fqn = expected // Act & Assert @@ -216249,7 +257925,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxRef(t *testing.T) { t.Run("GetFqn_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxRef{} + obj := &DocFormsGet200ResponseFieldsItemRadioRef{} obj.Fqn = nil // Act & Assert @@ -216258,7 +257934,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxRef(t *testing.T) { t.Run("GetFqn_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxRef + var obj *DocFormsGet200ResponseFieldsItemRadioRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -216270,9 +257946,9 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxRef(t *testing.T) { } -func TestSettersDocFormsGet200ResponseFieldsItemComboboxRefFqn(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemRadioRefFqn(t *testing.T) { t.Run("SetName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxRefFqn{} + obj := &DocFormsGet200ResponseFieldsItemRadioRefFqn{} var fernTestValueName string obj.SetName(fernTestValueName) assert.Equal(t, fernTestValueName, obj.Name) @@ -216281,11 +257957,11 @@ func TestSettersDocFormsGet200ResponseFieldsItemComboboxRefFqn(t *testing.T) { } -func TestGettersDocFormsGet200ResponseFieldsItemComboboxRefFqn(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemRadioRefFqn(t *testing.T) { t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxRefFqn{} + obj := &DocFormsGet200ResponseFieldsItemRadioRefFqn{} var expected string obj.Name = expected @@ -216295,7 +257971,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxRefFqn(t *testing.T) { t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxRefFqn + var obj *DocFormsGet200ResponseFieldsItemRadioRefFqn // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -216307,11 +257983,11 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxRefFqn(t *testing.T) { } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxRefFqn(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioRefFqn(t *testing.T) { t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxRefFqn{} + obj := &DocFormsGet200ResponseFieldsItemRadioRefFqn{} var fernTestValueName string // Act @@ -216341,9 +258017,9 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxRefFqn(t *te } -func TestSettersDocFormsGet200ResponseFieldsItemComboboxRefObjectNumber(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemRadioRefObjectNumber(t *testing.T) { t.Run("SetFieldObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber{} + obj := &DocFormsGet200ResponseFieldsItemRadioRefObjectNumber{} var fernTestValueFieldObjectNumber int obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) assert.Equal(t, fernTestValueFieldObjectNumber, obj.FieldObjectNumber) @@ -216352,11 +258028,11 @@ func TestSettersDocFormsGet200ResponseFieldsItemComboboxRefObjectNumber(t *testi } -func TestGettersDocFormsGet200ResponseFieldsItemComboboxRefObjectNumber(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemRadioRefObjectNumber(t *testing.T) { t.Run("GetFieldObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber{} + obj := &DocFormsGet200ResponseFieldsItemRadioRefObjectNumber{} var expected int obj.FieldObjectNumber = expected @@ -216366,7 +258042,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxRefObjectNumber(t *testi t.Run("GetFieldObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber + var obj *DocFormsGet200ResponseFieldsItemRadioRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -216378,11 +258054,11 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxRefObjectNumber(t *testi } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxRefObjectNumber(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioRefObjectNumber(t *testing.T) { t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxRefObjectNumber{} + obj := &DocFormsGet200ResponseFieldsItemRadioRefObjectNumber{} var fernTestValueFieldObjectNumber int // Act @@ -216412,11 +258088,11 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxRefObjectNum } -func TestGettersDocFormsGet200ResponseFieldsItemComboboxValueEntry(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemRadioValueEntry(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemRadioValueEntry{} var expected string obj.Kind = expected @@ -216426,7 +258102,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxValueEntry(t *testing.T) t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxValueEntry + var obj *DocFormsGet200ResponseFieldsItemRadioValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -216439,8 +258115,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxValueEntry(t *testing.T) t.Run("GetNone", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemComboboxValueEntryNone + obj := &DocFormsGet200ResponseFieldsItemRadioValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemRadioValueEntryNone obj.None = expected // Act & Assert @@ -216450,7 +258126,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxValueEntry(t *testing.T) t.Run("GetNone_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemRadioValueEntry{} obj.None = nil // Act & Assert @@ -216459,7 +258135,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxValueEntry(t *testing.T) t.Run("GetNone_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxValueEntry + var obj *DocFormsGet200ResponseFieldsItemRadioValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -216472,8 +258148,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxValueEntry(t *testing.T) t.Run("GetScalar", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar + obj := &DocFormsGet200ResponseFieldsItemRadioValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemRadioValueEntryScalar obj.Scalar = expected // Act & Assert @@ -216483,7 +258159,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxValueEntry(t *testing.T) t.Run("GetScalar_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemRadioValueEntry{} obj.Scalar = nil // Act & Assert @@ -216492,7 +258168,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxValueEntry(t *testing.T) t.Run("GetScalar_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxValueEntry + var obj *DocFormsGet200ResponseFieldsItemRadioValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -216505,8 +258181,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxValueEntry(t *testing.T) t.Run("GetArray", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemComboboxValueEntryArray + obj := &DocFormsGet200ResponseFieldsItemRadioValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemRadioValueEntryArray obj.Array = expected // Act & Assert @@ -216516,7 +258192,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxValueEntry(t *testing.T) t.Run("GetArray_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemRadioValueEntry{} obj.Array = nil // Act & Assert @@ -216525,7 +258201,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxValueEntry(t *testing.T) t.Run("GetArray_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxValueEntry + var obj *DocFormsGet200ResponseFieldsItemRadioValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -216538,8 +258214,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxValueEntry(t *testing.T) t.Run("GetUnsupported", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemComboboxValueEntryUnsupported + obj := &DocFormsGet200ResponseFieldsItemRadioValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported obj.Unsupported = expected // Act & Assert @@ -216549,7 +258225,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxValueEntry(t *testing.T) t.Run("GetUnsupported_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemRadioValueEntry{} obj.Unsupported = nil // Act & Assert @@ -216558,7 +258234,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxValueEntry(t *testing.T) t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxValueEntry + var obj *DocFormsGet200ResponseFieldsItemRadioValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -216570,9 +258246,9 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxValueEntry(t *testing.T) } -func TestSettersDocFormsGet200ResponseFieldsItemComboboxValueEntryArray(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemRadioValueEntryArray(t *testing.T) { t.Run("SetValues", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryArray{} var fernTestValueValues []string obj.SetValues(fernTestValueValues) assert.Equal(t, fernTestValueValues, obj.Values) @@ -216581,11 +258257,11 @@ func TestSettersDocFormsGet200ResponseFieldsItemComboboxValueEntryArray(t *testi } -func TestGettersDocFormsGet200ResponseFieldsItemComboboxValueEntryArray(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemRadioValueEntryArray(t *testing.T) { t.Run("GetValues", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryArray{} var expected []string obj.Values = expected @@ -216596,7 +258272,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxValueEntryArray(t *testi t.Run("GetValues_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryArray{} obj.Values = nil // Act & Assert @@ -216605,7 +258281,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxValueEntryArray(t *testi t.Run("GetValues_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxValueEntryArray + var obj *DocFormsGet200ResponseFieldsItemRadioValueEntryArray // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -216617,11 +258293,11 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxValueEntryArray(t *testi } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxValueEntryArray(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioValueEntryArray(t *testing.T) { t.Run("SetValues_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryArray{} var fernTestValueValues []string // Act @@ -216651,9 +258327,9 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxValueEntryAr } -func TestSettersDocFormsGet200ResponseFieldsItemComboboxValueEntryScalar(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemRadioValueEntryScalar(t *testing.T) { t.Run("SetValue", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar{} + obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryScalar{} var fernTestValueValue string obj.SetValue(fernTestValueValue) assert.Equal(t, fernTestValueValue, obj.Value) @@ -216662,11 +258338,11 @@ func TestSettersDocFormsGet200ResponseFieldsItemComboboxValueEntryScalar(t *test } -func TestGettersDocFormsGet200ResponseFieldsItemComboboxValueEntryScalar(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemRadioValueEntryScalar(t *testing.T) { t.Run("GetValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar{} + obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryScalar{} var expected string obj.Value = expected @@ -216676,7 +258352,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxValueEntryScalar(t *test t.Run("GetValue_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar + var obj *DocFormsGet200ResponseFieldsItemRadioValueEntryScalar // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -216688,11 +258364,11 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxValueEntryScalar(t *test } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxValueEntryScalar(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioValueEntryScalar(t *testing.T) { t.Run("SetValue_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxValueEntryScalar{} + obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryScalar{} var fernTestValueValue string // Act @@ -216722,9 +258398,9 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxValueEntrySc } -func TestSettersDocFormsGet200ResponseFieldsItemComboboxWidgetsItem(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemRadioWidgetsItem(t *testing.T) { t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxWidgetsItem{} + obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} var fernTestValueAnnotObjectNumber int obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) @@ -216732,20 +258408,44 @@ func TestSettersDocFormsGet200ResponseFieldsItemComboboxWidgetsItem(t *testing.T }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemComboboxWidgetsItem{} + obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) + t.Run("SetOnState", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} + var fernTestValueOnState string + obj.SetOnState(fernTestValueOnState) + assert.Equal(t, fernTestValueOnState, obj.OnState) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetExportValue", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} + var fernTestValueExportValue string + obj.SetExportValue(fernTestValueExportValue) + assert.Equal(t, fernTestValueExportValue, obj.ExportValue) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetChecked", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} + var fernTestValueChecked bool + obj.SetChecked(fernTestValueChecked) + assert.Equal(t, fernTestValueChecked, obj.Checked) + assert.NotNil(t, obj.explicitFields) + }) + } -func TestGettersDocFormsGet200ResponseFieldsItemComboboxWidgetsItem(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemRadioWidgetsItem(t *testing.T) { t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxWidgetsItem{} + obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} var expected int obj.AnnotObjectNumber = expected @@ -216755,7 +258455,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxWidgetsItem(t *testing.T t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxWidgetsItem + var obj *DocFormsGet200ResponseFieldsItemRadioWidgetsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -216768,7 +258468,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxWidgetsItem(t *testing.T t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxWidgetsItem{} + obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} var expected int obj.PageObjectNumber = expected @@ -216778,7 +258478,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxWidgetsItem(t *testing.T t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemComboboxWidgetsItem + var obj *DocFormsGet200ResponseFieldsItemRadioWidgetsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -216788,13 +258488,82 @@ func TestGettersDocFormsGet200ResponseFieldsItemComboboxWidgetsItem(t *testing.T _ = obj.GetPageObjectNumber() // Should return zero value }) + t.Run("GetOnState", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} + var expected string + obj.OnState = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetOnState(), "getter should return the property value") + }) + + t.Run("GetOnState_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemRadioWidgetsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetOnState() // Should return zero value + }) + + t.Run("GetExportValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} + var expected string + obj.ExportValue = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetExportValue(), "getter should return the property value") + }) + + t.Run("GetExportValue_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemRadioWidgetsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetExportValue() // Should return zero value + }) + + t.Run("GetChecked", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} + var expected bool + obj.Checked = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetChecked(), "getter should return the property value") + }) + + t.Run("GetChecked_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemRadioWidgetsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetChecked() // Should return zero value + }) + } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxWidgetsItem(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioWidgetsItem(t *testing.T) { t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxWidgetsItem{} + obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} var fernTestValueAnnotObjectNumber int // Act @@ -216825,7 +258594,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxWidgetsItem( t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemComboboxWidgetsItem{} + obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} var fernTestValuePageObjectNumber int // Act @@ -216853,19 +258622,112 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemComboboxWidgetsItem( // It verifies that setting a field via setter allows successful JSON round-trip }) + t.Run("SetOnState_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} + var fernTestValueOnState string + + // Act + obj.SetOnState(fernTestValueOnState) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetExportValue_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} + var fernTestValueExportValue string + + // Act + obj.SetExportValue(fernTestValueExportValue) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetChecked_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} + var fernTestValueChecked bool + + // Act + obj.SetChecked(fernTestValueChecked) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + } -func TestSettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemSignature(t *testing.T) { t.Run("SetRef", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var fernTestValueRef *DocFormsGet200ResponseFieldsItemListboxRef + obj := &DocFormsGet200ResponseFieldsItemSignature{} + var fernTestValueRef *DocFormsGet200ResponseFieldsItemSignatureRef obj.SetRef(fernTestValueRef) assert.Equal(t, fernTestValueRef, obj.Ref) assert.NotNil(t, obj.explicitFields) }) t.Run("SetFieldObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListbox{} + obj := &DocFormsGet200ResponseFieldsItemSignature{} var fernTestValueFieldObjectNumber int obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) assert.Equal(t, fernTestValueFieldObjectNumber, obj.FieldObjectNumber) @@ -216873,7 +258735,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { }) t.Run("SetName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListbox{} + obj := &DocFormsGet200ResponseFieldsItemSignature{} var fernTestValueName string obj.SetName(fernTestValueName) assert.Equal(t, fernTestValueName, obj.Name) @@ -216881,23 +258743,23 @@ func TestSettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { }) t.Run("SetOrigin", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var fernTestValueOrigin DocFormsGet200ResponseFieldsItemListboxOrigin + obj := &DocFormsGet200ResponseFieldsItemSignature{} + var fernTestValueOrigin DocFormsGet200ResponseFieldsItemSignatureOrigin obj.SetOrigin(fernTestValueOrigin) assert.Equal(t, fernTestValueOrigin, obj.Origin) assert.NotNil(t, obj.explicitFields) }) t.Run("SetFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var fernTestValueFlags *DocFormsGet200ResponseFieldsItemListboxFlags + obj := &DocFormsGet200ResponseFieldsItemSignature{} + var fernTestValueFlags *DocFormsGet200ResponseFieldsItemSignatureFlags obj.SetFlags(fernTestValueFlags) assert.Equal(t, fernTestValueFlags, obj.Flags) assert.NotNil(t, obj.explicitFields) }) t.Run("SetAlternateName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListbox{} + obj := &DocFormsGet200ResponseFieldsItemSignature{} var fernTestValueAlternateName *string obj.SetAlternateName(fernTestValueAlternateName) assert.Equal(t, fernTestValueAlternateName, obj.AlternateName) @@ -216905,7 +258767,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { }) t.Run("SetMappingName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListbox{} + obj := &DocFormsGet200ResponseFieldsItemSignature{} var fernTestValueMappingName *string obj.SetMappingName(fernTestValueMappingName) assert.Equal(t, fernTestValueMappingName, obj.MappingName) @@ -216913,23 +258775,23 @@ func TestSettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { }) t.Run("SetValueEntry", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemListboxValueEntry + obj := &DocFormsGet200ResponseFieldsItemSignature{} + var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemSignatureValueEntry obj.SetValueEntry(fernTestValueValueEntry) assert.Equal(t, fernTestValueValueEntry, obj.ValueEntry) assert.NotNil(t, obj.explicitFields) }) t.Run("SetDefaultValueEntry", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry + obj := &DocFormsGet200ResponseFieldsItemSignature{} + var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry obj.SetDefaultValueEntry(fernTestValueDefaultValueEntry) assert.Equal(t, fernTestValueDefaultValueEntry, obj.DefaultValueEntry) assert.NotNil(t, obj.explicitFields) }) t.Run("SetActions", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListbox{} + obj := &DocFormsGet200ResponseFieldsItemSignature{} var fernTestValueActions *PdfFieldActions obj.SetActions(fernTestValueActions) assert.Equal(t, fernTestValueActions, obj.Actions) @@ -216937,45 +258799,21 @@ func TestSettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { }) t.Run("SetWidgets", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemListboxWidgetsItem + obj := &DocFormsGet200ResponseFieldsItemSignature{} + var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemSignatureWidgetsItem obj.SetWidgets(fernTestValueWidgets) assert.Equal(t, fernTestValueWidgets, obj.Widgets) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetSelectedValues", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var fernTestValueSelectedValues []string - obj.SetSelectedValues(fernTestValueSelectedValues) - assert.Equal(t, fernTestValueSelectedValues, obj.SelectedValues) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetMultiSelect", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var fernTestValueMultiSelect bool - obj.SetMultiSelect(fernTestValueMultiSelect) - assert.Equal(t, fernTestValueMultiSelect, obj.MultiSelect) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetOptions", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var fernTestValueOptions []*DocFormsGet200ResponseFieldsItemListboxOptionsItem - obj.SetOptions(fernTestValueOptions) - assert.Equal(t, fernTestValueOptions, obj.Options) - assert.NotNil(t, obj.explicitFields) - }) - } -func TestGettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemSignature(t *testing.T) { t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var expected *DocFormsGet200ResponseFieldsItemListboxRef + obj := &DocFormsGet200ResponseFieldsItemSignature{} + var expected *DocFormsGet200ResponseFieldsItemSignatureRef obj.Ref = expected // Act & Assert @@ -216985,7 +258823,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { t.Run("GetRef_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} + obj := &DocFormsGet200ResponseFieldsItemSignature{} obj.Ref = nil // Act & Assert @@ -216994,7 +258832,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { t.Run("GetRef_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListbox + var obj *DocFormsGet200ResponseFieldsItemSignature // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -217007,7 +258845,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { t.Run("GetFieldObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} + obj := &DocFormsGet200ResponseFieldsItemSignature{} var expected int obj.FieldObjectNumber = expected @@ -217017,7 +258855,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { t.Run("GetFieldObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListbox + var obj *DocFormsGet200ResponseFieldsItemSignature // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -217030,7 +258868,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} + obj := &DocFormsGet200ResponseFieldsItemSignature{} var expected string obj.Name = expected @@ -217040,7 +258878,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListbox + var obj *DocFormsGet200ResponseFieldsItemSignature // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -217053,8 +258891,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { t.Run("GetOrigin", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var expected DocFormsGet200ResponseFieldsItemListboxOrigin + obj := &DocFormsGet200ResponseFieldsItemSignature{} + var expected DocFormsGet200ResponseFieldsItemSignatureOrigin obj.Origin = expected // Act & Assert @@ -217063,7 +258901,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { t.Run("GetOrigin_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListbox + var obj *DocFormsGet200ResponseFieldsItemSignature // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -217076,8 +258914,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var expected *DocFormsGet200ResponseFieldsItemListboxFlags + obj := &DocFormsGet200ResponseFieldsItemSignature{} + var expected *DocFormsGet200ResponseFieldsItemSignatureFlags obj.Flags = expected // Act & Assert @@ -217087,7 +258925,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} + obj := &DocFormsGet200ResponseFieldsItemSignature{} obj.Flags = nil // Act & Assert @@ -217096,7 +258934,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { t.Run("GetFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListbox + var obj *DocFormsGet200ResponseFieldsItemSignature // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -217109,7 +258947,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { t.Run("GetAlternateName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} + obj := &DocFormsGet200ResponseFieldsItemSignature{} var expected *string obj.AlternateName = expected @@ -217120,7 +258958,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { t.Run("GetAlternateName_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} + obj := &DocFormsGet200ResponseFieldsItemSignature{} obj.AlternateName = nil // Act & Assert @@ -217129,7 +258967,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { t.Run("GetAlternateName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListbox + var obj *DocFormsGet200ResponseFieldsItemSignature // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -217142,7 +258980,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { t.Run("GetMappingName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} + obj := &DocFormsGet200ResponseFieldsItemSignature{} var expected *string obj.MappingName = expected @@ -217153,7 +258991,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { t.Run("GetMappingName_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} + obj := &DocFormsGet200ResponseFieldsItemSignature{} obj.MappingName = nil // Act & Assert @@ -217162,7 +259000,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { t.Run("GetMappingName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListbox + var obj *DocFormsGet200ResponseFieldsItemSignature // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -217175,8 +259013,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { t.Run("GetValueEntry", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var expected *DocFormsGet200ResponseFieldsItemListboxValueEntry + obj := &DocFormsGet200ResponseFieldsItemSignature{} + var expected *DocFormsGet200ResponseFieldsItemSignatureValueEntry obj.ValueEntry = expected // Act & Assert @@ -217186,7 +259024,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { t.Run("GetValueEntry_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} + obj := &DocFormsGet200ResponseFieldsItemSignature{} obj.ValueEntry = nil // Act & Assert @@ -217195,7 +259033,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { t.Run("GetValueEntry_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListbox + var obj *DocFormsGet200ResponseFieldsItemSignature // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -217208,8 +259046,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { t.Run("GetDefaultValueEntry", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var expected *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry + obj := &DocFormsGet200ResponseFieldsItemSignature{} + var expected *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry obj.DefaultValueEntry = expected // Act & Assert @@ -217219,7 +259057,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { t.Run("GetDefaultValueEntry_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} + obj := &DocFormsGet200ResponseFieldsItemSignature{} obj.DefaultValueEntry = nil // Act & Assert @@ -217228,7 +259066,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { t.Run("GetDefaultValueEntry_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListbox + var obj *DocFormsGet200ResponseFieldsItemSignature // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -217241,7 +259079,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { t.Run("GetActions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} + obj := &DocFormsGet200ResponseFieldsItemSignature{} var expected *PdfFieldActions obj.Actions = expected @@ -217252,7 +259090,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { t.Run("GetActions_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} + obj := &DocFormsGet200ResponseFieldsItemSignature{} obj.Actions = nil // Act & Assert @@ -217261,7 +259099,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { t.Run("GetActions_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListbox + var obj *DocFormsGet200ResponseFieldsItemSignature // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -217274,8 +259112,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { t.Run("GetWidgets", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var expected []*DocFormsGet200ResponseFieldsItemListboxWidgetsItem + obj := &DocFormsGet200ResponseFieldsItemSignature{} + var expected []*DocFormsGet200ResponseFieldsItemSignatureWidgetsItem obj.Widgets = expected // Act & Assert @@ -217285,7 +259123,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { t.Run("GetWidgets_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} + obj := &DocFormsGet200ResponseFieldsItemSignature{} obj.Widgets = nil // Act & Assert @@ -217294,7 +259132,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { t.Run("GetWidgets_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListbox + var obj *DocFormsGet200ResponseFieldsItemSignature // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -217304,103 +259142,14 @@ func TestGettersDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { _ = obj.GetWidgets() // Should return zero value }) - t.Run("GetSelectedValues", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var expected []string - obj.SelectedValues = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetSelectedValues(), "getter should return the property value") - }) - - t.Run("GetSelectedValues_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - obj.SelectedValues = nil - - // Act & Assert - assert.Nil(t, obj.GetSelectedValues(), "getter should return nil when property is nil") - }) - - t.Run("GetSelectedValues_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListbox - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetSelectedValues() // Should return zero value - }) - - t.Run("GetMultiSelect", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var expected bool - obj.MultiSelect = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetMultiSelect(), "getter should return the property value") - }) - - t.Run("GetMultiSelect_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListbox - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetMultiSelect() // Should return zero value - }) - - t.Run("GetOptions", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var expected []*DocFormsGet200ResponseFieldsItemListboxOptionsItem - obj.Options = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetOptions(), "getter should return the property value") - }) - - t.Run("GetOptions_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - obj.Options = nil - - // Act & Assert - assert.Nil(t, obj.GetOptions(), "getter should return nil when property is nil") - }) - - t.Run("GetOptions_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListbox - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetOptions() // Should return zero value - }) - } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListbox(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignature(t *testing.T) { t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var fernTestValueRef *DocFormsGet200ResponseFieldsItemListboxRef + obj := &DocFormsGet200ResponseFieldsItemSignature{} + var fernTestValueRef *DocFormsGet200ResponseFieldsItemSignatureRef // Act obj.SetRef(fernTestValueRef) @@ -217430,7 +259179,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListbox(t *testing.T t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} + obj := &DocFormsGet200ResponseFieldsItemSignature{} var fernTestValueFieldObjectNumber int // Act @@ -217461,7 +259210,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListbox(t *testing.T t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} + obj := &DocFormsGet200ResponseFieldsItemSignature{} var fernTestValueName string // Act @@ -217492,8 +259241,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListbox(t *testing.T t.Run("SetOrigin_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var fernTestValueOrigin DocFormsGet200ResponseFieldsItemListboxOrigin + obj := &DocFormsGet200ResponseFieldsItemSignature{} + var fernTestValueOrigin DocFormsGet200ResponseFieldsItemSignatureOrigin // Act obj.SetOrigin(fernTestValueOrigin) @@ -217523,8 +259272,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListbox(t *testing.T t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var fernTestValueFlags *DocFormsGet200ResponseFieldsItemListboxFlags + obj := &DocFormsGet200ResponseFieldsItemSignature{} + var fernTestValueFlags *DocFormsGet200ResponseFieldsItemSignatureFlags // Act obj.SetFlags(fernTestValueFlags) @@ -217554,7 +259303,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListbox(t *testing.T t.Run("SetAlternateName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} + obj := &DocFormsGet200ResponseFieldsItemSignature{} var fernTestValueAlternateName *string // Act @@ -217585,7 +259334,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListbox(t *testing.T t.Run("SetMappingName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} + obj := &DocFormsGet200ResponseFieldsItemSignature{} var fernTestValueMappingName *string // Act @@ -217616,8 +259365,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListbox(t *testing.T t.Run("SetValueEntry_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemListboxValueEntry + obj := &DocFormsGet200ResponseFieldsItemSignature{} + var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemSignatureValueEntry // Act obj.SetValueEntry(fernTestValueValueEntry) @@ -217647,8 +259396,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListbox(t *testing.T t.Run("SetDefaultValueEntry_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry + obj := &DocFormsGet200ResponseFieldsItemSignature{} + var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry // Act obj.SetDefaultValueEntry(fernTestValueDefaultValueEntry) @@ -217678,7 +259427,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListbox(t *testing.T t.Run("SetActions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} + obj := &DocFormsGet200ResponseFieldsItemSignature{} var fernTestValueActions *PdfFieldActions // Act @@ -217709,8 +259458,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListbox(t *testing.T t.Run("SetWidgets_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemListboxWidgetsItem + obj := &DocFormsGet200ResponseFieldsItemSignature{} + var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemSignatureWidgetsItem // Act obj.SetWidgets(fernTestValueWidgets) @@ -217737,106 +259486,13 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListbox(t *testing.T // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetSelectedValues_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var fernTestValueSelectedValues []string - - // Act - obj.SetSelectedValues(fernTestValueSelectedValues) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetMultiSelect_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var fernTestValueMultiSelect bool - - // Act - obj.SetMultiSelect(fernTestValueMultiSelect) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetOptions_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListbox{} - var fernTestValueOptions []*DocFormsGet200ResponseFieldsItemListboxOptionsItem - - // Act - obj.SetOptions(fernTestValueOptions) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - } -func TestGettersDocFormsGet200ResponseFieldsItemListboxDefaultValueEntry(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry{} var expected string obj.Kind = expected @@ -217846,7 +259502,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxDefaultValueEntry(t *test t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry + var obj *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -217859,8 +259515,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxDefaultValueEntry(t *test t.Run("GetNone", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryNone + obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone obj.None = expected // Act & Assert @@ -217870,7 +259526,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxDefaultValueEntry(t *test t.Run("GetNone_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry{} obj.None = nil // Act & Assert @@ -217879,7 +259535,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxDefaultValueEntry(t *test t.Run("GetNone_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry + var obj *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -217892,8 +259548,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxDefaultValueEntry(t *test t.Run("GetScalar", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar + obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar obj.Scalar = expected // Act & Assert @@ -217903,7 +259559,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxDefaultValueEntry(t *test t.Run("GetScalar_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry{} obj.Scalar = nil // Act & Assert @@ -217912,7 +259568,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxDefaultValueEntry(t *test t.Run("GetScalar_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry + var obj *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -217925,8 +259581,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxDefaultValueEntry(t *test t.Run("GetArray", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray + obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray obj.Array = expected // Act & Assert @@ -217936,7 +259592,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxDefaultValueEntry(t *test t.Run("GetArray_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry{} obj.Array = nil // Act & Assert @@ -217945,7 +259601,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxDefaultValueEntry(t *test t.Run("GetArray_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry + var obj *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -217958,8 +259614,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxDefaultValueEntry(t *test t.Run("GetUnsupported", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryUnsupported + obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported obj.Unsupported = expected // Act & Assert @@ -217969,7 +259625,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxDefaultValueEntry(t *test t.Run("GetUnsupported_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry{} obj.Unsupported = nil // Act & Assert @@ -217978,7 +259634,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxDefaultValueEntry(t *test t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntry + var obj *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -217990,9 +259646,9 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxDefaultValueEntry(t *test } -func TestSettersDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray(t *testing.T) { t.Run("SetValues", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray{} var fernTestValueValues []string obj.SetValues(fernTestValueValues) assert.Equal(t, fernTestValueValues, obj.Values) @@ -218001,11 +259657,11 @@ func TestSettersDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray(t } -func TestGettersDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray(t *testing.T) { t.Run("GetValues", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray{} var expected []string obj.Values = expected @@ -218016,7 +259672,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray(t t.Run("GetValues_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray{} obj.Values = nil // Act & Assert @@ -218025,7 +259681,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray(t t.Run("GetValues_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray + var obj *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -218037,11 +259693,11 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray(t } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray(t *testing.T) { t.Run("SetValues_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray{} var fernTestValueValues []string // Act @@ -218071,9 +259727,9 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxDefaultValueE } -func TestSettersDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar(t *testing.T) { t.Run("SetValue", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar{} + obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar{} var fernTestValueValue string obj.SetValue(fernTestValueValue) assert.Equal(t, fernTestValueValue, obj.Value) @@ -218082,11 +259738,11 @@ func TestSettersDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar(t } -func TestGettersDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar(t *testing.T) { t.Run("GetValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar{} + obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar{} var expected string obj.Value = expected @@ -218096,7 +259752,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar(t t.Run("GetValue_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar + var obj *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -218108,11 +259764,11 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar(t } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar(t *testing.T) { t.Run("SetValue_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxDefaultValueEntryScalar{} + obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar{} var fernTestValueValue string // Act @@ -218142,9 +259798,9 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxDefaultValueE } -func TestSettersDocFormsGet200ResponseFieldsItemListboxFlags(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemSignatureFlags(t *testing.T) { t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} var fernTestValueReadOnly bool obj.SetReadOnly(fernTestValueReadOnly) assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) @@ -218152,7 +259808,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemListboxFlags(t *testing.T) { }) t.Run("SetRequired", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} var fernTestValueRequired bool obj.SetRequired(fernTestValueRequired) assert.Equal(t, fernTestValueRequired, obj.Required) @@ -218160,7 +259816,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemListboxFlags(t *testing.T) { }) t.Run("SetNoExport", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} var fernTestValueNoExport bool obj.SetNoExport(fernTestValueNoExport) assert.Equal(t, fernTestValueNoExport, obj.NoExport) @@ -218168,7 +259824,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemListboxFlags(t *testing.T) { }) t.Run("SetRaw", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} var fernTestValueRaw int obj.SetRaw(fernTestValueRaw) assert.Equal(t, fernTestValueRaw, obj.Raw) @@ -218177,11 +259833,11 @@ func TestSettersDocFormsGet200ResponseFieldsItemListboxFlags(t *testing.T) { } -func TestGettersDocFormsGet200ResponseFieldsItemListboxFlags(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemSignatureFlags(t *testing.T) { t.Run("GetReadOnly", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} var expected bool obj.ReadOnly = expected @@ -218191,7 +259847,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxFlags(t *testing.T) { t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxFlags + var obj *DocFormsGet200ResponseFieldsItemSignatureFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -218204,7 +259860,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxFlags(t *testing.T) { t.Run("GetRequired", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} var expected bool obj.Required = expected @@ -218214,7 +259870,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxFlags(t *testing.T) { t.Run("GetRequired_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxFlags + var obj *DocFormsGet200ResponseFieldsItemSignatureFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -218227,7 +259883,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxFlags(t *testing.T) { t.Run("GetNoExport", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} var expected bool obj.NoExport = expected @@ -218237,7 +259893,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxFlags(t *testing.T) { t.Run("GetNoExport_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxFlags + var obj *DocFormsGet200ResponseFieldsItemSignatureFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -218250,7 +259906,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxFlags(t *testing.T) { t.Run("GetRaw", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} var expected int obj.Raw = expected @@ -218260,7 +259916,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxFlags(t *testing.T) { t.Run("GetRaw_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxFlags + var obj *DocFormsGet200ResponseFieldsItemSignatureFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -218272,11 +259928,11 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxFlags(t *testing.T) { } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxFlags(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureFlags(t *testing.T) { t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} var fernTestValueReadOnly bool // Act @@ -218307,7 +259963,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxFlags(t *test t.Run("SetRequired_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} var fernTestValueRequired bool // Act @@ -218338,7 +259994,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxFlags(t *test t.Run("SetNoExport_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} var fernTestValueNoExport bool // Act @@ -218369,7 +260025,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxFlags(t *test t.Run("SetRaw_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxFlags{} + obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} var fernTestValueRaw int // Act @@ -218399,206 +260055,11 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxFlags(t *test } -func TestSettersDocFormsGet200ResponseFieldsItemListboxOptionsItem(t *testing.T) { - t.Run("SetLabel", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxOptionsItem{} - var fernTestValueLabel string - obj.SetLabel(fernTestValueLabel) - assert.Equal(t, fernTestValueLabel, obj.Label) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetValue", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxOptionsItem{} - var fernTestValueValue string - obj.SetValue(fernTestValueValue) - assert.Equal(t, fernTestValueValue, obj.Value) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetSelected", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxOptionsItem{} - var fernTestValueSelected bool - obj.SetSelected(fernTestValueSelected) - assert.Equal(t, fernTestValueSelected, obj.Selected) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemListboxOptionsItem(t *testing.T) { - t.Run("GetLabel", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxOptionsItem{} - var expected string - obj.Label = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetLabel(), "getter should return the property value") - }) - - t.Run("GetLabel_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxOptionsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetLabel() // Should return zero value - }) - - t.Run("GetValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxOptionsItem{} - var expected string - obj.Value = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") - }) - - t.Run("GetValue_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxOptionsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetValue() // Should return zero value - }) - - t.Run("GetSelected", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxOptionsItem{} - var expected bool - obj.Selected = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetSelected(), "getter should return the property value") - }) - - t.Run("GetSelected_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxOptionsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetSelected() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxOptionsItem(t *testing.T) { - t.Run("SetLabel_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxOptionsItem{} - var fernTestValueLabel string - - // Act - obj.SetLabel(fernTestValueLabel) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetValue_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxOptionsItem{} - var fernTestValueValue string - - // Act - obj.SetValue(fernTestValueValue) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetSelected_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxOptionsItem{} - var fernTestValueSelected bool - - // Act - obj.SetSelected(fernTestValueSelected) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemListboxRef(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemSignatureRef(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxRef{} + obj := &DocFormsGet200ResponseFieldsItemSignatureRef{} var expected string obj.Kind = expected @@ -218608,7 +260069,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxRef(t *testing.T) { t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxRef + var obj *DocFormsGet200ResponseFieldsItemSignatureRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -218621,8 +260082,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxRef(t *testing.T) { t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxRef{} - var expected *DocFormsGet200ResponseFieldsItemListboxRefObjectNumber + obj := &DocFormsGet200ResponseFieldsItemSignatureRef{} + var expected *DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -218632,7 +260093,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxRef(t *testing.T) { t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxRef{} + obj := &DocFormsGet200ResponseFieldsItemSignatureRef{} obj.ObjectNumber = nil // Act & Assert @@ -218641,7 +260102,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxRef(t *testing.T) { t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxRef + var obj *DocFormsGet200ResponseFieldsItemSignatureRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -218654,8 +260115,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxRef(t *testing.T) { t.Run("GetFqn", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxRef{} - var expected *DocFormsGet200ResponseFieldsItemListboxRefFqn + obj := &DocFormsGet200ResponseFieldsItemSignatureRef{} + var expected *DocFormsGet200ResponseFieldsItemSignatureRefFqn obj.Fqn = expected // Act & Assert @@ -218665,7 +260126,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxRef(t *testing.T) { t.Run("GetFqn_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxRef{} + obj := &DocFormsGet200ResponseFieldsItemSignatureRef{} obj.Fqn = nil // Act & Assert @@ -218674,7 +260135,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxRef(t *testing.T) { t.Run("GetFqn_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxRef + var obj *DocFormsGet200ResponseFieldsItemSignatureRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -218686,9 +260147,9 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxRef(t *testing.T) { } -func TestSettersDocFormsGet200ResponseFieldsItemListboxRefFqn(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemSignatureRefFqn(t *testing.T) { t.Run("SetName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxRefFqn{} + obj := &DocFormsGet200ResponseFieldsItemSignatureRefFqn{} var fernTestValueName string obj.SetName(fernTestValueName) assert.Equal(t, fernTestValueName, obj.Name) @@ -218697,11 +260158,11 @@ func TestSettersDocFormsGet200ResponseFieldsItemListboxRefFqn(t *testing.T) { } -func TestGettersDocFormsGet200ResponseFieldsItemListboxRefFqn(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemSignatureRefFqn(t *testing.T) { t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxRefFqn{} + obj := &DocFormsGet200ResponseFieldsItemSignatureRefFqn{} var expected string obj.Name = expected @@ -218711,7 +260172,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxRefFqn(t *testing.T) { t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxRefFqn + var obj *DocFormsGet200ResponseFieldsItemSignatureRefFqn // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -218723,11 +260184,11 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxRefFqn(t *testing.T) { } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxRefFqn(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureRefFqn(t *testing.T) { t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxRefFqn{} + obj := &DocFormsGet200ResponseFieldsItemSignatureRefFqn{} var fernTestValueName string // Act @@ -218757,9 +260218,9 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxRefFqn(t *tes } -func TestSettersDocFormsGet200ResponseFieldsItemListboxRefObjectNumber(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemSignatureRefObjectNumber(t *testing.T) { t.Run("SetFieldObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxRefObjectNumber{} + obj := &DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber{} var fernTestValueFieldObjectNumber int obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) assert.Equal(t, fernTestValueFieldObjectNumber, obj.FieldObjectNumber) @@ -218768,11 +260229,11 @@ func TestSettersDocFormsGet200ResponseFieldsItemListboxRefObjectNumber(t *testin } -func TestGettersDocFormsGet200ResponseFieldsItemListboxRefObjectNumber(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemSignatureRefObjectNumber(t *testing.T) { t.Run("GetFieldObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxRefObjectNumber{} + obj := &DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber{} var expected int obj.FieldObjectNumber = expected @@ -218782,7 +260243,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxRefObjectNumber(t *testin t.Run("GetFieldObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxRefObjectNumber + var obj *DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -218794,11 +260255,11 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxRefObjectNumber(t *testin } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxRefObjectNumber(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureRefObjectNumber(t *testing.T) { t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxRefObjectNumber{} + obj := &DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber{} var fernTestValueFieldObjectNumber int // Act @@ -218828,11 +260289,11 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxRefObjectNumb } -func TestGettersDocFormsGet200ResponseFieldsItemListboxValueEntry(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemSignatureValueEntry(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntry{} var expected string obj.Kind = expected @@ -218842,7 +260303,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxValueEntry(t *testing.T) t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxValueEntry + var obj *DocFormsGet200ResponseFieldsItemSignatureValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -218855,8 +260316,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxValueEntry(t *testing.T) t.Run("GetNone", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemListboxValueEntryNone + obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemSignatureValueEntryNone obj.None = expected // Act & Assert @@ -218866,7 +260327,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxValueEntry(t *testing.T) t.Run("GetNone_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntry{} obj.None = nil // Act & Assert @@ -218875,7 +260336,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxValueEntry(t *testing.T) t.Run("GetNone_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxValueEntry + var obj *DocFormsGet200ResponseFieldsItemSignatureValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -218888,8 +260349,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxValueEntry(t *testing.T) t.Run("GetScalar", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemListboxValueEntryScalar + obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar obj.Scalar = expected // Act & Assert @@ -218899,7 +260360,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxValueEntry(t *testing.T) t.Run("GetScalar_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntry{} obj.Scalar = nil // Act & Assert @@ -218908,7 +260369,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxValueEntry(t *testing.T) t.Run("GetScalar_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxValueEntry + var obj *DocFormsGet200ResponseFieldsItemSignatureValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -218921,8 +260382,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxValueEntry(t *testing.T) t.Run("GetArray", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemListboxValueEntryArray + obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemSignatureValueEntryArray obj.Array = expected // Act & Assert @@ -218932,7 +260393,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxValueEntry(t *testing.T) t.Run("GetArray_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntry{} obj.Array = nil // Act & Assert @@ -218941,7 +260402,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxValueEntry(t *testing.T) t.Run("GetArray_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxValueEntry + var obj *DocFormsGet200ResponseFieldsItemSignatureValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -218954,8 +260415,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxValueEntry(t *testing.T) t.Run("GetUnsupported", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemListboxValueEntryUnsupported + obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported obj.Unsupported = expected // Act & Assert @@ -218965,7 +260426,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxValueEntry(t *testing.T) t.Run("GetUnsupported_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntry{} obj.Unsupported = nil // Act & Assert @@ -218974,7 +260435,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxValueEntry(t *testing.T) t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxValueEntry + var obj *DocFormsGet200ResponseFieldsItemSignatureValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -218986,9 +260447,9 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxValueEntry(t *testing.T) } -func TestSettersDocFormsGet200ResponseFieldsItemListboxValueEntryArray(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemSignatureValueEntryArray(t *testing.T) { t.Run("SetValues", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryArray{} var fernTestValueValues []string obj.SetValues(fernTestValueValues) assert.Equal(t, fernTestValueValues, obj.Values) @@ -218997,11 +260458,11 @@ func TestSettersDocFormsGet200ResponseFieldsItemListboxValueEntryArray(t *testin } -func TestGettersDocFormsGet200ResponseFieldsItemListboxValueEntryArray(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemSignatureValueEntryArray(t *testing.T) { t.Run("GetValues", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryArray{} var expected []string obj.Values = expected @@ -219012,7 +260473,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxValueEntryArray(t *testin t.Run("GetValues_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryArray{} obj.Values = nil // Act & Assert @@ -219021,7 +260482,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxValueEntryArray(t *testin t.Run("GetValues_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxValueEntryArray + var obj *DocFormsGet200ResponseFieldsItemSignatureValueEntryArray // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -219033,11 +260494,11 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxValueEntryArray(t *testin } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxValueEntryArray(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureValueEntryArray(t *testing.T) { t.Run("SetValues_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryArray{} var fernTestValueValues []string // Act @@ -219067,9 +260528,9 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxValueEntryArr } -func TestSettersDocFormsGet200ResponseFieldsItemListboxValueEntryScalar(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemSignatureValueEntryScalar(t *testing.T) { t.Run("SetValue", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxValueEntryScalar{} + obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar{} var fernTestValueValue string obj.SetValue(fernTestValueValue) assert.Equal(t, fernTestValueValue, obj.Value) @@ -219078,11 +260539,11 @@ func TestSettersDocFormsGet200ResponseFieldsItemListboxValueEntryScalar(t *testi } -func TestGettersDocFormsGet200ResponseFieldsItemListboxValueEntryScalar(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemSignatureValueEntryScalar(t *testing.T) { t.Run("GetValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxValueEntryScalar{} + obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar{} var expected string obj.Value = expected @@ -219092,7 +260553,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxValueEntryScalar(t *testi t.Run("GetValue_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxValueEntryScalar + var obj *DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -219104,11 +260565,11 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxValueEntryScalar(t *testi } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxValueEntryScalar(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureValueEntryScalar(t *testing.T) { t.Run("SetValue_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxValueEntryScalar{} + obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar{} var fernTestValueValue string // Act @@ -219138,9 +260599,9 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxValueEntrySca } -func TestSettersDocFormsGet200ResponseFieldsItemListboxWidgetsItem(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemSignatureWidgetsItem(t *testing.T) { t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxWidgetsItem{} + obj := &DocFormsGet200ResponseFieldsItemSignatureWidgetsItem{} var fernTestValueAnnotObjectNumber int obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) @@ -219148,7 +260609,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemListboxWidgetsItem(t *testing.T) }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemListboxWidgetsItem{} + obj := &DocFormsGet200ResponseFieldsItemSignatureWidgetsItem{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -219157,11 +260618,11 @@ func TestSettersDocFormsGet200ResponseFieldsItemListboxWidgetsItem(t *testing.T) } -func TestGettersDocFormsGet200ResponseFieldsItemListboxWidgetsItem(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemSignatureWidgetsItem(t *testing.T) { t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxWidgetsItem{} + obj := &DocFormsGet200ResponseFieldsItemSignatureWidgetsItem{} var expected int obj.AnnotObjectNumber = expected @@ -219171,7 +260632,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxWidgetsItem(t *testing.T) t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxWidgetsItem + var obj *DocFormsGet200ResponseFieldsItemSignatureWidgetsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -219184,7 +260645,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxWidgetsItem(t *testing.T) t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxWidgetsItem{} + obj := &DocFormsGet200ResponseFieldsItemSignatureWidgetsItem{} var expected int obj.PageObjectNumber = expected @@ -219194,7 +260655,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxWidgetsItem(t *testing.T) t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemListboxWidgetsItem + var obj *DocFormsGet200ResponseFieldsItemSignatureWidgetsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -219206,11 +260667,11 @@ func TestGettersDocFormsGet200ResponseFieldsItemListboxWidgetsItem(t *testing.T) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxWidgetsItem(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureWidgetsItem(t *testing.T) { t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxWidgetsItem{} + obj := &DocFormsGet200ResponseFieldsItemSignatureWidgetsItem{} var fernTestValueAnnotObjectNumber int // Act @@ -219241,7 +260702,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxWidgetsItem(t t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemListboxWidgetsItem{} + obj := &DocFormsGet200ResponseFieldsItemSignatureWidgetsItem{} var fernTestValuePageObjectNumber int // Act @@ -219271,17 +260732,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemListboxWidgetsItem(t } -func TestSettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemText(t *testing.T) { t.Run("SetRef", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var fernTestValueRef *DocFormsGet200ResponseFieldsItemPushbuttonRef + obj := &DocFormsGet200ResponseFieldsItemText{} + var fernTestValueRef *DocFormsGet200ResponseFieldsItemTextRef obj.SetRef(fernTestValueRef) assert.Equal(t, fernTestValueRef, obj.Ref) assert.NotNil(t, obj.explicitFields) }) t.Run("SetFieldObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + obj := &DocFormsGet200ResponseFieldsItemText{} var fernTestValueFieldObjectNumber int obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) assert.Equal(t, fernTestValueFieldObjectNumber, obj.FieldObjectNumber) @@ -219289,7 +260750,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { }) t.Run("SetName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + obj := &DocFormsGet200ResponseFieldsItemText{} var fernTestValueName string obj.SetName(fernTestValueName) assert.Equal(t, fernTestValueName, obj.Name) @@ -219297,23 +260758,23 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { }) t.Run("SetOrigin", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var fernTestValueOrigin DocFormsGet200ResponseFieldsItemPushbuttonOrigin + obj := &DocFormsGet200ResponseFieldsItemText{} + var fernTestValueOrigin DocFormsGet200ResponseFieldsItemTextOrigin obj.SetOrigin(fernTestValueOrigin) assert.Equal(t, fernTestValueOrigin, obj.Origin) assert.NotNil(t, obj.explicitFields) }) t.Run("SetFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var fernTestValueFlags *DocFormsGet200ResponseFieldsItemPushbuttonFlags + obj := &DocFormsGet200ResponseFieldsItemText{} + var fernTestValueFlags *DocFormsGet200ResponseFieldsItemTextFlags obj.SetFlags(fernTestValueFlags) assert.Equal(t, fernTestValueFlags, obj.Flags) assert.NotNil(t, obj.explicitFields) }) t.Run("SetAlternateName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + obj := &DocFormsGet200ResponseFieldsItemText{} var fernTestValueAlternateName *string obj.SetAlternateName(fernTestValueAlternateName) assert.Equal(t, fernTestValueAlternateName, obj.AlternateName) @@ -219321,7 +260782,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { }) t.Run("SetMappingName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + obj := &DocFormsGet200ResponseFieldsItemText{} var fernTestValueMappingName *string obj.SetMappingName(fernTestValueMappingName) assert.Equal(t, fernTestValueMappingName, obj.MappingName) @@ -219329,23 +260790,23 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { }) t.Run("SetValueEntry", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry + obj := &DocFormsGet200ResponseFieldsItemText{} + var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemTextValueEntry obj.SetValueEntry(fernTestValueValueEntry) assert.Equal(t, fernTestValueValueEntry, obj.ValueEntry) assert.NotNil(t, obj.explicitFields) }) t.Run("SetDefaultValueEntry", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry + obj := &DocFormsGet200ResponseFieldsItemText{} + var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry obj.SetDefaultValueEntry(fernTestValueDefaultValueEntry) assert.Equal(t, fernTestValueDefaultValueEntry, obj.DefaultValueEntry) assert.NotNil(t, obj.explicitFields) }) t.Run("SetActions", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + obj := &DocFormsGet200ResponseFieldsItemText{} var fernTestValueActions *PdfFieldActions obj.SetActions(fernTestValueActions) assert.Equal(t, fernTestValueActions, obj.Actions) @@ -219353,21 +260814,69 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { }) t.Run("SetWidgets", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem + obj := &DocFormsGet200ResponseFieldsItemText{} + var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemTextWidgetsItem obj.SetWidgets(fernTestValueWidgets) assert.Equal(t, fernTestValueWidgets, obj.Widgets) assert.NotNil(t, obj.explicitFields) }) + t.Run("SetValue", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemText{} + var fernTestValueValue string + obj.SetValue(fernTestValueValue) + assert.Equal(t, fernTestValueValue, obj.Value) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDefaultValue", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemText{} + var fernTestValueDefaultValue string + obj.SetDefaultValue(fernTestValueDefaultValue) + assert.Equal(t, fernTestValueDefaultValue, obj.DefaultValue) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMaxLength", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemText{} + var fernTestValueMaxLength *int + obj.SetMaxLength(fernTestValueMaxLength) + assert.Equal(t, fernTestValueMaxLength, obj.MaxLength) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMultiline", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemText{} + var fernTestValueMultiline bool + obj.SetMultiline(fernTestValueMultiline) + assert.Equal(t, fernTestValueMultiline, obj.Multiline) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPassword", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemText{} + var fernTestValuePassword bool + obj.SetPassword(fernTestValuePassword) + assert.Equal(t, fernTestValuePassword, obj.Password) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetComb", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemText{} + var fernTestValueComb bool + obj.SetComb(fernTestValueComb) + assert.Equal(t, fernTestValueComb, obj.Comb) + assert.NotNil(t, obj.explicitFields) + }) + } -func TestGettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemText(t *testing.T) { t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonRef + obj := &DocFormsGet200ResponseFieldsItemText{} + var expected *DocFormsGet200ResponseFieldsItemTextRef obj.Ref = expected // Act & Assert @@ -219377,7 +260886,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { t.Run("GetRef_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + obj := &DocFormsGet200ResponseFieldsItemText{} obj.Ref = nil // Act & Assert @@ -219386,7 +260895,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { t.Run("GetRef_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbutton + var obj *DocFormsGet200ResponseFieldsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -219399,7 +260908,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { t.Run("GetFieldObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + obj := &DocFormsGet200ResponseFieldsItemText{} var expected int obj.FieldObjectNumber = expected @@ -219409,7 +260918,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { t.Run("GetFieldObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbutton + var obj *DocFormsGet200ResponseFieldsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -219422,7 +260931,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + obj := &DocFormsGet200ResponseFieldsItemText{} var expected string obj.Name = expected @@ -219432,7 +260941,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbutton + var obj *DocFormsGet200ResponseFieldsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -219445,8 +260954,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { t.Run("GetOrigin", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var expected DocFormsGet200ResponseFieldsItemPushbuttonOrigin + obj := &DocFormsGet200ResponseFieldsItemText{} + var expected DocFormsGet200ResponseFieldsItemTextOrigin obj.Origin = expected // Act & Assert @@ -219455,7 +260964,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { t.Run("GetOrigin_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbutton + var obj *DocFormsGet200ResponseFieldsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -219468,8 +260977,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonFlags + obj := &DocFormsGet200ResponseFieldsItemText{} + var expected *DocFormsGet200ResponseFieldsItemTextFlags obj.Flags = expected // Act & Assert @@ -219479,7 +260988,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + obj := &DocFormsGet200ResponseFieldsItemText{} obj.Flags = nil // Act & Assert @@ -219488,7 +260997,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { t.Run("GetFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbutton + var obj *DocFormsGet200ResponseFieldsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -219501,7 +261010,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { t.Run("GetAlternateName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + obj := &DocFormsGet200ResponseFieldsItemText{} var expected *string obj.AlternateName = expected @@ -219512,7 +261021,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { t.Run("GetAlternateName_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + obj := &DocFormsGet200ResponseFieldsItemText{} obj.AlternateName = nil // Act & Assert @@ -219521,7 +261030,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { t.Run("GetAlternateName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbutton + var obj *DocFormsGet200ResponseFieldsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -219534,7 +261043,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { t.Run("GetMappingName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + obj := &DocFormsGet200ResponseFieldsItemText{} var expected *string obj.MappingName = expected @@ -219545,7 +261054,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { t.Run("GetMappingName_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + obj := &DocFormsGet200ResponseFieldsItemText{} obj.MappingName = nil // Act & Assert @@ -219554,7 +261063,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { t.Run("GetMappingName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbutton + var obj *DocFormsGet200ResponseFieldsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -219567,8 +261076,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { t.Run("GetValueEntry", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry + obj := &DocFormsGet200ResponseFieldsItemText{} + var expected *DocFormsGet200ResponseFieldsItemTextValueEntry obj.ValueEntry = expected // Act & Assert @@ -219578,7 +261087,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { t.Run("GetValueEntry_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + obj := &DocFormsGet200ResponseFieldsItemText{} obj.ValueEntry = nil // Act & Assert @@ -219587,7 +261096,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { t.Run("GetValueEntry_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbutton + var obj *DocFormsGet200ResponseFieldsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -219600,8 +261109,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { t.Run("GetDefaultValueEntry", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry + obj := &DocFormsGet200ResponseFieldsItemText{} + var expected *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry obj.DefaultValueEntry = expected // Act & Assert @@ -219611,7 +261120,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { t.Run("GetDefaultValueEntry_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + obj := &DocFormsGet200ResponseFieldsItemText{} obj.DefaultValueEntry = nil // Act & Assert @@ -219620,7 +261129,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { t.Run("GetDefaultValueEntry_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbutton + var obj *DocFormsGet200ResponseFieldsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -219633,7 +261142,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { t.Run("GetActions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + obj := &DocFormsGet200ResponseFieldsItemText{} var expected *PdfFieldActions obj.Actions = expected @@ -219644,7 +261153,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { t.Run("GetActions_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + obj := &DocFormsGet200ResponseFieldsItemText{} obj.Actions = nil // Act & Assert @@ -219653,7 +261162,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { t.Run("GetActions_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbutton + var obj *DocFormsGet200ResponseFieldsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -219666,8 +261175,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { t.Run("GetWidgets", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var expected []*DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem + obj := &DocFormsGet200ResponseFieldsItemText{} + var expected []*DocFormsGet200ResponseFieldsItemTextWidgetsItem obj.Widgets = expected // Act & Assert @@ -219677,7 +261186,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { t.Run("GetWidgets_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + obj := &DocFormsGet200ResponseFieldsItemText{} obj.Widgets = nil // Act & Assert @@ -219686,7 +261195,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { t.Run("GetWidgets_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbutton + var obj *DocFormsGet200ResponseFieldsItemText // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -219696,14 +261205,162 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { _ = obj.GetWidgets() // Should return zero value }) + t.Run("GetValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + var expected string + obj.Value = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") + }) + + t.Run("GetValue_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemText + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetValue() // Should return zero value + }) + + t.Run("GetDefaultValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + var expected string + obj.DefaultValue = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDefaultValue(), "getter should return the property value") + }) + + t.Run("GetDefaultValue_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemText + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDefaultValue() // Should return zero value + }) + + t.Run("GetMaxLength", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + var expected *int + obj.MaxLength = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMaxLength(), "getter should return the property value") + }) + + t.Run("GetMaxLength_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + obj.MaxLength = nil + + // Act & Assert + assert.Nil(t, obj.GetMaxLength(), "getter should return nil when property is nil") + }) + + t.Run("GetMaxLength_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemText + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMaxLength() // Should return zero value + }) + + t.Run("GetMultiline", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + var expected bool + obj.Multiline = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMultiline(), "getter should return the property value") + }) + + t.Run("GetMultiline_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemText + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMultiline() // Should return zero value + }) + + t.Run("GetPassword", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + var expected bool + obj.Password = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPassword(), "getter should return the property value") + }) + + t.Run("GetPassword_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemText + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPassword() // Should return zero value + }) + + t.Run("GetComb", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + var expected bool + obj.Comb = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetComb(), "getter should return the property value") + }) + + t.Run("GetComb_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemText + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetComb() // Should return zero value + }) + } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbutton(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemText(t *testing.T) { t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var fernTestValueRef *DocFormsGet200ResponseFieldsItemPushbuttonRef + obj := &DocFormsGet200ResponseFieldsItemText{} + var fernTestValueRef *DocFormsGet200ResponseFieldsItemTextRef // Act obj.SetRef(fernTestValueRef) @@ -219733,7 +261390,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbutton(t *testin t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + obj := &DocFormsGet200ResponseFieldsItemText{} var fernTestValueFieldObjectNumber int // Act @@ -219764,7 +261421,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbutton(t *testin t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + obj := &DocFormsGet200ResponseFieldsItemText{} var fernTestValueName string // Act @@ -219795,8 +261452,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbutton(t *testin t.Run("SetOrigin_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var fernTestValueOrigin DocFormsGet200ResponseFieldsItemPushbuttonOrigin + obj := &DocFormsGet200ResponseFieldsItemText{} + var fernTestValueOrigin DocFormsGet200ResponseFieldsItemTextOrigin // Act obj.SetOrigin(fernTestValueOrigin) @@ -219826,8 +261483,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbutton(t *testin t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var fernTestValueFlags *DocFormsGet200ResponseFieldsItemPushbuttonFlags + obj := &DocFormsGet200ResponseFieldsItemText{} + var fernTestValueFlags *DocFormsGet200ResponseFieldsItemTextFlags // Act obj.SetFlags(fernTestValueFlags) @@ -219857,7 +261514,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbutton(t *testin t.Run("SetAlternateName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + obj := &DocFormsGet200ResponseFieldsItemText{} var fernTestValueAlternateName *string // Act @@ -219888,7 +261545,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbutton(t *testin t.Run("SetMappingName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + obj := &DocFormsGet200ResponseFieldsItemText{} var fernTestValueMappingName *string // Act @@ -219919,8 +261576,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbutton(t *testin t.Run("SetValueEntry_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry + obj := &DocFormsGet200ResponseFieldsItemText{} + var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemTextValueEntry // Act obj.SetValueEntry(fernTestValueValueEntry) @@ -219950,8 +261607,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbutton(t *testin t.Run("SetDefaultValueEntry_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry + obj := &DocFormsGet200ResponseFieldsItemText{} + var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry // Act obj.SetDefaultValueEntry(fernTestValueDefaultValueEntry) @@ -219981,7 +261638,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbutton(t *testin t.Run("SetActions_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} + obj := &DocFormsGet200ResponseFieldsItemText{} var fernTestValueActions *PdfFieldActions // Act @@ -220012,8 +261669,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbutton(t *testin t.Run("SetWidgets_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbutton{} - var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem + obj := &DocFormsGet200ResponseFieldsItemText{} + var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemTextWidgetsItem // Act obj.SetWidgets(fernTestValueWidgets) @@ -220040,13 +261697,199 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbutton(t *testin // It verifies that setting a field via setter allows successful JSON round-trip }) + t.Run("SetValue_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + var fernTestValueValue string + + // Act + obj.SetValue(fernTestValueValue) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDefaultValue_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + var fernTestValueDefaultValue string + + // Act + obj.SetDefaultValue(fernTestValueDefaultValue) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMaxLength_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + var fernTestValueMaxLength *int + + // Act + obj.SetMaxLength(fernTestValueMaxLength) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMultiline_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + var fernTestValueMultiline bool + + // Act + obj.SetMultiline(fernTestValueMultiline) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPassword_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + var fernTestValuePassword bool + + // Act + obj.SetPassword(fernTestValuePassword) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetComb_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemText{} + var fernTestValueComb bool + + // Act + obj.SetComb(fernTestValueComb) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + } -func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemTextDefaultValueEntry(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntry{} var expected string obj.Kind = expected @@ -220056,7 +261899,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry(t *t t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry + var obj *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -220069,8 +261912,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry(t *t t.Run("GetNone", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryNone + obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone obj.None = expected // Act & Assert @@ -220080,7 +261923,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry(t *t t.Run("GetNone_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntry{} obj.None = nil // Act & Assert @@ -220089,7 +261932,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry(t *t t.Run("GetNone_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry + var obj *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -220102,8 +261945,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry(t *t t.Run("GetScalar", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar + obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar obj.Scalar = expected // Act & Assert @@ -220113,7 +261956,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry(t *t t.Run("GetScalar_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntry{} obj.Scalar = nil // Act & Assert @@ -220122,7 +261965,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry(t *t t.Run("GetScalar_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry + var obj *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -220135,8 +261978,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry(t *t t.Run("GetArray", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray + obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray obj.Array = expected // Act & Assert @@ -220146,7 +261989,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry(t *t t.Run("GetArray_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntry{} obj.Array = nil // Act & Assert @@ -220155,7 +261998,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry(t *t t.Run("GetArray_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry + var obj *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -220168,8 +262011,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry(t *t t.Run("GetUnsupported", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryUnsupported + obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported obj.Unsupported = expected // Act & Assert @@ -220179,7 +262022,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry(t *t t.Run("GetUnsupported_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntry{} obj.Unsupported = nil // Act & Assert @@ -220188,7 +262031,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry(t *t t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry + var obj *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -220200,9 +262043,9 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntry(t *t } -func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray(t *testing.T) { t.Run("SetValues", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray{} var fernTestValueValues []string obj.SetValues(fernTestValueValues) assert.Equal(t, fernTestValueValues, obj.Values) @@ -220211,11 +262054,11 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray } -func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray(t *testing.T) { t.Run("GetValues", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray{} var expected []string obj.Values = expected @@ -220226,7 +262069,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray t.Run("GetValues_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray{} obj.Values = nil // Act & Assert @@ -220235,7 +262078,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray t.Run("GetValues_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray + var obj *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -220247,11 +262090,11 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray(t *testing.T) { t.Run("SetValues_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray{} var fernTestValueValues []string // Act @@ -220281,9 +262124,9 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonDefaultVal } -func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar(t *testing.T) { t.Run("SetValue", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar{} + obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar{} var fernTestValueValue string obj.SetValue(fernTestValueValue) assert.Equal(t, fernTestValueValue, obj.Value) @@ -220292,11 +262135,11 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScala } -func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar(t *testing.T) { t.Run("GetValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar{} + obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar{} var expected string obj.Value = expected @@ -220306,7 +262149,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScala t.Run("GetValue_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar + var obj *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -220318,11 +262161,11 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScala } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar(t *testing.T) { t.Run("SetValue_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonDefaultValueEntryScalar{} + obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar{} var fernTestValueValue string // Act @@ -220352,9 +262195,9 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonDefaultVal } -func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonFlags(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemTextFlags(t *testing.T) { t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} + obj := &DocFormsGet200ResponseFieldsItemTextFlags{} var fernTestValueReadOnly bool obj.SetReadOnly(fernTestValueReadOnly) assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) @@ -220362,7 +262205,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonFlags(t *testing.T) { }) t.Run("SetRequired", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} + obj := &DocFormsGet200ResponseFieldsItemTextFlags{} var fernTestValueRequired bool obj.SetRequired(fernTestValueRequired) assert.Equal(t, fernTestValueRequired, obj.Required) @@ -220370,7 +262213,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonFlags(t *testing.T) { }) t.Run("SetNoExport", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} + obj := &DocFormsGet200ResponseFieldsItemTextFlags{} var fernTestValueNoExport bool obj.SetNoExport(fernTestValueNoExport) assert.Equal(t, fernTestValueNoExport, obj.NoExport) @@ -220378,7 +262221,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonFlags(t *testing.T) { }) t.Run("SetRaw", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} + obj := &DocFormsGet200ResponseFieldsItemTextFlags{} var fernTestValueRaw int obj.SetRaw(fernTestValueRaw) assert.Equal(t, fernTestValueRaw, obj.Raw) @@ -220387,11 +262230,11 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonFlags(t *testing.T) { } -func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonFlags(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemTextFlags(t *testing.T) { t.Run("GetReadOnly", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} + obj := &DocFormsGet200ResponseFieldsItemTextFlags{} var expected bool obj.ReadOnly = expected @@ -220401,7 +262244,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonFlags(t *testing.T) { t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonFlags + var obj *DocFormsGet200ResponseFieldsItemTextFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -220414,7 +262257,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonFlags(t *testing.T) { t.Run("GetRequired", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} + obj := &DocFormsGet200ResponseFieldsItemTextFlags{} var expected bool obj.Required = expected @@ -220424,7 +262267,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonFlags(t *testing.T) { t.Run("GetRequired_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonFlags + var obj *DocFormsGet200ResponseFieldsItemTextFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -220437,7 +262280,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonFlags(t *testing.T) { t.Run("GetNoExport", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} + obj := &DocFormsGet200ResponseFieldsItemTextFlags{} var expected bool obj.NoExport = expected @@ -220447,7 +262290,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonFlags(t *testing.T) { t.Run("GetNoExport_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonFlags + var obj *DocFormsGet200ResponseFieldsItemTextFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -220460,7 +262303,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonFlags(t *testing.T) { t.Run("GetRaw", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} + obj := &DocFormsGet200ResponseFieldsItemTextFlags{} var expected int obj.Raw = expected @@ -220470,7 +262313,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonFlags(t *testing.T) { t.Run("GetRaw_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonFlags + var obj *DocFormsGet200ResponseFieldsItemTextFlags // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -220482,11 +262325,11 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonFlags(t *testing.T) { } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonFlags(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextFlags(t *testing.T) { t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} + obj := &DocFormsGet200ResponseFieldsItemTextFlags{} var fernTestValueReadOnly bool // Act @@ -220517,7 +262360,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonFlags(t *t t.Run("SetRequired_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} + obj := &DocFormsGet200ResponseFieldsItemTextFlags{} var fernTestValueRequired bool // Act @@ -220548,7 +262391,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonFlags(t *t t.Run("SetNoExport_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} + obj := &DocFormsGet200ResponseFieldsItemTextFlags{} var fernTestValueNoExport bool // Act @@ -220579,7 +262422,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonFlags(t *t t.Run("SetRaw_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonFlags{} + obj := &DocFormsGet200ResponseFieldsItemTextFlags{} var fernTestValueRaw int // Act @@ -220609,11 +262452,11 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonFlags(t *t } -func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonRef(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemTextRef(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonRef{} + obj := &DocFormsGet200ResponseFieldsItemTextRef{} var expected string obj.Kind = expected @@ -220623,7 +262466,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonRef(t *testing.T) { t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonRef + var obj *DocFormsGet200ResponseFieldsItemTextRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -220636,8 +262479,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonRef(t *testing.T) { t.Run("GetObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonRef{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber + obj := &DocFormsGet200ResponseFieldsItemTextRef{} + var expected *DocFormsGet200ResponseFieldsItemTextRefObjectNumber obj.ObjectNumber = expected // Act & Assert @@ -220647,7 +262490,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonRef(t *testing.T) { t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonRef{} + obj := &DocFormsGet200ResponseFieldsItemTextRef{} obj.ObjectNumber = nil // Act & Assert @@ -220656,7 +262499,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonRef(t *testing.T) { t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonRef + var obj *DocFormsGet200ResponseFieldsItemTextRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -220669,8 +262512,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonRef(t *testing.T) { t.Run("GetFqn", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonRef{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonRefFqn + obj := &DocFormsGet200ResponseFieldsItemTextRef{} + var expected *DocFormsGet200ResponseFieldsItemTextRefFqn obj.Fqn = expected // Act & Assert @@ -220680,7 +262523,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonRef(t *testing.T) { t.Run("GetFqn_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonRef{} + obj := &DocFormsGet200ResponseFieldsItemTextRef{} obj.Fqn = nil // Act & Assert @@ -220689,7 +262532,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonRef(t *testing.T) { t.Run("GetFqn_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonRef + var obj *DocFormsGet200ResponseFieldsItemTextRef // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -220701,9 +262544,9 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonRef(t *testing.T) { } -func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonRefFqn(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemTextRefFqn(t *testing.T) { t.Run("SetName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonRefFqn{} + obj := &DocFormsGet200ResponseFieldsItemTextRefFqn{} var fernTestValueName string obj.SetName(fernTestValueName) assert.Equal(t, fernTestValueName, obj.Name) @@ -220712,11 +262555,11 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonRefFqn(t *testing.T) { } -func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonRefFqn(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemTextRefFqn(t *testing.T) { t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonRefFqn{} + obj := &DocFormsGet200ResponseFieldsItemTextRefFqn{} var expected string obj.Name = expected @@ -220726,7 +262569,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonRefFqn(t *testing.T) { t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonRefFqn + var obj *DocFormsGet200ResponseFieldsItemTextRefFqn // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -220738,11 +262581,11 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonRefFqn(t *testing.T) { } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonRefFqn(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextRefFqn(t *testing.T) { t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonRefFqn{} + obj := &DocFormsGet200ResponseFieldsItemTextRefFqn{} var fernTestValueName string // Act @@ -220772,9 +262615,9 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonRefFqn(t * } -func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemTextRefObjectNumber(t *testing.T) { t.Run("SetFieldObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber{} + obj := &DocFormsGet200ResponseFieldsItemTextRefObjectNumber{} var fernTestValueFieldObjectNumber int obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) assert.Equal(t, fernTestValueFieldObjectNumber, obj.FieldObjectNumber) @@ -220783,11 +262626,11 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber(t *tes } -func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemTextRefObjectNumber(t *testing.T) { t.Run("GetFieldObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber{} + obj := &DocFormsGet200ResponseFieldsItemTextRefObjectNumber{} var expected int obj.FieldObjectNumber = expected @@ -220797,7 +262640,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber(t *tes t.Run("GetFieldObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber + var obj *DocFormsGet200ResponseFieldsItemTextRefObjectNumber // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -220809,11 +262652,11 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber(t *tes } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextRefObjectNumber(t *testing.T) { t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonRefObjectNumber{} + obj := &DocFormsGet200ResponseFieldsItemTextRefObjectNumber{} var fernTestValueFieldObjectNumber int // Act @@ -220843,11 +262686,11 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonRefObjectN } -func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntry(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemTextValueEntry(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemTextValueEntry{} var expected string obj.Kind = expected @@ -220857,7 +262700,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntry(t *testing. t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry + var obj *DocFormsGet200ResponseFieldsItemTextValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -220870,8 +262713,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntry(t *testing. t.Run("GetNone", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryNone + obj := &DocFormsGet200ResponseFieldsItemTextValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemTextValueEntryNone obj.None = expected // Act & Assert @@ -220881,7 +262724,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntry(t *testing. t.Run("GetNone_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemTextValueEntry{} obj.None = nil // Act & Assert @@ -220890,7 +262733,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntry(t *testing. t.Run("GetNone_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry + var obj *DocFormsGet200ResponseFieldsItemTextValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -220903,8 +262746,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntry(t *testing. t.Run("GetScalar", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar + obj := &DocFormsGet200ResponseFieldsItemTextValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemTextValueEntryScalar obj.Scalar = expected // Act & Assert @@ -220914,7 +262757,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntry(t *testing. t.Run("GetScalar_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemTextValueEntry{} obj.Scalar = nil // Act & Assert @@ -220923,7 +262766,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntry(t *testing. t.Run("GetScalar_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry + var obj *DocFormsGet200ResponseFieldsItemTextValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -220936,8 +262779,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntry(t *testing. t.Run("GetArray", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray + obj := &DocFormsGet200ResponseFieldsItemTextValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemTextValueEntryArray obj.Array = expected // Act & Assert @@ -220947,7 +262790,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntry(t *testing. t.Run("GetArray_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemTextValueEntry{} obj.Array = nil // Act & Assert @@ -220956,7 +262799,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntry(t *testing. t.Run("GetArray_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry + var obj *DocFormsGet200ResponseFieldsItemTextValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -220969,8 +262812,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntry(t *testing. t.Run("GetUnsupported", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryUnsupported + obj := &DocFormsGet200ResponseFieldsItemTextValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported obj.Unsupported = expected // Act & Assert @@ -220980,7 +262823,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntry(t *testing. t.Run("GetUnsupported_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemTextValueEntry{} obj.Unsupported = nil // Act & Assert @@ -220989,7 +262832,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntry(t *testing. t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonValueEntry + var obj *DocFormsGet200ResponseFieldsItemTextValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -221001,9 +262844,9 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntry(t *testing. } -func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemTextValueEntryArray(t *testing.T) { t.Run("SetValues", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemTextValueEntryArray{} var fernTestValueValues []string obj.SetValues(fernTestValueValues) assert.Equal(t, fernTestValueValues, obj.Values) @@ -221012,11 +262855,11 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray(t *tes } -func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemTextValueEntryArray(t *testing.T) { t.Run("GetValues", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemTextValueEntryArray{} var expected []string obj.Values = expected @@ -221027,7 +262870,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray(t *tes t.Run("GetValues_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemTextValueEntryArray{} obj.Values = nil // Act & Assert @@ -221036,7 +262879,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray(t *tes t.Run("GetValues_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray + var obj *DocFormsGet200ResponseFieldsItemTextValueEntryArray // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -221048,11 +262891,11 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray(t *tes } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextValueEntryArray(t *testing.T) { t.Run("SetValues_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemTextValueEntryArray{} var fernTestValueValues []string // Act @@ -221082,9 +262925,9 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonValueEntry } -func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemTextValueEntryScalar(t *testing.T) { t.Run("SetValue", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar{} + obj := &DocFormsGet200ResponseFieldsItemTextValueEntryScalar{} var fernTestValueValue string obj.SetValue(fernTestValueValue) assert.Equal(t, fernTestValueValue, obj.Value) @@ -221093,11 +262936,11 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar(t *te } -func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemTextValueEntryScalar(t *testing.T) { t.Run("GetValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar{} + obj := &DocFormsGet200ResponseFieldsItemTextValueEntryScalar{} var expected string obj.Value = expected @@ -221107,7 +262950,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar(t *te t.Run("GetValue_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar + var obj *DocFormsGet200ResponseFieldsItemTextValueEntryScalar // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -221119,11 +262962,11 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar(t *te } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextValueEntryScalar(t *testing.T) { t.Run("SetValue_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonValueEntryScalar{} + obj := &DocFormsGet200ResponseFieldsItemTextValueEntryScalar{} var fernTestValueValue string // Act @@ -221153,9 +262996,9 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonValueEntry } -func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemTextWidgetsItem(t *testing.T) { t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem{} + obj := &DocFormsGet200ResponseFieldsItemTextWidgetsItem{} var fernTestValueAnnotObjectNumber int obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) @@ -221163,7 +263006,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem(t *testing }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem{} + obj := &DocFormsGet200ResponseFieldsItemTextWidgetsItem{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -221172,11 +263015,11 @@ func TestSettersDocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem(t *testing } -func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemTextWidgetsItem(t *testing.T) { t.Run("GetAnnotObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem{} + obj := &DocFormsGet200ResponseFieldsItemTextWidgetsItem{} var expected int obj.AnnotObjectNumber = expected @@ -221186,7 +263029,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem(t *testing t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem + var obj *DocFormsGet200ResponseFieldsItemTextWidgetsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -221199,7 +263042,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem(t *testing t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem{} + obj := &DocFormsGet200ResponseFieldsItemTextWidgetsItem{} var expected int obj.PageObjectNumber = expected @@ -221209,7 +263052,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem(t *testing t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem + var obj *DocFormsGet200ResponseFieldsItemTextWidgetsItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -221221,11 +263064,11 @@ func TestGettersDocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem(t *testing } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextWidgetsItem(t *testing.T) { t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem{} + obj := &DocFormsGet200ResponseFieldsItemTextWidgetsItem{} var fernTestValueAnnotObjectNumber int // Act @@ -221256,7 +263099,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonWidgetsIte t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemPushbuttonWidgetsItem{} + obj := &DocFormsGet200ResponseFieldsItemTextWidgetsItem{} var fernTestValuePageObjectNumber int // Act @@ -221286,17 +263129,17 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemPushbuttonWidgetsIte } -func TestSettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemUnknown(t *testing.T) { t.Run("SetRef", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueRef *DocFormsGet200ResponseFieldsItemRadioRef + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + var fernTestValueRef *DocFormsGet200ResponseFieldsItemUnknownRef obj.SetRef(fernTestValueRef) assert.Equal(t, fernTestValueRef, obj.Ref) assert.NotNil(t, obj.explicitFields) }) t.Run("SetFieldObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadio{} + obj := &DocFormsGet200ResponseFieldsItemUnknown{} var fernTestValueFieldObjectNumber int obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) assert.Equal(t, fernTestValueFieldObjectNumber, obj.FieldObjectNumber) @@ -221304,7 +263147,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { }) t.Run("SetName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadio{} + obj := &DocFormsGet200ResponseFieldsItemUnknown{} var fernTestValueName string obj.SetName(fernTestValueName) assert.Equal(t, fernTestValueName, obj.Name) @@ -221312,23 +263155,23 @@ func TestSettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { }) t.Run("SetOrigin", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueOrigin DocFormsGet200ResponseFieldsItemRadioOrigin + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + var fernTestValueOrigin DocFormsGet200ResponseFieldsItemUnknownOrigin obj.SetOrigin(fernTestValueOrigin) assert.Equal(t, fernTestValueOrigin, obj.Origin) assert.NotNil(t, obj.explicitFields) }) t.Run("SetFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueFlags *DocFormsGet200ResponseFieldsItemRadioFlags + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + var fernTestValueFlags *DocFormsGet200ResponseFieldsItemUnknownFlags obj.SetFlags(fernTestValueFlags) assert.Equal(t, fernTestValueFlags, obj.Flags) assert.NotNil(t, obj.explicitFields) }) t.Run("SetAlternateName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadio{} + obj := &DocFormsGet200ResponseFieldsItemUnknown{} var fernTestValueAlternateName *string obj.SetAlternateName(fernTestValueAlternateName) assert.Equal(t, fernTestValueAlternateName, obj.AlternateName) @@ -221336,7 +263179,7 @@ func TestSettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { }) t.Run("SetMappingName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadio{} + obj := &DocFormsGet200ResponseFieldsItemUnknown{} var fernTestValueMappingName *string obj.SetMappingName(fernTestValueMappingName) assert.Equal(t, fernTestValueMappingName, obj.MappingName) @@ -221344,23 +263187,23 @@ func TestSettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { }) t.Run("SetValueEntry", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemRadioValueEntry + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemUnknownValueEntry obj.SetValueEntry(fernTestValueValueEntry) assert.Equal(t, fernTestValueValueEntry, obj.ValueEntry) assert.NotNil(t, obj.explicitFields) }) t.Run("SetDefaultValueEntry", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry obj.SetDefaultValueEntry(fernTestValueDefaultValueEntry) assert.Equal(t, fernTestValueDefaultValueEntry, obj.DefaultValueEntry) assert.NotNil(t, obj.explicitFields) }) t.Run("SetActions", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadio{} + obj := &DocFormsGet200ResponseFieldsItemUnknown{} var fernTestValueActions *PdfFieldActions obj.SetActions(fernTestValueActions) assert.Equal(t, fernTestValueActions, obj.Actions) @@ -221368,45 +263211,29 @@ func TestSettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { }) t.Run("SetWidgets", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemRadioWidgetsItem + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemUnknownWidgetsItem obj.SetWidgets(fernTestValueWidgets) assert.Equal(t, fernTestValueWidgets, obj.Widgets) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetValue", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueValue string - obj.SetValue(fernTestValueValue) - assert.Equal(t, fernTestValueValue, obj.Value) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRadiosInUnison", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueRadiosInUnison bool - obj.SetRadiosInUnison(fernTestValueRadiosInUnison) - assert.Equal(t, fernTestValueRadiosInUnison, obj.RadiosInUnison) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetNoToggleToOff", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueNoToggleToOff bool - obj.SetNoToggleToOff(fernTestValueNoToggleToOff) - assert.Equal(t, fernTestValueNoToggleToOff, obj.NoToggleToOff) + t.Run("SetRawValue", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + var fernTestValueRawValue string + obj.SetRawValue(fernTestValueRawValue) + assert.Equal(t, fernTestValueRawValue, obj.RawValue) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemUnknown(t *testing.T) { t.Run("GetRef", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var expected *DocFormsGet200ResponseFieldsItemRadioRef + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + var expected *DocFormsGet200ResponseFieldsItemUnknownRef obj.Ref = expected // Act & Assert @@ -221416,7 +263243,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { t.Run("GetRef_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} + obj := &DocFormsGet200ResponseFieldsItemUnknown{} obj.Ref = nil // Act & Assert @@ -221425,7 +263252,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { t.Run("GetRef_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadio + var obj *DocFormsGet200ResponseFieldsItemUnknown // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -221438,7 +263265,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { t.Run("GetFieldObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} + obj := &DocFormsGet200ResponseFieldsItemUnknown{} var expected int obj.FieldObjectNumber = expected @@ -221448,7 +263275,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { t.Run("GetFieldObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadio + var obj *DocFormsGet200ResponseFieldsItemUnknown // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -221461,7 +263288,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} + obj := &DocFormsGet200ResponseFieldsItemUnknown{} var expected string obj.Name = expected @@ -221471,7 +263298,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadio + var obj *DocFormsGet200ResponseFieldsItemUnknown // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -221484,8 +263311,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { t.Run("GetOrigin", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var expected DocFormsGet200ResponseFieldsItemRadioOrigin + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + var expected DocFormsGet200ResponseFieldsItemUnknownOrigin obj.Origin = expected // Act & Assert @@ -221494,7 +263321,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { t.Run("GetOrigin_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadio + var obj *DocFormsGet200ResponseFieldsItemUnknown // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -221507,8 +263334,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { t.Run("GetFlags", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var expected *DocFormsGet200ResponseFieldsItemRadioFlags + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + var expected *DocFormsGet200ResponseFieldsItemUnknownFlags obj.Flags = expected // Act & Assert @@ -221518,7 +263345,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { t.Run("GetFlags_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} + obj := &DocFormsGet200ResponseFieldsItemUnknown{} obj.Flags = nil // Act & Assert @@ -221527,7 +263354,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { t.Run("GetFlags_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadio + var obj *DocFormsGet200ResponseFieldsItemUnknown // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -221540,7 +263367,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { t.Run("GetAlternateName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} + obj := &DocFormsGet200ResponseFieldsItemUnknown{} var expected *string obj.AlternateName = expected @@ -221551,7 +263378,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { t.Run("GetAlternateName_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} + obj := &DocFormsGet200ResponseFieldsItemUnknown{} obj.AlternateName = nil // Act & Assert @@ -221560,7 +263387,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { t.Run("GetAlternateName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadio + var obj *DocFormsGet200ResponseFieldsItemUnknown // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -221573,7 +263400,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { t.Run("GetMappingName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} + obj := &DocFormsGet200ResponseFieldsItemUnknown{} var expected *string obj.MappingName = expected @@ -221584,7 +263411,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { t.Run("GetMappingName_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} + obj := &DocFormsGet200ResponseFieldsItemUnknown{} obj.MappingName = nil // Act & Assert @@ -221593,7 +263420,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { t.Run("GetMappingName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadio + var obj *DocFormsGet200ResponseFieldsItemUnknown // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -221606,8 +263433,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { t.Run("GetValueEntry", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var expected *DocFormsGet200ResponseFieldsItemRadioValueEntry + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + var expected *DocFormsGet200ResponseFieldsItemUnknownValueEntry obj.ValueEntry = expected // Act & Assert @@ -221617,7 +263444,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { t.Run("GetValueEntry_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} + obj := &DocFormsGet200ResponseFieldsItemUnknown{} obj.ValueEntry = nil // Act & Assert @@ -221626,7 +263453,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { t.Run("GetValueEntry_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadio + var obj *DocFormsGet200ResponseFieldsItemUnknown // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -221639,8 +263466,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { t.Run("GetDefaultValueEntry", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var expected *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + var expected *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry obj.DefaultValueEntry = expected // Act & Assert @@ -221650,7 +263477,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { t.Run("GetDefaultValueEntry_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} + obj := &DocFormsGet200ResponseFieldsItemUnknown{} obj.DefaultValueEntry = nil // Act & Assert @@ -221659,7 +263486,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { t.Run("GetDefaultValueEntry_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadio + var obj *DocFormsGet200ResponseFieldsItemUnknown // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -221672,7 +263499,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { t.Run("GetActions", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} + obj := &DocFormsGet200ResponseFieldsItemUnknown{} var expected *PdfFieldActions obj.Actions = expected @@ -221683,7 +263510,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { t.Run("GetActions_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} + obj := &DocFormsGet200ResponseFieldsItemUnknown{} obj.Actions = nil // Act & Assert @@ -221692,7 +263519,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { t.Run("GetActions_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadio + var obj *DocFormsGet200ResponseFieldsItemUnknown // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -221705,8 +263532,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { t.Run("GetWidgets", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var expected []*DocFormsGet200ResponseFieldsItemRadioWidgetsItem + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + var expected []*DocFormsGet200ResponseFieldsItemUnknownWidgetsItem obj.Widgets = expected // Act & Assert @@ -221716,7 +263543,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { t.Run("GetWidgets_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} + obj := &DocFormsGet200ResponseFieldsItemUnknown{} obj.Widgets = nil // Act & Assert @@ -221725,7 +263552,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { t.Run("GetWidgets_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadio + var obj *DocFormsGet200ResponseFieldsItemUnknown // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -221735,83 +263562,37 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { _ = obj.GetWidgets() // Should return zero value }) - t.Run("GetValue", func(t *testing.T) { + t.Run("GetRawValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} + obj := &DocFormsGet200ResponseFieldsItemUnknown{} var expected string - obj.Value = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") - }) - - t.Run("GetValue_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadio - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetValue() // Should return zero value - }) - - t.Run("GetRadiosInUnison", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var expected bool - obj.RadiosInUnison = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRadiosInUnison(), "getter should return the property value") - }) - - t.Run("GetRadiosInUnison_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadio - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetRadiosInUnison() // Should return zero value - }) - - t.Run("GetNoToggleToOff", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var expected bool - obj.NoToggleToOff = expected + obj.RawValue = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoToggleToOff(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRawValue(), "getter should return the property value") }) - t.Run("GetNoToggleToOff_NilReceiver", func(t *testing.T) { + t.Run("GetRawValue_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadio + var obj *DocFormsGet200ResponseFieldsItemUnknown // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNoToggleToOff() // Should return zero value + _ = obj.GetRawValue() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadio(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknown(t *testing.T) { t.Run("SetRef_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueRef *DocFormsGet200ResponseFieldsItemRadioRef + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + var fernTestValueRef *DocFormsGet200ResponseFieldsItemUnknownRef // Act obj.SetRef(fernTestValueRef) @@ -221841,7 +263622,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadio(t *testing.T) t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} + obj := &DocFormsGet200ResponseFieldsItemUnknown{} var fernTestValueFieldObjectNumber int // Act @@ -221872,7 +263653,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadio(t *testing.T) t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} + obj := &DocFormsGet200ResponseFieldsItemUnknown{} var fernTestValueName string // Act @@ -221903,8 +263684,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadio(t *testing.T) t.Run("SetOrigin_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueOrigin DocFormsGet200ResponseFieldsItemRadioOrigin + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + var fernTestValueOrigin DocFormsGet200ResponseFieldsItemUnknownOrigin // Act obj.SetOrigin(fernTestValueOrigin) @@ -221934,8 +263715,8 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadio(t *testing.T) t.Run("SetFlags_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueFlags *DocFormsGet200ResponseFieldsItemRadioFlags + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + var fernTestValueFlags *DocFormsGet200ResponseFieldsItemUnknownFlags // Act obj.SetFlags(fernTestValueFlags) @@ -221965,7 +263746,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadio(t *testing.T) t.Run("SetAlternateName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} + obj := &DocFormsGet200ResponseFieldsItemUnknown{} var fernTestValueAlternateName *string // Act @@ -221996,7 +263777,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadio(t *testing.T) t.Run("SetMappingName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} + obj := &DocFormsGet200ResponseFieldsItemUnknown{} var fernTestValueMappingName *string // Act @@ -222027,11 +263808,609 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadio(t *testing.T) t.Run("SetValueEntry_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemRadioValueEntry + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemUnknownValueEntry + + // Act + obj.SetValueEntry(fernTestValueValueEntry) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDefaultValueEntry_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry + + // Act + obj.SetDefaultValueEntry(fernTestValueDefaultValueEntry) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + var fernTestValueActions *PdfFieldActions + + // Act + obj.SetActions(fernTestValueActions) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWidgets_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemUnknownWidgetsItem + + // Act + obj.SetWidgets(fernTestValueWidgets) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetRawValue_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknown{} + var fernTestValueRawValue string + + // Act + obj.SetRawValue(fernTestValueRawValue) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry{} + var expected string + obj.Kind = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + }) + + t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKind() // Should return zero value + }) + + t.Run("GetNone", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone + obj.None = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNone(), "getter should return the property value") + }) + + t.Run("GetNone_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry{} + obj.None = nil + + // Act & Assert + assert.Nil(t, obj.GetNone(), "getter should return nil when property is nil") + }) + + t.Run("GetNone_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNone() // Should return zero value + }) + + t.Run("GetScalar", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar + obj.Scalar = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetScalar(), "getter should return the property value") + }) + + t.Run("GetScalar_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry{} + obj.Scalar = nil + + // Act & Assert + assert.Nil(t, obj.GetScalar(), "getter should return nil when property is nil") + }) + + t.Run("GetScalar_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetScalar() // Should return zero value + }) + + t.Run("GetArray", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray + obj.Array = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetArray(), "getter should return the property value") + }) + + t.Run("GetArray_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry{} + obj.Array = nil + + // Act & Assert + assert.Nil(t, obj.GetArray(), "getter should return nil when property is nil") + }) + + t.Run("GetArray_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetArray() // Should return zero value + }) + + t.Run("GetUnsupported", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported + obj.Unsupported = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetUnsupported(), "getter should return the property value") + }) + + t.Run("GetUnsupported_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry{} + obj.Unsupported = nil + + // Act & Assert + assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") + }) + + t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnsupported() // Should return zero value + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray(t *testing.T) { + t.Run("SetValues", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray{} + var fernTestValueValues []string + obj.SetValues(fernTestValueValues) + assert.Equal(t, fernTestValueValues, obj.Values) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray(t *testing.T) { + t.Run("GetValues", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray{} + var expected []string + obj.Values = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetValues(), "getter should return the property value") + }) + + t.Run("GetValues_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray{} + obj.Values = nil + + // Act & Assert + assert.Nil(t, obj.GetValues(), "getter should return nil when property is nil") + }) + + t.Run("GetValues_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetValues() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray(t *testing.T) { + t.Run("SetValues_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray{} + var fernTestValueValues []string + + // Act + obj.SetValues(fernTestValueValues) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar(t *testing.T) { + t.Run("SetValue", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar{} + var fernTestValueValue string + obj.SetValue(fernTestValueValue) + assert.Equal(t, fernTestValueValue, obj.Value) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar(t *testing.T) { + t.Run("GetValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar{} + var expected string + obj.Value = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") + }) + + t.Run("GetValue_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetValue() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar(t *testing.T) { + t.Run("SetValue_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar{} + var fernTestValueValue string + + // Act + obj.SetValue(fernTestValueValue) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemUnknownFlags(t *testing.T) { + t.Run("SetReadOnly", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} + var fernTestValueReadOnly bool + obj.SetReadOnly(fernTestValueReadOnly) + assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRequired", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} + var fernTestValueRequired bool + obj.SetRequired(fernTestValueRequired) + assert.Equal(t, fernTestValueRequired, obj.Required) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetNoExport", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} + var fernTestValueNoExport bool + obj.SetNoExport(fernTestValueNoExport) + assert.Equal(t, fernTestValueNoExport, obj.NoExport) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRaw", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} + var fernTestValueRaw int + obj.SetRaw(fernTestValueRaw) + assert.Equal(t, fernTestValueRaw, obj.Raw) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemUnknownFlags(t *testing.T) { + t.Run("GetReadOnly", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} + var expected bool + obj.ReadOnly = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") + }) + + t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetReadOnly() // Should return zero value + }) + + t.Run("GetRequired", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} + var expected bool + obj.Required = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRequired(), "getter should return the property value") + }) + + t.Run("GetRequired_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRequired() // Should return zero value + }) + + t.Run("GetNoExport", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} + var expected bool + obj.NoExport = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetNoExport(), "getter should return the property value") + }) + + t.Run("GetNoExport_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetNoExport() // Should return zero value + }) + + t.Run("GetRaw", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} + var expected int + obj.Raw = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRaw(), "getter should return the property value") + }) + + t.Run("GetRaw_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownFlags + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRaw() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownFlags(t *testing.T) { + t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} + var fernTestValueReadOnly bool // Act - obj.SetValueEntry(fernTestValueValueEntry) + obj.SetReadOnly(fernTestValueReadOnly) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -222055,14 +264434,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadio(t *testing.T) // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDefaultValueEntry_MarksExplicit", func(t *testing.T) { + t.Run("SetRequired_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry + obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} + var fernTestValueRequired bool // Act - obj.SetDefaultValueEntry(fernTestValueDefaultValueEntry) + obj.SetRequired(fernTestValueRequired) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -222086,14 +264465,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadio(t *testing.T) // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Run("SetNoExport_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueActions *PdfFieldActions + obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} + var fernTestValueNoExport bool // Act - obj.SetActions(fernTestValueActions) + obj.SetNoExport(fernTestValueNoExport) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -222117,14 +264496,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadio(t *testing.T) // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWidgets_MarksExplicit", func(t *testing.T) { + t.Run("SetRaw_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemRadioWidgetsItem + obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} + var fernTestValueRaw int // Act - obj.SetWidgets(fernTestValueWidgets) + obj.SetRaw(fernTestValueRaw) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -222148,45 +264527,146 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadio(t *testing.T) // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetValue_MarksExplicit", func(t *testing.T) { +} + +func TestGettersDocFormsGet200ResponseFieldsItemUnknownRef(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueValue string + obj := &DocFormsGet200ResponseFieldsItemUnknownRef{} + var expected string + obj.Kind = expected - // Act - obj.SetValue(fernTestValueValue) + // Act & Assert + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKind() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownRef{} + var expected *DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber + obj.ObjectNumber = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") }) - t.Run("SetRadiosInUnison_MarksExplicit", func(t *testing.T) { + t.Run("GetObjectNumber_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueRadiosInUnison bool + obj := &DocFormsGet200ResponseFieldsItemUnknownRef{} + obj.ObjectNumber = nil + + // Act & Assert + assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + }) + + t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetObjectNumber() // Should return zero value + }) + + t.Run("GetFqn", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownRef{} + var expected *DocFormsGet200ResponseFieldsItemUnknownRefFqn + obj.Fqn = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFqn(), "getter should return the property value") + }) + + t.Run("GetFqn_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownRef{} + obj.Fqn = nil + + // Act & Assert + assert.Nil(t, obj.GetFqn(), "getter should return nil when property is nil") + }) + + t.Run("GetFqn_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownRef + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFqn() // Should return zero value + }) + +} + +func TestSettersDocFormsGet200ResponseFieldsItemUnknownRefFqn(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownRefFqn{} + var fernTestValueName string + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemUnknownRefFqn(t *testing.T) { + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownRefFqn{} + var expected string + obj.Name = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + }) + + t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownRefFqn + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetName() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownRefFqn(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownRefFqn{} + var fernTestValueName string // Act - obj.SetRadiosInUnison(fernTestValueRadiosInUnison) + obj.SetName(fernTestValueName) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -222210,14 +264690,54 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadio(t *testing.T) // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoToggleToOff_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocFormsGet200ResponseFieldsItemUnknownRefObjectNumber(t *testing.T) { + t.Run("SetFieldObjectNumber", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber{} + var fernTestValueFieldObjectNumber int + obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) + assert.Equal(t, fernTestValueFieldObjectNumber, obj.FieldObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsGet200ResponseFieldsItemUnknownRefObjectNumber(t *testing.T) { + t.Run("GetFieldObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadio{} - var fernTestValueNoToggleToOff bool + obj := &DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber{} + var expected int + obj.FieldObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetFieldObjectNumber(), "getter should return the property value") + }) + + t.Run("GetFieldObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFieldObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownRefObjectNumber(t *testing.T) { + t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber{} + var fernTestValueFieldObjectNumber int // Act - obj.SetNoToggleToOff(fernTestValueNoToggleToOff) + obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -222243,11 +264763,11 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadio(t *testing.T) } -func TestGettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntry(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemUnknownValueEntry(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntry{} var expected string obj.Kind = expected @@ -222257,7 +264777,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntry(t *testin t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry + var obj *DocFormsGet200ResponseFieldsItemUnknownValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -222270,8 +264790,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntry(t *testin t.Run("GetNone", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryNone + obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemUnknownValueEntryNone obj.None = expected // Act & Assert @@ -222281,7 +264801,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntry(t *testin t.Run("GetNone_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntry{} obj.None = nil // Act & Assert @@ -222290,7 +264810,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntry(t *testin t.Run("GetNone_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry + var obj *DocFormsGet200ResponseFieldsItemUnknownValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -222303,8 +264823,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntry(t *testin t.Run("GetScalar", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar + obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar obj.Scalar = expected // Act & Assert @@ -222314,7 +264834,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntry(t *testin t.Run("GetScalar_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntry{} obj.Scalar = nil // Act & Assert @@ -222323,7 +264843,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntry(t *testin t.Run("GetScalar_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry + var obj *DocFormsGet200ResponseFieldsItemUnknownValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -222336,8 +264856,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntry(t *testin t.Run("GetArray", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray + obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemUnknownValueEntryArray obj.Array = expected // Act & Assert @@ -222347,7 +264867,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntry(t *testin t.Run("GetArray_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntry{} obj.Array = nil // Act & Assert @@ -222356,7 +264876,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntry(t *testin t.Run("GetArray_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry + var obj *DocFormsGet200ResponseFieldsItemUnknownValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -222369,8 +264889,8 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntry(t *testin t.Run("GetUnsupported", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryUnsupported + obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntry{} + var expected *DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported obj.Unsupported = expected // Act & Assert @@ -222380,7 +264900,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntry(t *testin t.Run("GetUnsupported_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry{} + obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntry{} obj.Unsupported = nil // Act & Assert @@ -222389,7 +264909,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntry(t *testin t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntry + var obj *DocFormsGet200ResponseFieldsItemUnknownValueEntry // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -222401,9 +264921,9 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntry(t *testin } -func TestSettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemUnknownValueEntryArray(t *testing.T) { t.Run("SetValues", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryArray{} var fernTestValueValues []string obj.SetValues(fernTestValueValues) assert.Equal(t, fernTestValueValues, obj.Values) @@ -222412,11 +264932,11 @@ func TestSettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray(t *t } -func TestGettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemUnknownValueEntryArray(t *testing.T) { t.Run("GetValues", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryArray{} var expected []string obj.Values = expected @@ -222427,7 +264947,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray(t *t t.Run("GetValues_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryArray{} obj.Values = nil // Act & Assert @@ -222436,7 +264956,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray(t *t t.Run("GetValues_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray + var obj *DocFormsGet200ResponseFieldsItemUnknownValueEntryArray // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -222448,11 +264968,11 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray(t *t } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownValueEntryArray(t *testing.T) { t.Run("SetValues_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryArray{} + obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryArray{} var fernTestValueValues []string // Act @@ -222482,9 +265002,9 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioDefaultValueEnt } -func TestSettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar(t *testing.T) { +func TestSettersDocFormsGet200ResponseFieldsItemUnknownValueEntryScalar(t *testing.T) { t.Run("SetValue", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar{} + obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar{} var fernTestValueValue string obj.SetValue(fernTestValueValue) assert.Equal(t, fernTestValueValue, obj.Value) @@ -222493,11 +265013,11 @@ func TestSettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar(t * } -func TestGettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar(t *testing.T) { +func TestGettersDocFormsGet200ResponseFieldsItemUnknownValueEntryScalar(t *testing.T) { t.Run("GetValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar{} + obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar{} var expected string obj.Value = expected @@ -222507,7 +265027,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar(t * t.Run("GetValue_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar + var obj *DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -222519,11 +265039,11 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar(t * } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownValueEntryScalar(t *testing.T) { t.Run("SetValue_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioDefaultValueEntryScalar{} + obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar{} var fernTestValueValue string // Act @@ -222553,145 +265073,288 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioDefaultValueEnt } -func TestSettersDocFormsGet200ResponseFieldsItemRadioFlags(t *testing.T) { - t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} - var fernTestValueReadOnly bool - obj.SetReadOnly(fernTestValueReadOnly) - assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) +func TestSettersDocFormsGet200ResponseFieldsItemUnknownWidgetsItem(t *testing.T) { + t.Run("SetAnnotObjectNumber", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownWidgetsItem{} + var fernTestValueAnnotObjectNumber int + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRequired", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} - var fernTestValueRequired bool - obj.SetRequired(fernTestValueRequired) - assert.Equal(t, fernTestValueRequired, obj.Required) + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocFormsGet200ResponseFieldsItemUnknownWidgetsItem{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNoExport", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} - var fernTestValueNoExport bool - obj.SetNoExport(fernTestValueNoExport) - assert.Equal(t, fernTestValueNoExport, obj.NoExport) +} + +func TestGettersDocFormsGet200ResponseFieldsItemUnknownWidgetsItem(t *testing.T) { + t.Run("GetAnnotObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownWidgetsItem{} + var expected int + obj.AnnotObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + }) + + t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownWidgetsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAnnotObjectNumber() // Should return zero value + }) + + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownWidgetsItem{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet200ResponseFieldsItemUnknownWidgetsItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownWidgetsItem(t *testing.T) { + t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownWidgetsItem{} + var fernTestValueAnnotObjectNumber int + + // Act + obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsGet200ResponseFieldsItemUnknownWidgetsItem{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocFormsGet404Response(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + obj := &DocFormsGet404Response{} + var fernTestValueName DocFormsGet404ResponseName + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRaw", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} - var fernTestValueRaw int - obj.SetRaw(fernTestValueRaw) - assert.Equal(t, fernTestValueRaw, obj.Raw) + t.Run("SetCode", func(t *testing.T) { + obj := &DocFormsGet404Response{} + var fernTestValueCode DocFormsGet404ResponseCode + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &DocFormsGet404Response{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDetails", func(t *testing.T) { + obj := &DocFormsGet404Response{} + var fernTestValueDetails map[string]any + obj.SetDetails(fernTestValueDetails) + assert.Equal(t, fernTestValueDetails, obj.Details) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseFieldsItemRadioFlags(t *testing.T) { - t.Run("GetReadOnly", func(t *testing.T) { +func TestGettersDocFormsGet404Response(t *testing.T) { + t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} - var expected bool - obj.ReadOnly = expected + obj := &DocFormsGet404Response{} + var expected DocFormsGet404ResponseName + obj.Name = expected // Act & Assert - assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") }) - t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { + t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioFlags + var obj *DocFormsGet404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReadOnly() // Should return zero value + _ = obj.GetName() // Should return zero value }) - t.Run("GetRequired", func(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} - var expected bool - obj.Required = expected + obj := &DocFormsGet404Response{} + var expected DocFormsGet404ResponseCode + obj.Code = expected // Act & Assert - assert.Equal(t, expected, obj.GetRequired(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") }) - t.Run("GetRequired_NilReceiver", func(t *testing.T) { + t.Run("GetCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioFlags + var obj *DocFormsGet404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRequired() // Should return zero value + _ = obj.GetCode() // Should return zero value }) - t.Run("GetNoExport", func(t *testing.T) { + t.Run("GetMessage", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} - var expected bool - obj.NoExport = expected + obj := &DocFormsGet404Response{} + var expected string + obj.Message = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoExport(), "getter should return the property value") + assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") }) - t.Run("GetNoExport_NilReceiver", func(t *testing.T) { + t.Run("GetMessage_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioFlags + var obj *DocFormsGet404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNoExport() // Should return zero value + _ = obj.GetMessage() // Should return zero value }) - t.Run("GetRaw", func(t *testing.T) { + t.Run("GetDetails", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} - var expected int - obj.Raw = expected + obj := &DocFormsGet404Response{} + var expected map[string]any + obj.Details = expected // Act & Assert - assert.Equal(t, expected, obj.GetRaw(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") }) - t.Run("GetRaw_NilReceiver", func(t *testing.T) { + t.Run("GetDetails_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioFlags + // Arrange + obj := &DocFormsGet404Response{} + obj.Details = nil + + // Act & Assert + assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + }) + + t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsGet404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRaw() // Should return zero value + _ = obj.GetDetails() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioFlags(t *testing.T) { - t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocFormsGet404Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} - var fernTestValueReadOnly bool + obj := &DocFormsGet404Response{} + var fernTestValueName DocFormsGet404ResponseName // Act - obj.SetReadOnly(fernTestValueReadOnly) + obj.SetName(fernTestValueName) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -222715,14 +265378,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioFlags(t *testin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRequired_MarksExplicit", func(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} - var fernTestValueRequired bool + obj := &DocFormsGet404Response{} + var fernTestValueCode DocFormsGet404ResponseCode // Act - obj.SetRequired(fernTestValueRequired) + obj.SetCode(fernTestValueCode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -222746,14 +265409,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioFlags(t *testin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoExport_MarksExplicit", func(t *testing.T) { + t.Run("SetMessage_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} - var fernTestValueNoExport bool + obj := &DocFormsGet404Response{} + var fernTestValueMessage string // Act - obj.SetNoExport(fernTestValueNoExport) + obj.SetMessage(fernTestValueMessage) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -222777,14 +265440,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioFlags(t *testin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRaw_MarksExplicit", func(t *testing.T) { + t.Run("SetDetails_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioFlags{} - var fernTestValueRaw int + obj := &DocFormsGet404Response{} + var fernTestValueDetails map[string]any // Act - obj.SetRaw(fernTestValueRaw) + obj.SetDetails(fernTestValueDetails) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -222810,144 +265473,184 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioFlags(t *testin } -func TestGettersDocFormsGet200ResponseFieldsItemRadioRef(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { +func TestSettersDocFormsImportData200Response(t *testing.T) { + t.Run("SetMeta", func(t *testing.T) { + obj := &DocFormsImportData200Response{} + var fernTestValueMeta *DocFormsImportData200ResponseMeta + obj.SetMeta(fernTestValueMeta) + assert.Equal(t, fernTestValueMeta, obj.Meta) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsImportData200Response(t *testing.T) { + t.Run("GetMeta", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioRef{} - var expected string - obj.Kind = expected + obj := &DocFormsImportData200Response{} + var expected *DocFormsImportData200ResponseMeta + obj.Meta = expected // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Equal(t, expected, obj.GetMeta(), "getter should return the property value") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetMeta_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioRef + // Arrange + obj := &DocFormsImportData200Response{} + obj.Meta = nil + + // Act & Assert + assert.Nil(t, obj.GetMeta(), "getter should return nil when property is nil") + }) + + t.Run("GetMeta_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsImportData200Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKind() // Should return zero value + _ = obj.GetMeta() // Should return zero value }) - t.Run("GetObjectNumber", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocFormsImportData200Response(t *testing.T) { + t.Run("SetMeta_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioRef{} - var expected *DocFormsGet200ResponseFieldsItemRadioRefObjectNumber - obj.ObjectNumber = expected + obj := &DocFormsImportData200Response{} + var fernTestValueMeta *DocFormsImportData200ResponseMeta - // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + // Act + obj.SetMeta(fernTestValueMeta) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioRef{} - obj.ObjectNumber = nil +} - // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") +func TestSettersDocFormsImportData200ResponseMeta(t *testing.T) { + t.Run("SetAffectedPages", func(t *testing.T) { + obj := &DocFormsImportData200ResponseMeta{} + var fernTestValueAffectedPages []*DocFormsImportData200ResponseMetaAffectedPagesItem + obj.SetAffectedPages(fernTestValueAffectedPages) + assert.Equal(t, fernTestValueAffectedPages, obj.AffectedPages) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioRef - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetObjectNumber() // Should return zero value + t.Run("SetCacheDelta", func(t *testing.T) { + obj := &DocFormsImportData200ResponseMeta{} + var fernTestValueCacheDelta *DocFormsImportData200ResponseMetaCacheDelta + obj.SetCacheDelta(fernTestValueCacheDelta) + assert.Equal(t, fernTestValueCacheDelta, obj.CacheDelta) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetFqn", func(t *testing.T) { +} + +func TestGettersDocFormsImportData200ResponseMeta(t *testing.T) { + t.Run("GetAffectedPages", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioRef{} - var expected *DocFormsGet200ResponseFieldsItemRadioRefFqn - obj.Fqn = expected + obj := &DocFormsImportData200ResponseMeta{} + var expected []*DocFormsImportData200ResponseMetaAffectedPagesItem + obj.AffectedPages = expected // Act & Assert - assert.Equal(t, expected, obj.GetFqn(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAffectedPages(), "getter should return the property value") }) - t.Run("GetFqn_NilValue", func(t *testing.T) { + t.Run("GetAffectedPages_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioRef{} - obj.Fqn = nil + obj := &DocFormsImportData200ResponseMeta{} + obj.AffectedPages = nil // Act & Assert - assert.Nil(t, obj.GetFqn(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetAffectedPages(), "getter should return nil when property is nil") }) - t.Run("GetFqn_NilReceiver", func(t *testing.T) { + t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioRef + var obj *DocFormsImportData200ResponseMeta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFqn() // Should return zero value + _ = obj.GetAffectedPages() // Should return zero value }) -} + t.Run("GetCacheDelta", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMeta{} + var expected *DocFormsImportData200ResponseMetaCacheDelta + obj.CacheDelta = expected -func TestSettersDocFormsGet200ResponseFieldsItemRadioRefFqn(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioRefFqn{} - var fernTestValueName string - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetCacheDelta(), "getter should return the property value") }) -} - -func TestGettersDocFormsGet200ResponseFieldsItemRadioRefFqn(t *testing.T) { - t.Run("GetName", func(t *testing.T) { + t.Run("GetCacheDelta_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioRefFqn{} - var expected string - obj.Name = expected + obj := &DocFormsImportData200ResponseMeta{} + obj.CacheDelta = nil // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Nil(t, obj.GetCacheDelta(), "getter should return nil when property is nil") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioRefFqn + var obj *DocFormsImportData200ResponseMeta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetName() // Should return zero value + _ = obj.GetCacheDelta() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioRefFqn(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocFormsImportData200ResponseMeta(t *testing.T) { + t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioRefFqn{} - var fernTestValueName string + obj := &DocFormsImportData200ResponseMeta{} + var fernTestValueAffectedPages []*DocFormsImportData200ResponseMetaAffectedPagesItem // Act - obj.SetName(fernTestValueName) + obj.SetAffectedPages(fernTestValueAffectedPages) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -222971,54 +265674,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioRefFqn(t *testi // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocFormsGet200ResponseFieldsItemRadioRefObjectNumber(t *testing.T) { - t.Run("SetFieldObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioRefObjectNumber{} - var fernTestValueFieldObjectNumber int - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) - assert.Equal(t, fernTestValueFieldObjectNumber, obj.FieldObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemRadioRefObjectNumber(t *testing.T) { - t.Run("GetFieldObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioRefObjectNumber{} - var expected int - obj.FieldObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetFieldObjectNumber(), "getter should return the property value") - }) - - t.Run("GetFieldObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioRefObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetFieldObjectNumber() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioRefObjectNumber(t *testing.T) { - t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetCacheDelta_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioRefObjectNumber{} - var fernTestValueFieldObjectNumber int + obj := &DocFormsImportData200ResponseMeta{} + var fernTestValueCacheDelta *DocFormsImportData200ResponseMetaCacheDelta // Act - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) + obj.SetCacheDelta(fernTestValueCacheDelta) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -223044,220 +265707,165 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioRefObjectNumber } -func TestGettersDocFormsGet200ResponseFieldsItemRadioValueEntry(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntry{} - var expected string - obj.Kind = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") - }) - - t.Run("GetKind_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioValueEntry - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetKind() // Should return zero value - }) - - t.Run("GetNone", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemRadioValueEntryNone - obj.None = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNone(), "getter should return the property value") +func TestSettersDocFormsImportData200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetNone_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntry{} - obj.None = nil - - // Act & Assert - assert.Nil(t, obj.GetNone(), "getter should return nil when property is nil") + t.Run("SetRevision", func(t *testing.T) { + obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocFormsImportData200ResponseMetaAffectedPagesItemRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetNone_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioValueEntry - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNone() // Should return zero value + t.Run("SetWeakAnnotationState", func(t *testing.T) { + obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState + obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) + assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetScalar", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemRadioValueEntryScalar - obj.Scalar = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetScalar(), "getter should return the property value") - }) +} - t.Run("GetScalar_NilValue", func(t *testing.T) { +func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntry{} - obj.Scalar = nil + obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Nil(t, obj.GetScalar(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetScalar_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioValueEntry + var obj *DocFormsImportData200ResponseMetaAffectedPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetScalar() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetArray", func(t *testing.T) { + t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemRadioValueEntryArray - obj.Array = expected + obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} + var expected *DocFormsImportData200ResponseMetaAffectedPagesItemRevision + obj.Revision = expected // Act & Assert - assert.Equal(t, expected, obj.GetArray(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") }) - t.Run("GetArray_NilValue", func(t *testing.T) { + t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntry{} - obj.Array = nil + obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} + obj.Revision = nil // Act & Assert - assert.Nil(t, obj.GetArray(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") }) - t.Run("GetArray_NilReceiver", func(t *testing.T) { + t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioValueEntry + var obj *DocFormsImportData200ResponseMetaAffectedPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetArray() // Should return zero value + _ = obj.GetRevision() // Should return zero value }) - t.Run("GetUnsupported", func(t *testing.T) { + t.Run("GetWeakAnnotationState", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemRadioValueEntryUnsupported - obj.Unsupported = expected + obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} + var expected *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState + obj.WeakAnnotationState = expected // Act & Assert - assert.Equal(t, expected, obj.GetUnsupported(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWeakAnnotationState(), "getter should return the property value") }) - t.Run("GetUnsupported_NilValue", func(t *testing.T) { + t.Run("GetWeakAnnotationState_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntry{} - obj.Unsupported = nil + obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} + obj.WeakAnnotationState = nil // Act & Assert - assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetWeakAnnotationState(), "getter should return nil when property is nil") }) - t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { + t.Run("GetWeakAnnotationState_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioValueEntry + var obj *DocFormsImportData200ResponseMetaAffectedPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUnsupported() // Should return zero value - }) - -} - -func TestSettersDocFormsGet200ResponseFieldsItemRadioValueEntryArray(t *testing.T) { - t.Run("SetValues", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryArray{} - var fernTestValueValues []string - obj.SetValues(fernTestValueValues) - assert.Equal(t, fernTestValueValues, obj.Values) - assert.NotNil(t, obj.explicitFields) + _ = obj.GetWeakAnnotationState() // Should return zero value }) } -func TestGettersDocFormsGet200ResponseFieldsItemRadioValueEntryArray(t *testing.T) { - t.Run("GetValues", func(t *testing.T) { +func TestSettersMarkExplicitDocFormsImportData200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryArray{} - var expected []string - obj.Values = expected + obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} + var fernTestValuePageObjectNumber int - // Act & Assert - assert.Equal(t, expected, obj.GetValues(), "getter should return the property value") - }) + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - t.Run("GetValues_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryArray{} - obj.Values = nil + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Nil(t, obj.GetValues(), "getter should return nil when property is nil") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetValues_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioValueEntryArray - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetValues() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioValueEntryArray(t *testing.T) { - t.Run("SetValues_MarksExplicit", func(t *testing.T) { + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryArray{} - var fernTestValueValues []string + obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocFormsImportData200ResponseMetaAffectedPagesItemRevision // Act - obj.SetValues(fernTestValueValues) + obj.SetRevision(fernTestValueRevision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -223281,54 +265889,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioValueEntryArray // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocFormsGet200ResponseFieldsItemRadioValueEntryScalar(t *testing.T) { - t.Run("SetValue", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryScalar{} - var fernTestValueValue string - obj.SetValue(fernTestValueValue) - assert.Equal(t, fernTestValueValue, obj.Value) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemRadioValueEntryScalar(t *testing.T) { - t.Run("GetValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryScalar{} - var expected string - obj.Value = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") - }) - - t.Run("GetValue_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioValueEntryScalar - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetValue() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioValueEntryScalar(t *testing.T) { - t.Run("SetValue_MarksExplicit", func(t *testing.T) { + t.Run("SetWeakAnnotationState_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioValueEntryScalar{} - var fernTestValueValue string + obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState // Act - obj.SetValue(fernTestValueValue) + obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -223354,77 +265922,61 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioValueEntryScala } -func TestSettersDocFormsGet200ResponseFieldsItemRadioWidgetsItem(t *testing.T) { - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) +func TestSettersDocFormsImportData200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} + var fernTestValueDocSessionID string + obj.SetDocSessionID(fernTestValueDocSessionID) + assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) assert.NotNil(t, obj.explicitFields) }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} + obj := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOnState", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} - var fernTestValueOnState string - obj.SetOnState(fernTestValueOnState) - assert.Equal(t, fernTestValueOnState, obj.OnState) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetExportValue", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} - var fernTestValueExportValue string - obj.SetExportValue(fernTestValueExportValue) - assert.Equal(t, fernTestValueExportValue, obj.ExportValue) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetChecked", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} - var fernTestValueChecked bool - obj.SetChecked(fernTestValueChecked) - assert.Equal(t, fernTestValueChecked, obj.Checked) + t.Run("SetGeneration", func(t *testing.T) { + obj := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseFieldsItemRadioWidgetsItem(t *testing.T) { - t.Run("GetAnnotObjectNumber", func(t *testing.T) { +func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} - var expected int - obj.AnnotObjectNumber = expected + obj := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} + var expected string + obj.DocSessionID = expected // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") }) - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioWidgetsItem + var obj *DocFormsImportData200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAnnotObjectNumber() // Should return zero value + _ = obj.GetDocSessionID() // Should return zero value }) t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} + obj := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} var expected int obj.PageObjectNumber = expected @@ -223434,7 +265986,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadioWidgetsItem(t *testing.T) { t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioWidgetsItem + var obj *DocFormsImportData200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -223444,86 +265996,40 @@ func TestGettersDocFormsGet200ResponseFieldsItemRadioWidgetsItem(t *testing.T) { _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetOnState", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} - var expected string - obj.OnState = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetOnState(), "getter should return the property value") - }) - - t.Run("GetOnState_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioWidgetsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetOnState() // Should return zero value - }) - - t.Run("GetExportValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} - var expected string - obj.ExportValue = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetExportValue(), "getter should return the property value") - }) - - t.Run("GetExportValue_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioWidgetsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetExportValue() // Should return zero value - }) - - t.Run("GetChecked", func(t *testing.T) { + t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} - var expected bool - obj.Checked = expected + obj := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} + var expected int + obj.Generation = expected // Act & Assert - assert.Equal(t, expected, obj.GetChecked(), "getter should return the property value") + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") }) - t.Run("GetChecked_NilReceiver", func(t *testing.T) { + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemRadioWidgetsItem + var obj *DocFormsImportData200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetChecked() // Should return zero value + _ = obj.GetGeneration() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioWidgetsItem(t *testing.T) { - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocFormsImportData200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} - var fernTestValueAnnotObjectNumber int + obj := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} + var fernTestValueDocSessionID string // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + obj.SetDocSessionID(fernTestValueDocSessionID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -223550,7 +266056,7 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioWidgetsItem(t * t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} + obj := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} var fernTestValuePageObjectNumber int // Act @@ -223578,14 +266084,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioWidgetsItem(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOnState_MarksExplicit", func(t *testing.T) { + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} - var fernTestValueOnState string + obj := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} + var fernTestValueGeneration int // Act - obj.SetOnState(fernTestValueOnState) + obj.SetGeneration(fernTestValueGeneration) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -223609,506 +266115,412 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemRadioWidgetsItem(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExportValue_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} - var fernTestValueExportValue string - - // Act - obj.SetExportValue(fernTestValueExportValue) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) +} - t.Run("SetChecked_MarksExplicit", func(t *testing.T) { +func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemRadioWidgetsItem{} - var fernTestValueChecked bool - - // Act - obj.SetChecked(fernTestValueChecked) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocFormsGet200ResponseFieldsItemSignature(t *testing.T) { - t.Run("SetRef", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var fernTestValueRef *DocFormsGet200ResponseFieldsItemSignatureRef - obj.SetRef(fernTestValueRef) - assert.Equal(t, fernTestValueRef, obj.Ref) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetFieldObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var fernTestValueFieldObjectNumber int - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) - assert.Equal(t, fernTestValueFieldObjectNumber, obj.FieldObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var fernTestValueName string - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetOrigin", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var fernTestValueOrigin DocFormsGet200ResponseFieldsItemSignatureOrigin - obj.SetOrigin(fernTestValueOrigin) - assert.Equal(t, fernTestValueOrigin, obj.Origin) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var fernTestValueFlags *DocFormsGet200ResponseFieldsItemSignatureFlags - obj.SetFlags(fernTestValueFlags) - assert.Equal(t, fernTestValueFlags, obj.Flags) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAlternateName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var fernTestValueAlternateName *string - obj.SetAlternateName(fernTestValueAlternateName) - assert.Equal(t, fernTestValueAlternateName, obj.AlternateName) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetMappingName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var fernTestValueMappingName *string - obj.SetMappingName(fernTestValueMappingName) - assert.Equal(t, fernTestValueMappingName, obj.MappingName) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetValueEntry", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemSignatureValueEntry - obj.SetValueEntry(fernTestValueValueEntry) - assert.Equal(t, fernTestValueValueEntry, obj.ValueEntry) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetDefaultValueEntry", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry - obj.SetDefaultValueEntry(fernTestValueDefaultValueEntry) - assert.Equal(t, fernTestValueDefaultValueEntry, obj.DefaultValueEntry) - assert.NotNil(t, obj.explicitFields) - }) + obj := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected string + obj.Kind = expected - t.Run("SetActions", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var fernTestValueActions *PdfFieldActions - obj.SetActions(fernTestValueActions) - assert.Equal(t, fernTestValueActions, obj.Actions) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") }) - t.Run("SetWidgets", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemSignatureWidgetsItem - obj.SetWidgets(fernTestValueWidgets) - assert.Equal(t, fernTestValueWidgets, obj.Widgets) - assert.NotNil(t, obj.explicitFields) + t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKind() // Should return zero value }) -} - -func TestGettersDocFormsGet200ResponseFieldsItemSignature(t *testing.T) { - t.Run("GetRef", func(t *testing.T) { + t.Run("GetUnknown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var expected *DocFormsGet200ResponseFieldsItemSignatureRef - obj.Ref = expected + obj := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + obj.Unknown = expected // Act & Assert - assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") }) - t.Run("GetRef_NilValue", func(t *testing.T) { + t.Run("GetUnknown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - obj.Ref = nil + obj := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj.Unknown = nil // Act & Assert - assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") }) - t.Run("GetRef_NilReceiver", func(t *testing.T) { + t.Run("GetUnknown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignature + var obj *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRef() // Should return zero value + _ = obj.GetUnknown() // Should return zero value }) - t.Run("GetFieldObjectNumber", func(t *testing.T) { + t.Run("GetKnown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var expected int - obj.FieldObjectNumber = expected + obj := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + obj.Known = expected // Act & Assert - assert.Equal(t, expected, obj.GetFieldObjectNumber(), "getter should return the property value") - }) - - t.Run("GetFieldObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignature - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetFieldObjectNumber() // Should return zero value + assert.Equal(t, expected, obj.GetKnown(), "getter should return the property value") }) - t.Run("GetName", func(t *testing.T) { + t.Run("GetKnown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var expected string - obj.Name = expected + obj := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj.Known = nil // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Nil(t, obj.GetKnown(), "getter should return nil when property is nil") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetKnown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignature + var obj *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetName() // Should return zero value + _ = obj.GetKnown() // Should return zero value }) - t.Run("GetOrigin", func(t *testing.T) { +} + +func TestSettersDocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("SetHasAnyWeakAnnotations", func(t *testing.T) { + obj := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + var fernTestValueHasAnyWeakAnnotations bool + obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) + assert.Equal(t, fernTestValueHasAnyWeakAnnotations, obj.HasAnyWeakAnnotations) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var expected DocFormsGet200ResponseFieldsItemSignatureOrigin - obj.Origin = expected + obj := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + var expected bool + obj.HasAnyWeakAnnotations = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrigin(), "getter should return the property value") + assert.Equal(t, expected, obj.GetHasAnyWeakAnnotations(), "getter should return the property value") }) - t.Run("GetOrigin_NilReceiver", func(t *testing.T) { + t.Run("GetHasAnyWeakAnnotations_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignature + var obj *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrigin() // Should return zero value + _ = obj.GetHasAnyWeakAnnotations() // Should return zero value }) - t.Run("GetFlags", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var expected *DocFormsGet200ResponseFieldsItemSignatureFlags - obj.Flags = expected + obj := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + var fernTestValueHasAnyWeakAnnotations bool - // Act & Assert - assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") + // Act + obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetFlags_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - obj.Flags = nil +} - // Act & Assert - assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") +func TestSettersDocFormsImportData200ResponseMetaCacheDelta(t *testing.T) { + t.Run("SetPreviousDocVersion", func(t *testing.T) { + obj := &DocFormsImportData200ResponseMetaCacheDelta{} + var fernTestValuePreviousDocVersion int + obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) + assert.Equal(t, fernTestValuePreviousDocVersion, obj.PreviousDocVersion) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetFlags_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignature - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetFlags() // Should return zero value + t.Run("SetDocVersion", func(t *testing.T) { + obj := &DocFormsImportData200ResponseMetaCacheDelta{} + var fernTestValueDocVersion int + obj.SetDocVersion(fernTestValueDocVersion) + assert.Equal(t, fernTestValueDocVersion, obj.DocVersion) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetAlternateName", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var expected *string - obj.AlternateName = expected + t.Run("SetAnnotationsVersion", func(t *testing.T) { + obj := &DocFormsImportData200ResponseMetaCacheDelta{} + var fernTestValueAnnotationsVersion *int + obj.SetAnnotationsVersion(fernTestValueAnnotationsVersion) + assert.Equal(t, fernTestValueAnnotationsVersion, obj.AnnotationsVersion) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Equal(t, expected, obj.GetAlternateName(), "getter should return the property value") + t.Run("SetLayerVersion", func(t *testing.T) { + obj := &DocFormsImportData200ResponseMetaCacheDelta{} + var fernTestValueLayerVersion *int + obj.SetLayerVersion(fernTestValueLayerVersion) + assert.Equal(t, fernTestValueLayerVersion, obj.LayerVersion) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetAlternateName_NilValue", func(t *testing.T) { + t.Run("SetWorking", func(t *testing.T) { + obj := &DocFormsImportData200ResponseMetaCacheDelta{} + var fernTestValueWorking *bool + obj.SetWorking(fernTestValueWorking) + assert.Equal(t, fernTestValueWorking, obj.Working) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPages", func(t *testing.T) { + obj := &DocFormsImportData200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocFormsImportData200ResponseMetaCacheDeltaPagesItem + obj.SetPages(fernTestValuePages) + assert.Equal(t, fernTestValuePages, obj.Pages) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsImportData200ResponseMetaCacheDelta(t *testing.T) { + t.Run("GetPreviousDocVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - obj.AlternateName = nil + obj := &DocFormsImportData200ResponseMetaCacheDelta{} + var expected int + obj.PreviousDocVersion = expected // Act & Assert - assert.Nil(t, obj.GetAlternateName(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetPreviousDocVersion(), "getter should return the property value") }) - t.Run("GetAlternateName_NilReceiver", func(t *testing.T) { + t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignature + var obj *DocFormsImportData200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAlternateName() // Should return zero value - }) - - t.Run("GetMappingName", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var expected *string - obj.MappingName = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetMappingName(), "getter should return the property value") + _ = obj.GetPreviousDocVersion() // Should return zero value }) - t.Run("GetMappingName_NilValue", func(t *testing.T) { + t.Run("GetDocVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - obj.MappingName = nil + obj := &DocFormsImportData200ResponseMetaCacheDelta{} + var expected int + obj.DocVersion = expected // Act & Assert - assert.Nil(t, obj.GetMappingName(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetDocVersion(), "getter should return the property value") }) - t.Run("GetMappingName_NilReceiver", func(t *testing.T) { + t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignature + var obj *DocFormsImportData200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetMappingName() // Should return zero value + _ = obj.GetDocVersion() // Should return zero value }) - t.Run("GetValueEntry", func(t *testing.T) { + t.Run("GetAnnotationsVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var expected *DocFormsGet200ResponseFieldsItemSignatureValueEntry - obj.ValueEntry = expected + obj := &DocFormsImportData200ResponseMetaCacheDelta{} + var expected *int + obj.AnnotationsVersion = expected // Act & Assert - assert.Equal(t, expected, obj.GetValueEntry(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAnnotationsVersion(), "getter should return the property value") }) - t.Run("GetValueEntry_NilValue", func(t *testing.T) { + t.Run("GetAnnotationsVersion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - obj.ValueEntry = nil + obj := &DocFormsImportData200ResponseMetaCacheDelta{} + obj.AnnotationsVersion = nil // Act & Assert - assert.Nil(t, obj.GetValueEntry(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetAnnotationsVersion(), "getter should return nil when property is nil") }) - t.Run("GetValueEntry_NilReceiver", func(t *testing.T) { + t.Run("GetAnnotationsVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignature + var obj *DocFormsImportData200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetValueEntry() // Should return zero value + _ = obj.GetAnnotationsVersion() // Should return zero value }) - t.Run("GetDefaultValueEntry", func(t *testing.T) { + t.Run("GetLayerVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var expected *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry - obj.DefaultValueEntry = expected + obj := &DocFormsImportData200ResponseMetaCacheDelta{} + var expected *int + obj.LayerVersion = expected // Act & Assert - assert.Equal(t, expected, obj.GetDefaultValueEntry(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLayerVersion(), "getter should return the property value") }) - t.Run("GetDefaultValueEntry_NilValue", func(t *testing.T) { + t.Run("GetLayerVersion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - obj.DefaultValueEntry = nil + obj := &DocFormsImportData200ResponseMetaCacheDelta{} + obj.LayerVersion = nil // Act & Assert - assert.Nil(t, obj.GetDefaultValueEntry(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetLayerVersion(), "getter should return nil when property is nil") }) - t.Run("GetDefaultValueEntry_NilReceiver", func(t *testing.T) { + t.Run("GetLayerVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignature + var obj *DocFormsImportData200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDefaultValueEntry() // Should return zero value + _ = obj.GetLayerVersion() // Should return zero value }) - t.Run("GetActions", func(t *testing.T) { + t.Run("GetWorking", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var expected *PdfFieldActions - obj.Actions = expected + obj := &DocFormsImportData200ResponseMetaCacheDelta{} + var expected *bool + obj.Working = expected // Act & Assert - assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWorking(), "getter should return the property value") }) - t.Run("GetActions_NilValue", func(t *testing.T) { + t.Run("GetWorking_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - obj.Actions = nil + obj := &DocFormsImportData200ResponseMetaCacheDelta{} + obj.Working = nil // Act & Assert - assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetWorking(), "getter should return nil when property is nil") }) - t.Run("GetActions_NilReceiver", func(t *testing.T) { + t.Run("GetWorking_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignature + var obj *DocFormsImportData200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetActions() // Should return zero value + _ = obj.GetWorking() // Should return zero value }) - t.Run("GetWidgets", func(t *testing.T) { + t.Run("GetPages", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var expected []*DocFormsGet200ResponseFieldsItemSignatureWidgetsItem - obj.Widgets = expected + obj := &DocFormsImportData200ResponseMetaCacheDelta{} + var expected []*DocFormsImportData200ResponseMetaCacheDeltaPagesItem + obj.Pages = expected // Act & Assert - assert.Equal(t, expected, obj.GetWidgets(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPages(), "getter should return the property value") }) - t.Run("GetWidgets_NilValue", func(t *testing.T) { + t.Run("GetPages_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - obj.Widgets = nil + obj := &DocFormsImportData200ResponseMetaCacheDelta{} + obj.Pages = nil // Act & Assert - assert.Nil(t, obj.GetWidgets(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPages(), "getter should return nil when property is nil") }) - t.Run("GetWidgets_NilReceiver", func(t *testing.T) { + t.Run("GetPages_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignature + var obj *DocFormsImportData200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetWidgets() // Should return zero value + _ = obj.GetPages() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignature(t *testing.T) { - t.Run("SetRef_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocFormsImportData200ResponseMetaCacheDelta(t *testing.T) { + t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var fernTestValueRef *DocFormsGet200ResponseFieldsItemSignatureRef + obj := &DocFormsImportData200ResponseMetaCacheDelta{} + var fernTestValuePreviousDocVersion int // Act - obj.SetRef(fernTestValueRef) + obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -224132,14 +266544,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignature(t *testing // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetDocVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var fernTestValueFieldObjectNumber int + obj := &DocFormsImportData200ResponseMetaCacheDelta{} + var fernTestValueDocVersion int // Act - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) + obj.SetDocVersion(fernTestValueDocVersion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -224163,14 +266575,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignature(t *testing // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Run("SetAnnotationsVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var fernTestValueName string + obj := &DocFormsImportData200ResponseMetaCacheDelta{} + var fernTestValueAnnotationsVersion *int // Act - obj.SetName(fernTestValueName) + obj.SetAnnotationsVersion(fernTestValueAnnotationsVersion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -224194,14 +266606,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignature(t *testing // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrigin_MarksExplicit", func(t *testing.T) { + t.Run("SetLayerVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var fernTestValueOrigin DocFormsGet200ResponseFieldsItemSignatureOrigin + obj := &DocFormsImportData200ResponseMetaCacheDelta{} + var fernTestValueLayerVersion *int // Act - obj.SetOrigin(fernTestValueOrigin) + obj.SetLayerVersion(fernTestValueLayerVersion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -224225,14 +266637,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignature(t *testing // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFlags_MarksExplicit", func(t *testing.T) { + t.Run("SetWorking_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var fernTestValueFlags *DocFormsGet200ResponseFieldsItemSignatureFlags + obj := &DocFormsImportData200ResponseMetaCacheDelta{} + var fernTestValueWorking *bool // Act - obj.SetFlags(fernTestValueFlags) + obj.SetWorking(fernTestValueWorking) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -224256,14 +266668,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignature(t *testing // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAlternateName_MarksExplicit", func(t *testing.T) { + t.Run("SetPages_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var fernTestValueAlternateName *string + obj := &DocFormsImportData200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocFormsImportData200ResponseMetaCacheDeltaPagesItem // Act - obj.SetAlternateName(fernTestValueAlternateName) + obj.SetPages(fernTestValuePages) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -224287,107 +266699,95 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignature(t *testing // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetMappingName_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var fernTestValueMappingName *string - - // Act - obj.SetMappingName(fernTestValueMappingName) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") +} - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } +func TestSettersDocFormsImportData200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItem{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("SetCache", func(t *testing.T) { + obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache + obj.SetCache(fernTestValueCache) + assert.Equal(t, fernTestValueCache, obj.Cache) + assert.NotNil(t, obj.explicitFields) }) - t.Run("SetValueEntry_MarksExplicit", func(t *testing.T) { +} + +func TestGettersDocFormsImportData200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemSignatureValueEntry - - // Act - obj.SetValueEntry(fernTestValueValueEntry) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItem{} + var expected int + obj.PageObjectNumber = expected - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsImportData200ResponseMetaCacheDeltaPagesItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("SetDefaultValueEntry_MarksExplicit", func(t *testing.T) { + t.Run("GetCache", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry + obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItem{} + var expected *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache + obj.Cache = expected - // Act - obj.SetDefaultValueEntry(fernTestValueDefaultValueEntry) + // Act & Assert + assert.Equal(t, expected, obj.GetCache(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetCache_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItem{} + obj.Cache = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetCache(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetCache_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsImportData200ResponseMetaCacheDeltaPagesItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCache() // Should return zero value }) - t.Run("SetActions_MarksExplicit", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocFormsImportData200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var fernTestValueActions *PdfFieldActions + obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItem{} + var fernTestValuePageObjectNumber int // Act - obj.SetActions(fernTestValueActions) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -224411,14 +266811,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignature(t *testing // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWidgets_MarksExplicit", func(t *testing.T) { + t.Run("SetCache_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignature{} - var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemSignatureWidgetsItem + obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache // Act - obj.SetWidgets(fernTestValueWidgets) + obj.SetCache(fernTestValueCache) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -224444,220 +266844,83 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignature(t *testing } -func TestGettersDocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry{} - var expected string - obj.Kind = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") - }) - - t.Run("GetKind_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetKind() // Should return zero value - }) - - t.Run("GetNone", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryNone - obj.None = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNone(), "getter should return the property value") - }) - - t.Run("GetNone_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry{} - obj.None = nil - - // Act & Assert - assert.Nil(t, obj.GetNone(), "getter should return nil when property is nil") - }) - - t.Run("GetNone_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNone() // Should return zero value - }) - - t.Run("GetScalar", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar - obj.Scalar = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetScalar(), "getter should return the property value") - }) - - t.Run("GetScalar_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry{} - obj.Scalar = nil - - // Act & Assert - assert.Nil(t, obj.GetScalar(), "getter should return nil when property is nil") - }) - - t.Run("GetScalar_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetScalar() // Should return zero value - }) - - t.Run("GetArray", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray - obj.Array = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetArray(), "getter should return the property value") - }) - - t.Run("GetArray_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry{} - obj.Array = nil - - // Act & Assert - assert.Nil(t, obj.GetArray(), "getter should return nil when property is nil") - }) - - t.Run("GetArray_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetArray() // Should return zero value +func TestSettersDocFormsImportData200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("SetContentVersion", func(t *testing.T) { + obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache{} + var fernTestValueContentVersion int + obj.SetContentVersion(fernTestValueContentVersion) + assert.Equal(t, fernTestValueContentVersion, obj.ContentVersion) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetUnsupported", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryUnsupported - obj.Unsupported = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetUnsupported(), "getter should return the property value") + t.Run("SetAnnotationVersion", func(t *testing.T) { + obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache{} + var fernTestValueAnnotationVersion int + obj.SetAnnotationVersion(fernTestValueAnnotationVersion) + assert.Equal(t, fernTestValueAnnotationVersion, obj.AnnotationVersion) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetUnsupported_NilValue", func(t *testing.T) { +} + +func TestGettersDocFormsImportData200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("GetContentVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry{} - obj.Unsupported = nil + obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache{} + var expected int + obj.ContentVersion = expected // Act & Assert - assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetContentVersion(), "getter should return the property value") }) - t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { + t.Run("GetContentVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntry + var obj *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUnsupported() // Should return zero value - }) - -} - -func TestSettersDocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray(t *testing.T) { - t.Run("SetValues", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray{} - var fernTestValueValues []string - obj.SetValues(fernTestValueValues) - assert.Equal(t, fernTestValueValues, obj.Values) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray(t *testing.T) { - t.Run("GetValues", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray{} - var expected []string - obj.Values = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetValues(), "getter should return the property value") + _ = obj.GetContentVersion() // Should return zero value }) - t.Run("GetValues_NilValue", func(t *testing.T) { + t.Run("GetAnnotationVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray{} - obj.Values = nil + obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache{} + var expected int + obj.AnnotationVersion = expected // Act & Assert - assert.Nil(t, obj.GetValues(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetAnnotationVersion(), "getter should return the property value") }) - t.Run("GetValues_NilReceiver", func(t *testing.T) { + t.Run("GetAnnotationVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray + var obj *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetValues() // Should return zero value + _ = obj.GetAnnotationVersion() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray(t *testing.T) { - t.Run("SetValues_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocFormsImportData200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("SetContentVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryArray{} - var fernTestValueValues []string + obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache{} + var fernTestValueContentVersion int // Act - obj.SetValues(fernTestValueValues) + obj.SetContentVersion(fernTestValueContentVersion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -224681,54 +266944,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureDefaultValu // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar(t *testing.T) { - t.Run("SetValue", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar{} - var fernTestValueValue string - obj.SetValue(fernTestValueValue) - assert.Equal(t, fernTestValueValue, obj.Value) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar(t *testing.T) { - t.Run("GetValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar{} - var expected string - obj.Value = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") - }) - - t.Run("GetValue_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetValue() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar(t *testing.T) { - t.Run("SetValue_MarksExplicit", func(t *testing.T) { + t.Run("SetAnnotationVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureDefaultValueEntryScalar{} - var fernTestValueValue string + obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache{} + var fernTestValueAnnotationVersion int // Act - obj.SetValue(fernTestValueValue) + obj.SetAnnotationVersion(fernTestValueAnnotationVersion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -224754,145 +266977,155 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureDefaultValu } -func TestSettersDocFormsGet200ResponseFieldsItemSignatureFlags(t *testing.T) { - t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} - var fernTestValueReadOnly bool - obj.SetReadOnly(fernTestValueReadOnly) - assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) +func TestSettersDocFormsImportData400Response(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + obj := &DocFormsImportData400Response{} + var fernTestValueName DocFormsImportData400ResponseName + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRequired", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} - var fernTestValueRequired bool - obj.SetRequired(fernTestValueRequired) - assert.Equal(t, fernTestValueRequired, obj.Required) + t.Run("SetCode", func(t *testing.T) { + obj := &DocFormsImportData400Response{} + var fernTestValueCode DocFormsImportData400ResponseCode + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNoExport", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} - var fernTestValueNoExport bool - obj.SetNoExport(fernTestValueNoExport) - assert.Equal(t, fernTestValueNoExport, obj.NoExport) + t.Run("SetMessage", func(t *testing.T) { + obj := &DocFormsImportData400Response{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRaw", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} - var fernTestValueRaw int - obj.SetRaw(fernTestValueRaw) - assert.Equal(t, fernTestValueRaw, obj.Raw) + t.Run("SetDetails", func(t *testing.T) { + obj := &DocFormsImportData400Response{} + var fernTestValueDetails map[string]any + obj.SetDetails(fernTestValueDetails) + assert.Equal(t, fernTestValueDetails, obj.Details) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseFieldsItemSignatureFlags(t *testing.T) { - t.Run("GetReadOnly", func(t *testing.T) { +func TestGettersDocFormsImportData400Response(t *testing.T) { + t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} - var expected bool - obj.ReadOnly = expected + obj := &DocFormsImportData400Response{} + var expected DocFormsImportData400ResponseName + obj.Name = expected // Act & Assert - assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") }) - t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { + t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureFlags + var obj *DocFormsImportData400Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReadOnly() // Should return zero value + _ = obj.GetName() // Should return zero value }) - t.Run("GetRequired", func(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} - var expected bool - obj.Required = expected + obj := &DocFormsImportData400Response{} + var expected DocFormsImportData400ResponseCode + obj.Code = expected // Act & Assert - assert.Equal(t, expected, obj.GetRequired(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") }) - t.Run("GetRequired_NilReceiver", func(t *testing.T) { + t.Run("GetCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureFlags + var obj *DocFormsImportData400Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRequired() // Should return zero value + _ = obj.GetCode() // Should return zero value }) - t.Run("GetNoExport", func(t *testing.T) { + t.Run("GetMessage", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} - var expected bool - obj.NoExport = expected + obj := &DocFormsImportData400Response{} + var expected string + obj.Message = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoExport(), "getter should return the property value") + assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") }) - t.Run("GetNoExport_NilReceiver", func(t *testing.T) { + t.Run("GetMessage_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureFlags + var obj *DocFormsImportData400Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNoExport() // Should return zero value + _ = obj.GetMessage() // Should return zero value }) - t.Run("GetRaw", func(t *testing.T) { + t.Run("GetDetails", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} - var expected int - obj.Raw = expected + obj := &DocFormsImportData400Response{} + var expected map[string]any + obj.Details = expected // Act & Assert - assert.Equal(t, expected, obj.GetRaw(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") }) - t.Run("GetRaw_NilReceiver", func(t *testing.T) { + t.Run("GetDetails_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureFlags + // Arrange + obj := &DocFormsImportData400Response{} + obj.Details = nil + + // Act & Assert + assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + }) + + t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsImportData400Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRaw() // Should return zero value + _ = obj.GetDetails() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureFlags(t *testing.T) { - t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocFormsImportData400Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} - var fernTestValueReadOnly bool + obj := &DocFormsImportData400Response{} + var fernTestValueName DocFormsImportData400ResponseName // Act - obj.SetReadOnly(fernTestValueReadOnly) + obj.SetName(fernTestValueName) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -224916,14 +267149,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureFlags(t *te // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRequired_MarksExplicit", func(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} - var fernTestValueRequired bool + obj := &DocFormsImportData400Response{} + var fernTestValueCode DocFormsImportData400ResponseCode // Act - obj.SetRequired(fernTestValueRequired) + obj.SetCode(fernTestValueCode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -224947,14 +267180,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureFlags(t *te // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoExport_MarksExplicit", func(t *testing.T) { + t.Run("SetMessage_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} - var fernTestValueNoExport bool + obj := &DocFormsImportData400Response{} + var fernTestValueMessage string // Act - obj.SetNoExport(fernTestValueNoExport) + obj.SetMessage(fernTestValueMessage) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -224978,14 +267211,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureFlags(t *te // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRaw_MarksExplicit", func(t *testing.T) { + t.Run("SetDetails_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureFlags{} - var fernTestValueRaw int + obj := &DocFormsImportData400Response{} + var fernTestValueDetails map[string]any // Act - obj.SetRaw(fernTestValueRaw) + obj.SetDetails(fernTestValueDetails) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -225011,141 +267244,152 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureFlags(t *te } -func TestGettersDocFormsGet200ResponseFieldsItemSignatureRef(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { +func TestSettersDocFormsImportData404Response(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + obj := &DocFormsImportData404Response{} + var fernTestValueName DocFormsImportData404ResponseName + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCode", func(t *testing.T) { + obj := &DocFormsImportData404Response{} + var fernTestValueCode DocFormsImportData404ResponseCode + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &DocFormsImportData404Response{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDetails", func(t *testing.T) { + obj := &DocFormsImportData404Response{} + var fernTestValueDetails map[string]any + obj.SetDetails(fernTestValueDetails) + assert.Equal(t, fernTestValueDetails, obj.Details) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsImportData404Response(t *testing.T) { + t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureRef{} - var expected string - obj.Kind = expected + obj := &DocFormsImportData404Response{} + var expected DocFormsImportData404ResponseName + obj.Name = expected // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureRef + var obj *DocFormsImportData404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKind() // Should return zero value - }) - - t.Run("GetObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureRef{} - var expected *DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber - obj.ObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + _ = obj.GetName() // Should return zero value }) - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureRef{} - obj.ObjectNumber = nil + obj := &DocFormsImportData404Response{} + var expected DocFormsImportData404ResponseCode + obj.Code = expected // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") }) - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureRef + var obj *DocFormsImportData404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetObjectNumber() // Should return zero value - }) - - t.Run("GetFqn", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureRef{} - var expected *DocFormsGet200ResponseFieldsItemSignatureRefFqn - obj.Fqn = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetFqn(), "getter should return the property value") + _ = obj.GetCode() // Should return zero value }) - t.Run("GetFqn_NilValue", func(t *testing.T) { + t.Run("GetMessage", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureRef{} - obj.Fqn = nil + obj := &DocFormsImportData404Response{} + var expected string + obj.Message = expected // Act & Assert - assert.Nil(t, obj.GetFqn(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") }) - t.Run("GetFqn_NilReceiver", func(t *testing.T) { + t.Run("GetMessage_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureRef + var obj *DocFormsImportData404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFqn() // Should return zero value + _ = obj.GetMessage() // Should return zero value }) -} + t.Run("GetDetails", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsImportData404Response{} + var expected map[string]any + obj.Details = expected -func TestSettersDocFormsGet200ResponseFieldsItemSignatureRefFqn(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureRefFqn{} - var fernTestValueName string - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") }) -} - -func TestGettersDocFormsGet200ResponseFieldsItemSignatureRefFqn(t *testing.T) { - t.Run("GetName", func(t *testing.T) { + t.Run("GetDetails_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureRefFqn{} - var expected string - obj.Name = expected + obj := &DocFormsImportData404Response{} + obj.Details = nil // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetDetails_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureRefFqn + var obj *DocFormsImportData404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetName() // Should return zero value + _ = obj.GetDetails() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureRefFqn(t *testing.T) { +func TestSettersMarkExplicitDocFormsImportData404Response(t *testing.T) { t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureRefFqn{} - var fernTestValueName string + obj := &DocFormsImportData404Response{} + var fernTestValueName DocFormsImportData404ResponseName // Act obj.SetName(fernTestValueName) @@ -225172,54 +267416,45 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureRefFqn(t *t // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocFormsGet200ResponseFieldsItemSignatureRefObjectNumber(t *testing.T) { - t.Run("SetFieldObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber{} - var fernTestValueFieldObjectNumber int - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) - assert.Equal(t, fernTestValueFieldObjectNumber, obj.FieldObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemSignatureRefObjectNumber(t *testing.T) { - t.Run("GetFieldObjectNumber", func(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber{} - var expected int - obj.FieldObjectNumber = expected + obj := &DocFormsImportData404Response{} + var fernTestValueCode DocFormsImportData404ResponseCode - // Act & Assert - assert.Equal(t, expected, obj.GetFieldObjectNumber(), "getter should return the property value") - }) + // Act + obj.SetCode(fernTestValueCode) - t.Run("GetFieldObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetFieldObjectNumber() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") -} + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureRefObjectNumber(t *testing.T) { - t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMessage_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureRefObjectNumber{} - var fernTestValueFieldObjectNumber int + obj := &DocFormsImportData404Response{} + var fernTestValueMessage string // Act - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) + obj.SetMessage(fernTestValueMessage) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -225243,222 +267478,217 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureRefObjectNu // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestGettersDocFormsGet200ResponseFieldsItemSignatureValueEntry(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { + t.Run("SetDetails_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntry{} - var expected string - obj.Kind = expected + obj := &DocFormsImportData404Response{} + var fernTestValueDetails map[string]any - // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") - }) + // Act + obj.SetDetails(fernTestValueDetails) - t.Run("GetKind_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureValueEntry - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetKind() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("GetNone", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemSignatureValueEntryNone - obj.None = expected + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - // Act & Assert - assert.Equal(t, expected, obj.GetNone(), "getter should return the property value") + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetNone_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntry{} - obj.None = nil +} - // Act & Assert - assert.Nil(t, obj.GetNone(), "getter should return nil when property is nil") +func TestSettersDocFormsReset200Response(t *testing.T) { + t.Run("SetMeta", func(t *testing.T) { + obj := &DocFormsReset200Response{} + var fernTestValueMeta *DocFormsReset200ResponseMeta + obj.SetMeta(fernTestValueMeta) + assert.Equal(t, fernTestValueMeta, obj.Meta) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetNone_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureValueEntry - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNone() // Should return zero value - }) +} - t.Run("GetScalar", func(t *testing.T) { +func TestGettersDocFormsReset200Response(t *testing.T) { + t.Run("GetMeta", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar - obj.Scalar = expected + obj := &DocFormsReset200Response{} + var expected *DocFormsReset200ResponseMeta + obj.Meta = expected // Act & Assert - assert.Equal(t, expected, obj.GetScalar(), "getter should return the property value") + assert.Equal(t, expected, obj.GetMeta(), "getter should return the property value") }) - t.Run("GetScalar_NilValue", func(t *testing.T) { + t.Run("GetMeta_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntry{} - obj.Scalar = nil + obj := &DocFormsReset200Response{} + obj.Meta = nil // Act & Assert - assert.Nil(t, obj.GetScalar(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetMeta(), "getter should return nil when property is nil") }) - t.Run("GetScalar_NilReceiver", func(t *testing.T) { + t.Run("GetMeta_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureValueEntry + var obj *DocFormsReset200Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetScalar() // Should return zero value + _ = obj.GetMeta() // Should return zero value }) - t.Run("GetArray", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocFormsReset200Response(t *testing.T) { + t.Run("SetMeta_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemSignatureValueEntryArray - obj.Array = expected + obj := &DocFormsReset200Response{} + var fernTestValueMeta *DocFormsReset200ResponseMeta - // Act & Assert - assert.Equal(t, expected, obj.GetArray(), "getter should return the property value") + // Act + obj.SetMeta(fernTestValueMeta) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetArray_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntry{} - obj.Array = nil +} - // Act & Assert - assert.Nil(t, obj.GetArray(), "getter should return nil when property is nil") +func TestSettersDocFormsReset200ResponseMeta(t *testing.T) { + t.Run("SetAffectedPages", func(t *testing.T) { + obj := &DocFormsReset200ResponseMeta{} + var fernTestValueAffectedPages []*DocFormsReset200ResponseMetaAffectedPagesItem + obj.SetAffectedPages(fernTestValueAffectedPages) + assert.Equal(t, fernTestValueAffectedPages, obj.AffectedPages) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetArray_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureValueEntry - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetArray() // Should return zero value + t.Run("SetCacheDelta", func(t *testing.T) { + obj := &DocFormsReset200ResponseMeta{} + var fernTestValueCacheDelta *DocFormsReset200ResponseMetaCacheDelta + obj.SetCacheDelta(fernTestValueCacheDelta) + assert.Equal(t, fernTestValueCacheDelta, obj.CacheDelta) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetUnsupported", func(t *testing.T) { +} + +func TestGettersDocFormsReset200ResponseMeta(t *testing.T) { + t.Run("GetAffectedPages", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemSignatureValueEntryUnsupported - obj.Unsupported = expected + obj := &DocFormsReset200ResponseMeta{} + var expected []*DocFormsReset200ResponseMetaAffectedPagesItem + obj.AffectedPages = expected // Act & Assert - assert.Equal(t, expected, obj.GetUnsupported(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAffectedPages(), "getter should return the property value") }) - t.Run("GetUnsupported_NilValue", func(t *testing.T) { + t.Run("GetAffectedPages_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntry{} - obj.Unsupported = nil + obj := &DocFormsReset200ResponseMeta{} + obj.AffectedPages = nil // Act & Assert - assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetAffectedPages(), "getter should return nil when property is nil") }) - t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { + t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureValueEntry + var obj *DocFormsReset200ResponseMeta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUnsupported() // Should return zero value - }) - -} - -func TestSettersDocFormsGet200ResponseFieldsItemSignatureValueEntryArray(t *testing.T) { - t.Run("SetValues", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryArray{} - var fernTestValueValues []string - obj.SetValues(fernTestValueValues) - assert.Equal(t, fernTestValueValues, obj.Values) - assert.NotNil(t, obj.explicitFields) + _ = obj.GetAffectedPages() // Should return zero value }) -} - -func TestGettersDocFormsGet200ResponseFieldsItemSignatureValueEntryArray(t *testing.T) { - t.Run("GetValues", func(t *testing.T) { + t.Run("GetCacheDelta", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryArray{} - var expected []string - obj.Values = expected + obj := &DocFormsReset200ResponseMeta{} + var expected *DocFormsReset200ResponseMetaCacheDelta + obj.CacheDelta = expected // Act & Assert - assert.Equal(t, expected, obj.GetValues(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCacheDelta(), "getter should return the property value") }) - t.Run("GetValues_NilValue", func(t *testing.T) { + t.Run("GetCacheDelta_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryArray{} - obj.Values = nil + obj := &DocFormsReset200ResponseMeta{} + obj.CacheDelta = nil // Act & Assert - assert.Nil(t, obj.GetValues(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCacheDelta(), "getter should return nil when property is nil") }) - t.Run("GetValues_NilReceiver", func(t *testing.T) { + t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureValueEntryArray + var obj *DocFormsReset200ResponseMeta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetValues() // Should return zero value + _ = obj.GetCacheDelta() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureValueEntryArray(t *testing.T) { - t.Run("SetValues_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocFormsReset200ResponseMeta(t *testing.T) { + t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryArray{} - var fernTestValueValues []string + obj := &DocFormsReset200ResponseMeta{} + var fernTestValueAffectedPages []*DocFormsReset200ResponseMetaAffectedPagesItem // Act - obj.SetValues(fernTestValueValues) + obj.SetAffectedPages(fernTestValueAffectedPages) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -225482,54 +267712,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureValueEntryA // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocFormsGet200ResponseFieldsItemSignatureValueEntryScalar(t *testing.T) { - t.Run("SetValue", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar{} - var fernTestValueValue string - obj.SetValue(fernTestValueValue) - assert.Equal(t, fernTestValueValue, obj.Value) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemSignatureValueEntryScalar(t *testing.T) { - t.Run("GetValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar{} - var expected string - obj.Value = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") - }) - - t.Run("GetValue_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetValue() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureValueEntryScalar(t *testing.T) { - t.Run("SetValue_MarksExplicit", func(t *testing.T) { + t.Run("SetCacheDelta_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureValueEntryScalar{} - var fernTestValueValue string + obj := &DocFormsReset200ResponseMeta{} + var fernTestValueCacheDelta *DocFormsReset200ResponseMetaCacheDelta // Act - obj.SetValue(fernTestValueValue) + obj.SetCacheDelta(fernTestValueCacheDelta) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -225555,83 +267745,134 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureValueEntryS } -func TestSettersDocFormsGet200ResponseFieldsItemSignatureWidgetsItem(t *testing.T) { - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureWidgetsItem{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - +func TestSettersDocFormsReset200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemSignatureWidgetsItem{} + obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) + t.Run("SetRevision", func(t *testing.T) { + obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocFormsReset200ResponseMetaAffectedPagesItemRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWeakAnnotationState", func(t *testing.T) { + obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState + obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) + assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) + assert.NotNil(t, obj.explicitFields) + }) + } -func TestGettersDocFormsGet200ResponseFieldsItemSignatureWidgetsItem(t *testing.T) { - t.Run("GetAnnotObjectNumber", func(t *testing.T) { +func TestGettersDocFormsReset200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureWidgetsItem{} + obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} var expected int - obj.AnnotObjectNumber = expected + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureWidgetsItem + var obj *DocFormsReset200ResponseMetaAffectedPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAnnotObjectNumber() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureWidgetsItem{} - var expected int - obj.PageObjectNumber = expected + obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} + var expected *DocFormsReset200ResponseMetaAffectedPagesItemRevision + obj.Revision = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemSignatureWidgetsItem + // Arrange + obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} + obj.Revision = nil + + // Act & Assert + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + }) + + t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsReset200ResponseMetaAffectedPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetRevision() // Should return zero value + }) + + t.Run("GetWeakAnnotationState", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} + var expected *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState + obj.WeakAnnotationState = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWeakAnnotationState(), "getter should return the property value") + }) + + t.Run("GetWeakAnnotationState_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} + obj.WeakAnnotationState = nil + + // Act & Assert + assert.Nil(t, obj.GetWeakAnnotationState(), "getter should return nil when property is nil") + }) + + t.Run("GetWeakAnnotationState_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsReset200ResponseMetaAffectedPagesItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWeakAnnotationState() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureWidgetsItem(t *testing.T) { - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocFormsReset200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureWidgetsItem{} - var fernTestValueAnnotObjectNumber int + obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} + var fernTestValuePageObjectNumber int // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -225655,14 +267896,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureWidgetsItem // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemSignatureWidgetsItem{} - var fernTestValuePageObjectNumber int + obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocFormsReset200ResponseMetaAffectedPagesItemRevision // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetRevision(fernTestValueRevision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -225686,640 +267927,731 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemSignatureWidgetsItem // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocFormsGet200ResponseFieldsItemText(t *testing.T) { - t.Run("SetRef", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueRef *DocFormsGet200ResponseFieldsItemTextRef - obj.SetRef(fernTestValueRef) - assert.Equal(t, fernTestValueRef, obj.Ref) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetFieldObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueFieldObjectNumber int - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) - assert.Equal(t, fernTestValueFieldObjectNumber, obj.FieldObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueName string - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetOrigin", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueOrigin DocFormsGet200ResponseFieldsItemTextOrigin - obj.SetOrigin(fernTestValueOrigin) - assert.Equal(t, fernTestValueOrigin, obj.Origin) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueFlags *DocFormsGet200ResponseFieldsItemTextFlags - obj.SetFlags(fernTestValueFlags) - assert.Equal(t, fernTestValueFlags, obj.Flags) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAlternateName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueAlternateName *string - obj.SetAlternateName(fernTestValueAlternateName) - assert.Equal(t, fernTestValueAlternateName, obj.AlternateName) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetMappingName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueMappingName *string - obj.SetMappingName(fernTestValueMappingName) - assert.Equal(t, fernTestValueMappingName, obj.MappingName) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetValueEntry", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemTextValueEntry - obj.SetValueEntry(fernTestValueValueEntry) - assert.Equal(t, fernTestValueValueEntry, obj.ValueEntry) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetDefaultValueEntry", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry - obj.SetDefaultValueEntry(fernTestValueDefaultValueEntry) - assert.Equal(t, fernTestValueDefaultValueEntry, obj.DefaultValueEntry) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("SetWeakAnnotationState_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState - t.Run("SetActions", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueActions *PdfFieldActions - obj.SetActions(fernTestValueActions) - assert.Equal(t, fernTestValueActions, obj.Actions) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) - t.Run("SetWidgets", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemTextWidgetsItem - obj.SetWidgets(fernTestValueWidgets) - assert.Equal(t, fernTestValueWidgets, obj.Widgets) - assert.NotNil(t, obj.explicitFields) - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("SetValue", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueValue string - obj.SetValue(fernTestValueValue) - assert.Equal(t, fernTestValueValue, obj.Value) - assert.NotNil(t, obj.explicitFields) - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("SetDefaultValue", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueDefaultValue string - obj.SetDefaultValue(fernTestValueDefaultValue) - assert.Equal(t, fernTestValueDefaultValue, obj.DefaultValue) - assert.NotNil(t, obj.explicitFields) + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetMaxLength", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueMaxLength *int - obj.SetMaxLength(fernTestValueMaxLength) - assert.Equal(t, fernTestValueMaxLength, obj.MaxLength) - assert.NotNil(t, obj.explicitFields) - }) +} - t.Run("SetMultiline", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueMultiline bool - obj.SetMultiline(fernTestValueMultiline) - assert.Equal(t, fernTestValueMultiline, obj.Multiline) +func TestSettersDocFormsReset200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocFormsReset200ResponseMetaAffectedPagesItemRevision{} + var fernTestValueDocSessionID string + obj.SetDocSessionID(fernTestValueDocSessionID) + assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPassword", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValuePassword bool - obj.SetPassword(fernTestValuePassword) - assert.Equal(t, fernTestValuePassword, obj.Password) + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocFormsReset200ResponseMetaAffectedPagesItemRevision{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetComb", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueComb bool - obj.SetComb(fernTestValueComb) - assert.Equal(t, fernTestValueComb, obj.Comb) + t.Run("SetGeneration", func(t *testing.T) { + obj := &DocFormsReset200ResponseMetaAffectedPagesItemRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseFieldsItemText(t *testing.T) { - t.Run("GetRef", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var expected *DocFormsGet200ResponseFieldsItemTextRef - obj.Ref = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") - }) - - t.Run("GetRef_NilValue", func(t *testing.T) { +func TestGettersDocFormsReset200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - obj.Ref = nil + obj := &DocFormsReset200ResponseMetaAffectedPagesItemRevision{} + var expected string + obj.DocSessionID = expected // Act & Assert - assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") }) - t.Run("GetRef_NilReceiver", func(t *testing.T) { + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemText + var obj *DocFormsReset200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRef() // Should return zero value + _ = obj.GetDocSessionID() // Should return zero value }) - t.Run("GetFieldObjectNumber", func(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} + obj := &DocFormsReset200ResponseMetaAffectedPagesItemRevision{} var expected int - obj.FieldObjectNumber = expected + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetFieldObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetFieldObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemText + var obj *DocFormsReset200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFieldObjectNumber() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetName", func(t *testing.T) { + t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var expected string - obj.Name = expected + obj := &DocFormsReset200ResponseMetaAffectedPagesItemRevision{} + var expected int + obj.Generation = expected // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemText + var obj *DocFormsReset200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetName() // Should return zero value + _ = obj.GetGeneration() // Should return zero value }) - t.Run("GetOrigin", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocFormsReset200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var expected DocFormsGet200ResponseFieldsItemTextOrigin - obj.Origin = expected + obj := &DocFormsReset200ResponseMetaAffectedPagesItemRevision{} + var fernTestValueDocSessionID string - // Act & Assert - assert.Equal(t, expected, obj.GetOrigin(), "getter should return the property value") + // Act + obj.SetDocSessionID(fernTestValueDocSessionID) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetOrigin_NilReceiver", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemText - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetOrigin() // Should return zero value + // Arrange + obj := &DocFormsReset200ResponseMetaAffectedPagesItemRevision{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetFlags", func(t *testing.T) { + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var expected *DocFormsGet200ResponseFieldsItemTextFlags - obj.Flags = expected + obj := &DocFormsReset200ResponseMetaAffectedPagesItemRevision{} + var fernTestValueGeneration int - // Act & Assert - assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") + // Act + obj.SetGeneration(fernTestValueGeneration) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetFlags_NilValue", func(t *testing.T) { +} + +func TestGettersDocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - obj.Flags = nil + obj := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected string + obj.Kind = expected // Act & Assert - assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") }) - t.Run("GetFlags_NilReceiver", func(t *testing.T) { + t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemText + var obj *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFlags() // Should return zero value + _ = obj.GetKind() // Should return zero value }) - t.Run("GetAlternateName", func(t *testing.T) { + t.Run("GetUnknown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var expected *string - obj.AlternateName = expected + obj := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + obj.Unknown = expected // Act & Assert - assert.Equal(t, expected, obj.GetAlternateName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") }) - t.Run("GetAlternateName_NilValue", func(t *testing.T) { + t.Run("GetUnknown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - obj.AlternateName = nil + obj := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj.Unknown = nil // Act & Assert - assert.Nil(t, obj.GetAlternateName(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") }) - t.Run("GetAlternateName_NilReceiver", func(t *testing.T) { + t.Run("GetUnknown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemText + var obj *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAlternateName() // Should return zero value + _ = obj.GetUnknown() // Should return zero value }) - t.Run("GetMappingName", func(t *testing.T) { + t.Run("GetKnown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var expected *string - obj.MappingName = expected + obj := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + obj.Known = expected // Act & Assert - assert.Equal(t, expected, obj.GetMappingName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetKnown(), "getter should return the property value") }) - t.Run("GetMappingName_NilValue", func(t *testing.T) { + t.Run("GetKnown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - obj.MappingName = nil + obj := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj.Known = nil // Act & Assert - assert.Nil(t, obj.GetMappingName(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetKnown(), "getter should return nil when property is nil") }) - t.Run("GetMappingName_NilReceiver", func(t *testing.T) { + t.Run("GetKnown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemText + var obj *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetMappingName() // Should return zero value + _ = obj.GetKnown() // Should return zero value }) - t.Run("GetValueEntry", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var expected *DocFormsGet200ResponseFieldsItemTextValueEntry - obj.ValueEntry = expected +} - // Act & Assert - assert.Equal(t, expected, obj.GetValueEntry(), "getter should return the property value") +func TestSettersDocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("SetHasAnyWeakAnnotations", func(t *testing.T) { + obj := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + var fernTestValueHasAnyWeakAnnotations bool + obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) + assert.Equal(t, fernTestValueHasAnyWeakAnnotations, obj.HasAnyWeakAnnotations) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetValueEntry_NilValue", func(t *testing.T) { +} + +func TestGettersDocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - obj.ValueEntry = nil + obj := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + var expected bool + obj.HasAnyWeakAnnotations = expected // Act & Assert - assert.Nil(t, obj.GetValueEntry(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetHasAnyWeakAnnotations(), "getter should return the property value") }) - t.Run("GetValueEntry_NilReceiver", func(t *testing.T) { + t.Run("GetHasAnyWeakAnnotations_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemText + var obj *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetValueEntry() // Should return zero value + _ = obj.GetHasAnyWeakAnnotations() // Should return zero value }) - t.Run("GetDefaultValueEntry", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var expected *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry - obj.DefaultValueEntry = expected + obj := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + var fernTestValueHasAnyWeakAnnotations bool - // Act & Assert - assert.Equal(t, expected, obj.GetDefaultValueEntry(), "getter should return the property value") + // Act + obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetDefaultValueEntry_NilValue", func(t *testing.T) { +} + +func TestSettersDocFormsReset200ResponseMetaCacheDelta(t *testing.T) { + t.Run("SetPreviousDocVersion", func(t *testing.T) { + obj := &DocFormsReset200ResponseMetaCacheDelta{} + var fernTestValuePreviousDocVersion int + obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) + assert.Equal(t, fernTestValuePreviousDocVersion, obj.PreviousDocVersion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDocVersion", func(t *testing.T) { + obj := &DocFormsReset200ResponseMetaCacheDelta{} + var fernTestValueDocVersion int + obj.SetDocVersion(fernTestValueDocVersion) + assert.Equal(t, fernTestValueDocVersion, obj.DocVersion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotationsVersion", func(t *testing.T) { + obj := &DocFormsReset200ResponseMetaCacheDelta{} + var fernTestValueAnnotationsVersion *int + obj.SetAnnotationsVersion(fernTestValueAnnotationsVersion) + assert.Equal(t, fernTestValueAnnotationsVersion, obj.AnnotationsVersion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLayerVersion", func(t *testing.T) { + obj := &DocFormsReset200ResponseMetaCacheDelta{} + var fernTestValueLayerVersion *int + obj.SetLayerVersion(fernTestValueLayerVersion) + assert.Equal(t, fernTestValueLayerVersion, obj.LayerVersion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWorking", func(t *testing.T) { + obj := &DocFormsReset200ResponseMetaCacheDelta{} + var fernTestValueWorking *bool + obj.SetWorking(fernTestValueWorking) + assert.Equal(t, fernTestValueWorking, obj.Working) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPages", func(t *testing.T) { + obj := &DocFormsReset200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocFormsReset200ResponseMetaCacheDeltaPagesItem + obj.SetPages(fernTestValuePages) + assert.Equal(t, fernTestValuePages, obj.Pages) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsReset200ResponseMetaCacheDelta(t *testing.T) { + t.Run("GetPreviousDocVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - obj.DefaultValueEntry = nil + obj := &DocFormsReset200ResponseMetaCacheDelta{} + var expected int + obj.PreviousDocVersion = expected // Act & Assert - assert.Nil(t, obj.GetDefaultValueEntry(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetPreviousDocVersion(), "getter should return the property value") }) - t.Run("GetDefaultValueEntry_NilReceiver", func(t *testing.T) { + t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemText + var obj *DocFormsReset200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDefaultValueEntry() // Should return zero value - }) - - t.Run("GetActions", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var expected *PdfFieldActions - obj.Actions = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") + _ = obj.GetPreviousDocVersion() // Should return zero value }) - t.Run("GetActions_NilValue", func(t *testing.T) { + t.Run("GetDocVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - obj.Actions = nil + obj := &DocFormsReset200ResponseMetaCacheDelta{} + var expected int + obj.DocVersion = expected // Act & Assert - assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetDocVersion(), "getter should return the property value") }) - t.Run("GetActions_NilReceiver", func(t *testing.T) { + t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemText + var obj *DocFormsReset200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetActions() // Should return zero value + _ = obj.GetDocVersion() // Should return zero value }) - t.Run("GetWidgets", func(t *testing.T) { + t.Run("GetAnnotationsVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var expected []*DocFormsGet200ResponseFieldsItemTextWidgetsItem - obj.Widgets = expected + obj := &DocFormsReset200ResponseMetaCacheDelta{} + var expected *int + obj.AnnotationsVersion = expected // Act & Assert - assert.Equal(t, expected, obj.GetWidgets(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAnnotationsVersion(), "getter should return the property value") }) - t.Run("GetWidgets_NilValue", func(t *testing.T) { + t.Run("GetAnnotationsVersion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - obj.Widgets = nil + obj := &DocFormsReset200ResponseMetaCacheDelta{} + obj.AnnotationsVersion = nil // Act & Assert - assert.Nil(t, obj.GetWidgets(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetAnnotationsVersion(), "getter should return nil when property is nil") }) - t.Run("GetWidgets_NilReceiver", func(t *testing.T) { + t.Run("GetAnnotationsVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemText + var obj *DocFormsReset200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetWidgets() // Should return zero value + _ = obj.GetAnnotationsVersion() // Should return zero value }) - t.Run("GetValue", func(t *testing.T) { + t.Run("GetLayerVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var expected string - obj.Value = expected + obj := &DocFormsReset200ResponseMetaCacheDelta{} + var expected *int + obj.LayerVersion = expected // Act & Assert - assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") - }) - - t.Run("GetValue_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemText - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetValue() // Should return zero value + assert.Equal(t, expected, obj.GetLayerVersion(), "getter should return the property value") }) - t.Run("GetDefaultValue", func(t *testing.T) { + t.Run("GetLayerVersion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var expected string - obj.DefaultValue = expected + obj := &DocFormsReset200ResponseMetaCacheDelta{} + obj.LayerVersion = nil // Act & Assert - assert.Equal(t, expected, obj.GetDefaultValue(), "getter should return the property value") + assert.Nil(t, obj.GetLayerVersion(), "getter should return nil when property is nil") }) - t.Run("GetDefaultValue_NilReceiver", func(t *testing.T) { + t.Run("GetLayerVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemText + var obj *DocFormsReset200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDefaultValue() // Should return zero value + _ = obj.GetLayerVersion() // Should return zero value }) - t.Run("GetMaxLength", func(t *testing.T) { + t.Run("GetWorking", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var expected *int - obj.MaxLength = expected + obj := &DocFormsReset200ResponseMetaCacheDelta{} + var expected *bool + obj.Working = expected // Act & Assert - assert.Equal(t, expected, obj.GetMaxLength(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWorking(), "getter should return the property value") }) - t.Run("GetMaxLength_NilValue", func(t *testing.T) { + t.Run("GetWorking_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - obj.MaxLength = nil + obj := &DocFormsReset200ResponseMetaCacheDelta{} + obj.Working = nil // Act & Assert - assert.Nil(t, obj.GetMaxLength(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetWorking(), "getter should return nil when property is nil") }) - t.Run("GetMaxLength_NilReceiver", func(t *testing.T) { + t.Run("GetWorking_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemText + var obj *DocFormsReset200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetMaxLength() // Should return zero value + _ = obj.GetWorking() // Should return zero value }) - t.Run("GetMultiline", func(t *testing.T) { + t.Run("GetPages", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var expected bool - obj.Multiline = expected + obj := &DocFormsReset200ResponseMetaCacheDelta{} + var expected []*DocFormsReset200ResponseMetaCacheDeltaPagesItem + obj.Pages = expected // Act & Assert - assert.Equal(t, expected, obj.GetMultiline(), "getter should return the property value") - }) - - t.Run("GetMultiline_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemText - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetMultiline() // Should return zero value + assert.Equal(t, expected, obj.GetPages(), "getter should return the property value") }) - t.Run("GetPassword", func(t *testing.T) { + t.Run("GetPages_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var expected bool - obj.Password = expected + obj := &DocFormsReset200ResponseMetaCacheDelta{} + obj.Pages = nil // Act & Assert - assert.Equal(t, expected, obj.GetPassword(), "getter should return the property value") + assert.Nil(t, obj.GetPages(), "getter should return nil when property is nil") }) - t.Run("GetPassword_NilReceiver", func(t *testing.T) { + t.Run("GetPages_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemText + var obj *DocFormsReset200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPassword() // Should return zero value + _ = obj.GetPages() // Should return zero value }) - t.Run("GetComb", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocFormsReset200ResponseMetaCacheDelta(t *testing.T) { + t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var expected bool - obj.Comb = expected + obj := &DocFormsReset200ResponseMetaCacheDelta{} + var fernTestValuePreviousDocVersion int - // Act & Assert - assert.Equal(t, expected, obj.GetComb(), "getter should return the property value") + // Act + obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetComb_NilReceiver", func(t *testing.T) { + t.Run("SetDocVersion_MarksExplicit", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemText - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetComb() // Should return zero value + // Arrange + obj := &DocFormsReset200ResponseMetaCacheDelta{} + var fernTestValueDocVersion int + + // Act + obj.SetDocVersion(fernTestValueDocVersion) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} + t.Run("SetAnnotationsVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaCacheDelta{} + var fernTestValueAnnotationsVersion *int -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemText(t *testing.T) { - t.Run("SetRef_MarksExplicit", func(t *testing.T) { + // Act + obj.SetAnnotationsVersion(fernTestValueAnnotationsVersion) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetLayerVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueRef *DocFormsGet200ResponseFieldsItemTextRef + obj := &DocFormsReset200ResponseMetaCacheDelta{} + var fernTestValueLayerVersion *int // Act - obj.SetRef(fernTestValueRef) + obj.SetLayerVersion(fernTestValueLayerVersion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -226343,14 +268675,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemText(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetWorking_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueFieldObjectNumber int + obj := &DocFormsReset200ResponseMetaCacheDelta{} + var fernTestValueWorking *bool // Act - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) + obj.SetWorking(fernTestValueWorking) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -226374,14 +268706,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemText(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Run("SetPages_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueName string + obj := &DocFormsReset200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocFormsReset200ResponseMetaCacheDeltaPagesItem // Act - obj.SetName(fernTestValueName) + obj.SetPages(fernTestValuePages) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -226405,14 +268737,95 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemText(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrigin_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocFormsReset200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItem{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCache", func(t *testing.T) { + obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache + obj.SetCache(fernTestValueCache) + assert.Equal(t, fernTestValueCache, obj.Cache) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsReset200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueOrigin DocFormsGet200ResponseFieldsItemTextOrigin + obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItem{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsReset200ResponseMetaCacheDeltaPagesItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetCache", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItem{} + var expected *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache + obj.Cache = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCache(), "getter should return the property value") + }) + + t.Run("GetCache_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItem{} + obj.Cache = nil + + // Act & Assert + assert.Nil(t, obj.GetCache(), "getter should return nil when property is nil") + }) + + t.Run("GetCache_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsReset200ResponseMetaCacheDeltaPagesItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCache() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsReset200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItem{} + var fernTestValuePageObjectNumber int // Act - obj.SetOrigin(fernTestValueOrigin) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -226436,14 +268849,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemText(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFlags_MarksExplicit", func(t *testing.T) { + t.Run("SetCache_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueFlags *DocFormsGet200ResponseFieldsItemTextFlags + obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache // Act - obj.SetFlags(fernTestValueFlags) + obj.SetCache(fernTestValueCache) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -226467,14 +268880,85 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemText(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAlternateName_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocFormsReset200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("SetContentVersion", func(t *testing.T) { + obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItemCache{} + var fernTestValueContentVersion int + obj.SetContentVersion(fernTestValueContentVersion) + assert.Equal(t, fernTestValueContentVersion, obj.ContentVersion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotationVersion", func(t *testing.T) { + obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItemCache{} + var fernTestValueAnnotationVersion int + obj.SetAnnotationVersion(fernTestValueAnnotationVersion) + assert.Equal(t, fernTestValueAnnotationVersion, obj.AnnotationVersion) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsReset200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("GetContentVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueAlternateName *string + obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItemCache{} + var expected int + obj.ContentVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetContentVersion(), "getter should return the property value") + }) + + t.Run("GetContentVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetContentVersion() // Should return zero value + }) + + t.Run("GetAnnotationVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItemCache{} + var expected int + obj.AnnotationVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotationVersion(), "getter should return the property value") + }) + + t.Run("GetAnnotationVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAnnotationVersion() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsReset200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("SetContentVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItemCache{} + var fernTestValueContentVersion int // Act - obj.SetAlternateName(fernTestValueAlternateName) + obj.SetContentVersion(fernTestValueContentVersion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -226498,14 +268982,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemText(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetMappingName_MarksExplicit", func(t *testing.T) { + t.Run("SetAnnotationVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueMappingName *string + obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItemCache{} + var fernTestValueAnnotationVersion int // Act - obj.SetMappingName(fernTestValueMappingName) + obj.SetAnnotationVersion(fernTestValueAnnotationVersion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -226529,14 +269013,157 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemText(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetValueEntry_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocFormsReset404Response(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + obj := &DocFormsReset404Response{} + var fernTestValueName DocFormsReset404ResponseName + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCode", func(t *testing.T) { + obj := &DocFormsReset404Response{} + var fernTestValueCode DocFormsReset404ResponseCode + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &DocFormsReset404Response{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDetails", func(t *testing.T) { + obj := &DocFormsReset404Response{} + var fernTestValueDetails map[string]any + obj.SetDetails(fernTestValueDetails) + assert.Equal(t, fernTestValueDetails, obj.Details) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsReset404Response(t *testing.T) { + t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemTextValueEntry + obj := &DocFormsReset404Response{} + var expected DocFormsReset404ResponseName + obj.Name = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + }) + + t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsReset404Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetName() // Should return zero value + }) + + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset404Response{} + var expected DocFormsReset404ResponseCode + obj.Code = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + }) + + t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsReset404Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCode() // Should return zero value + }) + + t.Run("GetMessage", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset404Response{} + var expected string + obj.Message = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + }) + + t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsReset404Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMessage() // Should return zero value + }) + + t.Run("GetDetails", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset404Response{} + var expected map[string]any + obj.Details = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + }) + + t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset404Response{} + obj.Details = nil + + // Act & Assert + assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + }) + + t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsReset404Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDetails() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocFormsReset404Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsReset404Response{} + var fernTestValueName DocFormsReset404ResponseName // Act - obj.SetValueEntry(fernTestValueValueEntry) + obj.SetName(fernTestValueName) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -226560,14 +269187,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemText(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDefaultValueEntry_MarksExplicit", func(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry + obj := &DocFormsReset404Response{} + var fernTestValueCode DocFormsReset404ResponseCode // Act - obj.SetDefaultValueEntry(fernTestValueDefaultValueEntry) + obj.SetCode(fernTestValueCode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -226591,14 +269218,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemText(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Run("SetMessage_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueActions *PdfFieldActions + obj := &DocFormsReset404Response{} + var fernTestValueMessage string // Act - obj.SetActions(fernTestValueActions) + obj.SetMessage(fernTestValueMessage) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -226622,14 +269249,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemText(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWidgets_MarksExplicit", func(t *testing.T) { + t.Run("SetDetails_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemTextWidgetsItem + obj := &DocFormsReset404Response{} + var fernTestValueDetails map[string]any // Act - obj.SetWidgets(fernTestValueWidgets) + obj.SetDetails(fernTestValueDetails) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -226653,45 +269280,64 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemText(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetValue_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocFormsSetValue200Response(t *testing.T) { + t.Run("SetMeta", func(t *testing.T) { + obj := &DocFormsSetValue200Response{} + var fernTestValueMeta *DocFormsSetValue200ResponseMeta + obj.SetMeta(fernTestValueMeta) + assert.Equal(t, fernTestValueMeta, obj.Meta) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsSetValue200Response(t *testing.T) { + t.Run("GetMeta", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueValue string + obj := &DocFormsSetValue200Response{} + var expected *DocFormsSetValue200ResponseMeta + obj.Meta = expected - // Act - obj.SetValue(fernTestValueValue) + // Act & Assert + assert.Equal(t, expected, obj.GetMeta(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetMeta_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200Response{} + obj.Meta = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetMeta(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetMeta_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsSetValue200Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMeta() // Should return zero value }) - t.Run("SetDefaultValue_MarksExplicit", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocFormsSetValue200Response(t *testing.T) { + t.Run("SetMeta_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueDefaultValue string + obj := &DocFormsSetValue200Response{} + var fernTestValueMeta *DocFormsSetValue200ResponseMeta // Act - obj.SetDefaultValue(fernTestValueDefaultValue) + obj.SetMeta(fernTestValueMeta) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -226715,76 +269361,105 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemText(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetMaxLength_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocFormsSetValue200ResponseMeta(t *testing.T) { + t.Run("SetAffectedPages", func(t *testing.T) { + obj := &DocFormsSetValue200ResponseMeta{} + var fernTestValueAffectedPages []*DocFormsSetValue200ResponseMetaAffectedPagesItem + obj.SetAffectedPages(fernTestValueAffectedPages) + assert.Equal(t, fernTestValueAffectedPages, obj.AffectedPages) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCacheDelta", func(t *testing.T) { + obj := &DocFormsSetValue200ResponseMeta{} + var fernTestValueCacheDelta *DocFormsSetValue200ResponseMetaCacheDelta + obj.SetCacheDelta(fernTestValueCacheDelta) + assert.Equal(t, fernTestValueCacheDelta, obj.CacheDelta) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocFormsSetValue200ResponseMeta(t *testing.T) { + t.Run("GetAffectedPages", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueMaxLength *int + obj := &DocFormsSetValue200ResponseMeta{} + var expected []*DocFormsSetValue200ResponseMetaAffectedPagesItem + obj.AffectedPages = expected - // Act - obj.SetMaxLength(fernTestValueMaxLength) + // Act & Assert + assert.Equal(t, expected, obj.GetAffectedPages(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetAffectedPages_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMeta{} + obj.AffectedPages = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetAffectedPages(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsSetValue200ResponseMeta + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAffectedPages() // Should return zero value }) - t.Run("SetMultiline_MarksExplicit", func(t *testing.T) { + t.Run("GetCacheDelta", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueMultiline bool + obj := &DocFormsSetValue200ResponseMeta{} + var expected *DocFormsSetValue200ResponseMetaCacheDelta + obj.CacheDelta = expected - // Act - obj.SetMultiline(fernTestValueMultiline) + // Act & Assert + assert.Equal(t, expected, obj.GetCacheDelta(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetCacheDelta_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMeta{} + obj.CacheDelta = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetCacheDelta(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsSetValue200ResponseMeta + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCacheDelta() // Should return zero value }) - t.Run("SetPassword_MarksExplicit", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocFormsSetValue200ResponseMeta(t *testing.T) { + t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValuePassword bool + obj := &DocFormsSetValue200ResponseMeta{} + var fernTestValueAffectedPages []*DocFormsSetValue200ResponseMetaAffectedPagesItem // Act - obj.SetPassword(fernTestValuePassword) + obj.SetAffectedPages(fernTestValueAffectedPages) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -226808,14 +269483,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemText(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetComb_MarksExplicit", func(t *testing.T) { + t.Run("SetCacheDelta_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemText{} - var fernTestValueComb bool + obj := &DocFormsSetValue200ResponseMeta{} + var fernTestValueCacheDelta *DocFormsSetValue200ResponseMetaCacheDelta // Act - obj.SetComb(fernTestValueComb) + obj.SetCacheDelta(fernTestValueCacheDelta) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -226841,220 +269516,165 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemText(t *testing.T) { } -func TestGettersDocFormsGet200ResponseFieldsItemTextDefaultValueEntry(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntry{} - var expected string - obj.Kind = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") - }) - - t.Run("GetKind_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetKind() // Should return zero value - }) - - t.Run("GetNone", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryNone - obj.None = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetNone(), "getter should return the property value") +func TestSettersDocFormsSetValue200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetNone_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntry{} - obj.None = nil - - // Act & Assert - assert.Nil(t, obj.GetNone(), "getter should return nil when property is nil") + t.Run("SetRevision", func(t *testing.T) { + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetNone_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetNone() // Should return zero value + t.Run("SetWeakAnnotationState", func(t *testing.T) { + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState + obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) + assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetScalar", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar - obj.Scalar = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetScalar(), "getter should return the property value") - }) +} - t.Run("GetScalar_NilValue", func(t *testing.T) { +func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntry{} - obj.Scalar = nil + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Nil(t, obj.GetScalar(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetScalar_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry + var obj *DocFormsSetValue200ResponseMetaAffectedPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetScalar() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetArray", func(t *testing.T) { + t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray - obj.Array = expected + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} + var expected *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision + obj.Revision = expected // Act & Assert - assert.Equal(t, expected, obj.GetArray(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") }) - t.Run("GetArray_NilValue", func(t *testing.T) { + t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntry{} - obj.Array = nil + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} + obj.Revision = nil // Act & Assert - assert.Nil(t, obj.GetArray(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") }) - t.Run("GetArray_NilReceiver", func(t *testing.T) { + t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry + var obj *DocFormsSetValue200ResponseMetaAffectedPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetArray() // Should return zero value + _ = obj.GetRevision() // Should return zero value }) - t.Run("GetUnsupported", func(t *testing.T) { + t.Run("GetWeakAnnotationState", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryUnsupported - obj.Unsupported = expected + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} + var expected *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState + obj.WeakAnnotationState = expected // Act & Assert - assert.Equal(t, expected, obj.GetUnsupported(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWeakAnnotationState(), "getter should return the property value") }) - t.Run("GetUnsupported_NilValue", func(t *testing.T) { + t.Run("GetWeakAnnotationState_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntry{} - obj.Unsupported = nil + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} + obj.WeakAnnotationState = nil // Act & Assert - assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetWeakAnnotationState(), "getter should return nil when property is nil") }) - t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { + t.Run("GetWeakAnnotationState_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextDefaultValueEntry + var obj *DocFormsSetValue200ResponseMetaAffectedPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUnsupported() // Should return zero value - }) - -} - -func TestSettersDocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray(t *testing.T) { - t.Run("SetValues", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray{} - var fernTestValueValues []string - obj.SetValues(fernTestValueValues) - assert.Equal(t, fernTestValueValues, obj.Values) - assert.NotNil(t, obj.explicitFields) + _ = obj.GetWeakAnnotationState() // Should return zero value }) } -func TestGettersDocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray(t *testing.T) { - t.Run("GetValues", func(t *testing.T) { +func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray{} - var expected []string - obj.Values = expected + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} + var fernTestValuePageObjectNumber int - // Act & Assert - assert.Equal(t, expected, obj.GetValues(), "getter should return the property value") - }) + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - t.Run("GetValues_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray{} - obj.Values = nil + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Nil(t, obj.GetValues(), "getter should return nil when property is nil") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetValues_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetValues() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray(t *testing.T) { - t.Run("SetValues_MarksExplicit", func(t *testing.T) { + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryArray{} - var fernTestValueValues []string + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision // Act - obj.SetValues(fernTestValueValues) + obj.SetRevision(fernTestValueRevision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -227078,54 +269698,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextDefaultValueEntr // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar(t *testing.T) { - t.Run("SetValue", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar{} - var fernTestValueValue string - obj.SetValue(fernTestValueValue) - assert.Equal(t, fernTestValueValue, obj.Value) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar(t *testing.T) { - t.Run("GetValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar{} - var expected string - obj.Value = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") - }) - - t.Run("GetValue_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetValue() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar(t *testing.T) { - t.Run("SetValue_MarksExplicit", func(t *testing.T) { + t.Run("SetWeakAnnotationState_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextDefaultValueEntryScalar{} - var fernTestValueValue string + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState // Act - obj.SetValue(fernTestValueValue) + obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -227151,176 +269731,114 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextDefaultValueEntr } -func TestSettersDocFormsGet200ResponseFieldsItemTextFlags(t *testing.T) { - t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextFlags{} - var fernTestValueReadOnly bool - obj.SetReadOnly(fernTestValueReadOnly) - assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetRequired", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextFlags{} - var fernTestValueRequired bool - obj.SetRequired(fernTestValueRequired) - assert.Equal(t, fernTestValueRequired, obj.Required) +func TestSettersDocFormsSetValue200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemRevision{} + var fernTestValueDocSessionID string + obj.SetDocSessionID(fernTestValueDocSessionID) + assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNoExport", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextFlags{} - var fernTestValueNoExport bool - obj.SetNoExport(fernTestValueNoExport) - assert.Equal(t, fernTestValueNoExport, obj.NoExport) + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemRevision{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRaw", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextFlags{} - var fernTestValueRaw int - obj.SetRaw(fernTestValueRaw) - assert.Equal(t, fernTestValueRaw, obj.Raw) + t.Run("SetGeneration", func(t *testing.T) { + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseFieldsItemTextFlags(t *testing.T) { - t.Run("GetReadOnly", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextFlags{} - var expected bool - obj.ReadOnly = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") - }) - - t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextFlags - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetReadOnly() // Should return zero value - }) - - t.Run("GetRequired", func(t *testing.T) { +func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextFlags{} - var expected bool - obj.Required = expected + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemRevision{} + var expected string + obj.DocSessionID = expected // Act & Assert - assert.Equal(t, expected, obj.GetRequired(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") }) - t.Run("GetRequired_NilReceiver", func(t *testing.T) { + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextFlags + var obj *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRequired() // Should return zero value + _ = obj.GetDocSessionID() // Should return zero value }) - t.Run("GetNoExport", func(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextFlags{} - var expected bool - obj.NoExport = expected + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemRevision{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoExport(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetNoExport_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextFlags + var obj *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNoExport() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetRaw", func(t *testing.T) { + t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextFlags{} + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemRevision{} var expected int - obj.Raw = expected + obj.Generation = expected // Act & Assert - assert.Equal(t, expected, obj.GetRaw(), "getter should return the property value") + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") }) - t.Run("GetRaw_NilReceiver", func(t *testing.T) { + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextFlags + var obj *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRaw() // Should return zero value + _ = obj.GetGeneration() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextFlags(t *testing.T) { - t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextFlags{} - var fernTestValueReadOnly bool - - // Act - obj.SetReadOnly(fernTestValueReadOnly) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetRequired_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextFlags{} - var fernTestValueRequired bool + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemRevision{} + var fernTestValueDocSessionID string // Act - obj.SetRequired(fernTestValueRequired) + obj.SetDocSessionID(fernTestValueDocSessionID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -227344,14 +269862,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextFlags(t *testing // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoExport_MarksExplicit", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextFlags{} - var fernTestValueNoExport bool + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemRevision{} + var fernTestValuePageObjectNumber int // Act - obj.SetNoExport(fernTestValueNoExport) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -227375,14 +269893,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextFlags(t *testing // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRaw_MarksExplicit", func(t *testing.T) { + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextFlags{} - var fernTestValueRaw int + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemRevision{} + var fernTestValueGeneration int // Act - obj.SetRaw(fernTestValueRaw) + obj.SetGeneration(fernTestValueGeneration) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -227408,11 +269926,11 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextFlags(t *testing } -func TestGettersDocFormsGet200ResponseFieldsItemTextRef(t *testing.T) { +func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextRef{} + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState{} var expected string obj.Kind = expected @@ -227422,7 +269940,7 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextRef(t *testing.T) { t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextRef + var obj *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -227432,120 +269950,120 @@ func TestGettersDocFormsGet200ResponseFieldsItemTextRef(t *testing.T) { _ = obj.GetKind() // Should return zero value }) - t.Run("GetObjectNumber", func(t *testing.T) { + t.Run("GetUnknown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextRef{} - var expected *DocFormsGet200ResponseFieldsItemTextRefObjectNumber - obj.ObjectNumber = expected + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + obj.Unknown = expected // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") }) - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Run("GetUnknown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextRef{} - obj.ObjectNumber = nil + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj.Unknown = nil // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") }) - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetUnknown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextRef + var obj *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetObjectNumber() // Should return zero value + _ = obj.GetUnknown() // Should return zero value }) - t.Run("GetFqn", func(t *testing.T) { + t.Run("GetKnown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextRef{} - var expected *DocFormsGet200ResponseFieldsItemTextRefFqn - obj.Fqn = expected + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + obj.Known = expected // Act & Assert - assert.Equal(t, expected, obj.GetFqn(), "getter should return the property value") + assert.Equal(t, expected, obj.GetKnown(), "getter should return the property value") }) - t.Run("GetFqn_NilValue", func(t *testing.T) { + t.Run("GetKnown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextRef{} - obj.Fqn = nil + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj.Known = nil // Act & Assert - assert.Nil(t, obj.GetFqn(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetKnown(), "getter should return nil when property is nil") }) - t.Run("GetFqn_NilReceiver", func(t *testing.T) { + t.Run("GetKnown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextRef + var obj *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFqn() // Should return zero value + _ = obj.GetKnown() // Should return zero value }) } -func TestSettersDocFormsGet200ResponseFieldsItemTextRefFqn(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextRefFqn{} - var fernTestValueName string - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) +func TestSettersDocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("SetHasAnyWeakAnnotations", func(t *testing.T) { + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + var fernTestValueHasAnyWeakAnnotations bool + obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) + assert.Equal(t, fernTestValueHasAnyWeakAnnotations, obj.HasAnyWeakAnnotations) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseFieldsItemTextRefFqn(t *testing.T) { - t.Run("GetName", func(t *testing.T) { +func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextRefFqn{} - var expected string - obj.Name = expected + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + var expected bool + obj.HasAnyWeakAnnotations = expected // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetHasAnyWeakAnnotations(), "getter should return the property value") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetHasAnyWeakAnnotations_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextRefFqn + var obj *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetName() // Should return zero value + _ = obj.GetHasAnyWeakAnnotations() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextRefFqn(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextRefFqn{} - var fernTestValueName string + obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + var fernTestValueHasAnyWeakAnnotations bool // Act - obj.SetName(fernTestValueName) + obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -227571,291 +270089,309 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextRefFqn(t *testin } -func TestSettersDocFormsGet200ResponseFieldsItemTextRefObjectNumber(t *testing.T) { - t.Run("SetFieldObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextRefObjectNumber{} - var fernTestValueFieldObjectNumber int - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) - assert.Equal(t, fernTestValueFieldObjectNumber, obj.FieldObjectNumber) +func TestSettersDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { + t.Run("SetPreviousDocVersion", func(t *testing.T) { + obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + var fernTestValuePreviousDocVersion int + obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) + assert.Equal(t, fernTestValuePreviousDocVersion, obj.PreviousDocVersion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDocVersion", func(t *testing.T) { + obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + var fernTestValueDocVersion int + obj.SetDocVersion(fernTestValueDocVersion) + assert.Equal(t, fernTestValueDocVersion, obj.DocVersion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotationsVersion", func(t *testing.T) { + obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + var fernTestValueAnnotationsVersion *int + obj.SetAnnotationsVersion(fernTestValueAnnotationsVersion) + assert.Equal(t, fernTestValueAnnotationsVersion, obj.AnnotationsVersion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLayerVersion", func(t *testing.T) { + obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + var fernTestValueLayerVersion *int + obj.SetLayerVersion(fernTestValueLayerVersion) + assert.Equal(t, fernTestValueLayerVersion, obj.LayerVersion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWorking", func(t *testing.T) { + obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + var fernTestValueWorking *bool + obj.SetWorking(fernTestValueWorking) + assert.Equal(t, fernTestValueWorking, obj.Working) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPages", func(t *testing.T) { + obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocFormsSetValue200ResponseMetaCacheDeltaPagesItem + obj.SetPages(fernTestValuePages) + assert.Equal(t, fernTestValuePages, obj.Pages) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseFieldsItemTextRefObjectNumber(t *testing.T) { - t.Run("GetFieldObjectNumber", func(t *testing.T) { +func TestGettersDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { + t.Run("GetPreviousDocVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextRefObjectNumber{} + obj := &DocFormsSetValue200ResponseMetaCacheDelta{} var expected int - obj.FieldObjectNumber = expected + obj.PreviousDocVersion = expected // Act & Assert - assert.Equal(t, expected, obj.GetFieldObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPreviousDocVersion(), "getter should return the property value") }) - t.Run("GetFieldObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextRefObjectNumber + var obj *DocFormsSetValue200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFieldObjectNumber() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextRefObjectNumber(t *testing.T) { - t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextRefObjectNumber{} - var fernTestValueFieldObjectNumber int - - // Act - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + _ = obj.GetPreviousDocVersion() // Should return zero value }) -} - -func TestGettersDocFormsGet200ResponseFieldsItemTextValueEntry(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { + t.Run("GetDocVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextValueEntry{} - var expected string - obj.Kind = expected + obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + var expected int + obj.DocVersion = expected // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDocVersion(), "getter should return the property value") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextValueEntry + var obj *DocFormsSetValue200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKind() // Should return zero value + _ = obj.GetDocVersion() // Should return zero value }) - t.Run("GetNone", func(t *testing.T) { + t.Run("GetAnnotationsVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemTextValueEntryNone - obj.None = expected + obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + var expected *int + obj.AnnotationsVersion = expected // Act & Assert - assert.Equal(t, expected, obj.GetNone(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAnnotationsVersion(), "getter should return the property value") }) - t.Run("GetNone_NilValue", func(t *testing.T) { + t.Run("GetAnnotationsVersion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextValueEntry{} - obj.None = nil + obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + obj.AnnotationsVersion = nil // Act & Assert - assert.Nil(t, obj.GetNone(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetAnnotationsVersion(), "getter should return nil when property is nil") }) - t.Run("GetNone_NilReceiver", func(t *testing.T) { + t.Run("GetAnnotationsVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextValueEntry + var obj *DocFormsSetValue200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNone() // Should return zero value + _ = obj.GetAnnotationsVersion() // Should return zero value }) - t.Run("GetScalar", func(t *testing.T) { + t.Run("GetLayerVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemTextValueEntryScalar - obj.Scalar = expected + obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + var expected *int + obj.LayerVersion = expected // Act & Assert - assert.Equal(t, expected, obj.GetScalar(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLayerVersion(), "getter should return the property value") }) - t.Run("GetScalar_NilValue", func(t *testing.T) { + t.Run("GetLayerVersion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextValueEntry{} - obj.Scalar = nil + obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + obj.LayerVersion = nil // Act & Assert - assert.Nil(t, obj.GetScalar(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetLayerVersion(), "getter should return nil when property is nil") }) - t.Run("GetScalar_NilReceiver", func(t *testing.T) { + t.Run("GetLayerVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextValueEntry + var obj *DocFormsSetValue200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetScalar() // Should return zero value + _ = obj.GetLayerVersion() // Should return zero value }) - t.Run("GetArray", func(t *testing.T) { + t.Run("GetWorking", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemTextValueEntryArray - obj.Array = expected + obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + var expected *bool + obj.Working = expected // Act & Assert - assert.Equal(t, expected, obj.GetArray(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWorking(), "getter should return the property value") }) - t.Run("GetArray_NilValue", func(t *testing.T) { + t.Run("GetWorking_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextValueEntry{} - obj.Array = nil + obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + obj.Working = nil // Act & Assert - assert.Nil(t, obj.GetArray(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetWorking(), "getter should return nil when property is nil") }) - t.Run("GetArray_NilReceiver", func(t *testing.T) { + t.Run("GetWorking_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextValueEntry + var obj *DocFormsSetValue200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetArray() // Should return zero value + _ = obj.GetWorking() // Should return zero value }) - t.Run("GetUnsupported", func(t *testing.T) { + t.Run("GetPages", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemTextValueEntryUnsupported - obj.Unsupported = expected + obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + var expected []*DocFormsSetValue200ResponseMetaCacheDeltaPagesItem + obj.Pages = expected // Act & Assert - assert.Equal(t, expected, obj.GetUnsupported(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPages(), "getter should return the property value") }) - t.Run("GetUnsupported_NilValue", func(t *testing.T) { + t.Run("GetPages_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextValueEntry{} - obj.Unsupported = nil + obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + obj.Pages = nil // Act & Assert - assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPages(), "getter should return nil when property is nil") }) - t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { + t.Run("GetPages_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextValueEntry + var obj *DocFormsSetValue200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUnsupported() // Should return zero value - }) - -} - -func TestSettersDocFormsGet200ResponseFieldsItemTextValueEntryArray(t *testing.T) { - t.Run("SetValues", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextValueEntryArray{} - var fernTestValueValues []string - obj.SetValues(fernTestValueValues) - assert.Equal(t, fernTestValueValues, obj.Values) - assert.NotNil(t, obj.explicitFields) + _ = obj.GetPages() // Should return zero value }) } -func TestGettersDocFormsGet200ResponseFieldsItemTextValueEntryArray(t *testing.T) { - t.Run("GetValues", func(t *testing.T) { +func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { + t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextValueEntryArray{} - var expected []string - obj.Values = expected + obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + var fernTestValuePreviousDocVersion int + + // Act + obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - // Act & Assert - assert.Equal(t, expected, obj.GetValues(), "getter should return the property value") + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetValues_NilValue", func(t *testing.T) { + t.Run("SetDocVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextValueEntryArray{} - obj.Values = nil + obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + var fernTestValueDocVersion int - // Act & Assert - assert.Nil(t, obj.GetValues(), "getter should return nil when property is nil") - }) + // Act + obj.SetDocVersion(fernTestValueDocVersion) - t.Run("GetValues_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextValueEntryArray - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetValues() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") -} + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextValueEntryArray(t *testing.T) { - t.Run("SetValues_MarksExplicit", func(t *testing.T) { + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetAnnotationsVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextValueEntryArray{} - var fernTestValueValues []string + obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + var fernTestValueAnnotationsVersion *int // Act - obj.SetValues(fernTestValueValues) + obj.SetAnnotationsVersion(fernTestValueAnnotationsVersion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -227879,54 +270415,76 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextValueEntryArray( // It verifies that setting a field via setter allows successful JSON round-trip }) -} + t.Run("SetLayerVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + var fernTestValueLayerVersion *int -func TestSettersDocFormsGet200ResponseFieldsItemTextValueEntryScalar(t *testing.T) { - t.Run("SetValue", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextValueEntryScalar{} - var fernTestValueValue string - obj.SetValue(fernTestValueValue) - assert.Equal(t, fernTestValueValue, obj.Value) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetLayerVersion(fernTestValueLayerVersion) -} + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") -func TestGettersDocFormsGet200ResponseFieldsItemTextValueEntryScalar(t *testing.T) { - t.Run("GetValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextValueEntryScalar{} - var expected string - obj.Value = expected + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - // Act & Assert - assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetValue_NilReceiver", func(t *testing.T) { + t.Run("SetWorking_MarksExplicit", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextValueEntryScalar - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetValue() // Should return zero value - }) + // Arrange + obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + var fernTestValueWorking *bool -} + // Act + obj.SetWorking(fernTestValueWorking) -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextValueEntryScalar(t *testing.T) { - t.Run("SetValue_MarksExplicit", func(t *testing.T) { + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPages_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextValueEntryScalar{} - var fernTestValueValue string + obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocFormsSetValue200ResponseMetaCacheDeltaPagesItem // Act - obj.SetValue(fernTestValueValue) + obj.SetPages(fernTestValuePages) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -227952,83 +270510,93 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextValueEntryScalar } -func TestSettersDocFormsGet200ResponseFieldsItemTextWidgetsItem(t *testing.T) { - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextWidgetsItem{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - +func TestSettersDocFormsSetValue200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemTextWidgetsItem{} + obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItem{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) + t.Run("SetCache", func(t *testing.T) { + obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache + obj.SetCache(fernTestValueCache) + assert.Equal(t, fernTestValueCache, obj.Cache) + assert.NotNil(t, obj.explicitFields) + }) + } -func TestGettersDocFormsGet200ResponseFieldsItemTextWidgetsItem(t *testing.T) { - t.Run("GetAnnotObjectNumber", func(t *testing.T) { +func TestGettersDocFormsSetValue200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextWidgetsItem{} + obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItem{} var expected int - obj.AnnotObjectNumber = expected + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextWidgetsItem + var obj *DocFormsSetValue200ResponseMetaCacheDeltaPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAnnotObjectNumber() // Should return zero value + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetCache", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextWidgetsItem{} - var expected int - obj.PageObjectNumber = expected + obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItem{} + var expected *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache + obj.Cache = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCache(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetCache_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemTextWidgetsItem + // Arrange + obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItem{} + obj.Cache = nil + + // Act & Assert + assert.Nil(t, obj.GetCache(), "getter should return nil when property is nil") + }) + + t.Run("GetCache_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsSetValue200ResponseMetaCacheDeltaPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetCache() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextWidgetsItem(t *testing.T) { - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextWidgetsItem{} - var fernTestValueAnnotObjectNumber int + obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItem{} + var fernTestValuePageObjectNumber int // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -228052,14 +270620,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextWidgetsItem(t *t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetCache_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemTextWidgetsItem{} - var fernTestValuePageObjectNumber int + obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetCache(fernTestValueCache) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -228085,473 +270653,288 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemTextWidgetsItem(t *t } -func TestSettersDocFormsGet200ResponseFieldsItemUnknown(t *testing.T) { - t.Run("SetRef", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueRef *DocFormsGet200ResponseFieldsItemUnknownRef - obj.SetRef(fernTestValueRef) - assert.Equal(t, fernTestValueRef, obj.Ref) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetFieldObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueFieldObjectNumber int - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) - assert.Equal(t, fernTestValueFieldObjectNumber, obj.FieldObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueName string - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetOrigin", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueOrigin DocFormsGet200ResponseFieldsItemUnknownOrigin - obj.SetOrigin(fernTestValueOrigin) - assert.Equal(t, fernTestValueOrigin, obj.Origin) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetFlags", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueFlags *DocFormsGet200ResponseFieldsItemUnknownFlags - obj.SetFlags(fernTestValueFlags) - assert.Equal(t, fernTestValueFlags, obj.Flags) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAlternateName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueAlternateName *string - obj.SetAlternateName(fernTestValueAlternateName) - assert.Equal(t, fernTestValueAlternateName, obj.AlternateName) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetMappingName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueMappingName *string - obj.SetMappingName(fernTestValueMappingName) - assert.Equal(t, fernTestValueMappingName, obj.MappingName) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetValueEntry", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemUnknownValueEntry - obj.SetValueEntry(fernTestValueValueEntry) - assert.Equal(t, fernTestValueValueEntry, obj.ValueEntry) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetDefaultValueEntry", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry - obj.SetDefaultValueEntry(fernTestValueDefaultValueEntry) - assert.Equal(t, fernTestValueDefaultValueEntry, obj.DefaultValueEntry) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetActions", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueActions *PdfFieldActions - obj.SetActions(fernTestValueActions) - assert.Equal(t, fernTestValueActions, obj.Actions) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetWidgets", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemUnknownWidgetsItem - obj.SetWidgets(fernTestValueWidgets) - assert.Equal(t, fernTestValueWidgets, obj.Widgets) +func TestSettersDocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("SetContentVersion", func(t *testing.T) { + obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache{} + var fernTestValueContentVersion int + obj.SetContentVersion(fernTestValueContentVersion) + assert.Equal(t, fernTestValueContentVersion, obj.ContentVersion) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRawValue", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueRawValue string - obj.SetRawValue(fernTestValueRawValue) - assert.Equal(t, fernTestValueRawValue, obj.RawValue) + t.Run("SetAnnotationVersion", func(t *testing.T) { + obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache{} + var fernTestValueAnnotationVersion int + obj.SetAnnotationVersion(fernTestValueAnnotationVersion) + assert.Equal(t, fernTestValueAnnotationVersion, obj.AnnotationVersion) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseFieldsItemUnknown(t *testing.T) { - t.Run("GetRef", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var expected *DocFormsGet200ResponseFieldsItemUnknownRef - obj.Ref = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetRef(), "getter should return the property value") - }) - - t.Run("GetRef_NilValue", func(t *testing.T) { +func TestGettersDocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("GetContentVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - obj.Ref = nil + obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache{} + var expected int + obj.ContentVersion = expected // Act & Assert - assert.Nil(t, obj.GetRef(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetContentVersion(), "getter should return the property value") }) - t.Run("GetRef_NilReceiver", func(t *testing.T) { + t.Run("GetContentVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknown + var obj *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRef() // Should return zero value + _ = obj.GetContentVersion() // Should return zero value }) - t.Run("GetFieldObjectNumber", func(t *testing.T) { + t.Run("GetAnnotationVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} + obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache{} var expected int - obj.FieldObjectNumber = expected + obj.AnnotationVersion = expected // Act & Assert - assert.Equal(t, expected, obj.GetFieldObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAnnotationVersion(), "getter should return the property value") }) - t.Run("GetFieldObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetAnnotationVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknown + var obj *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFieldObjectNumber() // Should return zero value - }) - - t.Run("GetName", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var expected string - obj.Name = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + _ = obj.GetAnnotationVersion() // Should return zero value }) - t.Run("GetName_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknown - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetName() // Should return zero value - }) +} - t.Run("GetOrigin", func(t *testing.T) { +func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("SetContentVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var expected DocFormsGet200ResponseFieldsItemUnknownOrigin - obj.Origin = expected + obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache{} + var fernTestValueContentVersion int - // Act & Assert - assert.Equal(t, expected, obj.GetOrigin(), "getter should return the property value") - }) + // Act + obj.SetContentVersion(fernTestValueContentVersion) - t.Run("GetOrigin_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknown - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetOrigin() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("GetFlags", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var expected *DocFormsGet200ResponseFieldsItemUnknownFlags - obj.Flags = expected + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - // Act & Assert - assert.Equal(t, expected, obj.GetFlags(), "getter should return the property value") + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetFlags_NilValue", func(t *testing.T) { + t.Run("SetAnnotationVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - obj.Flags = nil + obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache{} + var fernTestValueAnnotationVersion int - // Act & Assert - assert.Nil(t, obj.GetFlags(), "getter should return nil when property is nil") - }) + // Act + obj.SetAnnotationVersion(fernTestValueAnnotationVersion) - t.Run("GetFlags_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknown - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetFlags() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("GetAlternateName", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var expected *string - obj.AlternateName = expected + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - // Act & Assert - assert.Equal(t, expected, obj.GetAlternateName(), "getter should return the property value") + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetAlternateName_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - obj.AlternateName = nil - - // Act & Assert - assert.Nil(t, obj.GetAlternateName(), "getter should return nil when property is nil") - }) +} - t.Run("GetAlternateName_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknown - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAlternateName() // Should return zero value +func TestSettersDocFormsSetValue400Response(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + obj := &DocFormsSetValue400Response{} + var fernTestValueName DocFormsSetValue400ResponseName + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetMappingName", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var expected *string - obj.MappingName = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetMappingName(), "getter should return the property value") + t.Run("SetCode", func(t *testing.T) { + obj := &DocFormsSetValue400Response{} + var fernTestValueCode DocFormsSetValue400ResponseCode + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetMappingName_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - obj.MappingName = nil - - // Act & Assert - assert.Nil(t, obj.GetMappingName(), "getter should return nil when property is nil") + t.Run("SetMessage", func(t *testing.T) { + obj := &DocFormsSetValue400Response{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetMappingName_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknown - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetMappingName() // Should return zero value + t.Run("SetDetails", func(t *testing.T) { + obj := &DocFormsSetValue400Response{} + var fernTestValueDetails map[string]any + obj.SetDetails(fernTestValueDetails) + assert.Equal(t, fernTestValueDetails, obj.Details) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetValueEntry", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var expected *DocFormsGet200ResponseFieldsItemUnknownValueEntry - obj.ValueEntry = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetValueEntry(), "getter should return the property value") - }) +} - t.Run("GetValueEntry_NilValue", func(t *testing.T) { +func TestGettersDocFormsSetValue400Response(t *testing.T) { + t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - obj.ValueEntry = nil + obj := &DocFormsSetValue400Response{} + var expected DocFormsSetValue400ResponseName + obj.Name = expected // Act & Assert - assert.Nil(t, obj.GetValueEntry(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") }) - t.Run("GetValueEntry_NilReceiver", func(t *testing.T) { + t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknown + var obj *DocFormsSetValue400Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetValueEntry() // Should return zero value - }) - - t.Run("GetDefaultValueEntry", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var expected *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry - obj.DefaultValueEntry = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDefaultValueEntry(), "getter should return the property value") + _ = obj.GetName() // Should return zero value }) - t.Run("GetDefaultValueEntry_NilValue", func(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - obj.DefaultValueEntry = nil + obj := &DocFormsSetValue400Response{} + var expected DocFormsSetValue400ResponseCode + obj.Code = expected // Act & Assert - assert.Nil(t, obj.GetDefaultValueEntry(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") }) - t.Run("GetDefaultValueEntry_NilReceiver", func(t *testing.T) { + t.Run("GetCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknown + var obj *DocFormsSetValue400Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDefaultValueEntry() // Should return zero value - }) - - t.Run("GetActions", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var expected *PdfFieldActions - obj.Actions = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetActions(), "getter should return the property value") + _ = obj.GetCode() // Should return zero value }) - t.Run("GetActions_NilValue", func(t *testing.T) { + t.Run("GetMessage", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - obj.Actions = nil + obj := &DocFormsSetValue400Response{} + var expected string + obj.Message = expected // Act & Assert - assert.Nil(t, obj.GetActions(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") }) - t.Run("GetActions_NilReceiver", func(t *testing.T) { + t.Run("GetMessage_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknown + var obj *DocFormsSetValue400Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetActions() // Should return zero value - }) - - t.Run("GetWidgets", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var expected []*DocFormsGet200ResponseFieldsItemUnknownWidgetsItem - obj.Widgets = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetWidgets(), "getter should return the property value") + _ = obj.GetMessage() // Should return zero value }) - t.Run("GetWidgets_NilValue", func(t *testing.T) { + t.Run("GetDetails", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - obj.Widgets = nil + obj := &DocFormsSetValue400Response{} + var expected map[string]any + obj.Details = expected // Act & Assert - assert.Nil(t, obj.GetWidgets(), "getter should return nil when property is nil") - }) - - t.Run("GetWidgets_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknown - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetWidgets() // Should return zero value + assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") }) - t.Run("GetRawValue", func(t *testing.T) { + t.Run("GetDetails_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var expected string - obj.RawValue = expected + obj := &DocFormsSetValue400Response{} + obj.Details = nil // Act & Assert - assert.Equal(t, expected, obj.GetRawValue(), "getter should return the property value") + assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") }) - t.Run("GetRawValue_NilReceiver", func(t *testing.T) { + t.Run("GetDetails_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknown + var obj *DocFormsSetValue400Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRawValue() // Should return zero value + _ = obj.GetDetails() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknown(t *testing.T) { - t.Run("SetRef_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocFormsSetValue400Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueRef *DocFormsGet200ResponseFieldsItemUnknownRef + obj := &DocFormsSetValue400Response{} + var fernTestValueName DocFormsSetValue400ResponseName // Act - obj.SetRef(fernTestValueRef) + obj.SetName(fernTestValueName) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -228575,14 +270958,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknown(t *testing.T // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueFieldObjectNumber int + obj := &DocFormsSetValue400Response{} + var fernTestValueCode DocFormsSetValue400ResponseCode // Act - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) + obj.SetCode(fernTestValueCode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -228606,14 +270989,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknown(t *testing.T // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Run("SetMessage_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueName string + obj := &DocFormsSetValue400Response{} + var fernTestValueMessage string // Act - obj.SetName(fernTestValueName) + obj.SetMessage(fernTestValueMessage) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -228637,14 +271020,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknown(t *testing.T // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrigin_MarksExplicit", func(t *testing.T) { + t.Run("SetDetails_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueOrigin DocFormsGet200ResponseFieldsItemUnknownOrigin + obj := &DocFormsSetValue400Response{} + var fernTestValueDetails map[string]any // Act - obj.SetOrigin(fernTestValueOrigin) + obj.SetDetails(fernTestValueDetails) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -228668,138 +271051,157 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknown(t *testing.T // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetFlags_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueFlags *DocFormsGet200ResponseFieldsItemUnknownFlags +} - // Act - obj.SetFlags(fernTestValueFlags) +func TestSettersDocFormsSetValue404Response(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + obj := &DocFormsSetValue404Response{} + var fernTestValueName DocFormsSetValue404ResponseName + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) + assert.NotNil(t, obj.explicitFields) + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("SetCode", func(t *testing.T) { + obj := &DocFormsSetValue404Response{} + var fernTestValueCode DocFormsSetValue404ResponseCode + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("SetMessage", func(t *testing.T) { + obj := &DocFormsSetValue404Response{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("SetDetails", func(t *testing.T) { + obj := &DocFormsSetValue404Response{} + var fernTestValueDetails map[string]any + obj.SetDetails(fernTestValueDetails) + assert.Equal(t, fernTestValueDetails, obj.Details) + assert.NotNil(t, obj.explicitFields) }) - t.Run("SetAlternateName_MarksExplicit", func(t *testing.T) { +} + +func TestGettersDocFormsSetValue404Response(t *testing.T) { + t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueAlternateName *string - - // Act - obj.SetAlternateName(fernTestValueAlternateName) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocFormsSetValue404Response{} + var expected DocFormsSetValue404ResponseName + obj.Name = expected - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsSetValue404Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetName() // Should return zero value }) - t.Run("SetMappingName_MarksExplicit", func(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueMappingName *string + obj := &DocFormsSetValue404Response{} + var expected DocFormsSetValue404ResponseCode + obj.Code = expected - // Act - obj.SetMappingName(fernTestValueMappingName) + // Act & Assert + assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsSetValue404Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCode() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetMessage", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue404Response{} + var expected string + obj.Message = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") }) - t.Run("SetValueEntry_MarksExplicit", func(t *testing.T) { + t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsSetValue404Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMessage() // Should return zero value + }) + + t.Run("GetDetails", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueValueEntry *DocFormsGet200ResponseFieldsItemUnknownValueEntry + obj := &DocFormsSetValue404Response{} + var expected map[string]any + obj.Details = expected - // Act - obj.SetValueEntry(fernTestValueValueEntry) + // Act & Assert + assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocFormsSetValue404Response{} + obj.Details = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocFormsSetValue404Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDetails() // Should return zero value }) - t.Run("SetDefaultValueEntry_MarksExplicit", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocFormsSetValue404Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueDefaultValueEntry *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry + obj := &DocFormsSetValue404Response{} + var fernTestValueName DocFormsSetValue404ResponseName // Act - obj.SetDefaultValueEntry(fernTestValueDefaultValueEntry) + obj.SetName(fernTestValueName) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -228823,14 +271225,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknown(t *testing.T // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetActions_MarksExplicit", func(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueActions *PdfFieldActions + obj := &DocFormsSetValue404Response{} + var fernTestValueCode DocFormsSetValue404ResponseCode // Act - obj.SetActions(fernTestValueActions) + obj.SetCode(fernTestValueCode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -228854,14 +271256,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknown(t *testing.T // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWidgets_MarksExplicit", func(t *testing.T) { + t.Run("SetMessage_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueWidgets []*DocFormsGet200ResponseFieldsItemUnknownWidgetsItem + obj := &DocFormsSetValue404Response{} + var fernTestValueMessage string // Act - obj.SetWidgets(fernTestValueWidgets) + obj.SetMessage(fernTestValueMessage) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -228885,14 +271287,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknown(t *testing.T // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRawValue_MarksExplicit", func(t *testing.T) { + t.Run("SetDetails_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknown{} - var fernTestValueRawValue string + obj := &DocFormsSetValue404Response{} + var fernTestValueDetails map[string]any // Act - obj.SetRawValue(fernTestValueRawValue) + obj.SetDetails(fernTestValueDetails) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -228918,220 +271320,186 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknown(t *testing.T } -func TestGettersDocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry{} - var expected string - obj.Kind = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") +func TestSettersDocHead404Response(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + obj := &DocHead404Response{} + var fernTestValueName DocHead404ResponseName + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetKind() // Should return zero value + t.Run("SetCode", func(t *testing.T) { + obj := &DocHead404Response{} + var fernTestValueCode DocHead404ResponseCode + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetNone", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryNone - obj.None = expected + t.Run("SetMessage", func(t *testing.T) { + obj := &DocHead404Response{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Equal(t, expected, obj.GetNone(), "getter should return the property value") + t.Run("SetDetails", func(t *testing.T) { + obj := &DocHead404Response{} + var fernTestValueDetails map[string]any + obj.SetDetails(fernTestValueDetails) + assert.Equal(t, fernTestValueDetails, obj.Details) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetNone_NilValue", func(t *testing.T) { +} + +func TestGettersDocHead404Response(t *testing.T) { + t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry{} - obj.None = nil + obj := &DocHead404Response{} + var expected DocHead404ResponseName + obj.Name = expected // Act & Assert - assert.Nil(t, obj.GetNone(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") }) - t.Run("GetNone_NilReceiver", func(t *testing.T) { + t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry + var obj *DocHead404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNone() // Should return zero value - }) - - t.Run("GetScalar", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar - obj.Scalar = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetScalar(), "getter should return the property value") + _ = obj.GetName() // Should return zero value }) - t.Run("GetScalar_NilValue", func(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry{} - obj.Scalar = nil + obj := &DocHead404Response{} + var expected DocHead404ResponseCode + obj.Code = expected // Act & Assert - assert.Nil(t, obj.GetScalar(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") }) - t.Run("GetScalar_NilReceiver", func(t *testing.T) { + t.Run("GetCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry + var obj *DocHead404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetScalar() // Should return zero value - }) - - t.Run("GetArray", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray - obj.Array = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetArray(), "getter should return the property value") + _ = obj.GetCode() // Should return zero value }) - t.Run("GetArray_NilValue", func(t *testing.T) { + t.Run("GetMessage", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry{} - obj.Array = nil + obj := &DocHead404Response{} + var expected string + obj.Message = expected // Act & Assert - assert.Nil(t, obj.GetArray(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") }) - t.Run("GetArray_NilReceiver", func(t *testing.T) { + t.Run("GetMessage_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry + var obj *DocHead404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetArray() // Should return zero value + _ = obj.GetMessage() // Should return zero value }) - t.Run("GetUnsupported", func(t *testing.T) { + t.Run("GetDetails", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryUnsupported - obj.Unsupported = expected + obj := &DocHead404Response{} + var expected map[string]any + obj.Details = expected // Act & Assert - assert.Equal(t, expected, obj.GetUnsupported(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") }) - t.Run("GetUnsupported_NilValue", func(t *testing.T) { + t.Run("GetDetails_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry{} - obj.Unsupported = nil + obj := &DocHead404Response{} + obj.Details = nil // Act & Assert - assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") }) - t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { + t.Run("GetDetails_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntry + var obj *DocHead404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUnsupported() // Should return zero value - }) - -} - -func TestSettersDocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray(t *testing.T) { - t.Run("SetValues", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray{} - var fernTestValueValues []string - obj.SetValues(fernTestValueValues) - assert.Equal(t, fernTestValueValues, obj.Values) - assert.NotNil(t, obj.explicitFields) + _ = obj.GetDetails() // Should return zero value }) } -func TestGettersDocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray(t *testing.T) { - t.Run("GetValues", func(t *testing.T) { +func TestSettersMarkExplicitDocHead404Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray{} - var expected []string - obj.Values = expected + obj := &DocHead404Response{} + var fernTestValueName DocHead404ResponseName - // Act & Assert - assert.Equal(t, expected, obj.GetValues(), "getter should return the property value") - }) + // Act + obj.SetName(fernTestValueName) - t.Run("GetValues_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray{} - obj.Values = nil + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Nil(t, obj.GetValues(), "getter should return nil when property is nil") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetValues_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetValues() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray(t *testing.T) { - t.Run("SetValues_MarksExplicit", func(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryArray{} - var fernTestValueValues []string + obj := &DocHead404Response{} + var fernTestValueCode DocHead404ResponseCode // Act - obj.SetValues(fernTestValueValues) + obj.SetCode(fernTestValueCode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -229155,54 +271523,45 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownDefaultValueE // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar(t *testing.T) { - t.Run("SetValue", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar{} - var fernTestValueValue string - obj.SetValue(fernTestValueValue) - assert.Equal(t, fernTestValueValue, obj.Value) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar(t *testing.T) { - t.Run("GetValue", func(t *testing.T) { + t.Run("SetMessage_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar{} - var expected string - obj.Value = expected + obj := &DocHead404Response{} + var fernTestValueMessage string - // Act & Assert - assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") - }) + // Act + obj.SetMessage(fernTestValueMessage) - t.Run("GetValue_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetValue() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") -} + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar(t *testing.T) { - t.Run("SetValue_MarksExplicit", func(t *testing.T) { + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDetails_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownDefaultValueEntryScalar{} - var fernTestValueValue string + obj := &DocHead404Response{} + var fernTestValueDetails map[string]any // Act - obj.SetValue(fernTestValueValue) + obj.SetDetails(fernTestValueDetails) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -229228,145 +271587,155 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownDefaultValueE } -func TestSettersDocFormsGet200ResponseFieldsItemUnknownFlags(t *testing.T) { - t.Run("SetReadOnly", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} - var fernTestValueReadOnly bool - obj.SetReadOnly(fernTestValueReadOnly) - assert.Equal(t, fernTestValueReadOnly, obj.ReadOnly) +func TestSettersDocManifest404Response(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + obj := &DocManifest404Response{} + var fernTestValueName DocManifest404ResponseName + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRequired", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} - var fernTestValueRequired bool - obj.SetRequired(fernTestValueRequired) - assert.Equal(t, fernTestValueRequired, obj.Required) + t.Run("SetCode", func(t *testing.T) { + obj := &DocManifest404Response{} + var fernTestValueCode DocManifest404ResponseCode + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNoExport", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} - var fernTestValueNoExport bool - obj.SetNoExport(fernTestValueNoExport) - assert.Equal(t, fernTestValueNoExport, obj.NoExport) + t.Run("SetMessage", func(t *testing.T) { + obj := &DocManifest404Response{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRaw", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} - var fernTestValueRaw int - obj.SetRaw(fernTestValueRaw) - assert.Equal(t, fernTestValueRaw, obj.Raw) + t.Run("SetDetails", func(t *testing.T) { + obj := &DocManifest404Response{} + var fernTestValueDetails map[string]any + obj.SetDetails(fernTestValueDetails) + assert.Equal(t, fernTestValueDetails, obj.Details) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocFormsGet200ResponseFieldsItemUnknownFlags(t *testing.T) { - t.Run("GetReadOnly", func(t *testing.T) { +func TestGettersDocManifest404Response(t *testing.T) { + t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} - var expected bool - obj.ReadOnly = expected + obj := &DocManifest404Response{} + var expected DocManifest404ResponseName + obj.Name = expected // Act & Assert - assert.Equal(t, expected, obj.GetReadOnly(), "getter should return the property value") + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") }) - t.Run("GetReadOnly_NilReceiver", func(t *testing.T) { + t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownFlags + var obj *DocManifest404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReadOnly() // Should return zero value + _ = obj.GetName() // Should return zero value }) - t.Run("GetRequired", func(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} - var expected bool - obj.Required = expected + obj := &DocManifest404Response{} + var expected DocManifest404ResponseCode + obj.Code = expected // Act & Assert - assert.Equal(t, expected, obj.GetRequired(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") }) - t.Run("GetRequired_NilReceiver", func(t *testing.T) { + t.Run("GetCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownFlags + var obj *DocManifest404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRequired() // Should return zero value + _ = obj.GetCode() // Should return zero value }) - t.Run("GetNoExport", func(t *testing.T) { + t.Run("GetMessage", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} - var expected bool - obj.NoExport = expected + obj := &DocManifest404Response{} + var expected string + obj.Message = expected // Act & Assert - assert.Equal(t, expected, obj.GetNoExport(), "getter should return the property value") + assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") }) - t.Run("GetNoExport_NilReceiver", func(t *testing.T) { + t.Run("GetMessage_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownFlags + var obj *DocManifest404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNoExport() // Should return zero value + _ = obj.GetMessage() // Should return zero value }) - t.Run("GetRaw", func(t *testing.T) { + t.Run("GetDetails", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} - var expected int - obj.Raw = expected + obj := &DocManifest404Response{} + var expected map[string]any + obj.Details = expected // Act & Assert - assert.Equal(t, expected, obj.GetRaw(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") }) - t.Run("GetRaw_NilReceiver", func(t *testing.T) { + t.Run("GetDetails_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownFlags + // Arrange + obj := &DocManifest404Response{} + obj.Details = nil + + // Act & Assert + assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + }) + + t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocManifest404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRaw() // Should return zero value + _ = obj.GetDetails() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownFlags(t *testing.T) { - t.Run("SetReadOnly_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocManifest404Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} - var fernTestValueReadOnly bool + obj := &DocManifest404Response{} + var fernTestValueName DocManifest404ResponseName // Act - obj.SetReadOnly(fernTestValueReadOnly) + obj.SetName(fernTestValueName) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -229390,14 +271759,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownFlags(t *test // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRequired_MarksExplicit", func(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} - var fernTestValueRequired bool + obj := &DocManifest404Response{} + var fernTestValueCode DocManifest404ResponseCode // Act - obj.SetRequired(fernTestValueRequired) + obj.SetCode(fernTestValueCode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -229421,14 +271790,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownFlags(t *test // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNoExport_MarksExplicit", func(t *testing.T) { + t.Run("SetMessage_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} - var fernTestValueNoExport bool + obj := &DocManifest404Response{} + var fernTestValueMessage string // Act - obj.SetNoExport(fernTestValueNoExport) + obj.SetMessage(fernTestValueMessage) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -229452,14 +271821,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownFlags(t *test // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRaw_MarksExplicit", func(t *testing.T) { + t.Run("SetDetails_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownFlags{} - var fernTestValueRaw int + obj := &DocManifest404Response{} + var fernTestValueDetails map[string]any // Act - obj.SetRaw(fernTestValueRaw) + obj.SetDetails(fernTestValueDetails) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -229485,454 +271854,421 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownFlags(t *test } -func TestGettersDocFormsGet200ResponseFieldsItemUnknownRef(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownRef{} - var expected string - obj.Kind = expected +func TestSettersDocMetadataGet200Response(t *testing.T) { + t.Run("SetTitle", func(t *testing.T) { + obj := &DocMetadataGet200Response{} + var fernTestValueTitle *string + obj.SetTitle(fernTestValueTitle) + assert.Equal(t, fernTestValueTitle, obj.Title) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + t.Run("SetAuthor", func(t *testing.T) { + obj := &DocMetadataGet200Response{} + var fernTestValueAuthor *string + obj.SetAuthor(fernTestValueAuthor) + assert.Equal(t, fernTestValueAuthor, obj.Author) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownRef - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetKind() // Should return zero value + t.Run("SetSubject", func(t *testing.T) { + obj := &DocMetadataGet200Response{} + var fernTestValueSubject *string + obj.SetSubject(fernTestValueSubject) + assert.Equal(t, fernTestValueSubject, obj.Subject) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetObjectNumber", func(t *testing.T) { + t.Run("SetKeywords", func(t *testing.T) { + obj := &DocMetadataGet200Response{} + var fernTestValueKeywords *string + obj.SetKeywords(fernTestValueKeywords) + assert.Equal(t, fernTestValueKeywords, obj.Keywords) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetProducer", func(t *testing.T) { + obj := &DocMetadataGet200Response{} + var fernTestValueProducer *string + obj.SetProducer(fernTestValueProducer) + assert.Equal(t, fernTestValueProducer, obj.Producer) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCreator", func(t *testing.T) { + obj := &DocMetadataGet200Response{} + var fernTestValueCreator *string + obj.SetCreator(fernTestValueCreator) + assert.Equal(t, fernTestValueCreator, obj.Creator) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCreated", func(t *testing.T) { + obj := &DocMetadataGet200Response{} + var fernTestValueCreated *time.Time + obj.SetCreated(fernTestValueCreated) + assert.Equal(t, fernTestValueCreated, obj.Created) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetModified", func(t *testing.T) { + obj := &DocMetadataGet200Response{} + var fernTestValueModified *time.Time + obj.SetModified(fernTestValueModified) + assert.Equal(t, fernTestValueModified, obj.Modified) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetTrapped", func(t *testing.T) { + obj := &DocMetadataGet200Response{} + var fernTestValueTrapped DocMetadataGet200ResponseTrapped + obj.SetTrapped(fernTestValueTrapped) + assert.Equal(t, fernTestValueTrapped, obj.Trapped) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCustom", func(t *testing.T) { + obj := &DocMetadataGet200Response{} + var fernTestValueCustom map[string]string + obj.SetCustom(fernTestValueCustom) + assert.Equal(t, fernTestValueCustom, obj.Custom) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocMetadataGet200Response(t *testing.T) { + t.Run("GetTitle", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownRef{} - var expected *DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber - obj.ObjectNumber = expected + obj := &DocMetadataGet200Response{} + var expected *string + obj.Title = expected // Act & Assert - assert.Equal(t, expected, obj.GetObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTitle(), "getter should return the property value") }) - t.Run("GetObjectNumber_NilValue", func(t *testing.T) { + t.Run("GetTitle_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownRef{} - obj.ObjectNumber = nil + obj := &DocMetadataGet200Response{} + obj.Title = nil // Act & Assert - assert.Nil(t, obj.GetObjectNumber(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetTitle(), "getter should return nil when property is nil") }) - t.Run("GetObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetTitle_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownRef + var obj *DocMetadataGet200Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetObjectNumber() // Should return zero value + _ = obj.GetTitle() // Should return zero value }) - t.Run("GetFqn", func(t *testing.T) { + t.Run("GetAuthor", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownRef{} - var expected *DocFormsGet200ResponseFieldsItemUnknownRefFqn - obj.Fqn = expected + obj := &DocMetadataGet200Response{} + var expected *string + obj.Author = expected // Act & Assert - assert.Equal(t, expected, obj.GetFqn(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAuthor(), "getter should return the property value") }) - t.Run("GetFqn_NilValue", func(t *testing.T) { + t.Run("GetAuthor_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownRef{} - obj.Fqn = nil + obj := &DocMetadataGet200Response{} + obj.Author = nil // Act & Assert - assert.Nil(t, obj.GetFqn(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetAuthor(), "getter should return nil when property is nil") }) - t.Run("GetFqn_NilReceiver", func(t *testing.T) { + t.Run("GetAuthor_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownRef + var obj *DocMetadataGet200Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFqn() // Should return zero value + _ = obj.GetAuthor() // Should return zero value }) -} + t.Run("GetSubject", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocMetadataGet200Response{} + var expected *string + obj.Subject = expected -func TestSettersDocFormsGet200ResponseFieldsItemUnknownRefFqn(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownRefFqn{} - var fernTestValueName string - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetSubject(), "getter should return the property value") }) -} - -func TestGettersDocFormsGet200ResponseFieldsItemUnknownRefFqn(t *testing.T) { - t.Run("GetName", func(t *testing.T) { + t.Run("GetSubject_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownRefFqn{} - var expected string - obj.Name = expected + obj := &DocMetadataGet200Response{} + obj.Subject = nil // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Nil(t, obj.GetSubject(), "getter should return nil when property is nil") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetSubject_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownRefFqn + var obj *DocMetadataGet200Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetName() // Should return zero value + _ = obj.GetSubject() // Should return zero value }) -} - -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownRefFqn(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Run("GetKeywords", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownRefFqn{} - var fernTestValueName string - - // Act - obj.SetName(fernTestValueName) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} + obj := &DocMetadataGet200Response{} + var expected *string + obj.Keywords = expected -func TestSettersDocFormsGet200ResponseFieldsItemUnknownRefObjectNumber(t *testing.T) { - t.Run("SetFieldObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber{} - var fernTestValueFieldObjectNumber int - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) - assert.Equal(t, fernTestValueFieldObjectNumber, obj.FieldObjectNumber) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetKeywords(), "getter should return the property value") }) -} - -func TestGettersDocFormsGet200ResponseFieldsItemUnknownRefObjectNumber(t *testing.T) { - t.Run("GetFieldObjectNumber", func(t *testing.T) { + t.Run("GetKeywords_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber{} - var expected int - obj.FieldObjectNumber = expected + obj := &DocMetadataGet200Response{} + obj.Keywords = nil // Act & Assert - assert.Equal(t, expected, obj.GetFieldObjectNumber(), "getter should return the property value") + assert.Nil(t, obj.GetKeywords(), "getter should return nil when property is nil") }) - t.Run("GetFieldObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetKeywords_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber + var obj *DocMetadataGet200Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetFieldObjectNumber() // Should return zero value + _ = obj.GetKeywords() // Should return zero value }) -} - -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownRefObjectNumber(t *testing.T) { - t.Run("SetFieldObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("GetProducer", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownRefObjectNumber{} - var fernTestValueFieldObjectNumber int - - // Act - obj.SetFieldObjectNumber(fernTestValueFieldObjectNumber) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocMetadataGet200Response{} + var expected *string + obj.Producer = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetProducer(), "getter should return the property value") }) -} - -func TestGettersDocFormsGet200ResponseFieldsItemUnknownValueEntry(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { + t.Run("GetProducer_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntry{} - var expected string - obj.Kind = expected + obj := &DocMetadataGet200Response{} + obj.Producer = nil // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Nil(t, obj.GetProducer(), "getter should return nil when property is nil") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetProducer_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownValueEntry + var obj *DocMetadataGet200Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKind() // Should return zero value + _ = obj.GetProducer() // Should return zero value }) - t.Run("GetNone", func(t *testing.T) { + t.Run("GetCreator", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemUnknownValueEntryNone - obj.None = expected + obj := &DocMetadataGet200Response{} + var expected *string + obj.Creator = expected // Act & Assert - assert.Equal(t, expected, obj.GetNone(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCreator(), "getter should return the property value") }) - t.Run("GetNone_NilValue", func(t *testing.T) { + t.Run("GetCreator_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntry{} - obj.None = nil + obj := &DocMetadataGet200Response{} + obj.Creator = nil // Act & Assert - assert.Nil(t, obj.GetNone(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCreator(), "getter should return nil when property is nil") }) - t.Run("GetNone_NilReceiver", func(t *testing.T) { + t.Run("GetCreator_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownValueEntry + var obj *DocMetadataGet200Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNone() // Should return zero value + _ = obj.GetCreator() // Should return zero value }) - t.Run("GetScalar", func(t *testing.T) { + t.Run("GetCreated", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar - obj.Scalar = expected + obj := &DocMetadataGet200Response{} + var expected *time.Time + obj.Created = expected // Act & Assert - assert.Equal(t, expected, obj.GetScalar(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCreated(), "getter should return the property value") }) - t.Run("GetScalar_NilValue", func(t *testing.T) { + t.Run("GetCreated_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntry{} - obj.Scalar = nil + obj := &DocMetadataGet200Response{} + obj.Created = nil // Act & Assert - assert.Nil(t, obj.GetScalar(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCreated(), "getter should return nil when property is nil") }) - t.Run("GetScalar_NilReceiver", func(t *testing.T) { + t.Run("GetCreated_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownValueEntry + var obj *DocMetadataGet200Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetScalar() // Should return zero value + _ = obj.GetCreated() // Should return zero value }) - t.Run("GetArray", func(t *testing.T) { + t.Run("GetModified", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemUnknownValueEntryArray - obj.Array = expected + obj := &DocMetadataGet200Response{} + var expected *time.Time + obj.Modified = expected // Act & Assert - assert.Equal(t, expected, obj.GetArray(), "getter should return the property value") + assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") }) - t.Run("GetArray_NilValue", func(t *testing.T) { + t.Run("GetModified_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntry{} - obj.Array = nil + obj := &DocMetadataGet200Response{} + obj.Modified = nil // Act & Assert - assert.Nil(t, obj.GetArray(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetModified(), "getter should return nil when property is nil") }) - t.Run("GetArray_NilReceiver", func(t *testing.T) { + t.Run("GetModified_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownValueEntry + var obj *DocMetadataGet200Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetArray() // Should return zero value - }) - - t.Run("GetUnsupported", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntry{} - var expected *DocFormsGet200ResponseFieldsItemUnknownValueEntryUnsupported - obj.Unsupported = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetUnsupported(), "getter should return the property value") + _ = obj.GetModified() // Should return zero value }) - t.Run("GetUnsupported_NilValue", func(t *testing.T) { + t.Run("GetTrapped", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntry{} - obj.Unsupported = nil + obj := &DocMetadataGet200Response{} + var expected DocMetadataGet200ResponseTrapped + obj.Trapped = expected // Act & Assert - assert.Nil(t, obj.GetUnsupported(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetTrapped(), "getter should return the property value") }) - t.Run("GetUnsupported_NilReceiver", func(t *testing.T) { + t.Run("GetTrapped_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownValueEntry + var obj *DocMetadataGet200Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUnsupported() // Should return zero value - }) - -} - -func TestSettersDocFormsGet200ResponseFieldsItemUnknownValueEntryArray(t *testing.T) { - t.Run("SetValues", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryArray{} - var fernTestValueValues []string - obj.SetValues(fernTestValueValues) - assert.Equal(t, fernTestValueValues, obj.Values) - assert.NotNil(t, obj.explicitFields) + _ = obj.GetTrapped() // Should return zero value }) -} - -func TestGettersDocFormsGet200ResponseFieldsItemUnknownValueEntryArray(t *testing.T) { - t.Run("GetValues", func(t *testing.T) { + t.Run("GetCustom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryArray{} - var expected []string - obj.Values = expected + obj := &DocMetadataGet200Response{} + var expected map[string]string + obj.Custom = expected // Act & Assert - assert.Equal(t, expected, obj.GetValues(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCustom(), "getter should return the property value") }) - t.Run("GetValues_NilValue", func(t *testing.T) { + t.Run("GetCustom_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryArray{} - obj.Values = nil + obj := &DocMetadataGet200Response{} + obj.Custom = nil // Act & Assert - assert.Nil(t, obj.GetValues(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCustom(), "getter should return nil when property is nil") }) - t.Run("GetValues_NilReceiver", func(t *testing.T) { + t.Run("GetCustom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownValueEntryArray + var obj *DocMetadataGet200Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetValues() // Should return zero value + _ = obj.GetCustom() // Should return zero value }) } -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownValueEntryArray(t *testing.T) { - t.Run("SetValues_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocMetadataGet200Response(t *testing.T) { + t.Run("SetTitle_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryArray{} - var fernTestValueValues []string + obj := &DocMetadataGet200Response{} + var fernTestValueTitle *string // Act - obj.SetValues(fernTestValueValues) + obj.SetTitle(fernTestValueTitle) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -229956,54 +272292,200 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownValueEntryArr // It verifies that setting a field via setter allows successful JSON round-trip }) -} + t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocMetadataGet200Response{} + var fernTestValueAuthor *string -func TestSettersDocFormsGet200ResponseFieldsItemUnknownValueEntryScalar(t *testing.T) { - t.Run("SetValue", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar{} - var fernTestValueValue string - obj.SetValue(fernTestValueValue) - assert.Equal(t, fernTestValueValue, obj.Value) - assert.NotNil(t, obj.explicitFields) + // Act + obj.SetAuthor(fernTestValueAuthor) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} + t.Run("SetSubject_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocMetadataGet200Response{} + var fernTestValueSubject *string -func TestGettersDocFormsGet200ResponseFieldsItemUnknownValueEntryScalar(t *testing.T) { - t.Run("GetValue", func(t *testing.T) { + // Act + obj.SetSubject(fernTestValueSubject) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetKeywords_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar{} - var expected string - obj.Value = expected + obj := &DocMetadataGet200Response{} + var fernTestValueKeywords *string - // Act & Assert - assert.Equal(t, expected, obj.GetValue(), "getter should return the property value") + // Act + obj.SetKeywords(fernTestValueKeywords) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetValue_NilReceiver", func(t *testing.T) { + t.Run("SetProducer_MarksExplicit", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetValue() // Should return zero value + // Arrange + obj := &DocMetadataGet200Response{} + var fernTestValueProducer *string + + // Act + obj.SetProducer(fernTestValueProducer) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} + t.Run("SetCreator_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocMetadataGet200Response{} + var fernTestValueCreator *string + + // Act + obj.SetCreator(fernTestValueCreator) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCreated_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocMetadataGet200Response{} + var fernTestValueCreated *time.Time + + // Act + obj.SetCreated(fernTestValueCreated) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownValueEntryScalar(t *testing.T) { - t.Run("SetValue_MarksExplicit", func(t *testing.T) { + t.Run("SetModified_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownValueEntryScalar{} - var fernTestValueValue string + obj := &DocMetadataGet200Response{} + var fernTestValueModified *time.Time // Act - obj.SetValue(fernTestValueValue) + obj.SetModified(fernTestValueModified) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -230027,85 +272509,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownValueEntrySca // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocFormsGet200ResponseFieldsItemUnknownWidgetsItem(t *testing.T) { - t.Run("SetAnnotObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownWidgetsItem{} - var fernTestValueAnnotObjectNumber int - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) - assert.Equal(t, fernTestValueAnnotObjectNumber, obj.AnnotObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocFormsGet200ResponseFieldsItemUnknownWidgetsItem{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocFormsGet200ResponseFieldsItemUnknownWidgetsItem(t *testing.T) { - t.Run("GetAnnotObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownWidgetsItem{} - var expected int - obj.AnnotObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAnnotObjectNumber(), "getter should return the property value") - }) - - t.Run("GetAnnotObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownWidgetsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAnnotObjectNumber() // Should return zero value - }) - - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownWidgetsItem{} - var expected int - obj.PageObjectNumber = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) - - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsGet200ResponseFieldsItemUnknownWidgetsItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownWidgetsItem(t *testing.T) { - t.Run("SetAnnotObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetTrapped_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownWidgetsItem{} - var fernTestValueAnnotObjectNumber int + obj := &DocMetadataGet200Response{} + var fernTestValueTrapped DocMetadataGet200ResponseTrapped // Act - obj.SetAnnotObjectNumber(fernTestValueAnnotObjectNumber) + obj.SetTrapped(fernTestValueTrapped) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -230129,14 +272540,14 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownWidgetsItem(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetCustom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet200ResponseFieldsItemUnknownWidgetsItem{} - var fernTestValuePageObjectNumber int + obj := &DocMetadataGet200Response{} + var fernTestValueCustom map[string]string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetCustom(fernTestValueCustom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -230162,25 +272573,25 @@ func TestSettersMarkExplicitDocFormsGet200ResponseFieldsItemUnknownWidgetsItem(t } -func TestSettersDocFormsGet404Response(t *testing.T) { +func TestSettersDocMetadataGet404Response(t *testing.T) { t.Run("SetName", func(t *testing.T) { - obj := &DocFormsGet404Response{} - var fernTestValueName DocFormsGet404ResponseName + obj := &DocMetadataGet404Response{} + var fernTestValueName DocMetadataGet404ResponseName obj.SetName(fernTestValueName) assert.Equal(t, fernTestValueName, obj.Name) assert.NotNil(t, obj.explicitFields) }) t.Run("SetCode", func(t *testing.T) { - obj := &DocFormsGet404Response{} - var fernTestValueCode DocFormsGet404ResponseCode + obj := &DocMetadataGet404Response{} + var fernTestValueCode DocMetadataGet404ResponseCode obj.SetCode(fernTestValueCode) assert.Equal(t, fernTestValueCode, obj.Code) assert.NotNil(t, obj.explicitFields) }) t.Run("SetMessage", func(t *testing.T) { - obj := &DocFormsGet404Response{} + obj := &DocMetadataGet404Response{} var fernTestValueMessage string obj.SetMessage(fernTestValueMessage) assert.Equal(t, fernTestValueMessage, obj.Message) @@ -230188,7 +272599,7 @@ func TestSettersDocFormsGet404Response(t *testing.T) { }) t.Run("SetDetails", func(t *testing.T) { - obj := &DocFormsGet404Response{} + obj := &DocMetadataGet404Response{} var fernTestValueDetails map[string]any obj.SetDetails(fernTestValueDetails) assert.Equal(t, fernTestValueDetails, obj.Details) @@ -230197,12 +272608,12 @@ func TestSettersDocFormsGet404Response(t *testing.T) { } -func TestGettersDocFormsGet404Response(t *testing.T) { +func TestGettersDocMetadataGet404Response(t *testing.T) { t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet404Response{} - var expected DocFormsGet404ResponseName + obj := &DocMetadataGet404Response{} + var expected DocMetadataGet404ResponseName obj.Name = expected // Act & Assert @@ -230211,7 +272622,7 @@ func TestGettersDocFormsGet404Response(t *testing.T) { t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet404Response + var obj *DocMetadataGet404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -230224,8 +272635,8 @@ func TestGettersDocFormsGet404Response(t *testing.T) { t.Run("GetCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet404Response{} - var expected DocFormsGet404ResponseCode + obj := &DocMetadataGet404Response{} + var expected DocMetadataGet404ResponseCode obj.Code = expected // Act & Assert @@ -230234,7 +272645,7 @@ func TestGettersDocFormsGet404Response(t *testing.T) { t.Run("GetCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet404Response + var obj *DocMetadataGet404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -230247,7 +272658,7 @@ func TestGettersDocFormsGet404Response(t *testing.T) { t.Run("GetMessage", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet404Response{} + obj := &DocMetadataGet404Response{} var expected string obj.Message = expected @@ -230257,7 +272668,7 @@ func TestGettersDocFormsGet404Response(t *testing.T) { t.Run("GetMessage_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet404Response + var obj *DocMetadataGet404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -230270,7 +272681,7 @@ func TestGettersDocFormsGet404Response(t *testing.T) { t.Run("GetDetails", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet404Response{} + obj := &DocMetadataGet404Response{} var expected map[string]any obj.Details = expected @@ -230281,7 +272692,7 @@ func TestGettersDocFormsGet404Response(t *testing.T) { t.Run("GetDetails_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet404Response{} + obj := &DocMetadataGet404Response{} obj.Details = nil // Act & Assert @@ -230290,7 +272701,7 @@ func TestGettersDocFormsGet404Response(t *testing.T) { t.Run("GetDetails_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsGet404Response + var obj *DocMetadataGet404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -230302,12 +272713,12 @@ func TestGettersDocFormsGet404Response(t *testing.T) { } -func TestSettersMarkExplicitDocFormsGet404Response(t *testing.T) { +func TestSettersMarkExplicitDocMetadataGet404Response(t *testing.T) { t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet404Response{} - var fernTestValueName DocFormsGet404ResponseName + obj := &DocMetadataGet404Response{} + var fernTestValueName DocMetadataGet404ResponseName // Act obj.SetName(fernTestValueName) @@ -230337,8 +272748,8 @@ func TestSettersMarkExplicitDocFormsGet404Response(t *testing.T) { t.Run("SetCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet404Response{} - var fernTestValueCode DocFormsGet404ResponseCode + obj := &DocMetadataGet404Response{} + var fernTestValueCode DocMetadataGet404ResponseCode // Act obj.SetCode(fernTestValueCode) @@ -230368,7 +272779,7 @@ func TestSettersMarkExplicitDocFormsGet404Response(t *testing.T) { t.Run("SetMessage_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet404Response{} + obj := &DocMetadataGet404Response{} var fernTestValueMessage string // Act @@ -230399,7 +272810,7 @@ func TestSettersMarkExplicitDocFormsGet404Response(t *testing.T) { t.Run("SetDetails_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsGet404Response{} + obj := &DocMetadataGet404Response{} var fernTestValueDetails map[string]any // Act @@ -230429,10 +272840,10 @@ func TestSettersMarkExplicitDocFormsGet404Response(t *testing.T) { } -func TestSettersDocFormsImportData200Response(t *testing.T) { +func TestSettersDocPagesDelete200Response(t *testing.T) { t.Run("SetMeta", func(t *testing.T) { - obj := &DocFormsImportData200Response{} - var fernTestValueMeta *DocFormsImportData200ResponseMeta + obj := &DocPagesDelete200Response{} + var fernTestValueMeta *DocPagesDelete200ResponseMeta obj.SetMeta(fernTestValueMeta) assert.Equal(t, fernTestValueMeta, obj.Meta) assert.NotNil(t, obj.explicitFields) @@ -230440,12 +272851,12 @@ func TestSettersDocFormsImportData200Response(t *testing.T) { } -func TestGettersDocFormsImportData200Response(t *testing.T) { +func TestGettersDocPagesDelete200Response(t *testing.T) { t.Run("GetMeta", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200Response{} - var expected *DocFormsImportData200ResponseMeta + obj := &DocPagesDelete200Response{} + var expected *DocPagesDelete200ResponseMeta obj.Meta = expected // Act & Assert @@ -230455,7 +272866,7 @@ func TestGettersDocFormsImportData200Response(t *testing.T) { t.Run("GetMeta_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200Response{} + obj := &DocPagesDelete200Response{} obj.Meta = nil // Act & Assert @@ -230464,7 +272875,7 @@ func TestGettersDocFormsImportData200Response(t *testing.T) { t.Run("GetMeta_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200Response + var obj *DocPagesDelete200Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -230476,12 +272887,12 @@ func TestGettersDocFormsImportData200Response(t *testing.T) { } -func TestSettersMarkExplicitDocFormsImportData200Response(t *testing.T) { +func TestSettersMarkExplicitDocPagesDelete200Response(t *testing.T) { t.Run("SetMeta_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200Response{} - var fernTestValueMeta *DocFormsImportData200ResponseMeta + obj := &DocPagesDelete200Response{} + var fernTestValueMeta *DocPagesDelete200ResponseMeta // Act obj.SetMeta(fernTestValueMeta) @@ -230510,18 +272921,18 @@ func TestSettersMarkExplicitDocFormsImportData200Response(t *testing.T) { } -func TestSettersDocFormsImportData200ResponseMeta(t *testing.T) { +func TestSettersDocPagesDelete200ResponseMeta(t *testing.T) { t.Run("SetAffectedPages", func(t *testing.T) { - obj := &DocFormsImportData200ResponseMeta{} - var fernTestValueAffectedPages []*DocFormsImportData200ResponseMetaAffectedPagesItem + obj := &DocPagesDelete200ResponseMeta{} + var fernTestValueAffectedPages []*DocPagesDelete200ResponseMetaAffectedPagesItem obj.SetAffectedPages(fernTestValueAffectedPages) assert.Equal(t, fernTestValueAffectedPages, obj.AffectedPages) assert.NotNil(t, obj.explicitFields) }) t.Run("SetCacheDelta", func(t *testing.T) { - obj := &DocFormsImportData200ResponseMeta{} - var fernTestValueCacheDelta *DocFormsImportData200ResponseMetaCacheDelta + obj := &DocPagesDelete200ResponseMeta{} + var fernTestValueCacheDelta *DocPagesDelete200ResponseMetaCacheDelta obj.SetCacheDelta(fernTestValueCacheDelta) assert.Equal(t, fernTestValueCacheDelta, obj.CacheDelta) assert.NotNil(t, obj.explicitFields) @@ -230529,12 +272940,12 @@ func TestSettersDocFormsImportData200ResponseMeta(t *testing.T) { } -func TestGettersDocFormsImportData200ResponseMeta(t *testing.T) { +func TestGettersDocPagesDelete200ResponseMeta(t *testing.T) { t.Run("GetAffectedPages", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMeta{} - var expected []*DocFormsImportData200ResponseMetaAffectedPagesItem + obj := &DocPagesDelete200ResponseMeta{} + var expected []*DocPagesDelete200ResponseMetaAffectedPagesItem obj.AffectedPages = expected // Act & Assert @@ -230544,7 +272955,7 @@ func TestGettersDocFormsImportData200ResponseMeta(t *testing.T) { t.Run("GetAffectedPages_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMeta{} + obj := &DocPagesDelete200ResponseMeta{} obj.AffectedPages = nil // Act & Assert @@ -230553,7 +272964,7 @@ func TestGettersDocFormsImportData200ResponseMeta(t *testing.T) { t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMeta + var obj *DocPagesDelete200ResponseMeta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -230566,8 +272977,8 @@ func TestGettersDocFormsImportData200ResponseMeta(t *testing.T) { t.Run("GetCacheDelta", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMeta{} - var expected *DocFormsImportData200ResponseMetaCacheDelta + obj := &DocPagesDelete200ResponseMeta{} + var expected *DocPagesDelete200ResponseMetaCacheDelta obj.CacheDelta = expected // Act & Assert @@ -230577,7 +272988,7 @@ func TestGettersDocFormsImportData200ResponseMeta(t *testing.T) { t.Run("GetCacheDelta_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMeta{} + obj := &DocPagesDelete200ResponseMeta{} obj.CacheDelta = nil // Act & Assert @@ -230586,7 +272997,7 @@ func TestGettersDocFormsImportData200ResponseMeta(t *testing.T) { t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMeta + var obj *DocPagesDelete200ResponseMeta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -230598,12 +273009,12 @@ func TestGettersDocFormsImportData200ResponseMeta(t *testing.T) { } -func TestSettersMarkExplicitDocFormsImportData200ResponseMeta(t *testing.T) { +func TestSettersMarkExplicitDocPagesDelete200ResponseMeta(t *testing.T) { t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMeta{} - var fernTestValueAffectedPages []*DocFormsImportData200ResponseMetaAffectedPagesItem + obj := &DocPagesDelete200ResponseMeta{} + var fernTestValueAffectedPages []*DocPagesDelete200ResponseMetaAffectedPagesItem // Act obj.SetAffectedPages(fernTestValueAffectedPages) @@ -230633,8 +273044,8 @@ func TestSettersMarkExplicitDocFormsImportData200ResponseMeta(t *testing.T) { t.Run("SetCacheDelta_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMeta{} - var fernTestValueCacheDelta *DocFormsImportData200ResponseMetaCacheDelta + obj := &DocPagesDelete200ResponseMeta{} + var fernTestValueCacheDelta *DocPagesDelete200ResponseMetaCacheDelta // Act obj.SetCacheDelta(fernTestValueCacheDelta) @@ -230663,9 +273074,9 @@ func TestSettersMarkExplicitDocFormsImportData200ResponseMeta(t *testing.T) { } -func TestSettersDocFormsImportData200ResponseMetaAffectedPagesItem(t *testing.T) { +func TestSettersDocPagesDelete200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} + obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -230673,16 +273084,16 @@ func TestSettersDocFormsImportData200ResponseMetaAffectedPagesItem(t *testing.T) }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocFormsImportData200ResponseMetaAffectedPagesItemRevision + obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocPagesDelete200ResponseMetaAffectedPagesItemRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) }) t.Run("SetWeakAnnotationState", func(t *testing.T) { - obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) assert.NotNil(t, obj.explicitFields) @@ -230690,11 +273101,11 @@ func TestSettersDocFormsImportData200ResponseMetaAffectedPagesItem(t *testing.T) } -func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItem(t *testing.T) { +func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} + obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} var expected int obj.PageObjectNumber = expected @@ -230704,7 +273115,7 @@ func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItem(t *testing.T) t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaAffectedPagesItem + var obj *DocPagesDelete200ResponseMetaAffectedPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -230717,8 +273128,8 @@ func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItem(t *testing.T) t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} - var expected *DocFormsImportData200ResponseMetaAffectedPagesItemRevision + obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} + var expected *DocPagesDelete200ResponseMetaAffectedPagesItemRevision obj.Revision = expected // Act & Assert @@ -230728,7 +273139,7 @@ func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItem(t *testing.T) t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} + obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} obj.Revision = nil // Act & Assert @@ -230737,7 +273148,7 @@ func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItem(t *testing.T) t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaAffectedPagesItem + var obj *DocPagesDelete200ResponseMetaAffectedPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -230750,8 +273161,8 @@ func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItem(t *testing.T) t.Run("GetWeakAnnotationState", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} - var expected *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} + var expected *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState obj.WeakAnnotationState = expected // Act & Assert @@ -230761,7 +273172,7 @@ func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItem(t *testing.T) t.Run("GetWeakAnnotationState_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} + obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} obj.WeakAnnotationState = nil // Act & Assert @@ -230770,7 +273181,7 @@ func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItem(t *testing.T) t.Run("GetWeakAnnotationState_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaAffectedPagesItem + var obj *DocPagesDelete200ResponseMetaAffectedPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -230782,11 +273193,11 @@ func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItem(t *testing.T) } -func TestSettersMarkExplicitDocFormsImportData200ResponseMetaAffectedPagesItem(t *testing.T) { +func TestSettersMarkExplicitDocPagesDelete200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} + obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} var fernTestValuePageObjectNumber int // Act @@ -230817,8 +273228,8 @@ func TestSettersMarkExplicitDocFormsImportData200ResponseMetaAffectedPagesItem(t t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocFormsImportData200ResponseMetaAffectedPagesItemRevision + obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocPagesDelete200ResponseMetaAffectedPagesItemRevision // Act obj.SetRevision(fernTestValueRevision) @@ -230848,8 +273259,8 @@ func TestSettersMarkExplicitDocFormsImportData200ResponseMetaAffectedPagesItem(t t.Run("SetWeakAnnotationState_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState // Act obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) @@ -230878,9 +273289,9 @@ func TestSettersMarkExplicitDocFormsImportData200ResponseMetaAffectedPagesItem(t } -func TestSettersDocFormsImportData200ResponseMetaAffectedPagesItemRevision(t *testing.T) { +func TestSettersDocPagesDelete200ResponseMetaAffectedPagesItemRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -230888,7 +273299,7 @@ func TestSettersDocFormsImportData200ResponseMetaAffectedPagesItemRevision(t *te }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -230896,7 +273307,7 @@ func TestSettersDocFormsImportData200ResponseMetaAffectedPagesItemRevision(t *te }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -230905,11 +273316,11 @@ func TestSettersDocFormsImportData200ResponseMetaAffectedPagesItemRevision(t *te } -func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItemRevision(t *testing.T) { +func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItemRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} var expected string obj.DocSessionID = expected @@ -230919,7 +273330,7 @@ func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItemRevision(t *te t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaAffectedPagesItemRevision + var obj *DocPagesDelete200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -230932,7 +273343,7 @@ func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItemRevision(t *te t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} var expected int obj.PageObjectNumber = expected @@ -230942,7 +273353,7 @@ func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItemRevision(t *te t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaAffectedPagesItemRevision + var obj *DocPagesDelete200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -230955,7 +273366,7 @@ func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItemRevision(t *te t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} var expected int obj.Generation = expected @@ -230965,7 +273376,7 @@ func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItemRevision(t *te t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaAffectedPagesItemRevision + var obj *DocPagesDelete200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -230977,11 +273388,11 @@ func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItemRevision(t *te } -func TestSettersMarkExplicitDocFormsImportData200ResponseMetaAffectedPagesItemRevision(t *testing.T) { +func TestSettersMarkExplicitDocPagesDelete200ResponseMetaAffectedPagesItemRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} var fernTestValueDocSessionID string // Act @@ -231012,7 +273423,7 @@ func TestSettersMarkExplicitDocFormsImportData200ResponseMetaAffectedPagesItemRe t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} var fernTestValuePageObjectNumber int // Act @@ -231043,7 +273454,7 @@ func TestSettersMarkExplicitDocFormsImportData200ResponseMetaAffectedPagesItemRe t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} var fernTestValueGeneration int // Act @@ -231073,11 +273484,11 @@ func TestSettersMarkExplicitDocFormsImportData200ResponseMetaAffectedPagesItemRe } -func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { +func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState{} var expected string obj.Kind = expected @@ -231087,7 +273498,7 @@ func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotation t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -231100,8 +273511,8 @@ func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotation t.Run("GetUnknown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown obj.Unknown = expected // Act & Assert @@ -231111,7 +273522,7 @@ func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotation t.Run("GetUnknown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState{} obj.Unknown = nil // Act & Assert @@ -231120,7 +273531,7 @@ func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotation t.Run("GetUnknown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -231133,8 +273544,8 @@ func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotation t.Run("GetKnown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown obj.Known = expected // Act & Assert @@ -231144,7 +273555,7 @@ func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotation t.Run("GetKnown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState{} obj.Known = nil // Act & Assert @@ -231153,7 +273564,7 @@ func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotation t.Run("GetKnown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -231165,9 +273576,9 @@ func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotation } -func TestSettersDocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { +func TestSettersDocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { t.Run("SetHasAnyWeakAnnotations", func(t *testing.T) { - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} var fernTestValueHasAnyWeakAnnotations bool obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) assert.Equal(t, fernTestValueHasAnyWeakAnnotations, obj.HasAnyWeakAnnotations) @@ -231176,11 +273587,11 @@ func TestSettersDocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotation } -func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { +func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} var expected bool obj.HasAnyWeakAnnotations = expected @@ -231190,7 +273601,7 @@ func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotation t.Run("GetHasAnyWeakAnnotations_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + var obj *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -231202,11 +273613,11 @@ func TestGettersDocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotation } -func TestSettersMarkExplicitDocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { +func TestSettersMarkExplicitDocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} var fernTestValueHasAnyWeakAnnotations bool // Act @@ -231236,9 +273647,9 @@ func TestSettersMarkExplicitDocFormsImportData200ResponseMetaAffectedPagesItemWe } -func TestSettersDocFormsImportData200ResponseMetaCacheDelta(t *testing.T) { +func TestSettersDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { t.Run("SetPreviousDocVersion", func(t *testing.T) { - obj := &DocFormsImportData200ResponseMetaCacheDelta{} + obj := &DocPagesDelete200ResponseMetaCacheDelta{} var fernTestValuePreviousDocVersion int obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) assert.Equal(t, fernTestValuePreviousDocVersion, obj.PreviousDocVersion) @@ -231246,7 +273657,7 @@ func TestSettersDocFormsImportData200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetDocVersion", func(t *testing.T) { - obj := &DocFormsImportData200ResponseMetaCacheDelta{} + obj := &DocPagesDelete200ResponseMetaCacheDelta{} var fernTestValueDocVersion int obj.SetDocVersion(fernTestValueDocVersion) assert.Equal(t, fernTestValueDocVersion, obj.DocVersion) @@ -231254,7 +273665,7 @@ func TestSettersDocFormsImportData200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetAnnotationsVersion", func(t *testing.T) { - obj := &DocFormsImportData200ResponseMetaCacheDelta{} + obj := &DocPagesDelete200ResponseMetaCacheDelta{} var fernTestValueAnnotationsVersion *int obj.SetAnnotationsVersion(fernTestValueAnnotationsVersion) assert.Equal(t, fernTestValueAnnotationsVersion, obj.AnnotationsVersion) @@ -231262,7 +273673,7 @@ func TestSettersDocFormsImportData200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetLayerVersion", func(t *testing.T) { - obj := &DocFormsImportData200ResponseMetaCacheDelta{} + obj := &DocPagesDelete200ResponseMetaCacheDelta{} var fernTestValueLayerVersion *int obj.SetLayerVersion(fernTestValueLayerVersion) assert.Equal(t, fernTestValueLayerVersion, obj.LayerVersion) @@ -231270,7 +273681,7 @@ func TestSettersDocFormsImportData200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetWorking", func(t *testing.T) { - obj := &DocFormsImportData200ResponseMetaCacheDelta{} + obj := &DocPagesDelete200ResponseMetaCacheDelta{} var fernTestValueWorking *bool obj.SetWorking(fernTestValueWorking) assert.Equal(t, fernTestValueWorking, obj.Working) @@ -231278,8 +273689,8 @@ func TestSettersDocFormsImportData200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetPages", func(t *testing.T) { - obj := &DocFormsImportData200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocFormsImportData200ResponseMetaCacheDeltaPagesItem + obj := &DocPagesDelete200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocPagesDelete200ResponseMetaCacheDeltaPagesItem obj.SetPages(fernTestValuePages) assert.Equal(t, fernTestValuePages, obj.Pages) assert.NotNil(t, obj.explicitFields) @@ -231287,11 +273698,11 @@ func TestSettersDocFormsImportData200ResponseMetaCacheDelta(t *testing.T) { } -func TestGettersDocFormsImportData200ResponseMetaCacheDelta(t *testing.T) { +func TestGettersDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPreviousDocVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDelta{} + obj := &DocPagesDelete200ResponseMetaCacheDelta{} var expected int obj.PreviousDocVersion = expected @@ -231301,7 +273712,7 @@ func TestGettersDocFormsImportData200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaCacheDelta + var obj *DocPagesDelete200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -231314,7 +273725,7 @@ func TestGettersDocFormsImportData200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetDocVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDelta{} + obj := &DocPagesDelete200ResponseMetaCacheDelta{} var expected int obj.DocVersion = expected @@ -231324,7 +273735,7 @@ func TestGettersDocFormsImportData200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaCacheDelta + var obj *DocPagesDelete200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -231337,7 +273748,7 @@ func TestGettersDocFormsImportData200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetAnnotationsVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDelta{} + obj := &DocPagesDelete200ResponseMetaCacheDelta{} var expected *int obj.AnnotationsVersion = expected @@ -231348,7 +273759,7 @@ func TestGettersDocFormsImportData200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetAnnotationsVersion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDelta{} + obj := &DocPagesDelete200ResponseMetaCacheDelta{} obj.AnnotationsVersion = nil // Act & Assert @@ -231357,7 +273768,7 @@ func TestGettersDocFormsImportData200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetAnnotationsVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaCacheDelta + var obj *DocPagesDelete200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -231370,7 +273781,7 @@ func TestGettersDocFormsImportData200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetLayerVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDelta{} + obj := &DocPagesDelete200ResponseMetaCacheDelta{} var expected *int obj.LayerVersion = expected @@ -231381,7 +273792,7 @@ func TestGettersDocFormsImportData200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetLayerVersion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDelta{} + obj := &DocPagesDelete200ResponseMetaCacheDelta{} obj.LayerVersion = nil // Act & Assert @@ -231390,7 +273801,7 @@ func TestGettersDocFormsImportData200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetLayerVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaCacheDelta + var obj *DocPagesDelete200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -231403,7 +273814,7 @@ func TestGettersDocFormsImportData200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetWorking", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDelta{} + obj := &DocPagesDelete200ResponseMetaCacheDelta{} var expected *bool obj.Working = expected @@ -231414,7 +273825,7 @@ func TestGettersDocFormsImportData200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetWorking_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDelta{} + obj := &DocPagesDelete200ResponseMetaCacheDelta{} obj.Working = nil // Act & Assert @@ -231423,7 +273834,7 @@ func TestGettersDocFormsImportData200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetWorking_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaCacheDelta + var obj *DocPagesDelete200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -231436,8 +273847,8 @@ func TestGettersDocFormsImportData200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPages", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDelta{} - var expected []*DocFormsImportData200ResponseMetaCacheDeltaPagesItem + obj := &DocPagesDelete200ResponseMetaCacheDelta{} + var expected []*DocPagesDelete200ResponseMetaCacheDeltaPagesItem obj.Pages = expected // Act & Assert @@ -231447,7 +273858,7 @@ func TestGettersDocFormsImportData200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPages_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDelta{} + obj := &DocPagesDelete200ResponseMetaCacheDelta{} obj.Pages = nil // Act & Assert @@ -231456,7 +273867,7 @@ func TestGettersDocFormsImportData200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPages_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaCacheDelta + var obj *DocPagesDelete200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -231468,11 +273879,11 @@ func TestGettersDocFormsImportData200ResponseMetaCacheDelta(t *testing.T) { } -func TestSettersMarkExplicitDocFormsImportData200ResponseMetaCacheDelta(t *testing.T) { +func TestSettersMarkExplicitDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDelta{} + obj := &DocPagesDelete200ResponseMetaCacheDelta{} var fernTestValuePreviousDocVersion int // Act @@ -231503,7 +273914,7 @@ func TestSettersMarkExplicitDocFormsImportData200ResponseMetaCacheDelta(t *testi t.Run("SetDocVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDelta{} + obj := &DocPagesDelete200ResponseMetaCacheDelta{} var fernTestValueDocVersion int // Act @@ -231534,7 +273945,7 @@ func TestSettersMarkExplicitDocFormsImportData200ResponseMetaCacheDelta(t *testi t.Run("SetAnnotationsVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDelta{} + obj := &DocPagesDelete200ResponseMetaCacheDelta{} var fernTestValueAnnotationsVersion *int // Act @@ -231565,7 +273976,7 @@ func TestSettersMarkExplicitDocFormsImportData200ResponseMetaCacheDelta(t *testi t.Run("SetLayerVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDelta{} + obj := &DocPagesDelete200ResponseMetaCacheDelta{} var fernTestValueLayerVersion *int // Act @@ -231596,7 +274007,7 @@ func TestSettersMarkExplicitDocFormsImportData200ResponseMetaCacheDelta(t *testi t.Run("SetWorking_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDelta{} + obj := &DocPagesDelete200ResponseMetaCacheDelta{} var fernTestValueWorking *bool // Act @@ -231627,8 +274038,8 @@ func TestSettersMarkExplicitDocFormsImportData200ResponseMetaCacheDelta(t *testi t.Run("SetPages_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocFormsImportData200ResponseMetaCacheDeltaPagesItem + obj := &DocPagesDelete200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocPagesDelete200ResponseMetaCacheDeltaPagesItem // Act obj.SetPages(fernTestValuePages) @@ -231657,9 +274068,9 @@ func TestSettersMarkExplicitDocFormsImportData200ResponseMetaCacheDelta(t *testi } -func TestSettersDocFormsImportData200ResponseMetaCacheDeltaPagesItem(t *testing.T) { +func TestSettersDocPagesDelete200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItem{} + obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItem{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -231667,8 +274078,8 @@ func TestSettersDocFormsImportData200ResponseMetaCacheDeltaPagesItem(t *testing. }) t.Run("SetCache", func(t *testing.T) { - obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache + obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache obj.SetCache(fernTestValueCache) assert.Equal(t, fernTestValueCache, obj.Cache) assert.NotNil(t, obj.explicitFields) @@ -231676,11 +274087,11 @@ func TestSettersDocFormsImportData200ResponseMetaCacheDeltaPagesItem(t *testing. } -func TestGettersDocFormsImportData200ResponseMetaCacheDeltaPagesItem(t *testing.T) { +func TestGettersDocPagesDelete200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItem{} + obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItem{} var expected int obj.PageObjectNumber = expected @@ -231690,7 +274101,7 @@ func TestGettersDocFormsImportData200ResponseMetaCacheDeltaPagesItem(t *testing. t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaCacheDeltaPagesItem + var obj *DocPagesDelete200ResponseMetaCacheDeltaPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -231703,8 +274114,8 @@ func TestGettersDocFormsImportData200ResponseMetaCacheDeltaPagesItem(t *testing. t.Run("GetCache", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItem{} - var expected *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache + obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItem{} + var expected *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache obj.Cache = expected // Act & Assert @@ -231714,7 +274125,7 @@ func TestGettersDocFormsImportData200ResponseMetaCacheDeltaPagesItem(t *testing. t.Run("GetCache_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItem{} + obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItem{} obj.Cache = nil // Act & Assert @@ -231723,7 +274134,7 @@ func TestGettersDocFormsImportData200ResponseMetaCacheDeltaPagesItem(t *testing. t.Run("GetCache_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData200ResponseMetaCacheDeltaPagesItem + var obj *DocPagesDelete200ResponseMetaCacheDeltaPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -231735,11 +274146,11 @@ func TestGettersDocFormsImportData200ResponseMetaCacheDeltaPagesItem(t *testing. } -func TestSettersMarkExplicitDocFormsImportData200ResponseMetaCacheDeltaPagesItem(t *testing.T) { +func TestSettersMarkExplicitDocPagesDelete200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItem{} + obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItem{} var fernTestValuePageObjectNumber int // Act @@ -231770,8 +274181,8 @@ func TestSettersMarkExplicitDocFormsImportData200ResponseMetaCacheDeltaPagesItem t.Run("SetCache_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache + obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache // Act obj.SetCache(fernTestValueCache) @@ -231798,85 +274209,619 @@ func TestSettersMarkExplicitDocFormsImportData200ResponseMetaCacheDeltaPagesItem // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocFormsImportData200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("SetContentVersion", func(t *testing.T) { - obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueContentVersion int - obj.SetContentVersion(fernTestValueContentVersion) - assert.Equal(t, fernTestValueContentVersion, obj.ContentVersion) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAnnotationVersion", func(t *testing.T) { - obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueAnnotationVersion int - obj.SetAnnotationVersion(fernTestValueAnnotationVersion) - assert.Equal(t, fernTestValueAnnotationVersion, obj.AnnotationVersion) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocFormsImportData200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("GetContentVersion", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache{} - var expected int - obj.ContentVersion = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetContentVersion(), "getter should return the property value") - }) - - t.Run("GetContentVersion_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetContentVersion() // Should return zero value - }) - - t.Run("GetAnnotationVersion", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache{} - var expected int - obj.AnnotationVersion = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAnnotationVersion(), "getter should return the property value") - }) - - t.Run("GetAnnotationVersion_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAnnotationVersion() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocFormsImportData200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("SetContentVersion_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocPagesDelete200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("SetContentVersion", func(t *testing.T) { + obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache{} + var fernTestValueContentVersion int + obj.SetContentVersion(fernTestValueContentVersion) + assert.Equal(t, fernTestValueContentVersion, obj.ContentVersion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotationVersion", func(t *testing.T) { + obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache{} + var fernTestValueAnnotationVersion int + obj.SetAnnotationVersion(fernTestValueAnnotationVersion) + assert.Equal(t, fernTestValueAnnotationVersion, obj.AnnotationVersion) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesDelete200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("GetContentVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache{} + var expected int + obj.ContentVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetContentVersion(), "getter should return the property value") + }) + + t.Run("GetContentVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetContentVersion() // Should return zero value + }) + + t.Run("GetAnnotationVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache{} + var expected int + obj.AnnotationVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotationVersion(), "getter should return the property value") + }) + + t.Run("GetAnnotationVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAnnotationVersion() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocPagesDelete200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("SetContentVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache{} + var fernTestValueContentVersion int + + // Act + obj.SetContentVersion(fernTestValueContentVersion) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetAnnotationVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache{} + var fernTestValueAnnotationVersion int + + // Act + obj.SetAnnotationVersion(fernTestValueAnnotationVersion) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocPagesDelete400Response(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + obj := &DocPagesDelete400Response{} + var fernTestValueName DocPagesDelete400ResponseName + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCode", func(t *testing.T) { + obj := &DocPagesDelete400Response{} + var fernTestValueCode DocPagesDelete400ResponseCode + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &DocPagesDelete400Response{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDetails", func(t *testing.T) { + obj := &DocPagesDelete400Response{} + var fernTestValueDetails map[string]any + obj.SetDetails(fernTestValueDetails) + assert.Equal(t, fernTestValueDetails, obj.Details) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesDelete400Response(t *testing.T) { + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete400Response{} + var expected DocPagesDelete400ResponseName + obj.Name = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + }) + + t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesDelete400Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetName() // Should return zero value + }) + + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete400Response{} + var expected DocPagesDelete400ResponseCode + obj.Code = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + }) + + t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesDelete400Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCode() // Should return zero value + }) + + t.Run("GetMessage", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete400Response{} + var expected string + obj.Message = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + }) + + t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesDelete400Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMessage() // Should return zero value + }) + + t.Run("GetDetails", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete400Response{} + var expected map[string]any + obj.Details = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + }) + + t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete400Response{} + obj.Details = nil + + // Act & Assert + assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + }) + + t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesDelete400Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDetails() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocPagesDelete400Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete400Response{} + var fernTestValueName DocPagesDelete400ResponseName + + // Act + obj.SetName(fernTestValueName) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete400Response{} + var fernTestValueCode DocPagesDelete400ResponseCode + + // Act + obj.SetCode(fernTestValueCode) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMessage_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete400Response{} + var fernTestValueMessage string + + // Act + obj.SetMessage(fernTestValueMessage) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDetails_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete400Response{} + var fernTestValueDetails map[string]any + + // Act + obj.SetDetails(fernTestValueDetails) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocPagesDelete404Response(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + obj := &DocPagesDelete404Response{} + var fernTestValueName DocPagesDelete404ResponseName + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCode", func(t *testing.T) { + obj := &DocPagesDelete404Response{} + var fernTestValueCode DocPagesDelete404ResponseCode + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &DocPagesDelete404Response{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDetails", func(t *testing.T) { + obj := &DocPagesDelete404Response{} + var fernTestValueDetails map[string]any + obj.SetDetails(fernTestValueDetails) + assert.Equal(t, fernTestValueDetails, obj.Details) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesDelete404Response(t *testing.T) { + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete404Response{} + var expected DocPagesDelete404ResponseName + obj.Name = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + }) + + t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesDelete404Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetName() // Should return zero value + }) + + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete404Response{} + var expected DocPagesDelete404ResponseCode + obj.Code = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + }) + + t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesDelete404Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCode() // Should return zero value + }) + + t.Run("GetMessage", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete404Response{} + var expected string + obj.Message = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + }) + + t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesDelete404Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMessage() // Should return zero value + }) + + t.Run("GetDetails", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete404Response{} + var expected map[string]any + obj.Details = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + }) + + t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete404Response{} + obj.Details = nil + + // Act & Assert + assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + }) + + t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesDelete404Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDetails() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocPagesDelete404Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete404Response{} + var fernTestValueName DocPagesDelete404ResponseName + + // Act + obj.SetName(fernTestValueName) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesDelete404Response{} + var fernTestValueCode DocPagesDelete404ResponseCode + + // Act + obj.SetCode(fernTestValueCode) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMessage_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueContentVersion int + obj := &DocPagesDelete404Response{} + var fernTestValueMessage string // Act - obj.SetContentVersion(fernTestValueContentVersion) + obj.SetMessage(fernTestValueMessage) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -231900,14 +274845,14 @@ func TestSettersMarkExplicitDocFormsImportData200ResponseMetaCacheDeltaPagesItem // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotationVersion_MarksExplicit", func(t *testing.T) { + t.Run("SetDetails_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueAnnotationVersion int + obj := &DocPagesDelete404Response{} + var fernTestValueDetails map[string]any // Act - obj.SetAnnotationVersion(fernTestValueAnnotationVersion) + obj.SetDetails(fernTestValueDetails) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -231933,25 +274878,25 @@ func TestSettersMarkExplicitDocFormsImportData200ResponseMetaCacheDeltaPagesItem } -func TestSettersDocFormsImportData400Response(t *testing.T) { +func TestSettersDocPagesExtract400Response(t *testing.T) { t.Run("SetName", func(t *testing.T) { - obj := &DocFormsImportData400Response{} - var fernTestValueName DocFormsImportData400ResponseName + obj := &DocPagesExtract400Response{} + var fernTestValueName DocPagesExtract400ResponseName obj.SetName(fernTestValueName) assert.Equal(t, fernTestValueName, obj.Name) assert.NotNil(t, obj.explicitFields) }) t.Run("SetCode", func(t *testing.T) { - obj := &DocFormsImportData400Response{} - var fernTestValueCode DocFormsImportData400ResponseCode + obj := &DocPagesExtract400Response{} + var fernTestValueCode DocPagesExtract400ResponseCode obj.SetCode(fernTestValueCode) assert.Equal(t, fernTestValueCode, obj.Code) assert.NotNil(t, obj.explicitFields) }) t.Run("SetMessage", func(t *testing.T) { - obj := &DocFormsImportData400Response{} + obj := &DocPagesExtract400Response{} var fernTestValueMessage string obj.SetMessage(fernTestValueMessage) assert.Equal(t, fernTestValueMessage, obj.Message) @@ -231959,7 +274904,7 @@ func TestSettersDocFormsImportData400Response(t *testing.T) { }) t.Run("SetDetails", func(t *testing.T) { - obj := &DocFormsImportData400Response{} + obj := &DocPagesExtract400Response{} var fernTestValueDetails map[string]any obj.SetDetails(fernTestValueDetails) assert.Equal(t, fernTestValueDetails, obj.Details) @@ -231968,12 +274913,12 @@ func TestSettersDocFormsImportData400Response(t *testing.T) { } -func TestGettersDocFormsImportData400Response(t *testing.T) { +func TestGettersDocPagesExtract400Response(t *testing.T) { t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData400Response{} - var expected DocFormsImportData400ResponseName + obj := &DocPagesExtract400Response{} + var expected DocPagesExtract400ResponseName obj.Name = expected // Act & Assert @@ -231982,7 +274927,7 @@ func TestGettersDocFormsImportData400Response(t *testing.T) { t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData400Response + var obj *DocPagesExtract400Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -231995,8 +274940,8 @@ func TestGettersDocFormsImportData400Response(t *testing.T) { t.Run("GetCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData400Response{} - var expected DocFormsImportData400ResponseCode + obj := &DocPagesExtract400Response{} + var expected DocPagesExtract400ResponseCode obj.Code = expected // Act & Assert @@ -232005,7 +274950,7 @@ func TestGettersDocFormsImportData400Response(t *testing.T) { t.Run("GetCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData400Response + var obj *DocPagesExtract400Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -232018,7 +274963,7 @@ func TestGettersDocFormsImportData400Response(t *testing.T) { t.Run("GetMessage", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData400Response{} + obj := &DocPagesExtract400Response{} var expected string obj.Message = expected @@ -232028,7 +274973,7 @@ func TestGettersDocFormsImportData400Response(t *testing.T) { t.Run("GetMessage_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData400Response + var obj *DocPagesExtract400Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -232041,7 +274986,7 @@ func TestGettersDocFormsImportData400Response(t *testing.T) { t.Run("GetDetails", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData400Response{} + obj := &DocPagesExtract400Response{} var expected map[string]any obj.Details = expected @@ -232052,7 +274997,7 @@ func TestGettersDocFormsImportData400Response(t *testing.T) { t.Run("GetDetails_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData400Response{} + obj := &DocPagesExtract400Response{} obj.Details = nil // Act & Assert @@ -232061,7 +275006,7 @@ func TestGettersDocFormsImportData400Response(t *testing.T) { t.Run("GetDetails_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData400Response + var obj *DocPagesExtract400Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -232073,12 +275018,12 @@ func TestGettersDocFormsImportData400Response(t *testing.T) { } -func TestSettersMarkExplicitDocFormsImportData400Response(t *testing.T) { +func TestSettersMarkExplicitDocPagesExtract400Response(t *testing.T) { t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData400Response{} - var fernTestValueName DocFormsImportData400ResponseName + obj := &DocPagesExtract400Response{} + var fernTestValueName DocPagesExtract400ResponseName // Act obj.SetName(fernTestValueName) @@ -232108,8 +275053,8 @@ func TestSettersMarkExplicitDocFormsImportData400Response(t *testing.T) { t.Run("SetCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData400Response{} - var fernTestValueCode DocFormsImportData400ResponseCode + obj := &DocPagesExtract400Response{} + var fernTestValueCode DocPagesExtract400ResponseCode // Act obj.SetCode(fernTestValueCode) @@ -232139,7 +275084,7 @@ func TestSettersMarkExplicitDocFormsImportData400Response(t *testing.T) { t.Run("SetMessage_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData400Response{} + obj := &DocPagesExtract400Response{} var fernTestValueMessage string // Act @@ -232170,7 +275115,7 @@ func TestSettersMarkExplicitDocFormsImportData400Response(t *testing.T) { t.Run("SetDetails_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData400Response{} + obj := &DocPagesExtract400Response{} var fernTestValueDetails map[string]any // Act @@ -232200,25 +275145,25 @@ func TestSettersMarkExplicitDocFormsImportData400Response(t *testing.T) { } -func TestSettersDocFormsImportData404Response(t *testing.T) { +func TestSettersDocPagesExtract404Response(t *testing.T) { t.Run("SetName", func(t *testing.T) { - obj := &DocFormsImportData404Response{} - var fernTestValueName DocFormsImportData404ResponseName + obj := &DocPagesExtract404Response{} + var fernTestValueName DocPagesExtract404ResponseName obj.SetName(fernTestValueName) assert.Equal(t, fernTestValueName, obj.Name) assert.NotNil(t, obj.explicitFields) }) t.Run("SetCode", func(t *testing.T) { - obj := &DocFormsImportData404Response{} - var fernTestValueCode DocFormsImportData404ResponseCode + obj := &DocPagesExtract404Response{} + var fernTestValueCode DocPagesExtract404ResponseCode obj.SetCode(fernTestValueCode) assert.Equal(t, fernTestValueCode, obj.Code) assert.NotNil(t, obj.explicitFields) }) t.Run("SetMessage", func(t *testing.T) { - obj := &DocFormsImportData404Response{} + obj := &DocPagesExtract404Response{} var fernTestValueMessage string obj.SetMessage(fernTestValueMessage) assert.Equal(t, fernTestValueMessage, obj.Message) @@ -232226,7 +275171,7 @@ func TestSettersDocFormsImportData404Response(t *testing.T) { }) t.Run("SetDetails", func(t *testing.T) { - obj := &DocFormsImportData404Response{} + obj := &DocPagesExtract404Response{} var fernTestValueDetails map[string]any obj.SetDetails(fernTestValueDetails) assert.Equal(t, fernTestValueDetails, obj.Details) @@ -232235,12 +275180,12 @@ func TestSettersDocFormsImportData404Response(t *testing.T) { } -func TestGettersDocFormsImportData404Response(t *testing.T) { +func TestGettersDocPagesExtract404Response(t *testing.T) { t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData404Response{} - var expected DocFormsImportData404ResponseName + obj := &DocPagesExtract404Response{} + var expected DocPagesExtract404ResponseName obj.Name = expected // Act & Assert @@ -232249,7 +275194,7 @@ func TestGettersDocFormsImportData404Response(t *testing.T) { t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData404Response + var obj *DocPagesExtract404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -232262,8 +275207,8 @@ func TestGettersDocFormsImportData404Response(t *testing.T) { t.Run("GetCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData404Response{} - var expected DocFormsImportData404ResponseCode + obj := &DocPagesExtract404Response{} + var expected DocPagesExtract404ResponseCode obj.Code = expected // Act & Assert @@ -232272,7 +275217,7 @@ func TestGettersDocFormsImportData404Response(t *testing.T) { t.Run("GetCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData404Response + var obj *DocPagesExtract404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -232285,7 +275230,7 @@ func TestGettersDocFormsImportData404Response(t *testing.T) { t.Run("GetMessage", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData404Response{} + obj := &DocPagesExtract404Response{} var expected string obj.Message = expected @@ -232295,7 +275240,7 @@ func TestGettersDocFormsImportData404Response(t *testing.T) { t.Run("GetMessage_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData404Response + var obj *DocPagesExtract404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -232308,7 +275253,7 @@ func TestGettersDocFormsImportData404Response(t *testing.T) { t.Run("GetDetails", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData404Response{} + obj := &DocPagesExtract404Response{} var expected map[string]any obj.Details = expected @@ -232319,7 +275264,7 @@ func TestGettersDocFormsImportData404Response(t *testing.T) { t.Run("GetDetails_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData404Response{} + obj := &DocPagesExtract404Response{} obj.Details = nil // Act & Assert @@ -232328,7 +275273,7 @@ func TestGettersDocFormsImportData404Response(t *testing.T) { t.Run("GetDetails_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsImportData404Response + var obj *DocPagesExtract404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -232340,12 +275285,12 @@ func TestGettersDocFormsImportData404Response(t *testing.T) { } -func TestSettersMarkExplicitDocFormsImportData404Response(t *testing.T) { +func TestSettersMarkExplicitDocPagesExtract404Response(t *testing.T) { t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData404Response{} - var fernTestValueName DocFormsImportData404ResponseName + obj := &DocPagesExtract404Response{} + var fernTestValueName DocPagesExtract404ResponseName // Act obj.SetName(fernTestValueName) @@ -232375,8 +275320,8 @@ func TestSettersMarkExplicitDocFormsImportData404Response(t *testing.T) { t.Run("SetCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData404Response{} - var fernTestValueCode DocFormsImportData404ResponseCode + obj := &DocPagesExtract404Response{} + var fernTestValueCode DocPagesExtract404ResponseCode // Act obj.SetCode(fernTestValueCode) @@ -232406,7 +275351,7 @@ func TestSettersMarkExplicitDocFormsImportData404Response(t *testing.T) { t.Run("SetMessage_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData404Response{} + obj := &DocPagesExtract404Response{} var fernTestValueMessage string // Act @@ -232437,7 +275382,7 @@ func TestSettersMarkExplicitDocFormsImportData404Response(t *testing.T) { t.Run("SetDetails_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsImportData404Response{} + obj := &DocPagesExtract404Response{} var fernTestValueDetails map[string]any // Act @@ -232467,10 +275412,10 @@ func TestSettersMarkExplicitDocFormsImportData404Response(t *testing.T) { } -func TestSettersDocFormsReset200Response(t *testing.T) { +func TestSettersDocPagesFlatten200Response(t *testing.T) { t.Run("SetMeta", func(t *testing.T) { - obj := &DocFormsReset200Response{} - var fernTestValueMeta *DocFormsReset200ResponseMeta + obj := &DocPagesFlatten200Response{} + var fernTestValueMeta *DocPagesFlatten200ResponseMeta obj.SetMeta(fernTestValueMeta) assert.Equal(t, fernTestValueMeta, obj.Meta) assert.NotNil(t, obj.explicitFields) @@ -232478,12 +275423,12 @@ func TestSettersDocFormsReset200Response(t *testing.T) { } -func TestGettersDocFormsReset200Response(t *testing.T) { +func TestGettersDocPagesFlatten200Response(t *testing.T) { t.Run("GetMeta", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200Response{} - var expected *DocFormsReset200ResponseMeta + obj := &DocPagesFlatten200Response{} + var expected *DocPagesFlatten200ResponseMeta obj.Meta = expected // Act & Assert @@ -232493,7 +275438,7 @@ func TestGettersDocFormsReset200Response(t *testing.T) { t.Run("GetMeta_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200Response{} + obj := &DocPagesFlatten200Response{} obj.Meta = nil // Act & Assert @@ -232502,7 +275447,7 @@ func TestGettersDocFormsReset200Response(t *testing.T) { t.Run("GetMeta_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200Response + var obj *DocPagesFlatten200Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -232514,12 +275459,12 @@ func TestGettersDocFormsReset200Response(t *testing.T) { } -func TestSettersMarkExplicitDocFormsReset200Response(t *testing.T) { +func TestSettersMarkExplicitDocPagesFlatten200Response(t *testing.T) { t.Run("SetMeta_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200Response{} - var fernTestValueMeta *DocFormsReset200ResponseMeta + obj := &DocPagesFlatten200Response{} + var fernTestValueMeta *DocPagesFlatten200ResponseMeta // Act obj.SetMeta(fernTestValueMeta) @@ -232548,18 +275493,18 @@ func TestSettersMarkExplicitDocFormsReset200Response(t *testing.T) { } -func TestSettersDocFormsReset200ResponseMeta(t *testing.T) { +func TestSettersDocPagesFlatten200ResponseMeta(t *testing.T) { t.Run("SetAffectedPages", func(t *testing.T) { - obj := &DocFormsReset200ResponseMeta{} - var fernTestValueAffectedPages []*DocFormsReset200ResponseMetaAffectedPagesItem + obj := &DocPagesFlatten200ResponseMeta{} + var fernTestValueAffectedPages []*DocPagesFlatten200ResponseMetaAffectedPagesItem obj.SetAffectedPages(fernTestValueAffectedPages) assert.Equal(t, fernTestValueAffectedPages, obj.AffectedPages) assert.NotNil(t, obj.explicitFields) }) t.Run("SetCacheDelta", func(t *testing.T) { - obj := &DocFormsReset200ResponseMeta{} - var fernTestValueCacheDelta *DocFormsReset200ResponseMetaCacheDelta + obj := &DocPagesFlatten200ResponseMeta{} + var fernTestValueCacheDelta *DocPagesFlatten200ResponseMetaCacheDelta obj.SetCacheDelta(fernTestValueCacheDelta) assert.Equal(t, fernTestValueCacheDelta, obj.CacheDelta) assert.NotNil(t, obj.explicitFields) @@ -232567,12 +275512,12 @@ func TestSettersDocFormsReset200ResponseMeta(t *testing.T) { } -func TestGettersDocFormsReset200ResponseMeta(t *testing.T) { +func TestGettersDocPagesFlatten200ResponseMeta(t *testing.T) { t.Run("GetAffectedPages", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMeta{} - var expected []*DocFormsReset200ResponseMetaAffectedPagesItem + obj := &DocPagesFlatten200ResponseMeta{} + var expected []*DocPagesFlatten200ResponseMetaAffectedPagesItem obj.AffectedPages = expected // Act & Assert @@ -232582,7 +275527,7 @@ func TestGettersDocFormsReset200ResponseMeta(t *testing.T) { t.Run("GetAffectedPages_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMeta{} + obj := &DocPagesFlatten200ResponseMeta{} obj.AffectedPages = nil // Act & Assert @@ -232591,7 +275536,7 @@ func TestGettersDocFormsReset200ResponseMeta(t *testing.T) { t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMeta + var obj *DocPagesFlatten200ResponseMeta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -232604,8 +275549,8 @@ func TestGettersDocFormsReset200ResponseMeta(t *testing.T) { t.Run("GetCacheDelta", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMeta{} - var expected *DocFormsReset200ResponseMetaCacheDelta + obj := &DocPagesFlatten200ResponseMeta{} + var expected *DocPagesFlatten200ResponseMetaCacheDelta obj.CacheDelta = expected // Act & Assert @@ -232615,7 +275560,7 @@ func TestGettersDocFormsReset200ResponseMeta(t *testing.T) { t.Run("GetCacheDelta_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMeta{} + obj := &DocPagesFlatten200ResponseMeta{} obj.CacheDelta = nil // Act & Assert @@ -232624,7 +275569,7 @@ func TestGettersDocFormsReset200ResponseMeta(t *testing.T) { t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMeta + var obj *DocPagesFlatten200ResponseMeta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -232636,12 +275581,12 @@ func TestGettersDocFormsReset200ResponseMeta(t *testing.T) { } -func TestSettersMarkExplicitDocFormsReset200ResponseMeta(t *testing.T) { +func TestSettersMarkExplicitDocPagesFlatten200ResponseMeta(t *testing.T) { t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMeta{} - var fernTestValueAffectedPages []*DocFormsReset200ResponseMetaAffectedPagesItem + obj := &DocPagesFlatten200ResponseMeta{} + var fernTestValueAffectedPages []*DocPagesFlatten200ResponseMetaAffectedPagesItem // Act obj.SetAffectedPages(fernTestValueAffectedPages) @@ -232671,8 +275616,8 @@ func TestSettersMarkExplicitDocFormsReset200ResponseMeta(t *testing.T) { t.Run("SetCacheDelta_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMeta{} - var fernTestValueCacheDelta *DocFormsReset200ResponseMetaCacheDelta + obj := &DocPagesFlatten200ResponseMeta{} + var fernTestValueCacheDelta *DocPagesFlatten200ResponseMetaCacheDelta // Act obj.SetCacheDelta(fernTestValueCacheDelta) @@ -232701,9 +275646,9 @@ func TestSettersMarkExplicitDocFormsReset200ResponseMeta(t *testing.T) { } -func TestSettersDocFormsReset200ResponseMetaAffectedPagesItem(t *testing.T) { +func TestSettersDocPagesFlatten200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -232711,16 +275656,16 @@ func TestSettersDocFormsReset200ResponseMetaAffectedPagesItem(t *testing.T) { }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocFormsReset200ResponseMetaAffectedPagesItemRevision + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) }) t.Run("SetWeakAnnotationState", func(t *testing.T) { - obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) assert.NotNil(t, obj.explicitFields) @@ -232728,11 +275673,11 @@ func TestSettersDocFormsReset200ResponseMetaAffectedPagesItem(t *testing.T) { } -func TestGettersDocFormsReset200ResponseMetaAffectedPagesItem(t *testing.T) { +func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} var expected int obj.PageObjectNumber = expected @@ -232742,7 +275687,7 @@ func TestGettersDocFormsReset200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaAffectedPagesItem + var obj *DocPagesFlatten200ResponseMetaAffectedPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -232755,8 +275700,8 @@ func TestGettersDocFormsReset200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} - var expected *DocFormsReset200ResponseMetaAffectedPagesItemRevision + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} + var expected *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision obj.Revision = expected // Act & Assert @@ -232766,7 +275711,7 @@ func TestGettersDocFormsReset200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} obj.Revision = nil // Act & Assert @@ -232775,7 +275720,7 @@ func TestGettersDocFormsReset200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaAffectedPagesItem + var obj *DocPagesFlatten200ResponseMetaAffectedPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -232788,8 +275733,8 @@ func TestGettersDocFormsReset200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetWeakAnnotationState", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} - var expected *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} + var expected *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState obj.WeakAnnotationState = expected // Act & Assert @@ -232799,7 +275744,7 @@ func TestGettersDocFormsReset200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetWeakAnnotationState_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} obj.WeakAnnotationState = nil // Act & Assert @@ -232808,7 +275753,7 @@ func TestGettersDocFormsReset200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetWeakAnnotationState_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaAffectedPagesItem + var obj *DocPagesFlatten200ResponseMetaAffectedPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -232820,11 +275765,11 @@ func TestGettersDocFormsReset200ResponseMetaAffectedPagesItem(t *testing.T) { } -func TestSettersMarkExplicitDocFormsReset200ResponseMetaAffectedPagesItem(t *testing.T) { +func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} var fernTestValuePageObjectNumber int // Act @@ -232855,8 +275800,8 @@ func TestSettersMarkExplicitDocFormsReset200ResponseMetaAffectedPagesItem(t *tes t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocFormsReset200ResponseMetaAffectedPagesItemRevision + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision // Act obj.SetRevision(fernTestValueRevision) @@ -232886,8 +275831,8 @@ func TestSettersMarkExplicitDocFormsReset200ResponseMetaAffectedPagesItem(t *tes t.Run("SetWeakAnnotationState_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState // Act obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) @@ -232916,9 +275861,9 @@ func TestSettersMarkExplicitDocFormsReset200ResponseMetaAffectedPagesItem(t *tes } -func TestSettersDocFormsReset200ResponseMetaAffectedPagesItemRevision(t *testing.T) { +func TestSettersDocPagesFlatten200ResponseMetaAffectedPagesItemRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocFormsReset200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -232926,7 +275871,7 @@ func TestSettersDocFormsReset200ResponseMetaAffectedPagesItemRevision(t *testing }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocFormsReset200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -232934,7 +275879,7 @@ func TestSettersDocFormsReset200ResponseMetaAffectedPagesItemRevision(t *testing }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocFormsReset200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -232943,11 +275888,11 @@ func TestSettersDocFormsReset200ResponseMetaAffectedPagesItemRevision(t *testing } -func TestGettersDocFormsReset200ResponseMetaAffectedPagesItemRevision(t *testing.T) { +func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItemRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} var expected string obj.DocSessionID = expected @@ -232957,7 +275902,7 @@ func TestGettersDocFormsReset200ResponseMetaAffectedPagesItemRevision(t *testing t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaAffectedPagesItemRevision + var obj *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -232970,7 +275915,7 @@ func TestGettersDocFormsReset200ResponseMetaAffectedPagesItemRevision(t *testing t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} var expected int obj.PageObjectNumber = expected @@ -232980,7 +275925,7 @@ func TestGettersDocFormsReset200ResponseMetaAffectedPagesItemRevision(t *testing t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaAffectedPagesItemRevision + var obj *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -232993,7 +275938,7 @@ func TestGettersDocFormsReset200ResponseMetaAffectedPagesItemRevision(t *testing t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} var expected int obj.Generation = expected @@ -233003,7 +275948,7 @@ func TestGettersDocFormsReset200ResponseMetaAffectedPagesItemRevision(t *testing t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaAffectedPagesItemRevision + var obj *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -233015,11 +275960,11 @@ func TestGettersDocFormsReset200ResponseMetaAffectedPagesItemRevision(t *testing } -func TestSettersMarkExplicitDocFormsReset200ResponseMetaAffectedPagesItemRevision(t *testing.T) { +func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaAffectedPagesItemRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} var fernTestValueDocSessionID string // Act @@ -233050,7 +275995,7 @@ func TestSettersMarkExplicitDocFormsReset200ResponseMetaAffectedPagesItemRevisio t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} var fernTestValuePageObjectNumber int // Act @@ -233081,7 +276026,7 @@ func TestSettersMarkExplicitDocFormsReset200ResponseMetaAffectedPagesItemRevisio t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} var fernTestValueGeneration int // Act @@ -233111,11 +276056,11 @@ func TestSettersMarkExplicitDocFormsReset200ResponseMetaAffectedPagesItemRevisio } -func TestGettersDocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { +func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState{} var expected string obj.Kind = expected @@ -233125,7 +276070,7 @@ func TestGettersDocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -233138,8 +276083,8 @@ func TestGettersDocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState t.Run("GetUnknown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown obj.Unknown = expected // Act & Assert @@ -233149,7 +276094,7 @@ func TestGettersDocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState t.Run("GetUnknown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState{} obj.Unknown = nil // Act & Assert @@ -233158,7 +276103,7 @@ func TestGettersDocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState t.Run("GetUnknown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -233171,8 +276116,8 @@ func TestGettersDocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState t.Run("GetKnown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown obj.Known = expected // Act & Assert @@ -233182,7 +276127,7 @@ func TestGettersDocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState t.Run("GetKnown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState{} obj.Known = nil // Act & Assert @@ -233191,7 +276136,7 @@ func TestGettersDocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState t.Run("GetKnown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -233203,9 +276148,9 @@ func TestGettersDocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState } -func TestSettersDocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { +func TestSettersDocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { t.Run("SetHasAnyWeakAnnotations", func(t *testing.T) { - obj := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} var fernTestValueHasAnyWeakAnnotations bool obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) assert.Equal(t, fernTestValueHasAnyWeakAnnotations, obj.HasAnyWeakAnnotations) @@ -233214,11 +276159,11 @@ func TestSettersDocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState } -func TestGettersDocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { +func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} var expected bool obj.HasAnyWeakAnnotations = expected @@ -233228,7 +276173,7 @@ func TestGettersDocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState t.Run("GetHasAnyWeakAnnotations_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + var obj *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -233240,11 +276185,11 @@ func TestGettersDocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationState } -func TestSettersMarkExplicitDocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { +func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} var fernTestValueHasAnyWeakAnnotations bool // Act @@ -233274,9 +276219,9 @@ func TestSettersMarkExplicitDocFormsReset200ResponseMetaAffectedPagesItemWeakAnn } -func TestSettersDocFormsReset200ResponseMetaCacheDelta(t *testing.T) { +func TestSettersDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { t.Run("SetPreviousDocVersion", func(t *testing.T) { - obj := &DocFormsReset200ResponseMetaCacheDelta{} + obj := &DocPagesFlatten200ResponseMetaCacheDelta{} var fernTestValuePreviousDocVersion int obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) assert.Equal(t, fernTestValuePreviousDocVersion, obj.PreviousDocVersion) @@ -233284,7 +276229,7 @@ func TestSettersDocFormsReset200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetDocVersion", func(t *testing.T) { - obj := &DocFormsReset200ResponseMetaCacheDelta{} + obj := &DocPagesFlatten200ResponseMetaCacheDelta{} var fernTestValueDocVersion int obj.SetDocVersion(fernTestValueDocVersion) assert.Equal(t, fernTestValueDocVersion, obj.DocVersion) @@ -233292,7 +276237,7 @@ func TestSettersDocFormsReset200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetAnnotationsVersion", func(t *testing.T) { - obj := &DocFormsReset200ResponseMetaCacheDelta{} + obj := &DocPagesFlatten200ResponseMetaCacheDelta{} var fernTestValueAnnotationsVersion *int obj.SetAnnotationsVersion(fernTestValueAnnotationsVersion) assert.Equal(t, fernTestValueAnnotationsVersion, obj.AnnotationsVersion) @@ -233300,7 +276245,7 @@ func TestSettersDocFormsReset200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetLayerVersion", func(t *testing.T) { - obj := &DocFormsReset200ResponseMetaCacheDelta{} + obj := &DocPagesFlatten200ResponseMetaCacheDelta{} var fernTestValueLayerVersion *int obj.SetLayerVersion(fernTestValueLayerVersion) assert.Equal(t, fernTestValueLayerVersion, obj.LayerVersion) @@ -233308,7 +276253,7 @@ func TestSettersDocFormsReset200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetWorking", func(t *testing.T) { - obj := &DocFormsReset200ResponseMetaCacheDelta{} + obj := &DocPagesFlatten200ResponseMetaCacheDelta{} var fernTestValueWorking *bool obj.SetWorking(fernTestValueWorking) assert.Equal(t, fernTestValueWorking, obj.Working) @@ -233316,8 +276261,8 @@ func TestSettersDocFormsReset200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetPages", func(t *testing.T) { - obj := &DocFormsReset200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocFormsReset200ResponseMetaCacheDeltaPagesItem + obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocPagesFlatten200ResponseMetaCacheDeltaPagesItem obj.SetPages(fernTestValuePages) assert.Equal(t, fernTestValuePages, obj.Pages) assert.NotNil(t, obj.explicitFields) @@ -233325,11 +276270,11 @@ func TestSettersDocFormsReset200ResponseMetaCacheDelta(t *testing.T) { } -func TestGettersDocFormsReset200ResponseMetaCacheDelta(t *testing.T) { +func TestGettersDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPreviousDocVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaCacheDelta{} + obj := &DocPagesFlatten200ResponseMetaCacheDelta{} var expected int obj.PreviousDocVersion = expected @@ -233339,7 +276284,7 @@ func TestGettersDocFormsReset200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaCacheDelta + var obj *DocPagesFlatten200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -233352,7 +276297,7 @@ func TestGettersDocFormsReset200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetDocVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaCacheDelta{} + obj := &DocPagesFlatten200ResponseMetaCacheDelta{} var expected int obj.DocVersion = expected @@ -233362,7 +276307,7 @@ func TestGettersDocFormsReset200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaCacheDelta + var obj *DocPagesFlatten200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -233375,7 +276320,7 @@ func TestGettersDocFormsReset200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetAnnotationsVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaCacheDelta{} + obj := &DocPagesFlatten200ResponseMetaCacheDelta{} var expected *int obj.AnnotationsVersion = expected @@ -233386,7 +276331,7 @@ func TestGettersDocFormsReset200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetAnnotationsVersion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaCacheDelta{} + obj := &DocPagesFlatten200ResponseMetaCacheDelta{} obj.AnnotationsVersion = nil // Act & Assert @@ -233395,7 +276340,7 @@ func TestGettersDocFormsReset200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetAnnotationsVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaCacheDelta + var obj *DocPagesFlatten200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -233408,7 +276353,7 @@ func TestGettersDocFormsReset200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetLayerVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaCacheDelta{} + obj := &DocPagesFlatten200ResponseMetaCacheDelta{} var expected *int obj.LayerVersion = expected @@ -233419,7 +276364,7 @@ func TestGettersDocFormsReset200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetLayerVersion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaCacheDelta{} + obj := &DocPagesFlatten200ResponseMetaCacheDelta{} obj.LayerVersion = nil // Act & Assert @@ -233428,7 +276373,7 @@ func TestGettersDocFormsReset200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetLayerVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaCacheDelta + var obj *DocPagesFlatten200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -233441,7 +276386,7 @@ func TestGettersDocFormsReset200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetWorking", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaCacheDelta{} + obj := &DocPagesFlatten200ResponseMetaCacheDelta{} var expected *bool obj.Working = expected @@ -233452,7 +276397,7 @@ func TestGettersDocFormsReset200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetWorking_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaCacheDelta{} + obj := &DocPagesFlatten200ResponseMetaCacheDelta{} obj.Working = nil // Act & Assert @@ -233461,7 +276406,7 @@ func TestGettersDocFormsReset200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetWorking_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaCacheDelta + var obj *DocPagesFlatten200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -233474,8 +276419,8 @@ func TestGettersDocFormsReset200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPages", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaCacheDelta{} - var expected []*DocFormsReset200ResponseMetaCacheDeltaPagesItem + obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + var expected []*DocPagesFlatten200ResponseMetaCacheDeltaPagesItem obj.Pages = expected // Act & Assert @@ -233485,7 +276430,7 @@ func TestGettersDocFormsReset200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPages_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaCacheDelta{} + obj := &DocPagesFlatten200ResponseMetaCacheDelta{} obj.Pages = nil // Act & Assert @@ -233494,7 +276439,7 @@ func TestGettersDocFormsReset200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPages_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaCacheDelta + var obj *DocPagesFlatten200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -233506,11 +276451,11 @@ func TestGettersDocFormsReset200ResponseMetaCacheDelta(t *testing.T) { } -func TestSettersMarkExplicitDocFormsReset200ResponseMetaCacheDelta(t *testing.T) { +func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaCacheDelta{} + obj := &DocPagesFlatten200ResponseMetaCacheDelta{} var fernTestValuePreviousDocVersion int // Act @@ -233541,7 +276486,7 @@ func TestSettersMarkExplicitDocFormsReset200ResponseMetaCacheDelta(t *testing.T) t.Run("SetDocVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaCacheDelta{} + obj := &DocPagesFlatten200ResponseMetaCacheDelta{} var fernTestValueDocVersion int // Act @@ -233572,7 +276517,7 @@ func TestSettersMarkExplicitDocFormsReset200ResponseMetaCacheDelta(t *testing.T) t.Run("SetAnnotationsVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaCacheDelta{} + obj := &DocPagesFlatten200ResponseMetaCacheDelta{} var fernTestValueAnnotationsVersion *int // Act @@ -233603,7 +276548,7 @@ func TestSettersMarkExplicitDocFormsReset200ResponseMetaCacheDelta(t *testing.T) t.Run("SetLayerVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaCacheDelta{} + obj := &DocPagesFlatten200ResponseMetaCacheDelta{} var fernTestValueLayerVersion *int // Act @@ -233634,7 +276579,7 @@ func TestSettersMarkExplicitDocFormsReset200ResponseMetaCacheDelta(t *testing.T) t.Run("SetWorking_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaCacheDelta{} + obj := &DocPagesFlatten200ResponseMetaCacheDelta{} var fernTestValueWorking *bool // Act @@ -233665,8 +276610,8 @@ func TestSettersMarkExplicitDocFormsReset200ResponseMetaCacheDelta(t *testing.T) t.Run("SetPages_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocFormsReset200ResponseMetaCacheDeltaPagesItem + obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocPagesFlatten200ResponseMetaCacheDeltaPagesItem // Act obj.SetPages(fernTestValuePages) @@ -233695,9 +276640,9 @@ func TestSettersMarkExplicitDocFormsReset200ResponseMetaCacheDelta(t *testing.T) } -func TestSettersDocFormsReset200ResponseMetaCacheDeltaPagesItem(t *testing.T) { +func TestSettersDocPagesFlatten200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItem{} + obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItem{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -233705,8 +276650,8 @@ func TestSettersDocFormsReset200ResponseMetaCacheDeltaPagesItem(t *testing.T) { }) t.Run("SetCache", func(t *testing.T) { - obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache + obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache obj.SetCache(fernTestValueCache) assert.Equal(t, fernTestValueCache, obj.Cache) assert.NotNil(t, obj.explicitFields) @@ -233714,11 +276659,11 @@ func TestSettersDocFormsReset200ResponseMetaCacheDeltaPagesItem(t *testing.T) { } -func TestGettersDocFormsReset200ResponseMetaCacheDeltaPagesItem(t *testing.T) { +func TestGettersDocPagesFlatten200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItem{} + obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItem{} var expected int obj.PageObjectNumber = expected @@ -233728,7 +276673,7 @@ func TestGettersDocFormsReset200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaCacheDeltaPagesItem + var obj *DocPagesFlatten200ResponseMetaCacheDeltaPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -233741,8 +276686,8 @@ func TestGettersDocFormsReset200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("GetCache", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItem{} - var expected *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache + obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItem{} + var expected *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache obj.Cache = expected // Act & Assert @@ -233752,7 +276697,7 @@ func TestGettersDocFormsReset200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("GetCache_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItem{} + obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItem{} obj.Cache = nil // Act & Assert @@ -233761,7 +276706,7 @@ func TestGettersDocFormsReset200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("GetCache_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaCacheDeltaPagesItem + var obj *DocPagesFlatten200ResponseMetaCacheDeltaPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -233773,11 +276718,11 @@ func TestGettersDocFormsReset200ResponseMetaCacheDeltaPagesItem(t *testing.T) { } -func TestSettersMarkExplicitDocFormsReset200ResponseMetaCacheDeltaPagesItem(t *testing.T) { +func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItem{} + obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItem{} var fernTestValuePageObjectNumber int // Act @@ -233808,8 +276753,8 @@ func TestSettersMarkExplicitDocFormsReset200ResponseMetaCacheDeltaPagesItem(t *t t.Run("SetCache_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache + obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache // Act obj.SetCache(fernTestValueCache) @@ -233838,9 +276783,9 @@ func TestSettersMarkExplicitDocFormsReset200ResponseMetaCacheDeltaPagesItem(t *t } -func TestSettersDocFormsReset200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { +func TestSettersDocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { t.Run("SetContentVersion", func(t *testing.T) { - obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItemCache{} + obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache{} var fernTestValueContentVersion int obj.SetContentVersion(fernTestValueContentVersion) assert.Equal(t, fernTestValueContentVersion, obj.ContentVersion) @@ -233848,7 +276793,7 @@ func TestSettersDocFormsReset200ResponseMetaCacheDeltaPagesItemCache(t *testing. }) t.Run("SetAnnotationVersion", func(t *testing.T) { - obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItemCache{} + obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache{} var fernTestValueAnnotationVersion int obj.SetAnnotationVersion(fernTestValueAnnotationVersion) assert.Equal(t, fernTestValueAnnotationVersion, obj.AnnotationVersion) @@ -233857,11 +276802,11 @@ func TestSettersDocFormsReset200ResponseMetaCacheDeltaPagesItemCache(t *testing. } -func TestGettersDocFormsReset200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { +func TestGettersDocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { t.Run("GetContentVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItemCache{} + obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache{} var expected int obj.ContentVersion = expected @@ -233871,7 +276816,7 @@ func TestGettersDocFormsReset200ResponseMetaCacheDeltaPagesItemCache(t *testing. t.Run("GetContentVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache + var obj *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -233884,7 +276829,7 @@ func TestGettersDocFormsReset200ResponseMetaCacheDeltaPagesItemCache(t *testing. t.Run("GetAnnotationVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItemCache{} + obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache{} var expected int obj.AnnotationVersion = expected @@ -233894,7 +276839,7 @@ func TestGettersDocFormsReset200ResponseMetaCacheDeltaPagesItemCache(t *testing. t.Run("GetAnnotationVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset200ResponseMetaCacheDeltaPagesItemCache + var obj *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -233906,11 +276851,11 @@ func TestGettersDocFormsReset200ResponseMetaCacheDeltaPagesItemCache(t *testing. } -func TestSettersMarkExplicitDocFormsReset200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { +func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { t.Run("SetContentVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItemCache{} + obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache{} var fernTestValueContentVersion int // Act @@ -233941,7 +276886,7 @@ func TestSettersMarkExplicitDocFormsReset200ResponseMetaCacheDeltaPagesItemCache t.Run("SetAnnotationVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset200ResponseMetaCacheDeltaPagesItemCache{} + obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache{} var fernTestValueAnnotationVersion int // Act @@ -233971,25 +276916,292 @@ func TestSettersMarkExplicitDocFormsReset200ResponseMetaCacheDeltaPagesItemCache } -func TestSettersDocFormsReset404Response(t *testing.T) { +func TestSettersDocPagesFlatten400Response(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + obj := &DocPagesFlatten400Response{} + var fernTestValueName DocPagesFlatten400ResponseName + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCode", func(t *testing.T) { + obj := &DocPagesFlatten400Response{} + var fernTestValueCode DocPagesFlatten400ResponseCode + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &DocPagesFlatten400Response{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDetails", func(t *testing.T) { + obj := &DocPagesFlatten400Response{} + var fernTestValueDetails map[string]any + obj.SetDetails(fernTestValueDetails) + assert.Equal(t, fernTestValueDetails, obj.Details) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesFlatten400Response(t *testing.T) { + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten400Response{} + var expected DocPagesFlatten400ResponseName + obj.Name = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + }) + + t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesFlatten400Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetName() // Should return zero value + }) + + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten400Response{} + var expected DocPagesFlatten400ResponseCode + obj.Code = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + }) + + t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesFlatten400Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCode() // Should return zero value + }) + + t.Run("GetMessage", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten400Response{} + var expected string + obj.Message = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + }) + + t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesFlatten400Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMessage() // Should return zero value + }) + + t.Run("GetDetails", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten400Response{} + var expected map[string]any + obj.Details = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + }) + + t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten400Response{} + obj.Details = nil + + // Act & Assert + assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + }) + + t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesFlatten400Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDetails() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocPagesFlatten400Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten400Response{} + var fernTestValueName DocPagesFlatten400ResponseName + + // Act + obj.SetName(fernTestValueName) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten400Response{} + var fernTestValueCode DocPagesFlatten400ResponseCode + + // Act + obj.SetCode(fernTestValueCode) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetMessage_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten400Response{} + var fernTestValueMessage string + + // Act + obj.SetMessage(fernTestValueMessage) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDetails_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesFlatten400Response{} + var fernTestValueDetails map[string]any + + // Act + obj.SetDetails(fernTestValueDetails) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocPagesFlatten404Response(t *testing.T) { t.Run("SetName", func(t *testing.T) { - obj := &DocFormsReset404Response{} - var fernTestValueName DocFormsReset404ResponseName + obj := &DocPagesFlatten404Response{} + var fernTestValueName DocPagesFlatten404ResponseName obj.SetName(fernTestValueName) assert.Equal(t, fernTestValueName, obj.Name) assert.NotNil(t, obj.explicitFields) }) t.Run("SetCode", func(t *testing.T) { - obj := &DocFormsReset404Response{} - var fernTestValueCode DocFormsReset404ResponseCode + obj := &DocPagesFlatten404Response{} + var fernTestValueCode DocPagesFlatten404ResponseCode obj.SetCode(fernTestValueCode) assert.Equal(t, fernTestValueCode, obj.Code) assert.NotNil(t, obj.explicitFields) }) t.Run("SetMessage", func(t *testing.T) { - obj := &DocFormsReset404Response{} + obj := &DocPagesFlatten404Response{} var fernTestValueMessage string obj.SetMessage(fernTestValueMessage) assert.Equal(t, fernTestValueMessage, obj.Message) @@ -233997,7 +277209,7 @@ func TestSettersDocFormsReset404Response(t *testing.T) { }) t.Run("SetDetails", func(t *testing.T) { - obj := &DocFormsReset404Response{} + obj := &DocPagesFlatten404Response{} var fernTestValueDetails map[string]any obj.SetDetails(fernTestValueDetails) assert.Equal(t, fernTestValueDetails, obj.Details) @@ -234006,12 +277218,12 @@ func TestSettersDocFormsReset404Response(t *testing.T) { } -func TestGettersDocFormsReset404Response(t *testing.T) { +func TestGettersDocPagesFlatten404Response(t *testing.T) { t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset404Response{} - var expected DocFormsReset404ResponseName + obj := &DocPagesFlatten404Response{} + var expected DocPagesFlatten404ResponseName obj.Name = expected // Act & Assert @@ -234020,7 +277232,7 @@ func TestGettersDocFormsReset404Response(t *testing.T) { t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset404Response + var obj *DocPagesFlatten404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -234033,8 +277245,8 @@ func TestGettersDocFormsReset404Response(t *testing.T) { t.Run("GetCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset404Response{} - var expected DocFormsReset404ResponseCode + obj := &DocPagesFlatten404Response{} + var expected DocPagesFlatten404ResponseCode obj.Code = expected // Act & Assert @@ -234043,7 +277255,7 @@ func TestGettersDocFormsReset404Response(t *testing.T) { t.Run("GetCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset404Response + var obj *DocPagesFlatten404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -234056,7 +277268,7 @@ func TestGettersDocFormsReset404Response(t *testing.T) { t.Run("GetMessage", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset404Response{} + obj := &DocPagesFlatten404Response{} var expected string obj.Message = expected @@ -234066,7 +277278,7 @@ func TestGettersDocFormsReset404Response(t *testing.T) { t.Run("GetMessage_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset404Response + var obj *DocPagesFlatten404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -234079,7 +277291,7 @@ func TestGettersDocFormsReset404Response(t *testing.T) { t.Run("GetDetails", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset404Response{} + obj := &DocPagesFlatten404Response{} var expected map[string]any obj.Details = expected @@ -234090,7 +277302,7 @@ func TestGettersDocFormsReset404Response(t *testing.T) { t.Run("GetDetails_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset404Response{} + obj := &DocPagesFlatten404Response{} obj.Details = nil // Act & Assert @@ -234099,7 +277311,7 @@ func TestGettersDocFormsReset404Response(t *testing.T) { t.Run("GetDetails_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsReset404Response + var obj *DocPagesFlatten404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -234111,12 +277323,12 @@ func TestGettersDocFormsReset404Response(t *testing.T) { } -func TestSettersMarkExplicitDocFormsReset404Response(t *testing.T) { +func TestSettersMarkExplicitDocPagesFlatten404Response(t *testing.T) { t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset404Response{} - var fernTestValueName DocFormsReset404ResponseName + obj := &DocPagesFlatten404Response{} + var fernTestValueName DocPagesFlatten404ResponseName // Act obj.SetName(fernTestValueName) @@ -234146,8 +277358,8 @@ func TestSettersMarkExplicitDocFormsReset404Response(t *testing.T) { t.Run("SetCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset404Response{} - var fernTestValueCode DocFormsReset404ResponseCode + obj := &DocPagesFlatten404Response{} + var fernTestValueCode DocPagesFlatten404ResponseCode // Act obj.SetCode(fernTestValueCode) @@ -234177,7 +277389,7 @@ func TestSettersMarkExplicitDocFormsReset404Response(t *testing.T) { t.Run("SetMessage_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset404Response{} + obj := &DocPagesFlatten404Response{} var fernTestValueMessage string // Act @@ -234208,7 +277420,7 @@ func TestSettersMarkExplicitDocFormsReset404Response(t *testing.T) { t.Run("SetDetails_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsReset404Response{} + obj := &DocPagesFlatten404Response{} var fernTestValueDetails map[string]any // Act @@ -234238,10 +277450,10 @@ func TestSettersMarkExplicitDocFormsReset404Response(t *testing.T) { } -func TestSettersDocFormsSetValue200Response(t *testing.T) { +func TestSettersDocPagesInsert200Response(t *testing.T) { t.Run("SetMeta", func(t *testing.T) { - obj := &DocFormsSetValue200Response{} - var fernTestValueMeta *DocFormsSetValue200ResponseMeta + obj := &DocPagesInsert200Response{} + var fernTestValueMeta *DocPagesInsert200ResponseMeta obj.SetMeta(fernTestValueMeta) assert.Equal(t, fernTestValueMeta, obj.Meta) assert.NotNil(t, obj.explicitFields) @@ -234249,12 +277461,12 @@ func TestSettersDocFormsSetValue200Response(t *testing.T) { } -func TestGettersDocFormsSetValue200Response(t *testing.T) { +func TestGettersDocPagesInsert200Response(t *testing.T) { t.Run("GetMeta", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200Response{} - var expected *DocFormsSetValue200ResponseMeta + obj := &DocPagesInsert200Response{} + var expected *DocPagesInsert200ResponseMeta obj.Meta = expected // Act & Assert @@ -234264,7 +277476,7 @@ func TestGettersDocFormsSetValue200Response(t *testing.T) { t.Run("GetMeta_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200Response{} + obj := &DocPagesInsert200Response{} obj.Meta = nil // Act & Assert @@ -234273,7 +277485,7 @@ func TestGettersDocFormsSetValue200Response(t *testing.T) { t.Run("GetMeta_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200Response + var obj *DocPagesInsert200Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -234285,12 +277497,12 @@ func TestGettersDocFormsSetValue200Response(t *testing.T) { } -func TestSettersMarkExplicitDocFormsSetValue200Response(t *testing.T) { +func TestSettersMarkExplicitDocPagesInsert200Response(t *testing.T) { t.Run("SetMeta_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200Response{} - var fernTestValueMeta *DocFormsSetValue200ResponseMeta + obj := &DocPagesInsert200Response{} + var fernTestValueMeta *DocPagesInsert200ResponseMeta // Act obj.SetMeta(fernTestValueMeta) @@ -234319,18 +277531,18 @@ func TestSettersMarkExplicitDocFormsSetValue200Response(t *testing.T) { } -func TestSettersDocFormsSetValue200ResponseMeta(t *testing.T) { +func TestSettersDocPagesInsert200ResponseMeta(t *testing.T) { t.Run("SetAffectedPages", func(t *testing.T) { - obj := &DocFormsSetValue200ResponseMeta{} - var fernTestValueAffectedPages []*DocFormsSetValue200ResponseMetaAffectedPagesItem + obj := &DocPagesInsert200ResponseMeta{} + var fernTestValueAffectedPages []*DocPagesInsert200ResponseMetaAffectedPagesItem obj.SetAffectedPages(fernTestValueAffectedPages) assert.Equal(t, fernTestValueAffectedPages, obj.AffectedPages) assert.NotNil(t, obj.explicitFields) }) t.Run("SetCacheDelta", func(t *testing.T) { - obj := &DocFormsSetValue200ResponseMeta{} - var fernTestValueCacheDelta *DocFormsSetValue200ResponseMetaCacheDelta + obj := &DocPagesInsert200ResponseMeta{} + var fernTestValueCacheDelta *DocPagesInsert200ResponseMetaCacheDelta obj.SetCacheDelta(fernTestValueCacheDelta) assert.Equal(t, fernTestValueCacheDelta, obj.CacheDelta) assert.NotNil(t, obj.explicitFields) @@ -234338,12 +277550,12 @@ func TestSettersDocFormsSetValue200ResponseMeta(t *testing.T) { } -func TestGettersDocFormsSetValue200ResponseMeta(t *testing.T) { +func TestGettersDocPagesInsert200ResponseMeta(t *testing.T) { t.Run("GetAffectedPages", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMeta{} - var expected []*DocFormsSetValue200ResponseMetaAffectedPagesItem + obj := &DocPagesInsert200ResponseMeta{} + var expected []*DocPagesInsert200ResponseMetaAffectedPagesItem obj.AffectedPages = expected // Act & Assert @@ -234353,7 +277565,7 @@ func TestGettersDocFormsSetValue200ResponseMeta(t *testing.T) { t.Run("GetAffectedPages_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMeta{} + obj := &DocPagesInsert200ResponseMeta{} obj.AffectedPages = nil // Act & Assert @@ -234362,7 +277574,7 @@ func TestGettersDocFormsSetValue200ResponseMeta(t *testing.T) { t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMeta + var obj *DocPagesInsert200ResponseMeta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -234375,8 +277587,8 @@ func TestGettersDocFormsSetValue200ResponseMeta(t *testing.T) { t.Run("GetCacheDelta", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMeta{} - var expected *DocFormsSetValue200ResponseMetaCacheDelta + obj := &DocPagesInsert200ResponseMeta{} + var expected *DocPagesInsert200ResponseMetaCacheDelta obj.CacheDelta = expected // Act & Assert @@ -234386,7 +277598,7 @@ func TestGettersDocFormsSetValue200ResponseMeta(t *testing.T) { t.Run("GetCacheDelta_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMeta{} + obj := &DocPagesInsert200ResponseMeta{} obj.CacheDelta = nil // Act & Assert @@ -234395,7 +277607,7 @@ func TestGettersDocFormsSetValue200ResponseMeta(t *testing.T) { t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMeta + var obj *DocPagesInsert200ResponseMeta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -234407,12 +277619,12 @@ func TestGettersDocFormsSetValue200ResponseMeta(t *testing.T) { } -func TestSettersMarkExplicitDocFormsSetValue200ResponseMeta(t *testing.T) { +func TestSettersMarkExplicitDocPagesInsert200ResponseMeta(t *testing.T) { t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMeta{} - var fernTestValueAffectedPages []*DocFormsSetValue200ResponseMetaAffectedPagesItem + obj := &DocPagesInsert200ResponseMeta{} + var fernTestValueAffectedPages []*DocPagesInsert200ResponseMetaAffectedPagesItem // Act obj.SetAffectedPages(fernTestValueAffectedPages) @@ -234442,8 +277654,8 @@ func TestSettersMarkExplicitDocFormsSetValue200ResponseMeta(t *testing.T) { t.Run("SetCacheDelta_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMeta{} - var fernTestValueCacheDelta *DocFormsSetValue200ResponseMetaCacheDelta + obj := &DocPagesInsert200ResponseMeta{} + var fernTestValueCacheDelta *DocPagesInsert200ResponseMetaCacheDelta // Act obj.SetCacheDelta(fernTestValueCacheDelta) @@ -234472,9 +277684,9 @@ func TestSettersMarkExplicitDocFormsSetValue200ResponseMeta(t *testing.T) { } -func TestSettersDocFormsSetValue200ResponseMetaAffectedPagesItem(t *testing.T) { +func TestSettersDocPagesInsert200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} + obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -234482,16 +277694,16 @@ func TestSettersDocFormsSetValue200ResponseMetaAffectedPagesItem(t *testing.T) { }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision + obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocPagesInsert200ResponseMetaAffectedPagesItemRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) }) t.Run("SetWeakAnnotationState", func(t *testing.T) { - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) assert.NotNil(t, obj.explicitFields) @@ -234499,11 +277711,11 @@ func TestSettersDocFormsSetValue200ResponseMetaAffectedPagesItem(t *testing.T) { } -func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItem(t *testing.T) { +func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} + obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} var expected int obj.PageObjectNumber = expected @@ -234513,7 +277725,7 @@ func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaAffectedPagesItem + var obj *DocPagesInsert200ResponseMetaAffectedPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -234526,8 +277738,8 @@ func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} - var expected *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision + obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} + var expected *DocPagesInsert200ResponseMetaAffectedPagesItemRevision obj.Revision = expected // Act & Assert @@ -234537,7 +277749,7 @@ func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} + obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} obj.Revision = nil // Act & Assert @@ -234546,7 +277758,7 @@ func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaAffectedPagesItem + var obj *DocPagesInsert200ResponseMetaAffectedPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -234559,8 +277771,8 @@ func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetWeakAnnotationState", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} - var expected *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} + var expected *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState obj.WeakAnnotationState = expected // Act & Assert @@ -234570,7 +277782,7 @@ func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetWeakAnnotationState_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} + obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} obj.WeakAnnotationState = nil // Act & Assert @@ -234579,7 +277791,7 @@ func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetWeakAnnotationState_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaAffectedPagesItem + var obj *DocPagesInsert200ResponseMetaAffectedPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -234591,11 +277803,11 @@ func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItem(t *testing.T) { } -func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaAffectedPagesItem(t *testing.T) { +func TestSettersMarkExplicitDocPagesInsert200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} + obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} var fernTestValuePageObjectNumber int // Act @@ -234626,8 +277838,8 @@ func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaAffectedPagesItem(t * t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision + obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocPagesInsert200ResponseMetaAffectedPagesItemRevision // Act obj.SetRevision(fernTestValueRevision) @@ -234657,8 +277869,8 @@ func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaAffectedPagesItem(t * t.Run("SetWeakAnnotationState_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState // Act obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) @@ -234687,9 +277899,9 @@ func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaAffectedPagesItem(t * } -func TestSettersDocFormsSetValue200ResponseMetaAffectedPagesItemRevision(t *testing.T) { +func TestSettersDocPagesInsert200ResponseMetaAffectedPagesItemRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -234697,7 +277909,7 @@ func TestSettersDocFormsSetValue200ResponseMetaAffectedPagesItemRevision(t *test }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -234705,7 +277917,7 @@ func TestSettersDocFormsSetValue200ResponseMetaAffectedPagesItemRevision(t *test }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -234714,11 +277926,11 @@ func TestSettersDocFormsSetValue200ResponseMetaAffectedPagesItemRevision(t *test } -func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItemRevision(t *testing.T) { +func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItemRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} var expected string obj.DocSessionID = expected @@ -234728,7 +277940,7 @@ func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItemRevision(t *test t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision + var obj *DocPagesInsert200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -234741,7 +277953,7 @@ func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItemRevision(t *test t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} var expected int obj.PageObjectNumber = expected @@ -234751,7 +277963,7 @@ func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItemRevision(t *test t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision + var obj *DocPagesInsert200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -234764,7 +277976,7 @@ func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItemRevision(t *test t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} var expected int obj.Generation = expected @@ -234774,7 +277986,7 @@ func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItemRevision(t *test t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaAffectedPagesItemRevision + var obj *DocPagesInsert200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -234786,11 +277998,11 @@ func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItemRevision(t *test } -func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaAffectedPagesItemRevision(t *testing.T) { +func TestSettersMarkExplicitDocPagesInsert200ResponseMetaAffectedPagesItemRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} var fernTestValueDocSessionID string // Act @@ -234821,7 +278033,7 @@ func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaAffectedPagesItemRevi t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} var fernTestValuePageObjectNumber int // Act @@ -234852,7 +278064,7 @@ func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaAffectedPagesItemRevi t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} var fernTestValueGeneration int // Act @@ -234882,11 +278094,11 @@ func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaAffectedPagesItemRevi } -func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { +func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState{} var expected string obj.Kind = expected @@ -234896,7 +278108,7 @@ func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationSt t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -234909,8 +278121,8 @@ func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationSt t.Run("GetUnknown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + obj := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown obj.Unknown = expected // Act & Assert @@ -234920,7 +278132,7 @@ func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationSt t.Run("GetUnknown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState{} obj.Unknown = nil // Act & Assert @@ -234929,7 +278141,7 @@ func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationSt t.Run("GetUnknown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -234942,8 +278154,8 @@ func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationSt t.Run("GetKnown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + obj := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown obj.Known = expected // Act & Assert @@ -234953,7 +278165,7 @@ func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationSt t.Run("GetKnown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState{} obj.Known = nil // Act & Assert @@ -234962,7 +278174,7 @@ func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationSt t.Run("GetKnown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -234974,9 +278186,9 @@ func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationSt } -func TestSettersDocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { +func TestSettersDocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { t.Run("SetHasAnyWeakAnnotations", func(t *testing.T) { - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + obj := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} var fernTestValueHasAnyWeakAnnotations bool obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) assert.Equal(t, fernTestValueHasAnyWeakAnnotations, obj.HasAnyWeakAnnotations) @@ -234985,11 +278197,11 @@ func TestSettersDocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationSt } -func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { +func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + obj := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} var expected bool obj.HasAnyWeakAnnotations = expected @@ -234999,7 +278211,7 @@ func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationSt t.Run("GetHasAnyWeakAnnotations_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + var obj *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -235011,11 +278223,11 @@ func TestGettersDocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationSt } -func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { +func TestSettersMarkExplicitDocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + obj := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} var fernTestValueHasAnyWeakAnnotations bool // Act @@ -235045,9 +278257,9 @@ func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaAffectedPagesItemWeak } -func TestSettersDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { +func TestSettersDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { t.Run("SetPreviousDocVersion", func(t *testing.T) { - obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + obj := &DocPagesInsert200ResponseMetaCacheDelta{} var fernTestValuePreviousDocVersion int obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) assert.Equal(t, fernTestValuePreviousDocVersion, obj.PreviousDocVersion) @@ -235055,7 +278267,7 @@ func TestSettersDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetDocVersion", func(t *testing.T) { - obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + obj := &DocPagesInsert200ResponseMetaCacheDelta{} var fernTestValueDocVersion int obj.SetDocVersion(fernTestValueDocVersion) assert.Equal(t, fernTestValueDocVersion, obj.DocVersion) @@ -235063,7 +278275,7 @@ func TestSettersDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetAnnotationsVersion", func(t *testing.T) { - obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + obj := &DocPagesInsert200ResponseMetaCacheDelta{} var fernTestValueAnnotationsVersion *int obj.SetAnnotationsVersion(fernTestValueAnnotationsVersion) assert.Equal(t, fernTestValueAnnotationsVersion, obj.AnnotationsVersion) @@ -235071,7 +278283,7 @@ func TestSettersDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetLayerVersion", func(t *testing.T) { - obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + obj := &DocPagesInsert200ResponseMetaCacheDelta{} var fernTestValueLayerVersion *int obj.SetLayerVersion(fernTestValueLayerVersion) assert.Equal(t, fernTestValueLayerVersion, obj.LayerVersion) @@ -235079,7 +278291,7 @@ func TestSettersDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetWorking", func(t *testing.T) { - obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + obj := &DocPagesInsert200ResponseMetaCacheDelta{} var fernTestValueWorking *bool obj.SetWorking(fernTestValueWorking) assert.Equal(t, fernTestValueWorking, obj.Working) @@ -235087,8 +278299,8 @@ func TestSettersDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetPages", func(t *testing.T) { - obj := &DocFormsSetValue200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocFormsSetValue200ResponseMetaCacheDeltaPagesItem + obj := &DocPagesInsert200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocPagesInsert200ResponseMetaCacheDeltaPagesItem obj.SetPages(fernTestValuePages) assert.Equal(t, fernTestValuePages, obj.Pages) assert.NotNil(t, obj.explicitFields) @@ -235096,11 +278308,11 @@ func TestSettersDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { } -func TestGettersDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { +func TestGettersDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPreviousDocVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + obj := &DocPagesInsert200ResponseMetaCacheDelta{} var expected int obj.PreviousDocVersion = expected @@ -235110,7 +278322,7 @@ func TestGettersDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaCacheDelta + var obj *DocPagesInsert200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -235123,7 +278335,7 @@ func TestGettersDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetDocVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + obj := &DocPagesInsert200ResponseMetaCacheDelta{} var expected int obj.DocVersion = expected @@ -235133,7 +278345,7 @@ func TestGettersDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaCacheDelta + var obj *DocPagesInsert200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -235146,7 +278358,7 @@ func TestGettersDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetAnnotationsVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + obj := &DocPagesInsert200ResponseMetaCacheDelta{} var expected *int obj.AnnotationsVersion = expected @@ -235157,7 +278369,7 @@ func TestGettersDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetAnnotationsVersion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + obj := &DocPagesInsert200ResponseMetaCacheDelta{} obj.AnnotationsVersion = nil // Act & Assert @@ -235166,7 +278378,7 @@ func TestGettersDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetAnnotationsVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaCacheDelta + var obj *DocPagesInsert200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -235179,7 +278391,7 @@ func TestGettersDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetLayerVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + obj := &DocPagesInsert200ResponseMetaCacheDelta{} var expected *int obj.LayerVersion = expected @@ -235190,7 +278402,7 @@ func TestGettersDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetLayerVersion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + obj := &DocPagesInsert200ResponseMetaCacheDelta{} obj.LayerVersion = nil // Act & Assert @@ -235199,7 +278411,7 @@ func TestGettersDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetLayerVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaCacheDelta + var obj *DocPagesInsert200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -235212,7 +278424,7 @@ func TestGettersDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetWorking", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + obj := &DocPagesInsert200ResponseMetaCacheDelta{} var expected *bool obj.Working = expected @@ -235223,7 +278435,7 @@ func TestGettersDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetWorking_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + obj := &DocPagesInsert200ResponseMetaCacheDelta{} obj.Working = nil // Act & Assert @@ -235232,7 +278444,7 @@ func TestGettersDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetWorking_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaCacheDelta + var obj *DocPagesInsert200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -235245,8 +278457,8 @@ func TestGettersDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPages", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDelta{} - var expected []*DocFormsSetValue200ResponseMetaCacheDeltaPagesItem + obj := &DocPagesInsert200ResponseMetaCacheDelta{} + var expected []*DocPagesInsert200ResponseMetaCacheDeltaPagesItem obj.Pages = expected // Act & Assert @@ -235256,7 +278468,7 @@ func TestGettersDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPages_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + obj := &DocPagesInsert200ResponseMetaCacheDelta{} obj.Pages = nil // Act & Assert @@ -235265,7 +278477,7 @@ func TestGettersDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPages_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaCacheDelta + var obj *DocPagesInsert200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -235277,11 +278489,11 @@ func TestGettersDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { } -func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaCacheDelta(t *testing.T) { +func TestSettersMarkExplicitDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + obj := &DocPagesInsert200ResponseMetaCacheDelta{} var fernTestValuePreviousDocVersion int // Act @@ -235312,7 +278524,7 @@ func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaCacheDelta(t *testing t.Run("SetDocVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + obj := &DocPagesInsert200ResponseMetaCacheDelta{} var fernTestValueDocVersion int // Act @@ -235343,7 +278555,7 @@ func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaCacheDelta(t *testing t.Run("SetAnnotationsVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + obj := &DocPagesInsert200ResponseMetaCacheDelta{} var fernTestValueAnnotationsVersion *int // Act @@ -235374,7 +278586,7 @@ func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaCacheDelta(t *testing t.Run("SetLayerVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + obj := &DocPagesInsert200ResponseMetaCacheDelta{} var fernTestValueLayerVersion *int // Act @@ -235405,7 +278617,7 @@ func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaCacheDelta(t *testing t.Run("SetWorking_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDelta{} + obj := &DocPagesInsert200ResponseMetaCacheDelta{} var fernTestValueWorking *bool // Act @@ -235436,8 +278648,8 @@ func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaCacheDelta(t *testing t.Run("SetPages_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocFormsSetValue200ResponseMetaCacheDeltaPagesItem + obj := &DocPagesInsert200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocPagesInsert200ResponseMetaCacheDeltaPagesItem // Act obj.SetPages(fernTestValuePages) @@ -235466,9 +278678,9 @@ func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaCacheDelta(t *testing } -func TestSettersDocFormsSetValue200ResponseMetaCacheDeltaPagesItem(t *testing.T) { +func TestSettersDocPagesInsert200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItem{} + obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItem{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -235476,8 +278688,8 @@ func TestSettersDocFormsSetValue200ResponseMetaCacheDeltaPagesItem(t *testing.T) }) t.Run("SetCache", func(t *testing.T) { - obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache + obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache obj.SetCache(fernTestValueCache) assert.Equal(t, fernTestValueCache, obj.Cache) assert.NotNil(t, obj.explicitFields) @@ -235485,11 +278697,11 @@ func TestSettersDocFormsSetValue200ResponseMetaCacheDeltaPagesItem(t *testing.T) } -func TestGettersDocFormsSetValue200ResponseMetaCacheDeltaPagesItem(t *testing.T) { +func TestGettersDocPagesInsert200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItem{} + obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItem{} var expected int obj.PageObjectNumber = expected @@ -235499,7 +278711,7 @@ func TestGettersDocFormsSetValue200ResponseMetaCacheDeltaPagesItem(t *testing.T) t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaCacheDeltaPagesItem + var obj *DocPagesInsert200ResponseMetaCacheDeltaPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -235512,8 +278724,8 @@ func TestGettersDocFormsSetValue200ResponseMetaCacheDeltaPagesItem(t *testing.T) t.Run("GetCache", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItem{} - var expected *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache + obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItem{} + var expected *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache obj.Cache = expected // Act & Assert @@ -235523,7 +278735,7 @@ func TestGettersDocFormsSetValue200ResponseMetaCacheDeltaPagesItem(t *testing.T) t.Run("GetCache_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItem{} + obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItem{} obj.Cache = nil // Act & Assert @@ -235532,7 +278744,7 @@ func TestGettersDocFormsSetValue200ResponseMetaCacheDeltaPagesItem(t *testing.T) t.Run("GetCache_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaCacheDeltaPagesItem + var obj *DocPagesInsert200ResponseMetaCacheDeltaPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -235544,11 +278756,11 @@ func TestGettersDocFormsSetValue200ResponseMetaCacheDeltaPagesItem(t *testing.T) } -func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaCacheDeltaPagesItem(t *testing.T) { +func TestSettersMarkExplicitDocPagesInsert200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItem{} + obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItem{} var fernTestValuePageObjectNumber int // Act @@ -235579,8 +278791,8 @@ func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaCacheDeltaPagesItem(t t.Run("SetCache_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache + obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache // Act obj.SetCache(fernTestValueCache) @@ -235609,9 +278821,9 @@ func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaCacheDeltaPagesItem(t } -func TestSettersDocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { +func TestSettersDocPagesInsert200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { t.Run("SetContentVersion", func(t *testing.T) { - obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache{} + obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache{} var fernTestValueContentVersion int obj.SetContentVersion(fernTestValueContentVersion) assert.Equal(t, fernTestValueContentVersion, obj.ContentVersion) @@ -235619,7 +278831,7 @@ func TestSettersDocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache(t *testi }) t.Run("SetAnnotationVersion", func(t *testing.T) { - obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache{} + obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache{} var fernTestValueAnnotationVersion int obj.SetAnnotationVersion(fernTestValueAnnotationVersion) assert.Equal(t, fernTestValueAnnotationVersion, obj.AnnotationVersion) @@ -235628,11 +278840,11 @@ func TestSettersDocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache(t *testi } -func TestGettersDocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { +func TestGettersDocPagesInsert200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { t.Run("GetContentVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache{} + obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache{} var expected int obj.ContentVersion = expected @@ -235642,7 +278854,7 @@ func TestGettersDocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache(t *testi t.Run("GetContentVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache + var obj *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -235655,7 +278867,7 @@ func TestGettersDocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache(t *testi t.Run("GetAnnotationVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache{} + obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache{} var expected int obj.AnnotationVersion = expected @@ -235665,7 +278877,7 @@ func TestGettersDocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache(t *testi t.Run("GetAnnotationVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache + var obj *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -235677,11 +278889,11 @@ func TestGettersDocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache(t *testi } -func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { +func TestSettersMarkExplicitDocPagesInsert200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { t.Run("SetContentVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache{} + obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache{} var fernTestValueContentVersion int // Act @@ -235712,7 +278924,7 @@ func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaCacheDeltaPagesItemCa t.Run("SetAnnotationVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue200ResponseMetaCacheDeltaPagesItemCache{} + obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache{} var fernTestValueAnnotationVersion int // Act @@ -235742,25 +278954,25 @@ func TestSettersMarkExplicitDocFormsSetValue200ResponseMetaCacheDeltaPagesItemCa } -func TestSettersDocFormsSetValue400Response(t *testing.T) { +func TestSettersDocPagesInsert400Response(t *testing.T) { t.Run("SetName", func(t *testing.T) { - obj := &DocFormsSetValue400Response{} - var fernTestValueName DocFormsSetValue400ResponseName + obj := &DocPagesInsert400Response{} + var fernTestValueName DocPagesInsert400ResponseName obj.SetName(fernTestValueName) assert.Equal(t, fernTestValueName, obj.Name) assert.NotNil(t, obj.explicitFields) }) t.Run("SetCode", func(t *testing.T) { - obj := &DocFormsSetValue400Response{} - var fernTestValueCode DocFormsSetValue400ResponseCode + obj := &DocPagesInsert400Response{} + var fernTestValueCode DocPagesInsert400ResponseCode obj.SetCode(fernTestValueCode) assert.Equal(t, fernTestValueCode, obj.Code) assert.NotNil(t, obj.explicitFields) }) t.Run("SetMessage", func(t *testing.T) { - obj := &DocFormsSetValue400Response{} + obj := &DocPagesInsert400Response{} var fernTestValueMessage string obj.SetMessage(fernTestValueMessage) assert.Equal(t, fernTestValueMessage, obj.Message) @@ -235768,7 +278980,7 @@ func TestSettersDocFormsSetValue400Response(t *testing.T) { }) t.Run("SetDetails", func(t *testing.T) { - obj := &DocFormsSetValue400Response{} + obj := &DocPagesInsert400Response{} var fernTestValueDetails map[string]any obj.SetDetails(fernTestValueDetails) assert.Equal(t, fernTestValueDetails, obj.Details) @@ -235777,12 +278989,12 @@ func TestSettersDocFormsSetValue400Response(t *testing.T) { } -func TestGettersDocFormsSetValue400Response(t *testing.T) { +func TestGettersDocPagesInsert400Response(t *testing.T) { t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue400Response{} - var expected DocFormsSetValue400ResponseName + obj := &DocPagesInsert400Response{} + var expected DocPagesInsert400ResponseName obj.Name = expected // Act & Assert @@ -235791,7 +279003,7 @@ func TestGettersDocFormsSetValue400Response(t *testing.T) { t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue400Response + var obj *DocPagesInsert400Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -235804,8 +279016,8 @@ func TestGettersDocFormsSetValue400Response(t *testing.T) { t.Run("GetCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue400Response{} - var expected DocFormsSetValue400ResponseCode + obj := &DocPagesInsert400Response{} + var expected DocPagesInsert400ResponseCode obj.Code = expected // Act & Assert @@ -235814,7 +279026,7 @@ func TestGettersDocFormsSetValue400Response(t *testing.T) { t.Run("GetCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue400Response + var obj *DocPagesInsert400Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -235827,7 +279039,7 @@ func TestGettersDocFormsSetValue400Response(t *testing.T) { t.Run("GetMessage", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue400Response{} + obj := &DocPagesInsert400Response{} var expected string obj.Message = expected @@ -235837,7 +279049,7 @@ func TestGettersDocFormsSetValue400Response(t *testing.T) { t.Run("GetMessage_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue400Response + var obj *DocPagesInsert400Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -235850,7 +279062,7 @@ func TestGettersDocFormsSetValue400Response(t *testing.T) { t.Run("GetDetails", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue400Response{} + obj := &DocPagesInsert400Response{} var expected map[string]any obj.Details = expected @@ -235861,7 +279073,7 @@ func TestGettersDocFormsSetValue400Response(t *testing.T) { t.Run("GetDetails_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue400Response{} + obj := &DocPagesInsert400Response{} obj.Details = nil // Act & Assert @@ -235870,7 +279082,7 @@ func TestGettersDocFormsSetValue400Response(t *testing.T) { t.Run("GetDetails_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue400Response + var obj *DocPagesInsert400Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -235882,12 +279094,12 @@ func TestGettersDocFormsSetValue400Response(t *testing.T) { } -func TestSettersMarkExplicitDocFormsSetValue400Response(t *testing.T) { +func TestSettersMarkExplicitDocPagesInsert400Response(t *testing.T) { t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue400Response{} - var fernTestValueName DocFormsSetValue400ResponseName + obj := &DocPagesInsert400Response{} + var fernTestValueName DocPagesInsert400ResponseName // Act obj.SetName(fernTestValueName) @@ -235917,8 +279129,8 @@ func TestSettersMarkExplicitDocFormsSetValue400Response(t *testing.T) { t.Run("SetCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue400Response{} - var fernTestValueCode DocFormsSetValue400ResponseCode + obj := &DocPagesInsert400Response{} + var fernTestValueCode DocPagesInsert400ResponseCode // Act obj.SetCode(fernTestValueCode) @@ -235948,7 +279160,7 @@ func TestSettersMarkExplicitDocFormsSetValue400Response(t *testing.T) { t.Run("SetMessage_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue400Response{} + obj := &DocPagesInsert400Response{} var fernTestValueMessage string // Act @@ -235979,7 +279191,7 @@ func TestSettersMarkExplicitDocFormsSetValue400Response(t *testing.T) { t.Run("SetDetails_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue400Response{} + obj := &DocPagesInsert400Response{} var fernTestValueDetails map[string]any // Act @@ -236009,25 +279221,25 @@ func TestSettersMarkExplicitDocFormsSetValue400Response(t *testing.T) { } -func TestSettersDocFormsSetValue404Response(t *testing.T) { +func TestSettersDocPagesInsert404Response(t *testing.T) { t.Run("SetName", func(t *testing.T) { - obj := &DocFormsSetValue404Response{} - var fernTestValueName DocFormsSetValue404ResponseName + obj := &DocPagesInsert404Response{} + var fernTestValueName DocPagesInsert404ResponseName obj.SetName(fernTestValueName) assert.Equal(t, fernTestValueName, obj.Name) assert.NotNil(t, obj.explicitFields) }) t.Run("SetCode", func(t *testing.T) { - obj := &DocFormsSetValue404Response{} - var fernTestValueCode DocFormsSetValue404ResponseCode + obj := &DocPagesInsert404Response{} + var fernTestValueCode DocPagesInsert404ResponseCode obj.SetCode(fernTestValueCode) assert.Equal(t, fernTestValueCode, obj.Code) assert.NotNil(t, obj.explicitFields) }) t.Run("SetMessage", func(t *testing.T) { - obj := &DocFormsSetValue404Response{} + obj := &DocPagesInsert404Response{} var fernTestValueMessage string obj.SetMessage(fernTestValueMessage) assert.Equal(t, fernTestValueMessage, obj.Message) @@ -236035,7 +279247,7 @@ func TestSettersDocFormsSetValue404Response(t *testing.T) { }) t.Run("SetDetails", func(t *testing.T) { - obj := &DocFormsSetValue404Response{} + obj := &DocPagesInsert404Response{} var fernTestValueDetails map[string]any obj.SetDetails(fernTestValueDetails) assert.Equal(t, fernTestValueDetails, obj.Details) @@ -236044,12 +279256,12 @@ func TestSettersDocFormsSetValue404Response(t *testing.T) { } -func TestGettersDocFormsSetValue404Response(t *testing.T) { +func TestGettersDocPagesInsert404Response(t *testing.T) { t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue404Response{} - var expected DocFormsSetValue404ResponseName + obj := &DocPagesInsert404Response{} + var expected DocPagesInsert404ResponseName obj.Name = expected // Act & Assert @@ -236058,7 +279270,7 @@ func TestGettersDocFormsSetValue404Response(t *testing.T) { t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue404Response + var obj *DocPagesInsert404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -236071,8 +279283,8 @@ func TestGettersDocFormsSetValue404Response(t *testing.T) { t.Run("GetCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue404Response{} - var expected DocFormsSetValue404ResponseCode + obj := &DocPagesInsert404Response{} + var expected DocPagesInsert404ResponseCode obj.Code = expected // Act & Assert @@ -236081,7 +279293,7 @@ func TestGettersDocFormsSetValue404Response(t *testing.T) { t.Run("GetCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue404Response + var obj *DocPagesInsert404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -236094,7 +279306,7 @@ func TestGettersDocFormsSetValue404Response(t *testing.T) { t.Run("GetMessage", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue404Response{} + obj := &DocPagesInsert404Response{} var expected string obj.Message = expected @@ -236104,7 +279316,7 @@ func TestGettersDocFormsSetValue404Response(t *testing.T) { t.Run("GetMessage_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue404Response + var obj *DocPagesInsert404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -236117,7 +279329,7 @@ func TestGettersDocFormsSetValue404Response(t *testing.T) { t.Run("GetDetails", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue404Response{} + obj := &DocPagesInsert404Response{} var expected map[string]any obj.Details = expected @@ -236128,7 +279340,7 @@ func TestGettersDocFormsSetValue404Response(t *testing.T) { t.Run("GetDetails_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue404Response{} + obj := &DocPagesInsert404Response{} obj.Details = nil // Act & Assert @@ -236137,7 +279349,7 @@ func TestGettersDocFormsSetValue404Response(t *testing.T) { t.Run("GetDetails_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocFormsSetValue404Response + var obj *DocPagesInsert404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -236149,12 +279361,12 @@ func TestGettersDocFormsSetValue404Response(t *testing.T) { } -func TestSettersMarkExplicitDocFormsSetValue404Response(t *testing.T) { +func TestSettersMarkExplicitDocPagesInsert404Response(t *testing.T) { t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue404Response{} - var fernTestValueName DocFormsSetValue404ResponseName + obj := &DocPagesInsert404Response{} + var fernTestValueName DocPagesInsert404ResponseName // Act obj.SetName(fernTestValueName) @@ -236184,8 +279396,8 @@ func TestSettersMarkExplicitDocFormsSetValue404Response(t *testing.T) { t.Run("SetCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue404Response{} - var fernTestValueCode DocFormsSetValue404ResponseCode + obj := &DocPagesInsert404Response{} + var fernTestValueCode DocPagesInsert404ResponseCode // Act obj.SetCode(fernTestValueCode) @@ -236215,7 +279427,7 @@ func TestSettersMarkExplicitDocFormsSetValue404Response(t *testing.T) { t.Run("SetMessage_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue404Response{} + obj := &DocPagesInsert404Response{} var fernTestValueMessage string // Act @@ -236246,7 +279458,7 @@ func TestSettersMarkExplicitDocFormsSetValue404Response(t *testing.T) { t.Run("SetDetails_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocFormsSetValue404Response{} + obj := &DocPagesInsert404Response{} var fernTestValueDetails map[string]any // Act @@ -236276,155 +279488,184 @@ func TestSettersMarkExplicitDocFormsSetValue404Response(t *testing.T) { } -func TestSettersDocHead404Response(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocHead404Response{} - var fernTestValueName DocHead404ResponseName - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) +func TestSettersDocPagesInsertBlank200Response(t *testing.T) { + t.Run("SetMeta", func(t *testing.T) { + obj := &DocPagesInsertBlank200Response{} + var fernTestValueMeta *DocPagesInsertBlank200ResponseMeta + obj.SetMeta(fernTestValueMeta) + assert.Equal(t, fernTestValueMeta, obj.Meta) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCode", func(t *testing.T) { - obj := &DocHead404Response{} - var fernTestValueCode DocHead404ResponseCode - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) - assert.NotNil(t, obj.explicitFields) - }) +} - t.Run("SetMessage", func(t *testing.T) { - obj := &DocHead404Response{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) - assert.NotNil(t, obj.explicitFields) - }) +func TestGettersDocPagesInsertBlank200Response(t *testing.T) { + t.Run("GetMeta", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200Response{} + var expected *DocPagesInsertBlank200ResponseMeta + obj.Meta = expected - t.Run("SetDetails", func(t *testing.T) { - obj := &DocHead404Response{} - var fernTestValueDetails map[string]any - obj.SetDetails(fernTestValueDetails) - assert.Equal(t, fernTestValueDetails, obj.Details) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetMeta(), "getter should return the property value") }) -} - -func TestGettersDocHead404Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { + t.Run("GetMeta_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocHead404Response{} - var expected DocHead404ResponseName - obj.Name = expected + obj := &DocPagesInsertBlank200Response{} + obj.Meta = nil // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Nil(t, obj.GetMeta(), "getter should return nil when property is nil") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetMeta_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocHead404Response + var obj *DocPagesInsertBlank200Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetName() // Should return zero value + _ = obj.GetMeta() // Should return zero value }) - t.Run("GetCode", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocPagesInsertBlank200Response(t *testing.T) { + t.Run("SetMeta_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocHead404Response{} - var expected DocHead404ResponseCode - obj.Code = expected + obj := &DocPagesInsertBlank200Response{} + var fernTestValueMeta *DocPagesInsertBlank200ResponseMeta - // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + // Act + obj.SetMeta(fernTestValueMeta) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { +} + +func TestSettersDocPagesInsertBlank200ResponseMeta(t *testing.T) { + t.Run("SetAffectedPages", func(t *testing.T) { + obj := &DocPagesInsertBlank200ResponseMeta{} + var fernTestValueAffectedPages []*DocPagesInsertBlank200ResponseMetaAffectedPagesItem + obj.SetAffectedPages(fernTestValueAffectedPages) + assert.Equal(t, fernTestValueAffectedPages, obj.AffectedPages) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCacheDelta", func(t *testing.T) { + obj := &DocPagesInsertBlank200ResponseMeta{} + var fernTestValueCacheDelta *DocPagesInsertBlank200ResponseMetaCacheDelta + obj.SetCacheDelta(fernTestValueCacheDelta) + assert.Equal(t, fernTestValueCacheDelta, obj.CacheDelta) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesInsertBlank200ResponseMeta(t *testing.T) { + t.Run("GetAffectedPages", func(t *testing.T) { t.Parallel() - var obj *DocHead404Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetCode() // Should return zero value + // Arrange + obj := &DocPagesInsertBlank200ResponseMeta{} + var expected []*DocPagesInsertBlank200ResponseMetaAffectedPagesItem + obj.AffectedPages = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAffectedPages(), "getter should return the property value") }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetAffectedPages_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocHead404Response{} - var expected string - obj.Message = expected + obj := &DocPagesInsertBlank200ResponseMeta{} + obj.AffectedPages = nil // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Nil(t, obj.GetAffectedPages(), "getter should return nil when property is nil") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocHead404Response + var obj *DocPagesInsertBlank200ResponseMeta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetMessage() // Should return zero value + _ = obj.GetAffectedPages() // Should return zero value }) - t.Run("GetDetails", func(t *testing.T) { + t.Run("GetCacheDelta", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocHead404Response{} - var expected map[string]any - obj.Details = expected + obj := &DocPagesInsertBlank200ResponseMeta{} + var expected *DocPagesInsertBlank200ResponseMetaCacheDelta + obj.CacheDelta = expected // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCacheDelta(), "getter should return the property value") }) - t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Run("GetCacheDelta_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocHead404Response{} - obj.Details = nil + obj := &DocPagesInsertBlank200ResponseMeta{} + obj.CacheDelta = nil // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCacheDelta(), "getter should return nil when property is nil") }) - t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocHead404Response + var obj *DocPagesInsertBlank200ResponseMeta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDetails() // Should return zero value + _ = obj.GetCacheDelta() // Should return zero value }) } -func TestSettersMarkExplicitDocHead404Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMeta(t *testing.T) { + t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocHead404Response{} - var fernTestValueName DocHead404ResponseName + obj := &DocPagesInsertBlank200ResponseMeta{} + var fernTestValueAffectedPages []*DocPagesInsertBlank200ResponseMetaAffectedPagesItem // Act - obj.SetName(fernTestValueName) + obj.SetAffectedPages(fernTestValueAffectedPages) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -236448,14 +279689,14 @@ func TestSettersMarkExplicitDocHead404Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Run("SetCacheDelta_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocHead404Response{} - var fernTestValueCode DocHead404ResponseCode + obj := &DocPagesInsertBlank200ResponseMeta{} + var fernTestValueCacheDelta *DocPagesInsertBlank200ResponseMetaCacheDelta // Act - obj.SetCode(fernTestValueCode) + obj.SetCacheDelta(fernTestValueCacheDelta) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -236479,14 +279720,136 @@ func TestSettersMarkExplicitDocHead404Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetMessage_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocPagesInsertBlank200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetRevision", func(t *testing.T) { + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision + obj.SetRevision(fernTestValueRevision) + assert.Equal(t, fernTestValueRevision, obj.Revision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWeakAnnotationState", func(t *testing.T) { + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState + obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) + assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocHead404Response{} - var fernTestValueMessage string + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesInsertBlank200ResponseMetaAffectedPagesItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetRevision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} + var expected *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision + obj.Revision = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + }) + + t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} + obj.Revision = nil + + // Act & Assert + assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + }) + + t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesInsertBlank200ResponseMetaAffectedPagesItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRevision() // Should return zero value + }) + + t.Run("GetWeakAnnotationState", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} + var expected *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState + obj.WeakAnnotationState = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetWeakAnnotationState(), "getter should return the property value") + }) + + t.Run("GetWeakAnnotationState_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} + obj.WeakAnnotationState = nil + + // Act & Assert + assert.Nil(t, obj.GetWeakAnnotationState(), "getter should return nil when property is nil") + }) + + t.Run("GetWeakAnnotationState_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesInsertBlank200ResponseMetaAffectedPagesItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetWeakAnnotationState() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} + var fernTestValuePageObjectNumber int // Act - obj.SetMessage(fernTestValueMessage) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -236510,14 +279873,14 @@ func TestSettersMarkExplicitDocHead404Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDetails_MarksExplicit", func(t *testing.T) { + t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocHead404Response{} - var fernTestValueDetails map[string]any + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision // Act - obj.SetDetails(fernTestValueDetails) + obj.SetRevision(fernTestValueRevision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -236541,188 +279904,147 @@ func TestSettersMarkExplicitDocHead404Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} + t.Run("SetWeakAnnotationState_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState -func TestSettersDocManifest404Response(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocManifest404Response{} - var fernTestValueName DocManifest404ResponseName - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) - assert.NotNil(t, obj.explicitFields) + // Act + obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCode", func(t *testing.T) { - obj := &DocManifest404Response{} - var fernTestValueCode DocManifest404ResponseCode - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) +} + +func TestSettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("SetDocSessionID", func(t *testing.T) { + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} + var fernTestValueDocSessionID string + obj.SetDocSessionID(fernTestValueDocSessionID) + assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMessage", func(t *testing.T) { - obj := &DocManifest404Response{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetDetails", func(t *testing.T) { - obj := &DocManifest404Response{} - var fernTestValueDetails map[string]any - obj.SetDetails(fernTestValueDetails) - assert.Equal(t, fernTestValueDetails, obj.Details) + t.Run("SetGeneration", func(t *testing.T) { + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} + var fernTestValueGeneration int + obj.SetGeneration(fernTestValueGeneration) + assert.Equal(t, fernTestValueGeneration, obj.Generation) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocManifest404Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocManifest404Response{} - var expected DocManifest404ResponseName - obj.Name = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") - }) - - t.Run("GetName_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocManifest404Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetName() // Should return zero value - }) - - t.Run("GetCode", func(t *testing.T) { +func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocManifest404Response{} - var expected DocManifest404ResponseCode - obj.Code = expected + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} + var expected string + obj.DocSessionID = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocManifest404Response + var obj *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCode() // Should return zero value + _ = obj.GetDocSessionID() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocManifest404Response{} - var expected string - obj.Message = expected + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} + var expected int + obj.PageObjectNumber = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocManifest404Response + var obj *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetMessage() // Should return zero value - }) - - t.Run("GetDetails", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocManifest404Response{} - var expected map[string]any - obj.Details = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + _ = obj.GetPageObjectNumber() // Should return zero value }) - t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocManifest404Response{} - obj.Details = nil + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} + var expected int + obj.Generation = expected // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") }) - t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocManifest404Response + var obj *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDetails() // Should return zero value + _ = obj.GetGeneration() // Should return zero value }) } -func TestSettersMarkExplicitDocManifest404Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocManifest404Response{} - var fernTestValueName DocManifest404ResponseName - - // Act - obj.SetName(fernTestValueName) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetCode_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocManifest404Response{} - var fernTestValueCode DocManifest404ResponseCode + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} + var fernTestValueDocSessionID string // Act - obj.SetCode(fernTestValueCode) + obj.SetDocSessionID(fernTestValueDocSessionID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -236746,14 +280068,14 @@ func TestSettersMarkExplicitDocManifest404Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetMessage_MarksExplicit", func(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocManifest404Response{} - var fernTestValueMessage string + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} + var fernTestValuePageObjectNumber int // Act - obj.SetMessage(fernTestValueMessage) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -236777,14 +280099,14 @@ func TestSettersMarkExplicitDocManifest404Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDetails_MarksExplicit", func(t *testing.T) { + t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocManifest404Response{} - var fernTestValueDetails map[string]any + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} + var fernTestValueGeneration int // Act - obj.SetDetails(fernTestValueDetails) + obj.SetGeneration(fernTestValueGeneration) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -236810,421 +280132,534 @@ func TestSettersMarkExplicitDocManifest404Response(t *testing.T) { } -func TestSettersDocMetadataGet200Response(t *testing.T) { - t.Run("SetTitle", func(t *testing.T) { - obj := &DocMetadataGet200Response{} - var fernTestValueTitle *string - obj.SetTitle(fernTestValueTitle) - assert.Equal(t, fernTestValueTitle, obj.Title) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAuthor", func(t *testing.T) { - obj := &DocMetadataGet200Response{} - var fernTestValueAuthor *string - obj.SetAuthor(fernTestValueAuthor) - assert.Equal(t, fernTestValueAuthor, obj.Author) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetSubject", func(t *testing.T) { - obj := &DocMetadataGet200Response{} - var fernTestValueSubject *string - obj.SetSubject(fernTestValueSubject) - assert.Equal(t, fernTestValueSubject, obj.Subject) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetKeywords", func(t *testing.T) { - obj := &DocMetadataGet200Response{} - var fernTestValueKeywords *string - obj.SetKeywords(fernTestValueKeywords) - assert.Equal(t, fernTestValueKeywords, obj.Keywords) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetProducer", func(t *testing.T) { - obj := &DocMetadataGet200Response{} - var fernTestValueProducer *string - obj.SetProducer(fernTestValueProducer) - assert.Equal(t, fernTestValueProducer, obj.Producer) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCreator", func(t *testing.T) { - obj := &DocMetadataGet200Response{} - var fernTestValueCreator *string - obj.SetCreator(fernTestValueCreator) - assert.Equal(t, fernTestValueCreator, obj.Creator) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCreated", func(t *testing.T) { - obj := &DocMetadataGet200Response{} - var fernTestValueCreated *time.Time - obj.SetCreated(fernTestValueCreated) - assert.Equal(t, fernTestValueCreated, obj.Created) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetModified", func(t *testing.T) { - obj := &DocMetadataGet200Response{} - var fernTestValueModified *time.Time - obj.SetModified(fernTestValueModified) - assert.Equal(t, fernTestValueModified, obj.Modified) - assert.NotNil(t, obj.explicitFields) - }) +func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { + t.Run("GetKind", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected string + obj.Kind = expected - t.Run("SetTrapped", func(t *testing.T) { - obj := &DocMetadataGet200Response{} - var fernTestValueTrapped DocMetadataGet200ResponseTrapped - obj.SetTrapped(fernTestValueTrapped) - assert.Equal(t, fernTestValueTrapped, obj.Trapped) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") }) - t.Run("SetCustom", func(t *testing.T) { - obj := &DocMetadataGet200Response{} - var fernTestValueCustom map[string]string - obj.SetCustom(fernTestValueCustom) - assert.Equal(t, fernTestValueCustom, obj.Custom) - assert.NotNil(t, obj.explicitFields) + t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetKind() // Should return zero value }) -} - -func TestGettersDocMetadataGet200Response(t *testing.T) { - t.Run("GetTitle", func(t *testing.T) { + t.Run("GetUnknown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - var expected *string - obj.Title = expected + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + obj.Unknown = expected // Act & Assert - assert.Equal(t, expected, obj.GetTitle(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") }) - t.Run("GetTitle_NilValue", func(t *testing.T) { + t.Run("GetUnknown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - obj.Title = nil + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj.Unknown = nil // Act & Assert - assert.Nil(t, obj.GetTitle(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") }) - t.Run("GetTitle_NilReceiver", func(t *testing.T) { + t.Run("GetUnknown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocMetadataGet200Response + var obj *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTitle() // Should return zero value + _ = obj.GetUnknown() // Should return zero value }) - t.Run("GetAuthor", func(t *testing.T) { + t.Run("GetKnown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - var expected *string - obj.Author = expected + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + obj.Known = expected // Act & Assert - assert.Equal(t, expected, obj.GetAuthor(), "getter should return the property value") + assert.Equal(t, expected, obj.GetKnown(), "getter should return the property value") }) - t.Run("GetAuthor_NilValue", func(t *testing.T) { + t.Run("GetKnown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - obj.Author = nil + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj.Known = nil // Act & Assert - assert.Nil(t, obj.GetAuthor(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetKnown(), "getter should return nil when property is nil") }) - t.Run("GetAuthor_NilReceiver", func(t *testing.T) { + t.Run("GetKnown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocMetadataGet200Response + var obj *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAuthor() // Should return zero value + _ = obj.GetKnown() // Should return zero value }) - t.Run("GetSubject", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocMetadataGet200Response{} - var expected *string - obj.Subject = expected +} - // Act & Assert - assert.Equal(t, expected, obj.GetSubject(), "getter should return the property value") +func TestSettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("SetHasAnyWeakAnnotations", func(t *testing.T) { + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + var fernTestValueHasAnyWeakAnnotations bool + obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) + assert.Equal(t, fernTestValueHasAnyWeakAnnotations, obj.HasAnyWeakAnnotations) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetSubject_NilValue", func(t *testing.T) { +} + +func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - obj.Subject = nil + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + var expected bool + obj.HasAnyWeakAnnotations = expected // Act & Assert - assert.Nil(t, obj.GetSubject(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetHasAnyWeakAnnotations(), "getter should return the property value") }) - t.Run("GetSubject_NilReceiver", func(t *testing.T) { + t.Run("GetHasAnyWeakAnnotations_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocMetadataGet200Response + var obj *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetSubject() // Should return zero value + _ = obj.GetHasAnyWeakAnnotations() // Should return zero value }) - t.Run("GetKeywords", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - var expected *string - obj.Keywords = expected + obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + var fernTestValueHasAnyWeakAnnotations bool - // Act & Assert - assert.Equal(t, expected, obj.GetKeywords(), "getter should return the property value") + // Act + obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetKeywords_NilValue", func(t *testing.T) { +} + +func TestSettersDocPagesInsertBlank200ResponseMetaCacheDelta(t *testing.T) { + t.Run("SetPreviousDocVersion", func(t *testing.T) { + obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + var fernTestValuePreviousDocVersion int + obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) + assert.Equal(t, fernTestValuePreviousDocVersion, obj.PreviousDocVersion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDocVersion", func(t *testing.T) { + obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + var fernTestValueDocVersion int + obj.SetDocVersion(fernTestValueDocVersion) + assert.Equal(t, fernTestValueDocVersion, obj.DocVersion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotationsVersion", func(t *testing.T) { + obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + var fernTestValueAnnotationsVersion *int + obj.SetAnnotationsVersion(fernTestValueAnnotationsVersion) + assert.Equal(t, fernTestValueAnnotationsVersion, obj.AnnotationsVersion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLayerVersion", func(t *testing.T) { + obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + var fernTestValueLayerVersion *int + obj.SetLayerVersion(fernTestValueLayerVersion) + assert.Equal(t, fernTestValueLayerVersion, obj.LayerVersion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetWorking", func(t *testing.T) { + obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + var fernTestValueWorking *bool + obj.SetWorking(fernTestValueWorking) + assert.Equal(t, fernTestValueWorking, obj.Working) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPages", func(t *testing.T) { + obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem + obj.SetPages(fernTestValuePages) + assert.Equal(t, fernTestValuePages, obj.Pages) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesInsertBlank200ResponseMetaCacheDelta(t *testing.T) { + t.Run("GetPreviousDocVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - obj.Keywords = nil + obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + var expected int + obj.PreviousDocVersion = expected // Act & Assert - assert.Nil(t, obj.GetKeywords(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetPreviousDocVersion(), "getter should return the property value") }) - t.Run("GetKeywords_NilReceiver", func(t *testing.T) { + t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocMetadataGet200Response + var obj *DocPagesInsertBlank200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKeywords() // Should return zero value - }) - - t.Run("GetProducer", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocMetadataGet200Response{} - var expected *string - obj.Producer = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetProducer(), "getter should return the property value") + _ = obj.GetPreviousDocVersion() // Should return zero value }) - t.Run("GetProducer_NilValue", func(t *testing.T) { + t.Run("GetDocVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - obj.Producer = nil + obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + var expected int + obj.DocVersion = expected // Act & Assert - assert.Nil(t, obj.GetProducer(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetDocVersion(), "getter should return the property value") }) - t.Run("GetProducer_NilReceiver", func(t *testing.T) { + t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocMetadataGet200Response + var obj *DocPagesInsertBlank200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetProducer() // Should return zero value + _ = obj.GetDocVersion() // Should return zero value }) - t.Run("GetCreator", func(t *testing.T) { + t.Run("GetAnnotationsVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - var expected *string - obj.Creator = expected + obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + var expected *int + obj.AnnotationsVersion = expected // Act & Assert - assert.Equal(t, expected, obj.GetCreator(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAnnotationsVersion(), "getter should return the property value") }) - t.Run("GetCreator_NilValue", func(t *testing.T) { + t.Run("GetAnnotationsVersion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - obj.Creator = nil + obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + obj.AnnotationsVersion = nil // Act & Assert - assert.Nil(t, obj.GetCreator(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetAnnotationsVersion(), "getter should return nil when property is nil") }) - t.Run("GetCreator_NilReceiver", func(t *testing.T) { + t.Run("GetAnnotationsVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocMetadataGet200Response + var obj *DocPagesInsertBlank200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCreator() // Should return zero value + _ = obj.GetAnnotationsVersion() // Should return zero value }) - t.Run("GetCreated", func(t *testing.T) { + t.Run("GetLayerVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - var expected *time.Time - obj.Created = expected + obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + var expected *int + obj.LayerVersion = expected // Act & Assert - assert.Equal(t, expected, obj.GetCreated(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLayerVersion(), "getter should return the property value") }) - t.Run("GetCreated_NilValue", func(t *testing.T) { + t.Run("GetLayerVersion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - obj.Created = nil + obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + obj.LayerVersion = nil // Act & Assert - assert.Nil(t, obj.GetCreated(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetLayerVersion(), "getter should return nil when property is nil") }) - t.Run("GetCreated_NilReceiver", func(t *testing.T) { + t.Run("GetLayerVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocMetadataGet200Response + var obj *DocPagesInsertBlank200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCreated() // Should return zero value + _ = obj.GetLayerVersion() // Should return zero value }) - t.Run("GetModified", func(t *testing.T) { + t.Run("GetWorking", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - var expected *time.Time - obj.Modified = expected + obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + var expected *bool + obj.Working = expected // Act & Assert - assert.Equal(t, expected, obj.GetModified(), "getter should return the property value") + assert.Equal(t, expected, obj.GetWorking(), "getter should return the property value") }) - t.Run("GetModified_NilValue", func(t *testing.T) { + t.Run("GetWorking_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - obj.Modified = nil + obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + obj.Working = nil // Act & Assert - assert.Nil(t, obj.GetModified(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetWorking(), "getter should return nil when property is nil") }) - t.Run("GetModified_NilReceiver", func(t *testing.T) { + t.Run("GetWorking_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocMetadataGet200Response + var obj *DocPagesInsertBlank200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetModified() // Should return zero value + _ = obj.GetWorking() // Should return zero value }) - t.Run("GetTrapped", func(t *testing.T) { + t.Run("GetPages", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - var expected DocMetadataGet200ResponseTrapped - obj.Trapped = expected + obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + var expected []*DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem + obj.Pages = expected // Act & Assert - assert.Equal(t, expected, obj.GetTrapped(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPages(), "getter should return the property value") }) - t.Run("GetTrapped_NilReceiver", func(t *testing.T) { + t.Run("GetPages_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocMetadataGet200Response + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + obj.Pages = nil + + // Act & Assert + assert.Nil(t, obj.GetPages(), "getter should return nil when property is nil") + }) + + t.Run("GetPages_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesInsertBlank200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTrapped() // Should return zero value + _ = obj.GetPages() // Should return zero value }) - t.Run("GetCustom", func(t *testing.T) { +} + +func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaCacheDelta(t *testing.T) { + t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - var expected map[string]string - obj.Custom = expected + obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + var fernTestValuePreviousDocVersion int - // Act & Assert - assert.Equal(t, expected, obj.GetCustom(), "getter should return the property value") + // Act + obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetCustom_NilValue", func(t *testing.T) { + t.Run("SetDocVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - obj.Custom = nil + obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + var fernTestValueDocVersion int - // Act & Assert - assert.Nil(t, obj.GetCustom(), "getter should return nil when property is nil") + // Act + obj.SetDocVersion(fernTestValueDocVersion) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetCustom_NilReceiver", func(t *testing.T) { + t.Run("SetAnnotationsVersion_MarksExplicit", func(t *testing.T) { t.Parallel() - var obj *DocMetadataGet200Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetCustom() // Should return zero value + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + var fernTestValueAnnotationsVersion *int + + // Act + obj.SetAnnotationsVersion(fernTestValueAnnotationsVersion) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} + t.Run("SetLayerVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + var fernTestValueLayerVersion *int -func TestSettersMarkExplicitDocMetadataGet200Response(t *testing.T) { - t.Run("SetTitle_MarksExplicit", func(t *testing.T) { + // Act + obj.SetLayerVersion(fernTestValueLayerVersion) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetWorking_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - var fernTestValueTitle *string + obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + var fernTestValueWorking *bool // Act - obj.SetTitle(fernTestValueTitle) + obj.SetWorking(fernTestValueWorking) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -237248,14 +280683,14 @@ func TestSettersMarkExplicitDocMetadataGet200Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAuthor_MarksExplicit", func(t *testing.T) { + t.Run("SetPages_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - var fernTestValueAuthor *string + obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem // Act - obj.SetAuthor(fernTestValueAuthor) + obj.SetPages(fernTestValuePages) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -237279,14 +280714,95 @@ func TestSettersMarkExplicitDocMetadataGet200Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetSubject_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCache", func(t *testing.T) { + obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache + obj.SetCache(fernTestValueCache) + assert.Equal(t, fernTestValueCache, obj.Cache) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - var fernTestValueSubject *string + obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + + t.Run("GetCache", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem{} + var expected *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache + obj.Cache = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCache(), "getter should return the property value") + }) + + t.Run("GetCache_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem{} + obj.Cache = nil + + // Act & Assert + assert.Nil(t, obj.GetCache(), "getter should return nil when property is nil") + }) + + t.Run("GetCache_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCache() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem{} + var fernTestValuePageObjectNumber int // Act - obj.SetSubject(fernTestValueSubject) + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -237310,14 +280826,14 @@ func TestSettersMarkExplicitDocMetadataGet200Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetKeywords_MarksExplicit", func(t *testing.T) { + t.Run("SetCache_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - var fernTestValueKeywords *string + obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache // Act - obj.SetKeywords(fernTestValueKeywords) + obj.SetCache(fernTestValueCache) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -237341,14 +280857,85 @@ func TestSettersMarkExplicitDocMetadataGet200Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetProducer_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("SetContentVersion", func(t *testing.T) { + obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache{} + var fernTestValueContentVersion int + obj.SetContentVersion(fernTestValueContentVersion) + assert.Equal(t, fernTestValueContentVersion, obj.ContentVersion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotationVersion", func(t *testing.T) { + obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache{} + var fernTestValueAnnotationVersion int + obj.SetAnnotationVersion(fernTestValueAnnotationVersion) + assert.Equal(t, fernTestValueAnnotationVersion, obj.AnnotationVersion) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("GetContentVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - var fernTestValueProducer *string + obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache{} + var expected int + obj.ContentVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetContentVersion(), "getter should return the property value") + }) + + t.Run("GetContentVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetContentVersion() // Should return zero value + }) + + t.Run("GetAnnotationVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache{} + var expected int + obj.AnnotationVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotationVersion(), "getter should return the property value") + }) + + t.Run("GetAnnotationVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAnnotationVersion() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("SetContentVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache{} + var fernTestValueContentVersion int // Act - obj.SetProducer(fernTestValueProducer) + obj.SetContentVersion(fernTestValueContentVersion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -237372,14 +280959,14 @@ func TestSettersMarkExplicitDocMetadataGet200Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreator_MarksExplicit", func(t *testing.T) { + t.Run("SetAnnotationVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - var fernTestValueCreator *string + obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache{} + var fernTestValueAnnotationVersion int // Act - obj.SetCreator(fernTestValueCreator) + obj.SetAnnotationVersion(fernTestValueAnnotationVersion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -237403,14 +280990,157 @@ func TestSettersMarkExplicitDocMetadataGet200Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCreated_MarksExplicit", func(t *testing.T) { +} + +func TestSettersDocPagesInsertBlank400Response(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + obj := &DocPagesInsertBlank400Response{} + var fernTestValueName DocPagesInsertBlank400ResponseName + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCode", func(t *testing.T) { + obj := &DocPagesInsertBlank400Response{} + var fernTestValueCode DocPagesInsertBlank400ResponseCode + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMessage", func(t *testing.T) { + obj := &DocPagesInsertBlank400Response{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDetails", func(t *testing.T) { + obj := &DocPagesInsertBlank400Response{} + var fernTestValueDetails map[string]any + obj.SetDetails(fernTestValueDetails) + assert.Equal(t, fernTestValueDetails, obj.Details) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesInsertBlank400Response(t *testing.T) { + t.Run("GetName", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank400Response{} + var expected DocPagesInsertBlank400ResponseName + obj.Name = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + }) + + t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesInsertBlank400Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetName() // Should return zero value + }) + + t.Run("GetCode", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank400Response{} + var expected DocPagesInsertBlank400ResponseCode + obj.Code = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + }) + + t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesInsertBlank400Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCode() // Should return zero value + }) + + t.Run("GetMessage", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank400Response{} + var expected string + obj.Message = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + }) + + t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesInsertBlank400Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetMessage() // Should return zero value + }) + + t.Run("GetDetails", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank400Response{} + var expected map[string]any + obj.Details = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + }) + + t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesInsertBlank400Response{} + obj.Details = nil + + // Act & Assert + assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + }) + + t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesInsertBlank400Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDetails() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocPagesInsertBlank400Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - var fernTestValueCreated *time.Time + obj := &DocPagesInsertBlank400Response{} + var fernTestValueName DocPagesInsertBlank400ResponseName // Act - obj.SetCreated(fernTestValueCreated) + obj.SetName(fernTestValueName) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -237434,14 +281164,14 @@ func TestSettersMarkExplicitDocMetadataGet200Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetModified_MarksExplicit", func(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - var fernTestValueModified *time.Time + obj := &DocPagesInsertBlank400Response{} + var fernTestValueCode DocPagesInsertBlank400ResponseCode // Act - obj.SetModified(fernTestValueModified) + obj.SetCode(fernTestValueCode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -237465,14 +281195,14 @@ func TestSettersMarkExplicitDocMetadataGet200Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTrapped_MarksExplicit", func(t *testing.T) { + t.Run("SetMessage_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - var fernTestValueTrapped DocMetadataGet200ResponseTrapped + obj := &DocPagesInsertBlank400Response{} + var fernTestValueMessage string // Act - obj.SetTrapped(fernTestValueTrapped) + obj.SetMessage(fernTestValueMessage) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -237496,14 +281226,14 @@ func TestSettersMarkExplicitDocMetadataGet200Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCustom_MarksExplicit", func(t *testing.T) { + t.Run("SetDetails_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet200Response{} - var fernTestValueCustom map[string]string + obj := &DocPagesInsertBlank400Response{} + var fernTestValueDetails map[string]any // Act - obj.SetCustom(fernTestValueCustom) + obj.SetDetails(fernTestValueDetails) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -237529,25 +281259,25 @@ func TestSettersMarkExplicitDocMetadataGet200Response(t *testing.T) { } -func TestSettersDocMetadataGet404Response(t *testing.T) { +func TestSettersDocPagesInsertBlank404Response(t *testing.T) { t.Run("SetName", func(t *testing.T) { - obj := &DocMetadataGet404Response{} - var fernTestValueName DocMetadataGet404ResponseName + obj := &DocPagesInsertBlank404Response{} + var fernTestValueName DocPagesInsertBlank404ResponseName obj.SetName(fernTestValueName) assert.Equal(t, fernTestValueName, obj.Name) assert.NotNil(t, obj.explicitFields) }) t.Run("SetCode", func(t *testing.T) { - obj := &DocMetadataGet404Response{} - var fernTestValueCode DocMetadataGet404ResponseCode + obj := &DocPagesInsertBlank404Response{} + var fernTestValueCode DocPagesInsertBlank404ResponseCode obj.SetCode(fernTestValueCode) assert.Equal(t, fernTestValueCode, obj.Code) assert.NotNil(t, obj.explicitFields) }) t.Run("SetMessage", func(t *testing.T) { - obj := &DocMetadataGet404Response{} + obj := &DocPagesInsertBlank404Response{} var fernTestValueMessage string obj.SetMessage(fernTestValueMessage) assert.Equal(t, fernTestValueMessage, obj.Message) @@ -237555,7 +281285,7 @@ func TestSettersDocMetadataGet404Response(t *testing.T) { }) t.Run("SetDetails", func(t *testing.T) { - obj := &DocMetadataGet404Response{} + obj := &DocPagesInsertBlank404Response{} var fernTestValueDetails map[string]any obj.SetDetails(fernTestValueDetails) assert.Equal(t, fernTestValueDetails, obj.Details) @@ -237564,12 +281294,12 @@ func TestSettersDocMetadataGet404Response(t *testing.T) { } -func TestGettersDocMetadataGet404Response(t *testing.T) { +func TestGettersDocPagesInsertBlank404Response(t *testing.T) { t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet404Response{} - var expected DocMetadataGet404ResponseName + obj := &DocPagesInsertBlank404Response{} + var expected DocPagesInsertBlank404ResponseName obj.Name = expected // Act & Assert @@ -237578,7 +281308,7 @@ func TestGettersDocMetadataGet404Response(t *testing.T) { t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocMetadataGet404Response + var obj *DocPagesInsertBlank404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -237591,8 +281321,8 @@ func TestGettersDocMetadataGet404Response(t *testing.T) { t.Run("GetCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet404Response{} - var expected DocMetadataGet404ResponseCode + obj := &DocPagesInsertBlank404Response{} + var expected DocPagesInsertBlank404ResponseCode obj.Code = expected // Act & Assert @@ -237601,7 +281331,7 @@ func TestGettersDocMetadataGet404Response(t *testing.T) { t.Run("GetCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocMetadataGet404Response + var obj *DocPagesInsertBlank404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -237614,7 +281344,7 @@ func TestGettersDocMetadataGet404Response(t *testing.T) { t.Run("GetMessage", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet404Response{} + obj := &DocPagesInsertBlank404Response{} var expected string obj.Message = expected @@ -237624,7 +281354,7 @@ func TestGettersDocMetadataGet404Response(t *testing.T) { t.Run("GetMessage_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocMetadataGet404Response + var obj *DocPagesInsertBlank404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -237637,7 +281367,7 @@ func TestGettersDocMetadataGet404Response(t *testing.T) { t.Run("GetDetails", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet404Response{} + obj := &DocPagesInsertBlank404Response{} var expected map[string]any obj.Details = expected @@ -237648,7 +281378,7 @@ func TestGettersDocMetadataGet404Response(t *testing.T) { t.Run("GetDetails_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet404Response{} + obj := &DocPagesInsertBlank404Response{} obj.Details = nil // Act & Assert @@ -237657,7 +281387,7 @@ func TestGettersDocMetadataGet404Response(t *testing.T) { t.Run("GetDetails_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocMetadataGet404Response + var obj *DocPagesInsertBlank404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -237669,12 +281399,12 @@ func TestGettersDocMetadataGet404Response(t *testing.T) { } -func TestSettersMarkExplicitDocMetadataGet404Response(t *testing.T) { +func TestSettersMarkExplicitDocPagesInsertBlank404Response(t *testing.T) { t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet404Response{} - var fernTestValueName DocMetadataGet404ResponseName + obj := &DocPagesInsertBlank404Response{} + var fernTestValueName DocPagesInsertBlank404ResponseName // Act obj.SetName(fernTestValueName) @@ -237704,8 +281434,8 @@ func TestSettersMarkExplicitDocMetadataGet404Response(t *testing.T) { t.Run("SetCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet404Response{} - var fernTestValueCode DocMetadataGet404ResponseCode + obj := &DocPagesInsertBlank404Response{} + var fernTestValueCode DocPagesInsertBlank404ResponseCode // Act obj.SetCode(fernTestValueCode) @@ -237735,7 +281465,7 @@ func TestSettersMarkExplicitDocMetadataGet404Response(t *testing.T) { t.Run("SetMessage_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet404Response{} + obj := &DocPagesInsertBlank404Response{} var fernTestValueMessage string // Act @@ -237766,7 +281496,7 @@ func TestSettersMarkExplicitDocMetadataGet404Response(t *testing.T) { t.Run("SetDetails_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocMetadataGet404Response{} + obj := &DocPagesInsertBlank404Response{} var fernTestValueDetails map[string]any // Act @@ -237796,10 +281526,10 @@ func TestSettersMarkExplicitDocMetadataGet404Response(t *testing.T) { } -func TestSettersDocPagesDelete200Response(t *testing.T) { +func TestSettersDocPagesMove200Response(t *testing.T) { t.Run("SetMeta", func(t *testing.T) { - obj := &DocPagesDelete200Response{} - var fernTestValueMeta *DocPagesDelete200ResponseMeta + obj := &DocPagesMove200Response{} + var fernTestValueMeta *DocPagesMove200ResponseMeta obj.SetMeta(fernTestValueMeta) assert.Equal(t, fernTestValueMeta, obj.Meta) assert.NotNil(t, obj.explicitFields) @@ -237807,12 +281537,12 @@ func TestSettersDocPagesDelete200Response(t *testing.T) { } -func TestGettersDocPagesDelete200Response(t *testing.T) { +func TestGettersDocPagesMove200Response(t *testing.T) { t.Run("GetMeta", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200Response{} - var expected *DocPagesDelete200ResponseMeta + obj := &DocPagesMove200Response{} + var expected *DocPagesMove200ResponseMeta obj.Meta = expected // Act & Assert @@ -237822,7 +281552,7 @@ func TestGettersDocPagesDelete200Response(t *testing.T) { t.Run("GetMeta_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200Response{} + obj := &DocPagesMove200Response{} obj.Meta = nil // Act & Assert @@ -237831,7 +281561,7 @@ func TestGettersDocPagesDelete200Response(t *testing.T) { t.Run("GetMeta_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200Response + var obj *DocPagesMove200Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -237843,12 +281573,12 @@ func TestGettersDocPagesDelete200Response(t *testing.T) { } -func TestSettersMarkExplicitDocPagesDelete200Response(t *testing.T) { +func TestSettersMarkExplicitDocPagesMove200Response(t *testing.T) { t.Run("SetMeta_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200Response{} - var fernTestValueMeta *DocPagesDelete200ResponseMeta + obj := &DocPagesMove200Response{} + var fernTestValueMeta *DocPagesMove200ResponseMeta // Act obj.SetMeta(fernTestValueMeta) @@ -237877,18 +281607,18 @@ func TestSettersMarkExplicitDocPagesDelete200Response(t *testing.T) { } -func TestSettersDocPagesDelete200ResponseMeta(t *testing.T) { +func TestSettersDocPagesMove200ResponseMeta(t *testing.T) { t.Run("SetAffectedPages", func(t *testing.T) { - obj := &DocPagesDelete200ResponseMeta{} - var fernTestValueAffectedPages []*DocPagesDelete200ResponseMetaAffectedPagesItem + obj := &DocPagesMove200ResponseMeta{} + var fernTestValueAffectedPages []*DocPagesMove200ResponseMetaAffectedPagesItem obj.SetAffectedPages(fernTestValueAffectedPages) assert.Equal(t, fernTestValueAffectedPages, obj.AffectedPages) assert.NotNil(t, obj.explicitFields) }) t.Run("SetCacheDelta", func(t *testing.T) { - obj := &DocPagesDelete200ResponseMeta{} - var fernTestValueCacheDelta *DocPagesDelete200ResponseMetaCacheDelta + obj := &DocPagesMove200ResponseMeta{} + var fernTestValueCacheDelta *DocPagesMove200ResponseMetaCacheDelta obj.SetCacheDelta(fernTestValueCacheDelta) assert.Equal(t, fernTestValueCacheDelta, obj.CacheDelta) assert.NotNil(t, obj.explicitFields) @@ -237896,12 +281626,12 @@ func TestSettersDocPagesDelete200ResponseMeta(t *testing.T) { } -func TestGettersDocPagesDelete200ResponseMeta(t *testing.T) { +func TestGettersDocPagesMove200ResponseMeta(t *testing.T) { t.Run("GetAffectedPages", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMeta{} - var expected []*DocPagesDelete200ResponseMetaAffectedPagesItem + obj := &DocPagesMove200ResponseMeta{} + var expected []*DocPagesMove200ResponseMetaAffectedPagesItem obj.AffectedPages = expected // Act & Assert @@ -237911,7 +281641,7 @@ func TestGettersDocPagesDelete200ResponseMeta(t *testing.T) { t.Run("GetAffectedPages_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMeta{} + obj := &DocPagesMove200ResponseMeta{} obj.AffectedPages = nil // Act & Assert @@ -237920,7 +281650,7 @@ func TestGettersDocPagesDelete200ResponseMeta(t *testing.T) { t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMeta + var obj *DocPagesMove200ResponseMeta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -237933,8 +281663,8 @@ func TestGettersDocPagesDelete200ResponseMeta(t *testing.T) { t.Run("GetCacheDelta", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMeta{} - var expected *DocPagesDelete200ResponseMetaCacheDelta + obj := &DocPagesMove200ResponseMeta{} + var expected *DocPagesMove200ResponseMetaCacheDelta obj.CacheDelta = expected // Act & Assert @@ -237944,7 +281674,7 @@ func TestGettersDocPagesDelete200ResponseMeta(t *testing.T) { t.Run("GetCacheDelta_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMeta{} + obj := &DocPagesMove200ResponseMeta{} obj.CacheDelta = nil // Act & Assert @@ -237953,7 +281683,7 @@ func TestGettersDocPagesDelete200ResponseMeta(t *testing.T) { t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMeta + var obj *DocPagesMove200ResponseMeta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -237965,12 +281695,12 @@ func TestGettersDocPagesDelete200ResponseMeta(t *testing.T) { } -func TestSettersMarkExplicitDocPagesDelete200ResponseMeta(t *testing.T) { +func TestSettersMarkExplicitDocPagesMove200ResponseMeta(t *testing.T) { t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMeta{} - var fernTestValueAffectedPages []*DocPagesDelete200ResponseMetaAffectedPagesItem + obj := &DocPagesMove200ResponseMeta{} + var fernTestValueAffectedPages []*DocPagesMove200ResponseMetaAffectedPagesItem // Act obj.SetAffectedPages(fernTestValueAffectedPages) @@ -238000,8 +281730,8 @@ func TestSettersMarkExplicitDocPagesDelete200ResponseMeta(t *testing.T) { t.Run("SetCacheDelta_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMeta{} - var fernTestValueCacheDelta *DocPagesDelete200ResponseMetaCacheDelta + obj := &DocPagesMove200ResponseMeta{} + var fernTestValueCacheDelta *DocPagesMove200ResponseMetaCacheDelta // Act obj.SetCacheDelta(fernTestValueCacheDelta) @@ -238030,9 +281760,9 @@ func TestSettersMarkExplicitDocPagesDelete200ResponseMeta(t *testing.T) { } -func TestSettersDocPagesDelete200ResponseMetaAffectedPagesItem(t *testing.T) { +func TestSettersDocPagesMove200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} + obj := &DocPagesMove200ResponseMetaAffectedPagesItem{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -238040,16 +281770,16 @@ func TestSettersDocPagesDelete200ResponseMetaAffectedPagesItem(t *testing.T) { }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocPagesDelete200ResponseMetaAffectedPagesItemRevision + obj := &DocPagesMove200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocPagesMove200ResponseMetaAffectedPagesItemRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) }) t.Run("SetWeakAnnotationState", func(t *testing.T) { - obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocPagesMove200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) assert.NotNil(t, obj.explicitFields) @@ -238057,11 +281787,11 @@ func TestSettersDocPagesDelete200ResponseMetaAffectedPagesItem(t *testing.T) { } -func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItem(t *testing.T) { +func TestGettersDocPagesMove200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} + obj := &DocPagesMove200ResponseMetaAffectedPagesItem{} var expected int obj.PageObjectNumber = expected @@ -238071,7 +281801,7 @@ func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaAffectedPagesItem + var obj *DocPagesMove200ResponseMetaAffectedPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -238084,8 +281814,8 @@ func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} - var expected *DocPagesDelete200ResponseMetaAffectedPagesItemRevision + obj := &DocPagesMove200ResponseMetaAffectedPagesItem{} + var expected *DocPagesMove200ResponseMetaAffectedPagesItemRevision obj.Revision = expected // Act & Assert @@ -238095,7 +281825,7 @@ func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} + obj := &DocPagesMove200ResponseMetaAffectedPagesItem{} obj.Revision = nil // Act & Assert @@ -238104,7 +281834,7 @@ func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaAffectedPagesItem + var obj *DocPagesMove200ResponseMetaAffectedPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -238117,8 +281847,8 @@ func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetWeakAnnotationState", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} - var expected *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocPagesMove200ResponseMetaAffectedPagesItem{} + var expected *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState obj.WeakAnnotationState = expected // Act & Assert @@ -238128,7 +281858,7 @@ func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetWeakAnnotationState_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} + obj := &DocPagesMove200ResponseMetaAffectedPagesItem{} obj.WeakAnnotationState = nil // Act & Assert @@ -238137,7 +281867,7 @@ func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetWeakAnnotationState_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaAffectedPagesItem + var obj *DocPagesMove200ResponseMetaAffectedPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -238149,11 +281879,11 @@ func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItem(t *testing.T) { } -func TestSettersMarkExplicitDocPagesDelete200ResponseMetaAffectedPagesItem(t *testing.T) { +func TestSettersMarkExplicitDocPagesMove200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} + obj := &DocPagesMove200ResponseMetaAffectedPagesItem{} var fernTestValuePageObjectNumber int // Act @@ -238184,8 +281914,8 @@ func TestSettersMarkExplicitDocPagesDelete200ResponseMetaAffectedPagesItem(t *te t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocPagesDelete200ResponseMetaAffectedPagesItemRevision + obj := &DocPagesMove200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocPagesMove200ResponseMetaAffectedPagesItemRevision // Act obj.SetRevision(fernTestValueRevision) @@ -238215,8 +281945,8 @@ func TestSettersMarkExplicitDocPagesDelete200ResponseMetaAffectedPagesItem(t *te t.Run("SetWeakAnnotationState_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocPagesMove200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState // Act obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) @@ -238245,9 +281975,9 @@ func TestSettersMarkExplicitDocPagesDelete200ResponseMetaAffectedPagesItem(t *te } -func TestSettersDocPagesDelete200ResponseMetaAffectedPagesItemRevision(t *testing.T) { +func TestSettersDocPagesMove200ResponseMetaAffectedPagesItemRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -238255,7 +281985,7 @@ func TestSettersDocPagesDelete200ResponseMetaAffectedPagesItemRevision(t *testin }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -238263,7 +281993,7 @@ func TestSettersDocPagesDelete200ResponseMetaAffectedPagesItemRevision(t *testin }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -238272,11 +282002,11 @@ func TestSettersDocPagesDelete200ResponseMetaAffectedPagesItemRevision(t *testin } -func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItemRevision(t *testing.T) { +func TestGettersDocPagesMove200ResponseMetaAffectedPagesItemRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} var expected string obj.DocSessionID = expected @@ -238286,7 +282016,7 @@ func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItemRevision(t *testin t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaAffectedPagesItemRevision + var obj *DocPagesMove200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -238299,7 +282029,7 @@ func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItemRevision(t *testin t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} var expected int obj.PageObjectNumber = expected @@ -238309,7 +282039,7 @@ func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItemRevision(t *testin t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaAffectedPagesItemRevision + var obj *DocPagesMove200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -238322,7 +282052,7 @@ func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItemRevision(t *testin t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} var expected int obj.Generation = expected @@ -238332,7 +282062,7 @@ func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItemRevision(t *testin t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaAffectedPagesItemRevision + var obj *DocPagesMove200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -238344,11 +282074,11 @@ func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItemRevision(t *testin } -func TestSettersMarkExplicitDocPagesDelete200ResponseMetaAffectedPagesItemRevision(t *testing.T) { +func TestSettersMarkExplicitDocPagesMove200ResponseMetaAffectedPagesItemRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} var fernTestValueDocSessionID string // Act @@ -238379,7 +282109,7 @@ func TestSettersMarkExplicitDocPagesDelete200ResponseMetaAffectedPagesItemRevisi t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} var fernTestValuePageObjectNumber int // Act @@ -238410,7 +282140,7 @@ func TestSettersMarkExplicitDocPagesDelete200ResponseMetaAffectedPagesItemRevisi t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} var fernTestValueGeneration int // Act @@ -238440,11 +282170,11 @@ func TestSettersMarkExplicitDocPagesDelete200ResponseMetaAffectedPagesItemRevisi } -func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { +func TestGettersDocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState{} var expected string obj.Kind = expected @@ -238454,7 +282184,7 @@ func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStat t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -238467,8 +282197,8 @@ func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStat t.Run("GetUnknown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + obj := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown obj.Unknown = expected // Act & Assert @@ -238478,7 +282208,7 @@ func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStat t.Run("GetUnknown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState{} obj.Unknown = nil // Act & Assert @@ -238487,7 +282217,7 @@ func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStat t.Run("GetUnknown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -238500,8 +282230,8 @@ func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStat t.Run("GetKnown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + obj := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown obj.Known = expected // Act & Assert @@ -238511,7 +282241,7 @@ func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStat t.Run("GetKnown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState{} obj.Known = nil // Act & Assert @@ -238520,7 +282250,7 @@ func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStat t.Run("GetKnown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -238532,9 +282262,9 @@ func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStat } -func TestSettersDocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { +func TestSettersDocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { t.Run("SetHasAnyWeakAnnotations", func(t *testing.T) { - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + obj := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} var fernTestValueHasAnyWeakAnnotations bool obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) assert.Equal(t, fernTestValueHasAnyWeakAnnotations, obj.HasAnyWeakAnnotations) @@ -238543,11 +282273,11 @@ func TestSettersDocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStat } -func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { +func TestGettersDocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + obj := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} var expected bool obj.HasAnyWeakAnnotations = expected @@ -238557,7 +282287,7 @@ func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStat t.Run("GetHasAnyWeakAnnotations_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + var obj *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -238569,11 +282299,11 @@ func TestGettersDocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStat } -func TestSettersMarkExplicitDocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { +func TestSettersMarkExplicitDocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + obj := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} var fernTestValueHasAnyWeakAnnotations bool // Act @@ -238603,9 +282333,9 @@ func TestSettersMarkExplicitDocPagesDelete200ResponseMetaAffectedPagesItemWeakAn } -func TestSettersDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { +func TestSettersDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { t.Run("SetPreviousDocVersion", func(t *testing.T) { - obj := &DocPagesDelete200ResponseMetaCacheDelta{} + obj := &DocPagesMove200ResponseMetaCacheDelta{} var fernTestValuePreviousDocVersion int obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) assert.Equal(t, fernTestValuePreviousDocVersion, obj.PreviousDocVersion) @@ -238613,7 +282343,7 @@ func TestSettersDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetDocVersion", func(t *testing.T) { - obj := &DocPagesDelete200ResponseMetaCacheDelta{} + obj := &DocPagesMove200ResponseMetaCacheDelta{} var fernTestValueDocVersion int obj.SetDocVersion(fernTestValueDocVersion) assert.Equal(t, fernTestValueDocVersion, obj.DocVersion) @@ -238621,7 +282351,7 @@ func TestSettersDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetAnnotationsVersion", func(t *testing.T) { - obj := &DocPagesDelete200ResponseMetaCacheDelta{} + obj := &DocPagesMove200ResponseMetaCacheDelta{} var fernTestValueAnnotationsVersion *int obj.SetAnnotationsVersion(fernTestValueAnnotationsVersion) assert.Equal(t, fernTestValueAnnotationsVersion, obj.AnnotationsVersion) @@ -238629,7 +282359,7 @@ func TestSettersDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetLayerVersion", func(t *testing.T) { - obj := &DocPagesDelete200ResponseMetaCacheDelta{} + obj := &DocPagesMove200ResponseMetaCacheDelta{} var fernTestValueLayerVersion *int obj.SetLayerVersion(fernTestValueLayerVersion) assert.Equal(t, fernTestValueLayerVersion, obj.LayerVersion) @@ -238637,7 +282367,7 @@ func TestSettersDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetWorking", func(t *testing.T) { - obj := &DocPagesDelete200ResponseMetaCacheDelta{} + obj := &DocPagesMove200ResponseMetaCacheDelta{} var fernTestValueWorking *bool obj.SetWorking(fernTestValueWorking) assert.Equal(t, fernTestValueWorking, obj.Working) @@ -238645,8 +282375,8 @@ func TestSettersDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetPages", func(t *testing.T) { - obj := &DocPagesDelete200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocPagesDelete200ResponseMetaCacheDeltaPagesItem + obj := &DocPagesMove200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocPagesMove200ResponseMetaCacheDeltaPagesItem obj.SetPages(fernTestValuePages) assert.Equal(t, fernTestValuePages, obj.Pages) assert.NotNil(t, obj.explicitFields) @@ -238654,11 +282384,11 @@ func TestSettersDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { } -func TestGettersDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { +func TestGettersDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPreviousDocVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDelta{} + obj := &DocPagesMove200ResponseMetaCacheDelta{} var expected int obj.PreviousDocVersion = expected @@ -238668,7 +282398,7 @@ func TestGettersDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaCacheDelta + var obj *DocPagesMove200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -238681,7 +282411,7 @@ func TestGettersDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetDocVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDelta{} + obj := &DocPagesMove200ResponseMetaCacheDelta{} var expected int obj.DocVersion = expected @@ -238691,7 +282421,7 @@ func TestGettersDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaCacheDelta + var obj *DocPagesMove200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -238704,7 +282434,7 @@ func TestGettersDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetAnnotationsVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDelta{} + obj := &DocPagesMove200ResponseMetaCacheDelta{} var expected *int obj.AnnotationsVersion = expected @@ -238715,7 +282445,7 @@ func TestGettersDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetAnnotationsVersion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDelta{} + obj := &DocPagesMove200ResponseMetaCacheDelta{} obj.AnnotationsVersion = nil // Act & Assert @@ -238724,7 +282454,7 @@ func TestGettersDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetAnnotationsVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaCacheDelta + var obj *DocPagesMove200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -238737,7 +282467,7 @@ func TestGettersDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetLayerVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDelta{} + obj := &DocPagesMove200ResponseMetaCacheDelta{} var expected *int obj.LayerVersion = expected @@ -238748,7 +282478,7 @@ func TestGettersDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetLayerVersion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDelta{} + obj := &DocPagesMove200ResponseMetaCacheDelta{} obj.LayerVersion = nil // Act & Assert @@ -238757,7 +282487,7 @@ func TestGettersDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetLayerVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaCacheDelta + var obj *DocPagesMove200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -238770,7 +282500,7 @@ func TestGettersDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetWorking", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDelta{} + obj := &DocPagesMove200ResponseMetaCacheDelta{} var expected *bool obj.Working = expected @@ -238781,7 +282511,7 @@ func TestGettersDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetWorking_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDelta{} + obj := &DocPagesMove200ResponseMetaCacheDelta{} obj.Working = nil // Act & Assert @@ -238790,7 +282520,7 @@ func TestGettersDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetWorking_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaCacheDelta + var obj *DocPagesMove200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -238803,8 +282533,8 @@ func TestGettersDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPages", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDelta{} - var expected []*DocPagesDelete200ResponseMetaCacheDeltaPagesItem + obj := &DocPagesMove200ResponseMetaCacheDelta{} + var expected []*DocPagesMove200ResponseMetaCacheDeltaPagesItem obj.Pages = expected // Act & Assert @@ -238814,7 +282544,7 @@ func TestGettersDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPages_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDelta{} + obj := &DocPagesMove200ResponseMetaCacheDelta{} obj.Pages = nil // Act & Assert @@ -238823,7 +282553,7 @@ func TestGettersDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPages_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaCacheDelta + var obj *DocPagesMove200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -238835,11 +282565,11 @@ func TestGettersDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { } -func TestSettersMarkExplicitDocPagesDelete200ResponseMetaCacheDelta(t *testing.T) { +func TestSettersMarkExplicitDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDelta{} + obj := &DocPagesMove200ResponseMetaCacheDelta{} var fernTestValuePreviousDocVersion int // Act @@ -238870,7 +282600,7 @@ func TestSettersMarkExplicitDocPagesDelete200ResponseMetaCacheDelta(t *testing.T t.Run("SetDocVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDelta{} + obj := &DocPagesMove200ResponseMetaCacheDelta{} var fernTestValueDocVersion int // Act @@ -238901,7 +282631,7 @@ func TestSettersMarkExplicitDocPagesDelete200ResponseMetaCacheDelta(t *testing.T t.Run("SetAnnotationsVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDelta{} + obj := &DocPagesMove200ResponseMetaCacheDelta{} var fernTestValueAnnotationsVersion *int // Act @@ -238932,7 +282662,7 @@ func TestSettersMarkExplicitDocPagesDelete200ResponseMetaCacheDelta(t *testing.T t.Run("SetLayerVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDelta{} + obj := &DocPagesMove200ResponseMetaCacheDelta{} var fernTestValueLayerVersion *int // Act @@ -238963,7 +282693,7 @@ func TestSettersMarkExplicitDocPagesDelete200ResponseMetaCacheDelta(t *testing.T t.Run("SetWorking_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDelta{} + obj := &DocPagesMove200ResponseMetaCacheDelta{} var fernTestValueWorking *bool // Act @@ -238994,8 +282724,8 @@ func TestSettersMarkExplicitDocPagesDelete200ResponseMetaCacheDelta(t *testing.T t.Run("SetPages_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocPagesDelete200ResponseMetaCacheDeltaPagesItem + obj := &DocPagesMove200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocPagesMove200ResponseMetaCacheDeltaPagesItem // Act obj.SetPages(fernTestValuePages) @@ -239024,9 +282754,9 @@ func TestSettersMarkExplicitDocPagesDelete200ResponseMetaCacheDelta(t *testing.T } -func TestSettersDocPagesDelete200ResponseMetaCacheDeltaPagesItem(t *testing.T) { +func TestSettersDocPagesMove200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItem{} + obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItem{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -239034,8 +282764,8 @@ func TestSettersDocPagesDelete200ResponseMetaCacheDeltaPagesItem(t *testing.T) { }) t.Run("SetCache", func(t *testing.T) { - obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache + obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache obj.SetCache(fernTestValueCache) assert.Equal(t, fernTestValueCache, obj.Cache) assert.NotNil(t, obj.explicitFields) @@ -239043,11 +282773,11 @@ func TestSettersDocPagesDelete200ResponseMetaCacheDeltaPagesItem(t *testing.T) { } -func TestGettersDocPagesDelete200ResponseMetaCacheDeltaPagesItem(t *testing.T) { +func TestGettersDocPagesMove200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItem{} + obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItem{} var expected int obj.PageObjectNumber = expected @@ -239057,7 +282787,7 @@ func TestGettersDocPagesDelete200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaCacheDeltaPagesItem + var obj *DocPagesMove200ResponseMetaCacheDeltaPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -239070,8 +282800,8 @@ func TestGettersDocPagesDelete200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("GetCache", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItem{} - var expected *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache + obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItem{} + var expected *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache obj.Cache = expected // Act & Assert @@ -239081,7 +282811,7 @@ func TestGettersDocPagesDelete200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("GetCache_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItem{} + obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItem{} obj.Cache = nil // Act & Assert @@ -239090,7 +282820,7 @@ func TestGettersDocPagesDelete200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("GetCache_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesDelete200ResponseMetaCacheDeltaPagesItem + var obj *DocPagesMove200ResponseMetaCacheDeltaPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -239102,11 +282832,11 @@ func TestGettersDocPagesDelete200ResponseMetaCacheDeltaPagesItem(t *testing.T) { } -func TestSettersMarkExplicitDocPagesDelete200ResponseMetaCacheDeltaPagesItem(t *testing.T) { +func TestSettersMarkExplicitDocPagesMove200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItem{} + obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItem{} var fernTestValuePageObjectNumber int // Act @@ -239137,8 +282867,8 @@ func TestSettersMarkExplicitDocPagesDelete200ResponseMetaCacheDeltaPagesItem(t * t.Run("SetCache_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache + obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache // Act obj.SetCache(fernTestValueCache) @@ -239167,692 +282897,158 @@ func TestSettersMarkExplicitDocPagesDelete200ResponseMetaCacheDeltaPagesItem(t * } -func TestSettersDocPagesDelete200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("SetContentVersion", func(t *testing.T) { - obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueContentVersion int - obj.SetContentVersion(fernTestValueContentVersion) - assert.Equal(t, fernTestValueContentVersion, obj.ContentVersion) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAnnotationVersion", func(t *testing.T) { - obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueAnnotationVersion int - obj.SetAnnotationVersion(fernTestValueAnnotationVersion) - assert.Equal(t, fernTestValueAnnotationVersion, obj.AnnotationVersion) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocPagesDelete200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("GetContentVersion", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache{} - var expected int - obj.ContentVersion = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetContentVersion(), "getter should return the property value") - }) - - t.Run("GetContentVersion_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetContentVersion() // Should return zero value - }) - - t.Run("GetAnnotationVersion", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache{} - var expected int - obj.AnnotationVersion = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAnnotationVersion(), "getter should return the property value") - }) - - t.Run("GetAnnotationVersion_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAnnotationVersion() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocPagesDelete200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("SetContentVersion_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueContentVersion int - - // Act - obj.SetContentVersion(fernTestValueContentVersion) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetAnnotationVersion_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesDelete200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueAnnotationVersion int - - // Act - obj.SetAnnotationVersion(fernTestValueAnnotationVersion) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocPagesDelete400Response(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocPagesDelete400Response{} - var fernTestValueName DocPagesDelete400ResponseName - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCode", func(t *testing.T) { - obj := &DocPagesDelete400Response{} - var fernTestValueCode DocPagesDelete400ResponseCode - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetMessage", func(t *testing.T) { - obj := &DocPagesDelete400Response{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetDetails", func(t *testing.T) { - obj := &DocPagesDelete400Response{} - var fernTestValueDetails map[string]any - obj.SetDetails(fernTestValueDetails) - assert.Equal(t, fernTestValueDetails, obj.Details) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocPagesDelete400Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesDelete400Response{} - var expected DocPagesDelete400ResponseName - obj.Name = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") - }) - - t.Run("GetName_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesDelete400Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetName() // Should return zero value - }) - - t.Run("GetCode", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesDelete400Response{} - var expected DocPagesDelete400ResponseCode - obj.Code = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") - }) - - t.Run("GetCode_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesDelete400Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetCode() // Should return zero value - }) - - t.Run("GetMessage", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesDelete400Response{} - var expected string - obj.Message = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") - }) - - t.Run("GetMessage_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesDelete400Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetMessage() // Should return zero value - }) - - t.Run("GetDetails", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesDelete400Response{} - var expected map[string]any - obj.Details = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") - }) - - t.Run("GetDetails_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesDelete400Response{} - obj.Details = nil - - // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") - }) - - t.Run("GetDetails_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesDelete400Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetDetails() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocPagesDelete400Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesDelete400Response{} - var fernTestValueName DocPagesDelete400ResponseName - - // Act - obj.SetName(fernTestValueName) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetCode_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesDelete400Response{} - var fernTestValueCode DocPagesDelete400ResponseCode - - // Act - obj.SetCode(fernTestValueCode) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetMessage_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesDelete400Response{} - var fernTestValueMessage string - - // Act - obj.SetMessage(fernTestValueMessage) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetDetails_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesDelete400Response{} - var fernTestValueDetails map[string]any - - // Act - obj.SetDetails(fernTestValueDetails) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocPagesDelete404Response(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocPagesDelete404Response{} - var fernTestValueName DocPagesDelete404ResponseName - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCode", func(t *testing.T) { - obj := &DocPagesDelete404Response{} - var fernTestValueCode DocPagesDelete404ResponseCode - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetMessage", func(t *testing.T) { - obj := &DocPagesDelete404Response{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetDetails", func(t *testing.T) { - obj := &DocPagesDelete404Response{} - var fernTestValueDetails map[string]any - obj.SetDetails(fernTestValueDetails) - assert.Equal(t, fernTestValueDetails, obj.Details) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocPagesDelete404Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesDelete404Response{} - var expected DocPagesDelete404ResponseName - obj.Name = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") - }) - - t.Run("GetName_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesDelete404Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetName() // Should return zero value - }) - - t.Run("GetCode", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesDelete404Response{} - var expected DocPagesDelete404ResponseCode - obj.Code = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") - }) - - t.Run("GetCode_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesDelete404Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetCode() // Should return zero value - }) - - t.Run("GetMessage", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesDelete404Response{} - var expected string - obj.Message = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") - }) - - t.Run("GetMessage_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesDelete404Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetMessage() // Should return zero value - }) - - t.Run("GetDetails", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesDelete404Response{} - var expected map[string]any - obj.Details = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") - }) - - t.Run("GetDetails_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesDelete404Response{} - obj.Details = nil - - // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") - }) - - t.Run("GetDetails_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesDelete404Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetDetails() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocPagesDelete404Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesDelete404Response{} - var fernTestValueName DocPagesDelete404ResponseName - - // Act - obj.SetName(fernTestValueName) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetCode_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesDelete404Response{} - var fernTestValueCode DocPagesDelete404ResponseCode - - // Act - obj.SetCode(fernTestValueCode) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetMessage_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesDelete404Response{} - var fernTestValueMessage string - - // Act - obj.SetMessage(fernTestValueMessage) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetDetails_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesDelete404Response{} - var fernTestValueDetails map[string]any - - // Act - obj.SetDetails(fernTestValueDetails) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocPagesExtract400Response(t *testing.T) { +func TestSettersDocPagesMove200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("SetContentVersion", func(t *testing.T) { + obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItemCache{} + var fernTestValueContentVersion int + obj.SetContentVersion(fernTestValueContentVersion) + assert.Equal(t, fernTestValueContentVersion, obj.ContentVersion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetAnnotationVersion", func(t *testing.T) { + obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItemCache{} + var fernTestValueAnnotationVersion int + obj.SetAnnotationVersion(fernTestValueAnnotationVersion) + assert.Equal(t, fernTestValueAnnotationVersion, obj.AnnotationVersion) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesMove200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("GetContentVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItemCache{} + var expected int + obj.ContentVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetContentVersion(), "getter should return the property value") + }) + + t.Run("GetContentVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetContentVersion() // Should return zero value + }) + + t.Run("GetAnnotationVersion", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItemCache{} + var expected int + obj.AnnotationVersion = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetAnnotationVersion(), "getter should return the property value") + }) + + t.Run("GetAnnotationVersion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetAnnotationVersion() // Should return zero value + }) + +} + +func TestSettersMarkExplicitDocPagesMove200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("SetContentVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItemCache{} + var fernTestValueContentVersion int + + // Act + obj.SetContentVersion(fernTestValueContentVersion) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetAnnotationVersion_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItemCache{} + var fernTestValueAnnotationVersion int + + // Act + obj.SetAnnotationVersion(fernTestValueAnnotationVersion) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + +} + +func TestSettersDocPagesMove400Response(t *testing.T) { t.Run("SetName", func(t *testing.T) { - obj := &DocPagesExtract400Response{} - var fernTestValueName DocPagesExtract400ResponseName + obj := &DocPagesMove400Response{} + var fernTestValueName DocPagesMove400ResponseName obj.SetName(fernTestValueName) assert.Equal(t, fernTestValueName, obj.Name) assert.NotNil(t, obj.explicitFields) }) t.Run("SetCode", func(t *testing.T) { - obj := &DocPagesExtract400Response{} - var fernTestValueCode DocPagesExtract400ResponseCode + obj := &DocPagesMove400Response{} + var fernTestValueCode DocPagesMove400ResponseCode obj.SetCode(fernTestValueCode) assert.Equal(t, fernTestValueCode, obj.Code) assert.NotNil(t, obj.explicitFields) }) t.Run("SetMessage", func(t *testing.T) { - obj := &DocPagesExtract400Response{} + obj := &DocPagesMove400Response{} var fernTestValueMessage string obj.SetMessage(fernTestValueMessage) assert.Equal(t, fernTestValueMessage, obj.Message) @@ -239860,7 +283056,7 @@ func TestSettersDocPagesExtract400Response(t *testing.T) { }) t.Run("SetDetails", func(t *testing.T) { - obj := &DocPagesExtract400Response{} + obj := &DocPagesMove400Response{} var fernTestValueDetails map[string]any obj.SetDetails(fernTestValueDetails) assert.Equal(t, fernTestValueDetails, obj.Details) @@ -239869,12 +283065,12 @@ func TestSettersDocPagesExtract400Response(t *testing.T) { } -func TestGettersDocPagesExtract400Response(t *testing.T) { +func TestGettersDocPagesMove400Response(t *testing.T) { t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesExtract400Response{} - var expected DocPagesExtract400ResponseName + obj := &DocPagesMove400Response{} + var expected DocPagesMove400ResponseName obj.Name = expected // Act & Assert @@ -239883,7 +283079,7 @@ func TestGettersDocPagesExtract400Response(t *testing.T) { t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesExtract400Response + var obj *DocPagesMove400Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -239896,8 +283092,8 @@ func TestGettersDocPagesExtract400Response(t *testing.T) { t.Run("GetCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesExtract400Response{} - var expected DocPagesExtract400ResponseCode + obj := &DocPagesMove400Response{} + var expected DocPagesMove400ResponseCode obj.Code = expected // Act & Assert @@ -239906,7 +283102,7 @@ func TestGettersDocPagesExtract400Response(t *testing.T) { t.Run("GetCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesExtract400Response + var obj *DocPagesMove400Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -239919,7 +283115,7 @@ func TestGettersDocPagesExtract400Response(t *testing.T) { t.Run("GetMessage", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesExtract400Response{} + obj := &DocPagesMove400Response{} var expected string obj.Message = expected @@ -239929,7 +283125,7 @@ func TestGettersDocPagesExtract400Response(t *testing.T) { t.Run("GetMessage_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesExtract400Response + var obj *DocPagesMove400Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -239942,7 +283138,7 @@ func TestGettersDocPagesExtract400Response(t *testing.T) { t.Run("GetDetails", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesExtract400Response{} + obj := &DocPagesMove400Response{} var expected map[string]any obj.Details = expected @@ -239953,7 +283149,7 @@ func TestGettersDocPagesExtract400Response(t *testing.T) { t.Run("GetDetails_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesExtract400Response{} + obj := &DocPagesMove400Response{} obj.Details = nil // Act & Assert @@ -239962,7 +283158,7 @@ func TestGettersDocPagesExtract400Response(t *testing.T) { t.Run("GetDetails_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesExtract400Response + var obj *DocPagesMove400Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -239974,12 +283170,12 @@ func TestGettersDocPagesExtract400Response(t *testing.T) { } -func TestSettersMarkExplicitDocPagesExtract400Response(t *testing.T) { +func TestSettersMarkExplicitDocPagesMove400Response(t *testing.T) { t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesExtract400Response{} - var fernTestValueName DocPagesExtract400ResponseName + obj := &DocPagesMove400Response{} + var fernTestValueName DocPagesMove400ResponseName // Act obj.SetName(fernTestValueName) @@ -240009,8 +283205,8 @@ func TestSettersMarkExplicitDocPagesExtract400Response(t *testing.T) { t.Run("SetCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesExtract400Response{} - var fernTestValueCode DocPagesExtract400ResponseCode + obj := &DocPagesMove400Response{} + var fernTestValueCode DocPagesMove400ResponseCode // Act obj.SetCode(fernTestValueCode) @@ -240040,7 +283236,7 @@ func TestSettersMarkExplicitDocPagesExtract400Response(t *testing.T) { t.Run("SetMessage_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesExtract400Response{} + obj := &DocPagesMove400Response{} var fernTestValueMessage string // Act @@ -240071,7 +283267,7 @@ func TestSettersMarkExplicitDocPagesExtract400Response(t *testing.T) { t.Run("SetDetails_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesExtract400Response{} + obj := &DocPagesMove400Response{} var fernTestValueDetails map[string]any // Act @@ -240101,25 +283297,25 @@ func TestSettersMarkExplicitDocPagesExtract400Response(t *testing.T) { } -func TestSettersDocPagesExtract404Response(t *testing.T) { +func TestSettersDocPagesMove404Response(t *testing.T) { t.Run("SetName", func(t *testing.T) { - obj := &DocPagesExtract404Response{} - var fernTestValueName DocPagesExtract404ResponseName + obj := &DocPagesMove404Response{} + var fernTestValueName DocPagesMove404ResponseName obj.SetName(fernTestValueName) assert.Equal(t, fernTestValueName, obj.Name) assert.NotNil(t, obj.explicitFields) }) t.Run("SetCode", func(t *testing.T) { - obj := &DocPagesExtract404Response{} - var fernTestValueCode DocPagesExtract404ResponseCode + obj := &DocPagesMove404Response{} + var fernTestValueCode DocPagesMove404ResponseCode obj.SetCode(fernTestValueCode) assert.Equal(t, fernTestValueCode, obj.Code) assert.NotNil(t, obj.explicitFields) }) t.Run("SetMessage", func(t *testing.T) { - obj := &DocPagesExtract404Response{} + obj := &DocPagesMove404Response{} var fernTestValueMessage string obj.SetMessage(fernTestValueMessage) assert.Equal(t, fernTestValueMessage, obj.Message) @@ -240127,7 +283323,7 @@ func TestSettersDocPagesExtract404Response(t *testing.T) { }) t.Run("SetDetails", func(t *testing.T) { - obj := &DocPagesExtract404Response{} + obj := &DocPagesMove404Response{} var fernTestValueDetails map[string]any obj.SetDetails(fernTestValueDetails) assert.Equal(t, fernTestValueDetails, obj.Details) @@ -240136,12 +283332,12 @@ func TestSettersDocPagesExtract404Response(t *testing.T) { } -func TestGettersDocPagesExtract404Response(t *testing.T) { +func TestGettersDocPagesMove404Response(t *testing.T) { t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesExtract404Response{} - var expected DocPagesExtract404ResponseName + obj := &DocPagesMove404Response{} + var expected DocPagesMove404ResponseName obj.Name = expected // Act & Assert @@ -240150,7 +283346,7 @@ func TestGettersDocPagesExtract404Response(t *testing.T) { t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesExtract404Response + var obj *DocPagesMove404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -240163,8 +283359,8 @@ func TestGettersDocPagesExtract404Response(t *testing.T) { t.Run("GetCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesExtract404Response{} - var expected DocPagesExtract404ResponseCode + obj := &DocPagesMove404Response{} + var expected DocPagesMove404ResponseCode obj.Code = expected // Act & Assert @@ -240173,7 +283369,7 @@ func TestGettersDocPagesExtract404Response(t *testing.T) { t.Run("GetCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesExtract404Response + var obj *DocPagesMove404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -240186,7 +283382,7 @@ func TestGettersDocPagesExtract404Response(t *testing.T) { t.Run("GetMessage", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesExtract404Response{} + obj := &DocPagesMove404Response{} var expected string obj.Message = expected @@ -240196,7 +283392,7 @@ func TestGettersDocPagesExtract404Response(t *testing.T) { t.Run("GetMessage_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesExtract404Response + var obj *DocPagesMove404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -240209,7 +283405,7 @@ func TestGettersDocPagesExtract404Response(t *testing.T) { t.Run("GetDetails", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesExtract404Response{} + obj := &DocPagesMove404Response{} var expected map[string]any obj.Details = expected @@ -240220,7 +283416,7 @@ func TestGettersDocPagesExtract404Response(t *testing.T) { t.Run("GetDetails_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesExtract404Response{} + obj := &DocPagesMove404Response{} obj.Details = nil // Act & Assert @@ -240229,7 +283425,7 @@ func TestGettersDocPagesExtract404Response(t *testing.T) { t.Run("GetDetails_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesExtract404Response + var obj *DocPagesMove404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -240241,12 +283437,12 @@ func TestGettersDocPagesExtract404Response(t *testing.T) { } -func TestSettersMarkExplicitDocPagesExtract404Response(t *testing.T) { +func TestSettersMarkExplicitDocPagesMove404Response(t *testing.T) { t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesExtract404Response{} - var fernTestValueName DocPagesExtract404ResponseName + obj := &DocPagesMove404Response{} + var fernTestValueName DocPagesMove404ResponseName // Act obj.SetName(fernTestValueName) @@ -240276,8 +283472,8 @@ func TestSettersMarkExplicitDocPagesExtract404Response(t *testing.T) { t.Run("SetCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesExtract404Response{} - var fernTestValueCode DocPagesExtract404ResponseCode + obj := &DocPagesMove404Response{} + var fernTestValueCode DocPagesMove404ResponseCode // Act obj.SetCode(fernTestValueCode) @@ -240307,7 +283503,7 @@ func TestSettersMarkExplicitDocPagesExtract404Response(t *testing.T) { t.Run("SetMessage_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesExtract404Response{} + obj := &DocPagesMove404Response{} var fernTestValueMessage string // Act @@ -240338,7 +283534,7 @@ func TestSettersMarkExplicitDocPagesExtract404Response(t *testing.T) { t.Run("SetDetails_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesExtract404Response{} + obj := &DocPagesMove404Response{} var fernTestValueDetails map[string]any // Act @@ -240368,10 +283564,10 @@ func TestSettersMarkExplicitDocPagesExtract404Response(t *testing.T) { } -func TestSettersDocPagesFlatten200Response(t *testing.T) { +func TestSettersDocPagesRemoveName200Response(t *testing.T) { t.Run("SetMeta", func(t *testing.T) { - obj := &DocPagesFlatten200Response{} - var fernTestValueMeta *DocPagesFlatten200ResponseMeta + obj := &DocPagesRemoveName200Response{} + var fernTestValueMeta *DocPagesRemoveName200ResponseMeta obj.SetMeta(fernTestValueMeta) assert.Equal(t, fernTestValueMeta, obj.Meta) assert.NotNil(t, obj.explicitFields) @@ -240379,12 +283575,12 @@ func TestSettersDocPagesFlatten200Response(t *testing.T) { } -func TestGettersDocPagesFlatten200Response(t *testing.T) { +func TestGettersDocPagesRemoveName200Response(t *testing.T) { t.Run("GetMeta", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200Response{} - var expected *DocPagesFlatten200ResponseMeta + obj := &DocPagesRemoveName200Response{} + var expected *DocPagesRemoveName200ResponseMeta obj.Meta = expected // Act & Assert @@ -240394,7 +283590,7 @@ func TestGettersDocPagesFlatten200Response(t *testing.T) { t.Run("GetMeta_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200Response{} + obj := &DocPagesRemoveName200Response{} obj.Meta = nil // Act & Assert @@ -240403,7 +283599,7 @@ func TestGettersDocPagesFlatten200Response(t *testing.T) { t.Run("GetMeta_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200Response + var obj *DocPagesRemoveName200Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -240415,12 +283611,12 @@ func TestGettersDocPagesFlatten200Response(t *testing.T) { } -func TestSettersMarkExplicitDocPagesFlatten200Response(t *testing.T) { +func TestSettersMarkExplicitDocPagesRemoveName200Response(t *testing.T) { t.Run("SetMeta_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200Response{} - var fernTestValueMeta *DocPagesFlatten200ResponseMeta + obj := &DocPagesRemoveName200Response{} + var fernTestValueMeta *DocPagesRemoveName200ResponseMeta // Act obj.SetMeta(fernTestValueMeta) @@ -240449,18 +283645,18 @@ func TestSettersMarkExplicitDocPagesFlatten200Response(t *testing.T) { } -func TestSettersDocPagesFlatten200ResponseMeta(t *testing.T) { +func TestSettersDocPagesRemoveName200ResponseMeta(t *testing.T) { t.Run("SetAffectedPages", func(t *testing.T) { - obj := &DocPagesFlatten200ResponseMeta{} - var fernTestValueAffectedPages []*DocPagesFlatten200ResponseMetaAffectedPagesItem + obj := &DocPagesRemoveName200ResponseMeta{} + var fernTestValueAffectedPages []*DocPagesRemoveName200ResponseMetaAffectedPagesItem obj.SetAffectedPages(fernTestValueAffectedPages) assert.Equal(t, fernTestValueAffectedPages, obj.AffectedPages) assert.NotNil(t, obj.explicitFields) }) t.Run("SetCacheDelta", func(t *testing.T) { - obj := &DocPagesFlatten200ResponseMeta{} - var fernTestValueCacheDelta *DocPagesFlatten200ResponseMetaCacheDelta + obj := &DocPagesRemoveName200ResponseMeta{} + var fernTestValueCacheDelta *DocPagesRemoveName200ResponseMetaCacheDelta obj.SetCacheDelta(fernTestValueCacheDelta) assert.Equal(t, fernTestValueCacheDelta, obj.CacheDelta) assert.NotNil(t, obj.explicitFields) @@ -240468,12 +283664,12 @@ func TestSettersDocPagesFlatten200ResponseMeta(t *testing.T) { } -func TestGettersDocPagesFlatten200ResponseMeta(t *testing.T) { +func TestGettersDocPagesRemoveName200ResponseMeta(t *testing.T) { t.Run("GetAffectedPages", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMeta{} - var expected []*DocPagesFlatten200ResponseMetaAffectedPagesItem + obj := &DocPagesRemoveName200ResponseMeta{} + var expected []*DocPagesRemoveName200ResponseMetaAffectedPagesItem obj.AffectedPages = expected // Act & Assert @@ -240483,7 +283679,7 @@ func TestGettersDocPagesFlatten200ResponseMeta(t *testing.T) { t.Run("GetAffectedPages_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMeta{} + obj := &DocPagesRemoveName200ResponseMeta{} obj.AffectedPages = nil // Act & Assert @@ -240492,7 +283688,7 @@ func TestGettersDocPagesFlatten200ResponseMeta(t *testing.T) { t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMeta + var obj *DocPagesRemoveName200ResponseMeta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -240505,8 +283701,8 @@ func TestGettersDocPagesFlatten200ResponseMeta(t *testing.T) { t.Run("GetCacheDelta", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMeta{} - var expected *DocPagesFlatten200ResponseMetaCacheDelta + obj := &DocPagesRemoveName200ResponseMeta{} + var expected *DocPagesRemoveName200ResponseMetaCacheDelta obj.CacheDelta = expected // Act & Assert @@ -240516,7 +283712,7 @@ func TestGettersDocPagesFlatten200ResponseMeta(t *testing.T) { t.Run("GetCacheDelta_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMeta{} + obj := &DocPagesRemoveName200ResponseMeta{} obj.CacheDelta = nil // Act & Assert @@ -240525,7 +283721,7 @@ func TestGettersDocPagesFlatten200ResponseMeta(t *testing.T) { t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMeta + var obj *DocPagesRemoveName200ResponseMeta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -240537,12 +283733,12 @@ func TestGettersDocPagesFlatten200ResponseMeta(t *testing.T) { } -func TestSettersMarkExplicitDocPagesFlatten200ResponseMeta(t *testing.T) { +func TestSettersMarkExplicitDocPagesRemoveName200ResponseMeta(t *testing.T) { t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMeta{} - var fernTestValueAffectedPages []*DocPagesFlatten200ResponseMetaAffectedPagesItem + obj := &DocPagesRemoveName200ResponseMeta{} + var fernTestValueAffectedPages []*DocPagesRemoveName200ResponseMetaAffectedPagesItem // Act obj.SetAffectedPages(fernTestValueAffectedPages) @@ -240572,8 +283768,8 @@ func TestSettersMarkExplicitDocPagesFlatten200ResponseMeta(t *testing.T) { t.Run("SetCacheDelta_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMeta{} - var fernTestValueCacheDelta *DocPagesFlatten200ResponseMetaCacheDelta + obj := &DocPagesRemoveName200ResponseMeta{} + var fernTestValueCacheDelta *DocPagesRemoveName200ResponseMetaCacheDelta // Act obj.SetCacheDelta(fernTestValueCacheDelta) @@ -240602,9 +283798,9 @@ func TestSettersMarkExplicitDocPagesFlatten200ResponseMeta(t *testing.T) { } -func TestSettersDocPagesFlatten200ResponseMetaAffectedPagesItem(t *testing.T) { +func TestSettersDocPagesRemoveName200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} + obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItem{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -240612,16 +283808,16 @@ func TestSettersDocPagesFlatten200ResponseMetaAffectedPagesItem(t *testing.T) { }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision + obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) }) t.Run("SetWeakAnnotationState", func(t *testing.T) { - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) assert.NotNil(t, obj.explicitFields) @@ -240629,11 +283825,11 @@ func TestSettersDocPagesFlatten200ResponseMetaAffectedPagesItem(t *testing.T) { } -func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItem(t *testing.T) { +func TestGettersDocPagesRemoveName200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} + obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItem{} var expected int obj.PageObjectNumber = expected @@ -240643,7 +283839,7 @@ func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMetaAffectedPagesItem + var obj *DocPagesRemoveName200ResponseMetaAffectedPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -240656,8 +283852,8 @@ func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} - var expected *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision + obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItem{} + var expected *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision obj.Revision = expected // Act & Assert @@ -240667,7 +283863,7 @@ func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} + obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItem{} obj.Revision = nil // Act & Assert @@ -240676,7 +283872,7 @@ func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMetaAffectedPagesItem + var obj *DocPagesRemoveName200ResponseMetaAffectedPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -240689,8 +283885,8 @@ func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetWeakAnnotationState", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} - var expected *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItem{} + var expected *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState obj.WeakAnnotationState = expected // Act & Assert @@ -240700,7 +283896,7 @@ func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetWeakAnnotationState_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} + obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItem{} obj.WeakAnnotationState = nil // Act & Assert @@ -240709,7 +283905,7 @@ func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetWeakAnnotationState_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMetaAffectedPagesItem + var obj *DocPagesRemoveName200ResponseMetaAffectedPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -240721,11 +283917,11 @@ func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItem(t *testing.T) { } -func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaAffectedPagesItem(t *testing.T) { +func TestSettersMarkExplicitDocPagesRemoveName200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} + obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItem{} var fernTestValuePageObjectNumber int // Act @@ -240756,8 +283952,8 @@ func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaAffectedPagesItem(t *t t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision + obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision // Act obj.SetRevision(fernTestValueRevision) @@ -240787,8 +283983,8 @@ func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaAffectedPagesItem(t *t t.Run("SetWeakAnnotationState_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState // Act obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) @@ -240817,9 +284013,9 @@ func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaAffectedPagesItem(t *t } -func TestSettersDocPagesFlatten200ResponseMetaAffectedPagesItemRevision(t *testing.T) { +func TestSettersDocPagesRemoveName200ResponseMetaAffectedPagesItemRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -240827,7 +284023,7 @@ func TestSettersDocPagesFlatten200ResponseMetaAffectedPagesItemRevision(t *testi }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -240835,7 +284031,7 @@ func TestSettersDocPagesFlatten200ResponseMetaAffectedPagesItemRevision(t *testi }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -240844,11 +284040,11 @@ func TestSettersDocPagesFlatten200ResponseMetaAffectedPagesItemRevision(t *testi } -func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItemRevision(t *testing.T) { +func TestGettersDocPagesRemoveName200ResponseMetaAffectedPagesItemRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision{} var expected string obj.DocSessionID = expected @@ -240858,7 +284054,7 @@ func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItemRevision(t *testi t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision + var obj *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -240871,7 +284067,7 @@ func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItemRevision(t *testi t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision{} var expected int obj.PageObjectNumber = expected @@ -240881,7 +284077,7 @@ func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItemRevision(t *testi t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision + var obj *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -240894,7 +284090,7 @@ func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItemRevision(t *testi t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision{} var expected int obj.Generation = expected @@ -240904,7 +284100,7 @@ func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItemRevision(t *testi t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMetaAffectedPagesItemRevision + var obj *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -240916,11 +284112,11 @@ func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItemRevision(t *testi } -func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaAffectedPagesItemRevision(t *testing.T) { +func TestSettersMarkExplicitDocPagesRemoveName200ResponseMetaAffectedPagesItemRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision{} var fernTestValueDocSessionID string // Act @@ -240951,7 +284147,7 @@ func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaAffectedPagesItemRevis t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision{} var fernTestValuePageObjectNumber int // Act @@ -240982,7 +284178,7 @@ func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaAffectedPagesItemRevis t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision{} var fernTestValueGeneration int // Act @@ -241012,11 +284208,11 @@ func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaAffectedPagesItemRevis } -func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { +func TestGettersDocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState{} var expected string obj.Kind = expected @@ -241026,7 +284222,7 @@ func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationSta t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -241039,8 +284235,8 @@ func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationSta t.Run("GetUnknown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown obj.Unknown = expected // Act & Assert @@ -241050,7 +284246,7 @@ func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationSta t.Run("GetUnknown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState{} obj.Unknown = nil // Act & Assert @@ -241059,7 +284255,7 @@ func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationSta t.Run("GetUnknown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -241072,8 +284268,8 @@ func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationSta t.Run("GetKnown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown obj.Known = expected // Act & Assert @@ -241083,7 +284279,7 @@ func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationSta t.Run("GetKnown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState{} obj.Known = nil // Act & Assert @@ -241092,7 +284288,7 @@ func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationSta t.Run("GetKnown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -241104,9 +284300,9 @@ func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationSta } -func TestSettersDocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { +func TestSettersDocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { t.Run("SetHasAnyWeakAnnotations", func(t *testing.T) { - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} var fernTestValueHasAnyWeakAnnotations bool obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) assert.Equal(t, fernTestValueHasAnyWeakAnnotations, obj.HasAnyWeakAnnotations) @@ -241115,11 +284311,11 @@ func TestSettersDocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationSta } -func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { +func TestGettersDocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} var expected bool obj.HasAnyWeakAnnotations = expected @@ -241129,7 +284325,7 @@ func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationSta t.Run("GetHasAnyWeakAnnotations_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + var obj *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -241141,11 +284337,11 @@ func TestGettersDocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationSta } -func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { +func TestSettersMarkExplicitDocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} var fernTestValueHasAnyWeakAnnotations bool // Act @@ -241175,9 +284371,9 @@ func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaAffectedPagesItemWeakA } -func TestSettersDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { +func TestSettersDocPagesRemoveName200ResponseMetaCacheDelta(t *testing.T) { t.Run("SetPreviousDocVersion", func(t *testing.T) { - obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} var fernTestValuePreviousDocVersion int obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) assert.Equal(t, fernTestValuePreviousDocVersion, obj.PreviousDocVersion) @@ -241185,7 +284381,7 @@ func TestSettersDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetDocVersion", func(t *testing.T) { - obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} var fernTestValueDocVersion int obj.SetDocVersion(fernTestValueDocVersion) assert.Equal(t, fernTestValueDocVersion, obj.DocVersion) @@ -241193,7 +284389,7 @@ func TestSettersDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetAnnotationsVersion", func(t *testing.T) { - obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} var fernTestValueAnnotationsVersion *int obj.SetAnnotationsVersion(fernTestValueAnnotationsVersion) assert.Equal(t, fernTestValueAnnotationsVersion, obj.AnnotationsVersion) @@ -241201,7 +284397,7 @@ func TestSettersDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetLayerVersion", func(t *testing.T) { - obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} var fernTestValueLayerVersion *int obj.SetLayerVersion(fernTestValueLayerVersion) assert.Equal(t, fernTestValueLayerVersion, obj.LayerVersion) @@ -241209,7 +284405,7 @@ func TestSettersDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetWorking", func(t *testing.T) { - obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} var fernTestValueWorking *bool obj.SetWorking(fernTestValueWorking) assert.Equal(t, fernTestValueWorking, obj.Working) @@ -241217,8 +284413,8 @@ func TestSettersDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetPages", func(t *testing.T) { - obj := &DocPagesFlatten200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocPagesFlatten200ResponseMetaCacheDeltaPagesItem + obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem obj.SetPages(fernTestValuePages) assert.Equal(t, fernTestValuePages, obj.Pages) assert.NotNil(t, obj.explicitFields) @@ -241226,11 +284422,11 @@ func TestSettersDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { } -func TestGettersDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { +func TestGettersDocPagesRemoveName200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPreviousDocVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} var expected int obj.PreviousDocVersion = expected @@ -241240,7 +284436,7 @@ func TestGettersDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMetaCacheDelta + var obj *DocPagesRemoveName200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -241253,7 +284449,7 @@ func TestGettersDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetDocVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} var expected int obj.DocVersion = expected @@ -241263,7 +284459,7 @@ func TestGettersDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMetaCacheDelta + var obj *DocPagesRemoveName200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -241276,7 +284472,7 @@ func TestGettersDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetAnnotationsVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} var expected *int obj.AnnotationsVersion = expected @@ -241287,7 +284483,7 @@ func TestGettersDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetAnnotationsVersion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} obj.AnnotationsVersion = nil // Act & Assert @@ -241296,7 +284492,7 @@ func TestGettersDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetAnnotationsVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMetaCacheDelta + var obj *DocPagesRemoveName200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -241309,7 +284505,7 @@ func TestGettersDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetLayerVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} var expected *int obj.LayerVersion = expected @@ -241320,7 +284516,7 @@ func TestGettersDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetLayerVersion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} obj.LayerVersion = nil // Act & Assert @@ -241329,7 +284525,7 @@ func TestGettersDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetLayerVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMetaCacheDelta + var obj *DocPagesRemoveName200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -241342,7 +284538,7 @@ func TestGettersDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetWorking", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} var expected *bool obj.Working = expected @@ -241353,7 +284549,7 @@ func TestGettersDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetWorking_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} obj.Working = nil // Act & Assert @@ -241362,7 +284558,7 @@ func TestGettersDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetWorking_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMetaCacheDelta + var obj *DocPagesRemoveName200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -241375,8 +284571,8 @@ func TestGettersDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPages", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDelta{} - var expected []*DocPagesFlatten200ResponseMetaCacheDeltaPagesItem + obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} + var expected []*DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem obj.Pages = expected // Act & Assert @@ -241386,7 +284582,7 @@ func TestGettersDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPages_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} obj.Pages = nil // Act & Assert @@ -241395,7 +284591,7 @@ func TestGettersDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPages_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMetaCacheDelta + var obj *DocPagesRemoveName200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -241407,11 +284603,11 @@ func TestGettersDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { } -func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaCacheDelta(t *testing.T) { +func TestSettersMarkExplicitDocPagesRemoveName200ResponseMetaCacheDelta(t *testing.T) { t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} var fernTestValuePreviousDocVersion int // Act @@ -241442,7 +284638,7 @@ func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaCacheDelta(t *testing. t.Run("SetDocVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} var fernTestValueDocVersion int // Act @@ -241473,7 +284669,7 @@ func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaCacheDelta(t *testing. t.Run("SetAnnotationsVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} var fernTestValueAnnotationsVersion *int // Act @@ -241504,7 +284700,7 @@ func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaCacheDelta(t *testing. t.Run("SetLayerVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} var fernTestValueLayerVersion *int // Act @@ -241535,7 +284731,7 @@ func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaCacheDelta(t *testing. t.Run("SetWorking_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDelta{} + obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} var fernTestValueWorking *bool // Act @@ -241566,8 +284762,8 @@ func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaCacheDelta(t *testing. t.Run("SetPages_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocPagesFlatten200ResponseMetaCacheDeltaPagesItem + obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem // Act obj.SetPages(fernTestValuePages) @@ -241596,9 +284792,9 @@ func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaCacheDelta(t *testing. } -func TestSettersDocPagesFlatten200ResponseMetaCacheDeltaPagesItem(t *testing.T) { +func TestSettersDocPagesRemoveName200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItem{} + obj := &DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -241606,8 +284802,8 @@ func TestSettersDocPagesFlatten200ResponseMetaCacheDeltaPagesItem(t *testing.T) }) t.Run("SetCache", func(t *testing.T) { - obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache + obj := &DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache obj.SetCache(fernTestValueCache) assert.Equal(t, fernTestValueCache, obj.Cache) assert.NotNil(t, obj.explicitFields) @@ -241615,11 +284811,11 @@ func TestSettersDocPagesFlatten200ResponseMetaCacheDeltaPagesItem(t *testing.T) } -func TestGettersDocPagesFlatten200ResponseMetaCacheDeltaPagesItem(t *testing.T) { +func TestGettersDocPagesRemoveName200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItem{} + obj := &DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem{} var expected int obj.PageObjectNumber = expected @@ -241629,7 +284825,7 @@ func TestGettersDocPagesFlatten200ResponseMetaCacheDeltaPagesItem(t *testing.T) t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMetaCacheDeltaPagesItem + var obj *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -241642,8 +284838,8 @@ func TestGettersDocPagesFlatten200ResponseMetaCacheDeltaPagesItem(t *testing.T) t.Run("GetCache", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItem{} - var expected *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache + obj := &DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem{} + var expected *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache obj.Cache = expected // Act & Assert @@ -241653,7 +284849,7 @@ func TestGettersDocPagesFlatten200ResponseMetaCacheDeltaPagesItem(t *testing.T) t.Run("GetCache_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItem{} + obj := &DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem{} obj.Cache = nil // Act & Assert @@ -241662,7 +284858,7 @@ func TestGettersDocPagesFlatten200ResponseMetaCacheDeltaPagesItem(t *testing.T) t.Run("GetCache_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMetaCacheDeltaPagesItem + var obj *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -241674,11 +284870,11 @@ func TestGettersDocPagesFlatten200ResponseMetaCacheDeltaPagesItem(t *testing.T) } -func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaCacheDeltaPagesItem(t *testing.T) { +func TestSettersMarkExplicitDocPagesRemoveName200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItem{} + obj := &DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem{} var fernTestValuePageObjectNumber int // Act @@ -241709,8 +284905,8 @@ func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaCacheDeltaPagesItem(t t.Run("SetCache_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache + obj := &DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache // Act obj.SetCache(fernTestValueCache) @@ -241739,9 +284935,9 @@ func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaCacheDeltaPagesItem(t } -func TestSettersDocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { +func TestSettersDocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { t.Run("SetContentVersion", func(t *testing.T) { - obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache{} + obj := &DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache{} var fernTestValueContentVersion int obj.SetContentVersion(fernTestValueContentVersion) assert.Equal(t, fernTestValueContentVersion, obj.ContentVersion) @@ -241749,7 +284945,7 @@ func TestSettersDocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache(t *testin }) t.Run("SetAnnotationVersion", func(t *testing.T) { - obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache{} + obj := &DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache{} var fernTestValueAnnotationVersion int obj.SetAnnotationVersion(fernTestValueAnnotationVersion) assert.Equal(t, fernTestValueAnnotationVersion, obj.AnnotationVersion) @@ -241758,11 +284954,11 @@ func TestSettersDocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache(t *testin } -func TestGettersDocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { +func TestGettersDocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { t.Run("GetContentVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache{} + obj := &DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache{} var expected int obj.ContentVersion = expected @@ -241772,7 +284968,7 @@ func TestGettersDocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache(t *testin t.Run("GetContentVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache + var obj *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -241785,7 +284981,7 @@ func TestGettersDocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache(t *testin t.Run("GetAnnotationVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache{} + obj := &DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache{} var expected int obj.AnnotationVersion = expected @@ -241795,7 +284991,7 @@ func TestGettersDocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache(t *testin t.Run("GetAnnotationVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache + var obj *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -241807,11 +285003,11 @@ func TestGettersDocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache(t *testin } -func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { +func TestSettersMarkExplicitDocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { t.Run("SetContentVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache{} + obj := &DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache{} var fernTestValueContentVersion int // Act @@ -241842,7 +285038,7 @@ func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaCacheDeltaPagesItemCac t.Run("SetAnnotationVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten200ResponseMetaCacheDeltaPagesItemCache{} + obj := &DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache{} var fernTestValueAnnotationVersion int // Act @@ -241872,25 +285068,25 @@ func TestSettersMarkExplicitDocPagesFlatten200ResponseMetaCacheDeltaPagesItemCac } -func TestSettersDocPagesFlatten400Response(t *testing.T) { +func TestSettersDocPagesRemoveName400Response(t *testing.T) { t.Run("SetName", func(t *testing.T) { - obj := &DocPagesFlatten400Response{} - var fernTestValueName DocPagesFlatten400ResponseName + obj := &DocPagesRemoveName400Response{} + var fernTestValueName DocPagesRemoveName400ResponseName obj.SetName(fernTestValueName) assert.Equal(t, fernTestValueName, obj.Name) assert.NotNil(t, obj.explicitFields) }) t.Run("SetCode", func(t *testing.T) { - obj := &DocPagesFlatten400Response{} - var fernTestValueCode DocPagesFlatten400ResponseCode + obj := &DocPagesRemoveName400Response{} + var fernTestValueCode DocPagesRemoveName400ResponseCode obj.SetCode(fernTestValueCode) assert.Equal(t, fernTestValueCode, obj.Code) assert.NotNil(t, obj.explicitFields) }) t.Run("SetMessage", func(t *testing.T) { - obj := &DocPagesFlatten400Response{} + obj := &DocPagesRemoveName400Response{} var fernTestValueMessage string obj.SetMessage(fernTestValueMessage) assert.Equal(t, fernTestValueMessage, obj.Message) @@ -241898,7 +285094,7 @@ func TestSettersDocPagesFlatten400Response(t *testing.T) { }) t.Run("SetDetails", func(t *testing.T) { - obj := &DocPagesFlatten400Response{} + obj := &DocPagesRemoveName400Response{} var fernTestValueDetails map[string]any obj.SetDetails(fernTestValueDetails) assert.Equal(t, fernTestValueDetails, obj.Details) @@ -241907,12 +285103,12 @@ func TestSettersDocPagesFlatten400Response(t *testing.T) { } -func TestGettersDocPagesFlatten400Response(t *testing.T) { +func TestGettersDocPagesRemoveName400Response(t *testing.T) { t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten400Response{} - var expected DocPagesFlatten400ResponseName + obj := &DocPagesRemoveName400Response{} + var expected DocPagesRemoveName400ResponseName obj.Name = expected // Act & Assert @@ -241921,7 +285117,7 @@ func TestGettersDocPagesFlatten400Response(t *testing.T) { t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten400Response + var obj *DocPagesRemoveName400Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -241934,8 +285130,8 @@ func TestGettersDocPagesFlatten400Response(t *testing.T) { t.Run("GetCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten400Response{} - var expected DocPagesFlatten400ResponseCode + obj := &DocPagesRemoveName400Response{} + var expected DocPagesRemoveName400ResponseCode obj.Code = expected // Act & Assert @@ -241944,7 +285140,7 @@ func TestGettersDocPagesFlatten400Response(t *testing.T) { t.Run("GetCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten400Response + var obj *DocPagesRemoveName400Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -241957,7 +285153,7 @@ func TestGettersDocPagesFlatten400Response(t *testing.T) { t.Run("GetMessage", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten400Response{} + obj := &DocPagesRemoveName400Response{} var expected string obj.Message = expected @@ -241967,7 +285163,7 @@ func TestGettersDocPagesFlatten400Response(t *testing.T) { t.Run("GetMessage_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten400Response + var obj *DocPagesRemoveName400Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -241980,7 +285176,7 @@ func TestGettersDocPagesFlatten400Response(t *testing.T) { t.Run("GetDetails", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten400Response{} + obj := &DocPagesRemoveName400Response{} var expected map[string]any obj.Details = expected @@ -241991,7 +285187,7 @@ func TestGettersDocPagesFlatten400Response(t *testing.T) { t.Run("GetDetails_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten400Response{} + obj := &DocPagesRemoveName400Response{} obj.Details = nil // Act & Assert @@ -242000,7 +285196,7 @@ func TestGettersDocPagesFlatten400Response(t *testing.T) { t.Run("GetDetails_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten400Response + var obj *DocPagesRemoveName400Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -242012,12 +285208,12 @@ func TestGettersDocPagesFlatten400Response(t *testing.T) { } -func TestSettersMarkExplicitDocPagesFlatten400Response(t *testing.T) { +func TestSettersMarkExplicitDocPagesRemoveName400Response(t *testing.T) { t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten400Response{} - var fernTestValueName DocPagesFlatten400ResponseName + obj := &DocPagesRemoveName400Response{} + var fernTestValueName DocPagesRemoveName400ResponseName // Act obj.SetName(fernTestValueName) @@ -242047,8 +285243,8 @@ func TestSettersMarkExplicitDocPagesFlatten400Response(t *testing.T) { t.Run("SetCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten400Response{} - var fernTestValueCode DocPagesFlatten400ResponseCode + obj := &DocPagesRemoveName400Response{} + var fernTestValueCode DocPagesRemoveName400ResponseCode // Act obj.SetCode(fernTestValueCode) @@ -242078,7 +285274,7 @@ func TestSettersMarkExplicitDocPagesFlatten400Response(t *testing.T) { t.Run("SetMessage_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten400Response{} + obj := &DocPagesRemoveName400Response{} var fernTestValueMessage string // Act @@ -242109,7 +285305,7 @@ func TestSettersMarkExplicitDocPagesFlatten400Response(t *testing.T) { t.Run("SetDetails_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten400Response{} + obj := &DocPagesRemoveName400Response{} var fernTestValueDetails map[string]any // Act @@ -242139,25 +285335,25 @@ func TestSettersMarkExplicitDocPagesFlatten400Response(t *testing.T) { } -func TestSettersDocPagesFlatten404Response(t *testing.T) { +func TestSettersDocPagesRemoveName404Response(t *testing.T) { t.Run("SetName", func(t *testing.T) { - obj := &DocPagesFlatten404Response{} - var fernTestValueName DocPagesFlatten404ResponseName + obj := &DocPagesRemoveName404Response{} + var fernTestValueName DocPagesRemoveName404ResponseName obj.SetName(fernTestValueName) assert.Equal(t, fernTestValueName, obj.Name) assert.NotNil(t, obj.explicitFields) }) t.Run("SetCode", func(t *testing.T) { - obj := &DocPagesFlatten404Response{} - var fernTestValueCode DocPagesFlatten404ResponseCode + obj := &DocPagesRemoveName404Response{} + var fernTestValueCode DocPagesRemoveName404ResponseCode obj.SetCode(fernTestValueCode) assert.Equal(t, fernTestValueCode, obj.Code) assert.NotNil(t, obj.explicitFields) }) t.Run("SetMessage", func(t *testing.T) { - obj := &DocPagesFlatten404Response{} + obj := &DocPagesRemoveName404Response{} var fernTestValueMessage string obj.SetMessage(fernTestValueMessage) assert.Equal(t, fernTestValueMessage, obj.Message) @@ -242165,7 +285361,7 @@ func TestSettersDocPagesFlatten404Response(t *testing.T) { }) t.Run("SetDetails", func(t *testing.T) { - obj := &DocPagesFlatten404Response{} + obj := &DocPagesRemoveName404Response{} var fernTestValueDetails map[string]any obj.SetDetails(fernTestValueDetails) assert.Equal(t, fernTestValueDetails, obj.Details) @@ -242174,12 +285370,12 @@ func TestSettersDocPagesFlatten404Response(t *testing.T) { } -func TestGettersDocPagesFlatten404Response(t *testing.T) { +func TestGettersDocPagesRemoveName404Response(t *testing.T) { t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten404Response{} - var expected DocPagesFlatten404ResponseName + obj := &DocPagesRemoveName404Response{} + var expected DocPagesRemoveName404ResponseName obj.Name = expected // Act & Assert @@ -242188,7 +285384,7 @@ func TestGettersDocPagesFlatten404Response(t *testing.T) { t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten404Response + var obj *DocPagesRemoveName404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -242201,8 +285397,8 @@ func TestGettersDocPagesFlatten404Response(t *testing.T) { t.Run("GetCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten404Response{} - var expected DocPagesFlatten404ResponseCode + obj := &DocPagesRemoveName404Response{} + var expected DocPagesRemoveName404ResponseCode obj.Code = expected // Act & Assert @@ -242211,7 +285407,7 @@ func TestGettersDocPagesFlatten404Response(t *testing.T) { t.Run("GetCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten404Response + var obj *DocPagesRemoveName404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -242224,7 +285420,7 @@ func TestGettersDocPagesFlatten404Response(t *testing.T) { t.Run("GetMessage", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten404Response{} + obj := &DocPagesRemoveName404Response{} var expected string obj.Message = expected @@ -242234,7 +285430,7 @@ func TestGettersDocPagesFlatten404Response(t *testing.T) { t.Run("GetMessage_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten404Response + var obj *DocPagesRemoveName404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -242247,7 +285443,7 @@ func TestGettersDocPagesFlatten404Response(t *testing.T) { t.Run("GetDetails", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten404Response{} + obj := &DocPagesRemoveName404Response{} var expected map[string]any obj.Details = expected @@ -242258,7 +285454,7 @@ func TestGettersDocPagesFlatten404Response(t *testing.T) { t.Run("GetDetails_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten404Response{} + obj := &DocPagesRemoveName404Response{} obj.Details = nil // Act & Assert @@ -242267,7 +285463,7 @@ func TestGettersDocPagesFlatten404Response(t *testing.T) { t.Run("GetDetails_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesFlatten404Response + var obj *DocPagesRemoveName404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -242279,12 +285475,12 @@ func TestGettersDocPagesFlatten404Response(t *testing.T) { } -func TestSettersMarkExplicitDocPagesFlatten404Response(t *testing.T) { +func TestSettersMarkExplicitDocPagesRemoveName404Response(t *testing.T) { t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten404Response{} - var fernTestValueName DocPagesFlatten404ResponseName + obj := &DocPagesRemoveName404Response{} + var fernTestValueName DocPagesRemoveName404ResponseName // Act obj.SetName(fernTestValueName) @@ -242314,8 +285510,8 @@ func TestSettersMarkExplicitDocPagesFlatten404Response(t *testing.T) { t.Run("SetCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten404Response{} - var fernTestValueCode DocPagesFlatten404ResponseCode + obj := &DocPagesRemoveName404Response{} + var fernTestValueCode DocPagesRemoveName404ResponseCode // Act obj.SetCode(fernTestValueCode) @@ -242345,7 +285541,7 @@ func TestSettersMarkExplicitDocPagesFlatten404Response(t *testing.T) { t.Run("SetMessage_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten404Response{} + obj := &DocPagesRemoveName404Response{} var fernTestValueMessage string // Act @@ -242376,7 +285572,7 @@ func TestSettersMarkExplicitDocPagesFlatten404Response(t *testing.T) { t.Run("SetDetails_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesFlatten404Response{} + obj := &DocPagesRemoveName404Response{} var fernTestValueDetails map[string]any // Act @@ -242406,10 +285602,10 @@ func TestSettersMarkExplicitDocPagesFlatten404Response(t *testing.T) { } -func TestSettersDocPagesInsert200Response(t *testing.T) { +func TestSettersDocPagesRotate200Response(t *testing.T) { t.Run("SetMeta", func(t *testing.T) { - obj := &DocPagesInsert200Response{} - var fernTestValueMeta *DocPagesInsert200ResponseMeta + obj := &DocPagesRotate200Response{} + var fernTestValueMeta *DocPagesRotate200ResponseMeta obj.SetMeta(fernTestValueMeta) assert.Equal(t, fernTestValueMeta, obj.Meta) assert.NotNil(t, obj.explicitFields) @@ -242417,12 +285613,12 @@ func TestSettersDocPagesInsert200Response(t *testing.T) { } -func TestGettersDocPagesInsert200Response(t *testing.T) { +func TestGettersDocPagesRotate200Response(t *testing.T) { t.Run("GetMeta", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200Response{} - var expected *DocPagesInsert200ResponseMeta + obj := &DocPagesRotate200Response{} + var expected *DocPagesRotate200ResponseMeta obj.Meta = expected // Act & Assert @@ -242432,7 +285628,7 @@ func TestGettersDocPagesInsert200Response(t *testing.T) { t.Run("GetMeta_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200Response{} + obj := &DocPagesRotate200Response{} obj.Meta = nil // Act & Assert @@ -242441,7 +285637,7 @@ func TestGettersDocPagesInsert200Response(t *testing.T) { t.Run("GetMeta_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200Response + var obj *DocPagesRotate200Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -242453,12 +285649,12 @@ func TestGettersDocPagesInsert200Response(t *testing.T) { } -func TestSettersMarkExplicitDocPagesInsert200Response(t *testing.T) { +func TestSettersMarkExplicitDocPagesRotate200Response(t *testing.T) { t.Run("SetMeta_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200Response{} - var fernTestValueMeta *DocPagesInsert200ResponseMeta + obj := &DocPagesRotate200Response{} + var fernTestValueMeta *DocPagesRotate200ResponseMeta // Act obj.SetMeta(fernTestValueMeta) @@ -242487,18 +285683,18 @@ func TestSettersMarkExplicitDocPagesInsert200Response(t *testing.T) { } -func TestSettersDocPagesInsert200ResponseMeta(t *testing.T) { +func TestSettersDocPagesRotate200ResponseMeta(t *testing.T) { t.Run("SetAffectedPages", func(t *testing.T) { - obj := &DocPagesInsert200ResponseMeta{} - var fernTestValueAffectedPages []*DocPagesInsert200ResponseMetaAffectedPagesItem + obj := &DocPagesRotate200ResponseMeta{} + var fernTestValueAffectedPages []*DocPagesRotate200ResponseMetaAffectedPagesItem obj.SetAffectedPages(fernTestValueAffectedPages) assert.Equal(t, fernTestValueAffectedPages, obj.AffectedPages) assert.NotNil(t, obj.explicitFields) }) t.Run("SetCacheDelta", func(t *testing.T) { - obj := &DocPagesInsert200ResponseMeta{} - var fernTestValueCacheDelta *DocPagesInsert200ResponseMetaCacheDelta + obj := &DocPagesRotate200ResponseMeta{} + var fernTestValueCacheDelta *DocPagesRotate200ResponseMetaCacheDelta obj.SetCacheDelta(fernTestValueCacheDelta) assert.Equal(t, fernTestValueCacheDelta, obj.CacheDelta) assert.NotNil(t, obj.explicitFields) @@ -242506,12 +285702,12 @@ func TestSettersDocPagesInsert200ResponseMeta(t *testing.T) { } -func TestGettersDocPagesInsert200ResponseMeta(t *testing.T) { +func TestGettersDocPagesRotate200ResponseMeta(t *testing.T) { t.Run("GetAffectedPages", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMeta{} - var expected []*DocPagesInsert200ResponseMetaAffectedPagesItem + obj := &DocPagesRotate200ResponseMeta{} + var expected []*DocPagesRotate200ResponseMetaAffectedPagesItem obj.AffectedPages = expected // Act & Assert @@ -242521,7 +285717,7 @@ func TestGettersDocPagesInsert200ResponseMeta(t *testing.T) { t.Run("GetAffectedPages_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMeta{} + obj := &DocPagesRotate200ResponseMeta{} obj.AffectedPages = nil // Act & Assert @@ -242530,7 +285726,7 @@ func TestGettersDocPagesInsert200ResponseMeta(t *testing.T) { t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMeta + var obj *DocPagesRotate200ResponseMeta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -242543,8 +285739,8 @@ func TestGettersDocPagesInsert200ResponseMeta(t *testing.T) { t.Run("GetCacheDelta", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMeta{} - var expected *DocPagesInsert200ResponseMetaCacheDelta + obj := &DocPagesRotate200ResponseMeta{} + var expected *DocPagesRotate200ResponseMetaCacheDelta obj.CacheDelta = expected // Act & Assert @@ -242554,7 +285750,7 @@ func TestGettersDocPagesInsert200ResponseMeta(t *testing.T) { t.Run("GetCacheDelta_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMeta{} + obj := &DocPagesRotate200ResponseMeta{} obj.CacheDelta = nil // Act & Assert @@ -242563,7 +285759,7 @@ func TestGettersDocPagesInsert200ResponseMeta(t *testing.T) { t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMeta + var obj *DocPagesRotate200ResponseMeta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -242575,12 +285771,12 @@ func TestGettersDocPagesInsert200ResponseMeta(t *testing.T) { } -func TestSettersMarkExplicitDocPagesInsert200ResponseMeta(t *testing.T) { +func TestSettersMarkExplicitDocPagesRotate200ResponseMeta(t *testing.T) { t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMeta{} - var fernTestValueAffectedPages []*DocPagesInsert200ResponseMetaAffectedPagesItem + obj := &DocPagesRotate200ResponseMeta{} + var fernTestValueAffectedPages []*DocPagesRotate200ResponseMetaAffectedPagesItem // Act obj.SetAffectedPages(fernTestValueAffectedPages) @@ -242610,8 +285806,8 @@ func TestSettersMarkExplicitDocPagesInsert200ResponseMeta(t *testing.T) { t.Run("SetCacheDelta_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMeta{} - var fernTestValueCacheDelta *DocPagesInsert200ResponseMetaCacheDelta + obj := &DocPagesRotate200ResponseMeta{} + var fernTestValueCacheDelta *DocPagesRotate200ResponseMetaCacheDelta // Act obj.SetCacheDelta(fernTestValueCacheDelta) @@ -242640,9 +285836,9 @@ func TestSettersMarkExplicitDocPagesInsert200ResponseMeta(t *testing.T) { } -func TestSettersDocPagesInsert200ResponseMetaAffectedPagesItem(t *testing.T) { +func TestSettersDocPagesRotate200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} + obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -242650,16 +285846,16 @@ func TestSettersDocPagesInsert200ResponseMetaAffectedPagesItem(t *testing.T) { }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocPagesInsert200ResponseMetaAffectedPagesItemRevision + obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocPagesRotate200ResponseMetaAffectedPagesItemRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) }) t.Run("SetWeakAnnotationState", func(t *testing.T) { - obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) assert.NotNil(t, obj.explicitFields) @@ -242667,11 +285863,11 @@ func TestSettersDocPagesInsert200ResponseMetaAffectedPagesItem(t *testing.T) { } -func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItem(t *testing.T) { +func TestGettersDocPagesRotate200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} + obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} var expected int obj.PageObjectNumber = expected @@ -242681,7 +285877,7 @@ func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaAffectedPagesItem + var obj *DocPagesRotate200ResponseMetaAffectedPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -242694,8 +285890,8 @@ func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} - var expected *DocPagesInsert200ResponseMetaAffectedPagesItemRevision + obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} + var expected *DocPagesRotate200ResponseMetaAffectedPagesItemRevision obj.Revision = expected // Act & Assert @@ -242705,7 +285901,7 @@ func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} + obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} obj.Revision = nil // Act & Assert @@ -242714,7 +285910,7 @@ func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaAffectedPagesItem + var obj *DocPagesRotate200ResponseMetaAffectedPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -242727,8 +285923,8 @@ func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetWeakAnnotationState", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} - var expected *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} + var expected *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState obj.WeakAnnotationState = expected // Act & Assert @@ -242738,7 +285934,7 @@ func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetWeakAnnotationState_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} + obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} obj.WeakAnnotationState = nil // Act & Assert @@ -242747,7 +285943,7 @@ func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetWeakAnnotationState_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaAffectedPagesItem + var obj *DocPagesRotate200ResponseMetaAffectedPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -242759,11 +285955,11 @@ func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItem(t *testing.T) { } -func TestSettersMarkExplicitDocPagesInsert200ResponseMetaAffectedPagesItem(t *testing.T) { +func TestSettersMarkExplicitDocPagesRotate200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} + obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} var fernTestValuePageObjectNumber int // Act @@ -242794,8 +285990,8 @@ func TestSettersMarkExplicitDocPagesInsert200ResponseMetaAffectedPagesItem(t *te t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocPagesInsert200ResponseMetaAffectedPagesItemRevision + obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocPagesRotate200ResponseMetaAffectedPagesItemRevision // Act obj.SetRevision(fernTestValueRevision) @@ -242825,8 +286021,8 @@ func TestSettersMarkExplicitDocPagesInsert200ResponseMetaAffectedPagesItem(t *te t.Run("SetWeakAnnotationState_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState // Act obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) @@ -242855,9 +286051,9 @@ func TestSettersMarkExplicitDocPagesInsert200ResponseMetaAffectedPagesItem(t *te } -func TestSettersDocPagesInsert200ResponseMetaAffectedPagesItemRevision(t *testing.T) { +func TestSettersDocPagesRotate200ResponseMetaAffectedPagesItemRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -242865,7 +286061,7 @@ func TestSettersDocPagesInsert200ResponseMetaAffectedPagesItemRevision(t *testin }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -242873,7 +286069,7 @@ func TestSettersDocPagesInsert200ResponseMetaAffectedPagesItemRevision(t *testin }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -242882,11 +286078,11 @@ func TestSettersDocPagesInsert200ResponseMetaAffectedPagesItemRevision(t *testin } -func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItemRevision(t *testing.T) { +func TestGettersDocPagesRotate200ResponseMetaAffectedPagesItemRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} var expected string obj.DocSessionID = expected @@ -242896,7 +286092,7 @@ func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItemRevision(t *testin t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaAffectedPagesItemRevision + var obj *DocPagesRotate200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -242909,7 +286105,7 @@ func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItemRevision(t *testin t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} var expected int obj.PageObjectNumber = expected @@ -242919,7 +286115,7 @@ func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItemRevision(t *testin t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaAffectedPagesItemRevision + var obj *DocPagesRotate200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -242932,7 +286128,7 @@ func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItemRevision(t *testin t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} var expected int obj.Generation = expected @@ -242942,7 +286138,7 @@ func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItemRevision(t *testin t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaAffectedPagesItemRevision + var obj *DocPagesRotate200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -242954,11 +286150,11 @@ func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItemRevision(t *testin } -func TestSettersMarkExplicitDocPagesInsert200ResponseMetaAffectedPagesItemRevision(t *testing.T) { +func TestSettersMarkExplicitDocPagesRotate200ResponseMetaAffectedPagesItemRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} var fernTestValueDocSessionID string // Act @@ -242989,7 +286185,7 @@ func TestSettersMarkExplicitDocPagesInsert200ResponseMetaAffectedPagesItemRevisi t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} var fernTestValuePageObjectNumber int // Act @@ -243020,7 +286216,7 @@ func TestSettersMarkExplicitDocPagesInsert200ResponseMetaAffectedPagesItemRevisi t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} var fernTestValueGeneration int // Act @@ -243050,11 +286246,11 @@ func TestSettersMarkExplicitDocPagesInsert200ResponseMetaAffectedPagesItemRevisi } -func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { +func TestGettersDocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState{} var expected string obj.Kind = expected @@ -243064,7 +286260,7 @@ func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStat t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -243077,8 +286273,8 @@ func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStat t.Run("GetUnknown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + obj := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown obj.Unknown = expected // Act & Assert @@ -243088,7 +286284,7 @@ func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStat t.Run("GetUnknown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState{} obj.Unknown = nil // Act & Assert @@ -243097,7 +286293,7 @@ func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStat t.Run("GetUnknown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -243110,8 +286306,8 @@ func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStat t.Run("GetKnown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + obj := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown obj.Known = expected // Act & Assert @@ -243121,7 +286317,7 @@ func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStat t.Run("GetKnown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState{} obj.Known = nil // Act & Assert @@ -243130,7 +286326,7 @@ func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStat t.Run("GetKnown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -243142,9 +286338,9 @@ func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStat } -func TestSettersDocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { +func TestSettersDocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { t.Run("SetHasAnyWeakAnnotations", func(t *testing.T) { - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + obj := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} var fernTestValueHasAnyWeakAnnotations bool obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) assert.Equal(t, fernTestValueHasAnyWeakAnnotations, obj.HasAnyWeakAnnotations) @@ -243153,11 +286349,11 @@ func TestSettersDocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStat } -func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { +func TestGettersDocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + obj := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} var expected bool obj.HasAnyWeakAnnotations = expected @@ -243167,7 +286363,7 @@ func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStat t.Run("GetHasAnyWeakAnnotations_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + var obj *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -243179,11 +286375,11 @@ func TestGettersDocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStat } -func TestSettersMarkExplicitDocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { +func TestSettersMarkExplicitDocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + obj := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} var fernTestValueHasAnyWeakAnnotations bool // Act @@ -243213,9 +286409,9 @@ func TestSettersMarkExplicitDocPagesInsert200ResponseMetaAffectedPagesItemWeakAn } -func TestSettersDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { +func TestSettersDocPagesRotate200ResponseMetaCacheDelta(t *testing.T) { t.Run("SetPreviousDocVersion", func(t *testing.T) { - obj := &DocPagesInsert200ResponseMetaCacheDelta{} + obj := &DocPagesRotate200ResponseMetaCacheDelta{} var fernTestValuePreviousDocVersion int obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) assert.Equal(t, fernTestValuePreviousDocVersion, obj.PreviousDocVersion) @@ -243223,7 +286419,7 @@ func TestSettersDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetDocVersion", func(t *testing.T) { - obj := &DocPagesInsert200ResponseMetaCacheDelta{} + obj := &DocPagesRotate200ResponseMetaCacheDelta{} var fernTestValueDocVersion int obj.SetDocVersion(fernTestValueDocVersion) assert.Equal(t, fernTestValueDocVersion, obj.DocVersion) @@ -243231,7 +286427,7 @@ func TestSettersDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetAnnotationsVersion", func(t *testing.T) { - obj := &DocPagesInsert200ResponseMetaCacheDelta{} + obj := &DocPagesRotate200ResponseMetaCacheDelta{} var fernTestValueAnnotationsVersion *int obj.SetAnnotationsVersion(fernTestValueAnnotationsVersion) assert.Equal(t, fernTestValueAnnotationsVersion, obj.AnnotationsVersion) @@ -243239,7 +286435,7 @@ func TestSettersDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetLayerVersion", func(t *testing.T) { - obj := &DocPagesInsert200ResponseMetaCacheDelta{} + obj := &DocPagesRotate200ResponseMetaCacheDelta{} var fernTestValueLayerVersion *int obj.SetLayerVersion(fernTestValueLayerVersion) assert.Equal(t, fernTestValueLayerVersion, obj.LayerVersion) @@ -243247,7 +286443,7 @@ func TestSettersDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetWorking", func(t *testing.T) { - obj := &DocPagesInsert200ResponseMetaCacheDelta{} + obj := &DocPagesRotate200ResponseMetaCacheDelta{} var fernTestValueWorking *bool obj.SetWorking(fernTestValueWorking) assert.Equal(t, fernTestValueWorking, obj.Working) @@ -243255,8 +286451,8 @@ func TestSettersDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetPages", func(t *testing.T) { - obj := &DocPagesInsert200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocPagesInsert200ResponseMetaCacheDeltaPagesItem + obj := &DocPagesRotate200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocPagesRotate200ResponseMetaCacheDeltaPagesItem obj.SetPages(fernTestValuePages) assert.Equal(t, fernTestValuePages, obj.Pages) assert.NotNil(t, obj.explicitFields) @@ -243264,11 +286460,11 @@ func TestSettersDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { } -func TestGettersDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { +func TestGettersDocPagesRotate200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPreviousDocVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDelta{} + obj := &DocPagesRotate200ResponseMetaCacheDelta{} var expected int obj.PreviousDocVersion = expected @@ -243278,7 +286474,7 @@ func TestGettersDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaCacheDelta + var obj *DocPagesRotate200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -243291,7 +286487,7 @@ func TestGettersDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetDocVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDelta{} + obj := &DocPagesRotate200ResponseMetaCacheDelta{} var expected int obj.DocVersion = expected @@ -243301,7 +286497,7 @@ func TestGettersDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaCacheDelta + var obj *DocPagesRotate200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -243314,7 +286510,7 @@ func TestGettersDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetAnnotationsVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDelta{} + obj := &DocPagesRotate200ResponseMetaCacheDelta{} var expected *int obj.AnnotationsVersion = expected @@ -243325,7 +286521,7 @@ func TestGettersDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetAnnotationsVersion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDelta{} + obj := &DocPagesRotate200ResponseMetaCacheDelta{} obj.AnnotationsVersion = nil // Act & Assert @@ -243334,7 +286530,7 @@ func TestGettersDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetAnnotationsVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaCacheDelta + var obj *DocPagesRotate200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -243347,7 +286543,7 @@ func TestGettersDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetLayerVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDelta{} + obj := &DocPagesRotate200ResponseMetaCacheDelta{} var expected *int obj.LayerVersion = expected @@ -243358,7 +286554,7 @@ func TestGettersDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetLayerVersion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDelta{} + obj := &DocPagesRotate200ResponseMetaCacheDelta{} obj.LayerVersion = nil // Act & Assert @@ -243367,7 +286563,7 @@ func TestGettersDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetLayerVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaCacheDelta + var obj *DocPagesRotate200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -243380,7 +286576,7 @@ func TestGettersDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetWorking", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDelta{} + obj := &DocPagesRotate200ResponseMetaCacheDelta{} var expected *bool obj.Working = expected @@ -243391,7 +286587,7 @@ func TestGettersDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetWorking_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDelta{} + obj := &DocPagesRotate200ResponseMetaCacheDelta{} obj.Working = nil // Act & Assert @@ -243400,7 +286596,7 @@ func TestGettersDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetWorking_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaCacheDelta + var obj *DocPagesRotate200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -243413,8 +286609,8 @@ func TestGettersDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPages", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDelta{} - var expected []*DocPagesInsert200ResponseMetaCacheDeltaPagesItem + obj := &DocPagesRotate200ResponseMetaCacheDelta{} + var expected []*DocPagesRotate200ResponseMetaCacheDeltaPagesItem obj.Pages = expected // Act & Assert @@ -243424,7 +286620,7 @@ func TestGettersDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPages_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDelta{} + obj := &DocPagesRotate200ResponseMetaCacheDelta{} obj.Pages = nil // Act & Assert @@ -243433,7 +286629,7 @@ func TestGettersDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPages_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaCacheDelta + var obj *DocPagesRotate200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -243445,11 +286641,11 @@ func TestGettersDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { } -func TestSettersMarkExplicitDocPagesInsert200ResponseMetaCacheDelta(t *testing.T) { +func TestSettersMarkExplicitDocPagesRotate200ResponseMetaCacheDelta(t *testing.T) { t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDelta{} + obj := &DocPagesRotate200ResponseMetaCacheDelta{} var fernTestValuePreviousDocVersion int // Act @@ -243480,7 +286676,7 @@ func TestSettersMarkExplicitDocPagesInsert200ResponseMetaCacheDelta(t *testing.T t.Run("SetDocVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDelta{} + obj := &DocPagesRotate200ResponseMetaCacheDelta{} var fernTestValueDocVersion int // Act @@ -243511,7 +286707,7 @@ func TestSettersMarkExplicitDocPagesInsert200ResponseMetaCacheDelta(t *testing.T t.Run("SetAnnotationsVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDelta{} + obj := &DocPagesRotate200ResponseMetaCacheDelta{} var fernTestValueAnnotationsVersion *int // Act @@ -243542,7 +286738,7 @@ func TestSettersMarkExplicitDocPagesInsert200ResponseMetaCacheDelta(t *testing.T t.Run("SetLayerVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDelta{} + obj := &DocPagesRotate200ResponseMetaCacheDelta{} var fernTestValueLayerVersion *int // Act @@ -243573,7 +286769,7 @@ func TestSettersMarkExplicitDocPagesInsert200ResponseMetaCacheDelta(t *testing.T t.Run("SetWorking_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDelta{} + obj := &DocPagesRotate200ResponseMetaCacheDelta{} var fernTestValueWorking *bool // Act @@ -243604,8 +286800,8 @@ func TestSettersMarkExplicitDocPagesInsert200ResponseMetaCacheDelta(t *testing.T t.Run("SetPages_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocPagesInsert200ResponseMetaCacheDeltaPagesItem + obj := &DocPagesRotate200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocPagesRotate200ResponseMetaCacheDeltaPagesItem // Act obj.SetPages(fernTestValuePages) @@ -243634,9 +286830,9 @@ func TestSettersMarkExplicitDocPagesInsert200ResponseMetaCacheDelta(t *testing.T } -func TestSettersDocPagesInsert200ResponseMetaCacheDeltaPagesItem(t *testing.T) { +func TestSettersDocPagesRotate200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItem{} + obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItem{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -243644,8 +286840,8 @@ func TestSettersDocPagesInsert200ResponseMetaCacheDeltaPagesItem(t *testing.T) { }) t.Run("SetCache", func(t *testing.T) { - obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache + obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache obj.SetCache(fernTestValueCache) assert.Equal(t, fernTestValueCache, obj.Cache) assert.NotNil(t, obj.explicitFields) @@ -243653,11 +286849,11 @@ func TestSettersDocPagesInsert200ResponseMetaCacheDeltaPagesItem(t *testing.T) { } -func TestGettersDocPagesInsert200ResponseMetaCacheDeltaPagesItem(t *testing.T) { +func TestGettersDocPagesRotate200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItem{} + obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItem{} var expected int obj.PageObjectNumber = expected @@ -243667,7 +286863,7 @@ func TestGettersDocPagesInsert200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaCacheDeltaPagesItem + var obj *DocPagesRotate200ResponseMetaCacheDeltaPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -243680,8 +286876,8 @@ func TestGettersDocPagesInsert200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("GetCache", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItem{} - var expected *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache + obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItem{} + var expected *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache obj.Cache = expected // Act & Assert @@ -243691,7 +286887,7 @@ func TestGettersDocPagesInsert200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("GetCache_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItem{} + obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItem{} obj.Cache = nil // Act & Assert @@ -243700,7 +286896,7 @@ func TestGettersDocPagesInsert200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("GetCache_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaCacheDeltaPagesItem + var obj *DocPagesRotate200ResponseMetaCacheDeltaPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -243712,11 +286908,11 @@ func TestGettersDocPagesInsert200ResponseMetaCacheDeltaPagesItem(t *testing.T) { } -func TestSettersMarkExplicitDocPagesInsert200ResponseMetaCacheDeltaPagesItem(t *testing.T) { +func TestSettersMarkExplicitDocPagesRotate200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItem{} + obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItem{} var fernTestValuePageObjectNumber int // Act @@ -243747,8 +286943,8 @@ func TestSettersMarkExplicitDocPagesInsert200ResponseMetaCacheDeltaPagesItem(t * t.Run("SetCache_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache + obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache // Act obj.SetCache(fernTestValueCache) @@ -243777,9 +286973,9 @@ func TestSettersMarkExplicitDocPagesInsert200ResponseMetaCacheDeltaPagesItem(t * } -func TestSettersDocPagesInsert200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { +func TestSettersDocPagesRotate200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { t.Run("SetContentVersion", func(t *testing.T) { - obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache{} + obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache{} var fernTestValueContentVersion int obj.SetContentVersion(fernTestValueContentVersion) assert.Equal(t, fernTestValueContentVersion, obj.ContentVersion) @@ -243787,7 +286983,7 @@ func TestSettersDocPagesInsert200ResponseMetaCacheDeltaPagesItemCache(t *testing }) t.Run("SetAnnotationVersion", func(t *testing.T) { - obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache{} + obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache{} var fernTestValueAnnotationVersion int obj.SetAnnotationVersion(fernTestValueAnnotationVersion) assert.Equal(t, fernTestValueAnnotationVersion, obj.AnnotationVersion) @@ -243796,11 +286992,11 @@ func TestSettersDocPagesInsert200ResponseMetaCacheDeltaPagesItemCache(t *testing } -func TestGettersDocPagesInsert200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { +func TestGettersDocPagesRotate200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { t.Run("GetContentVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache{} + obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache{} var expected int obj.ContentVersion = expected @@ -243810,7 +287006,7 @@ func TestGettersDocPagesInsert200ResponseMetaCacheDeltaPagesItemCache(t *testing t.Run("GetContentVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache + var obj *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -243823,7 +287019,7 @@ func TestGettersDocPagesInsert200ResponseMetaCacheDeltaPagesItemCache(t *testing t.Run("GetAnnotationVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache{} + obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache{} var expected int obj.AnnotationVersion = expected @@ -243833,7 +287029,7 @@ func TestGettersDocPagesInsert200ResponseMetaCacheDeltaPagesItemCache(t *testing t.Run("GetAnnotationVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache + var obj *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -243845,11 +287041,11 @@ func TestGettersDocPagesInsert200ResponseMetaCacheDeltaPagesItemCache(t *testing } -func TestSettersMarkExplicitDocPagesInsert200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { +func TestSettersMarkExplicitDocPagesRotate200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { t.Run("SetContentVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache{} + obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache{} var fernTestValueContentVersion int // Act @@ -243880,7 +287076,7 @@ func TestSettersMarkExplicitDocPagesInsert200ResponseMetaCacheDeltaPagesItemCach t.Run("SetAnnotationVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache{} + obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache{} var fernTestValueAnnotationVersion int // Act @@ -243910,25 +287106,25 @@ func TestSettersMarkExplicitDocPagesInsert200ResponseMetaCacheDeltaPagesItemCach } -func TestSettersDocPagesInsert400Response(t *testing.T) { +func TestSettersDocPagesRotate400Response(t *testing.T) { t.Run("SetName", func(t *testing.T) { - obj := &DocPagesInsert400Response{} - var fernTestValueName DocPagesInsert400ResponseName + obj := &DocPagesRotate400Response{} + var fernTestValueName DocPagesRotate400ResponseName obj.SetName(fernTestValueName) assert.Equal(t, fernTestValueName, obj.Name) assert.NotNil(t, obj.explicitFields) }) t.Run("SetCode", func(t *testing.T) { - obj := &DocPagesInsert400Response{} - var fernTestValueCode DocPagesInsert400ResponseCode + obj := &DocPagesRotate400Response{} + var fernTestValueCode DocPagesRotate400ResponseCode obj.SetCode(fernTestValueCode) assert.Equal(t, fernTestValueCode, obj.Code) assert.NotNil(t, obj.explicitFields) }) t.Run("SetMessage", func(t *testing.T) { - obj := &DocPagesInsert400Response{} + obj := &DocPagesRotate400Response{} var fernTestValueMessage string obj.SetMessage(fernTestValueMessage) assert.Equal(t, fernTestValueMessage, obj.Message) @@ -243936,7 +287132,7 @@ func TestSettersDocPagesInsert400Response(t *testing.T) { }) t.Run("SetDetails", func(t *testing.T) { - obj := &DocPagesInsert400Response{} + obj := &DocPagesRotate400Response{} var fernTestValueDetails map[string]any obj.SetDetails(fernTestValueDetails) assert.Equal(t, fernTestValueDetails, obj.Details) @@ -243945,12 +287141,12 @@ func TestSettersDocPagesInsert400Response(t *testing.T) { } -func TestGettersDocPagesInsert400Response(t *testing.T) { +func TestGettersDocPagesRotate400Response(t *testing.T) { t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert400Response{} - var expected DocPagesInsert400ResponseName + obj := &DocPagesRotate400Response{} + var expected DocPagesRotate400ResponseName obj.Name = expected // Act & Assert @@ -243959,7 +287155,7 @@ func TestGettersDocPagesInsert400Response(t *testing.T) { t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert400Response + var obj *DocPagesRotate400Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -243972,8 +287168,8 @@ func TestGettersDocPagesInsert400Response(t *testing.T) { t.Run("GetCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert400Response{} - var expected DocPagesInsert400ResponseCode + obj := &DocPagesRotate400Response{} + var expected DocPagesRotate400ResponseCode obj.Code = expected // Act & Assert @@ -243982,7 +287178,7 @@ func TestGettersDocPagesInsert400Response(t *testing.T) { t.Run("GetCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert400Response + var obj *DocPagesRotate400Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -243995,7 +287191,7 @@ func TestGettersDocPagesInsert400Response(t *testing.T) { t.Run("GetMessage", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert400Response{} + obj := &DocPagesRotate400Response{} var expected string obj.Message = expected @@ -244005,7 +287201,7 @@ func TestGettersDocPagesInsert400Response(t *testing.T) { t.Run("GetMessage_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert400Response + var obj *DocPagesRotate400Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -244018,7 +287214,7 @@ func TestGettersDocPagesInsert400Response(t *testing.T) { t.Run("GetDetails", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert400Response{} + obj := &DocPagesRotate400Response{} var expected map[string]any obj.Details = expected @@ -244029,7 +287225,7 @@ func TestGettersDocPagesInsert400Response(t *testing.T) { t.Run("GetDetails_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert400Response{} + obj := &DocPagesRotate400Response{} obj.Details = nil // Act & Assert @@ -244038,7 +287234,7 @@ func TestGettersDocPagesInsert400Response(t *testing.T) { t.Run("GetDetails_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert400Response + var obj *DocPagesRotate400Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -244050,12 +287246,12 @@ func TestGettersDocPagesInsert400Response(t *testing.T) { } -func TestSettersMarkExplicitDocPagesInsert400Response(t *testing.T) { +func TestSettersMarkExplicitDocPagesRotate400Response(t *testing.T) { t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert400Response{} - var fernTestValueName DocPagesInsert400ResponseName + obj := &DocPagesRotate400Response{} + var fernTestValueName DocPagesRotate400ResponseName // Act obj.SetName(fernTestValueName) @@ -244085,8 +287281,8 @@ func TestSettersMarkExplicitDocPagesInsert400Response(t *testing.T) { t.Run("SetCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert400Response{} - var fernTestValueCode DocPagesInsert400ResponseCode + obj := &DocPagesRotate400Response{} + var fernTestValueCode DocPagesRotate400ResponseCode // Act obj.SetCode(fernTestValueCode) @@ -244116,7 +287312,7 @@ func TestSettersMarkExplicitDocPagesInsert400Response(t *testing.T) { t.Run("SetMessage_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert400Response{} + obj := &DocPagesRotate400Response{} var fernTestValueMessage string // Act @@ -244147,7 +287343,7 @@ func TestSettersMarkExplicitDocPagesInsert400Response(t *testing.T) { t.Run("SetDetails_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert400Response{} + obj := &DocPagesRotate400Response{} var fernTestValueDetails map[string]any // Act @@ -244177,25 +287373,25 @@ func TestSettersMarkExplicitDocPagesInsert400Response(t *testing.T) { } -func TestSettersDocPagesInsert404Response(t *testing.T) { +func TestSettersDocPagesRotate404Response(t *testing.T) { t.Run("SetName", func(t *testing.T) { - obj := &DocPagesInsert404Response{} - var fernTestValueName DocPagesInsert404ResponseName + obj := &DocPagesRotate404Response{} + var fernTestValueName DocPagesRotate404ResponseName obj.SetName(fernTestValueName) assert.Equal(t, fernTestValueName, obj.Name) assert.NotNil(t, obj.explicitFields) }) t.Run("SetCode", func(t *testing.T) { - obj := &DocPagesInsert404Response{} - var fernTestValueCode DocPagesInsert404ResponseCode + obj := &DocPagesRotate404Response{} + var fernTestValueCode DocPagesRotate404ResponseCode obj.SetCode(fernTestValueCode) assert.Equal(t, fernTestValueCode, obj.Code) assert.NotNil(t, obj.explicitFields) }) t.Run("SetMessage", func(t *testing.T) { - obj := &DocPagesInsert404Response{} + obj := &DocPagesRotate404Response{} var fernTestValueMessage string obj.SetMessage(fernTestValueMessage) assert.Equal(t, fernTestValueMessage, obj.Message) @@ -244203,7 +287399,7 @@ func TestSettersDocPagesInsert404Response(t *testing.T) { }) t.Run("SetDetails", func(t *testing.T) { - obj := &DocPagesInsert404Response{} + obj := &DocPagesRotate404Response{} var fernTestValueDetails map[string]any obj.SetDetails(fernTestValueDetails) assert.Equal(t, fernTestValueDetails, obj.Details) @@ -244212,12 +287408,12 @@ func TestSettersDocPagesInsert404Response(t *testing.T) { } -func TestGettersDocPagesInsert404Response(t *testing.T) { +func TestGettersDocPagesRotate404Response(t *testing.T) { t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert404Response{} - var expected DocPagesInsert404ResponseName + obj := &DocPagesRotate404Response{} + var expected DocPagesRotate404ResponseName obj.Name = expected // Act & Assert @@ -244226,7 +287422,7 @@ func TestGettersDocPagesInsert404Response(t *testing.T) { t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert404Response + var obj *DocPagesRotate404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -244239,8 +287435,8 @@ func TestGettersDocPagesInsert404Response(t *testing.T) { t.Run("GetCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert404Response{} - var expected DocPagesInsert404ResponseCode + obj := &DocPagesRotate404Response{} + var expected DocPagesRotate404ResponseCode obj.Code = expected // Act & Assert @@ -244249,7 +287445,7 @@ func TestGettersDocPagesInsert404Response(t *testing.T) { t.Run("GetCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert404Response + var obj *DocPagesRotate404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -244262,7 +287458,7 @@ func TestGettersDocPagesInsert404Response(t *testing.T) { t.Run("GetMessage", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert404Response{} + obj := &DocPagesRotate404Response{} var expected string obj.Message = expected @@ -244272,7 +287468,7 @@ func TestGettersDocPagesInsert404Response(t *testing.T) { t.Run("GetMessage_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert404Response + var obj *DocPagesRotate404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -244285,7 +287481,7 @@ func TestGettersDocPagesInsert404Response(t *testing.T) { t.Run("GetDetails", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert404Response{} + obj := &DocPagesRotate404Response{} var expected map[string]any obj.Details = expected @@ -244296,7 +287492,7 @@ func TestGettersDocPagesInsert404Response(t *testing.T) { t.Run("GetDetails_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert404Response{} + obj := &DocPagesRotate404Response{} obj.Details = nil // Act & Assert @@ -244305,7 +287501,7 @@ func TestGettersDocPagesInsert404Response(t *testing.T) { t.Run("GetDetails_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsert404Response + var obj *DocPagesRotate404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -244317,12 +287513,12 @@ func TestGettersDocPagesInsert404Response(t *testing.T) { } -func TestSettersMarkExplicitDocPagesInsert404Response(t *testing.T) { +func TestSettersMarkExplicitDocPagesRotate404Response(t *testing.T) { t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert404Response{} - var fernTestValueName DocPagesInsert404ResponseName + obj := &DocPagesRotate404Response{} + var fernTestValueName DocPagesRotate404ResponseName // Act obj.SetName(fernTestValueName) @@ -244352,8 +287548,8 @@ func TestSettersMarkExplicitDocPagesInsert404Response(t *testing.T) { t.Run("SetCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert404Response{} - var fernTestValueCode DocPagesInsert404ResponseCode + obj := &DocPagesRotate404Response{} + var fernTestValueCode DocPagesRotate404ResponseCode // Act obj.SetCode(fernTestValueCode) @@ -244383,7 +287579,7 @@ func TestSettersMarkExplicitDocPagesInsert404Response(t *testing.T) { t.Run("SetMessage_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert404Response{} + obj := &DocPagesRotate404Response{} var fernTestValueMessage string // Act @@ -244414,7 +287610,7 @@ func TestSettersMarkExplicitDocPagesInsert404Response(t *testing.T) { t.Run("SetDetails_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsert404Response{} + obj := &DocPagesRotate404Response{} var fernTestValueDetails map[string]any // Act @@ -244444,10 +287640,10 @@ func TestSettersMarkExplicitDocPagesInsert404Response(t *testing.T) { } -func TestSettersDocPagesInsertBlank200Response(t *testing.T) { +func TestSettersDocPagesSetName200Response(t *testing.T) { t.Run("SetMeta", func(t *testing.T) { - obj := &DocPagesInsertBlank200Response{} - var fernTestValueMeta *DocPagesInsertBlank200ResponseMeta + obj := &DocPagesSetName200Response{} + var fernTestValueMeta *DocPagesSetName200ResponseMeta obj.SetMeta(fernTestValueMeta) assert.Equal(t, fernTestValueMeta, obj.Meta) assert.NotNil(t, obj.explicitFields) @@ -244455,12 +287651,12 @@ func TestSettersDocPagesInsertBlank200Response(t *testing.T) { } -func TestGettersDocPagesInsertBlank200Response(t *testing.T) { +func TestGettersDocPagesSetName200Response(t *testing.T) { t.Run("GetMeta", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200Response{} - var expected *DocPagesInsertBlank200ResponseMeta + obj := &DocPagesSetName200Response{} + var expected *DocPagesSetName200ResponseMeta obj.Meta = expected // Act & Assert @@ -244470,7 +287666,7 @@ func TestGettersDocPagesInsertBlank200Response(t *testing.T) { t.Run("GetMeta_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200Response{} + obj := &DocPagesSetName200Response{} obj.Meta = nil // Act & Assert @@ -244479,7 +287675,7 @@ func TestGettersDocPagesInsertBlank200Response(t *testing.T) { t.Run("GetMeta_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200Response + var obj *DocPagesSetName200Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -244491,12 +287687,12 @@ func TestGettersDocPagesInsertBlank200Response(t *testing.T) { } -func TestSettersMarkExplicitDocPagesInsertBlank200Response(t *testing.T) { +func TestSettersMarkExplicitDocPagesSetName200Response(t *testing.T) { t.Run("SetMeta_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200Response{} - var fernTestValueMeta *DocPagesInsertBlank200ResponseMeta + obj := &DocPagesSetName200Response{} + var fernTestValueMeta *DocPagesSetName200ResponseMeta // Act obj.SetMeta(fernTestValueMeta) @@ -244525,18 +287721,18 @@ func TestSettersMarkExplicitDocPagesInsertBlank200Response(t *testing.T) { } -func TestSettersDocPagesInsertBlank200ResponseMeta(t *testing.T) { +func TestSettersDocPagesSetName200ResponseMeta(t *testing.T) { t.Run("SetAffectedPages", func(t *testing.T) { - obj := &DocPagesInsertBlank200ResponseMeta{} - var fernTestValueAffectedPages []*DocPagesInsertBlank200ResponseMetaAffectedPagesItem + obj := &DocPagesSetName200ResponseMeta{} + var fernTestValueAffectedPages []*DocPagesSetName200ResponseMetaAffectedPagesItem obj.SetAffectedPages(fernTestValueAffectedPages) assert.Equal(t, fernTestValueAffectedPages, obj.AffectedPages) assert.NotNil(t, obj.explicitFields) }) t.Run("SetCacheDelta", func(t *testing.T) { - obj := &DocPagesInsertBlank200ResponseMeta{} - var fernTestValueCacheDelta *DocPagesInsertBlank200ResponseMetaCacheDelta + obj := &DocPagesSetName200ResponseMeta{} + var fernTestValueCacheDelta *DocPagesSetName200ResponseMetaCacheDelta obj.SetCacheDelta(fernTestValueCacheDelta) assert.Equal(t, fernTestValueCacheDelta, obj.CacheDelta) assert.NotNil(t, obj.explicitFields) @@ -244544,12 +287740,12 @@ func TestSettersDocPagesInsertBlank200ResponseMeta(t *testing.T) { } -func TestGettersDocPagesInsertBlank200ResponseMeta(t *testing.T) { +func TestGettersDocPagesSetName200ResponseMeta(t *testing.T) { t.Run("GetAffectedPages", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMeta{} - var expected []*DocPagesInsertBlank200ResponseMetaAffectedPagesItem + obj := &DocPagesSetName200ResponseMeta{} + var expected []*DocPagesSetName200ResponseMetaAffectedPagesItem obj.AffectedPages = expected // Act & Assert @@ -244559,7 +287755,7 @@ func TestGettersDocPagesInsertBlank200ResponseMeta(t *testing.T) { t.Run("GetAffectedPages_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMeta{} + obj := &DocPagesSetName200ResponseMeta{} obj.AffectedPages = nil // Act & Assert @@ -244568,7 +287764,7 @@ func TestGettersDocPagesInsertBlank200ResponseMeta(t *testing.T) { t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMeta + var obj *DocPagesSetName200ResponseMeta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -244581,8 +287777,8 @@ func TestGettersDocPagesInsertBlank200ResponseMeta(t *testing.T) { t.Run("GetCacheDelta", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMeta{} - var expected *DocPagesInsertBlank200ResponseMetaCacheDelta + obj := &DocPagesSetName200ResponseMeta{} + var expected *DocPagesSetName200ResponseMetaCacheDelta obj.CacheDelta = expected // Act & Assert @@ -244592,7 +287788,7 @@ func TestGettersDocPagesInsertBlank200ResponseMeta(t *testing.T) { t.Run("GetCacheDelta_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMeta{} + obj := &DocPagesSetName200ResponseMeta{} obj.CacheDelta = nil // Act & Assert @@ -244601,7 +287797,7 @@ func TestGettersDocPagesInsertBlank200ResponseMeta(t *testing.T) { t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMeta + var obj *DocPagesSetName200ResponseMeta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -244613,12 +287809,12 @@ func TestGettersDocPagesInsertBlank200ResponseMeta(t *testing.T) { } -func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMeta(t *testing.T) { +func TestSettersMarkExplicitDocPagesSetName200ResponseMeta(t *testing.T) { t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMeta{} - var fernTestValueAffectedPages []*DocPagesInsertBlank200ResponseMetaAffectedPagesItem + obj := &DocPagesSetName200ResponseMeta{} + var fernTestValueAffectedPages []*DocPagesSetName200ResponseMetaAffectedPagesItem // Act obj.SetAffectedPages(fernTestValueAffectedPages) @@ -244648,8 +287844,8 @@ func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMeta(t *testing.T) { t.Run("SetCacheDelta_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMeta{} - var fernTestValueCacheDelta *DocPagesInsertBlank200ResponseMetaCacheDelta + obj := &DocPagesSetName200ResponseMeta{} + var fernTestValueCacheDelta *DocPagesSetName200ResponseMetaCacheDelta // Act obj.SetCacheDelta(fernTestValueCacheDelta) @@ -244678,9 +287874,9 @@ func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMeta(t *testing.T) { } -func TestSettersDocPagesInsertBlank200ResponseMetaAffectedPagesItem(t *testing.T) { +func TestSettersDocPagesSetName200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} + obj := &DocPagesSetName200ResponseMetaAffectedPagesItem{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -244688,16 +287884,16 @@ func TestSettersDocPagesInsertBlank200ResponseMetaAffectedPagesItem(t *testing.T }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision + obj := &DocPagesSetName200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocPagesSetName200ResponseMetaAffectedPagesItemRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) }) t.Run("SetWeakAnnotationState", func(t *testing.T) { - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocPagesSetName200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) assert.NotNil(t, obj.explicitFields) @@ -244705,11 +287901,11 @@ func TestSettersDocPagesInsertBlank200ResponseMetaAffectedPagesItem(t *testing.T } -func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItem(t *testing.T) { +func TestGettersDocPagesSetName200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} + obj := &DocPagesSetName200ResponseMetaAffectedPagesItem{} var expected int obj.PageObjectNumber = expected @@ -244719,7 +287915,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItem(t *testing.T t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaAffectedPagesItem + var obj *DocPagesSetName200ResponseMetaAffectedPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -244732,8 +287928,8 @@ func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItem(t *testing.T t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} - var expected *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision + obj := &DocPagesSetName200ResponseMetaAffectedPagesItem{} + var expected *DocPagesSetName200ResponseMetaAffectedPagesItemRevision obj.Revision = expected // Act & Assert @@ -244743,7 +287939,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItem(t *testing.T t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} + obj := &DocPagesSetName200ResponseMetaAffectedPagesItem{} obj.Revision = nil // Act & Assert @@ -244752,7 +287948,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItem(t *testing.T t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaAffectedPagesItem + var obj *DocPagesSetName200ResponseMetaAffectedPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -244765,8 +287961,8 @@ func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItem(t *testing.T t.Run("GetWeakAnnotationState", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} - var expected *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocPagesSetName200ResponseMetaAffectedPagesItem{} + var expected *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState obj.WeakAnnotationState = expected // Act & Assert @@ -244776,7 +287972,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItem(t *testing.T t.Run("GetWeakAnnotationState_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} + obj := &DocPagesSetName200ResponseMetaAffectedPagesItem{} obj.WeakAnnotationState = nil // Act & Assert @@ -244785,7 +287981,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItem(t *testing.T t.Run("GetWeakAnnotationState_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaAffectedPagesItem + var obj *DocPagesSetName200ResponseMetaAffectedPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -244797,11 +287993,11 @@ func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItem(t *testing.T } -func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaAffectedPagesItem(t *testing.T) { +func TestSettersMarkExplicitDocPagesSetName200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} + obj := &DocPagesSetName200ResponseMetaAffectedPagesItem{} var fernTestValuePageObjectNumber int // Act @@ -244832,8 +288028,8 @@ func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaAffectedPagesItem( t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision + obj := &DocPagesSetName200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocPagesSetName200ResponseMetaAffectedPagesItemRevision // Act obj.SetRevision(fernTestValueRevision) @@ -244863,8 +288059,8 @@ func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaAffectedPagesItem( t.Run("SetWeakAnnotationState_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocPagesSetName200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState // Act obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) @@ -244893,9 +288089,9 @@ func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaAffectedPagesItem( } -func TestSettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision(t *testing.T) { +func TestSettersDocPagesSetName200ResponseMetaAffectedPagesItemRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesSetName200ResponseMetaAffectedPagesItemRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -244903,7 +288099,7 @@ func TestSettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision(t *t }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesSetName200ResponseMetaAffectedPagesItemRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -244911,7 +288107,7 @@ func TestSettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision(t *t }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesSetName200ResponseMetaAffectedPagesItemRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -244920,11 +288116,11 @@ func TestSettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision(t *t } -func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision(t *testing.T) { +func TestGettersDocPagesSetName200ResponseMetaAffectedPagesItemRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesSetName200ResponseMetaAffectedPagesItemRevision{} var expected string obj.DocSessionID = expected @@ -244934,7 +288130,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision(t *t t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision + var obj *DocPagesSetName200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -244947,7 +288143,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision(t *t t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesSetName200ResponseMetaAffectedPagesItemRevision{} var expected int obj.PageObjectNumber = expected @@ -244957,7 +288153,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision(t *t t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision + var obj *DocPagesSetName200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -244970,7 +288166,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision(t *t t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesSetName200ResponseMetaAffectedPagesItemRevision{} var expected int obj.Generation = expected @@ -244980,7 +288176,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision(t *t t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision + var obj *DocPagesSetName200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -244992,11 +288188,11 @@ func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision(t *t } -func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision(t *testing.T) { +func TestSettersMarkExplicitDocPagesSetName200ResponseMetaAffectedPagesItemRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesSetName200ResponseMetaAffectedPagesItemRevision{} var fernTestValueDocSessionID string // Act @@ -245027,7 +288223,7 @@ func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaAffectedPagesItemR t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesSetName200ResponseMetaAffectedPagesItemRevision{} var fernTestValuePageObjectNumber int // Act @@ -245058,7 +288254,7 @@ func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaAffectedPagesItemR t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesSetName200ResponseMetaAffectedPagesItemRevision{} var fernTestValueGeneration int // Act @@ -245088,11 +288284,11 @@ func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaAffectedPagesItemR } -func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { +func TestGettersDocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj := &DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState{} var expected string obj.Kind = expected @@ -245102,7 +288298,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotatio t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -245115,8 +288311,8 @@ func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotatio t.Run("GetUnknown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + obj := &DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown obj.Unknown = expected // Act & Assert @@ -245126,7 +288322,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotatio t.Run("GetUnknown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj := &DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState{} obj.Unknown = nil // Act & Assert @@ -245135,7 +288331,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotatio t.Run("GetUnknown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -245148,8 +288344,8 @@ func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotatio t.Run("GetKnown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + obj := &DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown obj.Known = expected // Act & Assert @@ -245159,7 +288355,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotatio t.Run("GetKnown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj := &DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState{} obj.Known = nil // Act & Assert @@ -245168,7 +288364,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotatio t.Run("GetKnown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -245180,9 +288376,9 @@ func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotatio } -func TestSettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { +func TestSettersDocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { t.Run("SetHasAnyWeakAnnotations", func(t *testing.T) { - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + obj := &DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} var fernTestValueHasAnyWeakAnnotations bool obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) assert.Equal(t, fernTestValueHasAnyWeakAnnotations, obj.HasAnyWeakAnnotations) @@ -245191,11 +288387,11 @@ func TestSettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotatio } -func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { +func TestGettersDocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + obj := &DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} var expected bool obj.HasAnyWeakAnnotations = expected @@ -245205,7 +288401,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotatio t.Run("GetHasAnyWeakAnnotations_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + var obj *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -245217,11 +288413,11 @@ func TestGettersDocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotatio } -func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { +func TestSettersMarkExplicitDocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + obj := &DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} var fernTestValueHasAnyWeakAnnotations bool // Act @@ -245251,9 +288447,9 @@ func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaAffectedPagesItemW } -func TestSettersDocPagesInsertBlank200ResponseMetaCacheDelta(t *testing.T) { +func TestSettersDocPagesSetName200ResponseMetaCacheDelta(t *testing.T) { t.Run("SetPreviousDocVersion", func(t *testing.T) { - obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + obj := &DocPagesSetName200ResponseMetaCacheDelta{} var fernTestValuePreviousDocVersion int obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) assert.Equal(t, fernTestValuePreviousDocVersion, obj.PreviousDocVersion) @@ -245261,7 +288457,7 @@ func TestSettersDocPagesInsertBlank200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetDocVersion", func(t *testing.T) { - obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + obj := &DocPagesSetName200ResponseMetaCacheDelta{} var fernTestValueDocVersion int obj.SetDocVersion(fernTestValueDocVersion) assert.Equal(t, fernTestValueDocVersion, obj.DocVersion) @@ -245269,7 +288465,7 @@ func TestSettersDocPagesInsertBlank200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetAnnotationsVersion", func(t *testing.T) { - obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + obj := &DocPagesSetName200ResponseMetaCacheDelta{} var fernTestValueAnnotationsVersion *int obj.SetAnnotationsVersion(fernTestValueAnnotationsVersion) assert.Equal(t, fernTestValueAnnotationsVersion, obj.AnnotationsVersion) @@ -245277,7 +288473,7 @@ func TestSettersDocPagesInsertBlank200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetLayerVersion", func(t *testing.T) { - obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + obj := &DocPagesSetName200ResponseMetaCacheDelta{} var fernTestValueLayerVersion *int obj.SetLayerVersion(fernTestValueLayerVersion) assert.Equal(t, fernTestValueLayerVersion, obj.LayerVersion) @@ -245285,7 +288481,7 @@ func TestSettersDocPagesInsertBlank200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetWorking", func(t *testing.T) { - obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + obj := &DocPagesSetName200ResponseMetaCacheDelta{} var fernTestValueWorking *bool obj.SetWorking(fernTestValueWorking) assert.Equal(t, fernTestValueWorking, obj.Working) @@ -245293,8 +288489,8 @@ func TestSettersDocPagesInsertBlank200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetPages", func(t *testing.T) { - obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem + obj := &DocPagesSetName200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocPagesSetName200ResponseMetaCacheDeltaPagesItem obj.SetPages(fernTestValuePages) assert.Equal(t, fernTestValuePages, obj.Pages) assert.NotNil(t, obj.explicitFields) @@ -245302,11 +288498,11 @@ func TestSettersDocPagesInsertBlank200ResponseMetaCacheDelta(t *testing.T) { } -func TestGettersDocPagesInsertBlank200ResponseMetaCacheDelta(t *testing.T) { +func TestGettersDocPagesSetName200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPreviousDocVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + obj := &DocPagesSetName200ResponseMetaCacheDelta{} var expected int obj.PreviousDocVersion = expected @@ -245316,7 +288512,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaCacheDelta + var obj *DocPagesSetName200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -245329,7 +288525,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetDocVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + obj := &DocPagesSetName200ResponseMetaCacheDelta{} var expected int obj.DocVersion = expected @@ -245339,7 +288535,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaCacheDelta + var obj *DocPagesSetName200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -245352,7 +288548,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetAnnotationsVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + obj := &DocPagesSetName200ResponseMetaCacheDelta{} var expected *int obj.AnnotationsVersion = expected @@ -245363,7 +288559,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetAnnotationsVersion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + obj := &DocPagesSetName200ResponseMetaCacheDelta{} obj.AnnotationsVersion = nil // Act & Assert @@ -245372,7 +288568,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetAnnotationsVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaCacheDelta + var obj *DocPagesSetName200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -245385,7 +288581,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetLayerVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + obj := &DocPagesSetName200ResponseMetaCacheDelta{} var expected *int obj.LayerVersion = expected @@ -245396,7 +288592,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetLayerVersion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + obj := &DocPagesSetName200ResponseMetaCacheDelta{} obj.LayerVersion = nil // Act & Assert @@ -245405,7 +288601,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetLayerVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaCacheDelta + var obj *DocPagesSetName200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -245418,7 +288614,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetWorking", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + obj := &DocPagesSetName200ResponseMetaCacheDelta{} var expected *bool obj.Working = expected @@ -245429,7 +288625,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetWorking_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + obj := &DocPagesSetName200ResponseMetaCacheDelta{} obj.Working = nil // Act & Assert @@ -245438,7 +288634,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetWorking_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaCacheDelta + var obj *DocPagesSetName200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -245451,8 +288647,8 @@ func TestGettersDocPagesInsertBlank200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPages", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} - var expected []*DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem + obj := &DocPagesSetName200ResponseMetaCacheDelta{} + var expected []*DocPagesSetName200ResponseMetaCacheDeltaPagesItem obj.Pages = expected // Act & Assert @@ -245462,7 +288658,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPages_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + obj := &DocPagesSetName200ResponseMetaCacheDelta{} obj.Pages = nil // Act & Assert @@ -245471,7 +288667,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPages_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaCacheDelta + var obj *DocPagesSetName200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -245483,11 +288679,11 @@ func TestGettersDocPagesInsertBlank200ResponseMetaCacheDelta(t *testing.T) { } -func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaCacheDelta(t *testing.T) { +func TestSettersMarkExplicitDocPagesSetName200ResponseMetaCacheDelta(t *testing.T) { t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + obj := &DocPagesSetName200ResponseMetaCacheDelta{} var fernTestValuePreviousDocVersion int // Act @@ -245518,7 +288714,7 @@ func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaCacheDelta(t *test t.Run("SetDocVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + obj := &DocPagesSetName200ResponseMetaCacheDelta{} var fernTestValueDocVersion int // Act @@ -245549,7 +288745,7 @@ func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaCacheDelta(t *test t.Run("SetAnnotationsVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + obj := &DocPagesSetName200ResponseMetaCacheDelta{} var fernTestValueAnnotationsVersion *int // Act @@ -245580,7 +288776,7 @@ func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaCacheDelta(t *test t.Run("SetLayerVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + obj := &DocPagesSetName200ResponseMetaCacheDelta{} var fernTestValueLayerVersion *int // Act @@ -245611,7 +288807,7 @@ func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaCacheDelta(t *test t.Run("SetWorking_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} + obj := &DocPagesSetName200ResponseMetaCacheDelta{} var fernTestValueWorking *bool // Act @@ -245642,8 +288838,8 @@ func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaCacheDelta(t *test t.Run("SetPages_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem + obj := &DocPagesSetName200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocPagesSetName200ResponseMetaCacheDeltaPagesItem // Act obj.SetPages(fernTestValuePages) @@ -245672,9 +288868,9 @@ func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaCacheDelta(t *test } -func TestSettersDocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem(t *testing.T) { +func TestSettersDocPagesSetName200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem{} + obj := &DocPagesSetName200ResponseMetaCacheDeltaPagesItem{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -245682,8 +288878,8 @@ func TestSettersDocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem(t *testing }) t.Run("SetCache", func(t *testing.T) { - obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache + obj := &DocPagesSetName200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache obj.SetCache(fernTestValueCache) assert.Equal(t, fernTestValueCache, obj.Cache) assert.NotNil(t, obj.explicitFields) @@ -245691,11 +288887,11 @@ func TestSettersDocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem(t *testing } -func TestGettersDocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem(t *testing.T) { +func TestGettersDocPagesSetName200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem{} + obj := &DocPagesSetName200ResponseMetaCacheDeltaPagesItem{} var expected int obj.PageObjectNumber = expected @@ -245705,7 +288901,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem(t *testing t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem + var obj *DocPagesSetName200ResponseMetaCacheDeltaPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -245718,8 +288914,8 @@ func TestGettersDocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem(t *testing t.Run("GetCache", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem{} - var expected *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache + obj := &DocPagesSetName200ResponseMetaCacheDeltaPagesItem{} + var expected *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache obj.Cache = expected // Act & Assert @@ -245729,7 +288925,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem(t *testing t.Run("GetCache_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem{} + obj := &DocPagesSetName200ResponseMetaCacheDeltaPagesItem{} obj.Cache = nil // Act & Assert @@ -245738,7 +288934,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem(t *testing t.Run("GetCache_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem + var obj *DocPagesSetName200ResponseMetaCacheDeltaPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -245750,11 +288946,11 @@ func TestGettersDocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem(t *testing } -func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem(t *testing.T) { +func TestSettersMarkExplicitDocPagesSetName200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem{} + obj := &DocPagesSetName200ResponseMetaCacheDeltaPagesItem{} var fernTestValuePageObjectNumber int // Act @@ -245785,8 +288981,8 @@ func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaCacheDeltaPagesIte t.Run("SetCache_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache + obj := &DocPagesSetName200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache // Act obj.SetCache(fernTestValueCache) @@ -245815,9 +289011,9 @@ func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaCacheDeltaPagesIte } -func TestSettersDocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { +func TestSettersDocPagesSetName200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { t.Run("SetContentVersion", func(t *testing.T) { - obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache{} + obj := &DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache{} var fernTestValueContentVersion int obj.SetContentVersion(fernTestValueContentVersion) assert.Equal(t, fernTestValueContentVersion, obj.ContentVersion) @@ -245825,7 +289021,7 @@ func TestSettersDocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache(t *te }) t.Run("SetAnnotationVersion", func(t *testing.T) { - obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache{} + obj := &DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache{} var fernTestValueAnnotationVersion int obj.SetAnnotationVersion(fernTestValueAnnotationVersion) assert.Equal(t, fernTestValueAnnotationVersion, obj.AnnotationVersion) @@ -245834,11 +289030,11 @@ func TestSettersDocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache(t *te } -func TestGettersDocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { +func TestGettersDocPagesSetName200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { t.Run("GetContentVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache{} + obj := &DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache{} var expected int obj.ContentVersion = expected @@ -245848,7 +289044,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache(t *te t.Run("GetContentVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache + var obj *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -245861,7 +289057,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache(t *te t.Run("GetAnnotationVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache{} + obj := &DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache{} var expected int obj.AnnotationVersion = expected @@ -245871,7 +289067,7 @@ func TestGettersDocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache(t *te t.Run("GetAnnotationVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache + var obj *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -245883,11 +289079,11 @@ func TestGettersDocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache(t *te } -func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { +func TestSettersMarkExplicitDocPagesSetName200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { t.Run("SetContentVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache{} + obj := &DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache{} var fernTestValueContentVersion int // Act @@ -245918,7 +289114,7 @@ func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaCacheDeltaPagesIte t.Run("SetAnnotationVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank200ResponseMetaCacheDeltaPagesItemCache{} + obj := &DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache{} var fernTestValueAnnotationVersion int // Act @@ -245948,25 +289144,25 @@ func TestSettersMarkExplicitDocPagesInsertBlank200ResponseMetaCacheDeltaPagesIte } -func TestSettersDocPagesInsertBlank400Response(t *testing.T) { +func TestSettersDocPagesSetName400Response(t *testing.T) { t.Run("SetName", func(t *testing.T) { - obj := &DocPagesInsertBlank400Response{} - var fernTestValueName DocPagesInsertBlank400ResponseName + obj := &DocPagesSetName400Response{} + var fernTestValueName DocPagesSetName400ResponseName obj.SetName(fernTestValueName) assert.Equal(t, fernTestValueName, obj.Name) assert.NotNil(t, obj.explicitFields) }) t.Run("SetCode", func(t *testing.T) { - obj := &DocPagesInsertBlank400Response{} - var fernTestValueCode DocPagesInsertBlank400ResponseCode + obj := &DocPagesSetName400Response{} + var fernTestValueCode DocPagesSetName400ResponseCode obj.SetCode(fernTestValueCode) assert.Equal(t, fernTestValueCode, obj.Code) assert.NotNil(t, obj.explicitFields) }) t.Run("SetMessage", func(t *testing.T) { - obj := &DocPagesInsertBlank400Response{} + obj := &DocPagesSetName400Response{} var fernTestValueMessage string obj.SetMessage(fernTestValueMessage) assert.Equal(t, fernTestValueMessage, obj.Message) @@ -245974,7 +289170,7 @@ func TestSettersDocPagesInsertBlank400Response(t *testing.T) { }) t.Run("SetDetails", func(t *testing.T) { - obj := &DocPagesInsertBlank400Response{} + obj := &DocPagesSetName400Response{} var fernTestValueDetails map[string]any obj.SetDetails(fernTestValueDetails) assert.Equal(t, fernTestValueDetails, obj.Details) @@ -245983,12 +289179,12 @@ func TestSettersDocPagesInsertBlank400Response(t *testing.T) { } -func TestGettersDocPagesInsertBlank400Response(t *testing.T) { +func TestGettersDocPagesSetName400Response(t *testing.T) { t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank400Response{} - var expected DocPagesInsertBlank400ResponseName + obj := &DocPagesSetName400Response{} + var expected DocPagesSetName400ResponseName obj.Name = expected // Act & Assert @@ -245997,7 +289193,7 @@ func TestGettersDocPagesInsertBlank400Response(t *testing.T) { t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank400Response + var obj *DocPagesSetName400Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -246010,8 +289206,8 @@ func TestGettersDocPagesInsertBlank400Response(t *testing.T) { t.Run("GetCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank400Response{} - var expected DocPagesInsertBlank400ResponseCode + obj := &DocPagesSetName400Response{} + var expected DocPagesSetName400ResponseCode obj.Code = expected // Act & Assert @@ -246020,7 +289216,7 @@ func TestGettersDocPagesInsertBlank400Response(t *testing.T) { t.Run("GetCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank400Response + var obj *DocPagesSetName400Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -246033,7 +289229,7 @@ func TestGettersDocPagesInsertBlank400Response(t *testing.T) { t.Run("GetMessage", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank400Response{} + obj := &DocPagesSetName400Response{} var expected string obj.Message = expected @@ -246043,7 +289239,7 @@ func TestGettersDocPagesInsertBlank400Response(t *testing.T) { t.Run("GetMessage_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank400Response + var obj *DocPagesSetName400Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -246056,7 +289252,7 @@ func TestGettersDocPagesInsertBlank400Response(t *testing.T) { t.Run("GetDetails", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank400Response{} + obj := &DocPagesSetName400Response{} var expected map[string]any obj.Details = expected @@ -246067,7 +289263,7 @@ func TestGettersDocPagesInsertBlank400Response(t *testing.T) { t.Run("GetDetails_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank400Response{} + obj := &DocPagesSetName400Response{} obj.Details = nil // Act & Assert @@ -246076,7 +289272,7 @@ func TestGettersDocPagesInsertBlank400Response(t *testing.T) { t.Run("GetDetails_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank400Response + var obj *DocPagesSetName400Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -246088,12 +289284,12 @@ func TestGettersDocPagesInsertBlank400Response(t *testing.T) { } -func TestSettersMarkExplicitDocPagesInsertBlank400Response(t *testing.T) { +func TestSettersMarkExplicitDocPagesSetName400Response(t *testing.T) { t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank400Response{} - var fernTestValueName DocPagesInsertBlank400ResponseName + obj := &DocPagesSetName400Response{} + var fernTestValueName DocPagesSetName400ResponseName // Act obj.SetName(fernTestValueName) @@ -246123,8 +289319,8 @@ func TestSettersMarkExplicitDocPagesInsertBlank400Response(t *testing.T) { t.Run("SetCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank400Response{} - var fernTestValueCode DocPagesInsertBlank400ResponseCode + obj := &DocPagesSetName400Response{} + var fernTestValueCode DocPagesSetName400ResponseCode // Act obj.SetCode(fernTestValueCode) @@ -246154,7 +289350,7 @@ func TestSettersMarkExplicitDocPagesInsertBlank400Response(t *testing.T) { t.Run("SetMessage_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank400Response{} + obj := &DocPagesSetName400Response{} var fernTestValueMessage string // Act @@ -246185,7 +289381,7 @@ func TestSettersMarkExplicitDocPagesInsertBlank400Response(t *testing.T) { t.Run("SetDetails_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank400Response{} + obj := &DocPagesSetName400Response{} var fernTestValueDetails map[string]any // Act @@ -246215,25 +289411,25 @@ func TestSettersMarkExplicitDocPagesInsertBlank400Response(t *testing.T) { } -func TestSettersDocPagesInsertBlank404Response(t *testing.T) { +func TestSettersDocPagesSetName404Response(t *testing.T) { t.Run("SetName", func(t *testing.T) { - obj := &DocPagesInsertBlank404Response{} - var fernTestValueName DocPagesInsertBlank404ResponseName + obj := &DocPagesSetName404Response{} + var fernTestValueName DocPagesSetName404ResponseName obj.SetName(fernTestValueName) assert.Equal(t, fernTestValueName, obj.Name) assert.NotNil(t, obj.explicitFields) }) t.Run("SetCode", func(t *testing.T) { - obj := &DocPagesInsertBlank404Response{} - var fernTestValueCode DocPagesInsertBlank404ResponseCode + obj := &DocPagesSetName404Response{} + var fernTestValueCode DocPagesSetName404ResponseCode obj.SetCode(fernTestValueCode) assert.Equal(t, fernTestValueCode, obj.Code) assert.NotNil(t, obj.explicitFields) }) t.Run("SetMessage", func(t *testing.T) { - obj := &DocPagesInsertBlank404Response{} + obj := &DocPagesSetName404Response{} var fernTestValueMessage string obj.SetMessage(fernTestValueMessage) assert.Equal(t, fernTestValueMessage, obj.Message) @@ -246241,7 +289437,7 @@ func TestSettersDocPagesInsertBlank404Response(t *testing.T) { }) t.Run("SetDetails", func(t *testing.T) { - obj := &DocPagesInsertBlank404Response{} + obj := &DocPagesSetName404Response{} var fernTestValueDetails map[string]any obj.SetDetails(fernTestValueDetails) assert.Equal(t, fernTestValueDetails, obj.Details) @@ -246250,12 +289446,12 @@ func TestSettersDocPagesInsertBlank404Response(t *testing.T) { } -func TestGettersDocPagesInsertBlank404Response(t *testing.T) { +func TestGettersDocPagesSetName404Response(t *testing.T) { t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank404Response{} - var expected DocPagesInsertBlank404ResponseName + obj := &DocPagesSetName404Response{} + var expected DocPagesSetName404ResponseName obj.Name = expected // Act & Assert @@ -246264,7 +289460,7 @@ func TestGettersDocPagesInsertBlank404Response(t *testing.T) { t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank404Response + var obj *DocPagesSetName404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -246277,8 +289473,8 @@ func TestGettersDocPagesInsertBlank404Response(t *testing.T) { t.Run("GetCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank404Response{} - var expected DocPagesInsertBlank404ResponseCode + obj := &DocPagesSetName404Response{} + var expected DocPagesSetName404ResponseCode obj.Code = expected // Act & Assert @@ -246287,7 +289483,7 @@ func TestGettersDocPagesInsertBlank404Response(t *testing.T) { t.Run("GetCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank404Response + var obj *DocPagesSetName404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -246300,7 +289496,7 @@ func TestGettersDocPagesInsertBlank404Response(t *testing.T) { t.Run("GetMessage", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank404Response{} + obj := &DocPagesSetName404Response{} var expected string obj.Message = expected @@ -246310,7 +289506,7 @@ func TestGettersDocPagesInsertBlank404Response(t *testing.T) { t.Run("GetMessage_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank404Response + var obj *DocPagesSetName404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -246323,7 +289519,7 @@ func TestGettersDocPagesInsertBlank404Response(t *testing.T) { t.Run("GetDetails", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank404Response{} + obj := &DocPagesSetName404Response{} var expected map[string]any obj.Details = expected @@ -246334,7 +289530,7 @@ func TestGettersDocPagesInsertBlank404Response(t *testing.T) { t.Run("GetDetails_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank404Response{} + obj := &DocPagesSetName404Response{} obj.Details = nil // Act & Assert @@ -246343,7 +289539,7 @@ func TestGettersDocPagesInsertBlank404Response(t *testing.T) { t.Run("GetDetails_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesInsertBlank404Response + var obj *DocPagesSetName404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -246355,12 +289551,12 @@ func TestGettersDocPagesInsertBlank404Response(t *testing.T) { } -func TestSettersMarkExplicitDocPagesInsertBlank404Response(t *testing.T) { +func TestSettersMarkExplicitDocPagesSetName404Response(t *testing.T) { t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank404Response{} - var fernTestValueName DocPagesInsertBlank404ResponseName + obj := &DocPagesSetName404Response{} + var fernTestValueName DocPagesSetName404ResponseName // Act obj.SetName(fernTestValueName) @@ -246390,8 +289586,8 @@ func TestSettersMarkExplicitDocPagesInsertBlank404Response(t *testing.T) { t.Run("SetCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank404Response{} - var fernTestValueCode DocPagesInsertBlank404ResponseCode + obj := &DocPagesSetName404Response{} + var fernTestValueCode DocPagesSetName404ResponseCode // Act obj.SetCode(fernTestValueCode) @@ -246421,7 +289617,7 @@ func TestSettersMarkExplicitDocPagesInsertBlank404Response(t *testing.T) { t.Run("SetMessage_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank404Response{} + obj := &DocPagesSetName404Response{} var fernTestValueMessage string // Act @@ -246452,7 +289648,7 @@ func TestSettersMarkExplicitDocPagesInsertBlank404Response(t *testing.T) { t.Run("SetDetails_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesInsertBlank404Response{} + obj := &DocPagesSetName404Response{} var fernTestValueDetails map[string]any // Act @@ -246482,10 +289678,18 @@ func TestSettersMarkExplicitDocPagesInsertBlank404Response(t *testing.T) { } -func TestSettersDocPagesMove200Response(t *testing.T) { +func TestSettersDocPagesSetScale200Response(t *testing.T) { + t.Run("SetPageObjectNumber", func(t *testing.T) { + obj := &DocPagesSetScale200Response{} + var fernTestValuePageObjectNumber int + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + assert.NotNil(t, obj.explicitFields) + }) + t.Run("SetMeta", func(t *testing.T) { - obj := &DocPagesMove200Response{} - var fernTestValueMeta *DocPagesMove200ResponseMeta + obj := &DocPagesSetScale200Response{} + var fernTestValueMeta *DocPagesSetScale200ResponseMeta obj.SetMeta(fernTestValueMeta) assert.Equal(t, fernTestValueMeta, obj.Meta) assert.NotNil(t, obj.explicitFields) @@ -246493,12 +289697,35 @@ func TestSettersDocPagesMove200Response(t *testing.T) { } -func TestGettersDocPagesMove200Response(t *testing.T) { +func TestGettersDocPagesSetScale200Response(t *testing.T) { + t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScale200Response{} + var expected int + obj.PageObjectNumber = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + }) + + t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScale200Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPageObjectNumber() // Should return zero value + }) + t.Run("GetMeta", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200Response{} - var expected *DocPagesMove200ResponseMeta + obj := &DocPagesSetScale200Response{} + var expected *DocPagesSetScale200ResponseMeta obj.Meta = expected // Act & Assert @@ -246508,7 +289735,7 @@ func TestGettersDocPagesMove200Response(t *testing.T) { t.Run("GetMeta_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200Response{} + obj := &DocPagesSetScale200Response{} obj.Meta = nil // Act & Assert @@ -246517,7 +289744,7 @@ func TestGettersDocPagesMove200Response(t *testing.T) { t.Run("GetMeta_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200Response + var obj *DocPagesSetScale200Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -246529,12 +289756,43 @@ func TestGettersDocPagesMove200Response(t *testing.T) { } -func TestSettersMarkExplicitDocPagesMove200Response(t *testing.T) { +func TestSettersMarkExplicitDocPagesSetScale200Response(t *testing.T) { + t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScale200Response{} + var fernTestValuePageObjectNumber int + + // Act + obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + t.Run("SetMeta_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200Response{} - var fernTestValueMeta *DocPagesMove200ResponseMeta + obj := &DocPagesSetScale200Response{} + var fernTestValueMeta *DocPagesSetScale200ResponseMeta // Act obj.SetMeta(fernTestValueMeta) @@ -246563,18 +289821,18 @@ func TestSettersMarkExplicitDocPagesMove200Response(t *testing.T) { } -func TestSettersDocPagesMove200ResponseMeta(t *testing.T) { +func TestSettersDocPagesSetScale200ResponseMeta(t *testing.T) { t.Run("SetAffectedPages", func(t *testing.T) { - obj := &DocPagesMove200ResponseMeta{} - var fernTestValueAffectedPages []*DocPagesMove200ResponseMetaAffectedPagesItem + obj := &DocPagesSetScale200ResponseMeta{} + var fernTestValueAffectedPages []*DocPagesSetScale200ResponseMetaAffectedPagesItem obj.SetAffectedPages(fernTestValueAffectedPages) assert.Equal(t, fernTestValueAffectedPages, obj.AffectedPages) assert.NotNil(t, obj.explicitFields) }) t.Run("SetCacheDelta", func(t *testing.T) { - obj := &DocPagesMove200ResponseMeta{} - var fernTestValueCacheDelta *DocPagesMove200ResponseMetaCacheDelta + obj := &DocPagesSetScale200ResponseMeta{} + var fernTestValueCacheDelta *DocPagesSetScale200ResponseMetaCacheDelta obj.SetCacheDelta(fernTestValueCacheDelta) assert.Equal(t, fernTestValueCacheDelta, obj.CacheDelta) assert.NotNil(t, obj.explicitFields) @@ -246582,12 +289840,12 @@ func TestSettersDocPagesMove200ResponseMeta(t *testing.T) { } -func TestGettersDocPagesMove200ResponseMeta(t *testing.T) { +func TestGettersDocPagesSetScale200ResponseMeta(t *testing.T) { t.Run("GetAffectedPages", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMeta{} - var expected []*DocPagesMove200ResponseMetaAffectedPagesItem + obj := &DocPagesSetScale200ResponseMeta{} + var expected []*DocPagesSetScale200ResponseMetaAffectedPagesItem obj.AffectedPages = expected // Act & Assert @@ -246597,7 +289855,7 @@ func TestGettersDocPagesMove200ResponseMeta(t *testing.T) { t.Run("GetAffectedPages_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMeta{} + obj := &DocPagesSetScale200ResponseMeta{} obj.AffectedPages = nil // Act & Assert @@ -246606,7 +289864,7 @@ func TestGettersDocPagesMove200ResponseMeta(t *testing.T) { t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMeta + var obj *DocPagesSetScale200ResponseMeta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -246619,8 +289877,8 @@ func TestGettersDocPagesMove200ResponseMeta(t *testing.T) { t.Run("GetCacheDelta", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMeta{} - var expected *DocPagesMove200ResponseMetaCacheDelta + obj := &DocPagesSetScale200ResponseMeta{} + var expected *DocPagesSetScale200ResponseMetaCacheDelta obj.CacheDelta = expected // Act & Assert @@ -246630,7 +289888,7 @@ func TestGettersDocPagesMove200ResponseMeta(t *testing.T) { t.Run("GetCacheDelta_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMeta{} + obj := &DocPagesSetScale200ResponseMeta{} obj.CacheDelta = nil // Act & Assert @@ -246639,7 +289897,7 @@ func TestGettersDocPagesMove200ResponseMeta(t *testing.T) { t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMeta + var obj *DocPagesSetScale200ResponseMeta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -246651,12 +289909,12 @@ func TestGettersDocPagesMove200ResponseMeta(t *testing.T) { } -func TestSettersMarkExplicitDocPagesMove200ResponseMeta(t *testing.T) { +func TestSettersMarkExplicitDocPagesSetScale200ResponseMeta(t *testing.T) { t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMeta{} - var fernTestValueAffectedPages []*DocPagesMove200ResponseMetaAffectedPagesItem + obj := &DocPagesSetScale200ResponseMeta{} + var fernTestValueAffectedPages []*DocPagesSetScale200ResponseMetaAffectedPagesItem // Act obj.SetAffectedPages(fernTestValueAffectedPages) @@ -246686,8 +289944,8 @@ func TestSettersMarkExplicitDocPagesMove200ResponseMeta(t *testing.T) { t.Run("SetCacheDelta_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMeta{} - var fernTestValueCacheDelta *DocPagesMove200ResponseMetaCacheDelta + obj := &DocPagesSetScale200ResponseMeta{} + var fernTestValueCacheDelta *DocPagesSetScale200ResponseMetaCacheDelta // Act obj.SetCacheDelta(fernTestValueCacheDelta) @@ -246716,9 +289974,9 @@ func TestSettersMarkExplicitDocPagesMove200ResponseMeta(t *testing.T) { } -func TestSettersDocPagesMove200ResponseMetaAffectedPagesItem(t *testing.T) { +func TestSettersDocPagesSetScale200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesMove200ResponseMetaAffectedPagesItem{} + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItem{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -246726,16 +289984,16 @@ func TestSettersDocPagesMove200ResponseMetaAffectedPagesItem(t *testing.T) { }) t.Run("SetRevision", func(t *testing.T) { - obj := &DocPagesMove200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocPagesMove200ResponseMetaAffectedPagesItemRevision + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocPagesSetScale200ResponseMetaAffectedPagesItemRevision obj.SetRevision(fernTestValueRevision) assert.Equal(t, fernTestValueRevision, obj.Revision) assert.NotNil(t, obj.explicitFields) }) t.Run("SetWeakAnnotationState", func(t *testing.T) { - obj := &DocPagesMove200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationState obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) assert.NotNil(t, obj.explicitFields) @@ -246743,11 +290001,11 @@ func TestSettersDocPagesMove200ResponseMetaAffectedPagesItem(t *testing.T) { } -func TestGettersDocPagesMove200ResponseMetaAffectedPagesItem(t *testing.T) { +func TestGettersDocPagesSetScale200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItem{} + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItem{} var expected int obj.PageObjectNumber = expected @@ -246757,7 +290015,7 @@ func TestGettersDocPagesMove200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMetaAffectedPagesItem + var obj *DocPagesSetScale200ResponseMetaAffectedPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -246770,8 +290028,8 @@ func TestGettersDocPagesMove200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetRevision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItem{} - var expected *DocPagesMove200ResponseMetaAffectedPagesItemRevision + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItem{} + var expected *DocPagesSetScale200ResponseMetaAffectedPagesItemRevision obj.Revision = expected // Act & Assert @@ -246781,7 +290039,7 @@ func TestGettersDocPagesMove200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetRevision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItem{} + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItem{} obj.Revision = nil // Act & Assert @@ -246790,7 +290048,7 @@ func TestGettersDocPagesMove200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetRevision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMetaAffectedPagesItem + var obj *DocPagesSetScale200ResponseMetaAffectedPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -246803,8 +290061,8 @@ func TestGettersDocPagesMove200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetWeakAnnotationState", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItem{} - var expected *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItem{} + var expected *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationState obj.WeakAnnotationState = expected // Act & Assert @@ -246814,7 +290072,7 @@ func TestGettersDocPagesMove200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetWeakAnnotationState_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItem{} + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItem{} obj.WeakAnnotationState = nil // Act & Assert @@ -246823,7 +290081,7 @@ func TestGettersDocPagesMove200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("GetWeakAnnotationState_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMetaAffectedPagesItem + var obj *DocPagesSetScale200ResponseMetaAffectedPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -246835,11 +290093,11 @@ func TestGettersDocPagesMove200ResponseMetaAffectedPagesItem(t *testing.T) { } -func TestSettersMarkExplicitDocPagesMove200ResponseMetaAffectedPagesItem(t *testing.T) { +func TestSettersMarkExplicitDocPagesSetScale200ResponseMetaAffectedPagesItem(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItem{} + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItem{} var fernTestValuePageObjectNumber int // Act @@ -246870,8 +290128,8 @@ func TestSettersMarkExplicitDocPagesMove200ResponseMetaAffectedPagesItem(t *test t.Run("SetRevision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocPagesMove200ResponseMetaAffectedPagesItemRevision + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItem{} + var fernTestValueRevision *DocPagesSetScale200ResponseMetaAffectedPagesItemRevision // Act obj.SetRevision(fernTestValueRevision) @@ -246901,8 +290159,8 @@ func TestSettersMarkExplicitDocPagesMove200ResponseMetaAffectedPagesItem(t *test t.Run("SetWeakAnnotationState_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItem{} + var fernTestValueWeakAnnotationState *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationState // Act obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) @@ -246931,9 +290189,9 @@ func TestSettersMarkExplicitDocPagesMove200ResponseMetaAffectedPagesItem(t *test } -func TestSettersDocPagesMove200ResponseMetaAffectedPagesItemRevision(t *testing.T) { +func TestSettersDocPagesSetScale200ResponseMetaAffectedPagesItemRevision(t *testing.T) { t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItemRevision{} var fernTestValueDocSessionID string obj.SetDocSessionID(fernTestValueDocSessionID) assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) @@ -246941,7 +290199,7 @@ func TestSettersDocPagesMove200ResponseMetaAffectedPagesItemRevision(t *testing. }) t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItemRevision{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -246949,7 +290207,7 @@ func TestSettersDocPagesMove200ResponseMetaAffectedPagesItemRevision(t *testing. }) t.Run("SetGeneration", func(t *testing.T) { - obj := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItemRevision{} var fernTestValueGeneration int obj.SetGeneration(fernTestValueGeneration) assert.Equal(t, fernTestValueGeneration, obj.Generation) @@ -246958,11 +290216,11 @@ func TestSettersDocPagesMove200ResponseMetaAffectedPagesItemRevision(t *testing. } -func TestGettersDocPagesMove200ResponseMetaAffectedPagesItemRevision(t *testing.T) { +func TestGettersDocPagesSetScale200ResponseMetaAffectedPagesItemRevision(t *testing.T) { t.Run("GetDocSessionID", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItemRevision{} var expected string obj.DocSessionID = expected @@ -246972,7 +290230,7 @@ func TestGettersDocPagesMove200ResponseMetaAffectedPagesItemRevision(t *testing. t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMetaAffectedPagesItemRevision + var obj *DocPagesSetScale200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -246985,7 +290243,7 @@ func TestGettersDocPagesMove200ResponseMetaAffectedPagesItemRevision(t *testing. t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItemRevision{} var expected int obj.PageObjectNumber = expected @@ -246995,7 +290253,7 @@ func TestGettersDocPagesMove200ResponseMetaAffectedPagesItemRevision(t *testing. t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMetaAffectedPagesItemRevision + var obj *DocPagesSetScale200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -247008,7 +290266,7 @@ func TestGettersDocPagesMove200ResponseMetaAffectedPagesItemRevision(t *testing. t.Run("GetGeneration", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItemRevision{} var expected int obj.Generation = expected @@ -247018,7 +290276,7 @@ func TestGettersDocPagesMove200ResponseMetaAffectedPagesItemRevision(t *testing. t.Run("GetGeneration_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMetaAffectedPagesItemRevision + var obj *DocPagesSetScale200ResponseMetaAffectedPagesItemRevision // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -247030,11 +290288,11 @@ func TestGettersDocPagesMove200ResponseMetaAffectedPagesItemRevision(t *testing. } -func TestSettersMarkExplicitDocPagesMove200ResponseMetaAffectedPagesItemRevision(t *testing.T) { +func TestSettersMarkExplicitDocPagesSetScale200ResponseMetaAffectedPagesItemRevision(t *testing.T) { t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItemRevision{} var fernTestValueDocSessionID string // Act @@ -247065,7 +290323,7 @@ func TestSettersMarkExplicitDocPagesMove200ResponseMetaAffectedPagesItemRevision t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItemRevision{} var fernTestValuePageObjectNumber int // Act @@ -247096,7 +290354,7 @@ func TestSettersMarkExplicitDocPagesMove200ResponseMetaAffectedPagesItemRevision t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItemRevision{} + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItemRevision{} var fernTestValueGeneration int // Act @@ -247126,11 +290384,11 @@ func TestSettersMarkExplicitDocPagesMove200ResponseMetaAffectedPagesItemRevision } -func TestGettersDocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { +func TestGettersDocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { t.Run("GetKind", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationState{} var expected string obj.Kind = expected @@ -247140,7 +290398,7 @@ func TestGettersDocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState( t.Run("GetKind_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -247153,8 +290411,8 @@ func TestGettersDocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState( t.Run("GetUnknown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown obj.Unknown = expected // Act & Assert @@ -247164,7 +290422,7 @@ func TestGettersDocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState( t.Run("GetUnknown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationState{} obj.Unknown = nil // Act & Assert @@ -247173,7 +290431,7 @@ func TestGettersDocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState( t.Run("GetUnknown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -247186,8 +290444,8 @@ func TestGettersDocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState( t.Run("GetKnown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationState{} + var expected *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown obj.Known = expected // Act & Assert @@ -247197,7 +290455,7 @@ func TestGettersDocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState( t.Run("GetKnown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationState{} obj.Known = nil // Act & Assert @@ -247206,7 +290464,7 @@ func TestGettersDocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState( t.Run("GetKnown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationState // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -247218,9 +290476,9 @@ func TestGettersDocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState( } -func TestSettersDocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { +func TestSettersDocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { t.Run("SetHasAnyWeakAnnotations", func(t *testing.T) { - obj := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} var fernTestValueHasAnyWeakAnnotations bool obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) assert.Equal(t, fernTestValueHasAnyWeakAnnotations, obj.HasAnyWeakAnnotations) @@ -247229,11 +290487,11 @@ func TestSettersDocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateK } -func TestGettersDocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { +func TestGettersDocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} var expected bool obj.HasAnyWeakAnnotations = expected @@ -247243,7 +290501,7 @@ func TestGettersDocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateK t.Run("GetHasAnyWeakAnnotations_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + var obj *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -247255,11 +290513,11 @@ func TestGettersDocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateK } -func TestSettersMarkExplicitDocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { +func TestSettersMarkExplicitDocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} var fernTestValueHasAnyWeakAnnotations bool // Act @@ -247289,9 +290547,9 @@ func TestSettersMarkExplicitDocPagesMove200ResponseMetaAffectedPagesItemWeakAnno } -func TestSettersDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { +func TestSettersDocPagesSetScale200ResponseMetaCacheDelta(t *testing.T) { t.Run("SetPreviousDocVersion", func(t *testing.T) { - obj := &DocPagesMove200ResponseMetaCacheDelta{} + obj := &DocPagesSetScale200ResponseMetaCacheDelta{} var fernTestValuePreviousDocVersion int obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) assert.Equal(t, fernTestValuePreviousDocVersion, obj.PreviousDocVersion) @@ -247299,7 +290557,7 @@ func TestSettersDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetDocVersion", func(t *testing.T) { - obj := &DocPagesMove200ResponseMetaCacheDelta{} + obj := &DocPagesSetScale200ResponseMetaCacheDelta{} var fernTestValueDocVersion int obj.SetDocVersion(fernTestValueDocVersion) assert.Equal(t, fernTestValueDocVersion, obj.DocVersion) @@ -247307,7 +290565,7 @@ func TestSettersDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetAnnotationsVersion", func(t *testing.T) { - obj := &DocPagesMove200ResponseMetaCacheDelta{} + obj := &DocPagesSetScale200ResponseMetaCacheDelta{} var fernTestValueAnnotationsVersion *int obj.SetAnnotationsVersion(fernTestValueAnnotationsVersion) assert.Equal(t, fernTestValueAnnotationsVersion, obj.AnnotationsVersion) @@ -247315,7 +290573,7 @@ func TestSettersDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetLayerVersion", func(t *testing.T) { - obj := &DocPagesMove200ResponseMetaCacheDelta{} + obj := &DocPagesSetScale200ResponseMetaCacheDelta{} var fernTestValueLayerVersion *int obj.SetLayerVersion(fernTestValueLayerVersion) assert.Equal(t, fernTestValueLayerVersion, obj.LayerVersion) @@ -247323,7 +290581,7 @@ func TestSettersDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetWorking", func(t *testing.T) { - obj := &DocPagesMove200ResponseMetaCacheDelta{} + obj := &DocPagesSetScale200ResponseMetaCacheDelta{} var fernTestValueWorking *bool obj.SetWorking(fernTestValueWorking) assert.Equal(t, fernTestValueWorking, obj.Working) @@ -247331,8 +290589,8 @@ func TestSettersDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { }) t.Run("SetPages", func(t *testing.T) { - obj := &DocPagesMove200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocPagesMove200ResponseMetaCacheDeltaPagesItem + obj := &DocPagesSetScale200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocPagesSetScale200ResponseMetaCacheDeltaPagesItem obj.SetPages(fernTestValuePages) assert.Equal(t, fernTestValuePages, obj.Pages) assert.NotNil(t, obj.explicitFields) @@ -247340,11 +290598,11 @@ func TestSettersDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { } -func TestGettersDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { +func TestGettersDocPagesSetScale200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPreviousDocVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaCacheDelta{} + obj := &DocPagesSetScale200ResponseMetaCacheDelta{} var expected int obj.PreviousDocVersion = expected @@ -247354,7 +290612,7 @@ func TestGettersDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMetaCacheDelta + var obj *DocPagesSetScale200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -247367,7 +290625,7 @@ func TestGettersDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetDocVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaCacheDelta{} + obj := &DocPagesSetScale200ResponseMetaCacheDelta{} var expected int obj.DocVersion = expected @@ -247377,7 +290635,7 @@ func TestGettersDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMetaCacheDelta + var obj *DocPagesSetScale200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -247390,7 +290648,7 @@ func TestGettersDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetAnnotationsVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaCacheDelta{} + obj := &DocPagesSetScale200ResponseMetaCacheDelta{} var expected *int obj.AnnotationsVersion = expected @@ -247401,7 +290659,7 @@ func TestGettersDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetAnnotationsVersion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaCacheDelta{} + obj := &DocPagesSetScale200ResponseMetaCacheDelta{} obj.AnnotationsVersion = nil // Act & Assert @@ -247410,7 +290668,7 @@ func TestGettersDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetAnnotationsVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMetaCacheDelta + var obj *DocPagesSetScale200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -247423,7 +290681,7 @@ func TestGettersDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetLayerVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaCacheDelta{} + obj := &DocPagesSetScale200ResponseMetaCacheDelta{} var expected *int obj.LayerVersion = expected @@ -247434,7 +290692,7 @@ func TestGettersDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetLayerVersion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaCacheDelta{} + obj := &DocPagesSetScale200ResponseMetaCacheDelta{} obj.LayerVersion = nil // Act & Assert @@ -247443,7 +290701,7 @@ func TestGettersDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetLayerVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMetaCacheDelta + var obj *DocPagesSetScale200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -247456,7 +290714,7 @@ func TestGettersDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetWorking", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaCacheDelta{} + obj := &DocPagesSetScale200ResponseMetaCacheDelta{} var expected *bool obj.Working = expected @@ -247467,7 +290725,7 @@ func TestGettersDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetWorking_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaCacheDelta{} + obj := &DocPagesSetScale200ResponseMetaCacheDelta{} obj.Working = nil // Act & Assert @@ -247476,7 +290734,7 @@ func TestGettersDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetWorking_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMetaCacheDelta + var obj *DocPagesSetScale200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -247489,8 +290747,8 @@ func TestGettersDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPages", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaCacheDelta{} - var expected []*DocPagesMove200ResponseMetaCacheDeltaPagesItem + obj := &DocPagesSetScale200ResponseMetaCacheDelta{} + var expected []*DocPagesSetScale200ResponseMetaCacheDeltaPagesItem obj.Pages = expected // Act & Assert @@ -247500,7 +290758,7 @@ func TestGettersDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPages_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaCacheDelta{} + obj := &DocPagesSetScale200ResponseMetaCacheDelta{} obj.Pages = nil // Act & Assert @@ -247509,7 +290767,7 @@ func TestGettersDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { t.Run("GetPages_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMetaCacheDelta + var obj *DocPagesSetScale200ResponseMetaCacheDelta // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -247521,11 +290779,11 @@ func TestGettersDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { } -func TestSettersMarkExplicitDocPagesMove200ResponseMetaCacheDelta(t *testing.T) { +func TestSettersMarkExplicitDocPagesSetScale200ResponseMetaCacheDelta(t *testing.T) { t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaCacheDelta{} + obj := &DocPagesSetScale200ResponseMetaCacheDelta{} var fernTestValuePreviousDocVersion int // Act @@ -247556,7 +290814,7 @@ func TestSettersMarkExplicitDocPagesMove200ResponseMetaCacheDelta(t *testing.T) t.Run("SetDocVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaCacheDelta{} + obj := &DocPagesSetScale200ResponseMetaCacheDelta{} var fernTestValueDocVersion int // Act @@ -247587,7 +290845,7 @@ func TestSettersMarkExplicitDocPagesMove200ResponseMetaCacheDelta(t *testing.T) t.Run("SetAnnotationsVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaCacheDelta{} + obj := &DocPagesSetScale200ResponseMetaCacheDelta{} var fernTestValueAnnotationsVersion *int // Act @@ -247618,7 +290876,7 @@ func TestSettersMarkExplicitDocPagesMove200ResponseMetaCacheDelta(t *testing.T) t.Run("SetLayerVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaCacheDelta{} + obj := &DocPagesSetScale200ResponseMetaCacheDelta{} var fernTestValueLayerVersion *int // Act @@ -247649,7 +290907,7 @@ func TestSettersMarkExplicitDocPagesMove200ResponseMetaCacheDelta(t *testing.T) t.Run("SetWorking_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaCacheDelta{} + obj := &DocPagesSetScale200ResponseMetaCacheDelta{} var fernTestValueWorking *bool // Act @@ -247680,8 +290938,8 @@ func TestSettersMarkExplicitDocPagesMove200ResponseMetaCacheDelta(t *testing.T) t.Run("SetPages_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocPagesMove200ResponseMetaCacheDeltaPagesItem + obj := &DocPagesSetScale200ResponseMetaCacheDelta{} + var fernTestValuePages []*DocPagesSetScale200ResponseMetaCacheDeltaPagesItem // Act obj.SetPages(fernTestValuePages) @@ -247710,9 +290968,9 @@ func TestSettersMarkExplicitDocPagesMove200ResponseMetaCacheDelta(t *testing.T) } -func TestSettersDocPagesMove200ResponseMetaCacheDeltaPagesItem(t *testing.T) { +func TestSettersDocPagesSetScale200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItem{} + obj := &DocPagesSetScale200ResponseMetaCacheDeltaPagesItem{} var fernTestValuePageObjectNumber int obj.SetPageObjectNumber(fernTestValuePageObjectNumber) assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) @@ -247720,8 +290978,8 @@ func TestSettersDocPagesMove200ResponseMetaCacheDeltaPagesItem(t *testing.T) { }) t.Run("SetCache", func(t *testing.T) { - obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache + obj := &DocPagesSetScale200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache obj.SetCache(fernTestValueCache) assert.Equal(t, fernTestValueCache, obj.Cache) assert.NotNil(t, obj.explicitFields) @@ -247729,11 +290987,11 @@ func TestSettersDocPagesMove200ResponseMetaCacheDeltaPagesItem(t *testing.T) { } -func TestGettersDocPagesMove200ResponseMetaCacheDeltaPagesItem(t *testing.T) { +func TestGettersDocPagesSetScale200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("GetPageObjectNumber", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItem{} + obj := &DocPagesSetScale200ResponseMetaCacheDeltaPagesItem{} var expected int obj.PageObjectNumber = expected @@ -247743,7 +291001,7 @@ func TestGettersDocPagesMove200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMetaCacheDeltaPagesItem + var obj *DocPagesSetScale200ResponseMetaCacheDeltaPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -247756,8 +291014,8 @@ func TestGettersDocPagesMove200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("GetCache", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItem{} - var expected *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache + obj := &DocPagesSetScale200ResponseMetaCacheDeltaPagesItem{} + var expected *DocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache obj.Cache = expected // Act & Assert @@ -247767,7 +291025,7 @@ func TestGettersDocPagesMove200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("GetCache_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItem{} + obj := &DocPagesSetScale200ResponseMetaCacheDeltaPagesItem{} obj.Cache = nil // Act & Assert @@ -247776,7 +291034,7 @@ func TestGettersDocPagesMove200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("GetCache_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesMove200ResponseMetaCacheDeltaPagesItem + var obj *DocPagesSetScale200ResponseMetaCacheDeltaPagesItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -247788,11 +291046,11 @@ func TestGettersDocPagesMove200ResponseMetaCacheDeltaPagesItem(t *testing.T) { } -func TestSettersMarkExplicitDocPagesMove200ResponseMetaCacheDeltaPagesItem(t *testing.T) { +func TestSettersMarkExplicitDocPagesSetScale200ResponseMetaCacheDeltaPagesItem(t *testing.T) { t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItem{} + obj := &DocPagesSetScale200ResponseMetaCacheDeltaPagesItem{} var fernTestValuePageObjectNumber int // Act @@ -247823,8 +291081,8 @@ func TestSettersMarkExplicitDocPagesMove200ResponseMetaCacheDeltaPagesItem(t *te t.Run("SetCache_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache + obj := &DocPagesSetScale200ResponseMetaCacheDeltaPagesItem{} + var fernTestValueCache *DocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache // Act obj.SetCache(fernTestValueCache) @@ -247853,9 +291111,9 @@ func TestSettersMarkExplicitDocPagesMove200ResponseMetaCacheDeltaPagesItem(t *te } -func TestSettersDocPagesMove200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { +func TestSettersDocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { t.Run("SetContentVersion", func(t *testing.T) { - obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItemCache{} + obj := &DocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache{} var fernTestValueContentVersion int obj.SetContentVersion(fernTestValueContentVersion) assert.Equal(t, fernTestValueContentVersion, obj.ContentVersion) @@ -247863,841 +291121,73 @@ func TestSettersDocPagesMove200ResponseMetaCacheDeltaPagesItemCache(t *testing.T }) t.Run("SetAnnotationVersion", func(t *testing.T) { - obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueAnnotationVersion int - obj.SetAnnotationVersion(fernTestValueAnnotationVersion) - assert.Equal(t, fernTestValueAnnotationVersion, obj.AnnotationVersion) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocPagesMove200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("GetContentVersion", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItemCache{} - var expected int - obj.ContentVersion = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetContentVersion(), "getter should return the property value") - }) - - t.Run("GetContentVersion_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetContentVersion() // Should return zero value - }) - - t.Run("GetAnnotationVersion", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItemCache{} - var expected int - obj.AnnotationVersion = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAnnotationVersion(), "getter should return the property value") - }) - - t.Run("GetAnnotationVersion_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesMove200ResponseMetaCacheDeltaPagesItemCache - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetAnnotationVersion() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocPagesMove200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("SetContentVersion_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueContentVersion int - - // Act - obj.SetContentVersion(fernTestValueContentVersion) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetAnnotationVersion_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesMove200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueAnnotationVersion int - - // Act - obj.SetAnnotationVersion(fernTestValueAnnotationVersion) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocPagesMove400Response(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocPagesMove400Response{} - var fernTestValueName DocPagesMove400ResponseName - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCode", func(t *testing.T) { - obj := &DocPagesMove400Response{} - var fernTestValueCode DocPagesMove400ResponseCode - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetMessage", func(t *testing.T) { - obj := &DocPagesMove400Response{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetDetails", func(t *testing.T) { - obj := &DocPagesMove400Response{} - var fernTestValueDetails map[string]any - obj.SetDetails(fernTestValueDetails) - assert.Equal(t, fernTestValueDetails, obj.Details) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocPagesMove400Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesMove400Response{} - var expected DocPagesMove400ResponseName - obj.Name = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") - }) - - t.Run("GetName_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesMove400Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetName() // Should return zero value - }) - - t.Run("GetCode", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesMove400Response{} - var expected DocPagesMove400ResponseCode - obj.Code = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") - }) - - t.Run("GetCode_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesMove400Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetCode() // Should return zero value - }) - - t.Run("GetMessage", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesMove400Response{} - var expected string - obj.Message = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") - }) - - t.Run("GetMessage_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesMove400Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetMessage() // Should return zero value - }) - - t.Run("GetDetails", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesMove400Response{} - var expected map[string]any - obj.Details = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") - }) - - t.Run("GetDetails_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesMove400Response{} - obj.Details = nil - - // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") - }) - - t.Run("GetDetails_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesMove400Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetDetails() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocPagesMove400Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesMove400Response{} - var fernTestValueName DocPagesMove400ResponseName - - // Act - obj.SetName(fernTestValueName) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetCode_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesMove400Response{} - var fernTestValueCode DocPagesMove400ResponseCode - - // Act - obj.SetCode(fernTestValueCode) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetMessage_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesMove400Response{} - var fernTestValueMessage string - - // Act - obj.SetMessage(fernTestValueMessage) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetDetails_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesMove400Response{} - var fernTestValueDetails map[string]any - - // Act - obj.SetDetails(fernTestValueDetails) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocPagesMove404Response(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocPagesMove404Response{} - var fernTestValueName DocPagesMove404ResponseName - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCode", func(t *testing.T) { - obj := &DocPagesMove404Response{} - var fernTestValueCode DocPagesMove404ResponseCode - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetMessage", func(t *testing.T) { - obj := &DocPagesMove404Response{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetDetails", func(t *testing.T) { - obj := &DocPagesMove404Response{} - var fernTestValueDetails map[string]any - obj.SetDetails(fernTestValueDetails) - assert.Equal(t, fernTestValueDetails, obj.Details) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocPagesMove404Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesMove404Response{} - var expected DocPagesMove404ResponseName - obj.Name = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") - }) - - t.Run("GetName_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesMove404Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetName() // Should return zero value - }) - - t.Run("GetCode", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesMove404Response{} - var expected DocPagesMove404ResponseCode - obj.Code = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") - }) - - t.Run("GetCode_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesMove404Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetCode() // Should return zero value - }) - - t.Run("GetMessage", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesMove404Response{} - var expected string - obj.Message = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") - }) - - t.Run("GetMessage_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesMove404Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetMessage() // Should return zero value - }) - - t.Run("GetDetails", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesMove404Response{} - var expected map[string]any - obj.Details = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") - }) - - t.Run("GetDetails_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesMove404Response{} - obj.Details = nil - - // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") - }) - - t.Run("GetDetails_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesMove404Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetDetails() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocPagesMove404Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesMove404Response{} - var fernTestValueName DocPagesMove404ResponseName - - // Act - obj.SetName(fernTestValueName) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetCode_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesMove404Response{} - var fernTestValueCode DocPagesMove404ResponseCode - - // Act - obj.SetCode(fernTestValueCode) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetMessage_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesMove404Response{} - var fernTestValueMessage string - - // Act - obj.SetMessage(fernTestValueMessage) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - - t.Run("SetDetails_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesMove404Response{} - var fernTestValueDetails map[string]any - - // Act - obj.SetDetails(fernTestValueDetails) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocPagesRemoveName200Response(t *testing.T) { - t.Run("SetMeta", func(t *testing.T) { - obj := &DocPagesRemoveName200Response{} - var fernTestValueMeta *DocPagesRemoveName200ResponseMeta - obj.SetMeta(fernTestValueMeta) - assert.Equal(t, fernTestValueMeta, obj.Meta) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocPagesRemoveName200Response(t *testing.T) { - t.Run("GetMeta", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesRemoveName200Response{} - var expected *DocPagesRemoveName200ResponseMeta - obj.Meta = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetMeta(), "getter should return the property value") - }) - - t.Run("GetMeta_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesRemoveName200Response{} - obj.Meta = nil - - // Act & Assert - assert.Nil(t, obj.GetMeta(), "getter should return nil when property is nil") - }) - - t.Run("GetMeta_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesRemoveName200Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetMeta() // Should return zero value - }) - -} - -func TestSettersMarkExplicitDocPagesRemoveName200Response(t *testing.T) { - t.Run("SetMeta_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesRemoveName200Response{} - var fernTestValueMeta *DocPagesRemoveName200ResponseMeta - - // Act - obj.SetMeta(fernTestValueMeta) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocPagesRemoveName200ResponseMeta(t *testing.T) { - t.Run("SetAffectedPages", func(t *testing.T) { - obj := &DocPagesRemoveName200ResponseMeta{} - var fernTestValueAffectedPages []*DocPagesRemoveName200ResponseMetaAffectedPagesItem - obj.SetAffectedPages(fernTestValueAffectedPages) - assert.Equal(t, fernTestValueAffectedPages, obj.AffectedPages) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCacheDelta", func(t *testing.T) { - obj := &DocPagesRemoveName200ResponseMeta{} - var fernTestValueCacheDelta *DocPagesRemoveName200ResponseMetaCacheDelta - obj.SetCacheDelta(fernTestValueCacheDelta) - assert.Equal(t, fernTestValueCacheDelta, obj.CacheDelta) + obj := &DocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache{} + var fernTestValueAnnotationVersion int + obj.SetAnnotationVersion(fernTestValueAnnotationVersion) + assert.Equal(t, fernTestValueAnnotationVersion, obj.AnnotationVersion) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocPagesRemoveName200ResponseMeta(t *testing.T) { - t.Run("GetAffectedPages", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesRemoveName200ResponseMeta{} - var expected []*DocPagesRemoveName200ResponseMetaAffectedPagesItem - obj.AffectedPages = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetAffectedPages(), "getter should return the property value") - }) - - t.Run("GetAffectedPages_NilValue", func(t *testing.T) { +func TestGettersDocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("GetContentVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMeta{} - obj.AffectedPages = nil + obj := &DocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache{} + var expected int + obj.ContentVersion = expected // Act & Assert - assert.Nil(t, obj.GetAffectedPages(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetContentVersion(), "getter should return the property value") }) - t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { + t.Run("GetContentVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRemoveName200ResponseMeta + var obj *DocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAffectedPages() // Should return zero value - }) - - t.Run("GetCacheDelta", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesRemoveName200ResponseMeta{} - var expected *DocPagesRemoveName200ResponseMetaCacheDelta - obj.CacheDelta = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetCacheDelta(), "getter should return the property value") + _ = obj.GetContentVersion() // Should return zero value }) - t.Run("GetCacheDelta_NilValue", func(t *testing.T) { + t.Run("GetAnnotationVersion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMeta{} - obj.CacheDelta = nil + obj := &DocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache{} + var expected int + obj.AnnotationVersion = expected // Act & Assert - assert.Nil(t, obj.GetCacheDelta(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetAnnotationVersion(), "getter should return the property value") }) - t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { + t.Run("GetAnnotationVersion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRemoveName200ResponseMeta + var obj *DocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCacheDelta() // Should return zero value + _ = obj.GetAnnotationVersion() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesRemoveName200ResponseMeta(t *testing.T) { - t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("SetContentVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMeta{} - var fernTestValueAffectedPages []*DocPagesRemoveName200ResponseMetaAffectedPagesItem + obj := &DocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache{} + var fernTestValueContentVersion int // Act - obj.SetAffectedPages(fernTestValueAffectedPages) + obj.SetContentVersion(fernTestValueContentVersion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -248721,14 +291211,14 @@ func TestSettersMarkExplicitDocPagesRemoveName200ResponseMeta(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCacheDelta_MarksExplicit", func(t *testing.T) { + t.Run("SetAnnotationVersion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMeta{} - var fernTestValueCacheDelta *DocPagesRemoveName200ResponseMetaCacheDelta + obj := &DocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache{} + var fernTestValueAnnotationVersion int // Act - obj.SetCacheDelta(fernTestValueCacheDelta) + obj.SetAnnotationVersion(fernTestValueAnnotationVersion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -248754,134 +291244,155 @@ func TestSettersMarkExplicitDocPagesRemoveName200ResponseMeta(t *testing.T) { } -func TestSettersDocPagesRemoveName200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItem{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) +func TestSettersDocPagesSetScale400Response(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + obj := &DocPagesSetScale400Response{} + var fernTestValueName DocPagesSetScale400ResponseName + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRevision", func(t *testing.T) { - obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) + t.Run("SetCode", func(t *testing.T) { + obj := &DocPagesSetScale400Response{} + var fernTestValueCode DocPagesSetScale400ResponseCode + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetWeakAnnotationState", func(t *testing.T) { - obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState - obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) - assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) + t.Run("SetMessage", func(t *testing.T) { + obj := &DocPagesSetScale400Response{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDetails", func(t *testing.T) { + obj := &DocPagesSetScale400Response{} + var fernTestValueDetails map[string]any + obj.SetDetails(fernTestValueDetails) + assert.Equal(t, fernTestValueDetails, obj.Details) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocPagesRemoveName200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { +func TestGettersDocPagesSetScale400Response(t *testing.T) { + t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItem{} - var expected int - obj.PageObjectNumber = expected + obj := &DocPagesSetScale400Response{} + var expected DocPagesSetScale400ResponseName + obj.Name = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRemoveName200ResponseMetaAffectedPagesItem + var obj *DocPagesSetScale400Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetName() // Should return zero value }) - t.Run("GetRevision", func(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItem{} - var expected *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision - obj.Revision = expected + obj := &DocPagesSetScale400Response{} + var expected DocPagesSetScale400ResponseCode + obj.Code = expected // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") }) - t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScale400Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetCode() // Should return zero value + }) + + t.Run("GetMessage", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItem{} - obj.Revision = nil + obj := &DocPagesSetScale400Response{} + var expected string + obj.Message = expected // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") }) - t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Run("GetMessage_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRemoveName200ResponseMetaAffectedPagesItem + var obj *DocPagesSetScale400Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRevision() // Should return zero value + _ = obj.GetMessage() // Should return zero value }) - t.Run("GetWeakAnnotationState", func(t *testing.T) { + t.Run("GetDetails", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItem{} - var expected *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState - obj.WeakAnnotationState = expected + obj := &DocPagesSetScale400Response{} + var expected map[string]any + obj.Details = expected // Act & Assert - assert.Equal(t, expected, obj.GetWeakAnnotationState(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") }) - t.Run("GetWeakAnnotationState_NilValue", func(t *testing.T) { + t.Run("GetDetails_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItem{} - obj.WeakAnnotationState = nil + obj := &DocPagesSetScale400Response{} + obj.Details = nil // Act & Assert - assert.Nil(t, obj.GetWeakAnnotationState(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") }) - t.Run("GetWeakAnnotationState_NilReceiver", func(t *testing.T) { + t.Run("GetDetails_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRemoveName200ResponseMetaAffectedPagesItem + var obj *DocPagesSetScale400Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetWeakAnnotationState() // Should return zero value + _ = obj.GetDetails() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesRemoveName200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocPagesSetScale400Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItem{} - var fernTestValuePageObjectNumber int + obj := &DocPagesSetScale400Response{} + var fernTestValueName DocPagesSetScale400ResponseName // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetName(fernTestValueName) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -248905,14 +291416,14 @@ func TestSettersMarkExplicitDocPagesRemoveName200ResponseMetaAffectedPagesItem(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision + obj := &DocPagesSetScale400Response{} + var fernTestValueCode DocPagesSetScale400ResponseCode // Act - obj.SetRevision(fernTestValueRevision) + obj.SetCode(fernTestValueCode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -248936,14 +291447,45 @@ func TestSettersMarkExplicitDocPagesRemoveName200ResponseMetaAffectedPagesItem(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWeakAnnotationState_MarksExplicit", func(t *testing.T) { + t.Run("SetMessage_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocPagesSetScale400Response{} + var fernTestValueMessage string // Act - obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) + obj.SetMessage(fernTestValueMessage) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDetails_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScale400Response{} + var fernTestValueDetails map[string]any + + // Act + obj.SetDetails(fernTestValueDetails) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -248969,114 +291511,155 @@ func TestSettersMarkExplicitDocPagesRemoveName200ResponseMetaAffectedPagesItem(t } -func TestSettersDocPagesRemoveName200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueDocSessionID string - obj.SetDocSessionID(fernTestValueDocSessionID) - assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) +func TestSettersDocPagesSetScale404Response(t *testing.T) { + t.Run("SetName", func(t *testing.T) { + obj := &DocPagesSetScale404Response{} + var fernTestValueName DocPagesSetScale404ResponseName + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) + t.Run("SetCode", func(t *testing.T) { + obj := &DocPagesSetScale404Response{} + var fernTestValueCode DocPagesSetScale404ResponseCode + obj.SetCode(fernTestValueCode) + assert.Equal(t, fernTestValueCode, obj.Code) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) + t.Run("SetMessage", func(t *testing.T) { + obj := &DocPagesSetScale404Response{} + var fernTestValueMessage string + obj.SetMessage(fernTestValueMessage) + assert.Equal(t, fernTestValueMessage, obj.Message) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDetails", func(t *testing.T) { + obj := &DocPagesSetScale404Response{} + var fernTestValueDetails map[string]any + obj.SetDetails(fernTestValueDetails) + assert.Equal(t, fernTestValueDetails, obj.Details) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocPagesRemoveName200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { +func TestGettersDocPagesSetScale404Response(t *testing.T) { + t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision{} - var expected string - obj.DocSessionID = expected + obj := &DocPagesSetScale404Response{} + var expected DocPagesSetScale404ResponseName + obj.Name = expected // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") }) - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { + t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision + var obj *DocPagesSetScale404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDocSessionID() // Should return zero value + _ = obj.GetName() // Should return zero value }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("GetCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision{} - var expected int - obj.PageObjectNumber = expected + obj := &DocPagesSetScale404Response{} + var expected DocPagesSetScale404ResponseCode + obj.Code = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision + var obj *DocPagesSetScale404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetCode() // Should return zero value }) - t.Run("GetGeneration", func(t *testing.T) { + t.Run("GetMessage", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision{} - var expected int - obj.Generation = expected + obj := &DocPagesSetScale404Response{} + var expected string + obj.Message = expected // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") + assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") }) - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { + t.Run("GetMessage_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision + var obj *DocPagesSetScale404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGeneration() // Should return zero value + _ = obj.GetMessage() // Should return zero value + }) + + t.Run("GetDetails", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScale404Response{} + var expected map[string]any + obj.Details = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + }) + + t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScale404Response{} + obj.Details = nil + + // Act & Assert + assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + }) + + t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScale404Response + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDetails() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesRemoveName200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocPagesSetScale404Response(t *testing.T) { + t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueDocSessionID string + obj := &DocPagesSetScale404Response{} + var fernTestValueName DocPagesSetScale404ResponseName // Act - obj.SetDocSessionID(fernTestValueDocSessionID) + obj.SetName(fernTestValueName) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -249100,14 +291683,14 @@ func TestSettersMarkExplicitDocPagesRemoveName200ResponseMetaAffectedPagesItemRe // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision{} - var fernTestValuePageObjectNumber int + obj := &DocPagesSetScale404Response{} + var fernTestValueCode DocPagesSetScale404ResponseCode // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetCode(fernTestValueCode) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -249131,14 +291714,45 @@ func TestSettersMarkExplicitDocPagesRemoveName200ResponseMetaAffectedPagesItemRe // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("SetMessage_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueGeneration int + obj := &DocPagesSetScale404Response{} + var fernTestValueMessage string // Act - obj.SetGeneration(fernTestValueGeneration) + obj.SetMessage(fernTestValueMessage) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDetails_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScale404Response{} + var fernTestValueDetails map[string]any + + // Act + obj.SetDetails(fernTestValueDetails) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -249164,144 +291778,175 @@ func TestSettersMarkExplicitDocPagesRemoveName200ResponseMetaAffectedPagesItemRe } -func TestGettersDocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { +func TestSettersDocPagesViewports200ResponseItem(t *testing.T) { + t.Run("SetBbox", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItem{} + var fernTestValueBbox *DocPagesViewports200ResponseItemBbox + obj.SetBbox(fernTestValueBbox) + assert.Equal(t, fernTestValueBbox, obj.Bbox) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetName", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItem{} + var fernTestValueName *string + obj.SetName(fernTestValueName) + assert.Equal(t, fernTestValueName, obj.Name) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetMeasure", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItem{} + var fernTestValueMeasure *DocPagesViewports200ResponseItemMeasure + obj.SetMeasure(fernTestValueMeasure) + assert.Equal(t, fernTestValueMeasure, obj.Measure) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetOwned", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItem{} + var fernTestValueOwned bool + obj.SetOwned(fernTestValueOwned) + assert.Equal(t, fernTestValueOwned, obj.Owned) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesViewports200ResponseItem(t *testing.T) { + t.Run("GetBbox", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected string - obj.Kind = expected + obj := &DocPagesViewports200ResponseItem{} + var expected *DocPagesViewports200ResponseItemBbox + obj.Bbox = expected // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBbox(), "getter should return the property value") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetBbox_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState + // Arrange + obj := &DocPagesViewports200ResponseItem{} + obj.Bbox = nil + + // Act & Assert + assert.Nil(t, obj.GetBbox(), "getter should return nil when property is nil") + }) + + t.Run("GetBbox_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKind() // Should return zero value + _ = obj.GetBbox() // Should return zero value }) - t.Run("GetUnknown", func(t *testing.T) { + t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - obj.Unknown = expected + obj := &DocPagesViewports200ResponseItem{} + var expected *string + obj.Name = expected // Act & Assert - assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") + assert.Equal(t, expected, obj.GetName(), "getter should return the property value") }) - t.Run("GetUnknown_NilValue", func(t *testing.T) { + t.Run("GetName_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState{} - obj.Unknown = nil + obj := &DocPagesViewports200ResponseItem{} + obj.Name = nil // Act & Assert - assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetName(), "getter should return nil when property is nil") }) - t.Run("GetUnknown_NilReceiver", func(t *testing.T) { + t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocPagesViewports200ResponseItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUnknown() // Should return zero value + _ = obj.GetName() // Should return zero value }) - t.Run("GetKnown", func(t *testing.T) { + t.Run("GetMeasure", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - obj.Known = expected + obj := &DocPagesViewports200ResponseItem{} + var expected *DocPagesViewports200ResponseItemMeasure + obj.Measure = expected // Act & Assert - assert.Equal(t, expected, obj.GetKnown(), "getter should return the property value") + assert.Equal(t, expected, obj.GetMeasure(), "getter should return the property value") }) - t.Run("GetKnown_NilValue", func(t *testing.T) { + t.Run("GetMeasure_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState{} - obj.Known = nil + obj := &DocPagesViewports200ResponseItem{} + obj.Measure = nil // Act & Assert - assert.Nil(t, obj.GetKnown(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetMeasure(), "getter should return nil when property is nil") }) - t.Run("GetKnown_NilReceiver", func(t *testing.T) { + t.Run("GetMeasure_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocPagesViewports200ResponseItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKnown() // Should return zero value - }) - -} - -func TestSettersDocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("SetHasAnyWeakAnnotations", func(t *testing.T) { - obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var fernTestValueHasAnyWeakAnnotations bool - obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) - assert.Equal(t, fernTestValueHasAnyWeakAnnotations, obj.HasAnyWeakAnnotations) - assert.NotNil(t, obj.explicitFields) + _ = obj.GetMeasure() // Should return zero value }) -} - -func TestGettersDocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { + t.Run("GetOwned", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + obj := &DocPagesViewports200ResponseItem{} var expected bool - obj.HasAnyWeakAnnotations = expected + obj.Owned = expected // Act & Assert - assert.Equal(t, expected, obj.GetHasAnyWeakAnnotations(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOwned(), "getter should return the property value") }) - t.Run("GetHasAnyWeakAnnotations_NilReceiver", func(t *testing.T) { + t.Run("GetOwned_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + var obj *DocPagesViewports200ResponseItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetHasAnyWeakAnnotations() // Should return zero value + _ = obj.GetOwned() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocPagesViewports200ResponseItem(t *testing.T) { + t.Run("SetBbox_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var fernTestValueHasAnyWeakAnnotations bool + obj := &DocPagesViewports200ResponseItem{} + var fernTestValueBbox *DocPagesViewports200ResponseItemBbox // Act - obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) + obj.SetBbox(fernTestValueBbox) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -249325,249 +291970,240 @@ func TestSettersMarkExplicitDocPagesRemoveName200ResponseMetaAffectedPagesItemWe // It verifies that setting a field via setter allows successful JSON round-trip }) -} + t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItem{} + var fernTestValueName *string -func TestSettersDocPagesRemoveName200ResponseMetaCacheDelta(t *testing.T) { - t.Run("SetPreviousDocVersion", func(t *testing.T) { - obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} - var fernTestValuePreviousDocVersion int - obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) - assert.Equal(t, fernTestValuePreviousDocVersion, obj.PreviousDocVersion) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetName(fernTestValueName) - t.Run("SetDocVersion", func(t *testing.T) { - obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} - var fernTestValueDocVersion int - obj.SetDocVersion(fernTestValueDocVersion) - assert.Equal(t, fernTestValueDocVersion, obj.DocVersion) - assert.NotNil(t, obj.explicitFields) - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("SetAnnotationsVersion", func(t *testing.T) { - obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} - var fernTestValueAnnotationsVersion *int - obj.SetAnnotationsVersion(fernTestValueAnnotationsVersion) - assert.Equal(t, fernTestValueAnnotationsVersion, obj.AnnotationsVersion) - assert.NotNil(t, obj.explicitFields) - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("SetLayerVersion", func(t *testing.T) { - obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} - var fernTestValueLayerVersion *int - obj.SetLayerVersion(fernTestValueLayerVersion) - assert.Equal(t, fernTestValueLayerVersion, obj.LayerVersion) - assert.NotNil(t, obj.explicitFields) + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWorking", func(t *testing.T) { - obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} - var fernTestValueWorking *bool - obj.SetWorking(fernTestValueWorking) - assert.Equal(t, fernTestValueWorking, obj.Working) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("SetMeasure_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItem{} + var fernTestValueMeasure *DocPagesViewports200ResponseItemMeasure - t.Run("SetPages", func(t *testing.T) { - obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem - obj.SetPages(fernTestValuePages) - assert.Equal(t, fernTestValuePages, obj.Pages) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetMeasure(fernTestValueMeasure) -} + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") -func TestGettersDocPagesRemoveName200ResponseMetaCacheDelta(t *testing.T) { - t.Run("GetPreviousDocVersion", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} - var expected int - obj.PreviousDocVersion = expected + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - // Act & Assert - assert.Equal(t, expected, obj.GetPreviousDocVersion(), "getter should return the property value") + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { + t.Run("SetOwned_MarksExplicit", func(t *testing.T) { t.Parallel() - var obj *DocPagesRemoveName200ResponseMetaCacheDelta - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPreviousDocVersion() // Should return zero value + // Arrange + obj := &DocPagesViewports200ResponseItem{} + var fernTestValueOwned bool + + // Act + obj.SetOwned(fernTestValueOwned) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetDocVersion", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} - var expected int - obj.DocVersion = expected +} - // Act & Assert - assert.Equal(t, expected, obj.GetDocVersion(), "getter should return the property value") +func TestSettersDocPagesViewports200ResponseItemBbox(t *testing.T) { + t.Run("SetLeft", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemBbox{} + var fernTestValueLeft float64 + obj.SetLeft(fernTestValueLeft) + assert.Equal(t, fernTestValueLeft, obj.Left) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesRemoveName200ResponseMetaCacheDelta - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetDocVersion() // Should return zero value + t.Run("SetBottom", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemBbox{} + var fernTestValueBottom float64 + obj.SetBottom(fernTestValueBottom) + assert.Equal(t, fernTestValueBottom, obj.Bottom) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetAnnotationsVersion", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} - var expected *int - obj.AnnotationsVersion = expected + t.Run("SetRight", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemBbox{} + var fernTestValueRight float64 + obj.SetRight(fernTestValueRight) + assert.Equal(t, fernTestValueRight, obj.Right) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Equal(t, expected, obj.GetAnnotationsVersion(), "getter should return the property value") + t.Run("SetTop", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemBbox{} + var fernTestValueTop float64 + obj.SetTop(fernTestValueTop) + assert.Equal(t, fernTestValueTop, obj.Top) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetAnnotationsVersion_NilValue", func(t *testing.T) { +} + +func TestGettersDocPagesViewports200ResponseItemBbox(t *testing.T) { + t.Run("GetLeft", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} - obj.AnnotationsVersion = nil + obj := &DocPagesViewports200ResponseItemBbox{} + var expected float64 + obj.Left = expected // Act & Assert - assert.Nil(t, obj.GetAnnotationsVersion(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetLeft(), "getter should return the property value") }) - t.Run("GetAnnotationsVersion_NilReceiver", func(t *testing.T) { + t.Run("GetLeft_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRemoveName200ResponseMetaCacheDelta + var obj *DocPagesViewports200ResponseItemBbox // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAnnotationsVersion() // Should return zero value - }) - - t.Run("GetLayerVersion", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} - var expected *int - obj.LayerVersion = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetLayerVersion(), "getter should return the property value") + _ = obj.GetLeft() // Should return zero value }) - t.Run("GetLayerVersion_NilValue", func(t *testing.T) { + t.Run("GetBottom", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} - obj.LayerVersion = nil + obj := &DocPagesViewports200ResponseItemBbox{} + var expected float64 + obj.Bottom = expected // Act & Assert - assert.Nil(t, obj.GetLayerVersion(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetBottom(), "getter should return the property value") }) - t.Run("GetLayerVersion_NilReceiver", func(t *testing.T) { + t.Run("GetBottom_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRemoveName200ResponseMetaCacheDelta + var obj *DocPagesViewports200ResponseItemBbox // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLayerVersion() // Should return zero value - }) - - t.Run("GetWorking", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} - var expected *bool - obj.Working = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetWorking(), "getter should return the property value") + _ = obj.GetBottom() // Should return zero value }) - t.Run("GetWorking_NilValue", func(t *testing.T) { + t.Run("GetRight", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} - obj.Working = nil + obj := &DocPagesViewports200ResponseItemBbox{} + var expected float64 + obj.Right = expected // Act & Assert - assert.Nil(t, obj.GetWorking(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetRight(), "getter should return the property value") }) - t.Run("GetWorking_NilReceiver", func(t *testing.T) { + t.Run("GetRight_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRemoveName200ResponseMetaCacheDelta + var obj *DocPagesViewports200ResponseItemBbox // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetWorking() // Should return zero value - }) - - t.Run("GetPages", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} - var expected []*DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem - obj.Pages = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetPages(), "getter should return the property value") + _ = obj.GetRight() // Should return zero value }) - t.Run("GetPages_NilValue", func(t *testing.T) { + t.Run("GetTop", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} - obj.Pages = nil + obj := &DocPagesViewports200ResponseItemBbox{} + var expected float64 + obj.Top = expected // Act & Assert - assert.Nil(t, obj.GetPages(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetTop(), "getter should return the property value") }) - t.Run("GetPages_NilReceiver", func(t *testing.T) { + t.Run("GetTop_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRemoveName200ResponseMetaCacheDelta + var obj *DocPagesViewports200ResponseItemBbox // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPages() // Should return zero value + _ = obj.GetTop() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesRemoveName200ResponseMetaCacheDelta(t *testing.T) { - t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocPagesViewports200ResponseItemBbox(t *testing.T) { + t.Run("SetLeft_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} - var fernTestValuePreviousDocVersion int + obj := &DocPagesViewports200ResponseItemBbox{} + var fernTestValueLeft float64 // Act - obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) + obj.SetLeft(fernTestValueLeft) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -249591,14 +292227,14 @@ func TestSettersMarkExplicitDocPagesRemoveName200ResponseMetaCacheDelta(t *testi // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDocVersion_MarksExplicit", func(t *testing.T) { + t.Run("SetBottom_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} - var fernTestValueDocVersion int + obj := &DocPagesViewports200ResponseItemBbox{} + var fernTestValueBottom float64 // Act - obj.SetDocVersion(fernTestValueDocVersion) + obj.SetBottom(fernTestValueBottom) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -249622,14 +292258,14 @@ func TestSettersMarkExplicitDocPagesRemoveName200ResponseMetaCacheDelta(t *testi // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotationsVersion_MarksExplicit", func(t *testing.T) { + t.Run("SetRight_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} - var fernTestValueAnnotationsVersion *int + obj := &DocPagesViewports200ResponseItemBbox{} + var fernTestValueRight float64 // Act - obj.SetAnnotationsVersion(fernTestValueAnnotationsVersion) + obj.SetRight(fernTestValueRight) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -249653,14 +292289,14 @@ func TestSettersMarkExplicitDocPagesRemoveName200ResponseMetaCacheDelta(t *testi // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLayerVersion_MarksExplicit", func(t *testing.T) { + t.Run("SetTop_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} - var fernTestValueLayerVersion *int + obj := &DocPagesViewports200ResponseItemBbox{} + var fernTestValueTop float64 // Act - obj.SetLayerVersion(fernTestValueLayerVersion) + obj.SetTop(fernTestValueTop) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -249684,495 +292320,517 @@ func TestSettersMarkExplicitDocPagesRemoveName200ResponseMetaCacheDelta(t *testi // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWorking_MarksExplicit", func(t *testing.T) { +} + +func TestGettersDocPagesViewports200ResponseItemMeasure(t *testing.T) { + t.Run("GetSubtype", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} - var fernTestValueWorking *bool - - // Act - obj.SetWorking(fernTestValueWorking) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + obj := &DocPagesViewports200ResponseItemMeasure{} + var expected string + obj.Subtype = expected - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Equal(t, expected, obj.GetSubtype(), "getter should return the property value") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetSubtype_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasure + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetSubtype() // Should return zero value }) - t.Run("SetPages_MarksExplicit", func(t *testing.T) { + t.Run("GetRl", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem - - // Act - obj.SetPages(fernTestValuePages) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocPagesViewports200ResponseItemMeasure{} + var expected *DocPagesViewports200ResponseItemMeasureRl + obj.Rl = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetRl(), "getter should return the property value") }) -} + t.Run("GetRl_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasure{} + obj.Rl = nil -func TestSettersDocPagesRemoveName200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Nil(t, obj.GetRl(), "getter should return nil when property is nil") }) - t.Run("SetCache", func(t *testing.T) { - obj := &DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache - obj.SetCache(fernTestValueCache) - assert.Equal(t, fernTestValueCache, obj.Cache) - assert.NotNil(t, obj.explicitFields) + t.Run("GetRl_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasure + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRl() // Should return zero value }) -} + t.Run("GetGeo", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasure{} + var expected *DocPagesViewports200ResponseItemMeasureGeo + obj.Geo = expected -func TestGettersDocPagesRemoveName200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + // Act & Assert + assert.Equal(t, expected, obj.GetGeo(), "getter should return the property value") + }) + + t.Run("GetGeo_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem{} - var expected int - obj.PageObjectNumber = expected + obj := &DocPagesViewports200ResponseItemMeasure{} + obj.Geo = nil // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Nil(t, obj.GetGeo(), "getter should return nil when property is nil") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetGeo_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem + var obj *DocPagesViewports200ResponseItemMeasure // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetGeo() // Should return zero value }) - t.Run("GetCache", func(t *testing.T) { + t.Run("GetUnknown", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem{} - var expected *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache - obj.Cache = expected + obj := &DocPagesViewports200ResponseItemMeasure{} + var expected *DocPagesViewports200ResponseItemMeasureUnknown + obj.Unknown = expected // Act & Assert - assert.Equal(t, expected, obj.GetCache(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") }) - t.Run("GetCache_NilValue", func(t *testing.T) { + t.Run("GetUnknown_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem{} - obj.Cache = nil + obj := &DocPagesViewports200ResponseItemMeasure{} + obj.Unknown = nil // Act & Assert - assert.Nil(t, obj.GetCache(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") }) - t.Run("GetCache_NilReceiver", func(t *testing.T) { + t.Run("GetUnknown_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem + var obj *DocPagesViewports200ResponseItemMeasure // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCache() // Should return zero value + _ = obj.GetUnknown() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesRemoveName200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem{} - var fernTestValuePageObjectNumber int +func TestSettersDocPagesViewports200ResponseItemMeasureRl(t *testing.T) { + t.Run("SetRatio", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRl{} + var fernTestValueRatio *string + obj.SetRatio(fernTestValueRatio) + assert.Equal(t, fernTestValueRatio, obj.Ratio) + assert.NotNil(t, obj.explicitFields) + }) - // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + t.Run("SetX", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRl{} + var fernTestValueX []*DocPagesViewports200ResponseItemMeasureRlXItem + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("SetY", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRl{} + var fernTestValueY []*DocPagesViewports200ResponseItemMeasureRlYItem + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) + assert.NotNil(t, obj.explicitFields) + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("SetDistance", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRl{} + var fernTestValueDistance []*DocPagesViewports200ResponseItemMeasureRlDistanceItem + obj.SetDistance(fernTestValueDistance) + assert.Equal(t, fernTestValueDistance, obj.Distance) + assert.NotNil(t, obj.explicitFields) + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("SetArea", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRl{} + var fernTestValueArea []*DocPagesViewports200ResponseItemMeasureRlAreaItem + obj.SetArea(fernTestValueArea) + assert.Equal(t, fernTestValueArea, obj.Area) + assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCache_MarksExplicit", func(t *testing.T) { + t.Run("SetAngle", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRl{} + var fernTestValueAngle []*DocPagesViewports200ResponseItemMeasureRlAngleItem + obj.SetAngle(fernTestValueAngle) + assert.Equal(t, fernTestValueAngle, obj.Angle) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSlope", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRl{} + var fernTestValueSlope []*DocPagesViewports200ResponseItemMeasureRlSlopeItem + obj.SetSlope(fernTestValueSlope) + assert.Equal(t, fernTestValueSlope, obj.Slope) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetOrigin", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRl{} + var fernTestValueOrigin *DocPagesViewports200ResponseItemMeasureRlOrigin + obj.SetOrigin(fernTestValueOrigin) + assert.Equal(t, fernTestValueOrigin, obj.Origin) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetCyx", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRl{} + var fernTestValueCyx *float64 + obj.SetCyx(fernTestValueCyx) + assert.Equal(t, fernTestValueCyx, obj.Cyx) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesViewports200ResponseItemMeasureRl(t *testing.T) { + t.Run("GetRatio", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache + obj := &DocPagesViewports200ResponseItemMeasureRl{} + var expected *string + obj.Ratio = expected - // Act - obj.SetCache(fernTestValueCache) + // Act & Assert + assert.Equal(t, expected, obj.GetRatio(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetRatio_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRl{} + obj.Ratio = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetRatio(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetRatio_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRl + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetRatio() // Should return zero value }) -} + t.Run("GetX", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRl{} + var expected []*DocPagesViewports200ResponseItemMeasureRlXItem + obj.X = expected -func TestSettersDocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("SetContentVersion", func(t *testing.T) { - obj := &DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueContentVersion int - obj.SetContentVersion(fernTestValueContentVersion) - assert.Equal(t, fernTestValueContentVersion, obj.ContentVersion) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") }) - t.Run("SetAnnotationVersion", func(t *testing.T) { - obj := &DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueAnnotationVersion int - obj.SetAnnotationVersion(fernTestValueAnnotationVersion) - assert.Equal(t, fernTestValueAnnotationVersion, obj.AnnotationVersion) - assert.NotNil(t, obj.explicitFields) + t.Run("GetX_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRl{} + obj.X = nil + + // Act & Assert + assert.Nil(t, obj.GetX(), "getter should return nil when property is nil") + }) + + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRl + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRl{} + var expected []*DocPagesViewports200ResponseItemMeasureRlYItem + obj.Y = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") }) -} - -func TestGettersDocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("GetContentVersion", func(t *testing.T) { + t.Run("GetY_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache{} - var expected int - obj.ContentVersion = expected + obj := &DocPagesViewports200ResponseItemMeasureRl{} + obj.Y = nil // Act & Assert - assert.Equal(t, expected, obj.GetContentVersion(), "getter should return the property value") + assert.Nil(t, obj.GetY(), "getter should return nil when property is nil") }) - t.Run("GetContentVersion_NilReceiver", func(t *testing.T) { + t.Run("GetY_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache + var obj *DocPagesViewports200ResponseItemMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetContentVersion() // Should return zero value + _ = obj.GetY() // Should return zero value }) - t.Run("GetAnnotationVersion", func(t *testing.T) { + t.Run("GetDistance", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache{} - var expected int - obj.AnnotationVersion = expected + obj := &DocPagesViewports200ResponseItemMeasureRl{} + var expected []*DocPagesViewports200ResponseItemMeasureRlDistanceItem + obj.Distance = expected // Act & Assert - assert.Equal(t, expected, obj.GetAnnotationVersion(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDistance(), "getter should return the property value") }) - t.Run("GetAnnotationVersion_NilReceiver", func(t *testing.T) { + t.Run("GetDistance_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRl{} + obj.Distance = nil + + // Act & Assert + assert.Nil(t, obj.GetDistance(), "getter should return nil when property is nil") + }) + + t.Run("GetDistance_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAnnotationVersion() // Should return zero value + _ = obj.GetDistance() // Should return zero value }) -} - -func TestSettersMarkExplicitDocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("SetContentVersion_MarksExplicit", func(t *testing.T) { + t.Run("GetArea", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueContentVersion int - - // Act - obj.SetContentVersion(fernTestValueContentVersion) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocPagesViewports200ResponseItemMeasureRl{} + var expected []*DocPagesViewports200ResponseItemMeasureRlAreaItem + obj.Area = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetArea(), "getter should return the property value") }) - t.Run("SetAnnotationVersion_MarksExplicit", func(t *testing.T) { + t.Run("GetArea_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueAnnotationVersion int - - // Act - obj.SetAnnotationVersion(fernTestValueAnnotationVersion) + obj := &DocPagesViewports200ResponseItemMeasureRl{} + obj.Area = nil - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocPagesRemoveName400Response(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocPagesRemoveName400Response{} - var fernTestValueName DocPagesRemoveName400ResponseName - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Nil(t, obj.GetArea(), "getter should return nil when property is nil") }) - t.Run("SetCode", func(t *testing.T) { - obj := &DocPagesRemoveName400Response{} - var fernTestValueCode DocPagesRemoveName400ResponseCode - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) - assert.NotNil(t, obj.explicitFields) + t.Run("GetArea_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRl + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetArea() // Should return zero value }) - t.Run("SetMessage", func(t *testing.T) { - obj := &DocPagesRemoveName400Response{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) - assert.NotNil(t, obj.explicitFields) - }) + t.Run("GetAngle", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRl{} + var expected []*DocPagesViewports200ResponseItemMeasureRlAngleItem + obj.Angle = expected - t.Run("SetDetails", func(t *testing.T) { - obj := &DocPagesRemoveName400Response{} - var fernTestValueDetails map[string]any - obj.SetDetails(fernTestValueDetails) - assert.Equal(t, fernTestValueDetails, obj.Details) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetAngle(), "getter should return the property value") }) -} - -func TestGettersDocPagesRemoveName400Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { + t.Run("GetAngle_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName400Response{} - var expected DocPagesRemoveName400ResponseName - obj.Name = expected + obj := &DocPagesViewports200ResponseItemMeasureRl{} + obj.Angle = nil // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Nil(t, obj.GetAngle(), "getter should return nil when property is nil") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetAngle_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRemoveName400Response + var obj *DocPagesViewports200ResponseItemMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetName() // Should return zero value + _ = obj.GetAngle() // Should return zero value }) - t.Run("GetCode", func(t *testing.T) { + t.Run("GetSlope", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName400Response{} - var expected DocPagesRemoveName400ResponseCode - obj.Code = expected + obj := &DocPagesViewports200ResponseItemMeasureRl{} + var expected []*DocPagesViewports200ResponseItemMeasureRlSlopeItem + obj.Slope = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSlope(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetSlope_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocPagesRemoveName400Response + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRl{} + obj.Slope = nil + + // Act & Assert + assert.Nil(t, obj.GetSlope(), "getter should return nil when property is nil") + }) + + t.Run("GetSlope_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCode() // Should return zero value + _ = obj.GetSlope() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetOrigin", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName400Response{} - var expected string - obj.Message = expected + obj := &DocPagesViewports200ResponseItemMeasureRl{} + var expected *DocPagesViewports200ResponseItemMeasureRlOrigin + obj.Origin = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrigin(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetOrigin_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocPagesRemoveName400Response + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRl{} + obj.Origin = nil + + // Act & Assert + assert.Nil(t, obj.GetOrigin(), "getter should return nil when property is nil") + }) + + t.Run("GetOrigin_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetMessage() // Should return zero value + _ = obj.GetOrigin() // Should return zero value }) - t.Run("GetDetails", func(t *testing.T) { + t.Run("GetCyx", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName400Response{} - var expected map[string]any - obj.Details = expected + obj := &DocPagesViewports200ResponseItemMeasureRl{} + var expected *float64 + obj.Cyx = expected // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCyx(), "getter should return the property value") }) - t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Run("GetCyx_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName400Response{} - obj.Details = nil + obj := &DocPagesViewports200ResponseItemMeasureRl{} + obj.Cyx = nil // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCyx(), "getter should return nil when property is nil") }) - t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Run("GetCyx_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRemoveName400Response + var obj *DocPagesViewports200ResponseItemMeasureRl // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDetails() // Should return zero value + _ = obj.GetCyx() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesRemoveName400Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocPagesViewports200ResponseItemMeasureRl(t *testing.T) { + t.Run("SetRatio_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName400Response{} - var fernTestValueName DocPagesRemoveName400ResponseName + obj := &DocPagesViewports200ResponseItemMeasureRl{} + var fernTestValueRatio *string // Act - obj.SetName(fernTestValueName) + obj.SetRatio(fernTestValueRatio) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -250196,14 +292854,14 @@ func TestSettersMarkExplicitDocPagesRemoveName400Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName400Response{} - var fernTestValueCode DocPagesRemoveName400ResponseCode + obj := &DocPagesViewports200ResponseItemMeasureRl{} + var fernTestValueX []*DocPagesViewports200ResponseItemMeasureRlXItem // Act - obj.SetCode(fernTestValueCode) + obj.SetX(fernTestValueX) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -250227,14 +292885,14 @@ func TestSettersMarkExplicitDocPagesRemoveName400Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetMessage_MarksExplicit", func(t *testing.T) { + t.Run("SetY_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName400Response{} - var fernTestValueMessage string + obj := &DocPagesViewports200ResponseItemMeasureRl{} + var fernTestValueY []*DocPagesViewports200ResponseItemMeasureRlYItem // Act - obj.SetMessage(fernTestValueMessage) + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -250258,14 +292916,14 @@ func TestSettersMarkExplicitDocPagesRemoveName400Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDetails_MarksExplicit", func(t *testing.T) { + t.Run("SetDistance_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName400Response{} - var fernTestValueDetails map[string]any + obj := &DocPagesViewports200ResponseItemMeasureRl{} + var fernTestValueDistance []*DocPagesViewports200ResponseItemMeasureRlDistanceItem // Act - obj.SetDetails(fernTestValueDetails) + obj.SetDistance(fernTestValueDistance) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -250289,157 +292947,45 @@ func TestSettersMarkExplicitDocPagesRemoveName400Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocPagesRemoveName404Response(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocPagesRemoveName404Response{} - var fernTestValueName DocPagesRemoveName404ResponseName - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCode", func(t *testing.T) { - obj := &DocPagesRemoveName404Response{} - var fernTestValueCode DocPagesRemoveName404ResponseCode - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetMessage", func(t *testing.T) { - obj := &DocPagesRemoveName404Response{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetDetails", func(t *testing.T) { - obj := &DocPagesRemoveName404Response{} - var fernTestValueDetails map[string]any - obj.SetDetails(fernTestValueDetails) - assert.Equal(t, fernTestValueDetails, obj.Details) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocPagesRemoveName404Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesRemoveName404Response{} - var expected DocPagesRemoveName404ResponseName - obj.Name = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") - }) - - t.Run("GetName_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesRemoveName404Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetName() // Should return zero value - }) - - t.Run("GetCode", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesRemoveName404Response{} - var expected DocPagesRemoveName404ResponseCode - obj.Code = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") - }) - - t.Run("GetCode_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesRemoveName404Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetCode() // Should return zero value - }) - - t.Run("GetMessage", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesRemoveName404Response{} - var expected string - obj.Message = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") - }) - - t.Run("GetMessage_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesRemoveName404Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetMessage() // Should return zero value - }) - - t.Run("GetDetails", func(t *testing.T) { + t.Run("SetArea_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName404Response{} - var expected map[string]any - obj.Details = expected + obj := &DocPagesViewports200ResponseItemMeasureRl{} + var fernTestValueArea []*DocPagesViewports200ResponseItemMeasureRlAreaItem - // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") - }) + // Act + obj.SetArea(fernTestValueArea) - t.Run("GetDetails_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesRemoveName404Response{} - obj.Details = nil + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetDetails_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesRemoveName404Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetDetails() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocPagesRemoveName404Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Run("SetAngle_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName404Response{} - var fernTestValueName DocPagesRemoveName404ResponseName + obj := &DocPagesViewports200ResponseItemMeasureRl{} + var fernTestValueAngle []*DocPagesViewports200ResponseItemMeasureRlAngleItem // Act - obj.SetName(fernTestValueName) + obj.SetAngle(fernTestValueAngle) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -250463,14 +293009,14 @@ func TestSettersMarkExplicitDocPagesRemoveName404Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Run("SetSlope_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName404Response{} - var fernTestValueCode DocPagesRemoveName404ResponseCode + obj := &DocPagesViewports200ResponseItemMeasureRl{} + var fernTestValueSlope []*DocPagesViewports200ResponseItemMeasureRlSlopeItem // Act - obj.SetCode(fernTestValueCode) + obj.SetSlope(fernTestValueSlope) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -250494,14 +293040,14 @@ func TestSettersMarkExplicitDocPagesRemoveName404Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetMessage_MarksExplicit", func(t *testing.T) { + t.Run("SetOrigin_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName404Response{} - var fernTestValueMessage string + obj := &DocPagesViewports200ResponseItemMeasureRl{} + var fernTestValueOrigin *DocPagesViewports200ResponseItemMeasureRlOrigin // Act - obj.SetMessage(fernTestValueMessage) + obj.SetOrigin(fernTestValueOrigin) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -250525,14 +293071,14 @@ func TestSettersMarkExplicitDocPagesRemoveName404Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDetails_MarksExplicit", func(t *testing.T) { + t.Run("SetCyx_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRemoveName404Response{} - var fernTestValueDetails map[string]any + obj := &DocPagesViewports200ResponseItemMeasureRl{} + var fernTestValueCyx *float64 // Act - obj.SetDetails(fernTestValueDetails) + obj.SetCyx(fernTestValueCyx) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -250558,368 +293104,421 @@ func TestSettersMarkExplicitDocPagesRemoveName404Response(t *testing.T) { } -func TestSettersDocPagesRotate200Response(t *testing.T) { - t.Run("SetMeta", func(t *testing.T) { - obj := &DocPagesRotate200Response{} - var fernTestValueMeta *DocPagesRotate200ResponseMeta - obj.SetMeta(fernTestValueMeta) - assert.Equal(t, fernTestValueMeta, obj.Meta) +func TestSettersDocPagesViewports200ResponseItemMeasureRlAngleItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) assert.NotNil(t, obj.explicitFields) }) -} + t.Run("SetConversion", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) + assert.NotNil(t, obj.explicitFields) + }) -func TestGettersDocPagesRotate200Response(t *testing.T) { - t.Run("GetMeta", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesRotate200Response{} - var expected *DocPagesRotate200ResponseMeta - obj.Meta = expected + t.Run("SetFraction", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + var fernTestValueFraction *DocPagesViewports200ResponseItemMeasureRlAngleItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) - // Act & Assert - assert.Equal(t, expected, obj.GetMeta(), "getter should return the property value") + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) }) - t.Run("GetMeta_NilValue", func(t *testing.T) { + t.Run("SetFixed", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + var fernTestValueLabelPosition *DocPagesViewports200ResponseItemMeasureRlAngleItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesViewports200ResponseItemMeasureRlAngleItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200Response{} - obj.Meta = nil + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + var expected string + obj.Unit = expected // Act & Assert - assert.Nil(t, obj.GetMeta(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") }) - t.Run("GetMeta_NilReceiver", func(t *testing.T) { + t.Run("GetUnit_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200Response + var obj *DocPagesViewports200ResponseItemMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetMeta() // Should return zero value + _ = obj.GetUnit() // Should return zero value }) -} - -func TestSettersMarkExplicitDocPagesRotate200Response(t *testing.T) { - t.Run("SetMeta_MarksExplicit", func(t *testing.T) { + t.Run("GetConversion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200Response{} - var fernTestValueMeta *DocPagesRotate200ResponseMeta - - // Act - obj.SetMeta(fernTestValueMeta) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + var expected *float64 + obj.Conversion = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") }) -} + t.Run("GetConversion_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + obj.Conversion = nil -func TestSettersDocPagesRotate200ResponseMeta(t *testing.T) { - t.Run("SetAffectedPages", func(t *testing.T) { - obj := &DocPagesRotate200ResponseMeta{} - var fernTestValueAffectedPages []*DocPagesRotate200ResponseMetaAffectedPagesItem - obj.SetAffectedPages(fernTestValueAffectedPages) - assert.Equal(t, fernTestValueAffectedPages, obj.AffectedPages) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") }) - t.Run("SetCacheDelta", func(t *testing.T) { - obj := &DocPagesRotate200ResponseMeta{} - var fernTestValueCacheDelta *DocPagesRotate200ResponseMetaCacheDelta - obj.SetCacheDelta(fernTestValueCacheDelta) - assert.Equal(t, fernTestValueCacheDelta, obj.CacheDelta) - assert.NotNil(t, obj.explicitFields) + t.Run("GetConversion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlAngleItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetConversion() // Should return zero value }) -} - -func TestGettersDocPagesRotate200ResponseMeta(t *testing.T) { - t.Run("GetAffectedPages", func(t *testing.T) { + t.Run("GetFraction", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMeta{} - var expected []*DocPagesRotate200ResponseMetaAffectedPagesItem - obj.AffectedPages = expected + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + var expected *DocPagesViewports200ResponseItemMeasureRlAngleItemFraction + obj.Fraction = expected // Act & Assert - assert.Equal(t, expected, obj.GetAffectedPages(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") }) - t.Run("GetAffectedPages_NilValue", func(t *testing.T) { + t.Run("GetFraction_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMeta{} - obj.AffectedPages = nil + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + obj.Fraction = nil // Act & Assert - assert.Nil(t, obj.GetAffectedPages(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") }) - t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { + t.Run("GetFraction_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMeta + var obj *DocPagesViewports200ResponseItemMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAffectedPages() // Should return zero value + _ = obj.GetFraction() // Should return zero value }) - t.Run("GetCacheDelta", func(t *testing.T) { + t.Run("GetPrecision", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMeta{} - var expected *DocPagesRotate200ResponseMetaCacheDelta - obj.CacheDelta = expected + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + var expected *int + obj.Precision = expected // Act & Assert - assert.Equal(t, expected, obj.GetCacheDelta(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") }) - t.Run("GetCacheDelta_NilValue", func(t *testing.T) { + t.Run("GetPrecision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMeta{} - obj.CacheDelta = nil + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + obj.Precision = nil // Act & Assert - assert.Nil(t, obj.GetCacheDelta(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") }) - t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMeta + var obj *DocPagesViewports200ResponseItemMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCacheDelta() // Should return zero value + _ = obj.GetPrecision() // Should return zero value }) -} - -func TestSettersMarkExplicitDocPagesRotate200ResponseMeta(t *testing.T) { - t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { + t.Run("GetFixed", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMeta{} - var fernTestValueAffectedPages []*DocPagesRotate200ResponseMetaAffectedPagesItem + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + var expected *bool + obj.Fixed = expected - // Act - obj.SetAffectedPages(fernTestValueAffectedPages) + // Act & Assert + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetFixed_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + obj.Fixed = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetFixed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlAngleItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFixed() // Should return zero value }) - t.Run("SetCacheDelta_MarksExplicit", func(t *testing.T) { + t.Run("GetThousands", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMeta{} - var fernTestValueCacheDelta *DocPagesRotate200ResponseMetaCacheDelta + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + var expected *string + obj.Thousands = expected - // Act - obj.SetCacheDelta(fernTestValueCacheDelta) + // Act & Assert + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetThousands_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + obj.Thousands = nil - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + // Act & Assert + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") + }) - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + t.Run("GetThousands_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlAngleItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetThousands() // Should return zero value }) -} + t.Run("GetDecimal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + var expected *string + obj.Decimal = expected -func TestSettersDocPagesRotate200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") }) - t.Run("SetRevision", func(t *testing.T) { - obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocPagesRotate200ResponseMetaAffectedPagesItemRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) - assert.NotNil(t, obj.explicitFields) + t.Run("GetDecimal_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + obj.Decimal = nil + + // Act & Assert + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") }) - t.Run("SetWeakAnnotationState", func(t *testing.T) { - obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState - obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) - assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) - assert.NotNil(t, obj.explicitFields) + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlAngleItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDecimal() // Should return zero value }) -} + t.Run("GetPrefixSpacing", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + var expected *string + obj.PrefixSpacing = expected -func TestGettersDocPagesRotate200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + // Act & Assert + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") + }) + + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} - var expected int - obj.PageObjectNumber = expected + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + obj.PrefixSpacing = nil // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaAffectedPagesItem + var obj *DocPagesViewports200ResponseItemMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetPrefixSpacing() // Should return zero value }) - t.Run("GetRevision", func(t *testing.T) { + t.Run("GetSuffixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} - var expected *DocPagesRotate200ResponseMetaAffectedPagesItemRevision - obj.Revision = expected + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + var expected *string + obj.SuffixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") }) - t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} - obj.Revision = nil + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + obj.SuffixSpacing = nil // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaAffectedPagesItem + var obj *DocPagesViewports200ResponseItemMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRevision() // Should return zero value + _ = obj.GetSuffixSpacing() // Should return zero value }) - t.Run("GetWeakAnnotationState", func(t *testing.T) { + t.Run("GetLabelPosition", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} - var expected *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState - obj.WeakAnnotationState = expected + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + var expected *DocPagesViewports200ResponseItemMeasureRlAngleItemLabelPosition + obj.LabelPosition = expected // Act & Assert - assert.Equal(t, expected, obj.GetWeakAnnotationState(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") }) - t.Run("GetWeakAnnotationState_NilValue", func(t *testing.T) { + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} - obj.WeakAnnotationState = nil + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + obj.LabelPosition = nil // Act & Assert - assert.Nil(t, obj.GetWeakAnnotationState(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") }) - t.Run("GetWeakAnnotationState_NilReceiver", func(t *testing.T) { + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaAffectedPagesItem + var obj *DocPagesViewports200ResponseItemMeasureRlAngleItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetWeakAnnotationState() // Should return zero value + _ = obj.GetLabelPosition() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesRotate200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocPagesViewports200ResponseItemMeasureRlAngleItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} - var fernTestValuePageObjectNumber int + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + var fernTestValueUnit string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetUnit(fernTestValueUnit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -250943,14 +293542,14 @@ func TestSettersMarkExplicitDocPagesRotate200ResponseMetaAffectedPagesItem(t *te // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocPagesRotate200ResponseMetaAffectedPagesItemRevision + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + var fernTestValueConversion *float64 // Act - obj.SetRevision(fernTestValueRevision) + obj.SetConversion(fernTestValueConversion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -250974,14 +293573,14 @@ func TestSettersMarkExplicitDocPagesRotate200ResponseMetaAffectedPagesItem(t *te // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWeakAnnotationState_MarksExplicit", func(t *testing.T) { + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + var fernTestValueFraction *DocPagesViewports200ResponseItemMeasureRlAngleItemFraction // Act - obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) + obj.SetFraction(fernTestValueFraction) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -251005,116 +293604,138 @@ func TestSettersMarkExplicitDocPagesRotate200ResponseMetaAffectedPagesItem(t *te // It verifies that setting a field via setter allows successful JSON round-trip }) -} + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + var fernTestValuePrecision *int -func TestSettersDocPagesRotate200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueDocSessionID string - obj.SetDocSessionID(fernTestValueDocSessionID) - assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetPrecision(fernTestValuePrecision) - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) - assert.NotNil(t, obj.explicitFields) - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } -} + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) -func TestGettersDocPagesRotate200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} - var expected string - obj.DocSessionID = expected + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + var fernTestValueFixed *bool - // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") - }) + // Act + obj.SetFixed(fernTestValueFixed) - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesRotate200ResponseMetaAffectedPagesItemRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetDocSessionID() // Should return zero value + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} - var expected int - obj.PageObjectNumber = expected + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + var fernTestValueThousands *string - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) + // Act + obj.SetThousands(fernTestValueThousands) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesRotate200ResponseMetaAffectedPagesItemRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetGeneration", func(t *testing.T) { + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} - var expected int - obj.Generation = expected + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + var fernTestValueDecimal *string - // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") - }) + // Act + obj.SetDecimal(fernTestValueDecimal) - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesRotate200ResponseMetaAffectedPagesItemRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetGeneration() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") -} + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } -func TestSettersMarkExplicitDocPagesRotate200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueDocSessionID string + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + var fernTestValuePrefixSpacing *string // Act - obj.SetDocSessionID(fernTestValueDocSessionID) + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -251138,14 +293759,14 @@ func TestSettersMarkExplicitDocPagesRotate200ResponseMetaAffectedPagesItemRevisi // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} - var fernTestValuePageObjectNumber int + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + var fernTestValueSuffixSpacing *string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -251169,14 +293790,14 @@ func TestSettersMarkExplicitDocPagesRotate200ResponseMetaAffectedPagesItemRevisi // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueGeneration int + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + var fernTestValueLabelPosition *DocPagesViewports200ResponseItemMeasureRlAngleItemLabelPosition // Act - obj.SetGeneration(fernTestValueGeneration) + obj.SetLabelPosition(fernTestValueLabelPosition) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -251202,410 +293823,421 @@ func TestSettersMarkExplicitDocPagesRotate200ResponseMetaAffectedPagesItemRevisi } -func TestGettersDocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { +func TestSettersDocPagesViewports200ResponseItemMeasureRlAreaItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetConversion", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFraction", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + var fernTestValueFraction *DocPagesViewports200ResponseItemMeasureRlAreaItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFixed", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + var fernTestValueLabelPosition *DocPagesViewports200ResponseItemMeasureRlAreaItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesViewports200ResponseItemMeasureRlAreaItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} var expected string - obj.Kind = expected + obj.Unit = expected // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetUnit_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocPagesViewports200ResponseItemMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKind() // Should return zero value + _ = obj.GetUnit() // Should return zero value }) - t.Run("GetUnknown", func(t *testing.T) { + t.Run("GetConversion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - obj.Unknown = expected + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + var expected *float64 + obj.Conversion = expected // Act & Assert - assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") }) - t.Run("GetUnknown_NilValue", func(t *testing.T) { + t.Run("GetConversion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState{} - obj.Unknown = nil + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + obj.Conversion = nil // Act & Assert - assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") }) - t.Run("GetUnknown_NilReceiver", func(t *testing.T) { + t.Run("GetConversion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocPagesViewports200ResponseItemMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUnknown() // Should return zero value + _ = obj.GetConversion() // Should return zero value }) - t.Run("GetKnown", func(t *testing.T) { + t.Run("GetFraction", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - obj.Known = expected + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + var expected *DocPagesViewports200ResponseItemMeasureRlAreaItemFraction + obj.Fraction = expected // Act & Assert - assert.Equal(t, expected, obj.GetKnown(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") }) - t.Run("GetKnown_NilValue", func(t *testing.T) { + t.Run("GetFraction_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState{} - obj.Known = nil + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + obj.Fraction = nil // Act & Assert - assert.Nil(t, obj.GetKnown(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") }) - t.Run("GetKnown_NilReceiver", func(t *testing.T) { + t.Run("GetFraction_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocPagesViewports200ResponseItemMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKnown() // Should return zero value + _ = obj.GetFraction() // Should return zero value }) -} + t.Run("GetPrecision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + var expected *int + obj.Precision = expected -func TestSettersDocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("SetHasAnyWeakAnnotations", func(t *testing.T) { - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var fernTestValueHasAnyWeakAnnotations bool - obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) - assert.Equal(t, fernTestValueHasAnyWeakAnnotations, obj.HasAnyWeakAnnotations) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") }) -} - -func TestGettersDocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { + t.Run("GetPrecision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var expected bool - obj.HasAnyWeakAnnotations = expected + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + obj.Precision = nil // Act & Assert - assert.Equal(t, expected, obj.GetHasAnyWeakAnnotations(), "getter should return the property value") + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") }) - t.Run("GetHasAnyWeakAnnotations_NilReceiver", func(t *testing.T) { + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + var obj *DocPagesViewports200ResponseItemMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetHasAnyWeakAnnotations() // Should return zero value + _ = obj.GetPrecision() // Should return zero value }) -} - -func TestSettersMarkExplicitDocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { + t.Run("GetFixed", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var fernTestValueHasAnyWeakAnnotations bool - - // Act - obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocPagesRotate200ResponseMetaCacheDelta(t *testing.T) { - t.Run("SetPreviousDocVersion", func(t *testing.T) { - obj := &DocPagesRotate200ResponseMetaCacheDelta{} - var fernTestValuePreviousDocVersion int - obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) - assert.Equal(t, fernTestValuePreviousDocVersion, obj.PreviousDocVersion) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetDocVersion", func(t *testing.T) { - obj := &DocPagesRotate200ResponseMetaCacheDelta{} - var fernTestValueDocVersion int - obj.SetDocVersion(fernTestValueDocVersion) - assert.Equal(t, fernTestValueDocVersion, obj.DocVersion) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAnnotationsVersion", func(t *testing.T) { - obj := &DocPagesRotate200ResponseMetaCacheDelta{} - var fernTestValueAnnotationsVersion *int - obj.SetAnnotationsVersion(fernTestValueAnnotationsVersion) - assert.Equal(t, fernTestValueAnnotationsVersion, obj.AnnotationsVersion) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetLayerVersion", func(t *testing.T) { - obj := &DocPagesRotate200ResponseMetaCacheDelta{} - var fernTestValueLayerVersion *int - obj.SetLayerVersion(fernTestValueLayerVersion) - assert.Equal(t, fernTestValueLayerVersion, obj.LayerVersion) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetWorking", func(t *testing.T) { - obj := &DocPagesRotate200ResponseMetaCacheDelta{} - var fernTestValueWorking *bool - obj.SetWorking(fernTestValueWorking) - assert.Equal(t, fernTestValueWorking, obj.Working) - assert.NotNil(t, obj.explicitFields) - }) + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + var expected *bool + obj.Fixed = expected - t.Run("SetPages", func(t *testing.T) { - obj := &DocPagesRotate200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocPagesRotate200ResponseMetaCacheDeltaPagesItem - obj.SetPages(fernTestValuePages) - assert.Equal(t, fernTestValuePages, obj.Pages) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") }) - -} - -func TestGettersDocPagesRotate200ResponseMetaCacheDelta(t *testing.T) { - t.Run("GetPreviousDocVersion", func(t *testing.T) { + + t.Run("GetFixed_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDelta{} - var expected int - obj.PreviousDocVersion = expected + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + obj.Fixed = nil // Act & Assert - assert.Equal(t, expected, obj.GetPreviousDocVersion(), "getter should return the property value") + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") }) - t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { + t.Run("GetFixed_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaCacheDelta + var obj *DocPagesViewports200ResponseItemMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPreviousDocVersion() // Should return zero value + _ = obj.GetFixed() // Should return zero value }) - t.Run("GetDocVersion", func(t *testing.T) { + t.Run("GetThousands", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDelta{} - var expected int - obj.DocVersion = expected + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + var expected *string + obj.Thousands = expected // Act & Assert - assert.Equal(t, expected, obj.GetDocVersion(), "getter should return the property value") + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") }) - t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { + t.Run("GetThousands_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaCacheDelta + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + obj.Thousands = nil + + // Act & Assert + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") + }) + + t.Run("GetThousands_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDocVersion() // Should return zero value + _ = obj.GetThousands() // Should return zero value }) - t.Run("GetAnnotationsVersion", func(t *testing.T) { + t.Run("GetDecimal", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDelta{} - var expected *int - obj.AnnotationsVersion = expected + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + var expected *string + obj.Decimal = expected // Act & Assert - assert.Equal(t, expected, obj.GetAnnotationsVersion(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") }) - t.Run("GetAnnotationsVersion_NilValue", func(t *testing.T) { + t.Run("GetDecimal_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDelta{} - obj.AnnotationsVersion = nil + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + obj.Decimal = nil // Act & Assert - assert.Nil(t, obj.GetAnnotationsVersion(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") }) - t.Run("GetAnnotationsVersion_NilReceiver", func(t *testing.T) { + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaCacheDelta + var obj *DocPagesViewports200ResponseItemMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAnnotationsVersion() // Should return zero value + _ = obj.GetDecimal() // Should return zero value }) - t.Run("GetLayerVersion", func(t *testing.T) { + t.Run("GetPrefixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDelta{} - var expected *int - obj.LayerVersion = expected + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + var expected *string + obj.PrefixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetLayerVersion(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") }) - t.Run("GetLayerVersion_NilValue", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDelta{} - obj.LayerVersion = nil + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + obj.PrefixSpacing = nil // Act & Assert - assert.Nil(t, obj.GetLayerVersion(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetLayerVersion_NilReceiver", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaCacheDelta + var obj *DocPagesViewports200ResponseItemMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLayerVersion() // Should return zero value + _ = obj.GetPrefixSpacing() // Should return zero value }) - t.Run("GetWorking", func(t *testing.T) { + t.Run("GetSuffixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDelta{} - var expected *bool - obj.Working = expected + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + var expected *string + obj.SuffixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetWorking(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") }) - t.Run("GetWorking_NilValue", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDelta{} - obj.Working = nil + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + obj.SuffixSpacing = nil // Act & Assert - assert.Nil(t, obj.GetWorking(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetWorking_NilReceiver", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaCacheDelta + var obj *DocPagesViewports200ResponseItemMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetWorking() // Should return zero value + _ = obj.GetSuffixSpacing() // Should return zero value }) - t.Run("GetPages", func(t *testing.T) { + t.Run("GetLabelPosition", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDelta{} - var expected []*DocPagesRotate200ResponseMetaCacheDeltaPagesItem - obj.Pages = expected + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + var expected *DocPagesViewports200ResponseItemMeasureRlAreaItemLabelPosition + obj.LabelPosition = expected // Act & Assert - assert.Equal(t, expected, obj.GetPages(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") }) - t.Run("GetPages_NilValue", func(t *testing.T) { + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDelta{} - obj.Pages = nil + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + obj.LabelPosition = nil // Act & Assert - assert.Nil(t, obj.GetPages(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") }) - t.Run("GetPages_NilReceiver", func(t *testing.T) { + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaCacheDelta + var obj *DocPagesViewports200ResponseItemMeasureRlAreaItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPages() // Should return zero value + _ = obj.GetLabelPosition() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesRotate200ResponseMetaCacheDelta(t *testing.T) { - t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocPagesViewports200ResponseItemMeasureRlAreaItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDelta{} - var fernTestValuePreviousDocVersion int + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + var fernTestValueUnit string // Act - obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) + obj.SetUnit(fernTestValueUnit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -251629,14 +294261,14 @@ func TestSettersMarkExplicitDocPagesRotate200ResponseMetaCacheDelta(t *testing.T // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDocVersion_MarksExplicit", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDelta{} - var fernTestValueDocVersion int + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + var fernTestValueConversion *float64 // Act - obj.SetDocVersion(fernTestValueDocVersion) + obj.SetConversion(fernTestValueConversion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -251660,14 +294292,14 @@ func TestSettersMarkExplicitDocPagesRotate200ResponseMetaCacheDelta(t *testing.T // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotationsVersion_MarksExplicit", func(t *testing.T) { + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDelta{} - var fernTestValueAnnotationsVersion *int + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + var fernTestValueFraction *DocPagesViewports200ResponseItemMeasureRlAreaItemFraction // Act - obj.SetAnnotationsVersion(fernTestValueAnnotationsVersion) + obj.SetFraction(fernTestValueFraction) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -251691,14 +294323,14 @@ func TestSettersMarkExplicitDocPagesRotate200ResponseMetaCacheDelta(t *testing.T // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLayerVersion_MarksExplicit", func(t *testing.T) { + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDelta{} - var fernTestValueLayerVersion *int + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + var fernTestValuePrecision *int // Act - obj.SetLayerVersion(fernTestValueLayerVersion) + obj.SetPrecision(fernTestValuePrecision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -251722,14 +294354,14 @@ func TestSettersMarkExplicitDocPagesRotate200ResponseMetaCacheDelta(t *testing.T // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWorking_MarksExplicit", func(t *testing.T) { + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDelta{} - var fernTestValueWorking *bool + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + var fernTestValueFixed *bool // Act - obj.SetWorking(fernTestValueWorking) + obj.SetFixed(fernTestValueFixed) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -251753,14 +294385,14 @@ func TestSettersMarkExplicitDocPagesRotate200ResponseMetaCacheDelta(t *testing.T // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPages_MarksExplicit", func(t *testing.T) { + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocPagesRotate200ResponseMetaCacheDeltaPagesItem + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + var fernTestValueThousands *string // Act - obj.SetPages(fernTestValuePages) + obj.SetThousands(fernTestValueThousands) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -251784,95 +294416,76 @@ func TestSettersMarkExplicitDocPagesRotate200ResponseMetaCacheDelta(t *testing.T // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocPagesRotate200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItem{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCache", func(t *testing.T) { - obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache - obj.SetCache(fernTestValueCache) - assert.Equal(t, fernTestValueCache, obj.Cache) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocPagesRotate200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItem{} - var expected int - obj.PageObjectNumber = expected + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + var fernTestValueDecimal *string - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) + // Act + obj.SetDecimal(fernTestValueDecimal) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesRotate200ResponseMetaCacheDeltaPagesItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("GetCache", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItem{} - var expected *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache - obj.Cache = expected + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - // Act & Assert - assert.Equal(t, expected, obj.GetCache(), "getter should return the property value") + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetCache_NilValue", func(t *testing.T) { + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItem{} - obj.Cache = nil + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + var fernTestValuePrefixSpacing *string - // Act & Assert - assert.Nil(t, obj.GetCache(), "getter should return nil when property is nil") - }) + // Act + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) - t.Run("GetCache_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesRotate200ResponseMetaCacheDeltaPagesItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetCache() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") -} + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } -func TestSettersMarkExplicitDocPagesRotate200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItem{} - var fernTestValuePageObjectNumber int + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + var fernTestValueSuffixSpacing *string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -251896,14 +294509,14 @@ func TestSettersMarkExplicitDocPagesRotate200ResponseMetaCacheDeltaPagesItem(t * // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCache_MarksExplicit", func(t *testing.T) { + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + var fernTestValueLabelPosition *DocPagesViewports200ResponseItemMeasureRlAreaItemLabelPosition // Act - obj.SetCache(fernTestValueCache) + obj.SetLabelPosition(fernTestValueLabelPosition) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -251929,288 +294542,421 @@ func TestSettersMarkExplicitDocPagesRotate200ResponseMetaCacheDeltaPagesItem(t * } -func TestSettersDocPagesRotate200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("SetContentVersion", func(t *testing.T) { - obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueContentVersion int - obj.SetContentVersion(fernTestValueContentVersion) - assert.Equal(t, fernTestValueContentVersion, obj.ContentVersion) +func TestSettersDocPagesViewports200ResponseItemMeasureRlDistanceItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetAnnotationVersion", func(t *testing.T) { - obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueAnnotationVersion int - obj.SetAnnotationVersion(fernTestValueAnnotationVersion) - assert.Equal(t, fernTestValueAnnotationVersion, obj.AnnotationVersion) + t.Run("SetConversion", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFraction", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + var fernTestValueFraction *DocPagesViewports200ResponseItemMeasureRlDistanceItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFixed", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + var fernTestValueLabelPosition *DocPagesViewports200ResponseItemMeasureRlDistanceItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocPagesRotate200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("GetContentVersion", func(t *testing.T) { +func TestGettersDocPagesViewports200ResponseItemMeasureRlDistanceItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache{} - var expected int - obj.ContentVersion = expected + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + var expected string + obj.Unit = expected // Act & Assert - assert.Equal(t, expected, obj.GetContentVersion(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") }) - t.Run("GetContentVersion_NilReceiver", func(t *testing.T) { + t.Run("GetUnit_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache + var obj *DocPagesViewports200ResponseItemMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetContentVersion() // Should return zero value + _ = obj.GetUnit() // Should return zero value }) - t.Run("GetAnnotationVersion", func(t *testing.T) { + t.Run("GetConversion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache{} - var expected int - obj.AnnotationVersion = expected + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + var expected *float64 + obj.Conversion = expected // Act & Assert - assert.Equal(t, expected, obj.GetAnnotationVersion(), "getter should return the property value") + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") }) - t.Run("GetAnnotationVersion_NilReceiver", func(t *testing.T) { + t.Run("GetConversion_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + obj.Conversion = nil + + // Act & Assert + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") + }) + + t.Run("GetConversion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAnnotationVersion() // Should return zero value + _ = obj.GetConversion() // Should return zero value }) -} + t.Run("GetFraction", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + var expected *DocPagesViewports200ResponseItemMeasureRlDistanceItemFraction + obj.Fraction = expected -func TestSettersMarkExplicitDocPagesRotate200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("SetContentVersion_MarksExplicit", func(t *testing.T) { + // Act & Assert + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") + }) + + t.Run("GetFraction_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueContentVersion int + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + obj.Fraction = nil - // Act - obj.SetContentVersion(fernTestValueContentVersion) + // Act & Assert + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetFraction_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFraction() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetPrecision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + var expected *int + obj.Precision = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") }) - t.Run("SetAnnotationVersion_MarksExplicit", func(t *testing.T) { + t.Run("GetPrecision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueAnnotationVersion int + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + obj.Precision = nil - // Act - obj.SetAnnotationVersion(fernTestValueAnnotationVersion) + // Act & Assert + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrecision() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetFixed", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + var expected *bool + obj.Fixed = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") }) -} + t.Run("GetFixed_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + obj.Fixed = nil -func TestSettersDocPagesRotate400Response(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocPagesRotate400Response{} - var fernTestValueName DocPagesRotate400ResponseName - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") }) - t.Run("SetCode", func(t *testing.T) { - obj := &DocPagesRotate400Response{} - var fernTestValueCode DocPagesRotate400ResponseCode - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) - assert.NotNil(t, obj.explicitFields) + t.Run("GetFixed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFixed() // Should return zero value }) - t.Run("SetMessage", func(t *testing.T) { - obj := &DocPagesRotate400Response{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) - assert.NotNil(t, obj.explicitFields) + t.Run("GetThousands", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + var expected *string + obj.Thousands = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") }) - t.Run("SetDetails", func(t *testing.T) { - obj := &DocPagesRotate400Response{} - var fernTestValueDetails map[string]any - obj.SetDetails(fernTestValueDetails) - assert.Equal(t, fernTestValueDetails, obj.Details) - assert.NotNil(t, obj.explicitFields) + t.Run("GetThousands_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + obj.Thousands = nil + + // Act & Assert + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") }) -} + t.Run("GetThousands_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlDistanceItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetThousands() // Should return zero value + }) -func TestGettersDocPagesRotate400Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { + t.Run("GetDecimal", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate400Response{} - var expected DocPagesRotate400ResponseName - obj.Name = expected + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + var expected *string + obj.Decimal = expected // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetDecimal_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate400Response + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + obj.Decimal = nil + + // Act & Assert + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") + }) + + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetName() // Should return zero value + _ = obj.GetDecimal() // Should return zero value }) - t.Run("GetCode", func(t *testing.T) { + t.Run("GetPrefixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate400Response{} - var expected DocPagesRotate400ResponseCode - obj.Code = expected + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + var expected *string + obj.PrefixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate400Response + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + obj.PrefixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCode() // Should return zero value + _ = obj.GetPrefixSpacing() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetSuffixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate400Response{} - var expected string - obj.Message = expected + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + var expected *string + obj.SuffixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate400Response + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + obj.SuffixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetMessage() // Should return zero value + _ = obj.GetSuffixSpacing() // Should return zero value }) - t.Run("GetDetails", func(t *testing.T) { + t.Run("GetLabelPosition", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate400Response{} - var expected map[string]any - obj.Details = expected + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + var expected *DocPagesViewports200ResponseItemMeasureRlDistanceItemLabelPosition + obj.LabelPosition = expected // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") }) - t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate400Response{} - obj.Details = nil + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + obj.LabelPosition = nil // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") }) - t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesRotate400Response + var obj *DocPagesViewports200ResponseItemMeasureRlDistanceItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDetails() // Should return zero value + _ = obj.GetLabelPosition() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesRotate400Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocPagesViewports200ResponseItemMeasureRlDistanceItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate400Response{} - var fernTestValueName DocPagesRotate400ResponseName + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + var fernTestValueUnit string // Act - obj.SetName(fernTestValueName) + obj.SetUnit(fernTestValueUnit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -252234,14 +294980,14 @@ func TestSettersMarkExplicitDocPagesRotate400Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate400Response{} - var fernTestValueCode DocPagesRotate400ResponseCode + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + var fernTestValueConversion *float64 // Act - obj.SetCode(fernTestValueCode) + obj.SetConversion(fernTestValueConversion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -252265,14 +295011,14 @@ func TestSettersMarkExplicitDocPagesRotate400Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetMessage_MarksExplicit", func(t *testing.T) { + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate400Response{} - var fernTestValueMessage string + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + var fernTestValueFraction *DocPagesViewports200ResponseItemMeasureRlDistanceItemFraction // Act - obj.SetMessage(fernTestValueMessage) + obj.SetFraction(fernTestValueFraction) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -252296,14 +295042,14 @@ func TestSettersMarkExplicitDocPagesRotate400Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDetails_MarksExplicit", func(t *testing.T) { + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate400Response{} - var fernTestValueDetails map[string]any + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + var fernTestValuePrecision *int // Act - obj.SetDetails(fernTestValueDetails) + obj.SetPrecision(fernTestValuePrecision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -252327,157 +295073,76 @@ func TestSettersMarkExplicitDocPagesRotate400Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocPagesRotate404Response(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocPagesRotate404Response{} - var fernTestValueName DocPagesRotate404ResponseName - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCode", func(t *testing.T) { - obj := &DocPagesRotate404Response{} - var fernTestValueCode DocPagesRotate404ResponseCode - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetMessage", func(t *testing.T) { - obj := &DocPagesRotate404Response{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetDetails", func(t *testing.T) { - obj := &DocPagesRotate404Response{} - var fernTestValueDetails map[string]any - obj.SetDetails(fernTestValueDetails) - assert.Equal(t, fernTestValueDetails, obj.Details) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocPagesRotate404Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesRotate404Response{} - var expected DocPagesRotate404ResponseName - obj.Name = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") - }) - - t.Run("GetName_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesRotate404Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetName() // Should return zero value - }) - - t.Run("GetCode", func(t *testing.T) { + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate404Response{} - var expected DocPagesRotate404ResponseCode - obj.Code = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") - }) + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + var fernTestValueFixed *bool - t.Run("GetCode_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesRotate404Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetCode() // Should return zero value - }) + // Act + obj.SetFixed(fernTestValueFixed) - t.Run("GetMessage", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesRotate404Response{} - var expected string - obj.Message = expected + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetMessage_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesRotate404Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetMessage() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetDetails", func(t *testing.T) { + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate404Response{} - var expected map[string]any - obj.Details = expected + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + var fernTestValueThousands *string - // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") - }) + // Act + obj.SetThousands(fernTestValueThousands) - t.Run("GetDetails_NilValue", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesRotate404Response{} - obj.Details = nil + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetDetails_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesRotate404Response - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetDetails() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersMarkExplicitDocPagesRotate404Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate404Response{} - var fernTestValueName DocPagesRotate404ResponseName + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + var fernTestValueDecimal *string // Act - obj.SetName(fernTestValueName) + obj.SetDecimal(fernTestValueDecimal) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -252501,14 +295166,14 @@ func TestSettersMarkExplicitDocPagesRotate404Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate404Response{} - var fernTestValueCode DocPagesRotate404ResponseCode + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + var fernTestValuePrefixSpacing *string // Act - obj.SetCode(fernTestValueCode) + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -252532,14 +295197,14 @@ func TestSettersMarkExplicitDocPagesRotate404Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetMessage_MarksExplicit", func(t *testing.T) { + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate404Response{} - var fernTestValueMessage string + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + var fernTestValueSuffixSpacing *string // Act - obj.SetMessage(fernTestValueMessage) + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -252563,14 +295228,14 @@ func TestSettersMarkExplicitDocPagesRotate404Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDetails_MarksExplicit", func(t *testing.T) { + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesRotate404Response{} - var fernTestValueDetails map[string]any + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + var fernTestValueLabelPosition *DocPagesViewports200ResponseItemMeasureRlDistanceItemLabelPosition // Act - obj.SetDetails(fernTestValueDetails) + obj.SetLabelPosition(fernTestValueLabelPosition) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -252596,62 +295261,114 @@ func TestSettersMarkExplicitDocPagesRotate404Response(t *testing.T) { } -func TestSettersDocPagesSetName200Response(t *testing.T) { - t.Run("SetMeta", func(t *testing.T) { - obj := &DocPagesSetName200Response{} - var fernTestValueMeta *DocPagesSetName200ResponseMeta - obj.SetMeta(fernTestValueMeta) - assert.Equal(t, fernTestValueMeta, obj.Meta) +func TestSettersDocPagesViewports200ResponseItemMeasureRlOrigin(t *testing.T) { + t.Run("SetX", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlOrigin{} + var fernTestValueX float64 + obj.SetX(fernTestValueX) + assert.Equal(t, fernTestValueX, obj.X) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetY", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlOrigin{} + var fernTestValueY float64 + obj.SetY(fernTestValueY) + assert.Equal(t, fernTestValueY, obj.Y) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocPagesSetName200Response(t *testing.T) { - t.Run("GetMeta", func(t *testing.T) { +func TestGettersDocPagesViewports200ResponseItemMeasureRlOrigin(t *testing.T) { + t.Run("GetX", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200Response{} - var expected *DocPagesSetName200ResponseMeta - obj.Meta = expected + obj := &DocPagesViewports200ResponseItemMeasureRlOrigin{} + var expected float64 + obj.X = expected // Act & Assert - assert.Equal(t, expected, obj.GetMeta(), "getter should return the property value") + assert.Equal(t, expected, obj.GetX(), "getter should return the property value") }) - t.Run("GetMeta_NilValue", func(t *testing.T) { + t.Run("GetX_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlOrigin + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetX() // Should return zero value + }) + + t.Run("GetY", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200Response{} - obj.Meta = nil + obj := &DocPagesViewports200ResponseItemMeasureRlOrigin{} + var expected float64 + obj.Y = expected // Act & Assert - assert.Nil(t, obj.GetMeta(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetY(), "getter should return the property value") }) - t.Run("GetMeta_NilReceiver", func(t *testing.T) { + t.Run("GetY_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesSetName200Response + var obj *DocPagesViewports200ResponseItemMeasureRlOrigin // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetMeta() // Should return zero value + _ = obj.GetY() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesSetName200Response(t *testing.T) { - t.Run("SetMeta_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocPagesViewports200ResponseItemMeasureRlOrigin(t *testing.T) { + t.Run("SetX_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200Response{} - var fernTestValueMeta *DocPagesSetName200ResponseMeta + obj := &DocPagesViewports200ResponseItemMeasureRlOrigin{} + var fernTestValueX float64 // Act - obj.SetMeta(fernTestValueMeta) + obj.SetX(fernTestValueX) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetY_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlOrigin{} + var fernTestValueY float64 + + // Act + obj.SetY(fernTestValueY) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -252677,287 +295394,452 @@ func TestSettersMarkExplicitDocPagesSetName200Response(t *testing.T) { } -func TestSettersDocPagesSetName200ResponseMeta(t *testing.T) { - t.Run("SetAffectedPages", func(t *testing.T) { - obj := &DocPagesSetName200ResponseMeta{} - var fernTestValueAffectedPages []*DocPagesSetName200ResponseMetaAffectedPagesItem - obj.SetAffectedPages(fernTestValueAffectedPages) - assert.Equal(t, fernTestValueAffectedPages, obj.AffectedPages) +func TestSettersDocPagesViewports200ResponseItemMeasureRlSlopeItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCacheDelta", func(t *testing.T) { - obj := &DocPagesSetName200ResponseMeta{} - var fernTestValueCacheDelta *DocPagesSetName200ResponseMetaCacheDelta - obj.SetCacheDelta(fernTestValueCacheDelta) - assert.Equal(t, fernTestValueCacheDelta, obj.CacheDelta) + t.Run("SetConversion", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFraction", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + var fernTestValueFraction *DocPagesViewports200ResponseItemMeasureRlSlopeItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFixed", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + var fernTestValueLabelPosition *DocPagesViewports200ResponseItemMeasureRlSlopeItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocPagesSetName200ResponseMeta(t *testing.T) { - t.Run("GetAffectedPages", func(t *testing.T) { +func TestGettersDocPagesViewports200ResponseItemMeasureRlSlopeItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMeta{} - var expected []*DocPagesSetName200ResponseMetaAffectedPagesItem - obj.AffectedPages = expected + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + var expected string + obj.Unit = expected // Act & Assert - assert.Equal(t, expected, obj.GetAffectedPages(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") }) - t.Run("GetAffectedPages_NilValue", func(t *testing.T) { + t.Run("GetUnit_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetUnit() // Should return zero value + }) + + t.Run("GetConversion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMeta{} - obj.AffectedPages = nil + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + var expected *float64 + obj.Conversion = expected // Act & Assert - assert.Nil(t, obj.GetAffectedPages(), "getter should return nil when property is nil") + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") }) - t.Run("GetAffectedPages_NilReceiver", func(t *testing.T) { + t.Run("GetConversion_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocPagesSetName200ResponseMeta + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + obj.Conversion = nil + + // Act & Assert + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") + }) + + t.Run("GetConversion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlSlopeItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAffectedPages() // Should return zero value + _ = obj.GetConversion() // Should return zero value }) - t.Run("GetCacheDelta", func(t *testing.T) { + t.Run("GetFraction", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMeta{} - var expected *DocPagesSetName200ResponseMetaCacheDelta - obj.CacheDelta = expected + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + var expected *DocPagesViewports200ResponseItemMeasureRlSlopeItemFraction + obj.Fraction = expected // Act & Assert - assert.Equal(t, expected, obj.GetCacheDelta(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") }) - t.Run("GetCacheDelta_NilValue", func(t *testing.T) { + t.Run("GetFraction_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMeta{} - obj.CacheDelta = nil + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + obj.Fraction = nil // Act & Assert - assert.Nil(t, obj.GetCacheDelta(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") }) - t.Run("GetCacheDelta_NilReceiver", func(t *testing.T) { + t.Run("GetFraction_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesSetName200ResponseMeta + var obj *DocPagesViewports200ResponseItemMeasureRlSlopeItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCacheDelta() // Should return zero value + _ = obj.GetFraction() // Should return zero value }) -} + t.Run("GetPrecision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + var expected *int + obj.Precision = expected -func TestSettersMarkExplicitDocPagesSetName200ResponseMeta(t *testing.T) { - t.Run("SetAffectedPages_MarksExplicit", func(t *testing.T) { + // Act & Assert + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") + }) + + t.Run("GetPrecision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMeta{} - var fernTestValueAffectedPages []*DocPagesSetName200ResponseMetaAffectedPagesItem + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + obj.Precision = nil - // Act - obj.SetAffectedPages(fernTestValueAffectedPages) + // Act & Assert + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrecision() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetFixed", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + var expected *bool + obj.Fixed = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") }) - t.Run("SetCacheDelta_MarksExplicit", func(t *testing.T) { + t.Run("GetFixed_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMeta{} - var fernTestValueCacheDelta *DocPagesSetName200ResponseMetaCacheDelta + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + obj.Fixed = nil - // Act - obj.SetCacheDelta(fernTestValueCacheDelta) + // Act & Assert + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetFixed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFixed() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetThousands", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + var expected *string + obj.Thousands = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") }) -} + t.Run("GetThousands_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + obj.Thousands = nil -func TestSettersDocPagesSetName200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesSetName200ResponseMetaAffectedPagesItem{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") }) - t.Run("SetRevision", func(t *testing.T) { - obj := &DocPagesSetName200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocPagesSetName200ResponseMetaAffectedPagesItemRevision - obj.SetRevision(fernTestValueRevision) - assert.Equal(t, fernTestValueRevision, obj.Revision) - assert.NotNil(t, obj.explicitFields) + t.Run("GetThousands_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetThousands() // Should return zero value }) - t.Run("SetWeakAnnotationState", func(t *testing.T) { - obj := &DocPagesSetName200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState - obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) - assert.Equal(t, fernTestValueWeakAnnotationState, obj.WeakAnnotationState) - assert.NotNil(t, obj.explicitFields) + t.Run("GetDecimal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + var expected *string + obj.Decimal = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") }) -} + t.Run("GetDecimal_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + obj.Decimal = nil -func TestGettersDocPagesSetName200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + // Act & Assert + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") + }) + + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlSlopeItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetDecimal() // Should return zero value + }) + + t.Run("GetPrefixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaAffectedPagesItem{} - var expected int - obj.PageObjectNumber = expected + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + var expected *string + obj.PrefixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") }) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocPagesSetName200ResponseMetaAffectedPagesItem + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + obj.PrefixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlSlopeItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPageObjectNumber() // Should return zero value + _ = obj.GetPrefixSpacing() // Should return zero value }) - t.Run("GetRevision", func(t *testing.T) { + t.Run("GetSuffixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaAffectedPagesItem{} - var expected *DocPagesSetName200ResponseMetaAffectedPagesItemRevision - obj.Revision = expected + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + var expected *string + obj.SuffixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetRevision(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") }) - t.Run("GetRevision_NilValue", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaAffectedPagesItem{} - obj.Revision = nil + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + obj.SuffixSpacing = nil // Act & Assert - assert.Nil(t, obj.GetRevision(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetRevision_NilReceiver", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesSetName200ResponseMetaAffectedPagesItem + var obj *DocPagesViewports200ResponseItemMeasureRlSlopeItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRevision() // Should return zero value + _ = obj.GetSuffixSpacing() // Should return zero value }) - t.Run("GetWeakAnnotationState", func(t *testing.T) { + t.Run("GetLabelPosition", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaAffectedPagesItem{} - var expected *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState - obj.WeakAnnotationState = expected + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + var expected *DocPagesViewports200ResponseItemMeasureRlSlopeItemLabelPosition + obj.LabelPosition = expected // Act & Assert - assert.Equal(t, expected, obj.GetWeakAnnotationState(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") }) - t.Run("GetWeakAnnotationState_NilValue", func(t *testing.T) { + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaAffectedPagesItem{} - obj.WeakAnnotationState = nil + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + obj.LabelPosition = nil // Act & Assert - assert.Nil(t, obj.GetWeakAnnotationState(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") }) - t.Run("GetWeakAnnotationState_NilReceiver", func(t *testing.T) { + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesSetName200ResponseMetaAffectedPagesItem + var obj *DocPagesViewports200ResponseItemMeasureRlSlopeItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetWeakAnnotationState() // Should return zero value + _ = obj.GetLabelPosition() // Should return zero value }) -} +} + +func TestSettersMarkExplicitDocPagesViewports200ResponseItemMeasureRlSlopeItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + var fernTestValueUnit string + + // Act + obj.SetUnit(fernTestValueUnit) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) -func TestSettersMarkExplicitDocPagesSetName200ResponseMetaAffectedPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaAffectedPagesItem{} - var fernTestValuePageObjectNumber int + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + var fernTestValueConversion *float64 // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetConversion(fernTestValueConversion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -252981,14 +295863,14 @@ func TestSettersMarkExplicitDocPagesSetName200ResponseMetaAffectedPagesItem(t *t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRevision_MarksExplicit", func(t *testing.T) { + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaAffectedPagesItem{} - var fernTestValueRevision *DocPagesSetName200ResponseMetaAffectedPagesItemRevision + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + var fernTestValueFraction *DocPagesViewports200ResponseItemMeasureRlSlopeItemFraction // Act - obj.SetRevision(fernTestValueRevision) + obj.SetFraction(fernTestValueFraction) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -253012,14 +295894,14 @@ func TestSettersMarkExplicitDocPagesSetName200ResponseMetaAffectedPagesItem(t *t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWeakAnnotationState_MarksExplicit", func(t *testing.T) { + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaAffectedPagesItem{} - var fernTestValueWeakAnnotationState *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + var fernTestValuePrecision *int // Act - obj.SetWeakAnnotationState(fernTestValueWeakAnnotationState) + obj.SetPrecision(fernTestValuePrecision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -253043,116 +295925,107 @@ func TestSettersMarkExplicitDocPagesSetName200ResponseMetaAffectedPagesItem(t *t // It verifies that setting a field via setter allows successful JSON round-trip }) -} + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + var fernTestValueFixed *bool -func TestSettersDocPagesSetName200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("SetDocSessionID", func(t *testing.T) { - obj := &DocPagesSetName200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueDocSessionID string - obj.SetDocSessionID(fernTestValueDocSessionID) - assert.Equal(t, fernTestValueDocSessionID, obj.DocSessionID) - assert.NotNil(t, obj.explicitFields) - }) + // Act + obj.SetFixed(fernTestValueFixed) - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesSetName200ResponseMetaAffectedPagesItemRevision{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("SetGeneration", func(t *testing.T) { - obj := &DocPagesSetName200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueGeneration int - obj.SetGeneration(fernTestValueGeneration) - assert.Equal(t, fernTestValueGeneration, obj.Generation) - assert.NotNil(t, obj.explicitFields) - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } -} + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) -func TestGettersDocPagesSetName200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("GetDocSessionID", func(t *testing.T) { + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaAffectedPagesItemRevision{} - var expected string - obj.DocSessionID = expected - - // Act & Assert - assert.Equal(t, expected, obj.GetDocSessionID(), "getter should return the property value") - }) + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + var fernTestValueThousands *string - t.Run("GetDocSessionID_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesSetName200ResponseMetaAffectedPagesItemRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetDocSessionID() // Should return zero value - }) + // Act + obj.SetThousands(fernTestValueThousands) - t.Run("GetPageObjectNumber", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesSetName200ResponseMetaAffectedPagesItemRevision{} - var expected int - obj.PageObjectNumber = expected + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesSetName200ResponseMetaAffectedPagesItemRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetGeneration", func(t *testing.T) { + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaAffectedPagesItemRevision{} - var expected int - obj.Generation = expected + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + var fernTestValueDecimal *string - // Act & Assert - assert.Equal(t, expected, obj.GetGeneration(), "getter should return the property value") - }) + // Act + obj.SetDecimal(fernTestValueDecimal) - t.Run("GetGeneration_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesSetName200ResponseMetaAffectedPagesItemRevision - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetGeneration() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") -} + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } -func TestSettersMarkExplicitDocPagesSetName200ResponseMetaAffectedPagesItemRevision(t *testing.T) { - t.Run("SetDocSessionID_MarksExplicit", func(t *testing.T) { + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueDocSessionID string + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + var fernTestValuePrefixSpacing *string // Act - obj.SetDocSessionID(fernTestValueDocSessionID) + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -253176,14 +296049,14 @@ func TestSettersMarkExplicitDocPagesSetName200ResponseMetaAffectedPagesItemRevis // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaAffectedPagesItemRevision{} - var fernTestValuePageObjectNumber int + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + var fernTestValueSuffixSpacing *string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -253207,14 +296080,14 @@ func TestSettersMarkExplicitDocPagesSetName200ResponseMetaAffectedPagesItemRevis // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGeneration_MarksExplicit", func(t *testing.T) { + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaAffectedPagesItemRevision{} - var fernTestValueGeneration int + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + var fernTestValueLabelPosition *DocPagesViewports200ResponseItemMeasureRlSlopeItemLabelPosition // Act - obj.SetGeneration(fernTestValueGeneration) + obj.SetLabelPosition(fernTestValueLabelPosition) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -253240,410 +296113,421 @@ func TestSettersMarkExplicitDocPagesSetName200ResponseMetaAffectedPagesItemRevis } -func TestGettersDocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState(t *testing.T) { - t.Run("GetKind", func(t *testing.T) { +func TestSettersDocPagesViewports200ResponseItemMeasureRlXItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetConversion", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFraction", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + var fernTestValueFraction *DocPagesViewports200ResponseItemMeasureRlXItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFixed", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + var fernTestValueLabelPosition *DocPagesViewports200ResponseItemMeasureRlXItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) + assert.NotNil(t, obj.explicitFields) + }) + +} + +func TestGettersDocPagesViewports200ResponseItemMeasureRlXItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState{} + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} var expected string - obj.Kind = expected + obj.Unit = expected // Act & Assert - assert.Equal(t, expected, obj.GetKind(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") }) - t.Run("GetKind_NilReceiver", func(t *testing.T) { + t.Run("GetUnit_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocPagesViewports200ResponseItemMeasureRlXItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKind() // Should return zero value + _ = obj.GetUnit() // Should return zero value }) - t.Run("GetUnknown", func(t *testing.T) { + t.Run("GetConversion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown - obj.Unknown = expected + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + var expected *float64 + obj.Conversion = expected // Act & Assert - assert.Equal(t, expected, obj.GetUnknown(), "getter should return the property value") + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") }) - t.Run("GetUnknown_NilValue", func(t *testing.T) { + t.Run("GetConversion_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState{} - obj.Unknown = nil + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + obj.Conversion = nil // Act & Assert - assert.Nil(t, obj.GetUnknown(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") }) - t.Run("GetUnknown_NilReceiver", func(t *testing.T) { + t.Run("GetConversion_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocPagesViewports200ResponseItemMeasureRlXItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUnknown() // Should return zero value + _ = obj.GetConversion() // Should return zero value }) - t.Run("GetKnown", func(t *testing.T) { + t.Run("GetFraction", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState{} - var expected *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown - obj.Known = expected + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + var expected *DocPagesViewports200ResponseItemMeasureRlXItemFraction + obj.Fraction = expected // Act & Assert - assert.Equal(t, expected, obj.GetKnown(), "getter should return the property value") + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") }) - t.Run("GetKnown_NilValue", func(t *testing.T) { + t.Run("GetFraction_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState{} - obj.Known = nil + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + obj.Fraction = nil // Act & Assert - assert.Nil(t, obj.GetKnown(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") }) - t.Run("GetKnown_NilReceiver", func(t *testing.T) { + t.Run("GetFraction_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState + var obj *DocPagesViewports200ResponseItemMeasureRlXItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetKnown() // Should return zero value + _ = obj.GetFraction() // Should return zero value }) -} + t.Run("GetPrecision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + var expected *int + obj.Precision = expected -func TestSettersDocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("SetHasAnyWeakAnnotations", func(t *testing.T) { - obj := &DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var fernTestValueHasAnyWeakAnnotations bool - obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) - assert.Equal(t, fernTestValueHasAnyWeakAnnotations, obj.HasAnyWeakAnnotations) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") }) -} - -func TestGettersDocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("GetHasAnyWeakAnnotations", func(t *testing.T) { + t.Run("GetPrecision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var expected bool - obj.HasAnyWeakAnnotations = expected + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + obj.Precision = nil // Act & Assert - assert.Equal(t, expected, obj.GetHasAnyWeakAnnotations(), "getter should return the property value") + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") }) - t.Run("GetHasAnyWeakAnnotations_NilReceiver", func(t *testing.T) { + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + var obj *DocPagesViewports200ResponseItemMeasureRlXItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetHasAnyWeakAnnotations() // Should return zero value + _ = obj.GetPrecision() // Should return zero value }) -} - -func TestSettersMarkExplicitDocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { - t.Run("SetHasAnyWeakAnnotations_MarksExplicit", func(t *testing.T) { + t.Run("GetFixed", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} - var fernTestValueHasAnyWeakAnnotations bool - - // Act - obj.SetHasAnyWeakAnnotations(fernTestValueHasAnyWeakAnnotations) - - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") - - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } - - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip - }) - -} - -func TestSettersDocPagesSetName200ResponseMetaCacheDelta(t *testing.T) { - t.Run("SetPreviousDocVersion", func(t *testing.T) { - obj := &DocPagesSetName200ResponseMetaCacheDelta{} - var fernTestValuePreviousDocVersion int - obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) - assert.Equal(t, fernTestValuePreviousDocVersion, obj.PreviousDocVersion) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetDocVersion", func(t *testing.T) { - obj := &DocPagesSetName200ResponseMetaCacheDelta{} - var fernTestValueDocVersion int - obj.SetDocVersion(fernTestValueDocVersion) - assert.Equal(t, fernTestValueDocVersion, obj.DocVersion) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetAnnotationsVersion", func(t *testing.T) { - obj := &DocPagesSetName200ResponseMetaCacheDelta{} - var fernTestValueAnnotationsVersion *int - obj.SetAnnotationsVersion(fernTestValueAnnotationsVersion) - assert.Equal(t, fernTestValueAnnotationsVersion, obj.AnnotationsVersion) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetLayerVersion", func(t *testing.T) { - obj := &DocPagesSetName200ResponseMetaCacheDelta{} - var fernTestValueLayerVersion *int - obj.SetLayerVersion(fernTestValueLayerVersion) - assert.Equal(t, fernTestValueLayerVersion, obj.LayerVersion) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetWorking", func(t *testing.T) { - obj := &DocPagesSetName200ResponseMetaCacheDelta{} - var fernTestValueWorking *bool - obj.SetWorking(fernTestValueWorking) - assert.Equal(t, fernTestValueWorking, obj.Working) - assert.NotNil(t, obj.explicitFields) - }) + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + var expected *bool + obj.Fixed = expected - t.Run("SetPages", func(t *testing.T) { - obj := &DocPagesSetName200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocPagesSetName200ResponseMetaCacheDeltaPagesItem - obj.SetPages(fernTestValuePages) - assert.Equal(t, fernTestValuePages, obj.Pages) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") }) -} - -func TestGettersDocPagesSetName200ResponseMetaCacheDelta(t *testing.T) { - t.Run("GetPreviousDocVersion", func(t *testing.T) { + t.Run("GetFixed_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaCacheDelta{} - var expected int - obj.PreviousDocVersion = expected + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + obj.Fixed = nil // Act & Assert - assert.Equal(t, expected, obj.GetPreviousDocVersion(), "getter should return the property value") + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") }) - t.Run("GetPreviousDocVersion_NilReceiver", func(t *testing.T) { + t.Run("GetFixed_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesSetName200ResponseMetaCacheDelta + var obj *DocPagesViewports200ResponseItemMeasureRlXItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPreviousDocVersion() // Should return zero value + _ = obj.GetFixed() // Should return zero value }) - t.Run("GetDocVersion", func(t *testing.T) { + t.Run("GetThousands", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaCacheDelta{} - var expected int - obj.DocVersion = expected + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + var expected *string + obj.Thousands = expected // Act & Assert - assert.Equal(t, expected, obj.GetDocVersion(), "getter should return the property value") + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") }) - t.Run("GetDocVersion_NilReceiver", func(t *testing.T) { + t.Run("GetThousands_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocPagesSetName200ResponseMetaCacheDelta + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + obj.Thousands = nil + + // Act & Assert + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") + }) + + t.Run("GetThousands_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlXItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDocVersion() // Should return zero value + _ = obj.GetThousands() // Should return zero value }) - t.Run("GetAnnotationsVersion", func(t *testing.T) { + t.Run("GetDecimal", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaCacheDelta{} - var expected *int - obj.AnnotationsVersion = expected + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + var expected *string + obj.Decimal = expected // Act & Assert - assert.Equal(t, expected, obj.GetAnnotationsVersion(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") }) - t.Run("GetAnnotationsVersion_NilValue", func(t *testing.T) { + t.Run("GetDecimal_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaCacheDelta{} - obj.AnnotationsVersion = nil + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + obj.Decimal = nil // Act & Assert - assert.Nil(t, obj.GetAnnotationsVersion(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") }) - t.Run("GetAnnotationsVersion_NilReceiver", func(t *testing.T) { + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesSetName200ResponseMetaCacheDelta + var obj *DocPagesViewports200ResponseItemMeasureRlXItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAnnotationsVersion() // Should return zero value + _ = obj.GetDecimal() // Should return zero value }) - t.Run("GetLayerVersion", func(t *testing.T) { + t.Run("GetPrefixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaCacheDelta{} - var expected *int - obj.LayerVersion = expected + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + var expected *string + obj.PrefixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetLayerVersion(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") }) - t.Run("GetLayerVersion_NilValue", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaCacheDelta{} - obj.LayerVersion = nil + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + obj.PrefixSpacing = nil // Act & Assert - assert.Nil(t, obj.GetLayerVersion(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetLayerVersion_NilReceiver", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesSetName200ResponseMetaCacheDelta + var obj *DocPagesViewports200ResponseItemMeasureRlXItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetLayerVersion() // Should return zero value + _ = obj.GetPrefixSpacing() // Should return zero value }) - t.Run("GetWorking", func(t *testing.T) { + t.Run("GetSuffixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaCacheDelta{} - var expected *bool - obj.Working = expected + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + var expected *string + obj.SuffixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetWorking(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") }) - t.Run("GetWorking_NilValue", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaCacheDelta{} - obj.Working = nil + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + obj.SuffixSpacing = nil // Act & Assert - assert.Nil(t, obj.GetWorking(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") }) - t.Run("GetWorking_NilReceiver", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesSetName200ResponseMetaCacheDelta + var obj *DocPagesViewports200ResponseItemMeasureRlXItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetWorking() // Should return zero value + _ = obj.GetSuffixSpacing() // Should return zero value }) - t.Run("GetPages", func(t *testing.T) { + t.Run("GetLabelPosition", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaCacheDelta{} - var expected []*DocPagesSetName200ResponseMetaCacheDeltaPagesItem - obj.Pages = expected + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + var expected *DocPagesViewports200ResponseItemMeasureRlXItemLabelPosition + obj.LabelPosition = expected // Act & Assert - assert.Equal(t, expected, obj.GetPages(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") }) - t.Run("GetPages_NilValue", func(t *testing.T) { + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaCacheDelta{} - obj.Pages = nil + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + obj.LabelPosition = nil // Act & Assert - assert.Nil(t, obj.GetPages(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") }) - t.Run("GetPages_NilReceiver", func(t *testing.T) { + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesSetName200ResponseMetaCacheDelta + var obj *DocPagesViewports200ResponseItemMeasureRlXItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPages() // Should return zero value + _ = obj.GetLabelPosition() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesSetName200ResponseMetaCacheDelta(t *testing.T) { - t.Run("SetPreviousDocVersion_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocPagesViewports200ResponseItemMeasureRlXItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaCacheDelta{} - var fernTestValuePreviousDocVersion int + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + var fernTestValueUnit string // Act - obj.SetPreviousDocVersion(fernTestValuePreviousDocVersion) + obj.SetUnit(fernTestValueUnit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -253667,14 +296551,14 @@ func TestSettersMarkExplicitDocPagesSetName200ResponseMetaCacheDelta(t *testing. // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDocVersion_MarksExplicit", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaCacheDelta{} - var fernTestValueDocVersion int + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + var fernTestValueConversion *float64 // Act - obj.SetDocVersion(fernTestValueDocVersion) + obj.SetConversion(fernTestValueConversion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -253698,14 +296582,14 @@ func TestSettersMarkExplicitDocPagesSetName200ResponseMetaCacheDelta(t *testing. // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAnnotationsVersion_MarksExplicit", func(t *testing.T) { + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaCacheDelta{} - var fernTestValueAnnotationsVersion *int + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + var fernTestValueFraction *DocPagesViewports200ResponseItemMeasureRlXItemFraction // Act - obj.SetAnnotationsVersion(fernTestValueAnnotationsVersion) + obj.SetFraction(fernTestValueFraction) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -253729,14 +296613,14 @@ func TestSettersMarkExplicitDocPagesSetName200ResponseMetaCacheDelta(t *testing. // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetLayerVersion_MarksExplicit", func(t *testing.T) { + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaCacheDelta{} - var fernTestValueLayerVersion *int + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + var fernTestValuePrecision *int // Act - obj.SetLayerVersion(fernTestValueLayerVersion) + obj.SetPrecision(fernTestValuePrecision) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -253760,14 +296644,14 @@ func TestSettersMarkExplicitDocPagesSetName200ResponseMetaCacheDelta(t *testing. // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetWorking_MarksExplicit", func(t *testing.T) { + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaCacheDelta{} - var fernTestValueWorking *bool + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + var fernTestValueFixed *bool // Act - obj.SetWorking(fernTestValueWorking) + obj.SetFixed(fernTestValueFixed) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -253791,14 +296675,14 @@ func TestSettersMarkExplicitDocPagesSetName200ResponseMetaCacheDelta(t *testing. // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPages_MarksExplicit", func(t *testing.T) { + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaCacheDelta{} - var fernTestValuePages []*DocPagesSetName200ResponseMetaCacheDeltaPagesItem + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + var fernTestValueThousands *string // Act - obj.SetPages(fernTestValuePages) + obj.SetThousands(fernTestValueThousands) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -253822,95 +296706,76 @@ func TestSettersMarkExplicitDocPagesSetName200ResponseMetaCacheDelta(t *testing. // It verifies that setting a field via setter allows successful JSON round-trip }) -} - -func TestSettersDocPagesSetName200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber", func(t *testing.T) { - obj := &DocPagesSetName200ResponseMetaCacheDeltaPagesItem{} - var fernTestValuePageObjectNumber int - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) - assert.Equal(t, fernTestValuePageObjectNumber, obj.PageObjectNumber) - assert.NotNil(t, obj.explicitFields) - }) - - t.Run("SetCache", func(t *testing.T) { - obj := &DocPagesSetName200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache - obj.SetCache(fernTestValueCache) - assert.Equal(t, fernTestValueCache, obj.Cache) - assert.NotNil(t, obj.explicitFields) - }) - -} - -func TestGettersDocPagesSetName200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("GetPageObjectNumber", func(t *testing.T) { + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaCacheDeltaPagesItem{} - var expected int - obj.PageObjectNumber = expected + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + var fernTestValueDecimal *string - // Act & Assert - assert.Equal(t, expected, obj.GetPageObjectNumber(), "getter should return the property value") - }) + // Act + obj.SetDecimal(fernTestValueDecimal) - t.Run("GetPageObjectNumber_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesSetName200ResponseMetaCacheDeltaPagesItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetPageObjectNumber() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") - t.Run("GetCache", func(t *testing.T) { - t.Parallel() - // Arrange - obj := &DocPagesSetName200ResponseMetaCacheDeltaPagesItem{} - var expected *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache - obj.Cache = expected + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } - // Act & Assert - assert.Equal(t, expected, obj.GetCache(), "getter should return the property value") + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("GetCache_NilValue", func(t *testing.T) { + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaCacheDeltaPagesItem{} - obj.Cache = nil + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + var fernTestValuePrefixSpacing *string - // Act & Assert - assert.Nil(t, obj.GetCache(), "getter should return nil when property is nil") - }) + // Act + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) - t.Run("GetCache_NilReceiver", func(t *testing.T) { - t.Parallel() - var obj *DocPagesSetName200ResponseMetaCacheDeltaPagesItem - // Should not panic - getters should handle nil receiver gracefully - defer func() { - if r := recover(); r != nil { - t.Errorf("Getter panicked on nil receiver: %v", r) - } - }() - _ = obj.GetCache() // Should return zero value - }) + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") -} + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } -func TestSettersMarkExplicitDocPagesSetName200ResponseMetaCacheDeltaPagesItem(t *testing.T) { - t.Run("SetPageObjectNumber_MarksExplicit", func(t *testing.T) { + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaCacheDeltaPagesItem{} - var fernTestValuePageObjectNumber int + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + var fernTestValueSuffixSpacing *string // Act - obj.SetPageObjectNumber(fernTestValuePageObjectNumber) + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -253934,14 +296799,14 @@ func TestSettersMarkExplicitDocPagesSetName200ResponseMetaCacheDeltaPagesItem(t // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCache_MarksExplicit", func(t *testing.T) { + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaCacheDeltaPagesItem{} - var fernTestValueCache *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + var fernTestValueLabelPosition *DocPagesViewports200ResponseItemMeasureRlXItemLabelPosition // Act - obj.SetCache(fernTestValueCache) + obj.SetLabelPosition(fernTestValueLabelPosition) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -253967,288 +296832,421 @@ func TestSettersMarkExplicitDocPagesSetName200ResponseMetaCacheDeltaPagesItem(t } -func TestSettersDocPagesSetName200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("SetContentVersion", func(t *testing.T) { - obj := &DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueContentVersion int - obj.SetContentVersion(fernTestValueContentVersion) - assert.Equal(t, fernTestValueContentVersion, obj.ContentVersion) +func TestSettersDocPagesViewports200ResponseItemMeasureRlYItem(t *testing.T) { + t.Run("SetUnit", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + var fernTestValueUnit string + obj.SetUnit(fernTestValueUnit) + assert.Equal(t, fernTestValueUnit, obj.Unit) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetAnnotationVersion", func(t *testing.T) { - obj := &DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueAnnotationVersion int - obj.SetAnnotationVersion(fernTestValueAnnotationVersion) - assert.Equal(t, fernTestValueAnnotationVersion, obj.AnnotationVersion) + t.Run("SetConversion", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + var fernTestValueConversion *float64 + obj.SetConversion(fernTestValueConversion) + assert.Equal(t, fernTestValueConversion, obj.Conversion) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFraction", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + var fernTestValueFraction *DocPagesViewports200ResponseItemMeasureRlYItemFraction + obj.SetFraction(fernTestValueFraction) + assert.Equal(t, fernTestValueFraction, obj.Fraction) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrecision", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + var fernTestValuePrecision *int + obj.SetPrecision(fernTestValuePrecision) + assert.Equal(t, fernTestValuePrecision, obj.Precision) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetFixed", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + var fernTestValueFixed *bool + obj.SetFixed(fernTestValueFixed) + assert.Equal(t, fernTestValueFixed, obj.Fixed) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetThousands", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + var fernTestValueThousands *string + obj.SetThousands(fernTestValueThousands) + assert.Equal(t, fernTestValueThousands, obj.Thousands) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetDecimal", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + var fernTestValueDecimal *string + obj.SetDecimal(fernTestValueDecimal) + assert.Equal(t, fernTestValueDecimal, obj.Decimal) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetPrefixSpacing", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + var fernTestValuePrefixSpacing *string + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + assert.Equal(t, fernTestValuePrefixSpacing, obj.PrefixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetSuffixSpacing", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + var fernTestValueSuffixSpacing *string + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + assert.Equal(t, fernTestValueSuffixSpacing, obj.SuffixSpacing) + assert.NotNil(t, obj.explicitFields) + }) + + t.Run("SetLabelPosition", func(t *testing.T) { + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + var fernTestValueLabelPosition *DocPagesViewports200ResponseItemMeasureRlYItemLabelPosition + obj.SetLabelPosition(fernTestValueLabelPosition) + assert.Equal(t, fernTestValueLabelPosition, obj.LabelPosition) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersDocPagesSetName200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("GetContentVersion", func(t *testing.T) { +func TestGettersDocPagesViewports200ResponseItemMeasureRlYItem(t *testing.T) { + t.Run("GetUnit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache{} - var expected int - obj.ContentVersion = expected + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + var expected string + obj.Unit = expected // Act & Assert - assert.Equal(t, expected, obj.GetContentVersion(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUnit(), "getter should return the property value") }) - t.Run("GetContentVersion_NilReceiver", func(t *testing.T) { + t.Run("GetUnit_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache + var obj *DocPagesViewports200ResponseItemMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetContentVersion() // Should return zero value + _ = obj.GetUnit() // Should return zero value }) - t.Run("GetAnnotationVersion", func(t *testing.T) { + t.Run("GetConversion", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache{} - var expected int - obj.AnnotationVersion = expected + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + var expected *float64 + obj.Conversion = expected // Act & Assert - assert.Equal(t, expected, obj.GetAnnotationVersion(), "getter should return the property value") + assert.Equal(t, expected, obj.GetConversion(), "getter should return the property value") }) - t.Run("GetAnnotationVersion_NilReceiver", func(t *testing.T) { + t.Run("GetConversion_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + obj.Conversion = nil + + // Act & Assert + assert.Nil(t, obj.GetConversion(), "getter should return nil when property is nil") + }) + + t.Run("GetConversion_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAnnotationVersion() // Should return zero value + _ = obj.GetConversion() // Should return zero value }) -} + t.Run("GetFraction", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + var expected *DocPagesViewports200ResponseItemMeasureRlYItemFraction + obj.Fraction = expected -func TestSettersMarkExplicitDocPagesSetName200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { - t.Run("SetContentVersion_MarksExplicit", func(t *testing.T) { + // Act & Assert + assert.Equal(t, expected, obj.GetFraction(), "getter should return the property value") + }) + + t.Run("GetFraction_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueContentVersion int + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + obj.Fraction = nil - // Act - obj.SetContentVersion(fernTestValueContentVersion) + // Act & Assert + assert.Nil(t, obj.GetFraction(), "getter should return nil when property is nil") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetFraction_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlYItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFraction() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetPrecision", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + var expected *int + obj.Precision = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetPrecision(), "getter should return the property value") }) - t.Run("SetAnnotationVersion_MarksExplicit", func(t *testing.T) { + t.Run("GetPrecision_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache{} - var fernTestValueAnnotationVersion int + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + obj.Precision = nil - // Act - obj.SetAnnotationVersion(fernTestValueAnnotationVersion) + // Act & Assert + assert.Nil(t, obj.GetPrecision(), "getter should return nil when property is nil") + }) - // Assert - object with explicitly set field can be marshaled/unmarshaled - bytes, err := json.Marshal(obj) - require.NoError(t, err, "marshaling should succeed for test setup") + t.Run("GetPrecision_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlYItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetPrecision() // Should return zero value + }) - // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value - // Detect if marshaled JSON is an object or primitive to use correct unmarshal target - if len(bytes) > 0 && bytes[0] == '{' { - // JSON object - unmarshal into map - var unmarshaled map[string]interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } else { - // JSON primitive (string, number, boolean, null) - unmarshal into interface{} - var unmarshaled interface{} - err = json.Unmarshal(bytes, &unmarshaled) - require.NoError(t, err, "unmarshaling should succeed for test verification") - } + t.Run("GetFixed", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + var expected *bool + obj.Fixed = expected - // Note: This does not explicitly assert the presence of a specific JSON field - // It verifies that setting a field via setter allows successful JSON round-trip + // Act & Assert + assert.Equal(t, expected, obj.GetFixed(), "getter should return the property value") }) -} + t.Run("GetFixed_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + obj.Fixed = nil -func TestSettersDocPagesSetName400Response(t *testing.T) { - t.Run("SetName", func(t *testing.T) { - obj := &DocPagesSetName400Response{} - var fernTestValueName DocPagesSetName400ResponseName - obj.SetName(fernTestValueName) - assert.Equal(t, fernTestValueName, obj.Name) - assert.NotNil(t, obj.explicitFields) + // Act & Assert + assert.Nil(t, obj.GetFixed(), "getter should return nil when property is nil") }) - t.Run("SetCode", func(t *testing.T) { - obj := &DocPagesSetName400Response{} - var fernTestValueCode DocPagesSetName400ResponseCode - obj.SetCode(fernTestValueCode) - assert.Equal(t, fernTestValueCode, obj.Code) - assert.NotNil(t, obj.explicitFields) + t.Run("GetFixed_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlYItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetFixed() // Should return zero value }) - t.Run("SetMessage", func(t *testing.T) { - obj := &DocPagesSetName400Response{} - var fernTestValueMessage string - obj.SetMessage(fernTestValueMessage) - assert.Equal(t, fernTestValueMessage, obj.Message) - assert.NotNil(t, obj.explicitFields) + t.Run("GetThousands", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + var expected *string + obj.Thousands = expected + + // Act & Assert + assert.Equal(t, expected, obj.GetThousands(), "getter should return the property value") }) - t.Run("SetDetails", func(t *testing.T) { - obj := &DocPagesSetName400Response{} - var fernTestValueDetails map[string]any - obj.SetDetails(fernTestValueDetails) - assert.Equal(t, fernTestValueDetails, obj.Details) - assert.NotNil(t, obj.explicitFields) + t.Run("GetThousands_NilValue", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + obj.Thousands = nil + + // Act & Assert + assert.Nil(t, obj.GetThousands(), "getter should return nil when property is nil") }) -} + t.Run("GetThousands_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlYItem + // Should not panic - getters should handle nil receiver gracefully + defer func() { + if r := recover(); r != nil { + t.Errorf("Getter panicked on nil receiver: %v", r) + } + }() + _ = obj.GetThousands() // Should return zero value + }) -func TestGettersDocPagesSetName400Response(t *testing.T) { - t.Run("GetName", func(t *testing.T) { + t.Run("GetDecimal", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName400Response{} - var expected DocPagesSetName400ResponseName - obj.Name = expected + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + var expected *string + obj.Decimal = expected // Act & Assert - assert.Equal(t, expected, obj.GetName(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDecimal(), "getter should return the property value") }) - t.Run("GetName_NilReceiver", func(t *testing.T) { + t.Run("GetDecimal_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocPagesSetName400Response + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + obj.Decimal = nil + + // Act & Assert + assert.Nil(t, obj.GetDecimal(), "getter should return nil when property is nil") + }) + + t.Run("GetDecimal_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetName() // Should return zero value + _ = obj.GetDecimal() // Should return zero value }) - t.Run("GetCode", func(t *testing.T) { + t.Run("GetPrefixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName400Response{} - var expected DocPagesSetName400ResponseCode - obj.Code = expected + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + var expected *string + obj.PrefixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetCode(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPrefixSpacing(), "getter should return the property value") }) - t.Run("GetCode_NilReceiver", func(t *testing.T) { + t.Run("GetPrefixSpacing_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocPagesSetName400Response + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + obj.PrefixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetPrefixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetPrefixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCode() // Should return zero value + _ = obj.GetPrefixSpacing() // Should return zero value }) - t.Run("GetMessage", func(t *testing.T) { + t.Run("GetSuffixSpacing", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName400Response{} - var expected string - obj.Message = expected + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + var expected *string + obj.SuffixSpacing = expected // Act & Assert - assert.Equal(t, expected, obj.GetMessage(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSuffixSpacing(), "getter should return the property value") }) - t.Run("GetMessage_NilReceiver", func(t *testing.T) { + t.Run("GetSuffixSpacing_NilValue", func(t *testing.T) { t.Parallel() - var obj *DocPagesSetName400Response + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + obj.SuffixSpacing = nil + + // Act & Assert + assert.Nil(t, obj.GetSuffixSpacing(), "getter should return nil when property is nil") + }) + + t.Run("GetSuffixSpacing_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetMessage() // Should return zero value + _ = obj.GetSuffixSpacing() // Should return zero value }) - t.Run("GetDetails", func(t *testing.T) { + t.Run("GetLabelPosition", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName400Response{} - var expected map[string]any - obj.Details = expected + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + var expected *DocPagesViewports200ResponseItemMeasureRlYItemLabelPosition + obj.LabelPosition = expected // Act & Assert - assert.Equal(t, expected, obj.GetDetails(), "getter should return the property value") + assert.Equal(t, expected, obj.GetLabelPosition(), "getter should return the property value") }) - t.Run("GetDetails_NilValue", func(t *testing.T) { + t.Run("GetLabelPosition_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName400Response{} - obj.Details = nil + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + obj.LabelPosition = nil // Act & Assert - assert.Nil(t, obj.GetDetails(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetLabelPosition(), "getter should return nil when property is nil") }) - t.Run("GetDetails_NilReceiver", func(t *testing.T) { + t.Run("GetLabelPosition_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesSetName400Response + var obj *DocPagesViewports200ResponseItemMeasureRlYItem // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDetails() // Should return zero value + _ = obj.GetLabelPosition() // Should return zero value }) } -func TestSettersMarkExplicitDocPagesSetName400Response(t *testing.T) { - t.Run("SetName_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitDocPagesViewports200ResponseItemMeasureRlYItem(t *testing.T) { + t.Run("SetUnit_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName400Response{} - var fernTestValueName DocPagesSetName400ResponseName + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + var fernTestValueUnit string // Act - obj.SetName(fernTestValueName) + obj.SetUnit(fernTestValueUnit) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -254272,14 +297270,14 @@ func TestSettersMarkExplicitDocPagesSetName400Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCode_MarksExplicit", func(t *testing.T) { + t.Run("SetConversion_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName400Response{} - var fernTestValueCode DocPagesSetName400ResponseCode + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + var fernTestValueConversion *float64 // Act - obj.SetCode(fernTestValueCode) + obj.SetConversion(fernTestValueConversion) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -254303,14 +297301,14 @@ func TestSettersMarkExplicitDocPagesSetName400Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetMessage_MarksExplicit", func(t *testing.T) { + t.Run("SetFraction_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName400Response{} - var fernTestValueMessage string + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + var fernTestValueFraction *DocPagesViewports200ResponseItemMeasureRlYItemFraction // Act - obj.SetMessage(fernTestValueMessage) + obj.SetFraction(fernTestValueFraction) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -254334,14 +297332,200 @@ func TestSettersMarkExplicitDocPagesSetName400Response(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDetails_MarksExplicit", func(t *testing.T) { + t.Run("SetPrecision_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName400Response{} - var fernTestValueDetails map[string]any + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + var fernTestValuePrecision *int // Act - obj.SetDetails(fernTestValueDetails) + obj.SetPrecision(fernTestValuePrecision) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetFixed_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + var fernTestValueFixed *bool + + // Act + obj.SetFixed(fernTestValueFixed) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetThousands_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + var fernTestValueThousands *string + + // Act + obj.SetThousands(fernTestValueThousands) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetDecimal_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + var fernTestValueDecimal *string + + // Act + obj.SetDecimal(fernTestValueDecimal) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetPrefixSpacing_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + var fernTestValuePrefixSpacing *string + + // Act + obj.SetPrefixSpacing(fernTestValuePrefixSpacing) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetSuffixSpacing_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + var fernTestValueSuffixSpacing *string + + // Act + obj.SetSuffixSpacing(fernTestValueSuffixSpacing) + + // Assert - object with explicitly set field can be marshaled/unmarshaled + bytes, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed for test setup") + + // This test ensures JSON marshaling and unmarshaling succeed when the field has a zero/nil value + // Detect if marshaled JSON is an object or primitive to use correct unmarshal target + if len(bytes) > 0 && bytes[0] == '{' { + // JSON object - unmarshal into map + var unmarshaled map[string]interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } else { + // JSON primitive (string, number, boolean, null) - unmarshal into interface{} + var unmarshaled interface{} + err = json.Unmarshal(bytes, &unmarshaled) + require.NoError(t, err, "unmarshaling should succeed for test verification") + } + + // Note: This does not explicitly assert the presence of a specific JSON field + // It verifies that setting a field via setter allows successful JSON round-trip + }) + + t.Run("SetLabelPosition_MarksExplicit", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + var fernTestValueLabelPosition *DocPagesViewports200ResponseItemMeasureRlYItemLabelPosition + + // Act + obj.SetLabelPosition(fernTestValueLabelPosition) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -254367,25 +297551,25 @@ func TestSettersMarkExplicitDocPagesSetName400Response(t *testing.T) { } -func TestSettersDocPagesSetName404Response(t *testing.T) { +func TestSettersDocPagesViewports404Response(t *testing.T) { t.Run("SetName", func(t *testing.T) { - obj := &DocPagesSetName404Response{} - var fernTestValueName DocPagesSetName404ResponseName + obj := &DocPagesViewports404Response{} + var fernTestValueName DocPagesViewports404ResponseName obj.SetName(fernTestValueName) assert.Equal(t, fernTestValueName, obj.Name) assert.NotNil(t, obj.explicitFields) }) t.Run("SetCode", func(t *testing.T) { - obj := &DocPagesSetName404Response{} - var fernTestValueCode DocPagesSetName404ResponseCode + obj := &DocPagesViewports404Response{} + var fernTestValueCode DocPagesViewports404ResponseCode obj.SetCode(fernTestValueCode) assert.Equal(t, fernTestValueCode, obj.Code) assert.NotNil(t, obj.explicitFields) }) t.Run("SetMessage", func(t *testing.T) { - obj := &DocPagesSetName404Response{} + obj := &DocPagesViewports404Response{} var fernTestValueMessage string obj.SetMessage(fernTestValueMessage) assert.Equal(t, fernTestValueMessage, obj.Message) @@ -254393,7 +297577,7 @@ func TestSettersDocPagesSetName404Response(t *testing.T) { }) t.Run("SetDetails", func(t *testing.T) { - obj := &DocPagesSetName404Response{} + obj := &DocPagesViewports404Response{} var fernTestValueDetails map[string]any obj.SetDetails(fernTestValueDetails) assert.Equal(t, fernTestValueDetails, obj.Details) @@ -254402,12 +297586,12 @@ func TestSettersDocPagesSetName404Response(t *testing.T) { } -func TestGettersDocPagesSetName404Response(t *testing.T) { +func TestGettersDocPagesViewports404Response(t *testing.T) { t.Run("GetName", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName404Response{} - var expected DocPagesSetName404ResponseName + obj := &DocPagesViewports404Response{} + var expected DocPagesViewports404ResponseName obj.Name = expected // Act & Assert @@ -254416,7 +297600,7 @@ func TestGettersDocPagesSetName404Response(t *testing.T) { t.Run("GetName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesSetName404Response + var obj *DocPagesViewports404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -254429,8 +297613,8 @@ func TestGettersDocPagesSetName404Response(t *testing.T) { t.Run("GetCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName404Response{} - var expected DocPagesSetName404ResponseCode + obj := &DocPagesViewports404Response{} + var expected DocPagesViewports404ResponseCode obj.Code = expected // Act & Assert @@ -254439,7 +297623,7 @@ func TestGettersDocPagesSetName404Response(t *testing.T) { t.Run("GetCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesSetName404Response + var obj *DocPagesViewports404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -254452,7 +297636,7 @@ func TestGettersDocPagesSetName404Response(t *testing.T) { t.Run("GetMessage", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName404Response{} + obj := &DocPagesViewports404Response{} var expected string obj.Message = expected @@ -254462,7 +297646,7 @@ func TestGettersDocPagesSetName404Response(t *testing.T) { t.Run("GetMessage_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesSetName404Response + var obj *DocPagesViewports404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -254475,7 +297659,7 @@ func TestGettersDocPagesSetName404Response(t *testing.T) { t.Run("GetDetails", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName404Response{} + obj := &DocPagesViewports404Response{} var expected map[string]any obj.Details = expected @@ -254486,7 +297670,7 @@ func TestGettersDocPagesSetName404Response(t *testing.T) { t.Run("GetDetails_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName404Response{} + obj := &DocPagesViewports404Response{} obj.Details = nil // Act & Assert @@ -254495,7 +297679,7 @@ func TestGettersDocPagesSetName404Response(t *testing.T) { t.Run("GetDetails_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *DocPagesSetName404Response + var obj *DocPagesViewports404Response // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -254507,12 +297691,12 @@ func TestGettersDocPagesSetName404Response(t *testing.T) { } -func TestSettersMarkExplicitDocPagesSetName404Response(t *testing.T) { +func TestSettersMarkExplicitDocPagesViewports404Response(t *testing.T) { t.Run("SetName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName404Response{} - var fernTestValueName DocPagesSetName404ResponseName + obj := &DocPagesViewports404Response{} + var fernTestValueName DocPagesViewports404ResponseName // Act obj.SetName(fernTestValueName) @@ -254542,8 +297726,8 @@ func TestSettersMarkExplicitDocPagesSetName404Response(t *testing.T) { t.Run("SetCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName404Response{} - var fernTestValueCode DocPagesSetName404ResponseCode + obj := &DocPagesViewports404Response{} + var fernTestValueCode DocPagesViewports404ResponseCode // Act obj.SetCode(fernTestValueCode) @@ -254573,7 +297757,7 @@ func TestSettersMarkExplicitDocPagesSetName404Response(t *testing.T) { t.Run("SetMessage_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName404Response{} + obj := &DocPagesViewports404Response{} var fernTestValueMessage string // Act @@ -254604,7 +297788,7 @@ func TestSettersMarkExplicitDocPagesSetName404Response(t *testing.T) { t.Run("SetDetails_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &DocPagesSetName404Response{} + obj := &DocPagesViewports404Response{} var fernTestValueDetails map[string]any // Act @@ -308027,6 +351211,72 @@ func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLine(t *testi }) } +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineCaption(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineCaption{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLineCaption + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemLineCaption + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemLineCaption + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineColor(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() @@ -308258,6 +351508,39 @@ func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineInteriorC }) } +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineLeader(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLeader{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLineLeader + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemLineLeader + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemLineLeader + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineLineEndings(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() @@ -308390,6 +351673,336 @@ func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineLinePoint }) } +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineMeasureGeo(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureGeo{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLineMeasureGeo + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemLineMeasureGeo + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemLineMeasureGeo + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineMeasureRl(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineMeasureUnknown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureUnknown{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemLineMeasureUnknown + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemLineMeasureUnknown + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemLineMeasureUnknown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemLineRect(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() @@ -309182,6 +352795,72 @@ func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygon(t *te }) } +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonCaption(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonCaption{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolygonCaption + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolygonCaption + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolygonCaption + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonColor(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() @@ -309413,6 +353092,336 @@ func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonInteri }) } +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureGeo(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureGeo{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureGeo + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureGeo + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureGeo + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureUnknown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureUnknown{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureUnknown + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureUnknown + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureUnknown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolygonRect(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() @@ -309644,6 +353653,72 @@ func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolyline(t *t }) } +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineCaption(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineCaption{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolylineCaption + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolylineCaption + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolylineCaption + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineColor(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() @@ -309908,6 +353983,336 @@ func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineLineE }) } +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureGeo(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureGeo{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureGeo + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureGeo + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureGeo + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureUnknown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureUnknown{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureUnknown + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureUnknown + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureUnknown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + func TestJSONMarshalingDocAnnotationsList200ResponseAnnotationsItemPolylineRect(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() @@ -317927,6 +362332,72 @@ func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemL }) } +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() @@ -318158,6 +362629,39 @@ func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemL }) } +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() @@ -318290,6 +362794,336 @@ func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemL }) } +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureGeo(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureGeo{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureGeo + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureGeo + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureGeo + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureUnknown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureUnknown{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureUnknown + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureUnknown + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureUnknown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() @@ -319082,6 +363916,72 @@ func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemP }) } +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() @@ -319313,6 +364213,336 @@ func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemP }) } +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureGeo(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureGeo{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureGeo + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureGeo + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureGeo + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureUnknown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureUnknown{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureUnknown + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureUnknown + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureUnknown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() @@ -319544,6 +364774,72 @@ func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemP }) } +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() @@ -319808,6 +365104,336 @@ func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemP }) } +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureGeo(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureGeo{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureGeo + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureGeo + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureGeo + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureUnknown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureUnknown{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureUnknown + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureUnknown + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureUnknown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + func TestJSONMarshalingDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() @@ -332843,6 +378469,798 @@ func TestJSONMarshalingDocPagesSetName404Response(t *testing.T) { }) } +func TestJSONMarshalingDocPagesSetScale200Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScale200Response{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocPagesSetScale200Response + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScale200Response + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScale200Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesSetScale200ResponseMeta(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScale200ResponseMeta{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocPagesSetScale200ResponseMeta + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScale200ResponseMeta + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScale200ResponseMeta + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesSetScale200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocPagesSetScale200ResponseMetaAffectedPagesItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScale200ResponseMetaAffectedPagesItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScale200ResponseMetaAffectedPagesItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesSetScale200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItemRevision{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocPagesSetScale200ResponseMetaAffectedPagesItemRevision + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScale200ResponseMetaAffectedPagesItemRevision + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScale200ResponseMetaAffectedPagesItemRevision + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesSetScale200ResponseMetaCacheDelta(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScale200ResponseMetaCacheDelta{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocPagesSetScale200ResponseMetaCacheDelta + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScale200ResponseMetaCacheDelta + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScale200ResponseMetaCacheDelta + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesSetScale200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScale200ResponseMetaCacheDeltaPagesItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocPagesSetScale200ResponseMetaCacheDeltaPagesItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScale200ResponseMetaCacheDeltaPagesItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScale200ResponseMetaCacheDeltaPagesItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesSetScale400Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScale400Response{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocPagesSetScale400Response + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScale400Response + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScale400Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesSetScale404Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesSetScale404Response{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocPagesSetScale404Response + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScale404Response + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocPagesSetScale404Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesViewports200ResponseItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocPagesViewports200ResponseItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocPagesViewports200ResponseItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocPagesViewports200ResponseItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesViewports200ResponseItemBbox(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemBbox{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocPagesViewports200ResponseItemBbox + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocPagesViewports200ResponseItemBbox + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocPagesViewports200ResponseItemBbox + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesViewports200ResponseItemMeasureGeo(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureGeo{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocPagesViewports200ResponseItemMeasureGeo + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocPagesViewports200ResponseItemMeasureGeo + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocPagesViewports200ResponseItemMeasureGeo + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesViewports200ResponseItemMeasureRl(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRl{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocPagesViewports200ResponseItemMeasureRl + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocPagesViewports200ResponseItemMeasureRl + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocPagesViewports200ResponseItemMeasureRl + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesViewports200ResponseItemMeasureRlAngleItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocPagesViewports200ResponseItemMeasureRlAngleItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocPagesViewports200ResponseItemMeasureRlAngleItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocPagesViewports200ResponseItemMeasureRlAngleItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesViewports200ResponseItemMeasureRlAreaItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocPagesViewports200ResponseItemMeasureRlAreaItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocPagesViewports200ResponseItemMeasureRlAreaItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocPagesViewports200ResponseItemMeasureRlAreaItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesViewports200ResponseItemMeasureRlDistanceItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocPagesViewports200ResponseItemMeasureRlDistanceItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocPagesViewports200ResponseItemMeasureRlDistanceItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocPagesViewports200ResponseItemMeasureRlDistanceItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesViewports200ResponseItemMeasureRlOrigin(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlOrigin{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocPagesViewports200ResponseItemMeasureRlOrigin + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocPagesViewports200ResponseItemMeasureRlOrigin + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocPagesViewports200ResponseItemMeasureRlOrigin + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesViewports200ResponseItemMeasureRlSlopeItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocPagesViewports200ResponseItemMeasureRlSlopeItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocPagesViewports200ResponseItemMeasureRlSlopeItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocPagesViewports200ResponseItemMeasureRlSlopeItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesViewports200ResponseItemMeasureRlXItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocPagesViewports200ResponseItemMeasureRlXItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocPagesViewports200ResponseItemMeasureRlXItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocPagesViewports200ResponseItemMeasureRlXItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesViewports200ResponseItemMeasureRlYItem(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocPagesViewports200ResponseItemMeasureRlYItem + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocPagesViewports200ResponseItemMeasureRlYItem + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocPagesViewports200ResponseItemMeasureRlYItem + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesViewports200ResponseItemMeasureUnknown(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports200ResponseItemMeasureUnknown{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocPagesViewports200ResponseItemMeasureUnknown + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocPagesViewports200ResponseItemMeasureUnknown + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocPagesViewports200ResponseItemMeasureUnknown + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + +func TestJSONMarshalingDocPagesViewports404Response(t *testing.T) { + t.Run("MarshalUnmarshal", func(t *testing.T) { + t.Parallel() + // Arrange + obj := &DocPagesViewports404Response{} + + // Act - Marshal to JSON + data, err := json.Marshal(obj) + require.NoError(t, err, "marshaling should succeed") + assert.NotNil(t, data, "marshaled data should not be nil") + assert.NotEmpty(t, data, "marshaled data should not be empty") + + // Unmarshal back and verify round-trip + var unmarshaled DocPagesViewports404Response + err = json.Unmarshal(data, &unmarshaled) + assert.NoError(t, err, "round-trip unmarshal should succeed") + }) + + t.Run("UnmarshalInvalidJSON", func(t *testing.T) { + t.Parallel() + var obj DocPagesViewports404Response + err := json.Unmarshal([]byte(`{invalid json}`), &obj) + assert.Error(t, err, "unmarshaling invalid JSON should return an error") + }) + + t.Run("UnmarshalEmptyObject", func(t *testing.T) { + t.Parallel() + var obj DocPagesViewports404Response + err := json.Unmarshal([]byte(`{}`), &obj) + assert.NoError(t, err, "unmarshaling empty object should succeed") + }) +} + func TestJSONMarshalingDocRedactionsApply200Response(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() @@ -342528,6 +388946,38 @@ func TestStringDocAnnotationsList200ResponseAnnotationsItemLine(t *testing.T) { }) } +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineCaption(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineCaption{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineCaption + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + func TestStringDocAnnotationsList200ResponseAnnotationsItemLineColor(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() @@ -342640,6 +389090,22 @@ func TestStringDocAnnotationsList200ResponseAnnotationsItemLineInteriorColor(t * }) } +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineLeader(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLeader{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineLeader + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + func TestStringDocAnnotationsList200ResponseAnnotationsItemLineLineEndings(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() @@ -342704,6 +389170,166 @@ func TestStringDocAnnotationsList200ResponseAnnotationsItemLineLinePointsStart(t }) } +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineMeasureGeo(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureGeo{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureGeo + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineMeasureRl(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemLineMeasureUnknown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureUnknown{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureUnknown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + func TestStringDocAnnotationsList200ResponseAnnotationsItemLineRect(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() @@ -343088,6 +389714,38 @@ func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygon(t *testing.T) }) } +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonCaption(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonCaption{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonCaption + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonColor(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() @@ -343200,6 +389858,166 @@ func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonInteriorColor( }) } +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureGeo(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureGeo{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureGeo + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureUnknown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureUnknown{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureUnknown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + func TestStringDocAnnotationsList200ResponseAnnotationsItemPolygonRect(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() @@ -343312,6 +390130,38 @@ func TestStringDocAnnotationsList200ResponseAnnotationsItemPolyline(t *testing.T }) } +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineCaption(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineCaption{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineCaption + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineColor(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() @@ -343440,6 +390290,166 @@ func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndings(t }) } +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureGeo(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureGeo{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureGeo + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureUnknown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureUnknown{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureUnknown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + func TestStringDocAnnotationsList200ResponseAnnotationsItemPolylineRect(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() @@ -347328,6 +394338,38 @@ func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLine(t *t }) } +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() @@ -347440,6 +394482,22 @@ func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineInter }) } +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() @@ -347504,6 +394562,166 @@ func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineP }) } +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureGeo(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureGeo{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureGeo + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureUnknown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureUnknown{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureUnknown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() @@ -347888,6 +395106,38 @@ func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygon(t }) } +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() @@ -348000,6 +395250,166 @@ func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIn }) } +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureGeo(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureGeo{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureGeo + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureUnknown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureUnknown{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureUnknown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() @@ -348112,6 +395522,38 @@ func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolyline( }) } +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() @@ -348240,6 +395682,166 @@ func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineL }) } +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureGeo(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureGeo{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureGeo + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureUnknown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureUnknown{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureUnknown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + func TestStringDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() @@ -354560,6 +402162,390 @@ func TestStringDocPagesSetName404Response(t *testing.T) { }) } +func TestStringDocPagesSetScale200Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScale200Response{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScale200Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesSetScale200ResponseMeta(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScale200ResponseMeta{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScale200ResponseMeta + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesSetScale200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScale200ResponseMetaAffectedPagesItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesSetScale200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItemRevision{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScale200ResponseMetaAffectedPagesItemRevision + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesSetScale200ResponseMetaCacheDelta(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScale200ResponseMetaCacheDelta{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScale200ResponseMetaCacheDelta + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesSetScale200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScale200ResponseMetaCacheDeltaPagesItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScale200ResponseMetaCacheDeltaPagesItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesSetScale400Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScale400Response{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScale400Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesSetScale404Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScale404Response{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScale404Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesViewports200ResponseItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesViewports200ResponseItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesViewports200ResponseItemBbox(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesViewports200ResponseItemBbox{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemBbox + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesViewports200ResponseItemMeasureGeo(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesViewports200ResponseItemMeasureGeo{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureGeo + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesViewports200ResponseItemMeasureRl(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesViewports200ResponseItemMeasureRl{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRl + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesViewports200ResponseItemMeasureRlAngleItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlAngleItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesViewports200ResponseItemMeasureRlAreaItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlAreaItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesViewports200ResponseItemMeasureRlDistanceItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlDistanceItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesViewports200ResponseItemMeasureRlOrigin(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesViewports200ResponseItemMeasureRlOrigin{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlOrigin + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesViewports200ResponseItemMeasureRlSlopeItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlSlopeItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesViewports200ResponseItemMeasureRlXItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlXItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesViewports200ResponseItemMeasureRlYItem(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlYItem + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesViewports200ResponseItemMeasureUnknown(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesViewports200ResponseItemMeasureUnknown{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureUnknown + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + +func TestStringDocPagesViewports404Response(t *testing.T) { + t.Run("StringMethod", func(t *testing.T) { + t.Parallel() + obj := &DocPagesViewports404Response{} + result := obj.String() + assert.NotEmpty(t, result, "String() should return a non-empty representation") + }) + + t.Run("StringMethod_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports404Response + result := obj.String() + assert.Equal(t, "", result, "String() should return for nil receiver") + }) +} + func TestStringDocRedactionsApply200Response(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() @@ -361642,6 +409628,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineBorderStyle(t *test }) } +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineCaptionPosition(t *testing.T) { + t.Run("NewFromString_inline", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineCaptionPositionFromString("inline") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineCaptionPosition("inline"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_top", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineCaptionPositionFromString("top") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineCaptionPosition("top"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineCaptionPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineCaptionPositionFromString("inline") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineIdentityQuality(t *testing.T) { t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() @@ -361671,6 +409686,35 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineIdentityQuality(t * }) } +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineIntent(t *testing.T) { + t.Run("NewFromString_LineArrow", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineIntentFromString("LineArrow") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineIntent("LineArrow"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_LineDimension", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineIntentFromString("LineDimension") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineIntent("LineDimension"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineIntentFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineIntentFromString("LineArrow") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsEnd(t *testing.T) { t.Run("NewFromString_none", func(t *testing.T) { t.Parallel() @@ -361841,6 +409885,438 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineLineEndingsStart(t }) } +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + func TestEnumDocAnnotationsList200ResponseAnnotationsItemLineReplyType(t *testing.T) { t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() @@ -362254,6 +410730,467 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonIdentityQuality( }) } +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonIntent(t *testing.T) { + t.Run("NewFromString_PolygonCloud", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonIntentFromString("PolygonCloud") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonIntent("PolygonCloud"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_PolygonDimension", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonIntentFromString("PolygonDimension") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonIntent("PolygonDimension"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonIntentFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonIntentFromString("PolygonCloud") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolygonReplyType(t *testing.T) { t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() @@ -362482,6 +411419,28 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineIdentityQuality }) } +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineIntent(t *testing.T) { + t.Run("NewFromString_PolyLineDimension", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineIntentFromString("PolyLineDimension") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineIntent("PolyLineDimension"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineIntentFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineIntentFromString("PolyLineDimension") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsEnd(t *testing.T) { t.Run("NewFromString_none", func(t *testing.T) { t.Parallel() @@ -362652,6 +411611,438 @@ func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineLineEndingsStar }) } +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + func TestEnumDocAnnotationsList200ResponseAnnotationsItemPolylineReplyType(t *testing.T) { t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() @@ -367033,6 +416424,35 @@ func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineBorderS }) } +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionPosition(t *testing.T) { + t.Run("NewFromString_inline", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionPositionFromString("inline") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionPosition("inline"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_top", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionPositionFromString("top") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionPosition("top"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionPositionFromString("inline") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentityQuality(t *testing.T) { t.Run("NewFromString_durable", func(t *testing.T) { t.Parallel() @@ -367062,6 +416482,35 @@ func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIdentit }) } +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIntent(t *testing.T) { + t.Run("NewFromString_LineArrow", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIntentFromString("LineArrow") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIntent("LineArrow"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_LineDimension", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIntentFromString("LineDimension") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIntent("LineDimension"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIntentFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineIntentFromString("LineArrow") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndingsEnd(t *testing.T) { t.Run("NewFromString_none", func(t *testing.T) { t.Parallel() @@ -367232,6 +416681,438 @@ func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEnd }) } +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineReplyType(t *testing.T) { t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() @@ -367645,6 +417526,467 @@ func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIden }) } +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIntent(t *testing.T) { + t.Run("NewFromString_PolygonCloud", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIntentFromString("PolygonCloud") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIntent("PolygonCloud"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_PolygonDimension", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIntentFromString("PolygonDimension") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIntent("PolygonDimension"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIntentFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonIntentFromString("PolygonCloud") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonReplyType(t *testing.T) { t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() @@ -367873,6 +418215,28 @@ func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIde }) } +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIntent(t *testing.T) { + t.Run("NewFromString_PolyLineDimension", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIntentFromString("PolyLineDimension") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIntent("PolyLineDimension"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIntentFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineIntentFromString("PolyLineDimension") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLineEndingsEnd(t *testing.T) { t.Run("NewFromString_none", func(t *testing.T) { t.Parallel() @@ -368043,6 +418407,438 @@ func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineLin }) } +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + func TestEnumDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineReplyType(t *testing.T) { t.Run("NewFromString_reply", func(t *testing.T) { t.Parallel() @@ -377578,6 +428374,1074 @@ func TestEnumDocPagesSetName404ResponseName(t *testing.T) { }) } +func TestEnumDocPagesSetScale400ResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale400ResponseCodeFromString("Unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale400ResponseCode("Unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_InvalidArg", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale400ResponseCodeFromString("InvalidArg") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale400ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale400ResponseCodeFromString("DocNotOpen") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale400ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale400ResponseCodeFromString("DocOpenFailed") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale400ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale400ResponseCodeFromString("DocPasswordRequired") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale400ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale400ResponseCodeFromString("DocPasswordIncorrect") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale400ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale400ResponseCodeFromString("SharePasswordRequired") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale400ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Aborted", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale400ResponseCodeFromString("Aborted") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale400ResponseCode("Aborted"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Network", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale400ResponseCodeFromString("Network") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale400ResponseCode("Network"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale400ResponseCodeFromString("Unauthenticated") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale400ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Forbidden", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale400ResponseCodeFromString("Forbidden") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale400ResponseCode("Forbidden"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_NotFound", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale400ResponseCodeFromString("NotFound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale400ResponseCode("NotFound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_WireFormat", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale400ResponseCodeFromString("WireFormat") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale400ResponseCode("WireFormat"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale400ResponseCodeFromString("RuntimeUnavailable") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale400ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_InvalidReference", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale400ResponseCodeFromString("InvalidReference") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale400ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale400ResponseCodeFromString("WeakAnnotationSessionConflict") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale400ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale400ResponseCodeFromString("LayerVersionConflict") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale400ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_NotImplemented", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale400ResponseCodeFromString("NotImplemented") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale400ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale400ResponseCodeFromString("MalformedPdf") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale400ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_SigningPending", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale400ResponseCodeFromString("SigningPending") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale400ResponseCode("SigningPending"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_SigningExpired", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale400ResponseCodeFromString("SigningExpired") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale400ResponseCode("SigningExpired"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_SigningVersionMismatch", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale400ResponseCodeFromString("SigningVersionMismatch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale400ResponseCode("SigningVersionMismatch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_SignatureRefused", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale400ResponseCodeFromString("SignatureRefused") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale400ResponseCode("SignatureRefused"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_ProtectedDocument", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale400ResponseCodeFromString("ProtectedDocument") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale400ResponseCode("ProtectedDocument"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_StaleBase", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale400ResponseCodeFromString("StaleBase") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale400ResponseCode("StaleBase"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocPagesSetScale400ResponseCodeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocPagesSetScale400ResponseCodeFromString("Unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocPagesSetScale400ResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale400ResponseNameFromString("EngineError") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale400ResponseName("EngineError"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocPagesSetScale400ResponseNameFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocPagesSetScale400ResponseNameFromString("EngineError") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocPagesSetScale404ResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale404ResponseCodeFromString("Unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale404ResponseCode("Unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_InvalidArg", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale404ResponseCodeFromString("InvalidArg") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale404ResponseCodeFromString("DocNotOpen") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale404ResponseCodeFromString("DocOpenFailed") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale404ResponseCodeFromString("DocPasswordRequired") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale404ResponseCodeFromString("DocPasswordIncorrect") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale404ResponseCodeFromString("SharePasswordRequired") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Aborted", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale404ResponseCodeFromString("Aborted") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale404ResponseCode("Aborted"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Network", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale404ResponseCodeFromString("Network") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale404ResponseCode("Network"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale404ResponseCodeFromString("Unauthenticated") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Forbidden", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale404ResponseCodeFromString("Forbidden") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale404ResponseCode("Forbidden"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_NotFound", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale404ResponseCodeFromString("NotFound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale404ResponseCode("NotFound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_WireFormat", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale404ResponseCodeFromString("WireFormat") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale404ResponseCode("WireFormat"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale404ResponseCodeFromString("RuntimeUnavailable") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_InvalidReference", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale404ResponseCodeFromString("InvalidReference") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale404ResponseCodeFromString("WeakAnnotationSessionConflict") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale404ResponseCodeFromString("LayerVersionConflict") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_NotImplemented", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale404ResponseCodeFromString("NotImplemented") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale404ResponseCodeFromString("MalformedPdf") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_SigningPending", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale404ResponseCodeFromString("SigningPending") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale404ResponseCode("SigningPending"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_SigningExpired", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale404ResponseCodeFromString("SigningExpired") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale404ResponseCode("SigningExpired"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_SigningVersionMismatch", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale404ResponseCodeFromString("SigningVersionMismatch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale404ResponseCode("SigningVersionMismatch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_SignatureRefused", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale404ResponseCodeFromString("SignatureRefused") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale404ResponseCode("SignatureRefused"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_ProtectedDocument", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale404ResponseCodeFromString("ProtectedDocument") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale404ResponseCode("ProtectedDocument"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_StaleBase", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale404ResponseCodeFromString("StaleBase") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale404ResponseCode("StaleBase"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocPagesSetScale404ResponseCodeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocPagesSetScale404ResponseCodeFromString("Unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocPagesSetScale404ResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesSetScale404ResponseNameFromString("EngineError") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesSetScale404ResponseName("EngineError"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocPagesSetScale404ResponseNameFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocPagesSetScale404ResponseNameFromString("EngineError") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocPagesViewports200ResponseItemMeasureRlAngleItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlAngleItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlAngleItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlAngleItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlAngleItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlAngleItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlAngleItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlAngleItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlAngleItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocPagesViewports200ResponseItemMeasureRlAngleItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocPagesViewports200ResponseItemMeasureRlAngleItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocPagesViewports200ResponseItemMeasureRlAngleItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlAngleItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlAngleItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlAngleItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlAngleItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocPagesViewports200ResponseItemMeasureRlAngleItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocPagesViewports200ResponseItemMeasureRlAngleItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocPagesViewports200ResponseItemMeasureRlAreaItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlAreaItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlAreaItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlAreaItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlAreaItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlAreaItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlAreaItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlAreaItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlAreaItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocPagesViewports200ResponseItemMeasureRlAreaItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocPagesViewports200ResponseItemMeasureRlAreaItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocPagesViewports200ResponseItemMeasureRlAreaItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlAreaItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlAreaItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlAreaItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlAreaItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocPagesViewports200ResponseItemMeasureRlAreaItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocPagesViewports200ResponseItemMeasureRlAreaItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocPagesViewports200ResponseItemMeasureRlDistanceItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlDistanceItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlDistanceItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlDistanceItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlDistanceItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlDistanceItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlDistanceItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlDistanceItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlDistanceItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocPagesViewports200ResponseItemMeasureRlDistanceItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocPagesViewports200ResponseItemMeasureRlDistanceItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocPagesViewports200ResponseItemMeasureRlDistanceItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlDistanceItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlDistanceItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlDistanceItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlDistanceItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocPagesViewports200ResponseItemMeasureRlDistanceItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocPagesViewports200ResponseItemMeasureRlDistanceItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocPagesViewports200ResponseItemMeasureRlSlopeItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlSlopeItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlSlopeItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlSlopeItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlSlopeItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlSlopeItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlSlopeItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlSlopeItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlSlopeItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocPagesViewports200ResponseItemMeasureRlSlopeItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocPagesViewports200ResponseItemMeasureRlSlopeItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocPagesViewports200ResponseItemMeasureRlSlopeItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlSlopeItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlSlopeItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlSlopeItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlSlopeItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocPagesViewports200ResponseItemMeasureRlSlopeItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocPagesViewports200ResponseItemMeasureRlSlopeItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocPagesViewports200ResponseItemMeasureRlXItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlXItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlXItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlXItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlXItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlXItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlXItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlXItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlXItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocPagesViewports200ResponseItemMeasureRlXItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocPagesViewports200ResponseItemMeasureRlXItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocPagesViewports200ResponseItemMeasureRlXItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlXItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlXItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlXItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlXItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocPagesViewports200ResponseItemMeasureRlXItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocPagesViewports200ResponseItemMeasureRlXItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocPagesViewports200ResponseItemMeasureRlYItemFraction(t *testing.T) { + t.Run("NewFromString_decimal", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlYItemFractionFromString("decimal") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlYItemFraction("decimal"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_fraction", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlYItemFractionFromString("fraction") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlYItemFraction("fraction"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_round", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlYItemFractionFromString("round") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlYItemFraction("round"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_truncate", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlYItemFractionFromString("truncate") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlYItemFraction("truncate"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocPagesViewports200ResponseItemMeasureRlYItemFractionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocPagesViewports200ResponseItemMeasureRlYItemFractionFromString("decimal") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocPagesViewports200ResponseItemMeasureRlYItemLabelPosition(t *testing.T) { + t.Run("NewFromString_suffix", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlYItemLabelPositionFromString("suffix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlYItemLabelPosition("suffix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_prefix", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports200ResponseItemMeasureRlYItemLabelPositionFromString("prefix") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports200ResponseItemMeasureRlYItemLabelPosition("prefix"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocPagesViewports200ResponseItemMeasureRlYItemLabelPositionFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocPagesViewports200ResponseItemMeasureRlYItemLabelPositionFromString("suffix") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocPagesViewports404ResponseCode(t *testing.T) { + t.Run("NewFromString_Unknown", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports404ResponseCodeFromString("Unknown") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports404ResponseCode("Unknown"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_InvalidArg", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports404ResponseCodeFromString("InvalidArg") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports404ResponseCode("InvalidArg"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_DocNotOpen", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports404ResponseCodeFromString("DocNotOpen") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports404ResponseCode("DocNotOpen"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_DocOpenFailed", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports404ResponseCodeFromString("DocOpenFailed") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports404ResponseCode("DocOpenFailed"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_DocPasswordRequired", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports404ResponseCodeFromString("DocPasswordRequired") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports404ResponseCode("DocPasswordRequired"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_DocPasswordIncorrect", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports404ResponseCodeFromString("DocPasswordIncorrect") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports404ResponseCode("DocPasswordIncorrect"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_SharePasswordRequired", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports404ResponseCodeFromString("SharePasswordRequired") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports404ResponseCode("SharePasswordRequired"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Aborted", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports404ResponseCodeFromString("Aborted") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports404ResponseCode("Aborted"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Network", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports404ResponseCodeFromString("Network") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports404ResponseCode("Network"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Unauthenticated", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports404ResponseCodeFromString("Unauthenticated") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports404ResponseCode("Unauthenticated"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Forbidden", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports404ResponseCodeFromString("Forbidden") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports404ResponseCode("Forbidden"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_NotFound", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports404ResponseCodeFromString("NotFound") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports404ResponseCode("NotFound"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_WireFormat", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports404ResponseCodeFromString("WireFormat") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports404ResponseCode("WireFormat"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_RuntimeUnavailable", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports404ResponseCodeFromString("RuntimeUnavailable") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports404ResponseCode("RuntimeUnavailable"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_InvalidReference", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports404ResponseCodeFromString("InvalidReference") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports404ResponseCode("InvalidReference"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_WeakAnnotationSessionConflict", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports404ResponseCodeFromString("WeakAnnotationSessionConflict") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports404ResponseCode("WeakAnnotationSessionConflict"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_LayerVersionConflict", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports404ResponseCodeFromString("LayerVersionConflict") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports404ResponseCode("LayerVersionConflict"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_NotImplemented", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports404ResponseCodeFromString("NotImplemented") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports404ResponseCode("NotImplemented"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_MalformedPdf", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports404ResponseCodeFromString("MalformedPdf") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports404ResponseCode("MalformedPdf"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_SigningPending", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports404ResponseCodeFromString("SigningPending") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports404ResponseCode("SigningPending"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_SigningExpired", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports404ResponseCodeFromString("SigningExpired") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports404ResponseCode("SigningExpired"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_SigningVersionMismatch", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports404ResponseCodeFromString("SigningVersionMismatch") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports404ResponseCode("SigningVersionMismatch"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_SignatureRefused", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports404ResponseCodeFromString("SignatureRefused") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports404ResponseCode("SignatureRefused"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_ProtectedDocument", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports404ResponseCodeFromString("ProtectedDocument") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports404ResponseCode("ProtectedDocument"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_StaleBase", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports404ResponseCodeFromString("StaleBase") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports404ResponseCode("StaleBase"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocPagesViewports404ResponseCodeFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocPagesViewports404ResponseCodeFromString("Unknown") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + +func TestEnumDocPagesViewports404ResponseName(t *testing.T) { + t.Run("NewFromString_EngineError", func(t *testing.T) { + t.Parallel() + val, err := NewDocPagesViewports404ResponseNameFromString("EngineError") + assert.NoError(t, err, "valid enum value should not return error") + assert.Equal(t, DocPagesViewports404ResponseName("EngineError"), val, "enum value should match expected wire value") + }) + + t.Run("NewFromString_Invalid", func(t *testing.T) { + _, err := NewDocPagesViewports404ResponseNameFromString("invalid_value_that_does_not_exist") + assert.Error(t, err) + }) + + t.Run("Ptr", func(t *testing.T) { + val, err := NewDocPagesViewports404ResponseNameFromString("EngineError") + assert.NoError(t, err) + ptr := val.Ptr() + assert.NotNil(t, ptr) + assert.Equal(t, val, *ptr) + }) +} + func TestEnumDocRedactionsApply400ResponseCode(t *testing.T) { t.Run("NewFromString_Unknown", func(t *testing.T) { t.Parallel() @@ -387306,6 +439170,52 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLine(t *test }) } +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineCaption(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineCaption{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineCaption + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineCaptionOffset + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() @@ -387467,6 +439377,29 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineInterior }) } +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineLeader(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineLeader{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineLeader + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineLineEndings(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() @@ -387559,6 +439492,236 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineLinePoin }) } +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineMeasureGeo(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureGeo{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureGeo + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineMeasureRl(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRl + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAngleItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlAreaItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlDistanceItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlOrigin + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlSlopeItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlXItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureRlYItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineMeasureUnknown(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemLineMeasureUnknown{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemLineMeasureUnknown + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemLineRect(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() @@ -388111,6 +440274,52 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygon(t *t }) } +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonCaption(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonCaption{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonCaption + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonCaptionCenter + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() @@ -388272,6 +440481,236 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonInter }) } +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureGeo(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureGeo{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureGeo + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRl + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAngleItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlAreaItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlDistanceItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlOrigin + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlSlopeItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlXItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureRlYItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonMeasureUnknown(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureUnknown{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolygonMeasureUnknown + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolygonRect(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() @@ -388433,6 +440872,52 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolyline(t * }) } +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineCaption(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineCaption{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineCaption + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineCaptionCenter + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() @@ -388617,6 +441102,236 @@ func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineLine }) } +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureGeo(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureGeo{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureGeo + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRl + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAngleItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlAreaItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlDistanceItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlOrigin + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlSlopeItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlXItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureRlYItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineMeasureUnknown(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureUnknown{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsList200ResponseAnnotationsItemPolylineMeasureUnknown + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + func TestExtraPropertiesDocAnnotationsList200ResponseAnnotationsItemPolylineRect(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() @@ -394206,6 +446921,52 @@ func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItem }) } +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaption + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineCaptionOffset + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() @@ -394367,6 +447128,29 @@ func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItem }) } +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLeader + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineLineEndings(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() @@ -394459,6 +447243,236 @@ func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItem }) } +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureGeo(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureGeo{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureGeo + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRl + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAngleItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlAreaItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlDistanceItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlOrigin + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlSlopeItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlXItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureRlYItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureUnknown(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureUnknown{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineMeasureUnknown + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemLineRect(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() @@ -395011,6 +448025,52 @@ func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItem }) } +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaption + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonCaptionCenter + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() @@ -395172,6 +448232,236 @@ func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItem }) } +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureGeo(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureGeo{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureGeo + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRl + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAngleItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlAreaItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlDistanceItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlOrigin + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlSlopeItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlXItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureRlYItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureUnknown(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureUnknown{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonMeasureUnknown + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolygonRect(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() @@ -395333,6 +448623,52 @@ func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItem }) } +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaption + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineCaptionCenter + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineColor(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() @@ -395517,6 +448853,236 @@ func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItem }) } +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureGeo(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureGeo{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureGeo + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRl + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAngleItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlAreaItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlDistanceItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlOrigin + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlSlopeItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlXItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureRlYItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureUnknown(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureUnknown{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineMeasureUnknown + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + func TestExtraPropertiesDocAnnotationsListAll200ResponsePagesItemAnnotationsItemPolylineRect(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() @@ -404602,6 +458168,558 @@ func TestExtraPropertiesDocPagesSetName404Response(t *testing.T) { }) } +func TestExtraPropertiesDocPagesSetScale200Response(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScale200Response{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScale200Response + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocPagesSetScale200ResponseMeta(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScale200ResponseMeta{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScale200ResponseMeta + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocPagesSetScale200ResponseMetaAffectedPagesItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScale200ResponseMetaAffectedPagesItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocPagesSetScale200ResponseMetaAffectedPagesItemRevision(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItemRevision{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScale200ResponseMetaAffectedPagesItemRevision + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScale200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocPagesSetScale200ResponseMetaCacheDelta(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScale200ResponseMetaCacheDelta{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScale200ResponseMetaCacheDelta + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocPagesSetScale200ResponseMetaCacheDeltaPagesItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScale200ResponseMetaCacheDeltaPagesItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScale200ResponseMetaCacheDeltaPagesItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScale200ResponseMetaCacheDeltaPagesItemCache + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocPagesSetScale400Response(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScale400Response{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScale400Response + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocPagesSetScale404Response(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocPagesSetScale404Response{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesSetScale404Response + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocPagesViewports200ResponseItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocPagesViewports200ResponseItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocPagesViewports200ResponseItemBbox(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocPagesViewports200ResponseItemBbox{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemBbox + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocPagesViewports200ResponseItemMeasureGeo(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocPagesViewports200ResponseItemMeasureGeo{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureGeo + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocPagesViewports200ResponseItemMeasureRl(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocPagesViewports200ResponseItemMeasureRl{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRl + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocPagesViewports200ResponseItemMeasureRlAngleItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocPagesViewports200ResponseItemMeasureRlAngleItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlAngleItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocPagesViewports200ResponseItemMeasureRlAreaItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocPagesViewports200ResponseItemMeasureRlAreaItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlAreaItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocPagesViewports200ResponseItemMeasureRlDistanceItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocPagesViewports200ResponseItemMeasureRlDistanceItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlDistanceItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocPagesViewports200ResponseItemMeasureRlOrigin(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocPagesViewports200ResponseItemMeasureRlOrigin{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlOrigin + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocPagesViewports200ResponseItemMeasureRlSlopeItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocPagesViewports200ResponseItemMeasureRlSlopeItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlSlopeItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocPagesViewports200ResponseItemMeasureRlXItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocPagesViewports200ResponseItemMeasureRlXItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlXItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocPagesViewports200ResponseItemMeasureRlYItem(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocPagesViewports200ResponseItemMeasureRlYItem{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureRlYItem + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocPagesViewports200ResponseItemMeasureUnknown(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocPagesViewports200ResponseItemMeasureUnknown{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports200ResponseItemMeasureUnknown + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + +func TestExtraPropertiesDocPagesViewports404Response(t *testing.T) { + t.Run("GetExtraProperties", func(t *testing.T) { + t.Parallel() + obj := &DocPagesViewports404Response{} + // Should not panic when calling GetExtraProperties() + defer func() { + if r := recover(); r != nil { + t.Errorf("GetExtraProperties() panicked: %v", r) + } + }() + extraProps := obj.GetExtraProperties() + // Result can be nil or an empty/non-empty map + _ = extraProps + }) + + t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { + t.Parallel() + var obj *DocPagesViewports404Response + extraProps := obj.GetExtraProperties() + assert.Nil(t, extraProps, "nil receiver should return nil without panicking") + }) +} + func TestExtraPropertiesDocRedactionsApply200Response(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() diff --git a/wiremock/wiremock-mappings.json b/wiremock/wiremock-mappings.json index a51bbe8..3fdc78b 100644 --- a/wiremock/wiremock-mappings.json +++ b/wiremock/wiremock-mappings.json @@ -1642,6 +1642,90 @@ } } }, + { + "id": "5c511340-836c-47f3-915b-df31eb49769a", + "name": "Upsert or remove EmbedPDF calibration while preserving foreign viewports. Existing annotation scales are unchanged. - default", + "request": { + "urlPathTemplate": "/v1/docs/{docId}/layers/{layerName}/pages/{pon}/scale", + "method": "PUT", + "headers": { + "Authorization": { + "matches": "Bearer .+" + } + }, + "pathParameters": { + "docId": { + "equalTo": "docId" + }, + "layerName": { + "equalTo": "layerName" + }, + "pon": { + "equalTo": "1" + } + } + }, + "response": { + "status": 200, + "body": "{\n \"pageObjectNumber\": 1,\n \"meta\": {\n \"affectedPages\": [\n {\n \"pageObjectNumber\": 1,\n \"revision\": {\n \"docSessionId\": \"docSessionId\",\n \"pageObjectNumber\": 1,\n \"generation\": 1\n },\n \"weakAnnotationState\": {\n \"kind\": \"unknown\"\n }\n }\n ],\n \"cacheDelta\": {\n \"previousDocVersion\": 1,\n \"docVersion\": 1,\n \"annotationsVersion\": 1,\n \"layerVersion\": 1,\n \"working\": true,\n \"pages\": [\n {\n \"pageObjectNumber\": 1,\n \"cache\": {\n \"contentVersion\": 1,\n \"annotationVersion\": 1\n }\n }\n ]\n }\n }\n}", + "headers": { + "Content-Type": "application/json" + } + }, + "uuid": "5c511340-836c-47f3-915b-df31eb49769a", + "persistent": true, + "priority": 3, + "metadata": { + "mocklab": { + "created": { + "at": "2020-01-01T00:00:00.000Z", + "via": "SYSTEM" + } + } + } + }, + { + "id": "5c404807-0f3d-4d58-93f9-d68e78c377be", + "name": "Read page measurement viewports in drawing order from the current layer. - default", + "request": { + "urlPathTemplate": "/v1/docs/{docId}/layers/{layerName}/pages/{pon}/viewports", + "method": "GET", + "headers": { + "Authorization": { + "matches": "Bearer .+" + } + }, + "pathParameters": { + "docId": { + "equalTo": "docId" + }, + "layerName": { + "equalTo": "layerName" + }, + "pon": { + "equalTo": "1" + } + } + }, + "response": { + "status": 200, + "body": "[\n {\n \"bbox\": {\n \"left\": 1.1,\n \"bottom\": 1.1,\n \"right\": 1.1,\n \"top\": 1.1\n },\n \"name\": \"name\",\n \"measure\": {\n \"ratio\": \"ratio\",\n \"x\": [\n {\n \"unit\": \"unit\"\n }\n ],\n \"y\": [\n {\n \"unit\": \"unit\"\n }\n ],\n \"distance\": [\n {\n \"unit\": \"unit\"\n }\n ],\n \"area\": [\n {\n \"unit\": \"unit\"\n }\n ],\n \"angle\": [\n {\n \"unit\": \"unit\"\n }\n ],\n \"slope\": [\n {\n \"unit\": \"unit\"\n }\n ],\n \"origin\": {\n \"x\": 1.1,\n \"y\": 1.1\n },\n \"cyx\": 1.1,\n \"subtype\": \"RL\"\n },\n \"owned\": true\n }\n]", + "headers": { + "Content-Type": "application/json" + } + }, + "uuid": "5c404807-0f3d-4d58-93f9-d68e78c377be", + "persistent": true, + "priority": 3, + "metadata": { + "mocklab": { + "created": { + "at": "2020-01-01T00:00:00.000Z", + "via": "SYSTEM" + } + } + } + }, { "id": "347df1d4-e622-4792-9a68-0cf1ad11b473", "name": "Delete pages. - default", @@ -2517,6 +2601,6 @@ } ], "meta": { - "total": 65 + "total": 67 } } \ No newline at end of file